create-cedar-app 1.0.0-canary.13009 → 1.0.0-canary.13010
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/create-cedar-app.js +73 -73
- package/package.json +4 -4
- package/templates/js/api/package.json +2 -2
- package/templates/js/package.json +3 -3
- package/templates/js/web/package.json +4 -4
- package/templates/ts/api/package.json +2 -2
- package/templates/ts/package.json +3 -3
- package/templates/ts/web/package.json +4 -4
package/dist/create-cedar-app.js
CHANGED
|
@@ -4,7 +4,7 @@ const require = (await import("node:module")).createRequire(import.meta.url);
|
|
|
4
4
|
const __filename = (await import("node:url")).fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = (await import("node:path")).dirname(__filename);
|
|
6
6
|
|
|
7
|
-
var nH=Object.create;var bf=Object.defineProperty;var iH=Object.getOwnPropertyDescriptor;var sH=Object.getOwnPropertyNames;var oH=Object.getPrototypeOf,aH=Object.prototype.hasOwnProperty;var W=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var ke=(r,e)=>()=>(r&&(e=r(r=0)),e);var x=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),cH=(r,e)=>{for(var t in e)bf(r,t,{get:e[t],enumerable:!0})},v1=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of sH(e))!aH.call(r,s)&&s!==t&&bf(r,s,{get:()=>e[s],enumerable:!(n=iH(e,s))||n.enumerable});return r};var dr=(r,e,t)=>(t=r!=null?nH(oH(r)):{},v1(e||!r||!r.__esModule?bf(t,"default",{value:r,enumerable:!0}):t,r)),Ne=r=>v1(bf({},"__esModule",{value:!0}),r);var D1,x1=ke(()=>{D1=typeof globalThis=="object"?globalThis:global});var b1=ke(()=>{x1()});var P1=ke(()=>{b1()});var Ai,Q0=ke(()=>{Ai="1.8.0"});function uH(r){var e=new Set([r]),t=new Set,n=r.match(I1);if(!n)return function(){return!1};var s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(s.prerelease!=null)return function(c){return c===r};function i(a){return t.add(a),!1}function o(a){return e.add(a),!0}return function(c){if(e.has(c))return!0;if(t.has(c))return!1;var u=c.match(I1);if(!u)return i(c);var l={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return l.prerelease!=null||s.major!==l.major?i(c):s.major===0?s.minor===l.minor&&s.patch<=l.patch?o(c):i(c):s.minor<=l.minor?o(c):i(c)}}var I1,w1,R1=ke(()=>{Q0();I1=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;w1=uH(Ai)});function ri(r,e,t,n){var s;n===void 0&&(n=!1);var i=gu[mu]=(s=gu[mu])!==null&&s!==void 0?s:{version:Ai};if(!n&&i[r]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+r);return t.error(o.stack||o.message),!1}if(i.version!==Ai){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+r+" does not match previously registered API v"+Ai);return t.error(o.stack||o.message),!1}return i[r]=e,t.debug("@opentelemetry/api: Registered a global for "+r+" v"+Ai+"."),!0}function $r(r){var e,t,n=(e=gu[mu])===null||e===void 0?void 0:e.version;if(!(!n||!w1(n)))return(t=gu[mu])===null||t===void 0?void 0:t[r]}function ni(r,e){e.debug("@opentelemetry/api: Unregistering a global for "+r+" v"+Ai+".");var t=gu[mu];t&&delete t[r]}var lH,mu,gu,Qs=ke(()=>{P1();Q0();R1();lH=Ai.split(".")[0],mu=Symbol.for("opentelemetry.js.api."+lH),gu=D1});function Eu(r,e,t){var n=$r("diag");if(n)return t.unshift(e),n[r].apply(n,pH([],fH(t),!1))}var fH,pH,L1,M1=ke(()=>{Qs();fH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},pH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},L1=(function(){function r(e){this._namespace=e.namespace||"DiagComponentLogger"}return r.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("debug",this._namespace,e)},r.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("error",this._namespace,e)},r.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("info",this._namespace,e)},r.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("warn",this._namespace,e)},r.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("verbose",this._namespace,e)},r})()});var Ht,Pf=ke(()=>{(function(r){r[r.NONE=0]="NONE",r[r.ERROR=30]="ERROR",r[r.WARN=50]="WARN",r[r.INFO=60]="INFO",r[r.DEBUG=70]="DEBUG",r[r.VERBOSE=80]="VERBOSE",r[r.ALL=9999]="ALL"})(Ht||(Ht={}))});function N1(r,e){r<Ht.NONE?r=Ht.NONE:r>Ht.ALL&&(r=Ht.ALL),e=e||{};function t(n,s){var i=e[n];return typeof i=="function"&&r>=s?i.bind(e):function(){}}return{error:t("error",Ht.ERROR),warn:t("warn",Ht.WARN),info:t("info",Ht.INFO),debug:t("debug",Ht.DEBUG),verbose:t("verbose",Ht.VERBOSE)}}var B1=ke(()=>{Pf()});var dH,hH,mH,hr,Zs=ke(()=>{M1();B1();Pf();Qs();dH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},hH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},mH="diag",hr=(function(){function r(){function e(s){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=$r("diag");if(a)return a[s].apply(a,hH([],dH(i),!1))}}var t=this,n=function(s,i){var o,a,c;if(i===void 0&&(i={logLevel:Ht.INFO}),s===t){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error((o=u.stack)!==null&&o!==void 0?o:u.message),!1}typeof i=="number"&&(i={logLevel:i});var l=$r("diag"),f=N1((a=i.logLevel)!==null&&a!==void 0?a:Ht.INFO,s);if(l&&!i.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+p),f.warn("Current logger will overwrite one already registered from "+p)}return ri("diag",f,t,!0)};t.setLogger=n,t.disable=function(){ni(mH,t)},t.createComponentLogger=function(s){return new L1(s)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return r.instance=function(){return this._instance||(this._instance=new r),this._instance},r})()});var gH,EH,U1,F1=ke(()=>{gH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},EH=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},U1=(function(){function r(e){this._entries=e?new Map(e):new Map}return r.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},r.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=gH(e,2),n=t[0],s=t[1];return[n,s]})},r.prototype.setEntry=function(e,t){var n=new r(this._entries);return n._entries.set(e,t),n},r.prototype.removeEntry=function(e){var t=new r(this._entries);return t._entries.delete(e),t},r.prototype.removeEntries=function(){for(var e,t,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var i=new r(this._entries);try{for(var o=EH(n),a=o.next();!a.done;a=o.next()){var c=a.value;i._entries.delete(c)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i},r.prototype.clear=function(){return new r},r})()});var V1,G1=ke(()=>{V1=Symbol("BaggageEntryMetadata")});function k1(r){return r===void 0&&(r={}),new U1(new Map(Object.entries(r)))}function j1(r){return typeof r!="string"&&(SH.error("Cannot create baggage metadata from unknown type: "+typeof r),r=""),{__TYPE__:V1,toString:function(){return r}}}var SH,Z0=ke(()=>{Zs();F1();G1();SH=hr.instance()});function ua(r){return Symbol.for(r)}var _H,If,Su=ke(()=>{_H=(function(){function r(e){var t=this;t._currentContext=e?new Map(e):new Map,t.getValue=function(n){return t._currentContext.get(n)},t.setValue=function(n,s){var i=new r(t._currentContext);return i._currentContext.set(n,s),i},t.deleteValue=function(n){var s=new r(t._currentContext);return s._currentContext.delete(n),s}}return r})(),If=new _H});var eg,wf,q1=ke(()=>{eg=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],wf=(function(){function r(){function e(n){return function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(console){var o=console[n];if(typeof o!="function"&&(o=console.log),typeof o=="function")return o.apply(console,s)}}}for(var t=0;t<eg.length;t++)this[eg[t].n]=e(eg[t].c)}return r})()});function H1(){return ng}var la,yH,tg,TH,AH,OH,rg,CH,vH,DH,ng,xH,bH,PH,IH,wH,RH,ig=ke(()=>{la=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),yH=(function(){function r(){}return r.prototype.createHistogram=function(e,t){return bH},r.prototype.createCounter=function(e,t){return xH},r.prototype.createUpDownCounter=function(e,t){return PH},r.prototype.createObservableGauge=function(e,t){return wH},r.prototype.createObservableCounter=function(e,t){return IH},r.prototype.createObservableUpDownCounter=function(e,t){return RH},r.prototype.addBatchObservableCallback=function(e,t){},r.prototype.removeBatchObservableCallback=function(e){},r})(),tg=(function(){function r(){}return r})(),TH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.add=function(t,n){},e})(tg),AH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.add=function(t,n){},e})(tg),OH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.record=function(t,n){},e})(tg),rg=(function(){function r(){}return r.prototype.addCallback=function(e){},r.prototype.removeCallback=function(e){},r})(),CH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(rg),vH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(rg),DH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(rg),ng=new yH,xH=new TH,bH=new OH,PH=new AH,IH=new CH,wH=new vH,RH=new DH});var Rf,$1=ke(()=>{(function(r){r[r.INT=0]="INT",r[r.DOUBLE=1]="DOUBLE"})(Rf||(Rf={}))});var Lf,Mf,sg=ke(()=>{Lf={get:function(r,e){if(r!=null)return r[e]},keys:function(r){return r==null?[]:Object.keys(r)}},Mf={set:function(r,e,t){r!=null&&(r[e]=t)}}});var LH,MH,W1,Y1=ke(()=>{Su();LH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},MH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},W1=(function(){function r(){}return r.prototype.active=function(){return If},r.prototype.with=function(e,t,n){for(var s=[],i=3;i<arguments.length;i++)s[i-3]=arguments[i];return t.call.apply(t,MH([n],LH(s),!1))},r.prototype.bind=function(e,t){return t},r.prototype.enable=function(){return this},r.prototype.disable=function(){return this},r})()});var NH,BH,og,UH,ji,_u=ke(()=>{Y1();Qs();Zs();NH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},BH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},og="context",UH=new W1,ji=(function(){function r(){}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalContextManager=function(e){return ri(og,e,hr.instance())},r.prototype.active=function(){return this._getContextManager().active()},r.prototype.with=function(e,t,n){for(var s,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(s=this._getContextManager()).with.apply(s,BH([e,t,n],NH(i),!1))},r.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},r.prototype._getContextManager=function(){return $r(og)||UH},r.prototype.disable=function(){this._getContextManager().disable(),ni(og,hr.instance())},r})()});var fa,ag=ke(()=>{(function(r){r[r.NONE=0]="NONE",r[r.SAMPLED=1]="SAMPLED"})(fa||(fa={}))});var yu,Tu,Nf,Bf=ke(()=>{ag();yu="0000000000000000",Tu="00000000000000000000000000000000",Nf={traceId:Tu,spanId:yu,traceFlags:fa.NONE}});var qi,Uf=ke(()=>{Bf();qi=(function(){function r(e){e===void 0&&(e=Nf),this._spanContext=e}return r.prototype.spanContext=function(){return this._spanContext},r.prototype.setAttribute=function(e,t){return this},r.prototype.setAttributes=function(e){return this},r.prototype.addEvent=function(e,t){return this},r.prototype.setStatus=function(e){return this},r.prototype.updateName=function(e){return this},r.prototype.end=function(e){},r.prototype.isRecording=function(){return!1},r.prototype.recordException=function(e,t){},r})()});function Ff(r){return r.getValue(cg)||void 0}function z1(){return Ff(ji.getInstance().active())}function Au(r,e){return r.setValue(cg,e)}function K1(r){return r.deleteValue(cg)}function X1(r,e){return Au(r,new qi(e))}function Vf(r){var e;return(e=Ff(r))===null||e===void 0?void 0:e.spanContext()}var cg,ug=ke(()=>{Su();Uf();_u();cg=ua("OpenTelemetry Context Key SPAN")});function lg(r){return FH.test(r)&&r!==Tu}function fg(r){return VH.test(r)&&r!==yu}function pa(r){return lg(r.traceId)&&fg(r.spanId)}function J1(r){return new qi(r)}var FH,VH,Gf=ke(()=>{Bf();Uf();FH=/^([0-9a-f]{32})$/i,VH=/^[0-9a-f]{16}$/i});function GH(r){return typeof r=="object"&&typeof r.spanId=="string"&&typeof r.traceId=="string"&&typeof r.traceFlags=="number"}var pg,kf,dg=ke(()=>{_u();ug();Uf();Gf();pg=ji.getInstance(),kf=(function(){function r(){}return r.prototype.startSpan=function(e,t,n){n===void 0&&(n=pg.active());var s=!!t?.root;if(s)return new qi;var i=n&&Vf(n);return GH(i)&&pa(i)?new qi(i):new qi},r.prototype.startActiveSpan=function(e,t,n,s){var i,o,a;if(!(arguments.length<2)){arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,o=n,a=s);var c=o??pg.active(),u=this.startSpan(e,i,c),l=Au(c,u);return pg.with(l,a,void 0,u)}},r})()});var kH,jf,hg=ke(()=>{dg();kH=new kf,jf=(function(){function r(e,t,n,s){this._provider=e,this.name=t,this.version=n,this.options=s}return r.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},r.prototype.startActiveSpan=function(e,t,n,s){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},r.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):kH},r})()});var Q1,Z1=ke(()=>{dg();Q1=(function(){function r(){}return r.prototype.getTracer=function(e,t,n){return new kf},r})()});var jH,Ou,mg=ke(()=>{hg();Z1();jH=new Q1,Ou=(function(){function r(){}return r.prototype.getTracer=function(e,t,n){var s;return(s=this.getDelegateTracer(e,t,n))!==null&&s!==void 0?s:new jf(this,e,t,n)},r.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:jH},r.prototype.setDelegate=function(e){this._delegate=e},r.prototype.getDelegateTracer=function(e,t,n){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getTracer(e,t,n)},r})()});var qf,eC=ke(()=>{(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(qf||(qf={}))});var Hf,tC=ke(()=>{(function(r){r[r.INTERNAL=0]="INTERNAL",r[r.SERVER=1]="SERVER",r[r.CLIENT=2]="CLIENT",r[r.PRODUCER=3]="PRODUCER",r[r.CONSUMER=4]="CONSUMER"})(Hf||(Hf={}))});var Hi,rC=ke(()=>{(function(r){r[r.UNSET=0]="UNSET",r[r.OK=1]="OK",r[r.ERROR=2]="ERROR"})(Hi||(Hi={}))});function nC(r){return $H.test(r)}function iC(r){return WH.test(r)&&!YH.test(r)}var gg,qH,HH,$H,WH,YH,sC=ke(()=>{gg="[_0-9a-z-*/]",qH="[a-z]"+gg+"{0,255}",HH="[a-z0-9]"+gg+"{0,240}@[a-z]"+gg+"{0,13}",$H=new RegExp("^(?:"+qH+"|"+HH+")$"),WH=/^[ -~]{0,255}[!-~]$/,YH=/,|=/});var oC,zH,aC,cC,uC,lC=ke(()=>{sC();oC=32,zH=512,aC=",",cC="=",uC=(function(){function r(e){this._internalState=new Map,e&&this._parse(e)}return r.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},r.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},r.prototype.get=function(e){return this._internalState.get(e)},r.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+cC+e.get(n)),t},[]).join(aC)},r.prototype._parse=function(e){e.length>zH||(this._internalState=e.split(aC).reverse().reduce(function(t,n){var s=n.trim(),i=s.indexOf(cC);if(i!==-1){var o=s.slice(0,i),a=s.slice(i+1,n.length);nC(o)&&iC(a)&&t.set(o,a)}return t},new Map),this._internalState.size>oC&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,oC))))},r.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},r.prototype._clone=function(){var e=new r;return e._internalState=new Map(this._internalState),e},r})()});function fC(r){return new uC(r)}var pC=ke(()=>{lC()});var Eg,dC=ke(()=>{_u();Eg=ji.getInstance()});var Cu,hC=ke(()=>{Zs();Cu=hr.instance()});var KH,mC,gC=ke(()=>{ig();KH=(function(){function r(){}return r.prototype.getMeter=function(e,t,n){return ng},r})(),mC=new KH});var Sg,EC,SC=ke(()=>{gC();Qs();Zs();Sg="metrics",EC=(function(){function r(){}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalMeterProvider=function(e){return ri(Sg,e,hr.instance())},r.prototype.getMeterProvider=function(){return $r(Sg)||mC},r.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},r.prototype.disable=function(){ni(Sg,hr.instance())},r})()});var _g,_C=ke(()=>{SC();_g=EC.getInstance()});var yC,TC=ke(()=>{yC=(function(){function r(){}return r.prototype.inject=function(e,t){},r.prototype.extract=function(e,t){return e},r.prototype.fields=function(){return[]},r})()});function Tg(r){return r.getValue(yg)||void 0}function AC(){return Tg(ji.getInstance().active())}function OC(r,e){return r.setValue(yg,e)}function CC(r){return r.deleteValue(yg)}var yg,vC=ke(()=>{_u();Su();yg=ua("OpenTelemetry Baggage Key")});var Ag,XH,DC,xC=ke(()=>{Qs();TC();sg();vC();Z0();Zs();Ag="propagation",XH=new yC,DC=(function(){function r(){this.createBaggage=k1,this.getBaggage=Tg,this.getActiveBaggage=AC,this.setBaggage=OC,this.deleteBaggage=CC}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalPropagator=function(e){return ri(Ag,e,hr.instance())},r.prototype.inject=function(e,t,n){return n===void 0&&(n=Mf),this._getGlobalPropagator().inject(e,t,n)},r.prototype.extract=function(e,t,n){return n===void 0&&(n=Lf),this._getGlobalPropagator().extract(e,t,n)},r.prototype.fields=function(){return this._getGlobalPropagator().fields()},r.prototype.disable=function(){ni(Ag,hr.instance())},r.prototype._getGlobalPropagator=function(){return $r(Ag)||XH},r})()});var Og,bC=ke(()=>{xC();Og=DC.getInstance()});var Cg,PC,IC=ke(()=>{Qs();mg();Gf();ug();Zs();Cg="trace",PC=(function(){function r(){this._proxyTracerProvider=new Ou,this.wrapSpanContext=J1,this.isSpanContextValid=pa,this.deleteSpan=K1,this.getSpan=Ff,this.getActiveSpan=z1,this.getSpanContext=Vf,this.setSpan=Au,this.setSpanContext=X1}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalTracerProvider=function(e){var t=ri(Cg,this._proxyTracerProvider,hr.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},r.prototype.getTracerProvider=function(){return $r(Cg)||this._proxyTracerProvider},r.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},r.prototype.disable=function(){ni(Cg,hr.instance()),this._proxyTracerProvider=new Ou},r})()});var an,wC=ke(()=>{IC();an=PC.getInstance()});var Le={};cH(Le,{DiagConsoleLogger:()=>wf,DiagLogLevel:()=>Ht,INVALID_SPANID:()=>yu,INVALID_SPAN_CONTEXT:()=>Nf,INVALID_TRACEID:()=>Tu,ProxyTracer:()=>jf,ProxyTracerProvider:()=>Ou,ROOT_CONTEXT:()=>If,SamplingDecision:()=>qf,SpanKind:()=>Hf,SpanStatusCode:()=>Hi,TraceFlags:()=>fa,ValueType:()=>Rf,baggageEntryMetadataFromString:()=>j1,context:()=>Eg,createContextKey:()=>ua,createNoopMeter:()=>H1,createTraceState:()=>fC,default:()=>vu,defaultTextMapGetter:()=>Lf,defaultTextMapSetter:()=>Mf,diag:()=>Cu,isSpanContextValid:()=>pa,isValidSpanId:()=>fg,isValidTraceId:()=>lg,metrics:()=>_g,propagation:()=>Og,trace:()=>an});var vu,be=ke(()=>{Z0();Su();q1();Pf();ig();$1();sg();hg();mg();eC();tC();rC();ag();pC();Gf();Bf();dC();hC();_C();bC();wC();vu={context:Eg,diag:Cu,metrics:_g,propagation:Og,trace:an}});var LC=x((A0e,RC)=>{RC.exports=function(e,t,n){if(typeof t!="function")throw new TypeError("`f` has to be a function");var s={};return Object.keys(e).forEach(function(i){t.call(n||this,e[i],i,e)&&(s[i]=e[i])}),s}});var NC=x((O0e,MC)=>{"use strict";var JH=Object.prototype.hasOwnProperty;MC.exports=function(r,e){var t={};for(var n in r)JH.call(r,n)&&(t[n]=e(r[n],n,r));return t}});var FC=x((C0e,UC)=>{var BC;UC.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(BC||(BC=Promise.resolve())).then(r).catch(e=>setTimeout(()=>{throw e},0))});var GC=x((v0e,VC)=>{VC.exports=ZH;var QH=FC();function ZH(r,e){let t,n,s,i=!0;Array.isArray(r)?(t=[],n=r.length):(s=Object.keys(r),t={},n=s.length);function o(c){function u(){e&&e(c,t),e=null}i?QH(u):u()}function a(c,u,l){t[c]=l,(--n===0||u)&&o(u)}n?s?s.forEach(function(c){r[c](function(u,l){a(c,u,l)})}):r.forEach(function(c,u){c(function(l,f){a(u,l,f)})}):o(null),i=!1}});var WC=x((je,$C)=>{je=$C.exports=Xe;var pt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?pt=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER"),console.log.apply(console,r)}:pt=function(){};je.SEMVER_SPEC_VERSION="2.0.0";var Du=256,$f=Number.MAX_SAFE_INTEGER||9007199254740991,vg=16,e7=Du-6,da=je.re=[],ft=je.safeRe=[],ce=je.src=[],Q=je.tokens={},qC=0;function Qe(r){Q[r]=qC++}var xg="[a-zA-Z0-9-]",Dg=[["\\s",1],["\\d",Du],[xg,e7]];function bu(r){for(var e=0;e<Dg.length;e++){var t=Dg[e][0],n=Dg[e][1];r=r.split(t+"*").join(t+"{0,"+n+"}").split(t+"+").join(t+"{1,"+n+"}")}return r}Qe("NUMERICIDENTIFIER");ce[Q.NUMERICIDENTIFIER]="0|[1-9]\\d*";Qe("NUMERICIDENTIFIERLOOSE");ce[Q.NUMERICIDENTIFIERLOOSE]="\\d+";Qe("NONNUMERICIDENTIFIER");ce[Q.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+xg+"*";Qe("MAINVERSION");ce[Q.MAINVERSION]="("+ce[Q.NUMERICIDENTIFIER]+")\\.("+ce[Q.NUMERICIDENTIFIER]+")\\.("+ce[Q.NUMERICIDENTIFIER]+")";Qe("MAINVERSIONLOOSE");ce[Q.MAINVERSIONLOOSE]="("+ce[Q.NUMERICIDENTIFIERLOOSE]+")\\.("+ce[Q.NUMERICIDENTIFIERLOOSE]+")\\.("+ce[Q.NUMERICIDENTIFIERLOOSE]+")";Qe("PRERELEASEIDENTIFIER");ce[Q.PRERELEASEIDENTIFIER]="(?:"+ce[Q.NUMERICIDENTIFIER]+"|"+ce[Q.NONNUMERICIDENTIFIER]+")";Qe("PRERELEASEIDENTIFIERLOOSE");ce[Q.PRERELEASEIDENTIFIERLOOSE]="(?:"+ce[Q.NUMERICIDENTIFIERLOOSE]+"|"+ce[Q.NONNUMERICIDENTIFIER]+")";Qe("PRERELEASE");ce[Q.PRERELEASE]="(?:-("+ce[Q.PRERELEASEIDENTIFIER]+"(?:\\."+ce[Q.PRERELEASEIDENTIFIER]+")*))";Qe("PRERELEASELOOSE");ce[Q.PRERELEASELOOSE]="(?:-?("+ce[Q.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+ce[Q.PRERELEASEIDENTIFIERLOOSE]+")*))";Qe("BUILDIDENTIFIER");ce[Q.BUILDIDENTIFIER]=xg+"+";Qe("BUILD");ce[Q.BUILD]="(?:\\+("+ce[Q.BUILDIDENTIFIER]+"(?:\\."+ce[Q.BUILDIDENTIFIER]+")*))";Qe("FULL");Qe("FULLPLAIN");ce[Q.FULLPLAIN]="v?"+ce[Q.MAINVERSION]+ce[Q.PRERELEASE]+"?"+ce[Q.BUILD]+"?";ce[Q.FULL]="^"+ce[Q.FULLPLAIN]+"$";Qe("LOOSEPLAIN");ce[Q.LOOSEPLAIN]="[v=\\s]*"+ce[Q.MAINVERSIONLOOSE]+ce[Q.PRERELEASELOOSE]+"?"+ce[Q.BUILD]+"?";Qe("LOOSE");ce[Q.LOOSE]="^"+ce[Q.LOOSEPLAIN]+"$";Qe("GTLT");ce[Q.GTLT]="((?:<|>)?=?)";Qe("XRANGEIDENTIFIERLOOSE");ce[Q.XRANGEIDENTIFIERLOOSE]=ce[Q.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Qe("XRANGEIDENTIFIER");ce[Q.XRANGEIDENTIFIER]=ce[Q.NUMERICIDENTIFIER]+"|x|X|\\*";Qe("XRANGEPLAIN");ce[Q.XRANGEPLAIN]="[v=\\s]*("+ce[Q.XRANGEIDENTIFIER]+")(?:\\.("+ce[Q.XRANGEIDENTIFIER]+")(?:\\.("+ce[Q.XRANGEIDENTIFIER]+")(?:"+ce[Q.PRERELEASE]+")?"+ce[Q.BUILD]+"?)?)?";Qe("XRANGEPLAINLOOSE");ce[Q.XRANGEPLAINLOOSE]="[v=\\s]*("+ce[Q.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ce[Q.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ce[Q.XRANGEIDENTIFIERLOOSE]+")(?:"+ce[Q.PRERELEASELOOSE]+")?"+ce[Q.BUILD]+"?)?)?";Qe("XRANGE");ce[Q.XRANGE]="^"+ce[Q.GTLT]+"\\s*"+ce[Q.XRANGEPLAIN]+"$";Qe("XRANGELOOSE");ce[Q.XRANGELOOSE]="^"+ce[Q.GTLT]+"\\s*"+ce[Q.XRANGEPLAINLOOSE]+"$";Qe("COERCE");ce[Q.COERCE]="(^|[^\\d])(\\d{1,"+vg+"})(?:\\.(\\d{1,"+vg+"}))?(?:\\.(\\d{1,"+vg+"}))?(?:$|[^\\d])";Qe("COERCERTL");da[Q.COERCERTL]=new RegExp(ce[Q.COERCE],"g");ft[Q.COERCERTL]=new RegExp(bu(ce[Q.COERCE]),"g");Qe("LONETILDE");ce[Q.LONETILDE]="(?:~>?)";Qe("TILDETRIM");ce[Q.TILDETRIM]="(\\s*)"+ce[Q.LONETILDE]+"\\s+";da[Q.TILDETRIM]=new RegExp(ce[Q.TILDETRIM],"g");ft[Q.TILDETRIM]=new RegExp(bu(ce[Q.TILDETRIM]),"g");var t7="$1~";Qe("TILDE");ce[Q.TILDE]="^"+ce[Q.LONETILDE]+ce[Q.XRANGEPLAIN]+"$";Qe("TILDELOOSE");ce[Q.TILDELOOSE]="^"+ce[Q.LONETILDE]+ce[Q.XRANGEPLAINLOOSE]+"$";Qe("LONECARET");ce[Q.LONECARET]="(?:\\^)";Qe("CARETTRIM");ce[Q.CARETTRIM]="(\\s*)"+ce[Q.LONECARET]+"\\s+";da[Q.CARETTRIM]=new RegExp(ce[Q.CARETTRIM],"g");ft[Q.CARETTRIM]=new RegExp(bu(ce[Q.CARETTRIM]),"g");var r7="$1^";Qe("CARET");ce[Q.CARET]="^"+ce[Q.LONECARET]+ce[Q.XRANGEPLAIN]+"$";Qe("CARETLOOSE");ce[Q.CARETLOOSE]="^"+ce[Q.LONECARET]+ce[Q.XRANGEPLAINLOOSE]+"$";Qe("COMPARATORLOOSE");ce[Q.COMPARATORLOOSE]="^"+ce[Q.GTLT]+"\\s*("+ce[Q.LOOSEPLAIN]+")$|^$";Qe("COMPARATOR");ce[Q.COMPARATOR]="^"+ce[Q.GTLT]+"\\s*("+ce[Q.FULLPLAIN]+")$|^$";Qe("COMPARATORTRIM");ce[Q.COMPARATORTRIM]="(\\s*)"+ce[Q.GTLT]+"\\s*("+ce[Q.LOOSEPLAIN]+"|"+ce[Q.XRANGEPLAIN]+")";da[Q.COMPARATORTRIM]=new RegExp(ce[Q.COMPARATORTRIM],"g");ft[Q.COMPARATORTRIM]=new RegExp(bu(ce[Q.COMPARATORTRIM]),"g");var n7="$1$2$3";Qe("HYPHENRANGE");ce[Q.HYPHENRANGE]="^\\s*("+ce[Q.XRANGEPLAIN]+")\\s+-\\s+("+ce[Q.XRANGEPLAIN]+")\\s*$";Qe("HYPHENRANGELOOSE");ce[Q.HYPHENRANGELOOSE]="^\\s*("+ce[Q.XRANGEPLAINLOOSE]+")\\s+-\\s+("+ce[Q.XRANGEPLAINLOOSE]+")\\s*$";Qe("STAR");ce[Q.STAR]="(<|>)?=?\\s*\\*";for(ii=0;ii<qC;ii++)pt(ii,ce[ii]),da[ii]||(da[ii]=new RegExp(ce[ii]),ft[ii]=new RegExp(bu(ce[ii])));var ii;je.parse=to;function to(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof Xe)return r;if(typeof r!="string"||r.length>Du)return null;var t=e.loose?ft[Q.LOOSE]:ft[Q.FULL];if(!t.test(r))return null;try{return new Xe(r,e)}catch{return null}}je.valid=i7;function i7(r,e){var t=to(r,e);return t?t.version:null}je.clean=s7;function s7(r,e){var t=to(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null}je.SemVer=Xe;function Xe(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof Xe){if(r.loose===e.loose)return r;r=r.version}else if(typeof r!="string")throw new TypeError("Invalid Version: "+r);if(r.length>Du)throw new TypeError("version is longer than "+Du+" characters");if(!(this instanceof Xe))return new Xe(r,e);pt("SemVer",r,e),this.options=e,this.loose=!!e.loose;var t=r.trim().match(e.loose?ft[Q.LOOSE]:ft[Q.FULL]);if(!t)throw new TypeError("Invalid Version: "+r);if(this.raw=r,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>$f||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$f||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$f||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var s=+n;if(s>=0&&s<$f)return s}return n}):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}Xe.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};Xe.prototype.toString=function(){return this.version};Xe.prototype.compare=function(r){return pt("SemVer.compare",this.version,this.options,r),r instanceof Xe||(r=new Xe(r,this.options)),this.compareMain(r)||this.comparePre(r)};Xe.prototype.compareMain=function(r){return r instanceof Xe||(r=new Xe(r,this.options)),eo(this.major,r.major)||eo(this.minor,r.minor)||eo(this.patch,r.patch)};Xe.prototype.comparePre=function(r){if(r instanceof Xe||(r=new Xe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;var e=0;do{var t=this.prerelease[e],n=r.prerelease[e];if(pt("prerelease compare",e,t,n),t===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(t===void 0)return-1;if(t===n)continue;return eo(t,n)}while(++e)};Xe.prototype.compareBuild=function(r){r instanceof Xe||(r=new Xe(r,this.options));var e=0;do{var t=this.build[e],n=r.build[e];if(pt("prerelease compare",e,t,n),t===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(t===void 0)return-1;if(t===n)continue;return eo(t,n)}while(++e)};Xe.prototype.inc=function(r,e){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e),this.inc("pre",e);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var t=this.prerelease.length;--t>=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+r)}return this.format(),this.raw=this.version,this};je.inc=o7;function o7(r,e,t,n){typeof t=="string"&&(n=t,t=void 0);try{return new Xe(r,t).inc(e,n).version}catch{return null}}je.diff=a7;function a7(r,e){if(bg(r,e))return null;var t=to(r),n=to(e),s="";if(t.prerelease.length||n.prerelease.length){s="pre";var i="prerelease"}for(var o in t)if((o==="major"||o==="minor"||o==="patch")&&t[o]!==n[o])return s+o;return i}je.compareIdentifiers=eo;var kC=/^[0-9]+$/;function eo(r,e){var t=kC.test(r),n=kC.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1}je.rcompareIdentifiers=c7;function c7(r,e){return eo(e,r)}je.major=u7;function u7(r,e){return new Xe(r,e).major}je.minor=l7;function l7(r,e){return new Xe(r,e).minor}je.patch=f7;function f7(r,e){return new Xe(r,e).patch}je.compare=Oi;function Oi(r,e,t){return new Xe(r,t).compare(new Xe(e,t))}je.compareLoose=p7;function p7(r,e){return Oi(r,e,!0)}je.compareBuild=d7;function d7(r,e,t){var n=new Xe(r,t),s=new Xe(e,t);return n.compare(s)||n.compareBuild(s)}je.rcompare=h7;function h7(r,e,t){return Oi(e,r,t)}je.sort=m7;function m7(r,e){return r.sort(function(t,n){return je.compareBuild(t,n,e)})}je.rsort=g7;function g7(r,e){return r.sort(function(t,n){return je.compareBuild(n,t,e)})}je.gt=xu;function xu(r,e,t){return Oi(r,e,t)>0}je.lt=Wf;function Wf(r,e,t){return Oi(r,e,t)<0}je.eq=bg;function bg(r,e,t){return Oi(r,e,t)===0}je.neq=HC;function HC(r,e,t){return Oi(r,e,t)!==0}je.gte=Pg;function Pg(r,e,t){return Oi(r,e,t)>=0}je.lte=Ig;function Ig(r,e,t){return Oi(r,e,t)<=0}je.cmp=Yf;function Yf(r,e,t,n){switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return bg(r,t,n);case"!=":return HC(r,t,n);case">":return xu(r,t,n);case">=":return Pg(r,t,n);case"<":return Wf(r,t,n);case"<=":return Ig(r,t,n);default:throw new TypeError("Invalid operator: "+e)}}je.Comparator=cn;function cn(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof cn){if(r.loose===!!e.loose)return r;r=r.value}if(!(this instanceof cn))return new cn(r,e);r=r.trim().split(/\s+/).join(" "),pt("comparator",r,e),this.options=e,this.loose=!!e.loose,this.parse(r),this.semver===ha?this.value="":this.value=this.operator+this.semver.version,pt("comp",this)}var ha={};cn.prototype.parse=function(r){var e=this.options.loose?ft[Q.COMPARATORLOOSE]:ft[Q.COMPARATOR],t=r.match(e);if(!t)throw new TypeError("Invalid comparator: "+r);this.operator=t[1]!==void 0?t[1]:"",this.operator==="="&&(this.operator=""),t[2]?this.semver=new Xe(t[2],this.options.loose):this.semver=ha};cn.prototype.toString=function(){return this.value};cn.prototype.test=function(r){if(pt("Comparator.test",r,this.options.loose),this.semver===ha||r===ha)return!0;if(typeof r=="string")try{r=new Xe(r,this.options)}catch{return!1}return Yf(r,this.operator,this.semver,this.options)};cn.prototype.intersects=function(r,e){if(!(r instanceof cn))throw new TypeError("a Comparator is required");(!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1});var t;if(this.operator==="")return this.value===""?!0:(t=new bt(r.value,e),zf(this.value,t,e));if(r.operator==="")return r.value===""?!0:(t=new bt(this.value,e),zf(r.semver,t,e));var n=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),i=this.semver.version===r.semver.version,o=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),a=Yf(this.semver,"<",r.semver,e)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),c=Yf(this.semver,">",r.semver,e)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return n||s||i&&o||a||c};je.Range=bt;function bt(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof bt)return r.loose===!!e.loose&&r.includePrerelease===!!e.includePrerelease?r:new bt(r.raw,e);if(r instanceof cn)return new bt(r.value,e);if(!(this instanceof bt))return new bt(r,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=r.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}bt.prototype.format=function(){return this.range=this.set.map(function(r){return r.join(" ").trim()}).join("||").trim(),this.range};bt.prototype.toString=function(){return this.range};bt.prototype.parseRange=function(r){var e=this.options.loose,t=e?ft[Q.HYPHENRANGELOOSE]:ft[Q.HYPHENRANGE];r=r.replace(t,D7),pt("hyphen replace",r),r=r.replace(ft[Q.COMPARATORTRIM],n7),pt("comparator trim",r,ft[Q.COMPARATORTRIM]),r=r.replace(ft[Q.TILDETRIM],t7),r=r.replace(ft[Q.CARETTRIM],r7),r=r.split(/\s+/).join(" ");var n=e?ft[Q.COMPARATORLOOSE]:ft[Q.COMPARATOR],s=r.split(" ").map(function(i){return S7(i,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter(function(i){return!!i.match(n)})),s=s.map(function(i){return new cn(i,this.options)},this),s};bt.prototype.intersects=function(r,e){if(!(r instanceof bt))throw new TypeError("a Range is required");return this.set.some(function(t){return jC(t,e)&&r.set.some(function(n){return jC(n,e)&&t.every(function(s){return n.every(function(i){return s.intersects(i,e)})})})})};function jC(r,e){for(var t=!0,n=r.slice(),s=n.pop();t&&n.length;)t=n.every(function(i){return s.intersects(i,e)}),s=n.pop();return t}je.toComparators=E7;function E7(r,e){return new bt(r,e).set.map(function(t){return t.map(function(n){return n.value}).join(" ").trim().split(" ")})}function S7(r,e){return pt("comp",r,e),r=T7(r,e),pt("caret",r),r=_7(r,e),pt("tildes",r),r=O7(r,e),pt("xrange",r),r=v7(r,e),pt("stars",r),r}function br(r){return!r||r.toLowerCase()==="x"||r==="*"}function _7(r,e){return r.trim().split(/\s+/).map(function(t){return y7(t,e)}).join(" ")}function y7(r,e){var t=e.loose?ft[Q.TILDELOOSE]:ft[Q.TILDE];return r.replace(t,function(n,s,i,o,a){pt("tilde",r,n,s,i,o,a);var c;return br(s)?c="":br(i)?c=">="+s+".0.0 <"+(+s+1)+".0.0":br(o)?c=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0":a?(pt("replaceTilde pr",a),c=">="+s+"."+i+"."+o+"-"+a+" <"+s+"."+(+i+1)+".0"):c=">="+s+"."+i+"."+o+" <"+s+"."+(+i+1)+".0",pt("tilde return",c),c})}function T7(r,e){return r.trim().split(/\s+/).map(function(t){return A7(t,e)}).join(" ")}function A7(r,e){pt("caret",r,e);var t=e.loose?ft[Q.CARETLOOSE]:ft[Q.CARET];return r.replace(t,function(n,s,i,o,a){pt("caret",r,n,s,i,o,a);var c;return br(s)?c="":br(i)?c=">="+s+".0.0 <"+(+s+1)+".0.0":br(o)?s==="0"?c=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0":c=">="+s+"."+i+".0 <"+(+s+1)+".0.0":a?(pt("replaceCaret pr",a),s==="0"?i==="0"?c=">="+s+"."+i+"."+o+"-"+a+" <"+s+"."+i+"."+(+o+1):c=">="+s+"."+i+"."+o+"-"+a+" <"+s+"."+(+i+1)+".0":c=">="+s+"."+i+"."+o+"-"+a+" <"+(+s+1)+".0.0"):(pt("no pr"),s==="0"?i==="0"?c=">="+s+"."+i+"."+o+" <"+s+"."+i+"."+(+o+1):c=">="+s+"."+i+"."+o+" <"+s+"."+(+i+1)+".0":c=">="+s+"."+i+"."+o+" <"+(+s+1)+".0.0"),pt("caret return",c),c})}function O7(r,e){return pt("replaceXRanges",r,e),r.split(/\s+/).map(function(t){return C7(t,e)}).join(" ")}function C7(r,e){r=r.trim();var t=e.loose?ft[Q.XRANGELOOSE]:ft[Q.XRANGE];return r.replace(t,function(n,s,i,o,a,c){pt("xRange",r,n,s,i,o,a,c);var u=br(i),l=u||br(o),f=l||br(a),p=f;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(l&&(o=0),a=0,s===">"?(s=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),n=s+i+"."+o+"."+a+c):l?n=">="+i+".0.0"+c+" <"+(+i+1)+".0.0"+c:f&&(n=">="+i+"."+o+".0"+c+" <"+i+"."+(+o+1)+".0"+c),pt("xRange return",n),n})}function v7(r,e){return pt("replaceStars",r,e),r.trim().replace(ft[Q.STAR],"")}function D7(r,e,t,n,s,i,o,a,c,u,l,f,p){return br(t)?e="":br(n)?e=">="+t+".0.0":br(s)?e=">="+t+"."+n+".0":e=">="+e,br(c)?a="":br(u)?a="<"+(+c+1)+".0.0":br(l)?a="<"+c+"."+(+u+1)+".0":f?a="<="+c+"."+u+"."+l+"-"+f:a="<="+a,(e+" "+a).trim()}bt.prototype.test=function(r){if(!r)return!1;if(typeof r=="string")try{r=new Xe(r,this.options)}catch{return!1}for(var e=0;e<this.set.length;e++)if(x7(this.set[e],r,this.options))return!0;return!1};function x7(r,e,t){for(var n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(n=0;n<r.length;n++)if(pt(r[n].semver),r[n].semver!==ha&&r[n].semver.prerelease.length>0){var s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}je.satisfies=zf;function zf(r,e,t){try{e=new bt(e,t)}catch{return!1}return e.test(r)}je.maxSatisfying=b7;function b7(r,e,t){var n=null,s=null;try{var i=new bt(e,t)}catch{return null}return r.forEach(function(o){i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new Xe(n,t))}),n}je.minSatisfying=P7;function P7(r,e,t){var n=null,s=null;try{var i=new bt(e,t)}catch{return null}return r.forEach(function(o){i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new Xe(n,t))}),n}je.minVersion=I7;function I7(r,e){r=new bt(r,e);var t=new Xe("0.0.0");if(r.test(t)||(t=new Xe("0.0.0-0"),r.test(t)))return t;t=null;for(var n=0;n<r.set.length;++n){var s=r.set[n];s.forEach(function(i){var o=new Xe(i.semver.version);switch(i.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!t||xu(t,o))&&(t=o);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+i.operator)}})}return t&&r.test(t)?t:null}je.validRange=w7;function w7(r,e){try{return new bt(r,e).range||"*"}catch{return null}}je.ltr=R7;function R7(r,e,t){return wg(r,e,"<",t)}je.gtr=L7;function L7(r,e,t){return wg(r,e,">",t)}je.outside=wg;function wg(r,e,t,n){r=new Xe(r,n),e=new bt(e,n);var s,i,o,a,c;switch(t){case">":s=xu,i=Ig,o=Wf,a=">",c=">=";break;case"<":s=Wf,i=Pg,o=xu,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(zf(r,e,n))return!1;for(var u=0;u<e.set.length;++u){var l=e.set[u],f=null,p=null;if(l.forEach(function(d){d.semver===ha&&(d=new cn(">=0.0.0")),f=f||d,p=p||d,s(d.semver,f.semver,n)?f=d:o(d.semver,p.semver,n)&&(p=d)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&i(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0}je.prerelease=M7;function M7(r,e){var t=to(r,e);return t&&t.prerelease.length?t.prerelease:null}je.intersects=N7;function N7(r,e,t){return r=new bt(r,t),e=new bt(e,t),r.intersects(e)}je.coerce=B7;function B7(r,e){if(r instanceof Xe)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};var t=null;if(!e.rtl)t=r.match(ft[Q.COERCE]);else{for(var n;(n=ft[Q.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),ft[Q.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ft[Q.COERCERTL].lastIndex=-1}return t===null?null:to(t[2]+"."+(t[3]||"0")+"."+(t[4]||"0"),e)}});var zC=x((D0e,YC)=>{var{execSync:U7}=W("child_process");YC.exports={node:{getVersion:"node --version",getInstallInstructions(r){return F7()?`To install node, run \`nvm install ${r}\``:`To install node, see https://nodejs.org/download/release/v${r}/`}},npm:{getVersion:"npm --version",getInstallInstructions(r){return`To install npm, run \`npm install -g npm@${r}\``}},npx:{getVersion:"npx --version",getInstallInstructions(r){return`To install npx, run \`npm install -g npx@${r}\``}},yarn:{getVersion:"yarn --version",getInstallInstructions(r){return`To install yarn, see https://github.com/yarnpkg/yarn/releases/tag/v${r}`}},pnpm:{getVersion:"pnpm --version",getInstallInstructions(r){return`To install pnpm, run \`npm install -g pnpm@${r}\``}}};function F7(){try{U7("nvm",{stdio:[]})}catch{return!1}return!0}});var ZC=x((x0e,QC)=>{"use strict";var{exec:Kf}=W("child_process"),XC=W("path"),Rg=LC(),Ng=NC(),V7=GC(),Xf=WC(),Lg=zC(),Bg=process.platform==="win32",JC=process.env.PATH,KC=Bg?";":":",G7=XC.resolve("node_modules/.bin"),k7=JC.split(KC).filter(r=>XC.resolve(r)!==G7).join(KC);QC.exports=function(e,t){typeof e=="function"&&(t=e,e=null);let n={callback:t};n.wanted=q7(e),n.commands=Ng(Object.keys(n.wanted).length?Rg(Lg,(s,i)=>n.wanted[i]):Lg,({getVersion:s})=>H7.bind(null,s)),Bg?j7(n):Mg(n)};function j7(r){Kf("chcp",(e,t)=>{let n=r.callback;if(e){n(i(e,1));return}let s=t.match(/\d+/)[0];if(s==="65001"||s==="437")return Mg(r);r.callback=(...o)=>Kf(`chcp ${s}`,a=>{if(a){n(i(a,3));return}n(...o)}),Kf("chcp 65001",o=>{if(o){n(i(o,2));return}Mg(r)});function i(o,a){switch(a){case 1:o.message=`[CHCP] error while getting current codepage:
|
|
7
|
+
var nH=Object.create;var bf=Object.defineProperty;var iH=Object.getOwnPropertyDescriptor;var sH=Object.getOwnPropertyNames;var oH=Object.getPrototypeOf,aH=Object.prototype.hasOwnProperty;var W=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var ke=(r,e)=>()=>(r&&(e=r(r=0)),e);var x=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),cH=(r,e)=>{for(var t in e)bf(r,t,{get:e[t],enumerable:!0})},vO=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of sH(e))!aH.call(r,s)&&s!==t&&bf(r,s,{get:()=>e[s],enumerable:!(n=iH(e,s))||n.enumerable});return r};var dr=(r,e,t)=>(t=r!=null?nH(oH(r)):{},vO(e||!r||!r.__esModule?bf(t,"default",{value:r,enumerable:!0}):t,r)),Ne=r=>vO(bf({},"__esModule",{value:!0}),r);var DO,xO=ke(()=>{DO=typeof globalThis=="object"?globalThis:global});var bO=ke(()=>{xO()});var PO=ke(()=>{bO()});var Ai,Q0=ke(()=>{Ai="1.8.0"});function uH(r){var e=new Set([r]),t=new Set,n=r.match(IO);if(!n)return function(){return!1};var s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(s.prerelease!=null)return function(c){return c===r};function i(a){return t.add(a),!1}function o(a){return e.add(a),!0}return function(c){if(e.has(c))return!0;if(t.has(c))return!1;var u=c.match(IO);if(!u)return i(c);var l={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return l.prerelease!=null||s.major!==l.major?i(c):s.major===0?s.minor===l.minor&&s.patch<=l.patch?o(c):i(c):s.minor<=l.minor?o(c):i(c)}}var IO,wO,RO=ke(()=>{Q0();IO=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;wO=uH(Ai)});function ri(r,e,t,n){var s;n===void 0&&(n=!1);var i=gu[mu]=(s=gu[mu])!==null&&s!==void 0?s:{version:Ai};if(!n&&i[r]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+r);return t.error(o.stack||o.message),!1}if(i.version!==Ai){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+r+" does not match previously registered API v"+Ai);return t.error(o.stack||o.message),!1}return i[r]=e,t.debug("@opentelemetry/api: Registered a global for "+r+" v"+Ai+"."),!0}function $r(r){var e,t,n=(e=gu[mu])===null||e===void 0?void 0:e.version;if(!(!n||!wO(n)))return(t=gu[mu])===null||t===void 0?void 0:t[r]}function ni(r,e){e.debug("@opentelemetry/api: Unregistering a global for "+r+" v"+Ai+".");var t=gu[mu];t&&delete t[r]}var lH,mu,gu,Qs=ke(()=>{PO();Q0();RO();lH=Ai.split(".")[0],mu=Symbol.for("opentelemetry.js.api."+lH),gu=DO});function Eu(r,e,t){var n=$r("diag");if(n)return t.unshift(e),n[r].apply(n,pH([],fH(t),!1))}var fH,pH,LO,MO=ke(()=>{Qs();fH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},pH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},LO=(function(){function r(e){this._namespace=e.namespace||"DiagComponentLogger"}return r.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("debug",this._namespace,e)},r.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("error",this._namespace,e)},r.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("info",this._namespace,e)},r.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("warn",this._namespace,e)},r.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eu("verbose",this._namespace,e)},r})()});var Ht,Pf=ke(()=>{(function(r){r[r.NONE=0]="NONE",r[r.ERROR=30]="ERROR",r[r.WARN=50]="WARN",r[r.INFO=60]="INFO",r[r.DEBUG=70]="DEBUG",r[r.VERBOSE=80]="VERBOSE",r[r.ALL=9999]="ALL"})(Ht||(Ht={}))});function NO(r,e){r<Ht.NONE?r=Ht.NONE:r>Ht.ALL&&(r=Ht.ALL),e=e||{};function t(n,s){var i=e[n];return typeof i=="function"&&r>=s?i.bind(e):function(){}}return{error:t("error",Ht.ERROR),warn:t("warn",Ht.WARN),info:t("info",Ht.INFO),debug:t("debug",Ht.DEBUG),verbose:t("verbose",Ht.VERBOSE)}}var BO=ke(()=>{Pf()});var dH,hH,mH,hr,Zs=ke(()=>{MO();BO();Pf();Qs();dH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},hH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},mH="diag",hr=(function(){function r(){function e(s){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=$r("diag");if(a)return a[s].apply(a,hH([],dH(i),!1))}}var t=this,n=function(s,i){var o,a,c;if(i===void 0&&(i={logLevel:Ht.INFO}),s===t){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error((o=u.stack)!==null&&o!==void 0?o:u.message),!1}typeof i=="number"&&(i={logLevel:i});var l=$r("diag"),f=NO((a=i.logLevel)!==null&&a!==void 0?a:Ht.INFO,s);if(l&&!i.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+p),f.warn("Current logger will overwrite one already registered from "+p)}return ri("diag",f,t,!0)};t.setLogger=n,t.disable=function(){ni(mH,t)},t.createComponentLogger=function(s){return new LO(s)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return r.instance=function(){return this._instance||(this._instance=new r),this._instance},r})()});var gH,EH,UO,FO=ke(()=>{gH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},EH=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},UO=(function(){function r(e){this._entries=e?new Map(e):new Map}return r.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},r.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=gH(e,2),n=t[0],s=t[1];return[n,s]})},r.prototype.setEntry=function(e,t){var n=new r(this._entries);return n._entries.set(e,t),n},r.prototype.removeEntry=function(e){var t=new r(this._entries);return t._entries.delete(e),t},r.prototype.removeEntries=function(){for(var e,t,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var i=new r(this._entries);try{for(var o=EH(n),a=o.next();!a.done;a=o.next()){var c=a.value;i._entries.delete(c)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i},r.prototype.clear=function(){return new r},r})()});var VO,GO=ke(()=>{VO=Symbol("BaggageEntryMetadata")});function kO(r){return r===void 0&&(r={}),new UO(new Map(Object.entries(r)))}function jO(r){return typeof r!="string"&&(SH.error("Cannot create baggage metadata from unknown type: "+typeof r),r=""),{__TYPE__:VO,toString:function(){return r}}}var SH,Z0=ke(()=>{Zs();FO();GO();SH=hr.instance()});function ua(r){return Symbol.for(r)}var _H,If,Su=ke(()=>{_H=(function(){function r(e){var t=this;t._currentContext=e?new Map(e):new Map,t.getValue=function(n){return t._currentContext.get(n)},t.setValue=function(n,s){var i=new r(t._currentContext);return i._currentContext.set(n,s),i},t.deleteValue=function(n){var s=new r(t._currentContext);return s._currentContext.delete(n),s}}return r})(),If=new _H});var eg,wf,qO=ke(()=>{eg=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],wf=(function(){function r(){function e(n){return function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(console){var o=console[n];if(typeof o!="function"&&(o=console.log),typeof o=="function")return o.apply(console,s)}}}for(var t=0;t<eg.length;t++)this[eg[t].n]=e(eg[t].c)}return r})()});function HO(){return ng}var la,yH,tg,TH,AH,OH,rg,CH,vH,DH,ng,xH,bH,PH,IH,wH,RH,ig=ke(()=>{la=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),yH=(function(){function r(){}return r.prototype.createHistogram=function(e,t){return bH},r.prototype.createCounter=function(e,t){return xH},r.prototype.createUpDownCounter=function(e,t){return PH},r.prototype.createObservableGauge=function(e,t){return wH},r.prototype.createObservableCounter=function(e,t){return IH},r.prototype.createObservableUpDownCounter=function(e,t){return RH},r.prototype.addBatchObservableCallback=function(e,t){},r.prototype.removeBatchObservableCallback=function(e){},r})(),tg=(function(){function r(){}return r})(),TH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.add=function(t,n){},e})(tg),AH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.add=function(t,n){},e})(tg),OH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.record=function(t,n){},e})(tg),rg=(function(){function r(){}return r.prototype.addCallback=function(e){},r.prototype.removeCallback=function(e){},r})(),CH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(rg),vH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(rg),DH=(function(r){la(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(rg),ng=new yH,xH=new TH,bH=new OH,PH=new AH,IH=new CH,wH=new vH,RH=new DH});var Rf,$O=ke(()=>{(function(r){r[r.INT=0]="INT",r[r.DOUBLE=1]="DOUBLE"})(Rf||(Rf={}))});var Lf,Mf,sg=ke(()=>{Lf={get:function(r,e){if(r!=null)return r[e]},keys:function(r){return r==null?[]:Object.keys(r)}},Mf={set:function(r,e,t){r!=null&&(r[e]=t)}}});var LH,MH,WO,YO=ke(()=>{Su();LH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},MH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},WO=(function(){function r(){}return r.prototype.active=function(){return If},r.prototype.with=function(e,t,n){for(var s=[],i=3;i<arguments.length;i++)s[i-3]=arguments[i];return t.call.apply(t,MH([n],LH(s),!1))},r.prototype.bind=function(e,t){return t},r.prototype.enable=function(){return this},r.prototype.disable=function(){return this},r})()});var NH,BH,og,UH,ji,_u=ke(()=>{YO();Qs();Zs();NH=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},BH=function(r,e,t){if(t||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))},og="context",UH=new WO,ji=(function(){function r(){}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalContextManager=function(e){return ri(og,e,hr.instance())},r.prototype.active=function(){return this._getContextManager().active()},r.prototype.with=function(e,t,n){for(var s,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(s=this._getContextManager()).with.apply(s,BH([e,t,n],NH(i),!1))},r.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},r.prototype._getContextManager=function(){return $r(og)||UH},r.prototype.disable=function(){this._getContextManager().disable(),ni(og,hr.instance())},r})()});var fa,ag=ke(()=>{(function(r){r[r.NONE=0]="NONE",r[r.SAMPLED=1]="SAMPLED"})(fa||(fa={}))});var yu,Tu,Nf,Bf=ke(()=>{ag();yu="0000000000000000",Tu="00000000000000000000000000000000",Nf={traceId:Tu,spanId:yu,traceFlags:fa.NONE}});var qi,Uf=ke(()=>{Bf();qi=(function(){function r(e){e===void 0&&(e=Nf),this._spanContext=e}return r.prototype.spanContext=function(){return this._spanContext},r.prototype.setAttribute=function(e,t){return this},r.prototype.setAttributes=function(e){return this},r.prototype.addEvent=function(e,t){return this},r.prototype.setStatus=function(e){return this},r.prototype.updateName=function(e){return this},r.prototype.end=function(e){},r.prototype.isRecording=function(){return!1},r.prototype.recordException=function(e,t){},r})()});function Ff(r){return r.getValue(cg)||void 0}function zO(){return Ff(ji.getInstance().active())}function Au(r,e){return r.setValue(cg,e)}function KO(r){return r.deleteValue(cg)}function XO(r,e){return Au(r,new qi(e))}function Vf(r){var e;return(e=Ff(r))===null||e===void 0?void 0:e.spanContext()}var cg,ug=ke(()=>{Su();Uf();_u();cg=ua("OpenTelemetry Context Key SPAN")});function lg(r){return FH.test(r)&&r!==Tu}function fg(r){return VH.test(r)&&r!==yu}function pa(r){return lg(r.traceId)&&fg(r.spanId)}function JO(r){return new qi(r)}var FH,VH,Gf=ke(()=>{Bf();Uf();FH=/^([0-9a-f]{32})$/i,VH=/^[0-9a-f]{16}$/i});function GH(r){return typeof r=="object"&&typeof r.spanId=="string"&&typeof r.traceId=="string"&&typeof r.traceFlags=="number"}var pg,kf,dg=ke(()=>{_u();ug();Uf();Gf();pg=ji.getInstance(),kf=(function(){function r(){}return r.prototype.startSpan=function(e,t,n){n===void 0&&(n=pg.active());var s=!!t?.root;if(s)return new qi;var i=n&&Vf(n);return GH(i)&&pa(i)?new qi(i):new qi},r.prototype.startActiveSpan=function(e,t,n,s){var i,o,a;if(!(arguments.length<2)){arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,o=n,a=s);var c=o??pg.active(),u=this.startSpan(e,i,c),l=Au(c,u);return pg.with(l,a,void 0,u)}},r})()});var kH,jf,hg=ke(()=>{dg();kH=new kf,jf=(function(){function r(e,t,n,s){this._provider=e,this.name=t,this.version=n,this.options=s}return r.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},r.prototype.startActiveSpan=function(e,t,n,s){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},r.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):kH},r})()});var QO,ZO=ke(()=>{dg();QO=(function(){function r(){}return r.prototype.getTracer=function(e,t,n){return new kf},r})()});var jH,Ou,mg=ke(()=>{hg();ZO();jH=new QO,Ou=(function(){function r(){}return r.prototype.getTracer=function(e,t,n){var s;return(s=this.getDelegateTracer(e,t,n))!==null&&s!==void 0?s:new jf(this,e,t,n)},r.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:jH},r.prototype.setDelegate=function(e){this._delegate=e},r.prototype.getDelegateTracer=function(e,t,n){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getTracer(e,t,n)},r})()});var qf,eC=ke(()=>{(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(qf||(qf={}))});var Hf,tC=ke(()=>{(function(r){r[r.INTERNAL=0]="INTERNAL",r[r.SERVER=1]="SERVER",r[r.CLIENT=2]="CLIENT",r[r.PRODUCER=3]="PRODUCER",r[r.CONSUMER=4]="CONSUMER"})(Hf||(Hf={}))});var Hi,rC=ke(()=>{(function(r){r[r.UNSET=0]="UNSET",r[r.OK=1]="OK",r[r.ERROR=2]="ERROR"})(Hi||(Hi={}))});function nC(r){return $H.test(r)}function iC(r){return WH.test(r)&&!YH.test(r)}var gg,qH,HH,$H,WH,YH,sC=ke(()=>{gg="[_0-9a-z-*/]",qH="[a-z]"+gg+"{0,255}",HH="[a-z0-9]"+gg+"{0,240}@[a-z]"+gg+"{0,13}",$H=new RegExp("^(?:"+qH+"|"+HH+")$"),WH=/^[ -~]{0,255}[!-~]$/,YH=/,|=/});var oC,zH,aC,cC,uC,lC=ke(()=>{sC();oC=32,zH=512,aC=",",cC="=",uC=(function(){function r(e){this._internalState=new Map,e&&this._parse(e)}return r.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},r.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},r.prototype.get=function(e){return this._internalState.get(e)},r.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+cC+e.get(n)),t},[]).join(aC)},r.prototype._parse=function(e){e.length>zH||(this._internalState=e.split(aC).reverse().reduce(function(t,n){var s=n.trim(),i=s.indexOf(cC);if(i!==-1){var o=s.slice(0,i),a=s.slice(i+1,n.length);nC(o)&&iC(a)&&t.set(o,a)}return t},new Map),this._internalState.size>oC&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,oC))))},r.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},r.prototype._clone=function(){var e=new r;return e._internalState=new Map(this._internalState),e},r})()});function fC(r){return new uC(r)}var pC=ke(()=>{lC()});var Eg,dC=ke(()=>{_u();Eg=ji.getInstance()});var Cu,hC=ke(()=>{Zs();Cu=hr.instance()});var KH,mC,gC=ke(()=>{ig();KH=(function(){function r(){}return r.prototype.getMeter=function(e,t,n){return ng},r})(),mC=new KH});var Sg,EC,SC=ke(()=>{gC();Qs();Zs();Sg="metrics",EC=(function(){function r(){}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalMeterProvider=function(e){return ri(Sg,e,hr.instance())},r.prototype.getMeterProvider=function(){return $r(Sg)||mC},r.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},r.prototype.disable=function(){ni(Sg,hr.instance())},r})()});var _g,_C=ke(()=>{SC();_g=EC.getInstance()});var yC,TC=ke(()=>{yC=(function(){function r(){}return r.prototype.inject=function(e,t){},r.prototype.extract=function(e,t){return e},r.prototype.fields=function(){return[]},r})()});function Tg(r){return r.getValue(yg)||void 0}function AC(){return Tg(ji.getInstance().active())}function OC(r,e){return r.setValue(yg,e)}function CC(r){return r.deleteValue(yg)}var yg,vC=ke(()=>{_u();Su();yg=ua("OpenTelemetry Baggage Key")});var Ag,XH,DC,xC=ke(()=>{Qs();TC();sg();vC();Z0();Zs();Ag="propagation",XH=new yC,DC=(function(){function r(){this.createBaggage=kO,this.getBaggage=Tg,this.getActiveBaggage=AC,this.setBaggage=OC,this.deleteBaggage=CC}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalPropagator=function(e){return ri(Ag,e,hr.instance())},r.prototype.inject=function(e,t,n){return n===void 0&&(n=Mf),this._getGlobalPropagator().inject(e,t,n)},r.prototype.extract=function(e,t,n){return n===void 0&&(n=Lf),this._getGlobalPropagator().extract(e,t,n)},r.prototype.fields=function(){return this._getGlobalPropagator().fields()},r.prototype.disable=function(){ni(Ag,hr.instance())},r.prototype._getGlobalPropagator=function(){return $r(Ag)||XH},r})()});var Og,bC=ke(()=>{xC();Og=DC.getInstance()});var Cg,PC,IC=ke(()=>{Qs();mg();Gf();ug();Zs();Cg="trace",PC=(function(){function r(){this._proxyTracerProvider=new Ou,this.wrapSpanContext=JO,this.isSpanContextValid=pa,this.deleteSpan=KO,this.getSpan=Ff,this.getActiveSpan=zO,this.getSpanContext=Vf,this.setSpan=Au,this.setSpanContext=XO}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalTracerProvider=function(e){var t=ri(Cg,this._proxyTracerProvider,hr.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},r.prototype.getTracerProvider=function(){return $r(Cg)||this._proxyTracerProvider},r.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},r.prototype.disable=function(){ni(Cg,hr.instance()),this._proxyTracerProvider=new Ou},r})()});var an,wC=ke(()=>{IC();an=PC.getInstance()});var Le={};cH(Le,{DiagConsoleLogger:()=>wf,DiagLogLevel:()=>Ht,INVALID_SPANID:()=>yu,INVALID_SPAN_CONTEXT:()=>Nf,INVALID_TRACEID:()=>Tu,ProxyTracer:()=>jf,ProxyTracerProvider:()=>Ou,ROOT_CONTEXT:()=>If,SamplingDecision:()=>qf,SpanKind:()=>Hf,SpanStatusCode:()=>Hi,TraceFlags:()=>fa,ValueType:()=>Rf,baggageEntryMetadataFromString:()=>jO,context:()=>Eg,createContextKey:()=>ua,createNoopMeter:()=>HO,createTraceState:()=>fC,default:()=>vu,defaultTextMapGetter:()=>Lf,defaultTextMapSetter:()=>Mf,diag:()=>Cu,isSpanContextValid:()=>pa,isValidSpanId:()=>fg,isValidTraceId:()=>lg,metrics:()=>_g,propagation:()=>Og,trace:()=>an});var vu,be=ke(()=>{Z0();Su();qO();Pf();ig();$O();sg();hg();mg();eC();tC();rC();ag();pC();Gf();Bf();dC();hC();_C();bC();wC();vu={context:Eg,diag:Cu,metrics:_g,propagation:Og,trace:an}});var LC=x((A0e,RC)=>{RC.exports=function(e,t,n){if(typeof t!="function")throw new TypeError("`f` has to be a function");var s={};return Object.keys(e).forEach(function(i){t.call(n||this,e[i],i,e)&&(s[i]=e[i])}),s}});var NC=x((O0e,MC)=>{"use strict";var JH=Object.prototype.hasOwnProperty;MC.exports=function(r,e){var t={};for(var n in r)JH.call(r,n)&&(t[n]=e(r[n],n,r));return t}});var FC=x((C0e,UC)=>{var BC;UC.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(BC||(BC=Promise.resolve())).then(r).catch(e=>setTimeout(()=>{throw e},0))});var GC=x((v0e,VC)=>{VC.exports=ZH;var QH=FC();function ZH(r,e){let t,n,s,i=!0;Array.isArray(r)?(t=[],n=r.length):(s=Object.keys(r),t={},n=s.length);function o(c){function u(){e&&e(c,t),e=null}i?QH(u):u()}function a(c,u,l){t[c]=l,(--n===0||u)&&o(u)}n?s?s.forEach(function(c){r[c](function(u,l){a(c,u,l)})}):r.forEach(function(c,u){c(function(l,f){a(u,l,f)})}):o(null),i=!1}});var WC=x((je,$C)=>{je=$C.exports=Xe;var pt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?pt=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER"),console.log.apply(console,r)}:pt=function(){};je.SEMVER_SPEC_VERSION="2.0.0";var Du=256,$f=Number.MAX_SAFE_INTEGER||9007199254740991,vg=16,e7=Du-6,da=je.re=[],ft=je.safeRe=[],ce=je.src=[],Q=je.tokens={},qC=0;function Qe(r){Q[r]=qC++}var xg="[a-zA-Z0-9-]",Dg=[["\\s",1],["\\d",Du],[xg,e7]];function bu(r){for(var e=0;e<Dg.length;e++){var t=Dg[e][0],n=Dg[e][1];r=r.split(t+"*").join(t+"{0,"+n+"}").split(t+"+").join(t+"{1,"+n+"}")}return r}Qe("NUMERICIDENTIFIER");ce[Q.NUMERICIDENTIFIER]="0|[1-9]\\d*";Qe("NUMERICIDENTIFIERLOOSE");ce[Q.NUMERICIDENTIFIERLOOSE]="\\d+";Qe("NONNUMERICIDENTIFIER");ce[Q.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+xg+"*";Qe("MAINVERSION");ce[Q.MAINVERSION]="("+ce[Q.NUMERICIDENTIFIER]+")\\.("+ce[Q.NUMERICIDENTIFIER]+")\\.("+ce[Q.NUMERICIDENTIFIER]+")";Qe("MAINVERSIONLOOSE");ce[Q.MAINVERSIONLOOSE]="("+ce[Q.NUMERICIDENTIFIERLOOSE]+")\\.("+ce[Q.NUMERICIDENTIFIERLOOSE]+")\\.("+ce[Q.NUMERICIDENTIFIERLOOSE]+")";Qe("PRERELEASEIDENTIFIER");ce[Q.PRERELEASEIDENTIFIER]="(?:"+ce[Q.NUMERICIDENTIFIER]+"|"+ce[Q.NONNUMERICIDENTIFIER]+")";Qe("PRERELEASEIDENTIFIERLOOSE");ce[Q.PRERELEASEIDENTIFIERLOOSE]="(?:"+ce[Q.NUMERICIDENTIFIERLOOSE]+"|"+ce[Q.NONNUMERICIDENTIFIER]+")";Qe("PRERELEASE");ce[Q.PRERELEASE]="(?:-("+ce[Q.PRERELEASEIDENTIFIER]+"(?:\\."+ce[Q.PRERELEASEIDENTIFIER]+")*))";Qe("PRERELEASELOOSE");ce[Q.PRERELEASELOOSE]="(?:-?("+ce[Q.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+ce[Q.PRERELEASEIDENTIFIERLOOSE]+")*))";Qe("BUILDIDENTIFIER");ce[Q.BUILDIDENTIFIER]=xg+"+";Qe("BUILD");ce[Q.BUILD]="(?:\\+("+ce[Q.BUILDIDENTIFIER]+"(?:\\."+ce[Q.BUILDIDENTIFIER]+")*))";Qe("FULL");Qe("FULLPLAIN");ce[Q.FULLPLAIN]="v?"+ce[Q.MAINVERSION]+ce[Q.PRERELEASE]+"?"+ce[Q.BUILD]+"?";ce[Q.FULL]="^"+ce[Q.FULLPLAIN]+"$";Qe("LOOSEPLAIN");ce[Q.LOOSEPLAIN]="[v=\\s]*"+ce[Q.MAINVERSIONLOOSE]+ce[Q.PRERELEASELOOSE]+"?"+ce[Q.BUILD]+"?";Qe("LOOSE");ce[Q.LOOSE]="^"+ce[Q.LOOSEPLAIN]+"$";Qe("GTLT");ce[Q.GTLT]="((?:<|>)?=?)";Qe("XRANGEIDENTIFIERLOOSE");ce[Q.XRANGEIDENTIFIERLOOSE]=ce[Q.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Qe("XRANGEIDENTIFIER");ce[Q.XRANGEIDENTIFIER]=ce[Q.NUMERICIDENTIFIER]+"|x|X|\\*";Qe("XRANGEPLAIN");ce[Q.XRANGEPLAIN]="[v=\\s]*("+ce[Q.XRANGEIDENTIFIER]+")(?:\\.("+ce[Q.XRANGEIDENTIFIER]+")(?:\\.("+ce[Q.XRANGEIDENTIFIER]+")(?:"+ce[Q.PRERELEASE]+")?"+ce[Q.BUILD]+"?)?)?";Qe("XRANGEPLAINLOOSE");ce[Q.XRANGEPLAINLOOSE]="[v=\\s]*("+ce[Q.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ce[Q.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ce[Q.XRANGEIDENTIFIERLOOSE]+")(?:"+ce[Q.PRERELEASELOOSE]+")?"+ce[Q.BUILD]+"?)?)?";Qe("XRANGE");ce[Q.XRANGE]="^"+ce[Q.GTLT]+"\\s*"+ce[Q.XRANGEPLAIN]+"$";Qe("XRANGELOOSE");ce[Q.XRANGELOOSE]="^"+ce[Q.GTLT]+"\\s*"+ce[Q.XRANGEPLAINLOOSE]+"$";Qe("COERCE");ce[Q.COERCE]="(^|[^\\d])(\\d{1,"+vg+"})(?:\\.(\\d{1,"+vg+"}))?(?:\\.(\\d{1,"+vg+"}))?(?:$|[^\\d])";Qe("COERCERTL");da[Q.COERCERTL]=new RegExp(ce[Q.COERCE],"g");ft[Q.COERCERTL]=new RegExp(bu(ce[Q.COERCE]),"g");Qe("LONETILDE");ce[Q.LONETILDE]="(?:~>?)";Qe("TILDETRIM");ce[Q.TILDETRIM]="(\\s*)"+ce[Q.LONETILDE]+"\\s+";da[Q.TILDETRIM]=new RegExp(ce[Q.TILDETRIM],"g");ft[Q.TILDETRIM]=new RegExp(bu(ce[Q.TILDETRIM]),"g");var t7="$1~";Qe("TILDE");ce[Q.TILDE]="^"+ce[Q.LONETILDE]+ce[Q.XRANGEPLAIN]+"$";Qe("TILDELOOSE");ce[Q.TILDELOOSE]="^"+ce[Q.LONETILDE]+ce[Q.XRANGEPLAINLOOSE]+"$";Qe("LONECARET");ce[Q.LONECARET]="(?:\\^)";Qe("CARETTRIM");ce[Q.CARETTRIM]="(\\s*)"+ce[Q.LONECARET]+"\\s+";da[Q.CARETTRIM]=new RegExp(ce[Q.CARETTRIM],"g");ft[Q.CARETTRIM]=new RegExp(bu(ce[Q.CARETTRIM]),"g");var r7="$1^";Qe("CARET");ce[Q.CARET]="^"+ce[Q.LONECARET]+ce[Q.XRANGEPLAIN]+"$";Qe("CARETLOOSE");ce[Q.CARETLOOSE]="^"+ce[Q.LONECARET]+ce[Q.XRANGEPLAINLOOSE]+"$";Qe("COMPARATORLOOSE");ce[Q.COMPARATORLOOSE]="^"+ce[Q.GTLT]+"\\s*("+ce[Q.LOOSEPLAIN]+")$|^$";Qe("COMPARATOR");ce[Q.COMPARATOR]="^"+ce[Q.GTLT]+"\\s*("+ce[Q.FULLPLAIN]+")$|^$";Qe("COMPARATORTRIM");ce[Q.COMPARATORTRIM]="(\\s*)"+ce[Q.GTLT]+"\\s*("+ce[Q.LOOSEPLAIN]+"|"+ce[Q.XRANGEPLAIN]+")";da[Q.COMPARATORTRIM]=new RegExp(ce[Q.COMPARATORTRIM],"g");ft[Q.COMPARATORTRIM]=new RegExp(bu(ce[Q.COMPARATORTRIM]),"g");var n7="$1$2$3";Qe("HYPHENRANGE");ce[Q.HYPHENRANGE]="^\\s*("+ce[Q.XRANGEPLAIN]+")\\s+-\\s+("+ce[Q.XRANGEPLAIN]+")\\s*$";Qe("HYPHENRANGELOOSE");ce[Q.HYPHENRANGELOOSE]="^\\s*("+ce[Q.XRANGEPLAINLOOSE]+")\\s+-\\s+("+ce[Q.XRANGEPLAINLOOSE]+")\\s*$";Qe("STAR");ce[Q.STAR]="(<|>)?=?\\s*\\*";for(ii=0;ii<qC;ii++)pt(ii,ce[ii]),da[ii]||(da[ii]=new RegExp(ce[ii]),ft[ii]=new RegExp(bu(ce[ii])));var ii;je.parse=to;function to(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof Xe)return r;if(typeof r!="string"||r.length>Du)return null;var t=e.loose?ft[Q.LOOSE]:ft[Q.FULL];if(!t.test(r))return null;try{return new Xe(r,e)}catch{return null}}je.valid=i7;function i7(r,e){var t=to(r,e);return t?t.version:null}je.clean=s7;function s7(r,e){var t=to(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null}je.SemVer=Xe;function Xe(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof Xe){if(r.loose===e.loose)return r;r=r.version}else if(typeof r!="string")throw new TypeError("Invalid Version: "+r);if(r.length>Du)throw new TypeError("version is longer than "+Du+" characters");if(!(this instanceof Xe))return new Xe(r,e);pt("SemVer",r,e),this.options=e,this.loose=!!e.loose;var t=r.trim().match(e.loose?ft[Q.LOOSE]:ft[Q.FULL]);if(!t)throw new TypeError("Invalid Version: "+r);if(this.raw=r,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>$f||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$f||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$f||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var s=+n;if(s>=0&&s<$f)return s}return n}):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}Xe.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};Xe.prototype.toString=function(){return this.version};Xe.prototype.compare=function(r){return pt("SemVer.compare",this.version,this.options,r),r instanceof Xe||(r=new Xe(r,this.options)),this.compareMain(r)||this.comparePre(r)};Xe.prototype.compareMain=function(r){return r instanceof Xe||(r=new Xe(r,this.options)),eo(this.major,r.major)||eo(this.minor,r.minor)||eo(this.patch,r.patch)};Xe.prototype.comparePre=function(r){if(r instanceof Xe||(r=new Xe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;var e=0;do{var t=this.prerelease[e],n=r.prerelease[e];if(pt("prerelease compare",e,t,n),t===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(t===void 0)return-1;if(t===n)continue;return eo(t,n)}while(++e)};Xe.prototype.compareBuild=function(r){r instanceof Xe||(r=new Xe(r,this.options));var e=0;do{var t=this.build[e],n=r.build[e];if(pt("prerelease compare",e,t,n),t===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(t===void 0)return-1;if(t===n)continue;return eo(t,n)}while(++e)};Xe.prototype.inc=function(r,e){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e),this.inc("pre",e);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var t=this.prerelease.length;--t>=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+r)}return this.format(),this.raw=this.version,this};je.inc=o7;function o7(r,e,t,n){typeof t=="string"&&(n=t,t=void 0);try{return new Xe(r,t).inc(e,n).version}catch{return null}}je.diff=a7;function a7(r,e){if(bg(r,e))return null;var t=to(r),n=to(e),s="";if(t.prerelease.length||n.prerelease.length){s="pre";var i="prerelease"}for(var o in t)if((o==="major"||o==="minor"||o==="patch")&&t[o]!==n[o])return s+o;return i}je.compareIdentifiers=eo;var kC=/^[0-9]+$/;function eo(r,e){var t=kC.test(r),n=kC.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1}je.rcompareIdentifiers=c7;function c7(r,e){return eo(e,r)}je.major=u7;function u7(r,e){return new Xe(r,e).major}je.minor=l7;function l7(r,e){return new Xe(r,e).minor}je.patch=f7;function f7(r,e){return new Xe(r,e).patch}je.compare=Oi;function Oi(r,e,t){return new Xe(r,t).compare(new Xe(e,t))}je.compareLoose=p7;function p7(r,e){return Oi(r,e,!0)}je.compareBuild=d7;function d7(r,e,t){var n=new Xe(r,t),s=new Xe(e,t);return n.compare(s)||n.compareBuild(s)}je.rcompare=h7;function h7(r,e,t){return Oi(e,r,t)}je.sort=m7;function m7(r,e){return r.sort(function(t,n){return je.compareBuild(t,n,e)})}je.rsort=g7;function g7(r,e){return r.sort(function(t,n){return je.compareBuild(n,t,e)})}je.gt=xu;function xu(r,e,t){return Oi(r,e,t)>0}je.lt=Wf;function Wf(r,e,t){return Oi(r,e,t)<0}je.eq=bg;function bg(r,e,t){return Oi(r,e,t)===0}je.neq=HC;function HC(r,e,t){return Oi(r,e,t)!==0}je.gte=Pg;function Pg(r,e,t){return Oi(r,e,t)>=0}je.lte=Ig;function Ig(r,e,t){return Oi(r,e,t)<=0}je.cmp=Yf;function Yf(r,e,t,n){switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return bg(r,t,n);case"!=":return HC(r,t,n);case">":return xu(r,t,n);case">=":return Pg(r,t,n);case"<":return Wf(r,t,n);case"<=":return Ig(r,t,n);default:throw new TypeError("Invalid operator: "+e)}}je.Comparator=cn;function cn(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof cn){if(r.loose===!!e.loose)return r;r=r.value}if(!(this instanceof cn))return new cn(r,e);r=r.trim().split(/\s+/).join(" "),pt("comparator",r,e),this.options=e,this.loose=!!e.loose,this.parse(r),this.semver===ha?this.value="":this.value=this.operator+this.semver.version,pt("comp",this)}var ha={};cn.prototype.parse=function(r){var e=this.options.loose?ft[Q.COMPARATORLOOSE]:ft[Q.COMPARATOR],t=r.match(e);if(!t)throw new TypeError("Invalid comparator: "+r);this.operator=t[1]!==void 0?t[1]:"",this.operator==="="&&(this.operator=""),t[2]?this.semver=new Xe(t[2],this.options.loose):this.semver=ha};cn.prototype.toString=function(){return this.value};cn.prototype.test=function(r){if(pt("Comparator.test",r,this.options.loose),this.semver===ha||r===ha)return!0;if(typeof r=="string")try{r=new Xe(r,this.options)}catch{return!1}return Yf(r,this.operator,this.semver,this.options)};cn.prototype.intersects=function(r,e){if(!(r instanceof cn))throw new TypeError("a Comparator is required");(!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1});var t;if(this.operator==="")return this.value===""?!0:(t=new bt(r.value,e),zf(this.value,t,e));if(r.operator==="")return r.value===""?!0:(t=new bt(this.value,e),zf(r.semver,t,e));var n=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),i=this.semver.version===r.semver.version,o=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),a=Yf(this.semver,"<",r.semver,e)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),c=Yf(this.semver,">",r.semver,e)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return n||s||i&&o||a||c};je.Range=bt;function bt(r,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),r instanceof bt)return r.loose===!!e.loose&&r.includePrerelease===!!e.includePrerelease?r:new bt(r.raw,e);if(r instanceof cn)return new bt(r.value,e);if(!(this instanceof bt))return new bt(r,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=r.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}bt.prototype.format=function(){return this.range=this.set.map(function(r){return r.join(" ").trim()}).join("||").trim(),this.range};bt.prototype.toString=function(){return this.range};bt.prototype.parseRange=function(r){var e=this.options.loose,t=e?ft[Q.HYPHENRANGELOOSE]:ft[Q.HYPHENRANGE];r=r.replace(t,D7),pt("hyphen replace",r),r=r.replace(ft[Q.COMPARATORTRIM],n7),pt("comparator trim",r,ft[Q.COMPARATORTRIM]),r=r.replace(ft[Q.TILDETRIM],t7),r=r.replace(ft[Q.CARETTRIM],r7),r=r.split(/\s+/).join(" ");var n=e?ft[Q.COMPARATORLOOSE]:ft[Q.COMPARATOR],s=r.split(" ").map(function(i){return S7(i,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter(function(i){return!!i.match(n)})),s=s.map(function(i){return new cn(i,this.options)},this),s};bt.prototype.intersects=function(r,e){if(!(r instanceof bt))throw new TypeError("a Range is required");return this.set.some(function(t){return jC(t,e)&&r.set.some(function(n){return jC(n,e)&&t.every(function(s){return n.every(function(i){return s.intersects(i,e)})})})})};function jC(r,e){for(var t=!0,n=r.slice(),s=n.pop();t&&n.length;)t=n.every(function(i){return s.intersects(i,e)}),s=n.pop();return t}je.toComparators=E7;function E7(r,e){return new bt(r,e).set.map(function(t){return t.map(function(n){return n.value}).join(" ").trim().split(" ")})}function S7(r,e){return pt("comp",r,e),r=T7(r,e),pt("caret",r),r=_7(r,e),pt("tildes",r),r=O7(r,e),pt("xrange",r),r=v7(r,e),pt("stars",r),r}function br(r){return!r||r.toLowerCase()==="x"||r==="*"}function _7(r,e){return r.trim().split(/\s+/).map(function(t){return y7(t,e)}).join(" ")}function y7(r,e){var t=e.loose?ft[Q.TILDELOOSE]:ft[Q.TILDE];return r.replace(t,function(n,s,i,o,a){pt("tilde",r,n,s,i,o,a);var c;return br(s)?c="":br(i)?c=">="+s+".0.0 <"+(+s+1)+".0.0":br(o)?c=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0":a?(pt("replaceTilde pr",a),c=">="+s+"."+i+"."+o+"-"+a+" <"+s+"."+(+i+1)+".0"):c=">="+s+"."+i+"."+o+" <"+s+"."+(+i+1)+".0",pt("tilde return",c),c})}function T7(r,e){return r.trim().split(/\s+/).map(function(t){return A7(t,e)}).join(" ")}function A7(r,e){pt("caret",r,e);var t=e.loose?ft[Q.CARETLOOSE]:ft[Q.CARET];return r.replace(t,function(n,s,i,o,a){pt("caret",r,n,s,i,o,a);var c;return br(s)?c="":br(i)?c=">="+s+".0.0 <"+(+s+1)+".0.0":br(o)?s==="0"?c=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0":c=">="+s+"."+i+".0 <"+(+s+1)+".0.0":a?(pt("replaceCaret pr",a),s==="0"?i==="0"?c=">="+s+"."+i+"."+o+"-"+a+" <"+s+"."+i+"."+(+o+1):c=">="+s+"."+i+"."+o+"-"+a+" <"+s+"."+(+i+1)+".0":c=">="+s+"."+i+"."+o+"-"+a+" <"+(+s+1)+".0.0"):(pt("no pr"),s==="0"?i==="0"?c=">="+s+"."+i+"."+o+" <"+s+"."+i+"."+(+o+1):c=">="+s+"."+i+"."+o+" <"+s+"."+(+i+1)+".0":c=">="+s+"."+i+"."+o+" <"+(+s+1)+".0.0"),pt("caret return",c),c})}function O7(r,e){return pt("replaceXRanges",r,e),r.split(/\s+/).map(function(t){return C7(t,e)}).join(" ")}function C7(r,e){r=r.trim();var t=e.loose?ft[Q.XRANGELOOSE]:ft[Q.XRANGE];return r.replace(t,function(n,s,i,o,a,c){pt("xRange",r,n,s,i,o,a,c);var u=br(i),l=u||br(o),f=l||br(a),p=f;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(l&&(o=0),a=0,s===">"?(s=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),n=s+i+"."+o+"."+a+c):l?n=">="+i+".0.0"+c+" <"+(+i+1)+".0.0"+c:f&&(n=">="+i+"."+o+".0"+c+" <"+i+"."+(+o+1)+".0"+c),pt("xRange return",n),n})}function v7(r,e){return pt("replaceStars",r,e),r.trim().replace(ft[Q.STAR],"")}function D7(r,e,t,n,s,i,o,a,c,u,l,f,p){return br(t)?e="":br(n)?e=">="+t+".0.0":br(s)?e=">="+t+"."+n+".0":e=">="+e,br(c)?a="":br(u)?a="<"+(+c+1)+".0.0":br(l)?a="<"+c+"."+(+u+1)+".0":f?a="<="+c+"."+u+"."+l+"-"+f:a="<="+a,(e+" "+a).trim()}bt.prototype.test=function(r){if(!r)return!1;if(typeof r=="string")try{r=new Xe(r,this.options)}catch{return!1}for(var e=0;e<this.set.length;e++)if(x7(this.set[e],r,this.options))return!0;return!1};function x7(r,e,t){for(var n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(n=0;n<r.length;n++)if(pt(r[n].semver),r[n].semver!==ha&&r[n].semver.prerelease.length>0){var s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}je.satisfies=zf;function zf(r,e,t){try{e=new bt(e,t)}catch{return!1}return e.test(r)}je.maxSatisfying=b7;function b7(r,e,t){var n=null,s=null;try{var i=new bt(e,t)}catch{return null}return r.forEach(function(o){i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new Xe(n,t))}),n}je.minSatisfying=P7;function P7(r,e,t){var n=null,s=null;try{var i=new bt(e,t)}catch{return null}return r.forEach(function(o){i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new Xe(n,t))}),n}je.minVersion=I7;function I7(r,e){r=new bt(r,e);var t=new Xe("0.0.0");if(r.test(t)||(t=new Xe("0.0.0-0"),r.test(t)))return t;t=null;for(var n=0;n<r.set.length;++n){var s=r.set[n];s.forEach(function(i){var o=new Xe(i.semver.version);switch(i.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!t||xu(t,o))&&(t=o);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+i.operator)}})}return t&&r.test(t)?t:null}je.validRange=w7;function w7(r,e){try{return new bt(r,e).range||"*"}catch{return null}}je.ltr=R7;function R7(r,e,t){return wg(r,e,"<",t)}je.gtr=L7;function L7(r,e,t){return wg(r,e,">",t)}je.outside=wg;function wg(r,e,t,n){r=new Xe(r,n),e=new bt(e,n);var s,i,o,a,c;switch(t){case">":s=xu,i=Ig,o=Wf,a=">",c=">=";break;case"<":s=Wf,i=Pg,o=xu,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(zf(r,e,n))return!1;for(var u=0;u<e.set.length;++u){var l=e.set[u],f=null,p=null;if(l.forEach(function(d){d.semver===ha&&(d=new cn(">=0.0.0")),f=f||d,p=p||d,s(d.semver,f.semver,n)?f=d:o(d.semver,p.semver,n)&&(p=d)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&i(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0}je.prerelease=M7;function M7(r,e){var t=to(r,e);return t&&t.prerelease.length?t.prerelease:null}je.intersects=N7;function N7(r,e,t){return r=new bt(r,t),e=new bt(e,t),r.intersects(e)}je.coerce=B7;function B7(r,e){if(r instanceof Xe)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};var t=null;if(!e.rtl)t=r.match(ft[Q.COERCE]);else{for(var n;(n=ft[Q.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),ft[Q.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ft[Q.COERCERTL].lastIndex=-1}return t===null?null:to(t[2]+"."+(t[3]||"0")+"."+(t[4]||"0"),e)}});var zC=x((D0e,YC)=>{var{execSync:U7}=W("child_process");YC.exports={node:{getVersion:"node --version",getInstallInstructions(r){return F7()?`To install node, run \`nvm install ${r}\``:`To install node, see https://nodejs.org/download/release/v${r}/`}},npm:{getVersion:"npm --version",getInstallInstructions(r){return`To install npm, run \`npm install -g npm@${r}\``}},npx:{getVersion:"npx --version",getInstallInstructions(r){return`To install npx, run \`npm install -g npx@${r}\``}},yarn:{getVersion:"yarn --version",getInstallInstructions(r){return`To install yarn, see https://github.com/yarnpkg/yarn/releases/tag/v${r}`}},pnpm:{getVersion:"pnpm --version",getInstallInstructions(r){return`To install pnpm, run \`npm install -g pnpm@${r}\``}}};function F7(){try{U7("nvm",{stdio:[]})}catch{return!1}return!0}});var ZC=x((x0e,QC)=>{"use strict";var{exec:Kf}=W("child_process"),XC=W("path"),Rg=LC(),Ng=NC(),V7=GC(),Xf=WC(),Lg=zC(),Bg=process.platform==="win32",JC=process.env.PATH,KC=Bg?";":":",G7=XC.resolve("node_modules/.bin"),k7=JC.split(KC).filter(r=>XC.resolve(r)!==G7).join(KC);QC.exports=function(e,t){typeof e=="function"&&(t=e,e=null);let n={callback:t};n.wanted=q7(e),n.commands=Ng(Object.keys(n.wanted).length?Rg(Lg,(s,i)=>n.wanted[i]):Lg,({getVersion:s})=>H7.bind(null,s)),Bg?j7(n):Mg(n)};function j7(r){Kf("chcp",(e,t)=>{let n=r.callback;if(e){n(i(e,1));return}let s=t.match(/\d+/)[0];if(s==="65001"||s==="437")return Mg(r);r.callback=(...o)=>Kf(`chcp ${s}`,a=>{if(a){n(i(a,3));return}n(...o)}),Kf("chcp 65001",o=>{if(o){n(i(o,2));return}Mg(r)});function i(o,a){switch(a){case 1:o.message=`[CHCP] error while getting current codepage:
|
|
8
8
|
${o.message}`;break;case 2:o.message=`[CHCP] error while switching to Unicode codepage:
|
|
9
9
|
${o.message}`;break;case 3:o.message=`
|
|
10
10
|
[CHCP] error while resetting current codepage:
|
|
@@ -158,7 +158,7 @@ ${e}`),this.spinner.enabled&&(e=`${this.spinner.characters[this.spinnerIndex]} $
|
|
|
158
158
|
To resolve the conflict:`,(0,fm.getConflictResolutionRecipe)(i,e))),n=s):fk.diag.warn("A view or instrument with the name ",e.name,` has already been registered and is incompatible with another registered view.
|
|
159
159
|
`,`Details:
|
|
160
160
|
`,(0,fm.getIncompatibilityDetails)(i,e),`To resolve the conflict:
|
|
161
|
-
`,(0,fm.getConflictResolutionRecipe)(i,e))}return n}};pm.MetricStorageRegistry=SA});var dk=x(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.MultiMetricStorage=void 0;var _A=class{constructor(e){this._backingStorages=e}record(e,t,n,s){this._backingStorages.forEach(i=>{i.record(e,t,n,s)})}};dm.MultiMetricStorage=_A});var mk=x(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.BatchObservableResultImpl=Rc.ObservableResultImpl=void 0;var wc=(be(),Ne(Le)),hk=Yl(),qoe=im(),yA=class{constructor(e,t){this._instrumentName=e,this._valueType=t,this._buffer=new hk.AttributeHashMap}observe(e,t={}){if(typeof e!="number"){wc.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${e}`);return}this._valueType===wc.ValueType.INT&&!Number.isInteger(e)&&(wc.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(t,e)}};Rc.ObservableResultImpl=yA;var TA=class{constructor(){this._buffer=new Map}observe(e,t,n={}){if(!(0,qoe.isObservableInstrument)(e))return;let s=this._buffer.get(e);if(s==null&&(s=new hk.AttributeHashMap,this._buffer.set(e,s)),typeof t!="number"){wc.diag.warn(`non-number value provided to metric ${e._descriptor.name}: ${t}`);return}e._descriptor.valueType===wc.ValueType.INT&&!Number.isInteger(t)&&(wc.diag.warn(`INT value type cannot accept a floating-point value for ${e._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||s.set(n,t)}};Rc.BatchObservableResultImpl=TA});var Sk=x(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.ObservableRegistry=void 0;var Hoe=(be(),Ne(Le)),gk=im(),Ek=mk(),zl=hi(),AA=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(e,t){this._findCallback(e,t)>=0||this._callbacks.push({callback:e,instrument:t})}removeCallback(e,t){let n=this._findCallback(e,t);n<0||this._callbacks.splice(n,1)}addBatchCallback(e,t){let n=new Set(t.filter(gk.isObservableInstrument));if(n.size===0){Hoe.diag.error("BatchObservableCallback is not associated with valid instruments",t);return}this._findBatchCallback(e,n)>=0||this._batchCallbacks.push({callback:e,instruments:n})}removeBatchCallback(e,t){let n=new Set(t.filter(gk.isObservableInstrument)),s=this._findBatchCallback(e,n);s<0||this._batchCallbacks.splice(s,1)}async observe(e,t){let n=this._observeCallbacks(e,t),s=this._observeBatchCallbacks(e,t);return(await(0,zl.PromiseAllSettled)([...n,...s])).filter(zl.isPromiseAllSettledRejectionResult).map(a=>a.reason)}_observeCallbacks(e,t){return this._callbacks.map(async({callback:n,instrument:s})=>{let i=new Ek.ObservableResultImpl(s._descriptor.name,s._descriptor.valueType),o=Promise.resolve(n(i));t!=null&&(o=(0,zl.callWithTimeout)(o,t)),await o,s._metricStorages.forEach(a=>{a.record(i._buffer,e)})})}_observeBatchCallbacks(e,t){return this._batchCallbacks.map(async({callback:n,instruments:s})=>{let i=new Ek.BatchObservableResultImpl,o=Promise.resolve(n(i));t!=null&&(o=(0,zl.callWithTimeout)(o,t)),await o,s.forEach(a=>{let c=i._buffer.get(a);c!=null&&a._metricStorages.forEach(u=>{u.record(c,e)})})})}_findCallback(e,t){return this._callbacks.findIndex(n=>n.callback===e&&n.instrument===t)}_findBatchCallback(e,t){return this._batchCallbacks.findIndex(n=>n.callback===e&&(0,zl.setEquals)(n.instruments,t))}};hm.ObservableRegistry=AA});var _k=x(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.SyncMetricStorage=void 0;var $oe=lA(),Woe=hA(),Yoe=gA(),OA=class extends $oe.MetricStorage{constructor(e,t,n,s){super(e),this._attributesProcessor=n,this._deltaMetricStorage=new Woe.DeltaMetricProcessor(t),this._temporalMetricStorage=new Yoe.TemporalMetricProcessor(t,s)}record(e,t,n,s){t=this._attributesProcessor.process(t,n),this._deltaMetricStorage.record(e,t,n,s)}collect(e,t){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,n,t)}};mm.SyncMetricStorage=OA});var vA=x(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.FilteringAttributesProcessor=Es.NoopAttributesProcessor=Es.AttributesProcessor=void 0;var Kl=class{static Noop(){return zoe}};Es.AttributesProcessor=Kl;var gm=class extends Kl{process(e,t){return e}};Es.NoopAttributesProcessor=gm;var CA=class extends Kl{constructor(e){super(),this._allowedAttributeNames=e}process(e,t){let n={};return Object.keys(e).filter(s=>this._allowedAttributeNames.includes(s)).forEach(s=>n[s]=e[s]),n}};Es.FilteringAttributesProcessor=CA;var zoe=new gm});var yk=x(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.MeterSharedState=void 0;var Koe=wi(),Xoe=ik(),Joe=hi(),Qoe=sk(),Zoe=pk(),eae=dk(),tae=Sk(),rae=_k(),nae=vA(),DA=class{constructor(e,t){this._meterProviderSharedState=e,this._instrumentationScope=t,this.metricStorageRegistry=new Zoe.MetricStorageRegistry,this.observableRegistry=new tae.ObservableRegistry,this.meter=new Xoe.Meter(this)}registerMetricStorage(e){let t=this._registerMetricStorage(e,rae.SyncMetricStorage);return t.length===1?t[0]:new eae.MultiMetricStorage(t)}registerAsyncMetricStorage(e){return this._registerMetricStorage(e,Qoe.AsyncMetricStorage)}async collect(e,t,n){let s=await this.observableRegistry.observe(t,n?.timeoutMillis),i=this.metricStorageRegistry.getStorages(e);if(i.length===0)return null;let o=i.map(a=>a.collect(e,t)).filter(Joe.isNotNullish);return o.length===0?{errors:s}:{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:s}}_registerMetricStorage(e,t){let s=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope).map(i=>{let o=(0,Koe.createInstrumentDescriptorWithView)(i,e),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(o);if(a!=null)return a;let c=i.aggregation.createAggregator(o),u=new t(o,c,i.attributesProcessor,this._meterProviderSharedState.metricCollectors);return this.metricStorageRegistry.register(u),u});if(s.length===0){let o=this._meterProviderSharedState.selectAggregations(e.type).map(([a,c])=>{let u=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,e);if(u!=null)return u;let l=c.createAggregator(e),f=new t(e,l,nae.AttributesProcessor.Noop(),[a]);return this.metricStorageRegistry.registerForCollector(a,f),f});s=s.concat(o)}return s}};Em.MeterSharedState=DA});var Tk=x(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.MeterProviderSharedState=void 0;var iae=hi(),sae=nk(),oae=yk(),xA=class{constructor(e){this.resource=e,this.viewRegistry=new sae.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(e){let t=(0,iae.instrumentationScopeId)(e),n=this.meterSharedStates.get(t);return n==null&&(n=new oae.MeterSharedState(this,e),this.meterSharedStates.set(t,n)),n}selectAggregations(e){let t=[];for(let n of this.metricCollectors)t.push([n,n.selectAggregation(e)]);return t}};Sm.MeterProviderSharedState=xA});var Ak=x(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.MetricCollector=void 0;var aae=lt(),bA=class{constructor(e,t){this._sharedState=e,this._metricReader=t}async collect(e){let t=(0,aae.millisToHrTime)(Date.now()),n=[],s=[],i=Array.from(this._sharedState.meterSharedStates.values()).map(async o=>{let a=await o.collect(this,t,e);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&s.push(...a.errors)});return await Promise.all(i),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:s}}async forceFlush(e){await this._metricReader.forceFlush(e)}async shutdown(e){await this._metricReader.shutdown(e)}selectAggregationTemporality(e){return this._metricReader.selectAggregationTemporality(e)}selectAggregation(e){return this._metricReader.selectAggregation(e)}};_m.MetricCollector=bA});var Ck=x(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.MeterProvider=void 0;var ym=(be(),Ne(Le)),Ok=Cc(),cae=Tk(),uae=Ak(),PA=class{constructor(e){var t;this._shutdown=!1;let n=Ok.Resource.default().merge((t=e?.resource)!==null&&t!==void 0?t:Ok.Resource.empty());if(this._sharedState=new cae.MeterProviderSharedState(n),e?.views!=null&&e.views.length>0)for(let s of e.views)this._sharedState.viewRegistry.addView(s);if(e?.readers!=null&&e.readers.length>0)for(let s of e.readers)this.addMetricReader(s)}getMeter(e,t="",n={}){return this._shutdown?(ym.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,ym.createNoopMeter)()):this._sharedState.getMeterSharedState({name:e,version:t,schemaUrl:n.schemaUrl}).meter}addMetricReader(e){let t=new uae.MetricCollector(this._sharedState,e);e.setMetricProducer(t),this._sharedState.metricCollectors.push(t)}async shutdown(e){if(this._shutdown){ym.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(t=>t.shutdown(e)))}async forceFlush(e){if(this._shutdown){ym.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(t=>t.forceFlush(e)))}};Tm.MeterProvider=PA});var Am=x(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.ExactPredicate=Lc.PatternPredicate=void 0;var lae=/[\^$\\.+?()[\]{}|]/g,IA=class r{constructor(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(e)))}match(e){return this._matchAll?!0:this._regexp.test(e)}static escapePattern(e){return`^${e.replace(lae,"\\$&").replace("*",".*")}$`}static hasWildcard(e){return e.includes("*")}};Lc.PatternPredicate=IA;var wA=class{constructor(e){this._matchAll=e===void 0,this._pattern=e}match(e){return!!(this._matchAll||e===this._pattern)}};Lc.ExactPredicate=wA});var Dk=x(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.InstrumentSelector=void 0;var vk=Am(),RA=class{constructor(e){var t;this._nameFilter=new vk.PatternPredicate((t=e?.name)!==null&&t!==void 0?t:"*"),this._type=e?.type,this._unitFilter=new vk.ExactPredicate(e?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};Om.InstrumentSelector=RA});var xk=x(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.MeterSelector=void 0;var LA=Am(),MA=class{constructor(e){this._nameFilter=new LA.ExactPredicate(e?.name),this._versionFilter=new LA.ExactPredicate(e?.version),this._schemaUrlFilter=new LA.ExactPredicate(e?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};Cm.MeterSelector=MA});var Pk=x(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.View=void 0;var fae=Am(),bk=vA(),pae=Dk(),dae=xk(),hae=bh();function mae(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}var NA=class{constructor(e){var t;if(mae(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||fae.PatternPredicate.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new bk.FilteringAttributesProcessor(e.attributeKeys):this.attributesProcessor=bk.AttributesProcessor.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(t=e.aggregation)!==null&&t!==void 0?t:hae.Aggregation.Default(),this.instrumentSelector=new pae.InstrumentSelector({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new dae.MeterSelector({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}};vm.View=NA});var Ik=x(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.TimeoutError=et.View=et.Aggregation=et.SumAggregation=et.LastValueAggregation=et.HistogramAggregation=et.DropAggregation=et.ExponentialHistogramAggregation=et.ExplicitBucketHistogramAggregation=et.DefaultAggregation=et.MeterProvider=et.InstrumentType=et.ConsoleMetricExporter=et.InMemoryMetricExporter=et.PeriodicExportingMetricReader=et.MetricReader=et.DataPointType=et.AggregationTemporality=void 0;var gae=hh();Object.defineProperty(et,"AggregationTemporality",{enumerable:!0,get:function(){return gae.AggregationTemporality}});var Eae=cc();Object.defineProperty(et,"DataPointType",{enumerable:!0,get:function(){return Eae.DataPointType}});var Sae=RT();Object.defineProperty(et,"MetricReader",{enumerable:!0,get:function(){return Sae.MetricReader}});var _ae=A8();Object.defineProperty(et,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return _ae.PeriodicExportingMetricReader}});var yae=C8();Object.defineProperty(et,"InMemoryMetricExporter",{enumerable:!0,get:function(){return yae.InMemoryMetricExporter}});var Tae=D8();Object.defineProperty(et,"ConsoleMetricExporter",{enumerable:!0,get:function(){return Tae.ConsoleMetricExporter}});var Aae=wi();Object.defineProperty(et,"InstrumentType",{enumerable:!0,get:function(){return Aae.InstrumentType}});var Oae=Ck();Object.defineProperty(et,"MeterProvider",{enumerable:!0,get:function(){return Oae.MeterProvider}});var Ss=bh();Object.defineProperty(et,"DefaultAggregation",{enumerable:!0,get:function(){return Ss.DefaultAggregation}});Object.defineProperty(et,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return Ss.ExplicitBucketHistogramAggregation}});Object.defineProperty(et,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return Ss.ExponentialHistogramAggregation}});Object.defineProperty(et,"DropAggregation",{enumerable:!0,get:function(){return Ss.DropAggregation}});Object.defineProperty(et,"HistogramAggregation",{enumerable:!0,get:function(){return Ss.HistogramAggregation}});Object.defineProperty(et,"LastValueAggregation",{enumerable:!0,get:function(){return Ss.LastValueAggregation}});Object.defineProperty(et,"SumAggregation",{enumerable:!0,get:function(){return Ss.SumAggregation}});Object.defineProperty(et,"Aggregation",{enumerable:!0,get:function(){return Ss.Aggregation}});var Cae=Pk();Object.defineProperty(et,"View",{enumerable:!0,get:function(){return Cae.View}});var vae=hi();Object.defineProperty(et,"TimeoutError",{enumerable:!0,get:function(){return vae.TimeoutError}})});var Nk=x(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.toMetric=_s.toScopeMetrics=_s.toResourceMetrics=void 0;var wk=(be(),Ne(Le)),Mc=Ik(),Dm=Bl(),Dae=Ml();function xae(r,e){let t=(0,Dae.getOtlpEncoder)(e);return{resource:{attributes:(0,Dm.toAttributes)(r.resource.attributes),droppedAttributesCount:0},schemaUrl:void 0,scopeMetrics:Lk(r.scopeMetrics,t)}}_s.toResourceMetrics=xae;function Lk(r,e){return Array.from(r.map(t=>({scope:{name:t.scope.name,version:t.scope.version},metrics:t.metrics.map(n=>Mk(n,e)),schemaUrl:t.scope.schemaUrl})))}_s.toScopeMetrics=Lk;function Mk(r,e){let t={name:r.descriptor.name,description:r.descriptor.description,unit:r.descriptor.unit},n=wae(r.aggregationTemporality);switch(r.dataPointType){case Mc.DataPointType.SUM:t.sum={aggregationTemporality:n,isMonotonic:r.isMonotonic,dataPoints:Rk(r,e)};break;case Mc.DataPointType.GAUGE:t.gauge={dataPoints:Rk(r,e)};break;case Mc.DataPointType.HISTOGRAM:t.histogram={aggregationTemporality:n,dataPoints:Pae(r,e)};break;case Mc.DataPointType.EXPONENTIAL_HISTOGRAM:t.exponentialHistogram={aggregationTemporality:n,dataPoints:Iae(r,e)};break}return t}_s.toMetric=Mk;function bae(r,e,t){let n={attributes:(0,Dm.toAttributes)(r.attributes),startTimeUnixNano:t.encodeHrTime(r.startTime),timeUnixNano:t.encodeHrTime(r.endTime)};switch(e){case wk.ValueType.INT:n.asInt=r.value;break;case wk.ValueType.DOUBLE:n.asDouble=r.value;break}return n}function Rk(r,e){return r.dataPoints.map(t=>bae(t,r.descriptor.valueType,e))}function Pae(r,e){return r.dataPoints.map(t=>{let n=t.value;return{attributes:(0,Dm.toAttributes)(t.attributes),bucketCounts:n.buckets.counts,explicitBounds:n.buckets.boundaries,count:n.count,sum:n.sum,min:n.min,max:n.max,startTimeUnixNano:e.encodeHrTime(t.startTime),timeUnixNano:e.encodeHrTime(t.endTime)}})}function Iae(r,e){return r.dataPoints.map(t=>{let n=t.value;return{attributes:(0,Dm.toAttributes)(t.attributes),count:n.count,min:n.min,max:n.max,sum:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},scale:n.scale,zeroCount:n.zeroCount,startTimeUnixNano:e.encodeHrTime(t.startTime),timeUnixNano:e.encodeHrTime(t.endTime)}})}function wae(r){switch(r){case Mc.AggregationTemporality.DELTA:return 1;case Mc.AggregationTemporality.CUMULATIVE:return 2}}});var Bk=x(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.createExportMetricsServiceRequest=void 0;var Rae=Nk();function Lae(r,e){return{resourceMetrics:r.map(t=>(0,Rae.toResourceMetrics)(t,e))}}xm.createExportMetricsServiceRequest=Lae});var Fk=x(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.toLogAttributes=Nc.createExportLogsServiceRequest=void 0;var Mae=Ml(),BA=Bl();function Nae(r,e){let t=(0,Mae.getOtlpEncoder)(e);return{resourceLogs:Uae(r,t)}}Nc.createExportLogsServiceRequest=Nae;function Bae(r){let e=new Map;for(let t of r){let{resource:n,instrumentationScope:{name:s,version:i="",schemaUrl:o=""}}=t,a=e.get(n);a||(a=new Map,e.set(n,a));let c=`${s}@${i}:${o}`,u=a.get(c);u||(u=[],a.set(c,u)),u.push(t)}return e}function Uae(r,e){let t=Bae(r);return Array.from(t,([n,s])=>({resource:{attributes:(0,BA.toAttributes)(n.attributes),droppedAttributesCount:0},scopeLogs:Array.from(s,([,i])=>{let{instrumentationScope:{name:o,version:a,schemaUrl:c}}=i[0];return{scope:{name:o,version:a},logRecords:i.map(u=>Fae(u,e)),schemaUrl:c}}),schemaUrl:void 0}))}function Fae(r,e){var t,n,s;return{timeUnixNano:e.encodeHrTime(r.hrTime),observedTimeUnixNano:e.encodeHrTime(r.hrTimeObserved),severityNumber:r.severityNumber,severityText:r.severityText,body:(0,BA.toAnyValue)(r.body),attributes:Uk(r.attributes),droppedAttributesCount:r.droppedAttributesCount,flags:(t=r.spanContext)===null||t===void 0?void 0:t.traceFlags,traceId:e.encodeOptionalSpanContext((n=r.spanContext)===null||n===void 0?void 0:n.traceId),spanId:e.encodeOptionalSpanContext((s=r.spanContext)===null||s===void 0?void 0:s.spanId)}}function Uk(r){return Object.keys(r).map(e=>(0,BA.toKeyValue)(e,r[e]))}Nc.toLogAttributes=Uk});var Vk=x(nr=>{"use strict";var Vae=nr&&nr.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Bc=nr&&nr.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Vae(e,r,t)};Object.defineProperty(nr,"__esModule",{value:!0});nr.createExportLogsServiceRequest=nr.createExportMetricsServiceRequest=nr.createExportTraceServiceRequest=void 0;Bc(LG(),nr);Bc(Ml(),nr);Bc(VG(),nr);Bc(kG(),nr);Bc(jG(),nr);Bc(HG(),nr);var Gae=zG();Object.defineProperty(nr,"createExportTraceServiceRequest",{enumerable:!0,get:function(){return Gae.createExportTraceServiceRequest}});var kae=Bk();Object.defineProperty(nr,"createExportMetricsServiceRequest",{enumerable:!0,get:function(){return kae.createExportMetricsServiceRequest}});var jae=Fk();Object.defineProperty(nr,"createExportLogsServiceRequest",{enumerable:!0,get:function(){return jae.createExportLogsServiceRequest}})});var Gk=x(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.VERSION=void 0;bm.VERSION="0.49.1"});var qk=x(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.OTLPTraceExporter=void 0;var Uc=lt(),qae=uT(),kk=uT(),Hae=Vk(),$ae=Gk(),jk="v1/traces",Wae=`http://localhost:4318/${jk}`,Yae={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${$ae.VERSION}`},UA=class extends qae.OTLPExporterNodeBase{constructor(e={}){super(e),this.headers=Object.assign(Object.assign(Object.assign(Object.assign({},this.headers),Yae),Uc.baggageUtils.parseKeyPairsIntoRecord((0,Uc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),e.headers)}convert(e){return(0,Hae.createExportTraceServiceRequest)(e,{useHex:!0,useLongBits:!1})}getDefaultUrl(e){return typeof e.url=="string"?e.url:(0,Uc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?(0,kk.appendRootPathToUrlIfNeeded)((0,Uc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):(0,Uc.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?(0,kk.appendResourcePathToUrl)((0,Uc.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT,jk):Wae}};Pm.OTLPTraceExporter=UA});var Hk=x(qo=>{"use strict";var zae=qo&&qo.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Kae=qo&&qo.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&zae(e,r,t)};Object.defineProperty(qo,"__esModule",{value:!0});Kae(qk(),qo)});var $k=x(Ho=>{"use strict";var Xae=Ho&&Ho.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Jae=Ho&&Ho.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Xae(e,r,t)};Object.defineProperty(Ho,"__esModule",{value:!0});Jae(Hk(),Ho)});var Wk=x($o=>{"use strict";var Qae=$o&&$o.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Zae=$o&&$o.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Qae(e,r,t)};Object.defineProperty($o,"__esModule",{value:!0});Zae($k(),$o)});var VA=x(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.AbstractAsyncHooksContextManager=void 0;var ece=W("events"),tce=["addListener","on","once","prependListener","prependOnceListener"],FA=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,t){return t instanceof ece.EventEmitter?this._bindEventEmitter(e,t):typeof t=="function"?this._bindFunction(e,t):t}_bindFunction(e,t){let n=this,s=function(...i){return n.with(e,()=>t.apply(this,i))};return Object.defineProperty(s,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),s}_bindEventEmitter(e,t){return this._getPatchMap(t)!==void 0||(this._createPatchMap(t),tce.forEach(s=>{t[s]!==void 0&&(t[s]=this._patchAddListener(t,t[s],e))}),typeof t.removeListener=="function"&&(t.removeListener=this._patchRemoveListener(t,t.removeListener)),typeof t.off=="function"&&(t.off=this._patchRemoveListener(t,t.off)),typeof t.removeAllListeners=="function"&&(t.removeAllListeners=this._patchRemoveAllListeners(t,t.removeAllListeners))),t}_patchRemoveListener(e,t){let n=this;return function(s,i){var o;let a=(o=n._getPatchMap(e))===null||o===void 0?void 0:o[s];if(a===void 0)return t.call(this,s,i);let c=a.get(i);return t.call(this,s,c||i)}}_patchRemoveAllListeners(e,t){let n=this;return function(s){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[s]!==void 0&&delete i[s]),t.apply(this,arguments)}}_patchAddListener(e,t,n){let s=this;return function(i,o){if(s._wrapped)return t.call(this,i,o);let a=s._getPatchMap(e);a===void 0&&(a=s._createPatchMap(e));let c=a[i];c===void 0&&(c=new WeakMap,a[i]=c);let u=s.bind(n,o);c.set(o,u),s._wrapped=!0;try{return t.call(this,i,u)}finally{s._wrapped=!1}}}_createPatchMap(e){let t=Object.create(null);return e[this._kOtListeners]=t,t}_getPatchMap(e){return e[this._kOtListeners]}};Im.AbstractAsyncHooksContextManager=FA});var Yk=x(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.AsyncHooksContextManager=void 0;var rce=(be(),Ne(Le)),nce=W("async_hooks"),ice=VA(),GA=class extends ice.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=nce.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:rce.ROOT_CONTEXT}with(e,t,n,...s){this._enterContext(e);try{return t.call(n,...s)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,t){if(t==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let t=this._contexts.get(e);t!==void 0&&this._enterContext(t)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};wm.AsyncHooksContextManager=GA});var zk=x(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.AsyncLocalStorageContextManager=void 0;var sce=(be(),Ne(Le)),oce=W("async_hooks"),ace=VA(),kA=class extends ace.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new oce.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:sce.ROOT_CONTEXT}with(e,t,n,...s){let i=n==null?t:t.bind(n);return this._asyncLocalStorage.run(e,i,...s)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};Rm.AsyncLocalStorageContextManager=kA});var Xk=x(ys=>{"use strict";var cce=ys&&ys.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Kk=ys&&ys.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&cce(e,r,t)};Object.defineProperty(ys,"__esModule",{value:!0});Kk(Yk(),ys);Kk(zk(),ys)});var jA=x(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.B3_DEBUG_FLAG_KEY=void 0;var uce=(be(),Ne(Le));Lm.B3_DEBUG_FLAG_KEY=(0,uce.createContextKey)("OpenTelemetry Context Key B3 Debug Flag")});var Xl=x(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.X_B3_FLAGS=qr.X_B3_PARENT_SPAN_ID=qr.X_B3_SAMPLED=qr.X_B3_SPAN_ID=qr.X_B3_TRACE_ID=qr.B3_CONTEXT_HEADER=void 0;qr.B3_CONTEXT_HEADER="b3";qr.X_B3_TRACE_ID="x-b3-traceid";qr.X_B3_SPAN_ID="x-b3-spanid";qr.X_B3_SAMPLED="x-b3-sampled";qr.X_B3_PARENT_SPAN_ID="x-b3-parentspanid";qr.X_B3_FLAGS="x-b3-flags"});var Zk=x(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.B3MultiPropagator=void 0;var $n=(be(),Ne(Le)),lce=lt(),Jk=jA(),nn=Xl(),fce=new Set([!0,"true","True","1",1]),pce=new Set([!1,"false","False","0",0]);function dce(r){return r===$n.TraceFlags.SAMPLED||r===$n.TraceFlags.NONE}function hce(r){return Array.isArray(r)?r[0]:r}function Mm(r,e,t){let n=e.get(r,t);return hce(n)}function mce(r,e){let t=Mm(r,e,nn.X_B3_TRACE_ID);return typeof t=="string"?t.padStart(32,"0"):""}function gce(r,e){let t=Mm(r,e,nn.X_B3_SPAN_ID);return typeof t=="string"?t:""}function Qk(r,e){return Mm(r,e,nn.X_B3_FLAGS)==="1"?"1":void 0}function Ece(r,e){let t=Mm(r,e,nn.X_B3_SAMPLED);if(Qk(r,e)==="1"||fce.has(t))return $n.TraceFlags.SAMPLED;if(t===void 0||pce.has(t))return $n.TraceFlags.NONE}var qA=class{inject(e,t,n){let s=$n.trace.getSpanContext(e);if(!s||!(0,$n.isSpanContextValid)(s)||(0,lce.isTracingSuppressed)(e))return;let i=e.getValue(Jk.B3_DEBUG_FLAG_KEY);n.set(t,nn.X_B3_TRACE_ID,s.traceId),n.set(t,nn.X_B3_SPAN_ID,s.spanId),i==="1"?n.set(t,nn.X_B3_FLAGS,i):s.traceFlags!==void 0&&n.set(t,nn.X_B3_SAMPLED,($n.TraceFlags.SAMPLED&s.traceFlags)===$n.TraceFlags.SAMPLED?"1":"0")}extract(e,t,n){let s=mce(t,n),i=gce(t,n),o=Ece(t,n),a=Qk(t,n);return(0,$n.isValidTraceId)(s)&&(0,$n.isValidSpanId)(i)&&dce(o)?(e=e.setValue(Jk.B3_DEBUG_FLAG_KEY,a),$n.trace.setSpanContext(e,{traceId:s,spanId:i,isRemote:!0,traceFlags:o})):e}fields(){return[nn.X_B3_TRACE_ID,nn.X_B3_SPAN_ID,nn.X_B3_FLAGS,nn.X_B3_SAMPLED,nn.X_B3_PARENT_SPAN_ID]}};Nm.B3MultiPropagator=qA});var tj=x(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.B3SinglePropagator=void 0;var Wo=(be(),Ne(Le)),Sce=lt(),ej=jA(),HA=Xl(),_ce=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,yce="0".repeat(16),Tce=new Set(["d","1"]),Ace="d";function Oce(r){return r.length===32?r:`${yce}${r}`}function Cce(r){return r&&Tce.has(r)?Wo.TraceFlags.SAMPLED:Wo.TraceFlags.NONE}var $A=class{inject(e,t,n){let s=Wo.trace.getSpanContext(e);if(!s||!(0,Wo.isSpanContextValid)(s)||(0,Sce.isTracingSuppressed)(e))return;let i=e.getValue(ej.B3_DEBUG_FLAG_KEY)||s.traceFlags&1,o=`${s.traceId}-${s.spanId}-${i}`;n.set(t,HA.B3_CONTEXT_HEADER,o)}extract(e,t,n){let s=n.get(t,HA.B3_CONTEXT_HEADER),i=Array.isArray(s)?s[0]:s;if(typeof i!="string")return e;let o=i.match(_ce);if(!o)return e;let[,a,c,u]=o,l=Oce(a);if(!(0,Wo.isValidTraceId)(l)||!(0,Wo.isValidSpanId)(c))return e;let f=Cce(u);return u===Ace&&(e=e.setValue(ej.B3_DEBUG_FLAG_KEY,u)),Wo.trace.setSpanContext(e,{traceId:l,spanId:c,isRemote:!0,traceFlags:f})}fields(){return[HA.B3_CONTEXT_HEADER]}};Bm.B3SinglePropagator=$A});var WA=x(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.B3InjectEncoding=void 0;var vce;(function(r){r[r.SINGLE_HEADER=0]="SINGLE_HEADER",r[r.MULTI_HEADER=1]="MULTI_HEADER"})(vce=Jl.B3InjectEncoding||(Jl.B3InjectEncoding={}))});var rj=x(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.B3Propagator=void 0;var Dce=lt(),xce=Zk(),bce=tj(),Pce=Xl(),Ice=WA(),YA=class{constructor(e={}){this._b3MultiPropagator=new xce.B3MultiPropagator,this._b3SinglePropagator=new bce.B3SinglePropagator,e.injectEncoding===Ice.B3InjectEncoding.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}inject(e,t,n){(0,Dce.isTracingSuppressed)(e)||this._inject(e,t,n)}extract(e,t,n){let s=n.get(t,Pce.B3_CONTEXT_HEADER);return(Array.isArray(s)?s[0]:s)?this._b3SinglePropagator.extract(e,t,n):this._b3MultiPropagator.extract(e,t,n)}fields(){return this._fields}};Um.B3Propagator=YA});var nj=x(Ni=>{"use strict";var wce=Ni&&Ni.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),zA=Ni&&Ni.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&wce(e,r,t)};Object.defineProperty(Ni,"__esModule",{value:!0});zA(rj(),Ni);zA(Xl(),Ni);zA(WA(),Ni)});var ij=x(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.ExceptionEventName=void 0;Fm.ExceptionEventName="exception"});var XA=x(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.Span=void 0;var Wn=(be(),Ne(Le)),Or=lt(),Yo=di(),Rce=ij(),KA=class{constructor(e,t,n,s,i,o,a=[],c,u,l){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Wn.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=s,this.parentSpanId=o,this.kind=i,this.links=a;let f=Date.now();this._performanceStartTime=Or.otperformance.now(),this._performanceOffset=f-(this._performanceStartTime+(0,Or.getTimeOrigin)()),this._startTimeProvided=c!=null,this.startTime=this._getTime(c??f),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}spanContext(){return this._spanContext}setAttribute(e,t){return t==null||this._isSpanEnded()?this:e.length===0?(Wn.diag.warn(`Invalid attribute key: ${e}`),this):(0,Or.isAttributeValue)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(Wn.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return Wn.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&Wn.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Or.isTimeInput)(t)&&((0,Or.isTimeInput)(n)||(n=t),t=void 0);let s=(0,Or.sanitizeAttributes)(t);return this.events.push({name:e,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}setStatus(e){return this._isSpanEnded()?this:(this.status=e,this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){Wn.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,Or.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(Wn.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wn.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<Or.otperformance.now())return(0,Or.hrTime)(e+this._performanceOffset);if(typeof e=="number")return(0,Or.millisToHrTime)(e);if(e instanceof Date)return(0,Or.millisToHrTime)(e.getTime());if((0,Or.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,Or.millisToHrTime)(Date.now());let t=Or.otperformance.now()-this._performanceStartTime;return(0,Or.addHrTimes)(this.startTime,(0,Or.millisToHrTime)(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e=="string"?n[Yo.SemanticAttributes.EXCEPTION_MESSAGE]=e:e&&(e.code?n[Yo.SemanticAttributes.EXCEPTION_TYPE]=e.code.toString():e.name&&(n[Yo.SemanticAttributes.EXCEPTION_TYPE]=e.name),e.message&&(n[Yo.SemanticAttributes.EXCEPTION_MESSAGE]=e.message),e.stack&&(n[Yo.SemanticAttributes.EXCEPTION_STACKTRACE]=e.stack)),n[Yo.SemanticAttributes.EXCEPTION_TYPE]||n[Yo.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(Rce.ExceptionEventName,n,t):Wn.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){return this._ended&&Wn.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substr(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(Wn.diag.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e=="string"?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,t):n):e}};Vm.Span=KA});var Zl=x(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.SamplingDecision=void 0;var Lce;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Lce=Ql.SamplingDecision||(Ql.SamplingDecision={}))});var km=x(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.AlwaysOffSampler=void 0;var Mce=Zl(),JA=class{shouldSample(){return{decision:Mce.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Gm.AlwaysOffSampler=JA});var qm=x(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.AlwaysOnSampler=void 0;var Nce=Zl(),QA=class{shouldSample(){return{decision:Nce.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};jm.AlwaysOnSampler=QA});var tO=x($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.ParentBasedSampler=void 0;var Hm=(be(),Ne(Le)),Bce=lt(),sj=km(),ZA=qm(),eO=class{constructor(e){var t,n,s,i;this._root=e.root,this._root||((0,Bce.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ZA.AlwaysOnSampler),this._remoteParentSampled=(t=e.remoteParentSampled)!==null&&t!==void 0?t:new ZA.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new sj.AlwaysOffSampler,this._localParentSampled=(s=e.localParentSampled)!==null&&s!==void 0?s:new ZA.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new sj.AlwaysOffSampler}shouldSample(e,t,n,s,i,o){let a=Hm.trace.getSpanContext(e);return!a||!(0,Hm.isSpanContextValid)(a)?this._root.shouldSample(e,t,n,s,i,o):a.isRemote?a.traceFlags&Hm.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,s,i,o):this._remoteParentNotSampled.shouldSample(e,t,n,s,i,o):a.traceFlags&Hm.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,n,s,i,o):this._localParentNotSampled.shouldSample(e,t,n,s,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};$m.ParentBasedSampler=eO});var nO=x(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.TraceIdRatioBasedSampler=void 0;var Uce=(be(),Ne(Le)),oj=Zl(),rO=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:(0,Uce.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?oj.SamplingDecision.RECORD_AND_SAMPLED:oj.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let s=n*8,i=parseInt(e.slice(s,s+8),16);t=(t^i)>>>0}return t}};Wm.TraceIdRatioBasedSampler=rO});var oO=x(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.buildSamplerFromEnv=Vc.loadDefaultConfig=void 0;var Ym=(be(),Ne(Le)),ur=lt(),aj=km(),iO=qm(),sO=tO(),cj=nO(),Fce=(0,ur.getEnv)(),Vce=ur.TracesSamplerValues.AlwaysOn,Fc=1;function Gce(){return{sampler:lj(Fce),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,ur.getEnv)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,ur.getEnv)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,ur.getEnv)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,ur.getEnv)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}Vc.loadDefaultConfig=Gce;function lj(r=(0,ur.getEnv)()){switch(r.OTEL_TRACES_SAMPLER){case ur.TracesSamplerValues.AlwaysOn:return new iO.AlwaysOnSampler;case ur.TracesSamplerValues.AlwaysOff:return new aj.AlwaysOffSampler;case ur.TracesSamplerValues.ParentBasedAlwaysOn:return new sO.ParentBasedSampler({root:new iO.AlwaysOnSampler});case ur.TracesSamplerValues.ParentBasedAlwaysOff:return new sO.ParentBasedSampler({root:new aj.AlwaysOffSampler});case ur.TracesSamplerValues.TraceIdRatio:return new cj.TraceIdRatioBasedSampler(uj(r));case ur.TracesSamplerValues.ParentBasedTraceIdRatio:return new sO.ParentBasedSampler({root:new cj.TraceIdRatioBasedSampler(uj(r))});default:return Ym.diag.error(`OTEL_TRACES_SAMPLER value "${r.OTEL_TRACES_SAMPLER} invalid, defaulting to ${Vce}".`),new iO.AlwaysOnSampler}}Vc.buildSamplerFromEnv=lj;function uj(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return Ym.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Fc}.`),Fc;let e=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(Ym.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Fc}.`),Fc):e<0||e>1?(Ym.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Fc}.`),Fc):e}});var cO=x(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.reconfigureLimits=Gc.mergeConfig=void 0;var fj=oO(),aO=lt();function kce(r){let e={sampler:(0,fj.buildSamplerFromEnv)()},t=(0,fj.loadDefaultConfig)(),n=Object.assign({},t,e,r);return n.generalLimits=Object.assign({},t.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},t.spanLimits,r.spanLimits||{}),n}Gc.mergeConfig=kce;function jce(r){var e,t,n,s,i,o,a,c,u,l,f,p;let d=Object.assign({},r.spanLimits),m=(0,aO.getEnvWithoutDefaults)();return d.attributeCountLimit=(o=(i=(s=(t=(e=r.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&t!==void 0?t:(n=r.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&s!==void 0?s:m.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:m.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:aO.DEFAULT_ATTRIBUTE_COUNT_LIMIT,d.attributeValueLengthLimit=(p=(f=(l=(c=(a=r.spanLimits)===null||a===void 0?void 0:a.attributeValueLengthLimit)!==null&&c!==void 0?c:(u=r.generalLimits)===null||u===void 0?void 0:u.attributeValueLengthLimit)!==null&&l!==void 0?l:m.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&f!==void 0?f:m.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:aO.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},r,{spanLimits:d})}Gc.reconfigureLimits=jce});var pj=x(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.BatchSpanProcessorBase=void 0;var kc=(be(),Ne(Le)),zo=lt(),uO=class{constructor(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,zo.getEnv)();this._maxExportBatchSize=typeof t?.maxExportBatchSize=="number"?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof t?.maxQueueSize=="number"?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof t?.scheduledDelayMillis=="number"?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof t?.exportTimeoutMillis=="number"?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new zo.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(kc.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&kc.TraceFlags.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&kc.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(kc.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],s=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=s;i<o;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(new Error("Timeout"))},this._exportTimeoutMillis);kc.context.with((0,zo.suppressTracing)(kc.context.active()),()=>{let s=this._finishedSpans.splice(0,this._maxExportBatchSize),i=()=>this._exporter.export(s,a=>{var c;clearTimeout(n),a.code===zo.ExportResultCode.SUCCESS?e():t((c=a.error)!==null&&c!==void 0?c:new Error("BatchSpanProcessor: span export failed"))}),o=s.map(a=>a.resource).filter(a=>a.asyncAttributesPending);o.length===0?i():Promise.all(o.map(a=>{var c;return(c=a.waitForAsyncAttributes)===null||c===void 0?void 0:c.call(a)})).then(i,a=>{(0,zo.globalErrorHandler)(a),t(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(t=>{this._isExporting=!1,(0,zo.globalErrorHandler)(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,zo.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};zm.BatchSpanProcessorBase=uO});var dj=x(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.BatchSpanProcessor=void 0;var qce=pj(),lO=class extends qce.BatchSpanProcessorBase{onShutdown(){}};Km.BatchSpanProcessor=lO});var gj=x(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.RandomIdGenerator=void 0;var Hce=8,mj=16,fO=class{constructor(){this.generateTraceId=hj(mj),this.generateSpanId=hj(Hce)}};Jm.RandomIdGenerator=fO;var Xm=Buffer.allocUnsafe(mj);function hj(r){return function(){for(let t=0;t<r/4;t++)Xm.writeUInt32BE(Math.random()*2**32>>>0,t*4);for(let t=0;t<r&&!(Xm[t]>0);t++)t===r-1&&(Xm[r-1]=1);return Xm.toString("hex",0,r)}}});var Sj=x(Ts=>{"use strict";var $ce=Ts&&Ts.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Ej=Ts&&Ts.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&$ce(e,r,t)};Object.defineProperty(Ts,"__esModule",{value:!0});Ej(dj(),Ts);Ej(gj(),Ts)});var Qm=x(Ko=>{"use strict";var Wce=Ko&&Ko.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Yce=Ko&&Ko.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Wce(e,r,t)};Object.defineProperty(Ko,"__esModule",{value:!0});Yce(Sj(),Ko)});var _j=x(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.Tracer=void 0;var lr=(be(),Ne(Le)),Zm=lt(),zce=XA(),Kce=cO(),Xce=Qm(),pO=class{constructor(e,t,n){this._tracerProvider=n;let s=(0,Kce.mergeConfig)(t);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=t.idGenerator||new Xce.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,t={},n=lr.context.active()){var s,i,o;t.root&&(n=lr.trace.deleteSpan(n));let a=lr.trace.getSpan(n);if((0,Zm.isTracingSuppressed)(n))return lr.diag.debug("Instrumentation suppressed, returning Noop Span"),lr.trace.wrapSpanContext(lr.INVALID_SPAN_CONTEXT);let c=a?.spanContext(),u=this._idGenerator.generateSpanId(),l,f,p;!c||!lr.trace.isSpanContextValid(c)?l=this._idGenerator.generateTraceId():(l=c.traceId,f=c.traceState,p=c.spanId);let d=(s=t.kind)!==null&&s!==void 0?s:lr.SpanKind.INTERNAL,m=((i=t.links)!==null&&i!==void 0?i:[]).map(y=>({context:y.context,attributes:(0,Zm.sanitizeAttributes)(y.attributes)})),g=(0,Zm.sanitizeAttributes)(t.attributes),h=this._sampler.shouldSample(n,l,e,d,g,m);f=(o=h.traceState)!==null&&o!==void 0?o:f;let E=h.decision===lr.SamplingDecision.RECORD_AND_SAMPLED?lr.TraceFlags.SAMPLED:lr.TraceFlags.NONE,_={traceId:l,spanId:u,traceFlags:E,traceState:f};if(h.decision===lr.SamplingDecision.NOT_RECORD)return lr.diag.debug("Recording is off, propagating context in a non-recording span"),lr.trace.wrapSpanContext(_);let S=(0,Zm.sanitizeAttributes)(Object.assign(g,h.attributes));return new zce.Span(this,n,e,_,d,p,m,t.startTime,void 0,S)}startActiveSpan(e,t,n,s){let i,o,a;if(arguments.length<2)return;arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,o=n,a=s);let c=o??lr.context.active(),u=this.startSpan(e,i,c),l=lr.trace.setSpan(c,u);return lr.context.with(l,a,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};e0.Tracer=pO});var yj=x(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.MultiSpanProcessor=void 0;var Jce=lt(),dO=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(n=>{(0,Jce.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}};t0.MultiSpanProcessor=dO});var mO=x(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.NoopSpanProcessor=void 0;var hO=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};r0.NoopSpanProcessor=hO});var Aj=x(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.BasicTracerProvider=Xo.ForceFlushState=void 0;var jc=(be(),Ne(Le)),Hc=lt(),Tj=Cc(),Qce=n0(),Zce=oO(),eue=yj(),tue=mO(),rue=Qm(),nue=cO(),qc;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(qc=Xo.ForceFlushState||(Xo.ForceFlushState={}));var ef=class{constructor(e={}){var t;this._registeredSpanProcessors=[],this._tracers=new Map;let n=(0,Hc.merge)({},(0,Zce.loadDefaultConfig)(),(0,nue.reconfigureLimits)(e));this.resource=(t=n.resource)!==null&&t!==void 0?t:Tj.Resource.empty(),this.resource=Tj.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let s=this._buildExporterFromEnv();if(s!==void 0){let i=new rue.BatchSpanProcessor(s);this.activeSpanProcessor=i}else this.activeSpanProcessor=new tue.NoopSpanProcessor}getTracer(e,t,n){let s=`${e}@${t||""}:${n?.schemaUrl||""}`;return this._tracers.has(s)||this._tracers.set(s,new Qce.Tracer({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(s)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(t=>jc.diag.error("Error while trying to shutdown current span processor",t)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new eue.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){jc.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&jc.context.setGlobalContextManager(e.contextManager),e.propagator&&jc.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(n=>new Promise(s=>{let i,o=setTimeout(()=>{s(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=qc.timeout},e);n.forceFlush().then(()=>{clearTimeout(o),i!==qc.timeout&&(i=qc.resolved,s(i))}).catch(a=>{clearTimeout(o),i=qc.error,s(a)})}));return new Promise((n,s)=>{Promise.all(t).then(i=>{let o=i.filter(a=>a!==qc.resolved);o.length>0?s(o):n()}).catch(i=>s([i]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var t;return(t=this.constructor._registeredPropagators.get(e))===null||t===void 0?void 0:t()}_getSpanExporter(e){var t;return(t=this.constructor._registeredExporters.get(e))===null||t===void 0?void 0:t()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,Hc.getEnv)().OTEL_PROPAGATORS)),n=e.map(s=>{let i=this._getPropagator(s);return i||jc.diag.warn(`Propagator "${s}" requested through environment variable is unavailable.`),i}).reduce((s,i)=>(i&&s.push(i),s),[]);if(n.length!==0)return e.length===1?n[0]:new Hc.CompositePropagator({propagators:n})}_buildExporterFromEnv(){let e=(0,Hc.getEnv)().OTEL_TRACES_EXPORTER;if(e==="none"||e==="")return;let t=this._getSpanExporter(e);return t||jc.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};Xo.BasicTracerProvider=ef;ef._registeredPropagators=new Map([["tracecontext",()=>new Hc.W3CTraceContextPropagator],["baggage",()=>new Hc.W3CBaggagePropagator]]);ef._registeredExporters=new Map});var Oj=x(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.ConsoleSpanExporter=void 0;var gO=lt(),EO=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){var t;return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(t=e.spanContext().traceState)===null||t===void 0?void 0:t.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,gO.hrTimeToMicroseconds)(e.startTime),duration:(0,gO.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,t){for(let n of e)console.dir(this._exportInfo(n),{depth:3});if(t)return t({code:gO.ExportResultCode.SUCCESS})}};i0.ConsoleSpanExporter=EO});var vj=x(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.InMemorySpanExporter=void 0;var Cj=lt(),SO=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,t){if(this._stopped)return t({code:Cj.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout(()=>t({code:Cj.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};s0.InMemorySpanExporter=SO});var xj=x(Dj=>{"use strict";Object.defineProperty(Dj,"__esModule",{value:!0})});var bj=x(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.SimpleSpanProcessor=void 0;var iue=(be(),Ne(Le)),$c=lt(),_O=class{constructor(e){this._exporter=e,this._shutdownOnce=new $c.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,t){}onEnd(e){var t,n;if(this._shutdownOnce.isCalled||(e.spanContext().traceFlags&iue.TraceFlags.SAMPLED)===0)return;let s=()=>$c.internal._export(this._exporter,[e]).then(i=>{var o;i.code!==$c.ExportResultCode.SUCCESS&&(0,$c.globalErrorHandler)((o=i.error)!==null&&o!==void 0?o:new Error(`SimpleSpanProcessor: span export failed (status ${i})`))}).catch(i=>{(0,$c.globalErrorHandler)(i)});if(e.resource.asyncAttributesPending){let i=(n=(t=e.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(t).then(()=>(i!=null&&this._unresolvedExports.delete(i),s()),o=>(0,$c.globalErrorHandler)(o));i!=null&&this._unresolvedExports.add(i)}else s()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};o0.SimpleSpanProcessor=_O});var Ij=x(Pj=>{"use strict";Object.defineProperty(Pj,"__esModule",{value:!0})});var Rj=x(wj=>{"use strict";Object.defineProperty(wj,"__esModule",{value:!0})});var Mj=x(Lj=>{"use strict";Object.defineProperty(Lj,"__esModule",{value:!0})});var Bj=x(Nj=>{"use strict";Object.defineProperty(Nj,"__esModule",{value:!0})});var Fj=x(Uj=>{"use strict";Object.defineProperty(Uj,"__esModule",{value:!0})});var n0=x(yt=>{"use strict";var sue=yt&&yt.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Wt=yt&&yt.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&sue(e,r,t)};Object.defineProperty(yt,"__esModule",{value:!0});Wt(_j(),yt);Wt(Aj(),yt);Wt(Qm(),yt);Wt(Oj(),yt);Wt(vj(),yt);Wt(xj(),yt);Wt(bj(),yt);Wt(Ij(),yt);Wt(mO(),yt);Wt(km(),yt);Wt(qm(),yt);Wt(tO(),yt);Wt(nO(),yt);Wt(Zl(),yt);Wt(XA(),yt);Wt(Rj(),yt);Wt(Mj(),yt);Wt(Bj(),yt);Wt(Fj(),yt)});var Vj=x(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.JaegerPropagator=Yn.UBER_BAGGAGE_HEADER_PREFIX=Yn.UBER_TRACE_ID_HEADER=void 0;var Jo=(be(),Ne(Le)),oue=lt();Yn.UBER_TRACE_ID_HEADER="uber-trace-id";Yn.UBER_BAGGAGE_HEADER_PREFIX="uberctx";var yO=class{constructor(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=Yn.UBER_BAGGAGE_HEADER_PREFIX):(this._jaegerTraceHeader=e?.customTraceHeader||Yn.UBER_TRACE_ID_HEADER,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||Yn.UBER_BAGGAGE_HEADER_PREFIX)}inject(e,t,n){let s=Jo.trace.getSpanContext(e),i=Jo.propagation.getBaggage(e);if(s&&(0,oue.isTracingSuppressed)(e)===!1){let o=`0${(s.traceFlags||Jo.TraceFlags.NONE).toString(16)}`;n.set(t,this._jaegerTraceHeader,`${s.traceId}:${s.spanId}:0:${o}`)}if(i)for(let[o,a]of i.getAllEntries())n.set(t,`${this._jaegerBaggageHeaderPrefix}-${o}`,encodeURIComponent(a.value))}extract(e,t,n){var s;let i=n.get(t,this._jaegerTraceHeader),o=Array.isArray(i)?i[0]:i,a=n.keys(t).filter(l=>l.startsWith(`${this._jaegerBaggageHeaderPrefix}-`)).map(l=>{let f=n.get(t,l);return{key:l.substring(this._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(f)?f[0]:f}}),c=e;if(typeof o=="string"){let l=cue(o);l&&(c=Jo.trace.setSpanContext(c,l))}if(a.length===0)return c;let u=(s=Jo.propagation.getBaggage(e))!==null&&s!==void 0?s:Jo.propagation.createBaggage();for(let l of a)l.value!==void 0&&(u=u.setEntry(l.key,{value:decodeURIComponent(l.value)}));return c=Jo.propagation.setBaggage(c,u),c}fields(){return[this._jaegerTraceHeader]}};Yn.JaegerPropagator=yO;var aue=/^[0-9a-f]{1,2}$/i;function cue(r){let e=decodeURIComponent(r).split(":");if(e.length!==4)return null;let[t,n,,s]=e,i=t.padStart(32,"0"),o=n.padStart(16,"0"),a=aue.test(s)?parseInt(s,16)&1:1;return{traceId:i,spanId:o,isRemote:!0,traceFlags:a}}});var Gj=x(Qo=>{"use strict";var uue=Qo&&Qo.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),lue=Qo&&Qo.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&uue(e,r,t)};Object.defineProperty(Qo,"__esModule",{value:!0});lue(Vj(),Qo)});var qj=x(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.NodeTracerProvider=void 0;var kj=Xk(),a0=nj(),jj=n0(),fue=zE(),pue=Gj(),c0=class extends jj.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let t=fue.gte(process.version,"14.8.0")?kj.AsyncLocalStorageContextManager:kj.AsyncHooksContextManager;e.contextManager=new t,e.contextManager.enable()}super.register(e)}};u0.NodeTracerProvider=c0;c0._registeredPropagators=new Map([...jj.BasicTracerProvider._registeredPropagators,["b3",()=>new a0.B3Propagator({injectEncoding:a0.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new a0.B3Propagator({injectEncoding:a0.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new pue.JaegerPropagator]])});var $j=x(As=>{"use strict";var due=As&&As.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Hj=As&&As.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&due(e,r,t)};Object.defineProperty(As,"__esModule",{value:!0});Hj(qj(),As);Hj(n0(),As)});var Wj=x((d1e,hue)=>{hue.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Kj=x(zn=>{"use strict";var Yj=Wj(),Vt=process.env;Object.defineProperty(zn,"_vendors",{value:Yj.map(function(r){return r.constant})});zn.name=null;zn.isPR=null;zn.id=null;Vt.CI!=="false"&&Yj.forEach(function(r){let t=(Array.isArray(r.env)?r.env:[r.env]).every(function(n){return zj(n)});zn[r.constant]=t,t&&(zn.name=r.name,zn.isPR=mue(r),zn.id=r.constant)});zn.isCI=!!(Vt.CI!=="false"&&(Vt.BUILD_ID||Vt.BUILD_NUMBER||Vt.CI||Vt.CI_APP_ID||Vt.CI_BUILD_ID||Vt.CI_BUILD_NUMBER||Vt.CI_NAME||Vt.CONTINUOUS_INTEGRATION||Vt.RUN_ID||zn.name));function zj(r){return typeof r=="string"?!!Vt[r]:"env"in r?Vt[r.env]&&Vt[r.env].includes(r.includes):"any"in r?r.any.some(function(e){return!!Vt[e]}):Object.keys(r).every(function(e){return Vt[e]===r[e]})}function mue(r){switch(typeof r.pr){case"string":return!!Vt[r.pr];case"object":return"env"in r.pr?"any"in r.pr?r.pr.any.some(function(e){return Vt[r.pr.env]===e}):r.pr.env in Vt&&Vt[r.pr.env]!==r.pr.ne:"any"in r.pr?r.pr.any.some(function(e){return!!Vt[e]}):zj(r.pr);default:return null}}});var Jj=x((m1e,Xj)=>{(()=>{var r={2980:(n,s,i)=>{"use strict";i(7360),i(5888),i(8412),i(3852),i(5584);var o=i(9892),a=i(5008),c=i(5088),u=i(224);function l(f,p){(p=p||{}).clipboard&&console.log(`
|
|
161
|
+
`,(0,fm.getConflictResolutionRecipe)(i,e))}return n}};pm.MetricStorageRegistry=SA});var dk=x(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.MultiMetricStorage=void 0;var _A=class{constructor(e){this._backingStorages=e}record(e,t,n,s){this._backingStorages.forEach(i=>{i.record(e,t,n,s)})}};dm.MultiMetricStorage=_A});var mk=x(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.BatchObservableResultImpl=Rc.ObservableResultImpl=void 0;var wc=(be(),Ne(Le)),hk=Yl(),qoe=im(),yA=class{constructor(e,t){this._instrumentName=e,this._valueType=t,this._buffer=new hk.AttributeHashMap}observe(e,t={}){if(typeof e!="number"){wc.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${e}`);return}this._valueType===wc.ValueType.INT&&!Number.isInteger(e)&&(wc.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(t,e)}};Rc.ObservableResultImpl=yA;var TA=class{constructor(){this._buffer=new Map}observe(e,t,n={}){if(!(0,qoe.isObservableInstrument)(e))return;let s=this._buffer.get(e);if(s==null&&(s=new hk.AttributeHashMap,this._buffer.set(e,s)),typeof t!="number"){wc.diag.warn(`non-number value provided to metric ${e._descriptor.name}: ${t}`);return}e._descriptor.valueType===wc.ValueType.INT&&!Number.isInteger(t)&&(wc.diag.warn(`INT value type cannot accept a floating-point value for ${e._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||s.set(n,t)}};Rc.BatchObservableResultImpl=TA});var Sk=x(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.ObservableRegistry=void 0;var Hoe=(be(),Ne(Le)),gk=im(),Ek=mk(),zl=hi(),AA=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(e,t){this._findCallback(e,t)>=0||this._callbacks.push({callback:e,instrument:t})}removeCallback(e,t){let n=this._findCallback(e,t);n<0||this._callbacks.splice(n,1)}addBatchCallback(e,t){let n=new Set(t.filter(gk.isObservableInstrument));if(n.size===0){Hoe.diag.error("BatchObservableCallback is not associated with valid instruments",t);return}this._findBatchCallback(e,n)>=0||this._batchCallbacks.push({callback:e,instruments:n})}removeBatchCallback(e,t){let n=new Set(t.filter(gk.isObservableInstrument)),s=this._findBatchCallback(e,n);s<0||this._batchCallbacks.splice(s,1)}async observe(e,t){let n=this._observeCallbacks(e,t),s=this._observeBatchCallbacks(e,t);return(await(0,zl.PromiseAllSettled)([...n,...s])).filter(zl.isPromiseAllSettledRejectionResult).map(a=>a.reason)}_observeCallbacks(e,t){return this._callbacks.map(async({callback:n,instrument:s})=>{let i=new Ek.ObservableResultImpl(s._descriptor.name,s._descriptor.valueType),o=Promise.resolve(n(i));t!=null&&(o=(0,zl.callWithTimeout)(o,t)),await o,s._metricStorages.forEach(a=>{a.record(i._buffer,e)})})}_observeBatchCallbacks(e,t){return this._batchCallbacks.map(async({callback:n,instruments:s})=>{let i=new Ek.BatchObservableResultImpl,o=Promise.resolve(n(i));t!=null&&(o=(0,zl.callWithTimeout)(o,t)),await o,s.forEach(a=>{let c=i._buffer.get(a);c!=null&&a._metricStorages.forEach(u=>{u.record(c,e)})})})}_findCallback(e,t){return this._callbacks.findIndex(n=>n.callback===e&&n.instrument===t)}_findBatchCallback(e,t){return this._batchCallbacks.findIndex(n=>n.callback===e&&(0,zl.setEquals)(n.instruments,t))}};hm.ObservableRegistry=AA});var _k=x(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.SyncMetricStorage=void 0;var $oe=lA(),Woe=hA(),Yoe=gA(),OA=class extends $oe.MetricStorage{constructor(e,t,n,s){super(e),this._attributesProcessor=n,this._deltaMetricStorage=new Woe.DeltaMetricProcessor(t),this._temporalMetricStorage=new Yoe.TemporalMetricProcessor(t,s)}record(e,t,n,s){t=this._attributesProcessor.process(t,n),this._deltaMetricStorage.record(e,t,n,s)}collect(e,t){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,n,t)}};mm.SyncMetricStorage=OA});var vA=x(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.FilteringAttributesProcessor=Es.NoopAttributesProcessor=Es.AttributesProcessor=void 0;var Kl=class{static Noop(){return zoe}};Es.AttributesProcessor=Kl;var gm=class extends Kl{process(e,t){return e}};Es.NoopAttributesProcessor=gm;var CA=class extends Kl{constructor(e){super(),this._allowedAttributeNames=e}process(e,t){let n={};return Object.keys(e).filter(s=>this._allowedAttributeNames.includes(s)).forEach(s=>n[s]=e[s]),n}};Es.FilteringAttributesProcessor=CA;var zoe=new gm});var yk=x(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.MeterSharedState=void 0;var Koe=wi(),Xoe=ik(),Joe=hi(),Qoe=sk(),Zoe=pk(),eae=dk(),tae=Sk(),rae=_k(),nae=vA(),DA=class{constructor(e,t){this._meterProviderSharedState=e,this._instrumentationScope=t,this.metricStorageRegistry=new Zoe.MetricStorageRegistry,this.observableRegistry=new tae.ObservableRegistry,this.meter=new Xoe.Meter(this)}registerMetricStorage(e){let t=this._registerMetricStorage(e,rae.SyncMetricStorage);return t.length===1?t[0]:new eae.MultiMetricStorage(t)}registerAsyncMetricStorage(e){return this._registerMetricStorage(e,Qoe.AsyncMetricStorage)}async collect(e,t,n){let s=await this.observableRegistry.observe(t,n?.timeoutMillis),i=this.metricStorageRegistry.getStorages(e);if(i.length===0)return null;let o=i.map(a=>a.collect(e,t)).filter(Joe.isNotNullish);return o.length===0?{errors:s}:{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:s}}_registerMetricStorage(e,t){let s=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope).map(i=>{let o=(0,Koe.createInstrumentDescriptorWithView)(i,e),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(o);if(a!=null)return a;let c=i.aggregation.createAggregator(o),u=new t(o,c,i.attributesProcessor,this._meterProviderSharedState.metricCollectors);return this.metricStorageRegistry.register(u),u});if(s.length===0){let o=this._meterProviderSharedState.selectAggregations(e.type).map(([a,c])=>{let u=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,e);if(u!=null)return u;let l=c.createAggregator(e),f=new t(e,l,nae.AttributesProcessor.Noop(),[a]);return this.metricStorageRegistry.registerForCollector(a,f),f});s=s.concat(o)}return s}};Em.MeterSharedState=DA});var Tk=x(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.MeterProviderSharedState=void 0;var iae=hi(),sae=nk(),oae=yk(),xA=class{constructor(e){this.resource=e,this.viewRegistry=new sae.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(e){let t=(0,iae.instrumentationScopeId)(e),n=this.meterSharedStates.get(t);return n==null&&(n=new oae.MeterSharedState(this,e),this.meterSharedStates.set(t,n)),n}selectAggregations(e){let t=[];for(let n of this.metricCollectors)t.push([n,n.selectAggregation(e)]);return t}};Sm.MeterProviderSharedState=xA});var Ak=x(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.MetricCollector=void 0;var aae=lt(),bA=class{constructor(e,t){this._sharedState=e,this._metricReader=t}async collect(e){let t=(0,aae.millisToHrTime)(Date.now()),n=[],s=[],i=Array.from(this._sharedState.meterSharedStates.values()).map(async o=>{let a=await o.collect(this,t,e);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&s.push(...a.errors)});return await Promise.all(i),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:s}}async forceFlush(e){await this._metricReader.forceFlush(e)}async shutdown(e){await this._metricReader.shutdown(e)}selectAggregationTemporality(e){return this._metricReader.selectAggregationTemporality(e)}selectAggregation(e){return this._metricReader.selectAggregation(e)}};_m.MetricCollector=bA});var Ck=x(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.MeterProvider=void 0;var ym=(be(),Ne(Le)),Ok=Cc(),cae=Tk(),uae=Ak(),PA=class{constructor(e){var t;this._shutdown=!1;let n=Ok.Resource.default().merge((t=e?.resource)!==null&&t!==void 0?t:Ok.Resource.empty());if(this._sharedState=new cae.MeterProviderSharedState(n),e?.views!=null&&e.views.length>0)for(let s of e.views)this._sharedState.viewRegistry.addView(s);if(e?.readers!=null&&e.readers.length>0)for(let s of e.readers)this.addMetricReader(s)}getMeter(e,t="",n={}){return this._shutdown?(ym.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,ym.createNoopMeter)()):this._sharedState.getMeterSharedState({name:e,version:t,schemaUrl:n.schemaUrl}).meter}addMetricReader(e){let t=new uae.MetricCollector(this._sharedState,e);e.setMetricProducer(t),this._sharedState.metricCollectors.push(t)}async shutdown(e){if(this._shutdown){ym.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(t=>t.shutdown(e)))}async forceFlush(e){if(this._shutdown){ym.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(t=>t.forceFlush(e)))}};Tm.MeterProvider=PA});var Am=x(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.ExactPredicate=Lc.PatternPredicate=void 0;var lae=/[\^$\\.+?()[\]{}|]/g,IA=class r{constructor(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(e)))}match(e){return this._matchAll?!0:this._regexp.test(e)}static escapePattern(e){return`^${e.replace(lae,"\\$&").replace("*",".*")}$`}static hasWildcard(e){return e.includes("*")}};Lc.PatternPredicate=IA;var wA=class{constructor(e){this._matchAll=e===void 0,this._pattern=e}match(e){return!!(this._matchAll||e===this._pattern)}};Lc.ExactPredicate=wA});var Dk=x(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.InstrumentSelector=void 0;var vk=Am(),RA=class{constructor(e){var t;this._nameFilter=new vk.PatternPredicate((t=e?.name)!==null&&t!==void 0?t:"*"),this._type=e?.type,this._unitFilter=new vk.ExactPredicate(e?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};Om.InstrumentSelector=RA});var xk=x(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.MeterSelector=void 0;var LA=Am(),MA=class{constructor(e){this._nameFilter=new LA.ExactPredicate(e?.name),this._versionFilter=new LA.ExactPredicate(e?.version),this._schemaUrlFilter=new LA.ExactPredicate(e?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};Cm.MeterSelector=MA});var Pk=x(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.View=void 0;var fae=Am(),bk=vA(),pae=Dk(),dae=xk(),hae=bh();function mae(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}var NA=class{constructor(e){var t;if(mae(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||fae.PatternPredicate.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new bk.FilteringAttributesProcessor(e.attributeKeys):this.attributesProcessor=bk.AttributesProcessor.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(t=e.aggregation)!==null&&t!==void 0?t:hae.Aggregation.Default(),this.instrumentSelector=new pae.InstrumentSelector({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new dae.MeterSelector({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}};vm.View=NA});var Ik=x(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.TimeoutError=et.View=et.Aggregation=et.SumAggregation=et.LastValueAggregation=et.HistogramAggregation=et.DropAggregation=et.ExponentialHistogramAggregation=et.ExplicitBucketHistogramAggregation=et.DefaultAggregation=et.MeterProvider=et.InstrumentType=et.ConsoleMetricExporter=et.InMemoryMetricExporter=et.PeriodicExportingMetricReader=et.MetricReader=et.DataPointType=et.AggregationTemporality=void 0;var gae=hh();Object.defineProperty(et,"AggregationTemporality",{enumerable:!0,get:function(){return gae.AggregationTemporality}});var Eae=cc();Object.defineProperty(et,"DataPointType",{enumerable:!0,get:function(){return Eae.DataPointType}});var Sae=RT();Object.defineProperty(et,"MetricReader",{enumerable:!0,get:function(){return Sae.MetricReader}});var _ae=A8();Object.defineProperty(et,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return _ae.PeriodicExportingMetricReader}});var yae=C8();Object.defineProperty(et,"InMemoryMetricExporter",{enumerable:!0,get:function(){return yae.InMemoryMetricExporter}});var Tae=D8();Object.defineProperty(et,"ConsoleMetricExporter",{enumerable:!0,get:function(){return Tae.ConsoleMetricExporter}});var Aae=wi();Object.defineProperty(et,"InstrumentType",{enumerable:!0,get:function(){return Aae.InstrumentType}});var Oae=Ck();Object.defineProperty(et,"MeterProvider",{enumerable:!0,get:function(){return Oae.MeterProvider}});var Ss=bh();Object.defineProperty(et,"DefaultAggregation",{enumerable:!0,get:function(){return Ss.DefaultAggregation}});Object.defineProperty(et,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return Ss.ExplicitBucketHistogramAggregation}});Object.defineProperty(et,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return Ss.ExponentialHistogramAggregation}});Object.defineProperty(et,"DropAggregation",{enumerable:!0,get:function(){return Ss.DropAggregation}});Object.defineProperty(et,"HistogramAggregation",{enumerable:!0,get:function(){return Ss.HistogramAggregation}});Object.defineProperty(et,"LastValueAggregation",{enumerable:!0,get:function(){return Ss.LastValueAggregation}});Object.defineProperty(et,"SumAggregation",{enumerable:!0,get:function(){return Ss.SumAggregation}});Object.defineProperty(et,"Aggregation",{enumerable:!0,get:function(){return Ss.Aggregation}});var Cae=Pk();Object.defineProperty(et,"View",{enumerable:!0,get:function(){return Cae.View}});var vae=hi();Object.defineProperty(et,"TimeoutError",{enumerable:!0,get:function(){return vae.TimeoutError}})});var Nk=x(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.toMetric=_s.toScopeMetrics=_s.toResourceMetrics=void 0;var wk=(be(),Ne(Le)),Mc=Ik(),Dm=Bl(),Dae=Ml();function xae(r,e){let t=(0,Dae.getOtlpEncoder)(e);return{resource:{attributes:(0,Dm.toAttributes)(r.resource.attributes),droppedAttributesCount:0},schemaUrl:void 0,scopeMetrics:Lk(r.scopeMetrics,t)}}_s.toResourceMetrics=xae;function Lk(r,e){return Array.from(r.map(t=>({scope:{name:t.scope.name,version:t.scope.version},metrics:t.metrics.map(n=>Mk(n,e)),schemaUrl:t.scope.schemaUrl})))}_s.toScopeMetrics=Lk;function Mk(r,e){let t={name:r.descriptor.name,description:r.descriptor.description,unit:r.descriptor.unit},n=wae(r.aggregationTemporality);switch(r.dataPointType){case Mc.DataPointType.SUM:t.sum={aggregationTemporality:n,isMonotonic:r.isMonotonic,dataPoints:Rk(r,e)};break;case Mc.DataPointType.GAUGE:t.gauge={dataPoints:Rk(r,e)};break;case Mc.DataPointType.HISTOGRAM:t.histogram={aggregationTemporality:n,dataPoints:Pae(r,e)};break;case Mc.DataPointType.EXPONENTIAL_HISTOGRAM:t.exponentialHistogram={aggregationTemporality:n,dataPoints:Iae(r,e)};break}return t}_s.toMetric=Mk;function bae(r,e,t){let n={attributes:(0,Dm.toAttributes)(r.attributes),startTimeUnixNano:t.encodeHrTime(r.startTime),timeUnixNano:t.encodeHrTime(r.endTime)};switch(e){case wk.ValueType.INT:n.asInt=r.value;break;case wk.ValueType.DOUBLE:n.asDouble=r.value;break}return n}function Rk(r,e){return r.dataPoints.map(t=>bae(t,r.descriptor.valueType,e))}function Pae(r,e){return r.dataPoints.map(t=>{let n=t.value;return{attributes:(0,Dm.toAttributes)(t.attributes),bucketCounts:n.buckets.counts,explicitBounds:n.buckets.boundaries,count:n.count,sum:n.sum,min:n.min,max:n.max,startTimeUnixNano:e.encodeHrTime(t.startTime),timeUnixNano:e.encodeHrTime(t.endTime)}})}function Iae(r,e){return r.dataPoints.map(t=>{let n=t.value;return{attributes:(0,Dm.toAttributes)(t.attributes),count:n.count,min:n.min,max:n.max,sum:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},scale:n.scale,zeroCount:n.zeroCount,startTimeUnixNano:e.encodeHrTime(t.startTime),timeUnixNano:e.encodeHrTime(t.endTime)}})}function wae(r){switch(r){case Mc.AggregationTemporality.DELTA:return 1;case Mc.AggregationTemporality.CUMULATIVE:return 2}}});var Bk=x(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.createExportMetricsServiceRequest=void 0;var Rae=Nk();function Lae(r,e){return{resourceMetrics:r.map(t=>(0,Rae.toResourceMetrics)(t,e))}}xm.createExportMetricsServiceRequest=Lae});var Fk=x(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.toLogAttributes=Nc.createExportLogsServiceRequest=void 0;var Mae=Ml(),BA=Bl();function Nae(r,e){let t=(0,Mae.getOtlpEncoder)(e);return{resourceLogs:Uae(r,t)}}Nc.createExportLogsServiceRequest=Nae;function Bae(r){let e=new Map;for(let t of r){let{resource:n,instrumentationScope:{name:s,version:i="",schemaUrl:o=""}}=t,a=e.get(n);a||(a=new Map,e.set(n,a));let c=`${s}@${i}:${o}`,u=a.get(c);u||(u=[],a.set(c,u)),u.push(t)}return e}function Uae(r,e){let t=Bae(r);return Array.from(t,([n,s])=>({resource:{attributes:(0,BA.toAttributes)(n.attributes),droppedAttributesCount:0},scopeLogs:Array.from(s,([,i])=>{let{instrumentationScope:{name:o,version:a,schemaUrl:c}}=i[0];return{scope:{name:o,version:a},logRecords:i.map(u=>Fae(u,e)),schemaUrl:c}}),schemaUrl:void 0}))}function Fae(r,e){var t,n,s;return{timeUnixNano:e.encodeHrTime(r.hrTime),observedTimeUnixNano:e.encodeHrTime(r.hrTimeObserved),severityNumber:r.severityNumber,severityText:r.severityText,body:(0,BA.toAnyValue)(r.body),attributes:Uk(r.attributes),droppedAttributesCount:r.droppedAttributesCount,flags:(t=r.spanContext)===null||t===void 0?void 0:t.traceFlags,traceId:e.encodeOptionalSpanContext((n=r.spanContext)===null||n===void 0?void 0:n.traceId),spanId:e.encodeOptionalSpanContext((s=r.spanContext)===null||s===void 0?void 0:s.spanId)}}function Uk(r){return Object.keys(r).map(e=>(0,BA.toKeyValue)(e,r[e]))}Nc.toLogAttributes=Uk});var Vk=x(nr=>{"use strict";var Vae=nr&&nr.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Bc=nr&&nr.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Vae(e,r,t)};Object.defineProperty(nr,"__esModule",{value:!0});nr.createExportLogsServiceRequest=nr.createExportMetricsServiceRequest=nr.createExportTraceServiceRequest=void 0;Bc(LG(),nr);Bc(Ml(),nr);Bc(VG(),nr);Bc(kG(),nr);Bc(jG(),nr);Bc(HG(),nr);var Gae=zG();Object.defineProperty(nr,"createExportTraceServiceRequest",{enumerable:!0,get:function(){return Gae.createExportTraceServiceRequest}});var kae=Bk();Object.defineProperty(nr,"createExportMetricsServiceRequest",{enumerable:!0,get:function(){return kae.createExportMetricsServiceRequest}});var jae=Fk();Object.defineProperty(nr,"createExportLogsServiceRequest",{enumerable:!0,get:function(){return jae.createExportLogsServiceRequest}})});var Gk=x(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.VERSION=void 0;bm.VERSION="0.49.1"});var qk=x(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.OTLPTraceExporter=void 0;var Uc=lt(),qae=uT(),kk=uT(),Hae=Vk(),$ae=Gk(),jk="v1/traces",Wae=`http://localhost:4318/${jk}`,Yae={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${$ae.VERSION}`},UA=class extends qae.OTLPExporterNodeBase{constructor(e={}){super(e),this.headers=Object.assign(Object.assign(Object.assign(Object.assign({},this.headers),Yae),Uc.baggageUtils.parseKeyPairsIntoRecord((0,Uc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),e.headers)}convert(e){return(0,Hae.createExportTraceServiceRequest)(e,{useHex:!0,useLongBits:!1})}getDefaultUrl(e){return typeof e.url=="string"?e.url:(0,Uc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?(0,kk.appendRootPathToUrlIfNeeded)((0,Uc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):(0,Uc.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?(0,kk.appendResourcePathToUrl)((0,Uc.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT,jk):Wae}};Pm.OTLPTraceExporter=UA});var Hk=x(qo=>{"use strict";var zae=qo&&qo.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Kae=qo&&qo.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&zae(e,r,t)};Object.defineProperty(qo,"__esModule",{value:!0});Kae(qk(),qo)});var $k=x(Ho=>{"use strict";var Xae=Ho&&Ho.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Jae=Ho&&Ho.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Xae(e,r,t)};Object.defineProperty(Ho,"__esModule",{value:!0});Jae(Hk(),Ho)});var Wk=x($o=>{"use strict";var Qae=$o&&$o.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Zae=$o&&$o.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Qae(e,r,t)};Object.defineProperty($o,"__esModule",{value:!0});Zae($k(),$o)});var VA=x(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.AbstractAsyncHooksContextManager=void 0;var ece=W("events"),tce=["addListener","on","once","prependListener","prependOnceListener"],FA=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,t){return t instanceof ece.EventEmitter?this._bindEventEmitter(e,t):typeof t=="function"?this._bindFunction(e,t):t}_bindFunction(e,t){let n=this,s=function(...i){return n.with(e,()=>t.apply(this,i))};return Object.defineProperty(s,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),s}_bindEventEmitter(e,t){return this._getPatchMap(t)!==void 0||(this._createPatchMap(t),tce.forEach(s=>{t[s]!==void 0&&(t[s]=this._patchAddListener(t,t[s],e))}),typeof t.removeListener=="function"&&(t.removeListener=this._patchRemoveListener(t,t.removeListener)),typeof t.off=="function"&&(t.off=this._patchRemoveListener(t,t.off)),typeof t.removeAllListeners=="function"&&(t.removeAllListeners=this._patchRemoveAllListeners(t,t.removeAllListeners))),t}_patchRemoveListener(e,t){let n=this;return function(s,i){var o;let a=(o=n._getPatchMap(e))===null||o===void 0?void 0:o[s];if(a===void 0)return t.call(this,s,i);let c=a.get(i);return t.call(this,s,c||i)}}_patchRemoveAllListeners(e,t){let n=this;return function(s){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[s]!==void 0&&delete i[s]),t.apply(this,arguments)}}_patchAddListener(e,t,n){let s=this;return function(i,o){if(s._wrapped)return t.call(this,i,o);let a=s._getPatchMap(e);a===void 0&&(a=s._createPatchMap(e));let c=a[i];c===void 0&&(c=new WeakMap,a[i]=c);let u=s.bind(n,o);c.set(o,u),s._wrapped=!0;try{return t.call(this,i,u)}finally{s._wrapped=!1}}}_createPatchMap(e){let t=Object.create(null);return e[this._kOtListeners]=t,t}_getPatchMap(e){return e[this._kOtListeners]}};Im.AbstractAsyncHooksContextManager=FA});var Yk=x(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.AsyncHooksContextManager=void 0;var rce=(be(),Ne(Le)),nce=W("async_hooks"),ice=VA(),GA=class extends ice.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=nce.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:rce.ROOT_CONTEXT}with(e,t,n,...s){this._enterContext(e);try{return t.call(n,...s)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,t){if(t==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let t=this._contexts.get(e);t!==void 0&&this._enterContext(t)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};wm.AsyncHooksContextManager=GA});var zk=x(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.AsyncLocalStorageContextManager=void 0;var sce=(be(),Ne(Le)),oce=W("async_hooks"),ace=VA(),kA=class extends ace.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new oce.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:sce.ROOT_CONTEXT}with(e,t,n,...s){let i=n==null?t:t.bind(n);return this._asyncLocalStorage.run(e,i,...s)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};Rm.AsyncLocalStorageContextManager=kA});var Xk=x(ys=>{"use strict";var cce=ys&&ys.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Kk=ys&&ys.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&cce(e,r,t)};Object.defineProperty(ys,"__esModule",{value:!0});Kk(Yk(),ys);Kk(zk(),ys)});var jA=x(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.B3_DEBUG_FLAG_KEY=void 0;var uce=(be(),Ne(Le));Lm.B3_DEBUG_FLAG_KEY=(0,uce.createContextKey)("OpenTelemetry Context Key B3 Debug Flag")});var Xl=x(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.X_B3_FLAGS=qr.X_B3_PARENT_SPAN_ID=qr.X_B3_SAMPLED=qr.X_B3_SPAN_ID=qr.X_B3_TRACE_ID=qr.B3_CONTEXT_HEADER=void 0;qr.B3_CONTEXT_HEADER="b3";qr.X_B3_TRACE_ID="x-b3-traceid";qr.X_B3_SPAN_ID="x-b3-spanid";qr.X_B3_SAMPLED="x-b3-sampled";qr.X_B3_PARENT_SPAN_ID="x-b3-parentspanid";qr.X_B3_FLAGS="x-b3-flags"});var Zk=x(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.B3MultiPropagator=void 0;var $n=(be(),Ne(Le)),lce=lt(),Jk=jA(),nn=Xl(),fce=new Set([!0,"true","True","1",1]),pce=new Set([!1,"false","False","0",0]);function dce(r){return r===$n.TraceFlags.SAMPLED||r===$n.TraceFlags.NONE}function hce(r){return Array.isArray(r)?r[0]:r}function Mm(r,e,t){let n=e.get(r,t);return hce(n)}function mce(r,e){let t=Mm(r,e,nn.X_B3_TRACE_ID);return typeof t=="string"?t.padStart(32,"0"):""}function gce(r,e){let t=Mm(r,e,nn.X_B3_SPAN_ID);return typeof t=="string"?t:""}function Qk(r,e){return Mm(r,e,nn.X_B3_FLAGS)==="1"?"1":void 0}function Ece(r,e){let t=Mm(r,e,nn.X_B3_SAMPLED);if(Qk(r,e)==="1"||fce.has(t))return $n.TraceFlags.SAMPLED;if(t===void 0||pce.has(t))return $n.TraceFlags.NONE}var qA=class{inject(e,t,n){let s=$n.trace.getSpanContext(e);if(!s||!(0,$n.isSpanContextValid)(s)||(0,lce.isTracingSuppressed)(e))return;let i=e.getValue(Jk.B3_DEBUG_FLAG_KEY);n.set(t,nn.X_B3_TRACE_ID,s.traceId),n.set(t,nn.X_B3_SPAN_ID,s.spanId),i==="1"?n.set(t,nn.X_B3_FLAGS,i):s.traceFlags!==void 0&&n.set(t,nn.X_B3_SAMPLED,($n.TraceFlags.SAMPLED&s.traceFlags)===$n.TraceFlags.SAMPLED?"1":"0")}extract(e,t,n){let s=mce(t,n),i=gce(t,n),o=Ece(t,n),a=Qk(t,n);return(0,$n.isValidTraceId)(s)&&(0,$n.isValidSpanId)(i)&&dce(o)?(e=e.setValue(Jk.B3_DEBUG_FLAG_KEY,a),$n.trace.setSpanContext(e,{traceId:s,spanId:i,isRemote:!0,traceFlags:o})):e}fields(){return[nn.X_B3_TRACE_ID,nn.X_B3_SPAN_ID,nn.X_B3_FLAGS,nn.X_B3_SAMPLED,nn.X_B3_PARENT_SPAN_ID]}};Nm.B3MultiPropagator=qA});var tj=x(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.B3SinglePropagator=void 0;var Wo=(be(),Ne(Le)),Sce=lt(),ej=jA(),HA=Xl(),_ce=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,yce="0".repeat(16),Tce=new Set(["d","1"]),Ace="d";function Oce(r){return r.length===32?r:`${yce}${r}`}function Cce(r){return r&&Tce.has(r)?Wo.TraceFlags.SAMPLED:Wo.TraceFlags.NONE}var $A=class{inject(e,t,n){let s=Wo.trace.getSpanContext(e);if(!s||!(0,Wo.isSpanContextValid)(s)||(0,Sce.isTracingSuppressed)(e))return;let i=e.getValue(ej.B3_DEBUG_FLAG_KEY)||s.traceFlags&1,o=`${s.traceId}-${s.spanId}-${i}`;n.set(t,HA.B3_CONTEXT_HEADER,o)}extract(e,t,n){let s=n.get(t,HA.B3_CONTEXT_HEADER),i=Array.isArray(s)?s[0]:s;if(typeof i!="string")return e;let o=i.match(_ce);if(!o)return e;let[,a,c,u]=o,l=Oce(a);if(!(0,Wo.isValidTraceId)(l)||!(0,Wo.isValidSpanId)(c))return e;let f=Cce(u);return u===Ace&&(e=e.setValue(ej.B3_DEBUG_FLAG_KEY,u)),Wo.trace.setSpanContext(e,{traceId:l,spanId:c,isRemote:!0,traceFlags:f})}fields(){return[HA.B3_CONTEXT_HEADER]}};Bm.B3SinglePropagator=$A});var WA=x(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.B3InjectEncoding=void 0;var vce;(function(r){r[r.SINGLE_HEADER=0]="SINGLE_HEADER",r[r.MULTI_HEADER=1]="MULTI_HEADER"})(vce=Jl.B3InjectEncoding||(Jl.B3InjectEncoding={}))});var rj=x(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.B3Propagator=void 0;var Dce=lt(),xce=Zk(),bce=tj(),Pce=Xl(),Ice=WA(),YA=class{constructor(e={}){this._b3MultiPropagator=new xce.B3MultiPropagator,this._b3SinglePropagator=new bce.B3SinglePropagator,e.injectEncoding===Ice.B3InjectEncoding.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}inject(e,t,n){(0,Dce.isTracingSuppressed)(e)||this._inject(e,t,n)}extract(e,t,n){let s=n.get(t,Pce.B3_CONTEXT_HEADER);return(Array.isArray(s)?s[0]:s)?this._b3SinglePropagator.extract(e,t,n):this._b3MultiPropagator.extract(e,t,n)}fields(){return this._fields}};Um.B3Propagator=YA});var nj=x(Ni=>{"use strict";var wce=Ni&&Ni.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),zA=Ni&&Ni.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&wce(e,r,t)};Object.defineProperty(Ni,"__esModule",{value:!0});zA(rj(),Ni);zA(Xl(),Ni);zA(WA(),Ni)});var ij=x(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.ExceptionEventName=void 0;Fm.ExceptionEventName="exception"});var XA=x(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.Span=void 0;var Wn=(be(),Ne(Le)),Or=lt(),Yo=di(),Rce=ij(),KA=class{constructor(e,t,n,s,i,o,a=[],c,u,l){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Wn.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=s,this.parentSpanId=o,this.kind=i,this.links=a;let f=Date.now();this._performanceStartTime=Or.otperformance.now(),this._performanceOffset=f-(this._performanceStartTime+(0,Or.getTimeOrigin)()),this._startTimeProvided=c!=null,this.startTime=this._getTime(c??f),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}spanContext(){return this._spanContext}setAttribute(e,t){return t==null||this._isSpanEnded()?this:e.length===0?(Wn.diag.warn(`Invalid attribute key: ${e}`),this):(0,Or.isAttributeValue)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(Wn.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return Wn.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&Wn.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Or.isTimeInput)(t)&&((0,Or.isTimeInput)(n)||(n=t),t=void 0);let s=(0,Or.sanitizeAttributes)(t);return this.events.push({name:e,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}setStatus(e){return this._isSpanEnded()?this:(this.status=e,this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){Wn.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,Or.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(Wn.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wn.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<Or.otperformance.now())return(0,Or.hrTime)(e+this._performanceOffset);if(typeof e=="number")return(0,Or.millisToHrTime)(e);if(e instanceof Date)return(0,Or.millisToHrTime)(e.getTime());if((0,Or.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,Or.millisToHrTime)(Date.now());let t=Or.otperformance.now()-this._performanceStartTime;return(0,Or.addHrTimes)(this.startTime,(0,Or.millisToHrTime)(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e=="string"?n[Yo.SemanticAttributes.EXCEPTION_MESSAGE]=e:e&&(e.code?n[Yo.SemanticAttributes.EXCEPTION_TYPE]=e.code.toString():e.name&&(n[Yo.SemanticAttributes.EXCEPTION_TYPE]=e.name),e.message&&(n[Yo.SemanticAttributes.EXCEPTION_MESSAGE]=e.message),e.stack&&(n[Yo.SemanticAttributes.EXCEPTION_STACKTRACE]=e.stack)),n[Yo.SemanticAttributes.EXCEPTION_TYPE]||n[Yo.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(Rce.ExceptionEventName,n,t):Wn.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){return this._ended&&Wn.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substr(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(Wn.diag.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e=="string"?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,t):n):e}};Vm.Span=KA});var Zl=x(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.SamplingDecision=void 0;var Lce;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Lce=Ql.SamplingDecision||(Ql.SamplingDecision={}))});var km=x(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.AlwaysOffSampler=void 0;var Mce=Zl(),JA=class{shouldSample(){return{decision:Mce.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Gm.AlwaysOffSampler=JA});var qm=x(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.AlwaysOnSampler=void 0;var Nce=Zl(),QA=class{shouldSample(){return{decision:Nce.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};jm.AlwaysOnSampler=QA});var t1=x($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.ParentBasedSampler=void 0;var Hm=(be(),Ne(Le)),Bce=lt(),sj=km(),ZA=qm(),e1=class{constructor(e){var t,n,s,i;this._root=e.root,this._root||((0,Bce.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ZA.AlwaysOnSampler),this._remoteParentSampled=(t=e.remoteParentSampled)!==null&&t!==void 0?t:new ZA.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new sj.AlwaysOffSampler,this._localParentSampled=(s=e.localParentSampled)!==null&&s!==void 0?s:new ZA.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new sj.AlwaysOffSampler}shouldSample(e,t,n,s,i,o){let a=Hm.trace.getSpanContext(e);return!a||!(0,Hm.isSpanContextValid)(a)?this._root.shouldSample(e,t,n,s,i,o):a.isRemote?a.traceFlags&Hm.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,s,i,o):this._remoteParentNotSampled.shouldSample(e,t,n,s,i,o):a.traceFlags&Hm.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,n,s,i,o):this._localParentNotSampled.shouldSample(e,t,n,s,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};$m.ParentBasedSampler=e1});var n1=x(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.TraceIdRatioBasedSampler=void 0;var Uce=(be(),Ne(Le)),oj=Zl(),r1=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:(0,Uce.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?oj.SamplingDecision.RECORD_AND_SAMPLED:oj.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let s=n*8,i=parseInt(e.slice(s,s+8),16);t=(t^i)>>>0}return t}};Wm.TraceIdRatioBasedSampler=r1});var o1=x(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.buildSamplerFromEnv=Vc.loadDefaultConfig=void 0;var Ym=(be(),Ne(Le)),ur=lt(),aj=km(),i1=qm(),s1=t1(),cj=n1(),Fce=(0,ur.getEnv)(),Vce=ur.TracesSamplerValues.AlwaysOn,Fc=1;function Gce(){return{sampler:lj(Fce),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,ur.getEnv)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,ur.getEnv)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,ur.getEnv)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,ur.getEnv)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,ur.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}Vc.loadDefaultConfig=Gce;function lj(r=(0,ur.getEnv)()){switch(r.OTEL_TRACES_SAMPLER){case ur.TracesSamplerValues.AlwaysOn:return new i1.AlwaysOnSampler;case ur.TracesSamplerValues.AlwaysOff:return new aj.AlwaysOffSampler;case ur.TracesSamplerValues.ParentBasedAlwaysOn:return new s1.ParentBasedSampler({root:new i1.AlwaysOnSampler});case ur.TracesSamplerValues.ParentBasedAlwaysOff:return new s1.ParentBasedSampler({root:new aj.AlwaysOffSampler});case ur.TracesSamplerValues.TraceIdRatio:return new cj.TraceIdRatioBasedSampler(uj(r));case ur.TracesSamplerValues.ParentBasedTraceIdRatio:return new s1.ParentBasedSampler({root:new cj.TraceIdRatioBasedSampler(uj(r))});default:return Ym.diag.error(`OTEL_TRACES_SAMPLER value "${r.OTEL_TRACES_SAMPLER} invalid, defaulting to ${Vce}".`),new i1.AlwaysOnSampler}}Vc.buildSamplerFromEnv=lj;function uj(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return Ym.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Fc}.`),Fc;let e=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(Ym.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Fc}.`),Fc):e<0||e>1?(Ym.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Fc}.`),Fc):e}});var c1=x(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.reconfigureLimits=Gc.mergeConfig=void 0;var fj=o1(),a1=lt();function kce(r){let e={sampler:(0,fj.buildSamplerFromEnv)()},t=(0,fj.loadDefaultConfig)(),n=Object.assign({},t,e,r);return n.generalLimits=Object.assign({},t.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},t.spanLimits,r.spanLimits||{}),n}Gc.mergeConfig=kce;function jce(r){var e,t,n,s,i,o,a,c,u,l,f,p;let d=Object.assign({},r.spanLimits),m=(0,a1.getEnvWithoutDefaults)();return d.attributeCountLimit=(o=(i=(s=(t=(e=r.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&t!==void 0?t:(n=r.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&s!==void 0?s:m.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:m.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:a1.DEFAULT_ATTRIBUTE_COUNT_LIMIT,d.attributeValueLengthLimit=(p=(f=(l=(c=(a=r.spanLimits)===null||a===void 0?void 0:a.attributeValueLengthLimit)!==null&&c!==void 0?c:(u=r.generalLimits)===null||u===void 0?void 0:u.attributeValueLengthLimit)!==null&&l!==void 0?l:m.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&f!==void 0?f:m.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:a1.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},r,{spanLimits:d})}Gc.reconfigureLimits=jce});var pj=x(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.BatchSpanProcessorBase=void 0;var kc=(be(),Ne(Le)),zo=lt(),u1=class{constructor(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,zo.getEnv)();this._maxExportBatchSize=typeof t?.maxExportBatchSize=="number"?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof t?.maxQueueSize=="number"?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof t?.scheduledDelayMillis=="number"?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof t?.exportTimeoutMillis=="number"?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new zo.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(kc.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&kc.TraceFlags.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&kc.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(kc.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],s=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=s;i<o;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(new Error("Timeout"))},this._exportTimeoutMillis);kc.context.with((0,zo.suppressTracing)(kc.context.active()),()=>{let s=this._finishedSpans.splice(0,this._maxExportBatchSize),i=()=>this._exporter.export(s,a=>{var c;clearTimeout(n),a.code===zo.ExportResultCode.SUCCESS?e():t((c=a.error)!==null&&c!==void 0?c:new Error("BatchSpanProcessor: span export failed"))}),o=s.map(a=>a.resource).filter(a=>a.asyncAttributesPending);o.length===0?i():Promise.all(o.map(a=>{var c;return(c=a.waitForAsyncAttributes)===null||c===void 0?void 0:c.call(a)})).then(i,a=>{(0,zo.globalErrorHandler)(a),t(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(t=>{this._isExporting=!1,(0,zo.globalErrorHandler)(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,zo.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};zm.BatchSpanProcessorBase=u1});var dj=x(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.BatchSpanProcessor=void 0;var qce=pj(),l1=class extends qce.BatchSpanProcessorBase{onShutdown(){}};Km.BatchSpanProcessor=l1});var gj=x(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.RandomIdGenerator=void 0;var Hce=8,mj=16,f1=class{constructor(){this.generateTraceId=hj(mj),this.generateSpanId=hj(Hce)}};Jm.RandomIdGenerator=f1;var Xm=Buffer.allocUnsafe(mj);function hj(r){return function(){for(let t=0;t<r/4;t++)Xm.writeUInt32BE(Math.random()*2**32>>>0,t*4);for(let t=0;t<r&&!(Xm[t]>0);t++)t===r-1&&(Xm[r-1]=1);return Xm.toString("hex",0,r)}}});var Sj=x(Ts=>{"use strict";var $ce=Ts&&Ts.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Ej=Ts&&Ts.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&$ce(e,r,t)};Object.defineProperty(Ts,"__esModule",{value:!0});Ej(dj(),Ts);Ej(gj(),Ts)});var Qm=x(Ko=>{"use strict";var Wce=Ko&&Ko.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Yce=Ko&&Ko.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Wce(e,r,t)};Object.defineProperty(Ko,"__esModule",{value:!0});Yce(Sj(),Ko)});var _j=x(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.Tracer=void 0;var lr=(be(),Ne(Le)),Zm=lt(),zce=XA(),Kce=c1(),Xce=Qm(),p1=class{constructor(e,t,n){this._tracerProvider=n;let s=(0,Kce.mergeConfig)(t);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=t.idGenerator||new Xce.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,t={},n=lr.context.active()){var s,i,o;t.root&&(n=lr.trace.deleteSpan(n));let a=lr.trace.getSpan(n);if((0,Zm.isTracingSuppressed)(n))return lr.diag.debug("Instrumentation suppressed, returning Noop Span"),lr.trace.wrapSpanContext(lr.INVALID_SPAN_CONTEXT);let c=a?.spanContext(),u=this._idGenerator.generateSpanId(),l,f,p;!c||!lr.trace.isSpanContextValid(c)?l=this._idGenerator.generateTraceId():(l=c.traceId,f=c.traceState,p=c.spanId);let d=(s=t.kind)!==null&&s!==void 0?s:lr.SpanKind.INTERNAL,m=((i=t.links)!==null&&i!==void 0?i:[]).map(y=>({context:y.context,attributes:(0,Zm.sanitizeAttributes)(y.attributes)})),g=(0,Zm.sanitizeAttributes)(t.attributes),h=this._sampler.shouldSample(n,l,e,d,g,m);f=(o=h.traceState)!==null&&o!==void 0?o:f;let E=h.decision===lr.SamplingDecision.RECORD_AND_SAMPLED?lr.TraceFlags.SAMPLED:lr.TraceFlags.NONE,_={traceId:l,spanId:u,traceFlags:E,traceState:f};if(h.decision===lr.SamplingDecision.NOT_RECORD)return lr.diag.debug("Recording is off, propagating context in a non-recording span"),lr.trace.wrapSpanContext(_);let S=(0,Zm.sanitizeAttributes)(Object.assign(g,h.attributes));return new zce.Span(this,n,e,_,d,p,m,t.startTime,void 0,S)}startActiveSpan(e,t,n,s){let i,o,a;if(arguments.length<2)return;arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,o=n,a=s);let c=o??lr.context.active(),u=this.startSpan(e,i,c),l=lr.trace.setSpan(c,u);return lr.context.with(l,a,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};e0.Tracer=p1});var yj=x(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.MultiSpanProcessor=void 0;var Jce=lt(),d1=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(n=>{(0,Jce.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}};t0.MultiSpanProcessor=d1});var m1=x(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.NoopSpanProcessor=void 0;var h1=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};r0.NoopSpanProcessor=h1});var Aj=x(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.BasicTracerProvider=Xo.ForceFlushState=void 0;var jc=(be(),Ne(Le)),Hc=lt(),Tj=Cc(),Qce=n0(),Zce=o1(),eue=yj(),tue=m1(),rue=Qm(),nue=c1(),qc;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(qc=Xo.ForceFlushState||(Xo.ForceFlushState={}));var ef=class{constructor(e={}){var t;this._registeredSpanProcessors=[],this._tracers=new Map;let n=(0,Hc.merge)({},(0,Zce.loadDefaultConfig)(),(0,nue.reconfigureLimits)(e));this.resource=(t=n.resource)!==null&&t!==void 0?t:Tj.Resource.empty(),this.resource=Tj.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let s=this._buildExporterFromEnv();if(s!==void 0){let i=new rue.BatchSpanProcessor(s);this.activeSpanProcessor=i}else this.activeSpanProcessor=new tue.NoopSpanProcessor}getTracer(e,t,n){let s=`${e}@${t||""}:${n?.schemaUrl||""}`;return this._tracers.has(s)||this._tracers.set(s,new Qce.Tracer({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(s)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(t=>jc.diag.error("Error while trying to shutdown current span processor",t)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new eue.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){jc.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&jc.context.setGlobalContextManager(e.contextManager),e.propagator&&jc.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(n=>new Promise(s=>{let i,o=setTimeout(()=>{s(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=qc.timeout},e);n.forceFlush().then(()=>{clearTimeout(o),i!==qc.timeout&&(i=qc.resolved,s(i))}).catch(a=>{clearTimeout(o),i=qc.error,s(a)})}));return new Promise((n,s)=>{Promise.all(t).then(i=>{let o=i.filter(a=>a!==qc.resolved);o.length>0?s(o):n()}).catch(i=>s([i]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var t;return(t=this.constructor._registeredPropagators.get(e))===null||t===void 0?void 0:t()}_getSpanExporter(e){var t;return(t=this.constructor._registeredExporters.get(e))===null||t===void 0?void 0:t()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,Hc.getEnv)().OTEL_PROPAGATORS)),n=e.map(s=>{let i=this._getPropagator(s);return i||jc.diag.warn(`Propagator "${s}" requested through environment variable is unavailable.`),i}).reduce((s,i)=>(i&&s.push(i),s),[]);if(n.length!==0)return e.length===1?n[0]:new Hc.CompositePropagator({propagators:n})}_buildExporterFromEnv(){let e=(0,Hc.getEnv)().OTEL_TRACES_EXPORTER;if(e==="none"||e==="")return;let t=this._getSpanExporter(e);return t||jc.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};Xo.BasicTracerProvider=ef;ef._registeredPropagators=new Map([["tracecontext",()=>new Hc.W3CTraceContextPropagator],["baggage",()=>new Hc.W3CBaggagePropagator]]);ef._registeredExporters=new Map});var Oj=x(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.ConsoleSpanExporter=void 0;var g1=lt(),E1=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){var t;return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(t=e.spanContext().traceState)===null||t===void 0?void 0:t.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,g1.hrTimeToMicroseconds)(e.startTime),duration:(0,g1.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,t){for(let n of e)console.dir(this._exportInfo(n),{depth:3});if(t)return t({code:g1.ExportResultCode.SUCCESS})}};i0.ConsoleSpanExporter=E1});var vj=x(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.InMemorySpanExporter=void 0;var Cj=lt(),S1=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,t){if(this._stopped)return t({code:Cj.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout(()=>t({code:Cj.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};s0.InMemorySpanExporter=S1});var xj=x(Dj=>{"use strict";Object.defineProperty(Dj,"__esModule",{value:!0})});var bj=x(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.SimpleSpanProcessor=void 0;var iue=(be(),Ne(Le)),$c=lt(),_1=class{constructor(e){this._exporter=e,this._shutdownOnce=new $c.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,t){}onEnd(e){var t,n;if(this._shutdownOnce.isCalled||(e.spanContext().traceFlags&iue.TraceFlags.SAMPLED)===0)return;let s=()=>$c.internal._export(this._exporter,[e]).then(i=>{var o;i.code!==$c.ExportResultCode.SUCCESS&&(0,$c.globalErrorHandler)((o=i.error)!==null&&o!==void 0?o:new Error(`SimpleSpanProcessor: span export failed (status ${i})`))}).catch(i=>{(0,$c.globalErrorHandler)(i)});if(e.resource.asyncAttributesPending){let i=(n=(t=e.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(t).then(()=>(i!=null&&this._unresolvedExports.delete(i),s()),o=>(0,$c.globalErrorHandler)(o));i!=null&&this._unresolvedExports.add(i)}else s()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};o0.SimpleSpanProcessor=_1});var Ij=x(Pj=>{"use strict";Object.defineProperty(Pj,"__esModule",{value:!0})});var Rj=x(wj=>{"use strict";Object.defineProperty(wj,"__esModule",{value:!0})});var Mj=x(Lj=>{"use strict";Object.defineProperty(Lj,"__esModule",{value:!0})});var Bj=x(Nj=>{"use strict";Object.defineProperty(Nj,"__esModule",{value:!0})});var Fj=x(Uj=>{"use strict";Object.defineProperty(Uj,"__esModule",{value:!0})});var n0=x(yt=>{"use strict";var sue=yt&&yt.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Wt=yt&&yt.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&sue(e,r,t)};Object.defineProperty(yt,"__esModule",{value:!0});Wt(_j(),yt);Wt(Aj(),yt);Wt(Qm(),yt);Wt(Oj(),yt);Wt(vj(),yt);Wt(xj(),yt);Wt(bj(),yt);Wt(Ij(),yt);Wt(m1(),yt);Wt(km(),yt);Wt(qm(),yt);Wt(t1(),yt);Wt(n1(),yt);Wt(Zl(),yt);Wt(XA(),yt);Wt(Rj(),yt);Wt(Mj(),yt);Wt(Bj(),yt);Wt(Fj(),yt)});var Vj=x(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.JaegerPropagator=Yn.UBER_BAGGAGE_HEADER_PREFIX=Yn.UBER_TRACE_ID_HEADER=void 0;var Jo=(be(),Ne(Le)),oue=lt();Yn.UBER_TRACE_ID_HEADER="uber-trace-id";Yn.UBER_BAGGAGE_HEADER_PREFIX="uberctx";var y1=class{constructor(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=Yn.UBER_BAGGAGE_HEADER_PREFIX):(this._jaegerTraceHeader=e?.customTraceHeader||Yn.UBER_TRACE_ID_HEADER,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||Yn.UBER_BAGGAGE_HEADER_PREFIX)}inject(e,t,n){let s=Jo.trace.getSpanContext(e),i=Jo.propagation.getBaggage(e);if(s&&(0,oue.isTracingSuppressed)(e)===!1){let o=`0${(s.traceFlags||Jo.TraceFlags.NONE).toString(16)}`;n.set(t,this._jaegerTraceHeader,`${s.traceId}:${s.spanId}:0:${o}`)}if(i)for(let[o,a]of i.getAllEntries())n.set(t,`${this._jaegerBaggageHeaderPrefix}-${o}`,encodeURIComponent(a.value))}extract(e,t,n){var s;let i=n.get(t,this._jaegerTraceHeader),o=Array.isArray(i)?i[0]:i,a=n.keys(t).filter(l=>l.startsWith(`${this._jaegerBaggageHeaderPrefix}-`)).map(l=>{let f=n.get(t,l);return{key:l.substring(this._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(f)?f[0]:f}}),c=e;if(typeof o=="string"){let l=cue(o);l&&(c=Jo.trace.setSpanContext(c,l))}if(a.length===0)return c;let u=(s=Jo.propagation.getBaggage(e))!==null&&s!==void 0?s:Jo.propagation.createBaggage();for(let l of a)l.value!==void 0&&(u=u.setEntry(l.key,{value:decodeURIComponent(l.value)}));return c=Jo.propagation.setBaggage(c,u),c}fields(){return[this._jaegerTraceHeader]}};Yn.JaegerPropagator=y1;var aue=/^[0-9a-f]{1,2}$/i;function cue(r){let e=decodeURIComponent(r).split(":");if(e.length!==4)return null;let[t,n,,s]=e,i=t.padStart(32,"0"),o=n.padStart(16,"0"),a=aue.test(s)?parseInt(s,16)&1:1;return{traceId:i,spanId:o,isRemote:!0,traceFlags:a}}});var Gj=x(Qo=>{"use strict";var uue=Qo&&Qo.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),lue=Qo&&Qo.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&uue(e,r,t)};Object.defineProperty(Qo,"__esModule",{value:!0});lue(Vj(),Qo)});var qj=x(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.NodeTracerProvider=void 0;var kj=Xk(),a0=nj(),jj=n0(),fue=zE(),pue=Gj(),c0=class extends jj.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let t=fue.gte(process.version,"14.8.0")?kj.AsyncLocalStorageContextManager:kj.AsyncHooksContextManager;e.contextManager=new t,e.contextManager.enable()}super.register(e)}};u0.NodeTracerProvider=c0;c0._registeredPropagators=new Map([...jj.BasicTracerProvider._registeredPropagators,["b3",()=>new a0.B3Propagator({injectEncoding:a0.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new a0.B3Propagator({injectEncoding:a0.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new pue.JaegerPropagator]])});var $j=x(As=>{"use strict";var due=As&&As.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Hj=As&&As.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&due(e,r,t)};Object.defineProperty(As,"__esModule",{value:!0});Hj(qj(),As);Hj(n0(),As)});var Wj=x((dOe,hue)=>{hue.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Kj=x(zn=>{"use strict";var Yj=Wj(),Vt=process.env;Object.defineProperty(zn,"_vendors",{value:Yj.map(function(r){return r.constant})});zn.name=null;zn.isPR=null;zn.id=null;Vt.CI!=="false"&&Yj.forEach(function(r){let t=(Array.isArray(r.env)?r.env:[r.env]).every(function(n){return zj(n)});zn[r.constant]=t,t&&(zn.name=r.name,zn.isPR=mue(r),zn.id=r.constant)});zn.isCI=!!(Vt.CI!=="false"&&(Vt.BUILD_ID||Vt.BUILD_NUMBER||Vt.CI||Vt.CI_APP_ID||Vt.CI_BUILD_ID||Vt.CI_BUILD_NUMBER||Vt.CI_NAME||Vt.CONTINUOUS_INTEGRATION||Vt.RUN_ID||zn.name));function zj(r){return typeof r=="string"?!!Vt[r]:"env"in r?Vt[r.env]&&Vt[r.env].includes(r.includes):"any"in r?r.any.some(function(e){return!!Vt[e]}):Object.keys(r).every(function(e){return Vt[e]===r[e]})}function mue(r){switch(typeof r.pr){case"string":return!!Vt[r.pr];case"object":return"env"in r.pr?"any"in r.pr?r.pr.any.some(function(e){return Vt[r.pr.env]===e}):r.pr.env in Vt&&Vt[r.pr.env]!==r.pr.ne:"any"in r.pr?r.pr.any.some(function(e){return!!Vt[e]}):zj(r.pr);default:return null}}});var Jj=x((mOe,Xj)=>{(()=>{var r={2980:(n,s,i)=>{"use strict";i(7360),i(5888),i(8412),i(3852),i(5584);var o=i(9892),a=i(5008),c=i(5088),u=i(224);function l(f,p){(p=p||{}).clipboard&&console.log(`
|
|
162
162
|
*** Clipboard option removed - use clipboardy or clipboard-cli directly ***
|
|
163
163
|
`);var d=Object.keys(f).length>0?f:c.defaults,m=Object.entries(d).reduce((function(g,h){var E=h[0],_=h[1],S=o[`get${E}`];return S?(_&&g.push(S(_,p)),g):g=g.concat((_||[]).map((function(T){var y=o[`get${T.replace(/\s/g,"")}Info`];return y?y():Promise.resolve(["Unknown"])})))}),[]);return Promise.all(m).then((function(g){var h=g.reduce((function(E,_){return _&&_[0]&&Object.assign(E,{[_[0]]:_}),E}),{});return(function(E,_){var S=_.json?a.json:_.markdown?a.markdown:a.yaml;if(_.console){var T=!1;process.stdout.isTTY&&(T=!0),console.log(S(E,Object.assign({},_,{console:T})))}return S(E,Object.assign({},_,{console:!1}))})(Object.entries(c.defaults).reduce((function(E,_){var S=_[0],T=_[1];return h[S]?Object.assign(E,{[S]:h[S][1]}):Object.assign(E,{[S]:(T||[]).reduce((function(y,b){return h[b]?(h[b].shift(),h[b].length===1?Object.assign(y,{[b]:h[b][0]}):Object.assign(y,{[b]:{version:h[b][0],path:h[b][1]}})):y}),{})})}),{}),p)}))}n.exports={cli:function(f){if(f.all)return l(Object.assign({},c.defaults,{npmPackages:!0,npmGlobalPackages:!0,pnpmGlobalPackages:!0}),f);if(f.raw)return l(JSON.parse(f.raw),f);if(f.helper){var p=o[`get${f.helper}`]||o[`get${f.helper}Info`]||o[f.helper];return p?p().then(console.log):console.error("Not Found")}var d=function(h,E){return h.toLowerCase().includes(E.toLowerCase())},m=Object.keys(f).filter((function(h){return Object.keys(c.defaults).some((function(E){return d(E,h)}))})),g=Object.entries(c.defaults).reduce((function(h,E){return m.some((function(_){return d(_,E[0])}))?Object.assign(h,{[E[0]]:E[1]||f[E[0]]}):h}),{});return f.preset?c[f.preset]?l(Object.assign({},u.omit(c[f.preset],["options"]),g),Object.assign({},c[f.preset].options,u.pick(f,["duplicates","fullTree","json","markdown","console"]))):console.error(`
|
|
164
164
|
No "${f.preset}" preset found.`):l(g,f)},helpers:o,main:l,run:function(f,p){return typeof f.preset=="string"?l(c[f.preset],p):l(f,p)}}},5008:(n,s,i)=>{"use strict";i(223),i(3852),i(4880),i(3708),i(5584),i(5308);var o=i(6232),a=i(224);function c(_,S){return a.log("trace","clean",_),Object.keys(_).reduce((function(T,y){return!S.showNotFound&&_[y]==="Not Found"||_[y]==="N/A"||_[y]===void 0||Object.keys(_[y]).length===0?T:a.isObject(_[y])?Object.values(_[y]).every((function(b){return b==="N/A"||!S.showNotFound&&b==="Not Found"}))?T:Object.assign(T,{[y]:c(_[y],S)}):Object.assign(T,{[y]:_[y]})}),{})}function u(_,S){a.log("trace","formatHeaders"),S||(S={type:"underline"});var T={underline:["\x1B[4m","\x1B[0m"]};return _.slice().split(`
|
|
@@ -178,7 +178,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);return new _(S,T).found}fu
|
|
|
178
178
|
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof _))return new _(S,T);if(d(this,S,T),this.noprocess)return this;var y=this.minimatch.set.length;this.matches=new Array(y);for(var b=0;b<y;b++)this._process(this.minimatch.set[b],b,!1);this._finish()}_.prototype._finish=function(){if(l(this instanceof _),this.realpath){var S=this;this.matches.forEach((function(T,y){var b=S.matches[y]=Object.create(null);for(var C in T)try{C=S._makeAbs(C),b[a.realpathSync(C,S.realpathCache)]=!0}catch(D){if(D.syscall!=="stat")throw D;b[S._makeAbs(C)]=!0}}))}p.finish(this)},_.prototype._process=function(S,T,y){l(this instanceof _);for(var b,C=0;typeof S[C]=="string";)C++;switch(C){case S.length:return void this._processSimple(S.join("/"),T);case 0:b=null;break;default:b=S.slice(0,C).join("/")}var D,A=S.slice(C);b===null?D=".":((f(b)||f(S.join("/")))&&(b&&f(b)||(b="/"+b)),D=b);var v=this._makeAbs(D);g(this,D)||(A[0]===c.GLOBSTAR?this._processGlobStar(b,D,v,A,T,y):this._processReaddir(b,D,v,A,T,y))},_.prototype._processReaddir=function(S,T,y,b,C,D){var A=this._readdir(y,D);if(A){for(var v=b[0],I=!!this.minimatch.negate,F=v._glob,V=this.dot||F.charAt(0)===".",$=[],k=0;k<A.length;k++)((ne=A[k]).charAt(0)!=="."||V)&&(I&&!S?!ne.match(v):ne.match(v))&&$.push(ne);var K=$.length;if(K!==0)if(b.length!==1||this.mark||this.stat)for(b.shift(),k=0;k<K;k++){var ee;ne=$[k],ee=S?[S,ne]:[ne],this._process(ee.concat(b),C,D)}else for(this.matches[C]||(this.matches[C]=Object.create(null)),k=0;k<K;k++){var ne=$[k];S&&(ne=S.slice(-1)!=="/"?S+"/"+ne:S+ne),ne.charAt(0)!=="/"||this.nomount||(ne=u.join(this.root,ne)),this._emitMatch(C,ne)}}},_.prototype._emitMatch=function(S,T){if(!h(this,T)){var y=this._makeAbs(T);if(this.mark&&(T=this._mark(T)),this.absolute&&(T=y),!this.matches[S][T]){if(this.nodir){var b=this.cache[y];if(b==="DIR"||Array.isArray(b))return}this.matches[S][T]=!0,this.stat&&this._stat(T)}}},_.prototype._readdirInGlobStar=function(S){if(this.follow)return this._readdir(S,!1);var T,y;try{y=o.lstatSync(S)}catch(C){if(C.code==="ENOENT")return null}var b=y&&y.isSymbolicLink();return this.symlinks[S]=b,b||!y||y.isDirectory()?T=this._readdir(S,!1):this.cache[S]="FILE",T},_.prototype._readdir=function(S,T){if(T&&!m(this.symlinks,S))return this._readdirInGlobStar(S);if(m(this.cache,S)){var y=this.cache[S];if(!y||y==="FILE")return null;if(Array.isArray(y))return y}try{return this._readdirEntries(S,o.readdirSync(S))}catch(b){return this._readdirError(S,b),null}},_.prototype._readdirEntries=function(S,T){if(!this.mark&&!this.stat)for(var y=0;y<T.length;y++){var b=T[y];b=S==="/"?S+b:S+"/"+b,this.cache[b]=!0}return this.cache[S]=T,T},_.prototype._readdirError=function(S,T){switch(T.code){case"ENOTSUP":case"ENOTDIR":var y=this._makeAbs(S);if(this.cache[y]="FILE",y===this.cwdAbs){var b=new Error(T.code+" invalid cwd "+this.cwd);throw b.path=this.cwd,b.code=T.code,b}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(S)]=!1;break;default:if(this.cache[this._makeAbs(S)]=!1,this.strict)throw T;this.silent||console.error("glob error",T)}},_.prototype._processGlobStar=function(S,T,y,b,C,D){var A=this._readdir(y,D);if(A){var v=b.slice(1),I=S?[S]:[],F=I.concat(v);this._process(F,C,!1);var V=A.length;if(!this.symlinks[y]||!D){for(var $=0;$<V;$++)if(A[$].charAt(0)!=="."||this.dot){var k=I.concat(A[$],v);this._process(k,C,!0);var K=I.concat(A[$],b);this._process(K,C,!0)}}}},_.prototype._processSimple=function(S,T){var y=this._stat(S);if(this.matches[T]||(this.matches[T]=Object.create(null)),y){if(S&&f(S)&&!this.nomount){var b=/[\/\\]$/.test(S);S.charAt(0)==="/"?S=u.join(this.root,S):(S=u.resolve(this.root,S),b&&(S+="/"))}process.platform==="win32"&&(S=S.replace(/\\/g,"/")),this._emitMatch(T,S)}},_.prototype._stat=function(S){var T=this._makeAbs(S),y=S.slice(-1)==="/";if(S.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,T)){var b=this.cache[T];if(Array.isArray(b)&&(b="DIR"),!y||b==="DIR")return b;if(y&&b==="FILE")return!1}var C=this.statCache[T];if(!C){var D;try{D=o.lstatSync(T)}catch(A){if(A&&(A.code==="ENOENT"||A.code==="ENOTDIR"))return this.statCache[T]=!1,!1}if(D&&D.isSymbolicLink())try{C=o.statSync(T)}catch{C=D}else C=D}return this.statCache[T]=C,b=!0,C&&(b=C.isDirectory()?"DIR":"FILE"),this.cache[T]=this.cache[T]||b,(!y||b!=="FILE")&&b},_.prototype._mark=function(S){return p.mark(this,S)},_.prototype._makeAbs=function(S){return p.makeAbs(this,S)}},363:(n,s,i)=>{var o=i(2680),a=Object.create(null),c=i(4640);n.exports=o((function(u,l){return a[u]?(a[u].push(l),null):(a[u]=[l],(function(f){return c((function p(){var d=a[f],m=d.length,g=(function(E){for(var _=E.length,S=[],T=0;T<_;T++)S[T]=E[T];return S})(arguments);try{for(var h=0;h<m;h++)d[h].apply(null,g)}finally{d.length>m?(d.splice(0,m),process.nextTick((function(){p.apply(null,g)}))):delete a[f]}}))})(u))}))},3352:(n,s,i)=>{try{var o=i(970);if(typeof o.inherits!="function")throw"";n.exports=o.inherits}catch{n.exports=i(8248)}},8248:n=>{typeof Object.create=="function"?n.exports=function(s,i){s.super_=i,s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(s,i){s.super_=i;var o=function(){};o.prototype=i.prototype,s.prototype=new o,s.prototype.constructor=s}},1392:n=>{"use strict";var s=n.exports=function(i){return i!==null&&typeof i=="object"&&typeof i.pipe=="function"};s.writable=function(i){return s(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object"},s.readable=function(i){return s(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object"},s.duplex=function(i){return s.writable(i)&&s.readable(i)},s.transform=function(i){return s.duplex(i)&&typeof i._transform=="function"&&typeof i._transformState=="object"}},9268:(n,s,i)=>{var o;function a(c,u,l){if(typeof u=="function"&&(l=u,u={}),!l){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise((function(f,p){a(c,u||{},(function(d,m){d?p(d):f(m)}))}))}o(c,u||{},(function(f,p){f&&(f.code==="EACCES"||u&&u.ignoreErrors)&&(f=null,p=!1),l(f,p)}))}i(2058),o=process.platform==="win32"||global.TESTING_WINDOWS?i(8340):i(8692),n.exports=a,a.sync=function(c,u){try{return o.sync(c,u||{})}catch(l){if(u&&u.ignoreErrors||l.code==="EACCES")return!1;throw l}}},8692:(n,s,i)=>{n.exports=a,a.sync=function(u,l){return c(o.statSync(u),l)};var o=i(2058);function a(u,l,f){o.stat(u,(function(p,d){f(p,!p&&c(d,l))}))}function c(u,l){return u.isFile()&&(function(f,p){var d=f.mode,m=f.uid,g=f.gid,h=p.uid!==void 0?p.uid:process.getuid&&process.getuid(),E=p.gid!==void 0?p.gid:process.getgid&&process.getgid(),_=parseInt("100",8),S=parseInt("010",8);return d&parseInt("001",8)||d&S&&g===E||d&_&&m===h||d&(_|S)&&h===0})(u,l)}},8340:(n,s,i)=>{n.exports=c,c.sync=function(u,l){return a(o.statSync(u),u,l)};var o=i(2058);function a(u,l,f){return!(!u.isSymbolicLink()&&!u.isFile())&&(function(p,d){var m=d.pathExt!==void 0?d.pathExt:process.env.PATHEXT;if(!m||(m=m.split(";")).indexOf("")!==-1)return!0;for(var g=0;g<m.length;g++){var h=m[g].toLowerCase();if(h&&p.substr(-h.length).toLowerCase()===h)return!0}return!1})(l,f)}function c(u,l,f){o.stat(u,(function(p,d){f(p,!p&&a(d,u,l))}))}},2941:(n,s,i)=>{"use strict";let o=i(8558),a=new Map([[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]),c=u=>(u=Number((u||o.release()).split(".")[0]),{name:a.get(u),version:"10."+(u-4)});n.exports=c,n.exports.default=c},836:(n,s,i)=>{n.exports=g,g.Minimatch=h;var o={sep:"/"};try{o=i(7072)}catch{}var a=g.GLOBSTAR=h.GLOBSTAR={},c=i(1620),u={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",f=l+"*?",p="().*{}+?[]^$\\!".split("").reduce((function(S,T){return S[T]=!0,S}),{}),d=/\/+/;function m(S,T){S=S||{},T=T||{};var y={};return Object.keys(T).forEach((function(b){y[b]=T[b]})),Object.keys(S).forEach((function(b){y[b]=S[b]})),y}function g(S,T,y){if(typeof T!="string")throw new TypeError("glob pattern string required");return y||(y={}),!(!y.nocomment&&T.charAt(0)==="#")&&(T.trim()===""?S==="":new h(T,y).match(S))}function h(S,T){if(!(this instanceof h))return new h(S,T);if(typeof S!="string")throw new TypeError("glob pattern string required");T||(T={}),S=S.trim(),o.sep!=="/"&&(S=S.split(o.sep).join("/")),this.options=T,this.set=[],this.pattern=S,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function E(S,T){if(T||(T=this instanceof h?this.options:{}),(S=S===void 0?this.pattern:S)===void 0)throw new TypeError("undefined pattern");return T.nobrace||!S.match(/\{.*\}/)?[S]:c(S)}g.filter=function(S,T){return T=T||{},function(y,b,C){return g(y,S,T)}},g.defaults=function(S){if(!S||!Object.keys(S).length)return g;var T=g,y=function(b,C,D){return T.minimatch(b,C,m(S,D))};return y.Minimatch=function(b,C){return new T.Minimatch(b,m(S,C))},y},h.defaults=function(S){return S&&Object.keys(S).length?g.defaults(S).Minimatch:h},h.prototype.debug=function(){},h.prototype.make=function(){if(!this._made){var S=this.pattern,T=this.options;if(T.nocomment||S.charAt(0)!=="#")if(S){this.parseNegate();var y=this.globSet=this.braceExpand();T.debug&&(this.debug=console.error),this.debug(this.pattern,y),y=this.globParts=y.map((function(b){return b.split(d)})),this.debug(this.pattern,y),y=y.map((function(b,C,D){return b.map(this.parse,this)}),this),this.debug(this.pattern,y),y=y.filter((function(b){return b.indexOf(!1)===-1})),this.debug(this.pattern,y),this.set=y}else this.empty=!0;else this.comment=!0}},h.prototype.parseNegate=function(){var S=this.pattern,T=!1,y=0;if(!this.options.nonegate){for(var b=0,C=S.length;b<C&&S.charAt(b)==="!";b++)T=!T,y++;y&&(this.pattern=S.substr(y)),this.negate=T}},g.braceExpand=function(S,T){return E(S,T)},h.prototype.braceExpand=E,h.prototype.parse=function(S,T){if(S.length>65536)throw new TypeError("pattern is too long");var y=this.options;if(!y.noglobstar&&S==="**")return a;if(S==="")return"";var b,C="",D=!!y.nocase,A=!1,v=[],I=[],F=!1,V=-1,$=-1,k=S.charAt(0)==="."?"":y.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",K=this;function ee(){if(b){switch(b){case"*":C+=f,D=!0;break;case"?":C+=l,D=!0;break;default:C+="\\"+b}K.debug("clearStateChar %j %j",b,C),b=!1}}for(var ne,ie=0,Ee=S.length;ie<Ee&&(ne=S.charAt(ie));ie++)if(this.debug("%s %s %s %j",S,ie,C,ne),A&&p[ne])C+="\\"+ne,A=!1;else switch(ne){case"/":return!1;case"\\":ee(),A=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",S,ie,C,ne),F){this.debug(" in class"),ne==="!"&&ie===$+1&&(ne="^"),C+=ne;continue}K.debug("call clearStateChar %j",b),ee(),b=ne,y.noext&&ee();continue;case"(":if(F){C+="(";continue}if(!b){C+="\\(";continue}v.push({type:b,start:ie-1,reStart:C.length,open:u[b].open,close:u[b].close}),C+=b==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",b,C),b=!1;continue;case")":if(F||!v.length){C+="\\)";continue}ee(),D=!0;var X=v.pop();C+=X.close,X.type==="!"&&I.push(X),X.reEnd=C.length;continue;case"|":if(F||!v.length||A){C+="\\|",A=!1;continue}ee(),C+="|";continue;case"[":if(ee(),F){C+="\\"+ne;continue}F=!0,$=ie,V=C.length,C+=ne;continue;case"]":if(ie===$+1||!F){C+="\\"+ne,A=!1;continue}if(F){var le=S.substring($+1,ie);try{RegExp("["+le+"]")}catch{var de=this.parse(le,_);C=C.substr(0,V)+"\\["+de[0]+"\\]",D=D||de[1],F=!1;continue}}D=!0,F=!1,C+=ne;continue;default:ee(),A?A=!1:!p[ne]||ne==="^"&&F||(C+="\\"),C+=ne}for(F&&(le=S.substr($+1),de=this.parse(le,_),C=C.substr(0,V)+"\\["+de[0],D=D||de[1]),X=v.pop();X;X=v.pop()){var q=C.slice(X.reStart+X.open.length);this.debug("setting tail",C,X),q=q.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(G,w,Z){return Z||(Z="\\"),w+w+Z+"|"})),this.debug(`tail=%j
|
|
179
179
|
%s`,q,q,X,C);var Ve=X.type==="*"?f:X.type==="?"?l:"\\"+X.type;D=!0,C=C.slice(0,X.reStart)+Ve+"\\("+q}ee(),A&&(C+="\\\\");var U=!1;switch(C.charAt(0)){case".":case"[":case"(":U=!0}for(var L=I.length-1;L>-1;L--){var N=I[L],z=C.slice(0,N.reStart),oe=C.slice(N.reStart,N.reEnd-8),fe=C.slice(N.reEnd-8,N.reEnd),Ie=C.slice(N.reEnd);fe+=Ie;var Ce=z.split("(").length-1,Se=Ie;for(ie=0;ie<Ce;ie++)Se=Se.replace(/\)[+*?]?/,"");var P="";(Ie=Se)===""&&T!==_&&(P="$"),C=z+oe+Ie+P+fe}if(C!==""&&D&&(C="(?=.)"+C),U&&(C=k+C),T===_)return[C,D];if(!D)return S.replace(/\\(.)/g,"$1");var R=y.nocase?"i":"";try{var H=new RegExp("^"+C+"$",R)}catch{return new RegExp("$.")}return H._glob=S,H._src=C,H};var _={};g.makeRe=function(S,T){return new h(S,T||{}).makeRe()},h.prototype.makeRe=function(){if(this.regexp||this.regexp===!1)return this.regexp;var S=this.set;if(!S.length)return this.regexp=!1,this.regexp;var T=this.options,y=T.noglobstar?f:T.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",b=T.nocase?"i":"",C=S.map((function(D){return D.map((function(A){return A===a?y:typeof A=="string"?A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):A._src})).join("\\/")})).join("|");C="^(?:"+C+")$",this.negate&&(C="^(?!"+C+").*$");try{this.regexp=new RegExp(C,b)}catch{this.regexp=!1}return this.regexp},g.match=function(S,T,y){var b=new h(T,y=y||{});return S=S.filter((function(C){return b.match(C)})),b.options.nonull&&!S.length&&S.push(T),S},h.prototype.match=function(S,T){if(this.debug("match",S,this.pattern),this.comment)return!1;if(this.empty)return S==="";if(S==="/"&&T)return!0;var y=this.options;o.sep!=="/"&&(S=S.split(o.sep).join("/")),S=S.split(d),this.debug(this.pattern,"split",S);var b,C,D=this.set;for(this.debug(this.pattern,"set",D),C=S.length-1;C>=0&&!(b=S[C]);C--);for(C=0;C<D.length;C++){var A=D[C],v=S;if(y.matchBase&&A.length===1&&(v=[b]),this.matchOne(v,A,T))return!!y.flipNegate||!this.negate}return!y.flipNegate&&this.negate},h.prototype.matchOne=function(S,T,y){var b=this.options;this.debug("matchOne",{this:this,file:S,pattern:T}),this.debug("matchOne",S.length,T.length);for(var C=0,D=0,A=S.length,v=T.length;C<A&&D<v;C++,D++){this.debug("matchOne loop");var I,F=T[D],V=S[C];if(this.debug(T,F,V),F===!1)return!1;if(F===a){this.debug("GLOBSTAR",[T,F,V]);var $=C,k=D+1;if(k===v){for(this.debug("** at the end");C<A;C++)if(S[C]==="."||S[C]===".."||!b.dot&&S[C].charAt(0)===".")return!1;return!0}for(;$<A;){var K=S[$];if(this.debug(`
|
|
180
180
|
globstar while`,S,$,T,k,K),this.matchOne(S.slice($),T.slice(k),y))return this.debug("globstar found match!",$,A,K),!0;if(K==="."||K===".."||!b.dot&&K.charAt(0)==="."){this.debug("dot detected!",S,$,T,k);break}this.debug("globstar swallow a segment, and continue"),$++}return!(!y||(this.debug(`
|
|
181
|
-
>>> no match, partial?`,S,$,T,k),$!==A))}if(typeof F=="string"?(I=b.nocase?V.toLowerCase()===F.toLowerCase():V===F,this.debug("string match",F,V,I)):(I=V.match(F),this.debug("pattern match",F,V,I)),!I)return!1}if(C===A&&D===v)return!0;if(C===A)return y;if(D===v)return C===A-1&&S[C]==="";throw new Error("wtf?")}},9480:n=>{"use strict";n.exports=function(s){try{return s()}catch{}}},9584:(n,s,i)=>{"use strict";let o=i(7072),a=i(3032);n.exports=c=>{let u;c=Object.assign({cwd:process.cwd(),path:process.env[a()]},c);let l=o.resolve(c.cwd),f=[];for(;u!==l;)f.push(o.join(l,"node_modules/.bin")),u=l,l=o.resolve(l,"..");return f.push(o.dirname(process.execPath)),f.concat(c.path).join(o.delimiter)},n.exports.env=c=>{c=Object.assign({env:process.env},c);let u=Object.assign({},c.env),l=a({env:u});return c.path=u[l],u[l]=n.exports(c),u}},4640:(n,s,i)=>{var o=i(2680);function a(u){var l=function(){return l.called?l.value:(l.called=!0,l.value=u.apply(this,arguments))};return l.called=!1,l}function c(u){var l=function(){if(l.called)throw new Error(l.onceError);return l.called=!0,l.value=u.apply(this,arguments)},f=u.name||"Function wrapped with `once`";return l.onceError=f+" shouldn't be called more than once",l.called=!1,l}n.exports=o(a),n.exports.strict=o(c),a.proto=a((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return c(this)},configurable:!0})}))},2288:(n,s,i)=>{"use strict";let o=i(8558),a=i(2941),c=i(6468);n.exports=(u,l)=>{if(!u&&l)throw new Error("You can't specify a `release` without specifying `platform`");let f;if((u=u||o.platform())==="darwin"){l||o.platform()!=="darwin"||(l=o.release());let p=l?Number(l.split(".")[0])>15?"macOS":"OS X":"macOS";return f=l?a(l).name:"",p+(f?" "+f:"")}return u==="linux"?(l||o.platform()!=="linux"||(l=o.release()),f=l?l.replace(/^(\d+\.\d+).*/,"$1"):"","Linux"+(f?" "+f:"")):u==="win32"?(l||o.platform()!=="win32"||(l=o.release()),f=l?c(l):"","Windows"+(f?" "+f:"")):u}},1548:n=>{"use strict";n.exports=(s,i)=>(i=i||(()=>{}),s.then((o=>new Promise((a=>{a(i())})).then((()=>o))),(o=>new Promise((a=>{a(i())})).then((()=>{throw o})))))},4832:n=>{"use strict";function s(o){return o.charAt(0)==="/"}function i(o){var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(o),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}n.exports=process.platform==="win32"?i:s,n.exports.posix=s,n.exports.win32=i},3032:n=>{"use strict";n.exports=s=>{let i=(s=s||{}).env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(i).find((o=>o.toUpperCase()==="PATH"))||"Path"}},8984:(n,s,i)=>{var o=i(4640),a=i(9988),c=i(2058),u=function(){},l=/^v?\.0/.test(process.version),f=function(m){return typeof m=="function"},p=function(m){m()},d=function(m,g){return m.pipe(g)};n.exports=function(){var m,g=Array.prototype.slice.call(arguments),h=f(g[g.length-1]||u)&&g.pop()||u;if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new Error("pump requires two streams per minimum");var E=g.map((function(_,S){var T=S<g.length-1;return(function(y,b,C,D){D=o(D);var A=!1;y.on("close",(function(){A=!0})),a(y,{readable:b,writable:C},(function(I){if(I)return D(I);A=!0,D()}));var v=!1;return function(I){if(!A&&!v)return v=!0,(function(F){return!!l&&!!c&&(F instanceof(c.ReadStream||u)||F instanceof(c.WriteStream||u))&&f(F.close)})(y)?y.close(u):(function(F){return F.setHeader&&f(F.abort)})(y)?y.abort():f(y.destroy)?y.destroy():void D(I||new Error("stream was destroyed"))}})(_,T,S>0,(function(y){m||(m=y),y&&E.forEach(p),T||(E.forEach(p),h(m))}))}));return g.reduce(d)}},1716:(n,s)=>{var i;s=n.exports=Se,i=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var j=Array.prototype.slice.call(arguments,0);j.unshift("SEMVER"),console.log.apply(console,j)}:function(){},s.SEMVER_SPEC_VERSION="2.0.0";var o=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,c=s.re=[],u=s.src=[],l=0,f=l++;u[f]="0|[1-9]\\d*";var p=l++;u[p]="[0-9]+";var d=l++;u[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var m=l++;u[m]="("+u[f]+")\\.("+u[f]+")\\.("+u[f]+")";var g=l++;u[g]="("+u[p]+")\\.("+u[p]+")\\.("+u[p]+")";var h=l++;u[h]="(?:"+u[f]+"|"+u[d]+")";var E=l++;u[E]="(?:"+u[p]+"|"+u[d]+")";var _=l++;u[_]="(?:-("+u[h]+"(?:\\."+u[h]+")*))";var S=l++;u[S]="(?:-?("+u[E]+"(?:\\."+u[E]+")*))";var T=l++;u[T]="[0-9A-Za-z-]+";var y=l++;u[y]="(?:\\+("+u[T]+"(?:\\."+u[T]+")*))";var b=l++,C="v?"+u[m]+u[_]+"?"+u[y]+"?";u[b]="^"+C+"$";var D="[v=\\s]*"+u[g]+u[S]+"?"+u[y]+"?",A=l++;u[A]="^"+D+"$";var v=l++;u[v]="((?:<|>)?=?)";var I=l++;u[I]=u[p]+"|x|X|\\*";var F=l++;u[F]=u[f]+"|x|X|\\*";var V=l++;u[V]="[v=\\s]*("+u[F]+")(?:\\.("+u[F]+")(?:\\.("+u[F]+")(?:"+u[_]+")?"+u[y]+"?)?)?";var $=l++;u[$]="[v=\\s]*("+u[I]+")(?:\\.("+u[I]+")(?:\\.("+u[I]+")(?:"+u[S]+")?"+u[y]+"?)?)?";var k=l++;u[k]="^"+u[v]+"\\s*"+u[V]+"$";var K=l++;u[K]="^"+u[v]+"\\s*"+u[$]+"$";var ee=l++;u[ee]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var ne=l++;u[ne]="(?:~>?)";var ie=l++;u[ie]="(\\s*)"+u[ne]+"\\s+",c[ie]=new RegExp(u[ie],"g");var Ee=l++;u[Ee]="^"+u[ne]+u[V]+"$";var X=l++;u[X]="^"+u[ne]+u[$]+"$";var le=l++;u[le]="(?:\\^)";var de=l++;u[de]="(\\s*)"+u[le]+"\\s+",c[de]=new RegExp(u[de],"g");var q=l++;u[q]="^"+u[le]+u[V]+"$";var Ve=l++;u[Ve]="^"+u[le]+u[$]+"$";var U=l++;u[U]="^"+u[v]+"\\s*("+D+")$|^$";var L=l++;u[L]="^"+u[v]+"\\s*("+C+")$|^$";var N=l++;u[N]="(\\s*)"+u[v]+"\\s*("+D+"|"+u[V]+")",c[N]=new RegExp(u[N],"g");var z=l++;u[z]="^\\s*("+u[V]+")\\s+-\\s+("+u[V]+")\\s*$";var oe=l++;u[oe]="^\\s*("+u[$]+")\\s+-\\s+("+u[$]+")\\s*$";var fe=l++;u[fe]="(<|>)?=?\\s*\\*";for(var Ie=0;Ie<35;Ie++)i(Ie,u[Ie]),c[Ie]||(c[Ie]=new RegExp(u[Ie]));function Ce(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se)return j;if(typeof j!="string"||j.length>o||!(Y.loose?c[A]:c[b]).test(j))return null;try{return new Se(j,Y)}catch{return null}}function Se(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se){if(j.loose===Y.loose)return j;j=j.version}else if(typeof j!="string")throw new TypeError("Invalid Version: "+j);if(j.length>o)throw new TypeError("version is longer than "+o+" characters");if(!(this instanceof Se))return new Se(j,Y);i("SemVer",j,Y),this.options=Y,this.loose=!!Y.loose;var re=j.trim().match(Y.loose?c[A]:c[b]);if(!re)throw new TypeError("Invalid Version: "+j);if(this.raw=j,this.major=+re[1],this.minor=+re[2],this.patch=+re[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");re[4]?this.prerelease=re[4].split(".").map((function(ye){if(/^[0-9]+$/.test(ye)){var Ue=+ye;if(Ue>=0&&Ue<a)return Ue}return ye})):this.prerelease=[],this.build=re[5]?re[5].split("."):[],this.format()}s.parse=Ce,s.valid=function(j,Y){var re=Ce(j,Y);return re?re.version:null},s.clean=function(j,Y){var re=Ce(j.trim().replace(/^[=v]+/,""),Y);return re?re.version:null},s.SemVer=Se,Se.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Se.prototype.toString=function(){return this.version},Se.prototype.compare=function(j){return i("SemVer.compare",this.version,this.options,j),j instanceof Se||(j=new Se(j,this.options)),this.compareMain(j)||this.comparePre(j)},Se.prototype.compareMain=function(j){return j instanceof Se||(j=new Se(j,this.options)),R(this.major,j.major)||R(this.minor,j.minor)||R(this.patch,j.patch)},Se.prototype.comparePre=function(j){if(j instanceof Se||(j=new Se(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;var Y=0;do{var re=this.prerelease[Y],ye=j.prerelease[Y];if(i("prerelease compare",Y,re,ye),re===void 0&&ye===void 0)return 0;if(ye===void 0)return 1;if(re===void 0)return-1;if(re!==ye)return R(re,ye)}while(++Y)},Se.prototype.inc=function(j,Y){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Y);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Y);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Y),this.inc("pre",Y);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",Y),this.inc("pre",Y);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var re=this.prerelease.length;--re>=0;)typeof this.prerelease[re]=="number"&&(this.prerelease[re]++,re=-2);re===-1&&this.prerelease.push(0)}Y&&(this.prerelease[0]===Y?isNaN(this.prerelease[1])&&(this.prerelease=[Y,0]):this.prerelease=[Y,0]);break;default:throw new Error("invalid increment argument: "+j)}return this.format(),this.raw=this.version,this},s.inc=function(j,Y,re,ye){typeof re=="string"&&(ye=re,re=void 0);try{return new Se(j,re).inc(Y,ye).version}catch{return null}},s.diff=function(j,Y){if(Z(j,Y))return null;var re=Ce(j),ye=Ce(Y);if(re.prerelease.length||ye.prerelease.length){for(var Ue in re)if((Ue==="major"||Ue==="minor"||Ue==="patch")&&re[Ue]!==ye[Ue])return"pre"+Ue;return"prerelease"}for(var Ue in re)if((Ue==="major"||Ue==="minor"||Ue==="patch")&&re[Ue]!==ye[Ue])return Ue},s.compareIdentifiers=R;var P=/^[0-9]+$/;function R(j,Y){var re=P.test(j),ye=P.test(Y);return re&&ye&&(j=+j,Y=+Y),re&&!ye?-1:ye&&!re?1:j<Y?-1:j>Y?1:0}function H(j,Y,re){return new Se(j,re).compare(new Se(Y,re))}function G(j,Y,re){return H(j,Y,re)>0}function w(j,Y,re){return H(j,Y,re)<0}function Z(j,Y,re){return H(j,Y,re)===0}function J(j,Y,re){return H(j,Y,re)!==0}function se(j,Y,re){return H(j,Y,re)>=0}function ze(j,Y,re){return H(j,Y,re)<=0}function rt(j,Y,re,ye){var Ue;switch(Y){case"===":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ue=j===re;break;case"!==":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ue=j!==re;break;case"":case"=":case"==":Ue=Z(j,re,ye);break;case"!=":Ue=J(j,re,ye);break;case">":Ue=G(j,re,ye);break;case">=":Ue=se(j,re,ye);break;case"<":Ue=w(j,re,ye);break;case"<=":Ue=ze(j,re,ye);break;default:throw new TypeError("Invalid operator: "+Y)}return Ue}function on(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof on){if(j.loose===!!Y.loose)return j;j=j.value}if(!(this instanceof on))return new on(j,Y);i("comparator",j,Y),this.options=Y,this.loose=!!Y.loose,this.parse(j),this.semver===pu?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}s.rcompareIdentifiers=function(j,Y){return R(Y,j)},s.major=function(j,Y){return new Se(j,Y).major},s.minor=function(j,Y){return new Se(j,Y).minor},s.patch=function(j,Y){return new Se(j,Y).patch},s.compare=H,s.compareLoose=function(j,Y){return H(j,Y,!0)},s.rcompare=function(j,Y,re){return H(Y,j,re)},s.sort=function(j,Y){return j.sort((function(re,ye){return s.compare(re,ye,Y)}))},s.rsort=function(j,Y){return j.sort((function(re,ye){return s.rcompare(re,ye,Y)}))},s.gt=G,s.lt=w,s.eq=Z,s.neq=J,s.gte=se,s.lte=ze,s.cmp=rt,s.Comparator=on;var pu={};function Rt(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Rt)return j.loose===!!Y.loose&&j.includePrerelease===!!Y.includePrerelease?j:new Rt(j.raw,Y);if(j instanceof on)return new Rt(j.value,Y);if(!(this instanceof Rt))return new Rt(j,Y);if(this.options=Y,this.loose=!!Y.loose,this.includePrerelease=!!Y.includePrerelease,this.raw=j,this.set=j.split(/\s*\|\|\s*/).map((function(re){return this.parseRange(re.trim())}),this).filter((function(re){return re.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+j);this.format()}function Dr(j){return!j||j.toLowerCase()==="x"||j==="*"}function tH(j,Y,re,ye,Ue,Kt,ct,xr,Mt,pr,ti,Nt,dt){return((Y=Dr(re)?"":Dr(ye)?">="+re+".0.0":Dr(Ue)?">="+re+"."+ye+".0":">="+Y)+" "+(xr=Dr(Mt)?"":Dr(pr)?"<"+(+Mt+1)+".0.0":Dr(ti)?"<"+Mt+"."+(+pr+1)+".0":Nt?"<="+Mt+"."+pr+"."+ti+"-"+Nt:"<="+xr)).trim()}function rH(j,Y,re){for(var ye=0;ye<j.length;ye++)if(!j[ye].test(Y))return!1;if(re||(re={}),Y.prerelease.length&&!re.includePrerelease){for(ye=0;ye<j.length;ye++)if(i(j[ye].semver),j[ye].semver!==pu&&j[ye].semver.prerelease.length>0){var Ue=j[ye].semver;if(Ue.major===Y.major&&Ue.minor===Y.minor&&Ue.patch===Y.patch)return!0}return!1}return!0}function xf(j,Y,re){try{Y=new Rt(Y,re)}catch{return!1}return Y.test(j)}function J0(j,Y,re,ye){var Ue,Kt,ct,xr,Mt;switch(j=new Se(j,ye),Y=new Rt(Y,ye),re){case">":Ue=G,Kt=ze,ct=w,xr=">",Mt=">=";break;case"<":Ue=w,Kt=se,ct=G,xr="<",Mt="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xf(j,Y,ye))return!1;for(var pr=0;pr<Y.set.length;++pr){var ti=Y.set[pr],Nt=null,dt=null;if(ti.forEach((function(Fr){Fr.semver===pu&&(Fr=new on(">=0.0.0")),Nt=Nt||Fr,dt=dt||Fr,Ue(Fr.semver,Nt.semver,ye)?Nt=Fr:ct(Fr.semver,dt.semver,ye)&&(dt=Fr)})),Nt.operator===xr||Nt.operator===Mt||(!dt.operator||dt.operator===xr)&&Kt(j,dt.semver)||dt.operator===Mt&&ct(j,dt.semver))return!1}return!0}on.prototype.parse=function(j){var Y=this.options.loose?c[U]:c[L],re=j.match(Y);if(!re)throw new TypeError("Invalid comparator: "+j);this.operator=re[1],this.operator==="="&&(this.operator=""),re[2]?this.semver=new Se(re[2],this.options.loose):this.semver=pu},on.prototype.toString=function(){return this.value},on.prototype.test=function(j){return i("Comparator.test",j,this.options.loose),this.semver===pu||(typeof j=="string"&&(j=new Se(j,this.options)),rt(j,this.operator,this.semver,this.options))},on.prototype.intersects=function(j,Y){if(!(j instanceof on))throw new TypeError("a Comparator is required");var re;if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),this.operator==="")return re=new Rt(j.value,Y),xf(this.value,re,Y);if(j.operator==="")return re=new Rt(this.value,Y),xf(j.semver,re,Y);var ye=!(this.operator!==">="&&this.operator!==">"||j.operator!==">="&&j.operator!==">"),Ue=!(this.operator!=="<="&&this.operator!=="<"||j.operator!=="<="&&j.operator!=="<"),Kt=this.semver.version===j.semver.version,ct=!(this.operator!==">="&&this.operator!=="<="||j.operator!==">="&&j.operator!=="<="),xr=rt(this.semver,"<",j.semver,Y)&&(this.operator===">="||this.operator===">")&&(j.operator==="<="||j.operator==="<"),Mt=rt(this.semver,">",j.semver,Y)&&(this.operator==="<="||this.operator==="<")&&(j.operator===">="||j.operator===">");return ye||Ue||Kt&&ct||xr||Mt},s.Range=Rt,Rt.prototype.format=function(){return this.range=this.set.map((function(j){return j.join(" ").trim()})).join("||").trim(),this.range},Rt.prototype.toString=function(){return this.range},Rt.prototype.parseRange=function(j){var Y=this.options.loose;j=j.trim();var re=Y?c[oe]:c[z];j=j.replace(re,tH),i("hyphen replace",j),j=j.replace(c[N],"$1$2$3"),i("comparator trim",j,c[N]),j=(j=(j=j.replace(c[ie],"$1~")).replace(c[de],"$1^")).split(/\s+/).join(" ");var ye=Y?c[U]:c[L],Ue=j.split(" ").map((function(Kt){return(function(ct,xr){return i("comp",ct,xr),ct=(function(Mt,pr){return Mt.trim().split(/\s+/).map((function(ti){return(function(Nt,dt){i("caret",Nt,dt),dt&&typeof dt=="object"||(dt={loose:!!dt,includePrerelease:!1});var Fr=dt.loose?c[Ve]:c[q];return Nt.replace(Fr,(function(Mn,qe,Je,gt,Ot){var or;return i("caret",Nt,Mn,qe,Je,gt,Ot),Dr(qe)?or="":Dr(Je)?or=">="+qe+".0.0 <"+(+qe+1)+".0.0":Dr(gt)?or=qe==="0"?">="+qe+"."+Je+".0 <"+qe+"."+(+Je+1)+".0":">="+qe+"."+Je+".0 <"+(+qe+1)+".0.0":Ot?(i("replaceCaret pr",Ot),Ot.charAt(0)!=="-"&&(Ot="-"+Ot),or=qe==="0"?Je==="0"?">="+qe+"."+Je+"."+gt+Ot+" <"+qe+"."+Je+"."+(+gt+1):">="+qe+"."+Je+"."+gt+Ot+" <"+qe+"."+(+Je+1)+".0":">="+qe+"."+Je+"."+gt+Ot+" <"+(+qe+1)+".0.0"):(i("no pr"),or=qe==="0"?Je==="0"?">="+qe+"."+Je+"."+gt+" <"+qe+"."+Je+"."+(+gt+1):">="+qe+"."+Je+"."+gt+" <"+qe+"."+(+Je+1)+".0":">="+qe+"."+Je+"."+gt+" <"+(+qe+1)+".0.0"),i("caret return",or),or}))})(ti,pr)})).join(" ")})(ct,xr),i("caret",ct),ct=(function(Mt,pr){return Mt.trim().split(/\s+/).map((function(ti){return(function(Nt,dt){dt&&typeof dt=="object"||(dt={loose:!!dt,includePrerelease:!1});var Fr=dt.loose?c[X]:c[Ee];return Nt.replace(Fr,(function(Mn,qe,Je,gt,Ot){var or;return i("tilde",Nt,Mn,qe,Je,gt,Ot),Dr(qe)?or="":Dr(Je)?or=">="+qe+".0.0 <"+(+qe+1)+".0.0":Dr(gt)?or=">="+qe+"."+Je+".0 <"+qe+"."+(+Je+1)+".0":Ot?(i("replaceTilde pr",Ot),Ot.charAt(0)!=="-"&&(Ot="-"+Ot),or=">="+qe+"."+Je+"."+gt+Ot+" <"+qe+"."+(+Je+1)+".0"):or=">="+qe+"."+Je+"."+gt+" <"+qe+"."+(+Je+1)+".0",i("tilde return",or),or}))})(ti,pr)})).join(" ")})(ct,xr),i("tildes",ct),ct=(function(Mt,pr){return i("replaceXRanges",Mt,pr),Mt.split(/\s+/).map((function(ti){return(function(Nt,dt){Nt=Nt.trim(),dt&&typeof dt=="object"||(dt={loose:!!dt,includePrerelease:!1});var Fr=dt.loose?c[K]:c[k];return Nt.replace(Fr,(function(Mn,qe,Je,gt,Ot,or){i("xRange",Nt,Mn,qe,Je,gt,Ot,or);var C1=Dr(Je),du=C1||Dr(gt),hu=du||Dr(Ot);return qe==="="&&hu&&(qe=""),C1?Mn=qe===">"||qe==="<"?"<0.0.0":"*":qe&&hu?(du&&(gt=0),hu&&(Ot=0),qe===">"?(qe=">=",du?(Je=+Je+1,gt=0,Ot=0):hu&&(gt=+gt+1,Ot=0)):qe==="<="&&(qe="<",du?Je=+Je+1:gt=+gt+1),Mn=qe+Je+"."+gt+"."+Ot):du?Mn=">="+Je+".0.0 <"+(+Je+1)+".0.0":hu&&(Mn=">="+Je+"."+gt+".0 <"+Je+"."+(+gt+1)+".0"),i("xRange return",Mn),Mn}))})(ti,pr)})).join(" ")})(ct,xr),i("xrange",ct),ct=(function(Mt,pr){return i("replaceStars",Mt,pr),Mt.trim().replace(c[fe],"")})(ct,xr),i("stars",ct),ct})(Kt,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(Ue=Ue.filter((function(Kt){return!!Kt.match(ye)}))),Ue.map((function(Kt){return new on(Kt,this.options)}),this)},Rt.prototype.intersects=function(j,Y){if(!(j instanceof Rt))throw new TypeError("a Range is required");return this.set.some((function(re){return re.every((function(ye){return j.set.some((function(Ue){return Ue.every((function(Kt){return ye.intersects(Kt,Y)}))}))}))}))},s.toComparators=function(j,Y){return new Rt(j,Y).set.map((function(re){return re.map((function(ye){return ye.value})).join(" ").trim().split(" ")}))},Rt.prototype.test=function(j){if(!j)return!1;typeof j=="string"&&(j=new Se(j,this.options));for(var Y=0;Y<this.set.length;Y++)if(rH(this.set[Y],j,this.options))return!0;return!1},s.satisfies=xf,s.maxSatisfying=function(j,Y,re){var ye=null,Ue=null;try{var Kt=new Rt(Y,re)}catch{return null}return j.forEach((function(ct){Kt.test(ct)&&(ye&&Ue.compare(ct)!==-1||(Ue=new Se(ye=ct,re)))})),ye},s.minSatisfying=function(j,Y,re){var ye=null,Ue=null;try{var Kt=new Rt(Y,re)}catch{return null}return j.forEach((function(ct){Kt.test(ct)&&(ye&&Ue.compare(ct)!==1||(Ue=new Se(ye=ct,re)))})),ye},s.validRange=function(j,Y){try{return new Rt(j,Y).range||"*"}catch{return null}},s.ltr=function(j,Y,re){return J0(j,Y,"<",re)},s.gtr=function(j,Y,re){return J0(j,Y,">",re)},s.outside=J0,s.prerelease=function(j,Y){var re=Ce(j,Y);return re&&re.prerelease.length?re.prerelease:null},s.intersects=function(j,Y,re){return j=new Rt(j,re),Y=new Rt(Y,re),j.intersects(Y)},s.coerce=function(j){if(j instanceof Se)return j;if(typeof j!="string")return null;var Y=j.match(c[ee]);return Y==null?null:Ce((Y[1]||"0")+"."+(Y[2]||"0")+"."+(Y[3]||"0"))}},6176:(n,s,i)=>{"use strict";var o=i(184);n.exports=function(a){var c=a.match(o);if(!c)return null;var u=c[0].replace(/#! ?/,"").split(" "),l=u[0].split("/").pop(),f=u[1];return l==="env"?f:l+(f?" "+f:"")}},184:n=>{"use strict";n.exports=/^#!.*/},200:(n,s,i)=>{var o,a=i(6608),c=i(6132),u=i(467);function l(){d&&(d=!1,c.forEach((function(S){try{process.removeListener(S,p[S])}catch{}})),process.emit=E,process.reallyExit=g,o.count-=1)}function f(S,T,y){o.emitted[S]||(o.emitted[S]=!0,o.emit(S,T,y))}typeof u!="function"&&(u=u.EventEmitter),process.__signal_exit_emitter__?o=process.__signal_exit_emitter__:((o=process.__signal_exit_emitter__=new u).count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),n.exports=function(S,T){a.equal(typeof S,"function","a callback must be provided for exit handler"),d===!1&&m();var y="exit";return T&&T.alwaysLast&&(y="afterexit"),o.on(y,S),function(){o.removeListener(y,S),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&l()}},n.exports.unload=l;var p={};c.forEach((function(S){p[S]=function(){process.listeners(S).length===o.count&&(l(),f("exit",null,S),f("afterexit",null,S),process.kill(process.pid,S))}})),n.exports.signals=function(){return c},n.exports.load=m;var d=!1;function m(){d||(d=!0,o.count+=1,c=c.filter((function(S){try{return process.on(S,p[S]),!0}catch{return!1}})),process.emit=_,process.reallyExit=h)}var g=process.reallyExit;function h(S){process.exitCode=S||0,f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),g.call(process,process.exitCode)}var E=process.emit;function _(S,T){if(S==="exit"){T!==void 0&&(process.exitCode=T);var y=E.apply(this,arguments);return f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),y}return E.apply(this,arguments)}},6132:n=>{n.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&n.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&n.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},9860:n=>{"use strict";n.exports=function(s){var i=typeof s=="string"?`
|
|
181
|
+
>>> no match, partial?`,S,$,T,k),$!==A))}if(typeof F=="string"?(I=b.nocase?V.toLowerCase()===F.toLowerCase():V===F,this.debug("string match",F,V,I)):(I=V.match(F),this.debug("pattern match",F,V,I)),!I)return!1}if(C===A&&D===v)return!0;if(C===A)return y;if(D===v)return C===A-1&&S[C]==="";throw new Error("wtf?")}},9480:n=>{"use strict";n.exports=function(s){try{return s()}catch{}}},9584:(n,s,i)=>{"use strict";let o=i(7072),a=i(3032);n.exports=c=>{let u;c=Object.assign({cwd:process.cwd(),path:process.env[a()]},c);let l=o.resolve(c.cwd),f=[];for(;u!==l;)f.push(o.join(l,"node_modules/.bin")),u=l,l=o.resolve(l,"..");return f.push(o.dirname(process.execPath)),f.concat(c.path).join(o.delimiter)},n.exports.env=c=>{c=Object.assign({env:process.env},c);let u=Object.assign({},c.env),l=a({env:u});return c.path=u[l],u[l]=n.exports(c),u}},4640:(n,s,i)=>{var o=i(2680);function a(u){var l=function(){return l.called?l.value:(l.called=!0,l.value=u.apply(this,arguments))};return l.called=!1,l}function c(u){var l=function(){if(l.called)throw new Error(l.onceError);return l.called=!0,l.value=u.apply(this,arguments)},f=u.name||"Function wrapped with `once`";return l.onceError=f+" shouldn't be called more than once",l.called=!1,l}n.exports=o(a),n.exports.strict=o(c),a.proto=a((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return c(this)},configurable:!0})}))},2288:(n,s,i)=>{"use strict";let o=i(8558),a=i(2941),c=i(6468);n.exports=(u,l)=>{if(!u&&l)throw new Error("You can't specify a `release` without specifying `platform`");let f;if((u=u||o.platform())==="darwin"){l||o.platform()!=="darwin"||(l=o.release());let p=l?Number(l.split(".")[0])>15?"macOS":"OS X":"macOS";return f=l?a(l).name:"",p+(f?" "+f:"")}return u==="linux"?(l||o.platform()!=="linux"||(l=o.release()),f=l?l.replace(/^(\d+\.\d+).*/,"$1"):"","Linux"+(f?" "+f:"")):u==="win32"?(l||o.platform()!=="win32"||(l=o.release()),f=l?c(l):"","Windows"+(f?" "+f:"")):u}},1548:n=>{"use strict";n.exports=(s,i)=>(i=i||(()=>{}),s.then((o=>new Promise((a=>{a(i())})).then((()=>o))),(o=>new Promise((a=>{a(i())})).then((()=>{throw o})))))},4832:n=>{"use strict";function s(o){return o.charAt(0)==="/"}function i(o){var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(o),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}n.exports=process.platform==="win32"?i:s,n.exports.posix=s,n.exports.win32=i},3032:n=>{"use strict";n.exports=s=>{let i=(s=s||{}).env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(i).find((o=>o.toUpperCase()==="PATH"))||"Path"}},8984:(n,s,i)=>{var o=i(4640),a=i(9988),c=i(2058),u=function(){},l=/^v?\.0/.test(process.version),f=function(m){return typeof m=="function"},p=function(m){m()},d=function(m,g){return m.pipe(g)};n.exports=function(){var m,g=Array.prototype.slice.call(arguments),h=f(g[g.length-1]||u)&&g.pop()||u;if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new Error("pump requires two streams per minimum");var E=g.map((function(_,S){var T=S<g.length-1;return(function(y,b,C,D){D=o(D);var A=!1;y.on("close",(function(){A=!0})),a(y,{readable:b,writable:C},(function(I){if(I)return D(I);A=!0,D()}));var v=!1;return function(I){if(!A&&!v)return v=!0,(function(F){return!!l&&!!c&&(F instanceof(c.ReadStream||u)||F instanceof(c.WriteStream||u))&&f(F.close)})(y)?y.close(u):(function(F){return F.setHeader&&f(F.abort)})(y)?y.abort():f(y.destroy)?y.destroy():void D(I||new Error("stream was destroyed"))}})(_,T,S>0,(function(y){m||(m=y),y&&E.forEach(p),T||(E.forEach(p),h(m))}))}));return g.reduce(d)}},1716:(n,s)=>{var i;s=n.exports=Se,i=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var j=Array.prototype.slice.call(arguments,0);j.unshift("SEMVER"),console.log.apply(console,j)}:function(){},s.SEMVER_SPEC_VERSION="2.0.0";var o=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,c=s.re=[],u=s.src=[],l=0,f=l++;u[f]="0|[1-9]\\d*";var p=l++;u[p]="[0-9]+";var d=l++;u[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var m=l++;u[m]="("+u[f]+")\\.("+u[f]+")\\.("+u[f]+")";var g=l++;u[g]="("+u[p]+")\\.("+u[p]+")\\.("+u[p]+")";var h=l++;u[h]="(?:"+u[f]+"|"+u[d]+")";var E=l++;u[E]="(?:"+u[p]+"|"+u[d]+")";var _=l++;u[_]="(?:-("+u[h]+"(?:\\."+u[h]+")*))";var S=l++;u[S]="(?:-?("+u[E]+"(?:\\."+u[E]+")*))";var T=l++;u[T]="[0-9A-Za-z-]+";var y=l++;u[y]="(?:\\+("+u[T]+"(?:\\."+u[T]+")*))";var b=l++,C="v?"+u[m]+u[_]+"?"+u[y]+"?";u[b]="^"+C+"$";var D="[v=\\s]*"+u[g]+u[S]+"?"+u[y]+"?",A=l++;u[A]="^"+D+"$";var v=l++;u[v]="((?:<|>)?=?)";var I=l++;u[I]=u[p]+"|x|X|\\*";var F=l++;u[F]=u[f]+"|x|X|\\*";var V=l++;u[V]="[v=\\s]*("+u[F]+")(?:\\.("+u[F]+")(?:\\.("+u[F]+")(?:"+u[_]+")?"+u[y]+"?)?)?";var $=l++;u[$]="[v=\\s]*("+u[I]+")(?:\\.("+u[I]+")(?:\\.("+u[I]+")(?:"+u[S]+")?"+u[y]+"?)?)?";var k=l++;u[k]="^"+u[v]+"\\s*"+u[V]+"$";var K=l++;u[K]="^"+u[v]+"\\s*"+u[$]+"$";var ee=l++;u[ee]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var ne=l++;u[ne]="(?:~>?)";var ie=l++;u[ie]="(\\s*)"+u[ne]+"\\s+",c[ie]=new RegExp(u[ie],"g");var Ee=l++;u[Ee]="^"+u[ne]+u[V]+"$";var X=l++;u[X]="^"+u[ne]+u[$]+"$";var le=l++;u[le]="(?:\\^)";var de=l++;u[de]="(\\s*)"+u[le]+"\\s+",c[de]=new RegExp(u[de],"g");var q=l++;u[q]="^"+u[le]+u[V]+"$";var Ve=l++;u[Ve]="^"+u[le]+u[$]+"$";var U=l++;u[U]="^"+u[v]+"\\s*("+D+")$|^$";var L=l++;u[L]="^"+u[v]+"\\s*("+C+")$|^$";var N=l++;u[N]="(\\s*)"+u[v]+"\\s*("+D+"|"+u[V]+")",c[N]=new RegExp(u[N],"g");var z=l++;u[z]="^\\s*("+u[V]+")\\s+-\\s+("+u[V]+")\\s*$";var oe=l++;u[oe]="^\\s*("+u[$]+")\\s+-\\s+("+u[$]+")\\s*$";var fe=l++;u[fe]="(<|>)?=?\\s*\\*";for(var Ie=0;Ie<35;Ie++)i(Ie,u[Ie]),c[Ie]||(c[Ie]=new RegExp(u[Ie]));function Ce(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se)return j;if(typeof j!="string"||j.length>o||!(Y.loose?c[A]:c[b]).test(j))return null;try{return new Se(j,Y)}catch{return null}}function Se(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se){if(j.loose===Y.loose)return j;j=j.version}else if(typeof j!="string")throw new TypeError("Invalid Version: "+j);if(j.length>o)throw new TypeError("version is longer than "+o+" characters");if(!(this instanceof Se))return new Se(j,Y);i("SemVer",j,Y),this.options=Y,this.loose=!!Y.loose;var re=j.trim().match(Y.loose?c[A]:c[b]);if(!re)throw new TypeError("Invalid Version: "+j);if(this.raw=j,this.major=+re[1],this.minor=+re[2],this.patch=+re[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");re[4]?this.prerelease=re[4].split(".").map((function(ye){if(/^[0-9]+$/.test(ye)){var Ue=+ye;if(Ue>=0&&Ue<a)return Ue}return ye})):this.prerelease=[],this.build=re[5]?re[5].split("."):[],this.format()}s.parse=Ce,s.valid=function(j,Y){var re=Ce(j,Y);return re?re.version:null},s.clean=function(j,Y){var re=Ce(j.trim().replace(/^[=v]+/,""),Y);return re?re.version:null},s.SemVer=Se,Se.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Se.prototype.toString=function(){return this.version},Se.prototype.compare=function(j){return i("SemVer.compare",this.version,this.options,j),j instanceof Se||(j=new Se(j,this.options)),this.compareMain(j)||this.comparePre(j)},Se.prototype.compareMain=function(j){return j instanceof Se||(j=new Se(j,this.options)),R(this.major,j.major)||R(this.minor,j.minor)||R(this.patch,j.patch)},Se.prototype.comparePre=function(j){if(j instanceof Se||(j=new Se(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;var Y=0;do{var re=this.prerelease[Y],ye=j.prerelease[Y];if(i("prerelease compare",Y,re,ye),re===void 0&&ye===void 0)return 0;if(ye===void 0)return 1;if(re===void 0)return-1;if(re!==ye)return R(re,ye)}while(++Y)},Se.prototype.inc=function(j,Y){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Y);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Y);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Y),this.inc("pre",Y);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",Y),this.inc("pre",Y);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var re=this.prerelease.length;--re>=0;)typeof this.prerelease[re]=="number"&&(this.prerelease[re]++,re=-2);re===-1&&this.prerelease.push(0)}Y&&(this.prerelease[0]===Y?isNaN(this.prerelease[1])&&(this.prerelease=[Y,0]):this.prerelease=[Y,0]);break;default:throw new Error("invalid increment argument: "+j)}return this.format(),this.raw=this.version,this},s.inc=function(j,Y,re,ye){typeof re=="string"&&(ye=re,re=void 0);try{return new Se(j,re).inc(Y,ye).version}catch{return null}},s.diff=function(j,Y){if(Z(j,Y))return null;var re=Ce(j),ye=Ce(Y);if(re.prerelease.length||ye.prerelease.length){for(var Ue in re)if((Ue==="major"||Ue==="minor"||Ue==="patch")&&re[Ue]!==ye[Ue])return"pre"+Ue;return"prerelease"}for(var Ue in re)if((Ue==="major"||Ue==="minor"||Ue==="patch")&&re[Ue]!==ye[Ue])return Ue},s.compareIdentifiers=R;var P=/^[0-9]+$/;function R(j,Y){var re=P.test(j),ye=P.test(Y);return re&&ye&&(j=+j,Y=+Y),re&&!ye?-1:ye&&!re?1:j<Y?-1:j>Y?1:0}function H(j,Y,re){return new Se(j,re).compare(new Se(Y,re))}function G(j,Y,re){return H(j,Y,re)>0}function w(j,Y,re){return H(j,Y,re)<0}function Z(j,Y,re){return H(j,Y,re)===0}function J(j,Y,re){return H(j,Y,re)!==0}function se(j,Y,re){return H(j,Y,re)>=0}function ze(j,Y,re){return H(j,Y,re)<=0}function rt(j,Y,re,ye){var Ue;switch(Y){case"===":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ue=j===re;break;case"!==":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ue=j!==re;break;case"":case"=":case"==":Ue=Z(j,re,ye);break;case"!=":Ue=J(j,re,ye);break;case">":Ue=G(j,re,ye);break;case">=":Ue=se(j,re,ye);break;case"<":Ue=w(j,re,ye);break;case"<=":Ue=ze(j,re,ye);break;default:throw new TypeError("Invalid operator: "+Y)}return Ue}function on(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof on){if(j.loose===!!Y.loose)return j;j=j.value}if(!(this instanceof on))return new on(j,Y);i("comparator",j,Y),this.options=Y,this.loose=!!Y.loose,this.parse(j),this.semver===pu?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}s.rcompareIdentifiers=function(j,Y){return R(Y,j)},s.major=function(j,Y){return new Se(j,Y).major},s.minor=function(j,Y){return new Se(j,Y).minor},s.patch=function(j,Y){return new Se(j,Y).patch},s.compare=H,s.compareLoose=function(j,Y){return H(j,Y,!0)},s.rcompare=function(j,Y,re){return H(Y,j,re)},s.sort=function(j,Y){return j.sort((function(re,ye){return s.compare(re,ye,Y)}))},s.rsort=function(j,Y){return j.sort((function(re,ye){return s.rcompare(re,ye,Y)}))},s.gt=G,s.lt=w,s.eq=Z,s.neq=J,s.gte=se,s.lte=ze,s.cmp=rt,s.Comparator=on;var pu={};function Rt(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Rt)return j.loose===!!Y.loose&&j.includePrerelease===!!Y.includePrerelease?j:new Rt(j.raw,Y);if(j instanceof on)return new Rt(j.value,Y);if(!(this instanceof Rt))return new Rt(j,Y);if(this.options=Y,this.loose=!!Y.loose,this.includePrerelease=!!Y.includePrerelease,this.raw=j,this.set=j.split(/\s*\|\|\s*/).map((function(re){return this.parseRange(re.trim())}),this).filter((function(re){return re.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+j);this.format()}function Dr(j){return!j||j.toLowerCase()==="x"||j==="*"}function tH(j,Y,re,ye,Ue,Kt,ct,xr,Mt,pr,ti,Nt,dt){return((Y=Dr(re)?"":Dr(ye)?">="+re+".0.0":Dr(Ue)?">="+re+"."+ye+".0":">="+Y)+" "+(xr=Dr(Mt)?"":Dr(pr)?"<"+(+Mt+1)+".0.0":Dr(ti)?"<"+Mt+"."+(+pr+1)+".0":Nt?"<="+Mt+"."+pr+"."+ti+"-"+Nt:"<="+xr)).trim()}function rH(j,Y,re){for(var ye=0;ye<j.length;ye++)if(!j[ye].test(Y))return!1;if(re||(re={}),Y.prerelease.length&&!re.includePrerelease){for(ye=0;ye<j.length;ye++)if(i(j[ye].semver),j[ye].semver!==pu&&j[ye].semver.prerelease.length>0){var Ue=j[ye].semver;if(Ue.major===Y.major&&Ue.minor===Y.minor&&Ue.patch===Y.patch)return!0}return!1}return!0}function xf(j,Y,re){try{Y=new Rt(Y,re)}catch{return!1}return Y.test(j)}function J0(j,Y,re,ye){var Ue,Kt,ct,xr,Mt;switch(j=new Se(j,ye),Y=new Rt(Y,ye),re){case">":Ue=G,Kt=ze,ct=w,xr=">",Mt=">=";break;case"<":Ue=w,Kt=se,ct=G,xr="<",Mt="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xf(j,Y,ye))return!1;for(var pr=0;pr<Y.set.length;++pr){var ti=Y.set[pr],Nt=null,dt=null;if(ti.forEach((function(Fr){Fr.semver===pu&&(Fr=new on(">=0.0.0")),Nt=Nt||Fr,dt=dt||Fr,Ue(Fr.semver,Nt.semver,ye)?Nt=Fr:ct(Fr.semver,dt.semver,ye)&&(dt=Fr)})),Nt.operator===xr||Nt.operator===Mt||(!dt.operator||dt.operator===xr)&&Kt(j,dt.semver)||dt.operator===Mt&&ct(j,dt.semver))return!1}return!0}on.prototype.parse=function(j){var Y=this.options.loose?c[U]:c[L],re=j.match(Y);if(!re)throw new TypeError("Invalid comparator: "+j);this.operator=re[1],this.operator==="="&&(this.operator=""),re[2]?this.semver=new Se(re[2],this.options.loose):this.semver=pu},on.prototype.toString=function(){return this.value},on.prototype.test=function(j){return i("Comparator.test",j,this.options.loose),this.semver===pu||(typeof j=="string"&&(j=new Se(j,this.options)),rt(j,this.operator,this.semver,this.options))},on.prototype.intersects=function(j,Y){if(!(j instanceof on))throw new TypeError("a Comparator is required");var re;if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),this.operator==="")return re=new Rt(j.value,Y),xf(this.value,re,Y);if(j.operator==="")return re=new Rt(this.value,Y),xf(j.semver,re,Y);var ye=!(this.operator!==">="&&this.operator!==">"||j.operator!==">="&&j.operator!==">"),Ue=!(this.operator!=="<="&&this.operator!=="<"||j.operator!=="<="&&j.operator!=="<"),Kt=this.semver.version===j.semver.version,ct=!(this.operator!==">="&&this.operator!=="<="||j.operator!==">="&&j.operator!=="<="),xr=rt(this.semver,"<",j.semver,Y)&&(this.operator===">="||this.operator===">")&&(j.operator==="<="||j.operator==="<"),Mt=rt(this.semver,">",j.semver,Y)&&(this.operator==="<="||this.operator==="<")&&(j.operator===">="||j.operator===">");return ye||Ue||Kt&&ct||xr||Mt},s.Range=Rt,Rt.prototype.format=function(){return this.range=this.set.map((function(j){return j.join(" ").trim()})).join("||").trim(),this.range},Rt.prototype.toString=function(){return this.range},Rt.prototype.parseRange=function(j){var Y=this.options.loose;j=j.trim();var re=Y?c[oe]:c[z];j=j.replace(re,tH),i("hyphen replace",j),j=j.replace(c[N],"$1$2$3"),i("comparator trim",j,c[N]),j=(j=(j=j.replace(c[ie],"$1~")).replace(c[de],"$1^")).split(/\s+/).join(" ");var ye=Y?c[U]:c[L],Ue=j.split(" ").map((function(Kt){return(function(ct,xr){return i("comp",ct,xr),ct=(function(Mt,pr){return Mt.trim().split(/\s+/).map((function(ti){return(function(Nt,dt){i("caret",Nt,dt),dt&&typeof dt=="object"||(dt={loose:!!dt,includePrerelease:!1});var Fr=dt.loose?c[Ve]:c[q];return Nt.replace(Fr,(function(Mn,qe,Je,gt,Ot){var or;return i("caret",Nt,Mn,qe,Je,gt,Ot),Dr(qe)?or="":Dr(Je)?or=">="+qe+".0.0 <"+(+qe+1)+".0.0":Dr(gt)?or=qe==="0"?">="+qe+"."+Je+".0 <"+qe+"."+(+Je+1)+".0":">="+qe+"."+Je+".0 <"+(+qe+1)+".0.0":Ot?(i("replaceCaret pr",Ot),Ot.charAt(0)!=="-"&&(Ot="-"+Ot),or=qe==="0"?Je==="0"?">="+qe+"."+Je+"."+gt+Ot+" <"+qe+"."+Je+"."+(+gt+1):">="+qe+"."+Je+"."+gt+Ot+" <"+qe+"."+(+Je+1)+".0":">="+qe+"."+Je+"."+gt+Ot+" <"+(+qe+1)+".0.0"):(i("no pr"),or=qe==="0"?Je==="0"?">="+qe+"."+Je+"."+gt+" <"+qe+"."+Je+"."+(+gt+1):">="+qe+"."+Je+"."+gt+" <"+qe+"."+(+Je+1)+".0":">="+qe+"."+Je+"."+gt+" <"+(+qe+1)+".0.0"),i("caret return",or),or}))})(ti,pr)})).join(" ")})(ct,xr),i("caret",ct),ct=(function(Mt,pr){return Mt.trim().split(/\s+/).map((function(ti){return(function(Nt,dt){dt&&typeof dt=="object"||(dt={loose:!!dt,includePrerelease:!1});var Fr=dt.loose?c[X]:c[Ee];return Nt.replace(Fr,(function(Mn,qe,Je,gt,Ot){var or;return i("tilde",Nt,Mn,qe,Je,gt,Ot),Dr(qe)?or="":Dr(Je)?or=">="+qe+".0.0 <"+(+qe+1)+".0.0":Dr(gt)?or=">="+qe+"."+Je+".0 <"+qe+"."+(+Je+1)+".0":Ot?(i("replaceTilde pr",Ot),Ot.charAt(0)!=="-"&&(Ot="-"+Ot),or=">="+qe+"."+Je+"."+gt+Ot+" <"+qe+"."+(+Je+1)+".0"):or=">="+qe+"."+Je+"."+gt+" <"+qe+"."+(+Je+1)+".0",i("tilde return",or),or}))})(ti,pr)})).join(" ")})(ct,xr),i("tildes",ct),ct=(function(Mt,pr){return i("replaceXRanges",Mt,pr),Mt.split(/\s+/).map((function(ti){return(function(Nt,dt){Nt=Nt.trim(),dt&&typeof dt=="object"||(dt={loose:!!dt,includePrerelease:!1});var Fr=dt.loose?c[K]:c[k];return Nt.replace(Fr,(function(Mn,qe,Je,gt,Ot,or){i("xRange",Nt,Mn,qe,Je,gt,Ot,or);var CO=Dr(Je),du=CO||Dr(gt),hu=du||Dr(Ot);return qe==="="&&hu&&(qe=""),CO?Mn=qe===">"||qe==="<"?"<0.0.0":"*":qe&&hu?(du&&(gt=0),hu&&(Ot=0),qe===">"?(qe=">=",du?(Je=+Je+1,gt=0,Ot=0):hu&&(gt=+gt+1,Ot=0)):qe==="<="&&(qe="<",du?Je=+Je+1:gt=+gt+1),Mn=qe+Je+"."+gt+"."+Ot):du?Mn=">="+Je+".0.0 <"+(+Je+1)+".0.0":hu&&(Mn=">="+Je+"."+gt+".0 <"+Je+"."+(+gt+1)+".0"),i("xRange return",Mn),Mn}))})(ti,pr)})).join(" ")})(ct,xr),i("xrange",ct),ct=(function(Mt,pr){return i("replaceStars",Mt,pr),Mt.trim().replace(c[fe],"")})(ct,xr),i("stars",ct),ct})(Kt,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(Ue=Ue.filter((function(Kt){return!!Kt.match(ye)}))),Ue.map((function(Kt){return new on(Kt,this.options)}),this)},Rt.prototype.intersects=function(j,Y){if(!(j instanceof Rt))throw new TypeError("a Range is required");return this.set.some((function(re){return re.every((function(ye){return j.set.some((function(Ue){return Ue.every((function(Kt){return ye.intersects(Kt,Y)}))}))}))}))},s.toComparators=function(j,Y){return new Rt(j,Y).set.map((function(re){return re.map((function(ye){return ye.value})).join(" ").trim().split(" ")}))},Rt.prototype.test=function(j){if(!j)return!1;typeof j=="string"&&(j=new Se(j,this.options));for(var Y=0;Y<this.set.length;Y++)if(rH(this.set[Y],j,this.options))return!0;return!1},s.satisfies=xf,s.maxSatisfying=function(j,Y,re){var ye=null,Ue=null;try{var Kt=new Rt(Y,re)}catch{return null}return j.forEach((function(ct){Kt.test(ct)&&(ye&&Ue.compare(ct)!==-1||(Ue=new Se(ye=ct,re)))})),ye},s.minSatisfying=function(j,Y,re){var ye=null,Ue=null;try{var Kt=new Rt(Y,re)}catch{return null}return j.forEach((function(ct){Kt.test(ct)&&(ye&&Ue.compare(ct)!==1||(Ue=new Se(ye=ct,re)))})),ye},s.validRange=function(j,Y){try{return new Rt(j,Y).range||"*"}catch{return null}},s.ltr=function(j,Y,re){return J0(j,Y,"<",re)},s.gtr=function(j,Y,re){return J0(j,Y,">",re)},s.outside=J0,s.prerelease=function(j,Y){var re=Ce(j,Y);return re&&re.prerelease.length?re.prerelease:null},s.intersects=function(j,Y,re){return j=new Rt(j,re),Y=new Rt(Y,re),j.intersects(Y)},s.coerce=function(j){if(j instanceof Se)return j;if(typeof j!="string")return null;var Y=j.match(c[ee]);return Y==null?null:Ce((Y[1]||"0")+"."+(Y[2]||"0")+"."+(Y[3]||"0"))}},6176:(n,s,i)=>{"use strict";var o=i(184);n.exports=function(a){var c=a.match(o);if(!c)return null;var u=c[0].replace(/#! ?/,"").split(" "),l=u[0].split("/").pop(),f=u[1];return l==="env"?f:l+(f?" "+f:"")}},184:n=>{"use strict";n.exports=/^#!.*/},200:(n,s,i)=>{var o,a=i(6608),c=i(6132),u=i(467);function l(){d&&(d=!1,c.forEach((function(S){try{process.removeListener(S,p[S])}catch{}})),process.emit=E,process.reallyExit=g,o.count-=1)}function f(S,T,y){o.emitted[S]||(o.emitted[S]=!0,o.emit(S,T,y))}typeof u!="function"&&(u=u.EventEmitter),process.__signal_exit_emitter__?o=process.__signal_exit_emitter__:((o=process.__signal_exit_emitter__=new u).count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),n.exports=function(S,T){a.equal(typeof S,"function","a callback must be provided for exit handler"),d===!1&&m();var y="exit";return T&&T.alwaysLast&&(y="afterexit"),o.on(y,S),function(){o.removeListener(y,S),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&l()}},n.exports.unload=l;var p={};c.forEach((function(S){p[S]=function(){process.listeners(S).length===o.count&&(l(),f("exit",null,S),f("afterexit",null,S),process.kill(process.pid,S))}})),n.exports.signals=function(){return c},n.exports.load=m;var d=!1;function m(){d||(d=!0,o.count+=1,c=c.filter((function(S){try{return process.on(S,p[S]),!0}catch{return!1}})),process.emit=_,process.reallyExit=h)}var g=process.reallyExit;function h(S){process.exitCode=S||0,f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),g.call(process,process.exitCode)}var E=process.emit;function _(S,T){if(S==="exit"){T!==void 0&&(process.exitCode=T);var y=E.apply(this,arguments);return f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),y}return E.apply(this,arguments)}},6132:n=>{n.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&n.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&n.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},9860:n=>{"use strict";n.exports=function(s){var i=typeof s=="string"?`
|
|
182
182
|
`:10,o=typeof s=="string"?"\r":13;return s[s.length-1]===i&&(s=s.slice(0,s.length-1)),s[s.length-1]===o&&(s=s.slice(0,s.length-1)),s}},8460:(n,s,i)=>{n.exports=p,p.sync=function(d,m){for(var g=f(d,m=m||{}),h=g.env,E=g.ext,_=g.extExe,S=[],T=0,y=h.length;T<y;T++){var b=h[T];b.charAt(0)==='"'&&b.slice(-1)==='"'&&(b=b.slice(1,-1));var C=a.join(b,d);!b&&/^\.[\\\/]/.test(d)&&(C=d.slice(0,2)+C);for(var D=0,A=E.length;D<A;D++){var v=C+E[D];try{if(u.sync(v,{pathExt:_})){if(!m.all)return v;S.push(v)}}catch{}}}if(m.all&&S.length)return S;if(m.nothrow)return null;throw l(d)};var o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",a=i(7072),c=o?";":":",u=i(9268);function l(d){var m=new Error("not found: "+d);return m.code="ENOENT",m}function f(d,m){var g=m.colon||c,h=m.path||process.env.PATH||"",E=[""];h=h.split(g);var _="";return o&&(h.unshift(process.cwd()),E=(_=m.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(g),d.indexOf(".")!==-1&&E[0]!==""&&E.unshift("")),(d.match(/\//)||o&&d.match(/\\/))&&(h=[""]),{env:h,ext:E,extExe:_}}function p(d,m,g){typeof m=="function"&&(g=m,m={});var h=f(d,m),E=h.env,_=h.ext,S=h.extExe,T=[];(function y(b,C){if(b===C)return m.all&&T.length?g(null,T):g(l(d));var D=E[b];D.charAt(0)==='"'&&D.slice(-1)==='"'&&(D=D.slice(1,-1));var A=a.join(D,d);!D&&/^\.[\\\/]/.test(d)&&(A=d.slice(0,2)+A),(function v(I,F){if(I===F)return y(b+1,C);var V=_[I];u(A+V,{pathExt:S},(function($,k){if(!$&&k){if(!m.all)return g(null,A+V);T.push(A+V)}return v(I+1,F)}))})(0,_.length)})(0,E.length)}},6468:(n,s,i)=>{"use strict";let o=i(8558),a=i(8636),c=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);n.exports=u=>{let l=/\d+\.\d/.exec(u||o.release());if(u&&!l)throw new Error("`release` argument doesn't match `n.n`");let f=(l||[])[0];if((!u||u===o.release())&&["6.1","6.2","6.3","10.0"].includes(f)){let p=((a.sync("wmic",["os","get","Caption"]).stdout||"").match(/2008|2012|2016/)||[])[0];if(p)return`Server ${p}`}return c.get(f)}},8636:(n,s,i)=>{"use strict";let o=i(7072),a=i(4368),c=i(7468),u=i(9860),l=i(9584),f=i(1392),p=i(9068),d=i(1548),m=i(200),g=i(7688),h=i(6174);function E(C,D,A){let v;return(A=Object.assign({extendEnv:!0,env:{}},A)).extendEnv&&(A.env=Object.assign({},process.env,A.env)),A.__winShell===!0?(delete A.__winShell,v={command:C,args:D,options:A,file:C,original:{cmd:C,args:D}}):v=c._parse(C,D,A),(A=Object.assign({maxBuffer:1e7,buffer:!0,stripEof:!0,preferLocal:!0,localDir:v.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},v.options)).stdio=h(A),A.preferLocal&&(A.env=l.env(Object.assign({},A,{cwd:A.localDir}))),A.detached&&(A.cleanup=!1),process.platform==="win32"&&o.basename(v.command)==="cmd.exe"&&v.args.unshift("/q"),{cmd:v.command,args:v.args,opts:A,parsed:v}}function _(C,D){return D&&C.stripEof&&(D=u(D)),D}function S(C,D,A){let v="/bin/sh",I=["-c",D];return A=Object.assign({},A),process.platform==="win32"&&(A.__winShell=!0,v=process.env.comspec||"cmd.exe",I=["/s","/c",`"${D}"`],A.windowsVerbatimArguments=!0),A.shell&&(v=A.shell,delete A.shell),C(v,I,A)}function T(C,D,{encoding:A,buffer:v,maxBuffer:I}){if(!C[D])return null;let F;return F=v?A?p(C[D],{encoding:A,maxBuffer:I}):p.buffer(C[D],{maxBuffer:I}):new Promise(((V,$)=>{C[D].once("end",V).once("error",$)})),F.catch((V=>{throw V.stream=D,V.message=`${D} ${V.message}`,V}))}function y(C,D){let{stdout:A,stderr:v}=C,I=C.error,{code:F,signal:V}=C,{parsed:$,joinedCmd:k}=D,K=D.timedOut||!1;if(!I){let ee="";Array.isArray($.opts.stdio)?($.opts.stdio[2]!=="inherit"&&(ee+=ee.length>0?v:`
|
|
183
183
|
${v}`),$.opts.stdio[1]!=="inherit"&&(ee+=`
|
|
184
184
|
${A}`)):$.opts.stdio!=="inherit"&&(ee=`
|
|
@@ -187,18 +187,18 @@ ${v}${A}`),I=new Error(`Command failed: ${k}${ee}`),I.code=F<0?g(F):F}return I.s
|
|
|
187
187
|
`,V=c(v,_);return Object.keys(A).forEach((function($){var k=A[$],K=o(k),ee=c(I," "),ne=u.indexOf(K)!==-1?"":" ",ie=C(k)?" [Circular]":b(K,k,v+1,I);F+=`${ee}${V}${$}:${ne}${ie}
|
|
188
188
|
`})),F.substring(0,F.length-1)}function y(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(A.length===0)return" []";var F=`
|
|
189
189
|
`,V=c(v,_);return A.forEach((function($){var k=o($),K=c(I," "),ee=C($)?"[Circular]":b(k,$,v,I+1).toString().trimLeft();F+=`${K}${V}- ${ee}
|
|
190
|
-
`})),F.substring(0,F.length-1)}function b(A,v,I,F){switch(A){case"array":return y(v,I,F);case"object":return T(v,I,F);case"string":return d.string(v);case"symbol":return d.symbol(v.toString());case"number":return d.number(v);case"boolean":return d.boolean(v);case"null":return d.null("null");case"undefined":return d.undefined("undefined");case"date":return d.date(h(v));case"error":return d.error(E(v));default:return v&&v.toString?v.toString():Object.prototype.toString.call(v)}}function C(A){return!(["object","array"].indexOf(o(A))===-1||!S.has(A)&&(S.set(A),1))}var D="";return S.set(l),o(l)==="object"&&Object.keys(l).length>0?D=T(l):o(l)==="array"&&l.length>0&&(D=y(l)),D.length===0?"":`${m}${D.slice(1)}${g}`}},7344:n=>{"use strict";n.exports=function(s){return Array.isArray(s)?"array":s instanceof Date?"date":s instanceof Error?"error":s===null?"null":typeof s=="object"&&Object.prototype.toString.call(s)==="[object Object]"?"object":typeof s}},6608:n=>{"use strict";n.exports=W("assert")},4368:n=>{"use strict";n.exports=W("child_process")},467:n=>{"use strict";n.exports=W("events")},2058:n=>{"use strict";n.exports=W("fs")},8558:n=>{"use strict";n.exports=W("os")},7072:n=>{"use strict";n.exports=W("path")},8378:n=>{"use strict";n.exports=W("stream")},970:n=>{"use strict";n.exports=W("util")}},e={},t=(function n(s){var i=e[s];if(i!==void 0)return i.exports;var o=e[s]={exports:{}};return r[s](o,o.exports,n),o.exports})(2980);Xj.exports=t})()});var Qj=x((
|
|
191
|
-
`);r&&r.length?Zo=r[0]:Zo="wmic"}catch{Zo="wmic"}return Zo}function Mue(r){return new Promise(e=>{process.nextTick(()=>{try{p6(f6()+" "+r).then(t=>{e(t,"")})}catch(t){e("",t)}})})}function Nue(){return d0?`"${process.env.VBOX_INSTALL_PATH||process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"`:"vboxmanage"}function
|
|
192
|
-
`)[0].split(":");Kn=t.length>1?t[1].replace(".","").trim():""}catch{Kn="437"}return Kn}if(
|
|
190
|
+
`})),F.substring(0,F.length-1)}function b(A,v,I,F){switch(A){case"array":return y(v,I,F);case"object":return T(v,I,F);case"string":return d.string(v);case"symbol":return d.symbol(v.toString());case"number":return d.number(v);case"boolean":return d.boolean(v);case"null":return d.null("null");case"undefined":return d.undefined("undefined");case"date":return d.date(h(v));case"error":return d.error(E(v));default:return v&&v.toString?v.toString():Object.prototype.toString.call(v)}}function C(A){return!(["object","array"].indexOf(o(A))===-1||!S.has(A)&&(S.set(A),1))}var D="";return S.set(l),o(l)==="object"&&Object.keys(l).length>0?D=T(l):o(l)==="array"&&l.length>0&&(D=y(l)),D.length===0?"":`${m}${D.slice(1)}${g}`}},7344:n=>{"use strict";n.exports=function(s){return Array.isArray(s)?"array":s instanceof Date?"date":s instanceof Error?"error":s===null?"null":typeof s=="object"&&Object.prototype.toString.call(s)==="[object Object]"?"object":typeof s}},6608:n=>{"use strict";n.exports=W("assert")},4368:n=>{"use strict";n.exports=W("child_process")},467:n=>{"use strict";n.exports=W("events")},2058:n=>{"use strict";n.exports=W("fs")},8558:n=>{"use strict";n.exports=W("os")},7072:n=>{"use strict";n.exports=W("path")},8378:n=>{"use strict";n.exports=W("stream")},970:n=>{"use strict";n.exports=W("util")}},e={},t=(function n(s){var i=e[s];if(i!==void 0)return i.exports;var o=e[s]={exports:{}};return r[s](o,o.exports,n),o.exports})(2980);Xj.exports=t})()});var Qj=x((gOe,gue)=>{gue.exports={name:"systeminformation",version:"5.27.14",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",type:"commonjs",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js",testDeno:"deno run -A ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"git+https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var kt=x(Me=>{"use strict";var Yc=W("os"),Jn=W("fs"),Eue=W("path"),x1=W("child_process").spawn,Sue=W("child_process").exec,zc=W("child_process").execSync,_ue=W("util"),ea=process.platform,b1=ea==="linux"||ea==="android",t6=ea==="darwin",d0=ea==="win32",r6=ea==="freebsd",n6=ea==="openbsd",i6=ea==="netbsd",T1=0,Zo="",Kn="",Os=null,Xn=null,P1=process.env.WINDIR||"C:\\Windows",Yt,Wc="",tf=[],I1=!1,f0="",yue="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",O1="--###START###--",Zj="--ERROR--",p0="--###ENDCMD###--",C1="--##ID##--",rf={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},h0={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function Tue(r){let e=parseInt(r,10);return isNaN(e)&&(e=0),e}function Aue(r){let e=!1,t="",n="";for(let s of r)s>="0"&&s<="9"||e?(e=!0,t+=s):n+=s;return[n,t]}var l0=new String,v1=new String().replace,D1=new String().toLowerCase,s6=new String().toString,o6=new String().substr,a6=new String().substring,c6=new String().trim,u6=new String().startsWith,l6=Math.min;function Oue(r){return r&&{}.toString.call(r)==="[object Function]"}function Cue(r){let e=[],t={};for(let n=0;n<r.length;n++){let s=Object.keys(r[n]);s.sort(function(o,a){return o-a});let i="";for(let o=0;o<s.length;o++)i+=JSON.stringify(s[o]),i+=JSON.stringify(r[n][s[o]]);({}).hasOwnProperty.call(t,i)||(e.push(r[n]),t[i]=!0)}return e}function vue(r,e){return r.sort(function(t,n){let s="",i="";return e.forEach(function(o){s=s+t[o],i=i+n[o]}),s<i?-1:s>i?1:0})}function Due(){return T1===0&&(T1=Yc.cpus().length),T1}function Cs(r,e,t,n,s){t=t||":",e=e.toLowerCase(),n=n||!1,s=s||!1;let i="";return r.some(o=>{let a=o.toLowerCase().replace(/\t/g,"");if(n&&(a=a.trim()),a.startsWith(e)&&(!s||a.match(e+t)||a.match(e+" "+t))){let c=n?o.trim().split(t):o.split(t);if(c.length>=2)return c.shift(),i=c.join(t).trim(),!0}}),i}function xue(r,e){return e=e||16,r.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],e))})}function bue(r){let e="",t=0;return r.split("").forEach(n=>{n>="0"&&n<="9"?t===1&&t++:(t===0&&t++,t===1&&(e+=n))}),e}function Pue(r,e){e=e||"",r=r.toUpperCase();let t=0,n=0,s=bue(r),i=r.split(s);if(i.length>=2){i[2]&&(i[1]+=i[2]);let o=i[1]&&i[1].toLowerCase().indexOf("pm")>-1||i[1].toLowerCase().indexOf("p.m.")>-1||i[1].toLowerCase().indexOf("p. m.")>-1||i[1].toLowerCase().indexOf("n")>-1||i[1].toLowerCase().indexOf("ch")>-1||i[1].toLowerCase().indexOf("\xF6s")>-1||e&&i[1].toLowerCase().indexOf(e)>-1;return t=parseInt(i[0],10),n=parseInt(i[1],10),t=o&&t<12?t+12:t,("0"+t).substr(-2)+":"+("0"+n).substr(-2)}}function Iue(r,e){let t={date:"",time:""};e=e||{};let n=(e.dateFormat||"").toLowerCase(),s=e.pmDesignator||"",i=r.split(" ");if(i[0]){if(i[0].indexOf("/")>=0){let o=i[0].split("/");o.length===3&&(o[0].length===4?t.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2):o[2].length===2?(n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1,t.date="20"+o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2)):(r.toLowerCase().indexOf("pm")>-1||r.toLowerCase().indexOf("p.m.")>-1||r.toLowerCase().indexOf("p. m.")>-1||r.toLowerCase().indexOf("am")>-1||r.toLowerCase().indexOf("a.m.")>-1||r.toLowerCase().indexOf("a. m.")>-1||n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1)&&n.indexOf("dd/")!==0?t.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):t.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(i[0].indexOf(".")>=0){let o=i[0].split(".");o.length===3&&(n.indexOf(".d.")>-1||n.indexOf(".dd.")>-1?t.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):t.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(i[0].indexOf("-")>=0){let o=i[0].split("-");o.length===3&&(t.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2))}}if(i[1]){i.shift();let o=i.join(" ");t.time=Pue(o,s)}return t}function wue(r,e){let t=e>0,n=1,s=0,i=0,o=[];for(let c=0;c<r.length;c++)n<=e?(/\s/.test(r[c])&&!t&&(i=c-1,o.push({from:s,to:i+1,cap:r.substring(s,i+1)}),s=i+2,n++),t=r[c]===" "):(!/\s/.test(r[c])&&t&&(i=c-1,s<i&&o.push({from:s,to:i,cap:r.substring(s,i)}),s=i+1,n++),t=r[c]===" ");i=5e3,o.push({from:s,to:i,cap:r.substring(s,i)});let a=o.length;for(let c=0;c<a;c++)o[c].cap.replace(/\s/g,"").length===0&&c+1<a&&(o[c].to=o[c+1].to,o[c].cap=o[c].cap+o[c+1].cap,o.splice(c+1,1),a=a-1);return o}function Rue(r,e,t){for(let n=0;n<r.length;n++)if(r[n][e]===t)return n;return-1}function Lue(){if(f0="powershell.exe",d0){let r=`${P1}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;Jn.existsSync(r)&&(f0=r)}}function f6(){if(Yc.type()==="Windows_NT"&&!Zo&&(Zo=P1+"\\system32\\wbem\\wmic.exe",!Jn.existsSync(Zo)))try{let r=zc("WHERE WMIC",rf).toString().split(`\r
|
|
191
|
+
`);r&&r.length?Zo=r[0]:Zo="wmic"}catch{Zo="wmic"}return Zo}function Mue(r){return new Promise(e=>{process.nextTick(()=>{try{p6(f6()+" "+r).then(t=>{e(t,"")})}catch(t){e("",t)}})})}function Nue(){return d0?`"${process.env.VBOX_INSTALL_PATH||process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"`:"vboxmanage"}function A1(r){let e="",t,n="";if(r.indexOf(O1)>=0){t=r.split(O1);let i=t[1].split(C1);e=i[0],i.length>1&&(r=i.slice(1).join(C1))}r.indexOf(p0)>=0&&(t=r.split(p0),n=t[0]);let s=-1;for(let i=0;i<tf.length;i++)tf[i].id===e&&(s=i,tf[i].callback(n));s>=0&&tf.splice(s,1)}function Bue(){Yt||(Yt=x1(f0,["-NoProfile","-NoLogo","-InputFormat","Text","-NoExit","-Command","-"],{stdio:"pipe",windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})}),Yt&&Yt.pid&&(I1=!0,Yt.stdout.on("data",function(r){Wc=Wc+r.toString("utf8"),r.indexOf(p0)>=0&&(A1(Wc),Wc="")}),Yt.stderr.on("data",function(){A1(Wc+Zj)}),Yt.on("error",function(){A1(Wc+Zj)}),Yt.on("close",function(){Yt&&Yt.kill()})))}function Uue(){try{Yt&&(Yt.stdin.write("exit"+Yc.EOL),Yt.stdin.end(),I1=!1)}catch{Yt&&Yt.kill()}Yt=null}function p6(r){if(I1){let e=Math.random().toString(36).substring(2,12);return new Promise(t=>{process.nextTick(()=>{function n(s){t(s)}tf.push({id:e,cmd:r,callback:n,start:new Date});try{Yt&&Yt.pid&&Yt.stdin.write(yue+"echo "+O1+e+C1+"; "+Yc.EOL+r+Yc.EOL+"echo "+p0+Yc.EOL)}catch{t("")}})})}else{let e="";return new Promise(t=>{process.nextTick(()=>{try{let n=x1(f0,["-NoProfile","-NoLogo","-InputFormat","Text","-ExecutionPolicy","Unrestricted","-Command",r],{stdio:"pipe",windowsHide:!0,maxBuffer:2048e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})});n&&!n.pid&&n.on("error",function(){t(e)}),n&&n.pid?(n.stdout.on("data",function(s){e=e+s.toString("utf8")}),n.stderr.on("data",function(){n.kill(),t(e)}),n.on("close",function(){n.kill(),t(e)}),n.on("error",function(){n.kill(),t(e)})):t(e)}catch{t(e)}})})}}function Fue(r,e,t){let n="";return t=t||{},new Promise(s=>{process.nextTick(()=>{try{let i=x1(r,e,t);i&&!i.pid&&i.on("error",function(){s(n)}),i&&i.pid?(i.stdout.on("data",function(o){n+=o.toString()}),i.on("close",function(){i.kill(),s(n)}),i.on("error",function(){i.kill(),s(n)})):s(n)}catch{s(n)}})})}function Vue(){if(d0){if(!Kn)try{let t=zc("chcp",rf).toString().split(`\r
|
|
192
|
+
`)[0].split(":");Kn=t.length>1?t[1].replace(".","").trim():""}catch{Kn="437"}return Kn}if(b1||t6||r6||n6||i6){if(!Kn)try{let t=zc("echo $LANG",h0).toString().split(`\r
|
|
193
193
|
`)[0].split(".");Kn=t.length>1?t[1].trim():"",Kn||(Kn="UTF-8")}catch{Kn="UTF-8"}return Kn}}function Gue(){if(Os!==null)return Os;if(Os=!1,d0)try{let r=zc("WHERE smartctl 2>nul",rf).toString().split(`\r
|
|
194
|
-
`);r&&r.length?Os=r[0].indexOf(":\\")>=0:Os=!1}catch{Os=!1}if(
|
|
194
|
+
`);r&&r.length?Os=r[0].indexOf(":\\")>=0:Os=!1}catch{Os=!1}if(b1||t6||r6||n6||i6)try{Os=zc("which smartctl 2>/dev/null",h0).toString().split(`\r
|
|
195
195
|
`).length>0}catch{_ue.noop()}return Os}function kue(r){let e=["BCM2708","BCM2709","BCM2710","BCM2711","BCM2712","BCM2835","BCM2836","BCM2837","BCM2837B0"];if(Xn!==null)r=Xn;else if(r===void 0)try{r=Jn.readFileSync("/proc/cpuinfo",{encoding:"utf8"}).toString().split(`
|
|
196
196
|
`),Xn=r}catch{return!1}let t=Cs(r,"hardware"),n=Cs(r,"model");return t&&e.indexOf(t)>-1||n&&n.indexOf("Raspberry Pi")>-1}function jue(){let r=[];try{r=Jn.readFileSync("/etc/os-release",{encoding:"utf8"}).toString().split(`
|
|
197
197
|
`)}catch{return!1}let e=Cs(r,"id","=");return e&&e.indexOf("raspbian")>-1}function que(r,e,t){t||(t=e,e=rf);let n="chcp 65001 > nul && cmd /C "+r+" && chcp "+Kn+" > nul";Sue(n,e,function(s,i){t(s,i)})}function Hue(){let r=Jn.existsSync("/Library/Developer/CommandLineTools/usr/bin/"),e=Jn.existsSync("/Applications/Xcode.app/Contents/Developer/Tools"),t=Jn.existsSync("/Library/Developer/Xcode/");return r||t||e}function $ue(){let r=process.hrtime();return!Array.isArray(r)||r.length!==2?0:+r[0]*1e9+ +r[1]}function Wue(r,e){e=e||"";let t=[];return r.forEach(n=>{n.startsWith(e)&&t.indexOf(n)===-1&&t.push(n)}),t.length}function Yue(r,e){e=e||"";let t=[];return r.forEach(n=>{n.startsWith(e)&&t.push(n)}),t.length}function zue(r,e){typeof e>"u"&&(e=!1);let t=r||"",n="",s=l6(t.length,2e3);for(let i=0;i<=s;i++)t[i]===void 0||t[i]===">"||t[i]==="<"||t[i]==="*"||t[i]==="?"||t[i]==="["||t[i]==="]"||t[i]==="|"||t[i]==="\u02DA"||t[i]==="$"||t[i]===";"||t[i]==="&"||t[i]==="]"||t[i]==="#"||t[i]==="\\"||t[i]===" "||t[i]===`
|
|
198
|
-
`||t[i]==="\r"||t[i]==="'"||t[i]==="`"||t[i]==='"'||t[i].length>1||e&&t[i]==="("||e&&t[i]===")"||e&&t[i]==="@"||e&&t[i]===" "||e&&t[i]==="{"||e&&t[i]===";"||e&&t[i]==="}"||(n=n+t[i]);return n}function Kue(){let r="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",e=!0,t="";try{t.__proto__.replace=
|
|
199
|
-
`),Xn=r}catch{return!1}let e=d6(r);return e.type==="4B"||e.type==="CM4"||e.type==="CM4S"||e.type==="400"?"VideoCore VI":e.type==="5"||e.type==="500"?"VideoCore VII":"VideoCore IV"}function Zue(r){let e=r.map(function(s){return new Promise(function(i){let o=new Array(2);s.then(function(a){o[0]=a}).catch(function(a){o[1]=a}).then(function(){i(o)})})}),t=[],n=[];return Promise.all(e).then(function(s){return s.forEach(function(i){i[1]?(t.push(i[1]),n.push(null)):(t.push(null),n.push(i[0]))}),{errors:t,results:n}})}function ele(r){return function(){let e=Array.prototype.slice.call(arguments);return new Promise(function(t,n){e.push(function(s,i){s?n(s):t(i)}),r.apply(null,e)})}}function tle(r){return function(){let e=Array.prototype.slice.call(arguments);return new Promise(function(t){e.push(function(n,s){t(s)}),r.apply(null,e)})}}function rle(){let r="";if(
|
|
200
|
-
`);for(let n=0;n<e.length;n++){if(e[n].indexOf(" = ")>=0){let s=e[n].split(" = ");if(s[0]=s[0].trim(),s[0].startsWith('"')||(s[0]='"'+s[0]+'"'),s[1]=s[1].trim(),s[1].indexOf('"')===-1&&s[1].endsWith(";")){let i=s[1].substring(0,s[1].length-1);e6(i)||(s[1]=`"${i}";`)}if(s[1].indexOf('"')>=0&&s[1].endsWith(";")){let i=s[1].substring(0,s[1].length-1).replace(/"/g,"");e6(i)&&(s[1]=`${i};`)}e[n]=s.join(" : ")}e[n]=e[n].replace(/\(/g,"[").replace(/\)/g,"]").replace(/;/g,",").trim(),e[n].startsWith("}")&&e[n-1]&&e[n-1].endsWith(",")&&(e[n-1]=e[n-1].substring(0,e[n-1].length-1))}r=e.join("");let t={};try{t=JSON.parse(r)}catch{}return t}function sle(r,e){let t=0,n=r.split("."),s=e.split(".");return n[0]<s[0]?t=1:n[0]>s[0]?t=-1:n[0]===s[0]&&n.length>=2&&s.length>=2&&(n[1]<s[1]?t=1:n[1]>s[1]?t=-1:n[1]===s[1]&&(n.length>=3&&s.length>=3?n[2]<s[2]?t=1:n[2]>s[2]&&(t=-1):s.length>=3&&(t=1))),t}function ole(r){let t=[{key:"Mac15,12",name:"MacBook Air",size:"13-inch",processor:"M3",year:"2024",additional:""},{key:"Mac14,15",name:"MacBook Air",size:"15-inch",processor:"M2",year:"2024",additional:""},{key:"Mac14,2",name:"MacBook Air",size:"13-inch",processor:"M2",year:"2022",additional:""},{key:"MacBookAir10,1",name:"MacBook Air",size:"13-inch",processor:"M1",year:"2020",additional:""},{key:"MacBookAir9,1",name:"MacBook Air",size:"13-inch",processor:"",year:"2020",additional:""},{key:"MacBookAir8,2",name:"MacBook Air",size:"13-inch",processor:"",year:"2019",additional:""},{key:"MacBookAir8,1",name:"MacBook Air",size:"13-inch",processor:"",year:"2018",additional:""},{key:"MacBookAir7,2",name:"MacBook Air",size:"13-inch",processor:"",year:"2017",additional:""},{key:"MacBookAir7,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBookAir7,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBookAir6,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Early 2014",additional:""},{key:"MacBookAir6,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Early 2014",additional:""},{key:"MacBookAir6,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2013",additional:""},{key:"MacBookAir6,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Mid 2013",additional:""},{key:"MacBookAir5,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookAir5,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookAir4,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2011",additional:""},{key:"MacBookAir4,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Mid 2011",additional:""},{key:"MacBookAir3,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Late 2010",additional:""},{key:"MacBookAir3,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Late 2010",additional:""},{key:"MacBookAir2,1",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2009",additional:""},{key:"Mac16,1",name:"MacBook Pro",size:"14-inch",processor:"M4",year:"2024",additional:""},{key:"Mac16,6",name:"MacBook Pro",size:"14-inch",processor:"M4 Pro",year:"2024",additional:""},{key:"Mac16,8",name:"MacBook Pro",size:"14-inch",processor:"M4 Max",year:"2024",additional:""},{key:"Mac16,5",name:"MacBook Pro",size:"16-inch",processor:"M4 Pro",year:"2024",additional:""},{key:"Mac16,6",name:"MacBook Pro",size:"16-inch",processor:"M4 Max",year:"2024",additional:""},{key:"Mac15,3",name:"MacBook Pro",size:"14-inch",processor:"M3",year:"Nov 2023",additional:""},{key:"Mac15,6",name:"MacBook Pro",size:"14-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,8",name:"MacBook Pro",size:"14-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,10",name:"MacBook Pro",size:"14-inch",processor:"M3 Max",year:"Nov 2023",additional:""},{key:"Mac15,7",name:"MacBook Pro",size:"16-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,9",name:"MacBook Pro",size:"16-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,11",name:"MacBook Pro",size:"16-inch",processor:"M3 Max",year:"Nov 2023",additional:""},{key:"Mac14,5",name:"MacBook Pro",size:"14-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,9",name:"MacBook Pro",size:"14-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,6",name:"MacBook Pro",size:"16-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,10",name:"MacBook Pro",size:"16-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,7",name:"MacBook Pro",size:"13-inch",processor:"M2",year:"2022",additional:""},{key:"MacBookPro18,3",name:"MacBook Pro",size:"14-inch",processor:"M1 Pro",year:"2021",additional:""},{key:"MacBookPro18,4",name:"MacBook Pro",size:"14-inch",processor:"M1 Max",year:"2021",additional:""},{key:"MacBookPro18,1",name:"MacBook Pro",size:"16-inch",processor:"M1 Pro",year:"2021",additional:""},{key:"MacBookPro18,2",name:"MacBook Pro",size:"16-inch",processor:"M1 Max",year:"2021",additional:""},{key:"MacBookPro17,1",name:"MacBook Pro",size:"13-inch",processor:"M1",year:"2020",additional:""},{key:"MacBookPro16,3",name:"MacBook Pro",size:"13-inch",processor:"",year:"2020",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro16,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2020",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro16,1",name:"MacBook Pro",size:"16-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro16,4",name:"MacBook Pro",size:"16-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,4",name:"MacBook Pro",size:"13-inch",processor:"",year:"2019",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro15,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"2018",additional:""},{key:"MacBookPro15,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2018",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro14,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"2017",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro14,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2017",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro14,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"2017",additional:""},{key:"MacBookPro13,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"2016",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro13,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2016",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro13,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"2016",additional:""},{key:"MacBookPro11,4",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2015",additional:""},{key:"MacBookPro11,5",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2015",additional:""},{key:"MacBookPro12,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBookPro11,2",name:"MacBook Pro",size:"15-inch",processor:"",year:"Late 2013",additional:""},{key:"MacBookPro11,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"Late 2013",additional:""},{key:"MacBookPro11,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Late 2013",additional:""},{key:"MacBookPro10,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookPro10,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"Late 2012",additional:""},{key:"MacBookPro9,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookPro9,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookPro8,3",name:"MacBook Pro",size:"17-inch",processor:"",year:"Early 2011",additional:""},{key:"MacBookPro8,2",name:"MacBook Pro",size:"15-inch",processor:"",year:"Early 2011",additional:""},{key:"MacBookPro8,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Early 2011",additional:""},{key:"MacBookPro6,1",name:"MacBook Pro",size:"17-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBookPro6,2",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBookPro7,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBookPro5,2",name:"MacBook Pro",size:"17-inch",processor:"",year:"Early 2009",additional:""},{key:"MacBookPro5,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2009",additional:""},{key:"MacBookPro5,5",name:"MacBook Pro",size:"13-inch",processor:"",year:"Mid 2009",additional:""},{key:"MacBookPro5,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Late 2008",additional:""},{key:"MacBookPro4,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Early 2008",additional:""},{key:"MacBook10,1",name:"MacBook",size:"12-inch",processor:"",year:"2017",additional:""},{key:"MacBook9,1",name:"MacBook",size:"12-inch",processor:"",year:"Early 2016",additional:""},{key:"MacBook8,1",name:"MacBook",size:"12-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBook7,1",name:"MacBook",size:"13-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBook6,1",name:"MacBook",size:"13-inch",processor:"",year:"Late 2009",additional:""},{key:"MacBook5,2",name:"MacBook",size:"13-inch",processor:"",year:"Early 2009",additional:""},{key:"Mac14,13",name:"Mac Studio",size:"",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,14",name:"Mac Studio",size:"",processor:"M2 Ultra",year:"2023",additional:""},{key:"Mac15,14",name:"Mac Studio",size:"",processor:"M3 Ultra",year:"2025",additional:""},{key:"Mac16,9",name:"Mac Studio",size:"",processor:"M4 Max",year:"2025",additional:""},{key:"Mac13,1",name:"Mac Studio",size:"",processor:"M1 Max",year:"2022",additional:""},{key:"Mac13,2",name:"Mac Studio",size:"",processor:"M1 Ultra",year:"2022",additional:""},{key:"Mac16,11",name:"Mac mini",size:"",processor:"M4 Pro",year:"2024",additional:""},{key:"Mac16,10",name:"Mac mini",size:"",processor:"M4",year:"2024",additional:""},{key:"Mac14,3",name:"Mac mini",size:"",processor:"M2",year:"2023",additional:""},{key:"Mac14,12",name:"Mac mini",size:"",processor:"M2 Pro",year:"2023",additional:""},{key:"Macmini9,1",name:"Mac mini",size:"",processor:"M1",year:"2020",additional:""},{key:"Macmini8,1",name:"Mac mini",size:"",processor:"",year:"Late 2018",additional:""},{key:"Macmini7,1",name:"Mac mini",size:"",processor:"",year:"Late 2014",additional:""},{key:"Macmini6,1",name:"Mac mini",size:"",processor:"",year:"Late 2012",additional:""},{key:"Macmini6,2",name:"Mac mini",size:"",processor:"",year:"Late 2012",additional:""},{key:"Macmini5,1",name:"Mac mini",size:"",processor:"",year:"Mid 2011",additional:""},{key:"Macmini5,2",name:"Mac mini",size:"",processor:"",year:"Mid 2011",additional:""},{key:"Macmini4,1",name:"Mac mini",size:"",processor:"",year:"Mid 2010",additional:""},{key:"Macmini3,1",name:"Mac mini",size:"",processor:"",year:"Early 2009",additional:""},{key:"Mac16,3",name:"iMac",size:"24-inch",processor:"M4",year:"2024",additional:"Four ports"},{key:"Mac16,2",name:"iMac",size:"24-inch",processor:"M4",year:"2024",additional:"Two ports"},{key:"Mac15,5",name:"iMac",size:"24-inch",processor:"M3",year:"2023",additional:"Four ports"},{key:"Mac15,4",name:"iMac",size:"24-inch",processor:"M3",year:"2023",additional:"Two ports"},{key:"iMac21,1",name:"iMac",size:"24-inch",processor:"M1",year:"2021",additional:""},{key:"iMac21,2",name:"iMac",size:"24-inch",processor:"M1",year:"2021",additional:""},{key:"iMac20,1",name:"iMac",size:"27-inch",processor:"",year:"2020",additional:"Retina 5K"},{key:"iMac20,2",name:"iMac",size:"27-inch",processor:"",year:"2020",additional:"Retina 5K"},{key:"iMac19,1",name:"iMac",size:"27-inch",processor:"",year:"2019",additional:"Retina 5K"},{key:"iMac19,2",name:"iMac",size:"21.5-inch",processor:"",year:"2019",additional:"Retina 4K"},{key:"iMacPro1,1",name:"iMac Pro",size:"",processor:"",year:"2017",additional:""},{key:"iMac18,3",name:"iMac",size:"27-inch",processor:"",year:"2017",additional:"Retina 5K"},{key:"iMac18,2",name:"iMac",size:"21.5-inch",processor:"",year:"2017",additional:"Retina 4K"},{key:"iMac18,1",name:"iMac",size:"21.5-inch",processor:"",year:"2017",additional:""},{key:"iMac17,1",name:"iMac",size:"27-inch",processor:"",year:"Late 2015",additional:"Retina 5K"},{key:"iMac16,2",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2015",additional:"Retina 4K"},{key:"iMac16,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2015",additional:""},{key:"iMac15,1",name:"iMac",size:"27-inch",processor:"",year:"Late 2014",additional:"Retina 5K"},{key:"iMac14,4",name:"iMac",size:"21.5-inch",processor:"",year:"Mid 2014",additional:""},{key:"iMac14,2",name:"iMac",size:"27-inch",processor:"",year:"Late 2013",additional:""},{key:"iMac14,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2013",additional:""},{key:"iMac13,2",name:"iMac",size:"27-inch",processor:"",year:"Late 2012",additional:""},{key:"iMac13,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2012",additional:""},{key:"iMac12,2",name:"iMac",size:"27-inch",processor:"",year:"Mid 2011",additional:""},{key:"iMac12,1",name:"iMac",size:"21.5-inch",processor:"",year:"Mid 2011",additional:""},{key:"iMac11,3",name:"iMac",size:"27-inch",processor:"",year:"Mid 2010",additional:""},{key:"iMac11,2",name:"iMac",size:"21.5-inch",processor:"",year:"Mid 2010",additional:""},{key:"iMac10,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2009",additional:""},{key:"iMac9,1",name:"iMac",size:"20-inch",processor:"",year:"Early 2009",additional:""},{key:"Mac14,8",name:"Mac Pro",size:"",processor:"",year:"2023",additional:""},{key:"Mac14,8",name:"Mac Pro",size:"",processor:"",year:"2023",additional:"Rack"},{key:"MacPro7,1",name:"Mac Pro",size:"",processor:"",year:"2019",additional:""},{key:"MacPro7,1",name:"Mac Pro",size:"",processor:"",year:"2019",additional:"Rack"},{key:"MacPro6,1",name:"Mac Pro",size:"",processor:"",year:"Late 2013",additional:""},{key:"MacPro5,1",name:"Mac Pro",size:"",processor:"",year:"Mid 2012",additional:""},{key:"MacPro5,1",name:"Mac Pro Server",size:"",processor:"",year:"Mid 2012",additional:"Server"},{key:"MacPro5,1",name:"Mac Pro",size:"",processor:"",year:"Mid 2010",additional:""},{key:"MacPro5,1",name:"Mac Pro Server",size:"",processor:"",year:"Mid 2010",additional:"Server"},{key:"MacPro4,1",name:"Mac Pro",size:"",processor:"",year:"Early 2009",additional:""}].filter(s=>s.key===r);if(t.length===0)return{key:r,model:"Apple",version:"Unknown"};let n=[];return t[0].size&&n.push(t[0].size),t[0].processor&&n.push(t[0].processor),t[0].year&&n.push(t[0].year),t[0].additional&&n.push(t[0].additional),{key:r,model:t[0].name,version:t[0].name+" ("+n.join(", ")+")"}}function ale(r,e=5e3){let t=r.startsWith("https:")||r.indexOf(":443/")>0||r.indexOf(":8443/")>0?W("https"):W("http"),n=Date.now();return new Promise(s=>{let i=t.get(r,function(o){o.on("data",()=>{}),o.on("end",()=>{s({url:r,statusCode:o.statusCode,message:o.statusMessage,time:Date.now()-n})})}).on("error",function(o){s({url:r,statusCode:404,message:o.message,time:Date.now()-n})}).setTimeout(e,()=>{i.destroy(),s({url:r,statusCode:408,message:"Request Timeout",time:Date.now()-n})})})}function cle(r){return r.replace(/To Be Filled By O.E.M./g,"")}function ule(){}Me.toInt=Tue;Me.splitByNumber=Aue;Me.execOptsWin=rf;Me.execOptsLinux=h0;Me.getCodepage=Vue;Me.execWin=que;Me.isFunction=Oue;Me.unique=Cue;Me.sortByKey=vue;Me.cores=Due;Me.getValue=Cs;Me.decodeEscapeSequence=xue;Me.parseDateTime=Iue;Me.parseHead=wue;Me.findObjectByKey=Rue;Me.getWmic=f6;Me.wmic=Mue;Me.darwinXcodeExists=Hue;Me.getVboxmanage=Nue;Me.powerShell=p6;Me.powerShellStart=Bue;Me.powerShellRelease=Uue;Me.execSafe=Fue;Me.nanoSeconds=$ue;Me.countUniqueLines=Wue;Me.countLines=Yue;Me.noop=ule;Me.isRaspberry=kue;Me.isRaspbian=jue;Me.sanitizeShellString=zue;Me.isPrototypePolluted=Kue;Me.decodePiCpuinfo=d6;Me.getRpiGpu=Que;Me.promiseAll=Zue;Me.promisify=ele;Me.promisifySave=tle;Me.smartMonToolsInstalled=Gue;Me.linuxVersion=rle;Me.plistParser=nle;Me.plistReader=ile;Me.stringObj=l0;Me.stringReplace=vO;Me.stringToLower=DO;Me.stringToString=s6;Me.stringSubstr=o6;Me.stringSubstring=a6;Me.stringTrim=c6;Me.stringStartWith=u6;Me.mathMin=l6;Me.WINDIR=PO;Me.getFilesInPath=Jue;Me.semverCompare=sle;Me.getAppleModel=ole;Me.checkWebsite=ale;Me.cleanString=cle;Me.getPowershell=Lue});var MO=x(Xc=>{"use strict";var xn=W("os"),Cn=W("fs"),Re=kt(),Be=W("child_process").exec,sf=W("child_process").execSync,Qn=process.platform,Kc=Qn==="linux"||Qn==="android",vn=Qn==="darwin",Dn=Qn==="win32",wO=Qn==="freebsd",RO=Qn==="openbsd",LO=Qn==="netbsd",lle=Qn==="sunos";function fle(){let r=new Date().toString().split(" "),e="";try{e=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{e=r.length>=7?r.slice(6).join(" ").replace(/\(/g,"").replace(/\)/g,""):""}let t={current:Date.now(),uptime:xn.uptime(),timezone:r.length>=7?r[5]:"",timezoneName:e};if(vn||Kc)try{let s=sf("date +%Z && date +%z && ls -l /etc/localtime 2>/dev/null",Re.execOptsLinux).toString().split(xn.EOL);s.length>3&&!s[0]&&s.shift();let i=s[0]||"";return(i.startsWith("+")||i.startsWith("-"))&&(i="GMT"),{current:Date.now(),uptime:xn.uptime(),timezone:s[1]?i+s[1]:i,timezoneName:s[2]&&s[2].indexOf("/zoneinfo/")>0&&s[2].split("/zoneinfo/")[1]||""}}catch{Re.noop()}return t}Xc.time=fle;function nf(r){r=r||"",r=r.toLowerCase();let e=Qn;return Dn?e="windows":r.indexOf("mac os")!==-1||r.indexOf("macos")!==-1?e="apple":r.indexOf("arch")!==-1?e="arch":r.indexOf("cachy")!==-1?e="cachy":r.indexOf("centos")!==-1?e="centos":r.indexOf("coreos")!==-1?e="coreos":r.indexOf("debian")!==-1?e="debian":r.indexOf("deepin")!==-1?e="deepin":r.indexOf("elementary")!==-1?e="elementary":r.indexOf("endeavour")!==-1?e="endeavour":r.indexOf("fedora")!==-1?e="fedora":r.indexOf("gentoo")!==-1?e="gentoo":r.indexOf("mageia")!==-1?e="mageia":r.indexOf("mandriva")!==-1?e="mandriva":r.indexOf("manjaro")!==-1?e="manjaro":r.indexOf("mint")!==-1?e="mint":r.indexOf("mx")!==-1?e="mx":r.indexOf("openbsd")!==-1?e="openbsd":r.indexOf("freebsd")!==-1?e="freebsd":r.indexOf("opensuse")!==-1?e="opensuse":r.indexOf("pclinuxos")!==-1?e="pclinuxos":r.indexOf("puppy")!==-1?e="puppy":r.indexOf("popos")!==-1?e="popos":r.indexOf("raspbian")!==-1?e="raspbian":r.indexOf("reactos")!==-1?e="reactos":r.indexOf("redhat")!==-1?e="redhat":r.indexOf("slackware")!==-1?e="slackware":r.indexOf("sugar")!==-1?e="sugar":r.indexOf("steam")!==-1?e="steam":r.indexOf("suse")!==-1?e="suse":r.indexOf("mate")!==-1?e="ubuntu-mate":r.indexOf("lubuntu")!==-1?e="lubuntu":r.indexOf("xubuntu")!==-1?e="xubuntu":r.indexOf("ubuntu")!==-1?e="ubuntu":r.indexOf("solaris")!==-1?e="solaris":r.indexOf("tails")!==-1?e="tails":r.indexOf("feren")!==-1?e="ferenos":r.indexOf("robolinux")!==-1?e="robolinux":Kc&&r&&(e=r.toLowerCase().trim().replace(/\s+/g,"-")),e}function ple(){let r=xn.hostname;if(Kc||vn)try{r=sf("hostname -f 2>/dev/null",Re.execOptsLinux).toString().split(xn.EOL)[0]}catch{Re.noop()}if(wO||RO||LO)try{r=sf("hostname 2>/dev/null").toString().split(xn.EOL)[0]}catch{Re.noop()}if(Dn)try{r=sf("echo %COMPUTERNAME%.%USERDNSDOMAIN%",Re.execOptsWin).toString().replace(".%USERDNSDOMAIN%","").split(xn.EOL)[0]}catch{Re.noop()}return r}function dle(r){return new Promise(e=>{process.nextTick(()=>{let t={platform:Qn==="win32"?"Windows":Qn,distro:"unknown",release:"unknown",codename:"",kernel:xn.release(),arch:xn.arch(),hostname:xn.hostname(),fqdn:ple(),codepage:"",logofile:"",serial:"",build:"",servicepack:"",uefi:!1};if(Kc&&Be("cat /etc/*-release; cat /usr/lib/os-release; cat /etc/openwrt_release",function(n,s){let i={};s.toString().split(`
|
|
201
|
-
`).forEach(function(l){l.indexOf("=")!==-1&&(i[l.split("=")[0].trim().toUpperCase()]=l.split("=")[1].trim())}),t.distro=(i.DISTRIB_ID||i.NAME||"unknown").replace(/"/g,""),t.logofile=nf(t.distro);let a=(i.VERSION||"").replace(/"/g,""),c=(i.DISTRIB_CODENAME||i.VERSION_CODENAME||"").replace(/"/g,""),u=(i.PRETTY_NAME||"").replace(/"/g,"");u.indexOf(t.distro+" ")===0&&(a=u.replace(t.distro+" ","").trim()),a.indexOf("(")>=0&&(c=a.split("(")[1].replace(/[()]/g,"").trim(),a=a.split("(")[0].trim()),t.release=(a||i.DISTRIB_RELEASE||i.VERSION_ID||"unknown").replace(/"/g,""),t.codename=c,t.codepage=Re.getCodepage(),t.build=(i.BUILD_ID||"").replace(/"/g,"").trim(),hle().then(l=>{t.uefi=l,h6().then(f=>{t.serial=f.os,r&&r(t),e(t)})})}),(
|
|
198
|
+
`||t[i]==="\r"||t[i]==="'"||t[i]==="`"||t[i]==='"'||t[i].length>1||e&&t[i]==="("||e&&t[i]===")"||e&&t[i]==="@"||e&&t[i]===" "||e&&t[i]==="{"||e&&t[i]===";"||e&&t[i]==="}"||(n=n+t[i]);return n}function Kue(){let r="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",e=!0,t="";try{t.__proto__.replace=v1,t.__proto__.toLowerCase=D1,t.__proto__.toString=s6,t.__proto__.substr=o6,t.__proto__.substring=a6,t.__proto__.trim=c6,t.__proto__.startsWith=u6}catch{Object.setPrototypeOf(t,l0)}e=e||r.length!==62;let n=Date.now();if(typeof n=="number"&&n>16e11){let s=n%100+15;for(let u=0;u<s;u++){let l=Math.random()*61.99999999+1,f=parseInt(Math.floor(l).toString(),10),p=parseInt(l.toString().split(".")[0],10),d=Math.random()*61.99999999+1,m=parseInt(Math.floor(d).toString(),10),g=parseInt(d.toString().split(".")[0],10);e=e&&l!==d,e=e&&f===p&&m===g,t+=r[f-1]}e=e&&t.length===s;let i=Math.random()*s*.9999999999,o=t.substr(0,i)+" "+t.substr(i,2e3);try{o.__proto__.replace=v1}catch{Object.setPrototypeOf(o,l0)}let a=o.replace(/ /g,"");e=e&&t===a,i=Math.random()*s*.9999999999,o=t.substr(0,i)+"{"+t.substr(i,2e3),a=o.replace(/{/g,""),e=e&&t===a,i=Math.random()*s*.9999999999,o=t.substr(0,i)+"*"+t.substr(i,2e3),a=o.replace(/\*/g,""),e=e&&t===a,i=Math.random()*s*.9999999999,o=t.substr(0,i)+"$"+t.substr(i,2e3),a=o.replace(/\$/g,""),e=e&&t===a;let c=t.toLowerCase();e=e&&c.length===s&&c[s-1]&&!c[s];for(let u=0;u<s;u++){let l=t[u];try{l.__proto__.toLowerCase=D1}catch{Object.setPrototypeOf(t,l0)}let f=c?c[u]:"",p=l.toLowerCase();e=e&&p[0]===f&&p[0]&&!p[1]}}return!e}function Xue(r){return("00000000"+parseInt(r,16).toString(2)).substr(-8)}function Jue(r){let e=Jn.lstatSync,t=Jn.readdirSync,n=Eue.join;function s(u){return e(u).isDirectory()}function i(u){return e(u).isFile()}function o(u){return t(u).map(function(l){return n(u,l)}).filter(s)}function a(u){return t(u).map(function(l){return n(u,l)}).filter(i)}function c(u){try{return o(u).map(function(p){return c(p)}).reduce(function(p,d){return p.concat(d)},[]).concat(a(u))}catch{return[]}}return Jn.existsSync(r)?c(r):[]}function d6(r){Xn===null?Xn=r:r===void 0&&(r=Xn);let e={"0002":{type:"B",revision:"1.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0003":{type:"B",revision:"1.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0004":{type:"B",revision:"2.0",memory:256,manufacturer:"Sony UK",processor:"BCM2835"},"0005":{type:"B",revision:"2.0",memory:256,manufacturer:"Qisda",processor:"BCM2835"},"0006":{type:"B",revision:"2.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0007":{type:"A",revision:"2.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0008":{type:"A",revision:"2.0",memory:256,manufacturer:"Sony UK",processor:"BCM2835"},"0009":{type:"A",revision:"2.0",memory:256,manufacturer:"Qisda",processor:"BCM2835"},"000d":{type:"B",revision:"2.0",memory:512,manufacturer:"Egoman",processor:"BCM2835"},"000e":{type:"B",revision:"2.0",memory:512,manufacturer:"Sony UK",processor:"BCM2835"},"000f":{type:"B",revision:"2.0",memory:512,manufacturer:"Egoman",processor:"BCM2835"},"0010":{type:"B+",revision:"1.2",memory:512,manufacturer:"Sony UK",processor:"BCM2835"},"0011":{type:"CM1",revision:"1.0",memory:512,manufacturer:"Sony UK",processor:"BCM2835"},"0012":{type:"A+",revision:"1.1",memory:256,manufacturer:"Sony UK",processor:"BCM2835"},"0013":{type:"B+",revision:"1.2",memory:512,manufacturer:"Embest",processor:"BCM2835"},"0014":{type:"CM1",revision:"1.0",memory:512,manufacturer:"Embest",processor:"BCM2835"},"0015":{type:"A+",revision:"1.1",memory:256,manufacturer:"512MB Embest",processor:"BCM2835"}},t=["BCM2835","BCM2836","BCM2837","BCM2711","BCM2712"],n=["Sony UK","Egoman","Embest","Sony Japan","Embest","Stadium"],s={"00":"A","01":"B","02":"A+","03":"B+","04":"2B","05":"Alpha (early prototype)","06":"CM1","08":"3B","09":"Zero","0a":"CM3","0c":"Zero W","0d":"3B+","0e":"3A+","0f":"Internal use only",10:"CM3+",11:"4B",12:"Zero 2 W",13:"400",14:"CM4",15:"CM4S",16:"Internal use only",17:"5",18:"CM5",19:"500/500+","1a":"CM5 Lite"},i=Cs(r,"revision",":",!0),o=Cs(r,"model:",":",!0),a=Cs(r,"serial",":",!0),c={};if({}.hasOwnProperty.call(e,i))c={model:o,serial:a,revisionCode:i,memory:e[i].memory,manufacturer:e[i].manufacturer,processor:e[i].processor,type:e[i].type,revision:e[i].revision};else{let u=("00000000"+Cs(r,"revision",":",!0).toLowerCase()).substr(-8),l=parseInt(Xue(u.substr(2,1)).substr(5,3),2)||0,f=n[parseInt(u.substr(3,1),10)],p=t[parseInt(u.substr(4,1),10)],d=u.substr(5,2);c={model:o,serial:a,revisionCode:i,memory:256*Math.pow(2,l),manufacturer:f,processor:p,type:{}.hasOwnProperty.call(s,d)?s[d]:"",revision:"1."+u.substr(7,1)}}return c}function Que(r){if(Xn===null&&r!==void 0)Xn=r;else if(r===void 0&&Xn!==null)r=Xn;else try{r=Jn.readFileSync("/proc/cpuinfo",{encoding:"utf8"}).toString().split(`
|
|
199
|
+
`),Xn=r}catch{return!1}let e=d6(r);return e.type==="4B"||e.type==="CM4"||e.type==="CM4S"||e.type==="400"?"VideoCore VI":e.type==="5"||e.type==="500"?"VideoCore VII":"VideoCore IV"}function Zue(r){let e=r.map(function(s){return new Promise(function(i){let o=new Array(2);s.then(function(a){o[0]=a}).catch(function(a){o[1]=a}).then(function(){i(o)})})}),t=[],n=[];return Promise.all(e).then(function(s){return s.forEach(function(i){i[1]?(t.push(i[1]),n.push(null)):(t.push(null),n.push(i[0]))}),{errors:t,results:n}})}function ele(r){return function(){let e=Array.prototype.slice.call(arguments);return new Promise(function(t,n){e.push(function(s,i){s?n(s):t(i)}),r.apply(null,e)})}}function tle(r){return function(){let e=Array.prototype.slice.call(arguments);return new Promise(function(t){e.push(function(n,s){t(s)}),r.apply(null,e)})}}function rle(){let r="";if(b1)try{r=zc("uname -v",h0).toString()}catch{r=""}return r}function nle(r){let e=["array","dict","key","string","integer","date","real","data","boolean","arrayEmpty"],n=r.indexOf("<plist version"),s=r.length;for(;r[n]!==">"&&n<s;)n++;let i=0,o=!1,a=!1,c=!1,u=[{tagStart:"",tagEnd:"",tagContent:"",key:"",data:null}],l="",f=r[n];for(;n<s;)l=f,n+1<s&&(f=r[n+1]),l==="<"?(a=!1,f==="/"?c=!0:u[i].tagStart?(u[i].tagContent="",u[i].data||(u[i].data=u[i].tagStart==="array"?[]:{}),i++,u.push({tagStart:"",tagEnd:"",tagContent:"",key:null,data:null}),o=!0,a=!1):o||(o=!0)):l===">"?(u[i].tagStart==="true/"&&(o=!1,c=!0,u[i].tagStart="",u[i].tagEnd="/boolean",u[i].data=!0),u[i].tagStart==="false/"&&(o=!1,c=!0,u[i].tagStart="",u[i].tagEnd="/boolean",u[i].data=!1),u[i].tagStart==="array/"&&(o=!1,c=!0,u[i].tagStart="",u[i].tagEnd="/arrayEmpty",u[i].data=[]),a&&(a=!1),o&&(o=!1,a=!0,u[i].tagStart==="array"&&(u[i].data=[]),u[i].tagStart==="dict"&&(u[i].data={})),c&&(c=!1,u[i].tagEnd&&e.indexOf(u[i].tagEnd.substr(1))>=0&&(u[i].tagEnd==="/dict"||u[i].tagEnd==="/array"?(i>1&&u[i-2].tagStart==="array"&&u[i-2].data.push(u[i-1].data),i>1&&u[i-2].tagStart==="dict"&&(u[i-2].data[u[i-1].key]=u[i-1].data),i--,u.pop(),u[i].tagContent="",u[i].tagStart="",u[i].tagEnd=""):(u[i].tagEnd==="/key"&&u[i].tagContent?u[i].key=u[i].tagContent:(u[i].tagEnd==="/real"&&u[i].tagContent&&(u[i].data=parseFloat(u[i].tagContent)||0),u[i].tagEnd==="/integer"&&u[i].tagContent&&(u[i].data=parseInt(u[i].tagContent)||0),u[i].tagEnd==="/string"&&u[i].tagContent&&(u[i].data=u[i].tagContent||""),u[i].tagEnd==="/boolean"&&(u[i].data=u[i].tagContent||!1),u[i].tagEnd==="/arrayEmpty"&&(u[i].data=u[i].tagContent||[]),i>0&&u[i-1].tagStart==="array"&&u[i-1].data.push(u[i].data),i>0&&u[i-1].tagStart==="dict"&&(u[i-1].data[u[i].key]=u[i].data)),u[i].tagContent="",u[i].tagStart="",u[i].tagEnd="")),u[i].tagEnd="",o=!1,a=!1)):(o&&(u[i].tagStart+=l),c&&(u[i].tagEnd+=l),a&&(u[i].tagContent+=l)),n++;return u[0].data}function e6(r){return typeof r=="string"&&!isNaN(r)&&!isNaN(parseFloat(r))}function ile(r){let e=r.split(`
|
|
200
|
+
`);for(let n=0;n<e.length;n++){if(e[n].indexOf(" = ")>=0){let s=e[n].split(" = ");if(s[0]=s[0].trim(),s[0].startsWith('"')||(s[0]='"'+s[0]+'"'),s[1]=s[1].trim(),s[1].indexOf('"')===-1&&s[1].endsWith(";")){let i=s[1].substring(0,s[1].length-1);e6(i)||(s[1]=`"${i}";`)}if(s[1].indexOf('"')>=0&&s[1].endsWith(";")){let i=s[1].substring(0,s[1].length-1).replace(/"/g,"");e6(i)&&(s[1]=`${i};`)}e[n]=s.join(" : ")}e[n]=e[n].replace(/\(/g,"[").replace(/\)/g,"]").replace(/;/g,",").trim(),e[n].startsWith("}")&&e[n-1]&&e[n-1].endsWith(",")&&(e[n-1]=e[n-1].substring(0,e[n-1].length-1))}r=e.join("");let t={};try{t=JSON.parse(r)}catch{}return t}function sle(r,e){let t=0,n=r.split("."),s=e.split(".");return n[0]<s[0]?t=1:n[0]>s[0]?t=-1:n[0]===s[0]&&n.length>=2&&s.length>=2&&(n[1]<s[1]?t=1:n[1]>s[1]?t=-1:n[1]===s[1]&&(n.length>=3&&s.length>=3?n[2]<s[2]?t=1:n[2]>s[2]&&(t=-1):s.length>=3&&(t=1))),t}function ole(r){let t=[{key:"Mac15,12",name:"MacBook Air",size:"13-inch",processor:"M3",year:"2024",additional:""},{key:"Mac14,15",name:"MacBook Air",size:"15-inch",processor:"M2",year:"2024",additional:""},{key:"Mac14,2",name:"MacBook Air",size:"13-inch",processor:"M2",year:"2022",additional:""},{key:"MacBookAir10,1",name:"MacBook Air",size:"13-inch",processor:"M1",year:"2020",additional:""},{key:"MacBookAir9,1",name:"MacBook Air",size:"13-inch",processor:"",year:"2020",additional:""},{key:"MacBookAir8,2",name:"MacBook Air",size:"13-inch",processor:"",year:"2019",additional:""},{key:"MacBookAir8,1",name:"MacBook Air",size:"13-inch",processor:"",year:"2018",additional:""},{key:"MacBookAir7,2",name:"MacBook Air",size:"13-inch",processor:"",year:"2017",additional:""},{key:"MacBookAir7,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBookAir7,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBookAir6,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Early 2014",additional:""},{key:"MacBookAir6,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Early 2014",additional:""},{key:"MacBookAir6,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2013",additional:""},{key:"MacBookAir6,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Mid 2013",additional:""},{key:"MacBookAir5,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookAir5,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookAir4,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2011",additional:""},{key:"MacBookAir4,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Mid 2011",additional:""},{key:"MacBookAir3,2",name:"MacBook Air",size:"13-inch",processor:"",year:"Late 2010",additional:""},{key:"MacBookAir3,1",name:"MacBook Air",size:"11-inch",processor:"",year:"Late 2010",additional:""},{key:"MacBookAir2,1",name:"MacBook Air",size:"13-inch",processor:"",year:"Mid 2009",additional:""},{key:"Mac16,1",name:"MacBook Pro",size:"14-inch",processor:"M4",year:"2024",additional:""},{key:"Mac16,6",name:"MacBook Pro",size:"14-inch",processor:"M4 Pro",year:"2024",additional:""},{key:"Mac16,8",name:"MacBook Pro",size:"14-inch",processor:"M4 Max",year:"2024",additional:""},{key:"Mac16,5",name:"MacBook Pro",size:"16-inch",processor:"M4 Pro",year:"2024",additional:""},{key:"Mac16,6",name:"MacBook Pro",size:"16-inch",processor:"M4 Max",year:"2024",additional:""},{key:"Mac15,3",name:"MacBook Pro",size:"14-inch",processor:"M3",year:"Nov 2023",additional:""},{key:"Mac15,6",name:"MacBook Pro",size:"14-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,8",name:"MacBook Pro",size:"14-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,10",name:"MacBook Pro",size:"14-inch",processor:"M3 Max",year:"Nov 2023",additional:""},{key:"Mac15,7",name:"MacBook Pro",size:"16-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,9",name:"MacBook Pro",size:"16-inch",processor:"M3 Pro",year:"Nov 2023",additional:""},{key:"Mac15,11",name:"MacBook Pro",size:"16-inch",processor:"M3 Max",year:"Nov 2023",additional:""},{key:"Mac14,5",name:"MacBook Pro",size:"14-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,9",name:"MacBook Pro",size:"14-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,6",name:"MacBook Pro",size:"16-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,10",name:"MacBook Pro",size:"16-inch",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,7",name:"MacBook Pro",size:"13-inch",processor:"M2",year:"2022",additional:""},{key:"MacBookPro18,3",name:"MacBook Pro",size:"14-inch",processor:"M1 Pro",year:"2021",additional:""},{key:"MacBookPro18,4",name:"MacBook Pro",size:"14-inch",processor:"M1 Max",year:"2021",additional:""},{key:"MacBookPro18,1",name:"MacBook Pro",size:"16-inch",processor:"M1 Pro",year:"2021",additional:""},{key:"MacBookPro18,2",name:"MacBook Pro",size:"16-inch",processor:"M1 Max",year:"2021",additional:""},{key:"MacBookPro17,1",name:"MacBook Pro",size:"13-inch",processor:"M1",year:"2020",additional:""},{key:"MacBookPro16,3",name:"MacBook Pro",size:"13-inch",processor:"",year:"2020",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro16,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2020",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro16,1",name:"MacBook Pro",size:"16-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro16,4",name:"MacBook Pro",size:"16-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"2019",additional:""},{key:"MacBookPro15,4",name:"MacBook Pro",size:"13-inch",processor:"",year:"2019",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro15,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"2018",additional:""},{key:"MacBookPro15,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2018",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro14,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"2017",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro14,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2017",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro14,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"2017",additional:""},{key:"MacBookPro13,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"2016",additional:"Two Thunderbolt 3 ports"},{key:"MacBookPro13,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"2016",additional:"Four Thunderbolt 3 ports"},{key:"MacBookPro13,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"2016",additional:""},{key:"MacBookPro11,4",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2015",additional:""},{key:"MacBookPro11,5",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2015",additional:""},{key:"MacBookPro12,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBookPro11,2",name:"MacBook Pro",size:"15-inch",processor:"",year:"Late 2013",additional:""},{key:"MacBookPro11,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"Late 2013",additional:""},{key:"MacBookPro11,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Late 2013",additional:""},{key:"MacBookPro10,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookPro10,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"Late 2012",additional:""},{key:"MacBookPro9,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookPro9,2",name:"MacBook Pro",size:"13-inch",processor:"",year:"Mid 2012",additional:""},{key:"MacBookPro8,3",name:"MacBook Pro",size:"17-inch",processor:"",year:"Early 2011",additional:""},{key:"MacBookPro8,2",name:"MacBook Pro",size:"15-inch",processor:"",year:"Early 2011",additional:""},{key:"MacBookPro8,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Early 2011",additional:""},{key:"MacBookPro6,1",name:"MacBook Pro",size:"17-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBookPro6,2",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBookPro7,1",name:"MacBook Pro",size:"13-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBookPro5,2",name:"MacBook Pro",size:"17-inch",processor:"",year:"Early 2009",additional:""},{key:"MacBookPro5,3",name:"MacBook Pro",size:"15-inch",processor:"",year:"Mid 2009",additional:""},{key:"MacBookPro5,5",name:"MacBook Pro",size:"13-inch",processor:"",year:"Mid 2009",additional:""},{key:"MacBookPro5,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Late 2008",additional:""},{key:"MacBookPro4,1",name:"MacBook Pro",size:"15-inch",processor:"",year:"Early 2008",additional:""},{key:"MacBook10,1",name:"MacBook",size:"12-inch",processor:"",year:"2017",additional:""},{key:"MacBook9,1",name:"MacBook",size:"12-inch",processor:"",year:"Early 2016",additional:""},{key:"MacBook8,1",name:"MacBook",size:"12-inch",processor:"",year:"Early 2015",additional:""},{key:"MacBook7,1",name:"MacBook",size:"13-inch",processor:"",year:"Mid 2010",additional:""},{key:"MacBook6,1",name:"MacBook",size:"13-inch",processor:"",year:"Late 2009",additional:""},{key:"MacBook5,2",name:"MacBook",size:"13-inch",processor:"",year:"Early 2009",additional:""},{key:"Mac14,13",name:"Mac Studio",size:"",processor:"M2 Max",year:"2023",additional:""},{key:"Mac14,14",name:"Mac Studio",size:"",processor:"M2 Ultra",year:"2023",additional:""},{key:"Mac15,14",name:"Mac Studio",size:"",processor:"M3 Ultra",year:"2025",additional:""},{key:"Mac16,9",name:"Mac Studio",size:"",processor:"M4 Max",year:"2025",additional:""},{key:"Mac13,1",name:"Mac Studio",size:"",processor:"M1 Max",year:"2022",additional:""},{key:"Mac13,2",name:"Mac Studio",size:"",processor:"M1 Ultra",year:"2022",additional:""},{key:"Mac16,11",name:"Mac mini",size:"",processor:"M4 Pro",year:"2024",additional:""},{key:"Mac16,10",name:"Mac mini",size:"",processor:"M4",year:"2024",additional:""},{key:"Mac14,3",name:"Mac mini",size:"",processor:"M2",year:"2023",additional:""},{key:"Mac14,12",name:"Mac mini",size:"",processor:"M2 Pro",year:"2023",additional:""},{key:"Macmini9,1",name:"Mac mini",size:"",processor:"M1",year:"2020",additional:""},{key:"Macmini8,1",name:"Mac mini",size:"",processor:"",year:"Late 2018",additional:""},{key:"Macmini7,1",name:"Mac mini",size:"",processor:"",year:"Late 2014",additional:""},{key:"Macmini6,1",name:"Mac mini",size:"",processor:"",year:"Late 2012",additional:""},{key:"Macmini6,2",name:"Mac mini",size:"",processor:"",year:"Late 2012",additional:""},{key:"Macmini5,1",name:"Mac mini",size:"",processor:"",year:"Mid 2011",additional:""},{key:"Macmini5,2",name:"Mac mini",size:"",processor:"",year:"Mid 2011",additional:""},{key:"Macmini4,1",name:"Mac mini",size:"",processor:"",year:"Mid 2010",additional:""},{key:"Macmini3,1",name:"Mac mini",size:"",processor:"",year:"Early 2009",additional:""},{key:"Mac16,3",name:"iMac",size:"24-inch",processor:"M4",year:"2024",additional:"Four ports"},{key:"Mac16,2",name:"iMac",size:"24-inch",processor:"M4",year:"2024",additional:"Two ports"},{key:"Mac15,5",name:"iMac",size:"24-inch",processor:"M3",year:"2023",additional:"Four ports"},{key:"Mac15,4",name:"iMac",size:"24-inch",processor:"M3",year:"2023",additional:"Two ports"},{key:"iMac21,1",name:"iMac",size:"24-inch",processor:"M1",year:"2021",additional:""},{key:"iMac21,2",name:"iMac",size:"24-inch",processor:"M1",year:"2021",additional:""},{key:"iMac20,1",name:"iMac",size:"27-inch",processor:"",year:"2020",additional:"Retina 5K"},{key:"iMac20,2",name:"iMac",size:"27-inch",processor:"",year:"2020",additional:"Retina 5K"},{key:"iMac19,1",name:"iMac",size:"27-inch",processor:"",year:"2019",additional:"Retina 5K"},{key:"iMac19,2",name:"iMac",size:"21.5-inch",processor:"",year:"2019",additional:"Retina 4K"},{key:"iMacPro1,1",name:"iMac Pro",size:"",processor:"",year:"2017",additional:""},{key:"iMac18,3",name:"iMac",size:"27-inch",processor:"",year:"2017",additional:"Retina 5K"},{key:"iMac18,2",name:"iMac",size:"21.5-inch",processor:"",year:"2017",additional:"Retina 4K"},{key:"iMac18,1",name:"iMac",size:"21.5-inch",processor:"",year:"2017",additional:""},{key:"iMac17,1",name:"iMac",size:"27-inch",processor:"",year:"Late 2015",additional:"Retina 5K"},{key:"iMac16,2",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2015",additional:"Retina 4K"},{key:"iMac16,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2015",additional:""},{key:"iMac15,1",name:"iMac",size:"27-inch",processor:"",year:"Late 2014",additional:"Retina 5K"},{key:"iMac14,4",name:"iMac",size:"21.5-inch",processor:"",year:"Mid 2014",additional:""},{key:"iMac14,2",name:"iMac",size:"27-inch",processor:"",year:"Late 2013",additional:""},{key:"iMac14,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2013",additional:""},{key:"iMac13,2",name:"iMac",size:"27-inch",processor:"",year:"Late 2012",additional:""},{key:"iMac13,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2012",additional:""},{key:"iMac12,2",name:"iMac",size:"27-inch",processor:"",year:"Mid 2011",additional:""},{key:"iMac12,1",name:"iMac",size:"21.5-inch",processor:"",year:"Mid 2011",additional:""},{key:"iMac11,3",name:"iMac",size:"27-inch",processor:"",year:"Mid 2010",additional:""},{key:"iMac11,2",name:"iMac",size:"21.5-inch",processor:"",year:"Mid 2010",additional:""},{key:"iMac10,1",name:"iMac",size:"21.5-inch",processor:"",year:"Late 2009",additional:""},{key:"iMac9,1",name:"iMac",size:"20-inch",processor:"",year:"Early 2009",additional:""},{key:"Mac14,8",name:"Mac Pro",size:"",processor:"",year:"2023",additional:""},{key:"Mac14,8",name:"Mac Pro",size:"",processor:"",year:"2023",additional:"Rack"},{key:"MacPro7,1",name:"Mac Pro",size:"",processor:"",year:"2019",additional:""},{key:"MacPro7,1",name:"Mac Pro",size:"",processor:"",year:"2019",additional:"Rack"},{key:"MacPro6,1",name:"Mac Pro",size:"",processor:"",year:"Late 2013",additional:""},{key:"MacPro5,1",name:"Mac Pro",size:"",processor:"",year:"Mid 2012",additional:""},{key:"MacPro5,1",name:"Mac Pro Server",size:"",processor:"",year:"Mid 2012",additional:"Server"},{key:"MacPro5,1",name:"Mac Pro",size:"",processor:"",year:"Mid 2010",additional:""},{key:"MacPro5,1",name:"Mac Pro Server",size:"",processor:"",year:"Mid 2010",additional:"Server"},{key:"MacPro4,1",name:"Mac Pro",size:"",processor:"",year:"Early 2009",additional:""}].filter(s=>s.key===r);if(t.length===0)return{key:r,model:"Apple",version:"Unknown"};let n=[];return t[0].size&&n.push(t[0].size),t[0].processor&&n.push(t[0].processor),t[0].year&&n.push(t[0].year),t[0].additional&&n.push(t[0].additional),{key:r,model:t[0].name,version:t[0].name+" ("+n.join(", ")+")"}}function ale(r,e=5e3){let t=r.startsWith("https:")||r.indexOf(":443/")>0||r.indexOf(":8443/")>0?W("https"):W("http"),n=Date.now();return new Promise(s=>{let i=t.get(r,function(o){o.on("data",()=>{}),o.on("end",()=>{s({url:r,statusCode:o.statusCode,message:o.statusMessage,time:Date.now()-n})})}).on("error",function(o){s({url:r,statusCode:404,message:o.message,time:Date.now()-n})}).setTimeout(e,()=>{i.destroy(),s({url:r,statusCode:408,message:"Request Timeout",time:Date.now()-n})})})}function cle(r){return r.replace(/To Be Filled By O.E.M./g,"")}function ule(){}Me.toInt=Tue;Me.splitByNumber=Aue;Me.execOptsWin=rf;Me.execOptsLinux=h0;Me.getCodepage=Vue;Me.execWin=que;Me.isFunction=Oue;Me.unique=Cue;Me.sortByKey=vue;Me.cores=Due;Me.getValue=Cs;Me.decodeEscapeSequence=xue;Me.parseDateTime=Iue;Me.parseHead=wue;Me.findObjectByKey=Rue;Me.getWmic=f6;Me.wmic=Mue;Me.darwinXcodeExists=Hue;Me.getVboxmanage=Nue;Me.powerShell=p6;Me.powerShellStart=Bue;Me.powerShellRelease=Uue;Me.execSafe=Fue;Me.nanoSeconds=$ue;Me.countUniqueLines=Wue;Me.countLines=Yue;Me.noop=ule;Me.isRaspberry=kue;Me.isRaspbian=jue;Me.sanitizeShellString=zue;Me.isPrototypePolluted=Kue;Me.decodePiCpuinfo=d6;Me.getRpiGpu=Que;Me.promiseAll=Zue;Me.promisify=ele;Me.promisifySave=tle;Me.smartMonToolsInstalled=Gue;Me.linuxVersion=rle;Me.plistParser=nle;Me.plistReader=ile;Me.stringObj=l0;Me.stringReplace=v1;Me.stringToLower=D1;Me.stringToString=s6;Me.stringSubstr=o6;Me.stringSubstring=a6;Me.stringTrim=c6;Me.stringStartWith=u6;Me.mathMin=l6;Me.WINDIR=P1;Me.getFilesInPath=Jue;Me.semverCompare=sle;Me.getAppleModel=ole;Me.checkWebsite=ale;Me.cleanString=cle;Me.getPowershell=Lue});var M1=x(Xc=>{"use strict";var xn=W("os"),Cn=W("fs"),Re=kt(),Be=W("child_process").exec,sf=W("child_process").execSync,Qn=process.platform,Kc=Qn==="linux"||Qn==="android",vn=Qn==="darwin",Dn=Qn==="win32",w1=Qn==="freebsd",R1=Qn==="openbsd",L1=Qn==="netbsd",lle=Qn==="sunos";function fle(){let r=new Date().toString().split(" "),e="";try{e=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{e=r.length>=7?r.slice(6).join(" ").replace(/\(/g,"").replace(/\)/g,""):""}let t={current:Date.now(),uptime:xn.uptime(),timezone:r.length>=7?r[5]:"",timezoneName:e};if(vn||Kc)try{let s=sf("date +%Z && date +%z && ls -l /etc/localtime 2>/dev/null",Re.execOptsLinux).toString().split(xn.EOL);s.length>3&&!s[0]&&s.shift();let i=s[0]||"";return(i.startsWith("+")||i.startsWith("-"))&&(i="GMT"),{current:Date.now(),uptime:xn.uptime(),timezone:s[1]?i+s[1]:i,timezoneName:s[2]&&s[2].indexOf("/zoneinfo/")>0&&s[2].split("/zoneinfo/")[1]||""}}catch{Re.noop()}return t}Xc.time=fle;function nf(r){r=r||"",r=r.toLowerCase();let e=Qn;return Dn?e="windows":r.indexOf("mac os")!==-1||r.indexOf("macos")!==-1?e="apple":r.indexOf("arch")!==-1?e="arch":r.indexOf("cachy")!==-1?e="cachy":r.indexOf("centos")!==-1?e="centos":r.indexOf("coreos")!==-1?e="coreos":r.indexOf("debian")!==-1?e="debian":r.indexOf("deepin")!==-1?e="deepin":r.indexOf("elementary")!==-1?e="elementary":r.indexOf("endeavour")!==-1?e="endeavour":r.indexOf("fedora")!==-1?e="fedora":r.indexOf("gentoo")!==-1?e="gentoo":r.indexOf("mageia")!==-1?e="mageia":r.indexOf("mandriva")!==-1?e="mandriva":r.indexOf("manjaro")!==-1?e="manjaro":r.indexOf("mint")!==-1?e="mint":r.indexOf("mx")!==-1?e="mx":r.indexOf("openbsd")!==-1?e="openbsd":r.indexOf("freebsd")!==-1?e="freebsd":r.indexOf("opensuse")!==-1?e="opensuse":r.indexOf("pclinuxos")!==-1?e="pclinuxos":r.indexOf("puppy")!==-1?e="puppy":r.indexOf("popos")!==-1?e="popos":r.indexOf("raspbian")!==-1?e="raspbian":r.indexOf("reactos")!==-1?e="reactos":r.indexOf("redhat")!==-1?e="redhat":r.indexOf("slackware")!==-1?e="slackware":r.indexOf("sugar")!==-1?e="sugar":r.indexOf("steam")!==-1?e="steam":r.indexOf("suse")!==-1?e="suse":r.indexOf("mate")!==-1?e="ubuntu-mate":r.indexOf("lubuntu")!==-1?e="lubuntu":r.indexOf("xubuntu")!==-1?e="xubuntu":r.indexOf("ubuntu")!==-1?e="ubuntu":r.indexOf("solaris")!==-1?e="solaris":r.indexOf("tails")!==-1?e="tails":r.indexOf("feren")!==-1?e="ferenos":r.indexOf("robolinux")!==-1?e="robolinux":Kc&&r&&(e=r.toLowerCase().trim().replace(/\s+/g,"-")),e}function ple(){let r=xn.hostname;if(Kc||vn)try{r=sf("hostname -f 2>/dev/null",Re.execOptsLinux).toString().split(xn.EOL)[0]}catch{Re.noop()}if(w1||R1||L1)try{r=sf("hostname 2>/dev/null").toString().split(xn.EOL)[0]}catch{Re.noop()}if(Dn)try{r=sf("echo %COMPUTERNAME%.%USERDNSDOMAIN%",Re.execOptsWin).toString().replace(".%USERDNSDOMAIN%","").split(xn.EOL)[0]}catch{Re.noop()}return r}function dle(r){return new Promise(e=>{process.nextTick(()=>{let t={platform:Qn==="win32"?"Windows":Qn,distro:"unknown",release:"unknown",codename:"",kernel:xn.release(),arch:xn.arch(),hostname:xn.hostname(),fqdn:ple(),codepage:"",logofile:"",serial:"",build:"",servicepack:"",uefi:!1};if(Kc&&Be("cat /etc/*-release; cat /usr/lib/os-release; cat /etc/openwrt_release",function(n,s){let i={};s.toString().split(`
|
|
201
|
+
`).forEach(function(l){l.indexOf("=")!==-1&&(i[l.split("=")[0].trim().toUpperCase()]=l.split("=")[1].trim())}),t.distro=(i.DISTRIB_ID||i.NAME||"unknown").replace(/"/g,""),t.logofile=nf(t.distro);let a=(i.VERSION||"").replace(/"/g,""),c=(i.DISTRIB_CODENAME||i.VERSION_CODENAME||"").replace(/"/g,""),u=(i.PRETTY_NAME||"").replace(/"/g,"");u.indexOf(t.distro+" ")===0&&(a=u.replace(t.distro+" ","").trim()),a.indexOf("(")>=0&&(c=a.split("(")[1].replace(/[()]/g,"").trim(),a=a.split("(")[0].trim()),t.release=(a||i.DISTRIB_RELEASE||i.VERSION_ID||"unknown").replace(/"/g,""),t.codename=c,t.codepage=Re.getCodepage(),t.build=(i.BUILD_ID||"").replace(/"/g,"").trim(),hle().then(l=>{t.uefi=l,h6().then(f=>{t.serial=f.os,r&&r(t),e(t)})})}),(w1||R1||L1)&&Be("sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml",function(n,s){let i=s.toString().split(`
|
|
202
202
|
`),o=Re.getValue(i,"kern.ostype"),a=nf(o),c=Re.getValue(i,"kern.osrelease").split("-")[0],u=Re.getValue(i,"kern.uuid"),l=Re.getValue(i,"machdep.bootmethod"),f=s.toString().indexOf("<type>efi</type>")>=0,p=l?l.toLowerCase().indexOf("uefi")>=0:f||null;t.distro=o||t.distro,t.logofile=a||t.logofile,t.release=c||t.release,t.serial=u||t.serial,t.codename="",t.codepage=Re.getCodepage(),t.uefi=p||null,r&&r(t),e(t)}),vn&&Be("sw_vers; sysctl kern.ostype kern.osrelease kern.osrevision kern.uuid",function(n,s){let i=s.toString().split(`
|
|
203
203
|
`);t.serial=Re.getValue(i,"kern.uuid"),t.distro=Re.getValue(i,"ProductName"),t.release=(Re.getValue(i,"ProductVersion",":",!0,!0)+" "+Re.getValue(i,"ProductVersionExtra",":",!0,!0)).trim(),t.build=Re.getValue(i,"BuildVersion"),t.logofile=nf(t.distro),t.codename="macOS",t.codename=t.release.indexOf("10.4")>-1?"OS X Tiger":t.codename,t.codename=t.release.indexOf("10.5")>-1?"OS X Leopard":t.codename,t.codename=t.release.indexOf("10.6")>-1?"OS X Snow Leopard":t.codename,t.codename=t.release.indexOf("10.7")>-1?"OS X Lion":t.codename,t.codename=t.release.indexOf("10.8")>-1?"OS X Mountain Lion":t.codename,t.codename=t.release.indexOf("10.9")>-1?"OS X Mavericks":t.codename,t.codename=t.release.indexOf("10.10")>-1?"OS X Yosemite":t.codename,t.codename=t.release.indexOf("10.11")>-1?"OS X El Capitan":t.codename,t.codename=t.release.indexOf("10.12")>-1?"Sierra":t.codename,t.codename=t.release.indexOf("10.13")>-1?"High Sierra":t.codename,t.codename=t.release.indexOf("10.14")>-1?"Mojave":t.codename,t.codename=t.release.indexOf("10.15")>-1?"Catalina":t.codename,t.codename=t.release.startsWith("11.")?"Big Sur":t.codename,t.codename=t.release.startsWith("12.")?"Monterey":t.codename,t.codename=t.release.startsWith("13.")?"Ventura":t.codename,t.codename=t.release.startsWith("14.")?"Sonoma":t.codename,t.codename=t.release.startsWith("15.")?"Sequoia":t.codename,t.codename=t.release.startsWith("16.")?"Tahoe":t.codename,t.codename=t.release.startsWith("26.")?"Tahoe":t.codename,t.uefi=!0,t.codepage=Re.getCodepage(),r&&r(t),e(t)}),lle&&(t.release=t.kernel,Be("uname -o",function(n,s){let i=s.toString().split(`
|
|
204
204
|
`);t.distro=i[0],t.logofile=nf(t.distro),r&&r(t),e(t)})),Dn){t.logofile=nf(),t.release=t.kernel;try{let n=[];n.push(Re.powerShell("Get-CimInstance Win32_OperatingSystem | select Caption,SerialNumber,BuildNumber,ServicePackMajorVersion,ServicePackMinorVersion | fl")),n.push(Re.powerShell("(Get-CimInstance Win32_ComputerSystem).HypervisorPresent")),n.push(Re.powerShell("Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SystemInformation]::TerminalServerSession")),Re.promiseAll(n).then(s=>{let i=s.results[0]?s.results[0].toString().split(`\r
|
|
@@ -256,10 +256,10 @@ ${v}${A}`),I=new Error(`Command failed: ${k}${ee}`),I.code=F<0?g(F):F}return I.s
|
|
|
256
256
|
cat /etc/machine-id 2> /dev/null; echo;
|
|
257
257
|
echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,function(i,o){let a=o.toString().split(`
|
|
258
258
|
`);if(t.os=Re.getValue(a,"os").toLowerCase(),t.hardware=Re.getValue(a,"hardware").toLowerCase(),!t.hardware){let c=Cn.readFileSync("/proc/cpuinfo",{encoding:"utf8"}).toString().split(`
|
|
259
|
-
`),u=Re.getValue(c,"serial");t.hardware=u||""}r&&r(t),e(t)}),(
|
|
259
|
+
`),u=Re.getValue(c,"serial");t.hardware=u||""}r&&r(t),e(t)}),(w1||R1||L1)&&Be("sysctl -i kern.hostid kern.hostuuid",function(s,i){let o=i.toString().split(`
|
|
260
260
|
`);t.hardware=Re.getValue(o,"kern.hostid",":").toLowerCase(),t.os=Re.getValue(o,"kern.hostuuid",":").toLowerCase(),t.os.indexOf("unknown")>=0&&(t.os=""),t.hardware.indexOf("unknown")>=0&&(t.hardware=""),r&&r(t),e(t)}),Dn){let s="%windir%\\System32";process.arch==="ia32"&&Object.prototype.hasOwnProperty.call(process.env,"PROCESSOR_ARCHITEW6432")&&(s="%windir%\\sysnative\\cmd.exe /c %windir%\\System32"),Re.powerShell("Get-CimInstance Win32_ComputerSystemProduct | select UUID | fl").then(i=>{let o=i.split(`\r
|
|
261
261
|
`);t.hardware=Re.getValue(o,"uuid",":").toLowerCase(),Be(`${s}\\reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography" /v MachineGuid`,Re.execOptsWin,function(a,c){n=c.toString().split(`
|
|
262
|
-
\r`)[0].split("REG_SZ"),t.os=n.length>1?n[1].replace(/\r+|\n+|\s+/ig,"").toLowerCase():"",r&&r(t),e(t)})})}})})}Xc.uuid=h6});var g6=x(of=>{"use strict";var
|
|
262
|
+
\r`)[0].split("REG_SZ"),t.os=n.length>1?n[1].replace(/\r+|\n+|\s+/ig,"").toLowerCase():"",r&&r(t),e(t)})})}})})}Xc.uuid=h6});var g6=x(of=>{"use strict";var N1=W("fs"),ra=W("os"),te=kt(),{uuid:_Oe}=M1(),eu=W("child_process").exec,ta=W("child_process").execSync,m0=te.promisify(W("child_process").exec),vs=process.platform,g0=vs==="linux"||vs==="android",E0=vs==="darwin",S0=vs==="win32",Jc=vs==="freebsd",Qc=vs==="openbsd",Zc=vs==="netbsd",_0=vs==="sunos";function _le(r){return new Promise(e=>{process.nextTick(()=>{let t={manufacturer:"",model:"Computer",version:"",serial:"-",uuid:"-",sku:"-",virtual:!1};if((g0||Jc||Qc||Zc)&&eu("export LC_ALL=C; dmidecode -t system 2>/dev/null; unset LC_ALL",function(n,s){let i=s.toString().split(`
|
|
263
263
|
`);t.manufacturer=Ke(te.getValue(i,"manufacturer")),t.model=Ke(te.getValue(i,"product name")),t.version=Ke(te.getValue(i,"version")),t.serial=Ke(te.getValue(i,"serial number")),t.uuid=Ke(te.getValue(i,"uuid")).toLowerCase(),t.sku=Ke(te.getValue(i,"sku number"));let o=`echo -n "product_name: "; cat /sys/devices/virtual/dmi/id/product_name 2>/dev/null; echo;
|
|
264
264
|
echo -n "product_serial: "; cat /sys/devices/virtual/dmi/id/product_serial 2>/dev/null; echo;
|
|
265
265
|
echo -n "product_uuid: "; cat /sys/devices/virtual/dmi/id/product_uuid 2>/dev/null; echo;
|
|
@@ -267,8 +267,8 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
|
|
|
267
267
|
echo -n "sys_vendor: "; cat /sys/devices/virtual/dmi/id/sys_vendor 2>/dev/null; echo;`;try{i=ta(o,te.execOptsLinux).toString().split(`
|
|
268
268
|
`),t.manufacturer=Ke(t.manufacturer===""?te.getValue(i,"sys_vendor"):t.manufacturer),t.model=Ke(t.model===""?te.getValue(i,"product_name"):t.model),t.version=Ke(t.version===""?te.getValue(i,"product_version"):t.version),t.serial=Ke(t.serial===""?te.getValue(i,"product_serial"):t.serial),t.uuid=Ke(t.uuid===""?te.getValue(i,"product_uuid").toLowerCase():t.uuid)}catch{te.noop()}if(t.serial||(t.serial="-"),t.manufacturer||(t.manufacturer=""),t.model||(t.model="Computer"),t.version||(t.version=""),t.sku||(t.sku="-"),t.model.toLowerCase()==="virtualbox"||t.model.toLowerCase()==="kvm"||t.model.toLowerCase()==="virtual machine"||t.model.toLowerCase()==="bochs"||t.model.toLowerCase().startsWith("vmware")||t.model.toLowerCase().startsWith("droplet"))switch(t.virtual=!0,t.model.toLowerCase()){case"virtualbox":t.virtualHost="VirtualBox";break;case"vmware":t.virtualHost="VMware";break;case"kvm":t.virtualHost="KVM";break;case"bochs":t.virtualHost="bochs";break}if(t.manufacturer.toLowerCase().startsWith("vmware")||t.manufacturer.toLowerCase()==="xen")switch(t.virtual=!0,t.manufacturer.toLowerCase()){case"vmware":t.virtualHost="VMware";break;case"xen":t.virtualHost="Xen";break}if(!t.virtual)try{let a=ta("ls -1 /dev/disk/by-id/ 2>/dev/null; pciconf -lv 2>/dev/null",te.execOptsLinux).toString();(a.indexOf("_QEMU_")>=0||a.indexOf("QEMU ")>=0)&&(t.virtual=!0,t.virtualHost="QEMU"),a.indexOf("_VBOX_")>=0&&(t.virtual=!0,t.virtualHost="VirtualBox")}catch{te.noop()}if(Jc||Qc||Zc)try{let a=ta("sysctl -i kern.hostuuid kern.hostid hw.model",te.execOptsLinux).toString().split(`
|
|
269
269
|
`);t.uuid||(t.uuid=te.getValue(a,"kern.hostuuid",":").toLowerCase()),(!t.serial||t.serial==="-")&&(t.serial=te.getValue(a,"kern.hostid",":").toLowerCase()),(!t.model||t.model==="Computer")&&(t.model=te.getValue(a,"hw.model",":").trim())}catch{te.noop()}if(!t.virtual&&(ra.release().toLowerCase().indexOf("microsoft")>=0||ra.release().toLowerCase().endsWith("wsl2"))){let a=parseFloat(ra.release().toLowerCase());t.virtual=!0,t.manufacturer="Microsoft",t.model="WSL",t.version=a<4.19?"1":"2"}if((Jc||Qc||Zc)&&!t.virtualHost)try{let c=ta("dmidecode -t 4",te.execOptsLinux).toString().split(`
|
|
270
|
-
`);switch(te.getValue(c,"manufacturer",":",!0).toLowerCase()){case"virtualbox":t.virtualHost="VirtualBox";break;case"vmware":t.virtualHost="VMware";break;case"kvm":t.virtualHost="KVM";break;case"bochs":t.virtualHost="bochs";break}}catch{te.noop()}(
|
|
271
|
-
`).length>0&&(t.model==="Computer"&&(t.model="Virtual machine"),t.virtual=!0,a.toString().toLowerCase().indexOf("vmware")>=0&&!t.virtualHost&&(t.virtualHost="VMware"),a.toString().toLowerCase().indexOf("qemu")>=0&&!t.virtualHost&&(t.virtualHost="QEMU"),a.toString().toLowerCase().indexOf("xen")>=0&&!t.virtualHost&&(t.virtualHost="Xen"),a.toString().toLowerCase().indexOf("kvm")>=0&&!t.virtualHost&&(t.virtualHost="KVM"))}catch{te.noop()}t.manufacturer===""&&t.model==="Computer"&&t.version===""?
|
|
270
|
+
`);switch(te.getValue(c,"manufacturer",":",!0).toLowerCase()){case"virtualbox":t.virtualHost="VirtualBox";break;case"vmware":t.virtualHost="VMware";break;case"kvm":t.virtualHost="KVM";break;case"bochs":t.virtualHost="bochs";break}}catch{te.noop()}(N1.existsSync("/.dockerenv")||N1.existsSync("/.dockerinit"))&&(t.model="Docker Container");try{let a=ta('dmesg 2>/dev/null | grep -iE "virtual|hypervisor" | grep -iE "vmware|qemu|kvm|xen" | grep -viE "Nested Virtualization|/virtual/"');a.toString().split(`
|
|
271
|
+
`).length>0&&(t.model==="Computer"&&(t.model="Virtual machine"),t.virtual=!0,a.toString().toLowerCase().indexOf("vmware")>=0&&!t.virtualHost&&(t.virtualHost="VMware"),a.toString().toLowerCase().indexOf("qemu")>=0&&!t.virtualHost&&(t.virtualHost="QEMU"),a.toString().toLowerCase().indexOf("xen")>=0&&!t.virtualHost&&(t.virtualHost="Xen"),a.toString().toLowerCase().indexOf("kvm")>=0&&!t.virtualHost&&(t.virtualHost="KVM"))}catch{te.noop()}t.manufacturer===""&&t.model==="Computer"&&t.version===""?N1.readFile("/proc/cpuinfo",function(a,c){if(!a){let u=c.toString().split(`
|
|
272
272
|
`);t.model=te.getValue(u,"hardware",":",!0).toUpperCase(),t.version=te.getValue(u,"revision",":",!0).toLowerCase(),t.serial=te.getValue(u,"serial",":",!0);let l=te.getValue(u,"model:",":",!0);if(te.isRaspberry(u)){let f=te.decodePiCpuinfo(u);t.model=f.model,t.version=f.revisionCode,t.manufacturer="Raspberry Pi Foundation",t.raspberry={manufacturer:f.manufacturer,processor:f.processor,type:f.type,revision:f.revision}}}r&&r(t),e(t)}):(r&&r(t),e(t))}),E0&&eu("ioreg -c IOPlatformExpertDevice -d 2",function(n,s){if(!n){let i=s.toString().replace(/[<>"]/g,"").split(`
|
|
273
273
|
`),o=te.getAppleModel(te.getValue(i,"model","=",!0));t.manufacturer=te.getValue(i,"manufacturer","=",!0),t.model=o.key,t.type=m6(o.version),t.version=o.version,t.serial=te.getValue(i,"ioplatformserialnumber","=",!0),t.uuid=te.getValue(i,"ioplatformuuid","=",!0).toLowerCase(),t.sku=te.getValue(i,"board-id","=",!0)||te.getValue(i,"target-sub-type","=",!0)}r&&r(t),e(t)}),_0&&(r&&r(t),e(t)),S0)try{te.powerShell("Get-CimInstance Win32_ComputerSystemProduct | select Name,Vendor,Version,IdentifyingNumber,UUID | fl").then((n,s)=>{if(s)r&&r(t),e(t);else{let i=n.split(`\r
|
|
274
274
|
`);t.manufacturer=te.getValue(i,"vendor",":"),t.model=te.getValue(i,"name",":"),t.version=te.getValue(i,"version",":"),t.serial=te.getValue(i,"identifyingnumber",":"),t.uuid=te.getValue(i,"uuid",":").toLowerCase();let o=t.model.toLowerCase();(o==="virtualbox"||o==="kvm"||o==="virtual machine"||o==="bochs"||o.startsWith("vmware")||o.startsWith("qemu")||o.startsWith("parallels"))&&(t.virtual=!0,o.startsWith("virtualbox")&&(t.virtualHost="VirtualBox"),o.startsWith("vmware")&&(t.virtualHost="VMware"),o.startsWith("kvm")&&(t.virtualHost="KVM"),o.startsWith("bochs")&&(t.virtualHost="bochs"),o.startsWith("qemu")&&(t.virtualHost="KVM"),o.startsWith("parallels")&&(t.virtualHost="Parallels"));let a=t.manufacturer.toLowerCase();(a.startsWith("vmware")||a.startsWith("qemu")||a==="xen"||a.startsWith("parallels"))&&(t.virtual=!0,a.startsWith("vmware")&&(t.virtualHost="VMware"),a.startsWith("xen")&&(t.virtualHost="Xen"),a.startsWith("qemu")&&(t.virtualHost="KVM"),a.startsWith("parallels")&&(t.virtualHost="Parallels")),te.powerShell('Get-CimInstance MS_Systeminformation -Namespace "root/wmi" | select systemsku | fl ').then((c,u)=>{if(!u){let l=c.split(`\r
|
|
@@ -294,16 +294,16 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
|
|
|
294
294
|
echo -n "chassis_version: "; cat /sys/devices/virtual/dmi/id/chassis_version 2>/dev/null; echo;`,function(i,o){let a=o.toString().split(`
|
|
295
295
|
`);n.manufacturer=Ke(te.getValue(a,"chassis_vendor"));let c=parseInt(te.getValue(a,"chassis_type").replace(/\D/g,""));n.type=Ke(c&&!isNaN(c)&&c<e.length?e[c-1]:""),n.version=Ke(te.getValue(a,"chassis_version")),n.serial=Ke(te.getValue(a,"chassis_serial")),n.assetTag=Ke(te.getValue(a,"chassis_asset_tag")),r&&r(n),t(n)}),E0&&eu("ioreg -c IOPlatformExpertDevice -d 2",function(s,i){if(!s){let o=i.toString().replace(/[<>"]/g,"").split(`
|
|
296
296
|
`),a=te.getAppleModel(te.getValue(o,"model","=",!0));n.manufacturer=te.getValue(o,"manufacturer","=",!0),n.model=a.key,n.type=m6(a.model),n.version=a.version,n.serial=te.getValue(o,"ioplatformserialnumber","=",!0),n.assetTag=te.getValue(o,"board-id","=",!0)||te.getValue(o,"target-type","=",!0),n.sku=te.getValue(o,"target-sub-type","=",!0)}r&&r(n),t(n)}),_0&&(r&&r(n),t(n)),S0)try{te.powerShell("Get-CimInstance Win32_SystemEnclosure | select Model,Manufacturer,ChassisTypes,Version,SerialNumber,PartNumber,SKU,SMBIOSAssetTag | fl").then((s,i)=>{if(!i){let o=s.toString().split(`\r
|
|
297
|
-
`);n.manufacturer=Ke(te.getValue(o,"manufacturer",":")),n.model=Ke(te.getValue(o,"model",":"));let a=parseInt(te.getValue(o,"ChassisTypes",":").replace(/\D/g,""));n.type=a&&!isNaN(a)&&a<e.length?e[a-1]:"",n.version=Ke(te.getValue(o,"version",":")),n.serial=Ke(te.getValue(o,"serialnumber",":")),n.assetTag=Ke(te.getValue(o,"partnumber",":")),n.assetTag||(n.assetTag=Ke(te.getValue(o,"SMBIOSAssetTag",":"))),n.sku=Ke(te.getValue(o,"sku",":"))}r&&r(n),t(n)})}catch{r&&r(n),t(n)}})})}of.chassis=Ale});var A6=x(xs=>{"use strict";var Zn=W("os"),Br=W("child_process").exec,O0=W("child_process").execSync,A0=W("fs"),pe=kt(),Ds=process.platform,ru=Ds==="linux"||Ds==="android",C0=Ds==="darwin",v0=Ds==="win32",D0=Ds==="freebsd",x0=Ds==="openbsd",b0=Ds==="netbsd",P0=Ds==="sunos",tu=0,tt={user:0,nice:0,system:0,idle:0,irq:0,steal:0,guest:0,load:0,tick:0,ms:0,currentLoad:0,currentLoadUser:0,currentLoadSystem:0,currentLoadNice:0,currentLoadIdle:0,currentLoadIrq:0,currentLoadSteal:0,currentLoadGuest:0,rawCurrentLoad:0,rawCurrentLoadUser:0,rawCurrentLoadSystem:0,rawCurrentLoadNice:0,rawCurrentLoadIdle:0,rawCurrentLoadIrq:0,rawCurrentLoadSteal:0,rawCurrentLoadGuest:0},ae=[],BO=0,UO={8346:"1.8",8347:"1.9",8350:"2.0",8354:"2.2","8356|SE":"2.4",8356:"2.3",8360:"2.5",2372:"2.1",2373:"2.1",2374:"2.2",2376:"2.3",2377:"2.3",2378:"2.4",2379:"2.4",2380:"2.5",2381:"2.5",2382:"2.6",2384:"2.7",2386:"2.8",2387:"2.8",2389:"2.9",2393:"3.1",8374:"2.2",8376:"2.3",8378:"2.4",8379:"2.4",8380:"2.5",8381:"2.5",8382:"2.6",8384:"2.7",8386:"2.8",8387:"2.8",8389:"2.9",8393:"3.1","2419EE":"1.8","2423HE":"2.0","2425HE":"2.1",2427:"2.2",2431:"2.4",2435:"2.6","2439SE":"2.8","8425HE":"2.1",8431:"2.4",8435:"2.6","8439SE":"2.8",4122:"2.2",4130:"2.6","4162EE":"1.7","4164EE":"1.8","4170HE":"2.1","4174HE":"2.3","4176HE":"2.4",4180:"2.6",4184:"2.8","6124HE":"1.8","6128HE":"2.0","6132HE":"2.2",6128:"2.0",6134:"2.3",6136:"2.4",6140:"2.6","6164HE":"1.7","6166HE":"1.8",6168:"1.9",6172:"2.1",6174:"2.2",6176:"2.3","6176SE":"2.3","6180SE":"2.5",3250:"2.5",3260:"2.7",3280:"2.4",4226:"2.7",4228:"2.8",4230:"2.9",4234:"3.1",4238:"3.3",4240:"3.4",4256:"1.6",4274:"2.5",4276:"2.6",4280:"2.8",4284:"3.0",6204:"3.3",6212:"2.6",6220:"3.0",6234:"2.4",6238:"2.6","6262HE":"1.6",6272:"2.1",6274:"2.2",6276:"2.3",6278:"2.4","6282SE":"2.6","6284SE":"2.7",6308:"3.5",6320:"2.8",6328:"3.2","6338P":"2.3",6344:"2.6",6348:"2.8",6366:"1.8","6370P":"2.0",6376:"2.3",6378:"2.4",6380:"2.5",6386:"2.8","FX|4100":"3.6","FX|4120":"3.9","FX|4130":"3.8","FX|4150":"3.8","FX|4170":"4.2","FX|6100":"3.3","FX|6120":"3.6","FX|6130":"3.6","FX|6200":"3.8","FX|8100":"2.8","FX|8120":"3.1","FX|8140":"3.2","FX|8150":"3.6","FX|8170":"3.9","FX|4300":"3.8","FX|4320":"4.0","FX|4350":"4.2","FX|6300":"3.5","FX|6350":"3.9","FX|8300":"3.3","FX|8310":"3.4","FX|8320":"3.5","FX|8350":"4.0","FX|8370":"4.0","FX|9370":"4.4","FX|9590":"4.7","FX|8320E":"3.2","FX|8370E":"3.3",1200:"3.1","Pro 1200":"3.1","1300X":"3.5","Pro 1300":"3.5",1400:"3.2","1500X":"3.5","Pro 1500":"3.5",1600:"3.2","1600X":"3.6","Pro 1600":"3.2",1700:"3.0","Pro 1700":"3.0","1700X":"3.4","Pro 1700X":"3.4","1800X":"3.6","1900X":"3.8",1920:"3.2","1920X":"3.5","1950X":"3.4","200GE":"3.2","Pro 200GE":"3.2","220GE":"3.4","240GE":"3.5","3000G":"3.5","300GE":"3.4","3050GE":"3.4","2200G":"3.5","Pro 2200G":"3.5","2200GE":"3.2","Pro 2200GE":"3.2","2400G":"3.6","Pro 2400G":"3.6","2400GE":"3.2","Pro 2400GE":"3.2","Pro 200U":"2.3","300U":"2.4","2200U":"2.5","3200U":"2.6","2300U":"2.0","Pro 2300U":"2.0","2500U":"2.0","Pro 2500U":"2.2","2600H":"3.2","2700U":"2.0","Pro 2700U":"2.2","2800H":"3.3",7351:"2.4","7351P":"2.4",7401:"2.0","7401P":"2.0","7551P":"2.0",7551:"2.0",7251:"2.1",7261:"2.5",7281:"2.1",7301:"2.2",7371:"3.1",7451:"2.3",7501:"2.0",7571:"2.2",7601:"2.2",V1500B:"2.2",V1780B:"3.35",V1202B:"2.3",V1404I:"2.0",V1605B:"2.0",V1756B:"3.25",V1807B:"3.35",3101:"2.1",3151:"2.7",3201:"1.5",3251:"2.5",3255:"2.5",3301:"2.0",3351:"1.9",3401:"1.85",3451:"2.15","1200|AF":"3.1","2300X":"3.5","2500X":"3.6",2600:"3.4","2600E":"3.1","1600|AF":"3.2","2600X":"3.6",2700:"3.2","2700E":"2.8","Pro 2700":"3.2","2700X":"3.7","Pro 2700X":"3.6","2920X":"3.5","2950X":"3.5","2970WX":"3.0","2990WX":"3.0","Pro 300GE":"3.4","Pro 3125GE":"3.4","3150G":"3.5","Pro 3150G":"3.5","3150GE":"3.3","Pro 3150GE":"3.3","3200G":"3.6","Pro 3200G":"3.6","3200GE":"3.3","Pro 3200GE":"3.3","3350G":"3.6","Pro 3350G":"3.6","3350GE":"3.3","Pro 3350GE":"3.3","3400G":"3.7","Pro 3400G":"3.7","3400GE":"3.3","Pro 3400GE":"3.3","3300U":"2.1","PRO 3300U":"2.1","3450U":"2.1","3500U":"2.1","PRO 3500U":"2.1","3500C":"2.1","3550H":"2.1","3580U":"2.1","3700U":"2.3","PRO 3700U":"2.3","3700C":"2.3","3750H":"2.3","3780U":"2.3",3100:"3.6","3300X":"3.8",3500:"3.6","3500X":"3.6",3600:"3.6","Pro 3600":"3.6","3600X":"3.8","3600XT":"3.8","Pro 3700":"3.6","3700X":"3.6","3800X":"3.9","3800XT":"3.9",3900:"3.1","Pro 3900":"3.1","3900X":"3.8","3900XT":"3.8","3950X":"3.5","3960X":"3.8","3970X":"3.7","3990X":"2.9","3945WX":"4.0","3955WX":"3.9","3975WX":"3.5","3995WX":"2.7","4300GE":"3.5","Pro 4300GE":"3.5","4300G":"3.8","Pro 4300G":"3.8","4600GE":"3.3","Pro 4650GE":"3.3","4600G":"3.7","Pro 4650G":"3.7","4700GE":"3.1","Pro 4750GE":"3.1","4700G":"3.6","Pro 4750G":"3.6","4300U":"2.7","4450U":"2.5","Pro 4450U":"2.5","4500U":"2.3","4600U":"2.1","PRO 4650U":"2.1","4680U":"2.1","4600HS":"3.0","4600H":"3.0","4700U":"2.0","PRO 4750U":"1.7","4800U":"1.8","4800HS":"2.9","4800H":"2.9","4900HS":"3.0","4900H":"3.3","5300U":"2.6","5500U":"2.1","5700U":"1.8","7232P":"3.1","7302P":"3.0","7402P":"2.8","7502P":"2.5","7702P":"2.0",7252:"3.1",7262:"3.2",7272:"2.9",7282:"2.8",7302:"3.0",7352:"2.3",7402:"2.8",7452:"2.35",7502:"2.5",7532:"2.4",7542:"2.9",7552:"2.2",7642:"2.3",7662:"2.0",7702:"2.0",7742:"2.25","7H12":"2.6","7F32":"3.7","7F52":"3.5","7F72":"3.2","7773X":"2.2",7763:"2.45",7713:"2.0","7713P":"2.0",7663:"2.0",7643:"2.3","7573X":"2.8","75F3":"2.95",7543:"2.8","7543P":"2.8",7513:"2.6","7473X":"2.8",7453:"2.75","74F3":"3.2",7443:"2.85","7443P":"2.85",7413:"2.65","7373X":"3.05","73F3":"3.5",7343:"3.2",7313:"3.0","7313P":"3.0","72F3":"3.7","5600X":"3.7","5800X":"3.8","5900X":"3.7","5950X":"3.4","5945WX":"4.1","5955WX":"4.0","5965WX":"3.8","5975WX":"3.6","5995WX":"2.7","7960X":"4.2","7970X":"4.0","7980X":"3.2","7965WX":"4.2","7975WX":"4.0","7985WX":"3.2","7995WX":"2.5",9754:"2.25","9754S":"2.25",9734:"2.2","9684X":"2.55","9384X":"3.1","9184X":"3.55","9654P":"2.4",9654:"2.4",9634:"2.25","9554P":"3.1",9554:"3.1",9534:"2.45","9474F":"3.6","9454P":"2.75",9454:"2.75","9374F":"3.85","9354P":"3.25",9354:"3.25",9334:"2.7","9274F":"4.05",9254:"2.9",9224:"2.5","9174F":"4.1",9124:"3.0"},E6={1:"Other",2:"Unknown",3:"Daughter Board",4:"ZIF Socket",5:"Replacement/Piggy Back",6:"None",7:"LIF Socket",8:"Slot 1",9:"Slot 2",10:"370 Pin Socket",11:"Slot A",12:"Slot M",13:"423",14:"A (Socket 462)",15:"478",16:"754",17:"940",18:"939",19:"mPGA604",20:"LGA771",21:"LGA775",22:"S1",23:"AM2",24:"F (1207)",25:"LGA1366",26:"G34",27:"AM3",28:"C32",29:"LGA1156",30:"LGA1567",31:"PGA988A",32:"BGA1288",33:"rPGA988B",34:"BGA1023",35:"BGA1224",36:"LGA1155",37:"LGA1356",38:"LGA2011",39:"FS1",40:"FS2",41:"FM1",42:"FM2",43:"LGA2011-3",44:"LGA1356-3",45:"LGA1150",46:"BGA1168",47:"BGA1234",48:"BGA1364",49:"AM4",50:"LGA1151",51:"BGA1356",52:"BGA1440",53:"BGA1515",54:"LGA3647-1",55:"SP3",56:"SP3r2",57:"LGA2066",58:"BGA1392",59:"BGA1510",60:"BGA1528",61:"LGA4189",62:"LGA1200",63:"LGA4677",64:"LGA1700",65:"BGA1744",66:"BGA1781",67:"BGA1211",68:"BGA2422",69:"LGA1211",70:"LGA2422",71:"LGA5773",72:"BGA5773",73:"AM5",74:"SP5",75:"SP6",76:"BGA883",77:"BGA1190",78:"BGA4129",79:"LGA4710",80:"LGA7529",81:"BGA1964",82:"BGA1792",83:"BGA2049",84:"BGA2551",85:"LGA1851",86:"BGA2114",87:"BGA2833"},S6={LGA1150:"i7-5775C i3-4340 i3-4170 G3250 i3-4160T i3-4160 E3-1231 G3258 G3240 i7-4790S i7-4790K i7-4790 i5-4690K i5-4690 i5-4590T i5-4590S i5-4590 i5-4460 i3-4360 i3-4150 G1820 G3420 G3220 i7-4771 i5-4440 i3-4330 i3-4130T i3-4130 E3-1230 i7-4770S i7-4770K i7-4770 i5-4670K i5-4670 i5-4570T i5-4570S i5-4570 i5-4430",LGA1151:"i9-9900KS E-2288G E-2224 G5420 i9-9900T i9-9900 i7-9700T i7-9700F i7-9700E i7-9700 i5-9600 i5-9500T i5-9500F i5-9500 i5-9400T i3-9350K i3-9300 i3-9100T i3-9100F i3-9100 G4930 i9-9900KF i7-9700KF i5-9600KF i5-9400F i5-9400 i3-9350KF i9-9900K i7-9700K i5-9600K G5500 G5400 i7-8700T i7-8086K i5-8600 i5-8500T i5-8500 i5-8400T i3-8300 i3-8100T G4900 i7-8700K i7-8700 i5-8600K i5-8400 i3-8350K i3-8100 E3-1270 G4600 G4560 i7-7700T i7-7700K i7-7700 i5-7600K i5-7600 i5-7500T i5-7500 i5-7400 i3-7350K i3-7300 i3-7100T i3-7100 G3930 G3900 G4400 i7-6700T i7-6700K i7-6700 i5-6600K i5-6600 i5-6500T i5-6500 i5-6400T i5-6400 i3-6300 i3-6100T i3-6100 E3-1270 E3-1270 T4500 T4400",1155:"G440 G460 G465 G470 G530T G540T G550T G1610T G1620T G530 G540 G1610 G550 G1620 G555 G1630 i3-2100T i3-2120T i3-3220T i3-3240T i3-3250T i3-2100 i3-2105 i3-2102 i3-3210 i3-3220 i3-2125 i3-2120 i3-3225 i3-2130 i3-3245 i3-3240 i3-3250 i5-3570T i5-2500T i5-2400S i5-2405S i5-2390T i5-3330S i5-2500S i5-3335S i5-2300 i5-3450S i5-3340S i5-3470S i5-3475S i5-3470T i5-2310 i5-3550S i5-2320 i5-3330 i5-3350P i5-3450 i5-2400 i5-3340 i5-3570S i5-2380P i5-2450P i5-3470 i5-2500K i5-3550 i5-2500 i5-3570 i5-3570K i5-2550K i7-3770T i7-2600S i7-3770S i7-2600K i7-2600 i7-3770 i7-3770K i7-2700K G620T G630T G640T G2020T G645T G2100T G2030T G622 G860T G620 G632 G2120T G630 G640 G2010 G840 G2020 G850 G645 G2030 G860 G2120 G870 G2130 G2140 E3-1220L E3-1220L E3-1260L E3-1265L E3-1220 E3-1225 E3-1220 E3-1235 E3-1225 E3-1230 E3-1230 E3-1240 E3-1245 E3-1270 E3-1275 E3-1240 E3-1245 E3-1270 E3-1280 E3-1275 E3-1290 E3-1280 E3-1290"};function Ole(r){let e="";for(let t in S6)S6[t].split(" ").forEach(s=>{r.indexOf(s)>=0&&(e=t)});return e}function T0(r){let e=r;return r=r.toLowerCase(),r.indexOf("intel")>=0&&(e="Intel"),r.indexOf("amd")>=0&&(e="AMD"),r.indexOf("qemu")>=0&&(e="QEMU"),r.indexOf("hygon")>=0&&(e="Hygon"),r.indexOf("centaur")>=0&&(e="WinChip/Via"),r.indexOf("vmware")>=0&&(e="VMware"),r.indexOf("Xen")>=0&&(e="Xen Hypervisor"),r.indexOf("tcg")>=0&&(e="QEMU"),r.indexOf("apple")>=0&&(e="Apple"),r.indexOf("sifive")>=0&&(e="SiFive"),r.indexOf("thead")>=0&&(e="T-Head"),r.indexOf("andestech")>=0&&(e="Andes Technology"),e}function y0(r){r.brand=r.brand.replace(/\(R\)+/g,"\xAE").replace(/\s+/g," ").trim(),r.brand=r.brand.replace(/\(TM\)+/g,"\u2122").replace(/\s+/g," ").trim(),r.brand=r.brand.replace(/\(C\)+/g,"\xA9").replace(/\s+/g," ").trim(),r.brand=r.brand.replace(/CPU+/g,"").replace(/\s+/g," ").trim(),r.manufacturer=T0(r.brand);let e=r.brand.split(" ");return e.shift(),r.brand=e.join(" "),r}function FO(r){let e="0";for(let t in UO)if({}.hasOwnProperty.call(UO,t)){let n=t.split("|"),s=0;n.forEach(i=>{r.indexOf(i)>-1&&s++}),s===n.length&&(e=UO[t])}return parseFloat(e)}function Cle(){return new Promise(r=>{process.nextTick(()=>{let e="unknown",t={manufacturer:e,brand:e,vendor:"",family:"",model:"",stepping:"",revision:"",voltage:"",speed:0,speedMin:0,speedMax:0,governor:"",cores:pe.cores(),physicalCores:pe.cores(),performanceCores:pe.cores(),efficiencyCores:0,processors:1,socket:"",flags:"",virtualization:!1,cache:{}};_6().then(n=>{if(t.flags=n,t.virtualization=n.indexOf("vmx")>-1||n.indexOf("svm")>-1,C0&&Br("sysctl machdep.cpu hw.cpufrequency_max hw.cpufrequency_min hw.packages hw.physicalcpu_max hw.ncpu hw.tbfrequency hw.cpufamily hw.cpusubfamily",function(s,i){let o=i.toString().split(`
|
|
297
|
+
`);n.manufacturer=Ke(te.getValue(o,"manufacturer",":")),n.model=Ke(te.getValue(o,"model",":"));let a=parseInt(te.getValue(o,"ChassisTypes",":").replace(/\D/g,""));n.type=a&&!isNaN(a)&&a<e.length?e[a-1]:"",n.version=Ke(te.getValue(o,"version",":")),n.serial=Ke(te.getValue(o,"serialnumber",":")),n.assetTag=Ke(te.getValue(o,"partnumber",":")),n.assetTag||(n.assetTag=Ke(te.getValue(o,"SMBIOSAssetTag",":"))),n.sku=Ke(te.getValue(o,"sku",":"))}r&&r(n),t(n)})}catch{r&&r(n),t(n)}})})}of.chassis=Ale});var A6=x(xs=>{"use strict";var Zn=W("os"),Br=W("child_process").exec,O0=W("child_process").execSync,A0=W("fs"),pe=kt(),Ds=process.platform,ru=Ds==="linux"||Ds==="android",C0=Ds==="darwin",v0=Ds==="win32",D0=Ds==="freebsd",x0=Ds==="openbsd",b0=Ds==="netbsd",P0=Ds==="sunos",tu=0,tt={user:0,nice:0,system:0,idle:0,irq:0,steal:0,guest:0,load:0,tick:0,ms:0,currentLoad:0,currentLoadUser:0,currentLoadSystem:0,currentLoadNice:0,currentLoadIdle:0,currentLoadIrq:0,currentLoadSteal:0,currentLoadGuest:0,rawCurrentLoad:0,rawCurrentLoadUser:0,rawCurrentLoadSystem:0,rawCurrentLoadNice:0,rawCurrentLoadIdle:0,rawCurrentLoadIrq:0,rawCurrentLoadSteal:0,rawCurrentLoadGuest:0},ae=[],B1=0,U1={8346:"1.8",8347:"1.9",8350:"2.0",8354:"2.2","8356|SE":"2.4",8356:"2.3",8360:"2.5",2372:"2.1",2373:"2.1",2374:"2.2",2376:"2.3",2377:"2.3",2378:"2.4",2379:"2.4",2380:"2.5",2381:"2.5",2382:"2.6",2384:"2.7",2386:"2.8",2387:"2.8",2389:"2.9",2393:"3.1",8374:"2.2",8376:"2.3",8378:"2.4",8379:"2.4",8380:"2.5",8381:"2.5",8382:"2.6",8384:"2.7",8386:"2.8",8387:"2.8",8389:"2.9",8393:"3.1","2419EE":"1.8","2423HE":"2.0","2425HE":"2.1",2427:"2.2",2431:"2.4",2435:"2.6","2439SE":"2.8","8425HE":"2.1",8431:"2.4",8435:"2.6","8439SE":"2.8",4122:"2.2",4130:"2.6","4162EE":"1.7","4164EE":"1.8","4170HE":"2.1","4174HE":"2.3","4176HE":"2.4",4180:"2.6",4184:"2.8","6124HE":"1.8","6128HE":"2.0","6132HE":"2.2",6128:"2.0",6134:"2.3",6136:"2.4",6140:"2.6","6164HE":"1.7","6166HE":"1.8",6168:"1.9",6172:"2.1",6174:"2.2",6176:"2.3","6176SE":"2.3","6180SE":"2.5",3250:"2.5",3260:"2.7",3280:"2.4",4226:"2.7",4228:"2.8",4230:"2.9",4234:"3.1",4238:"3.3",4240:"3.4",4256:"1.6",4274:"2.5",4276:"2.6",4280:"2.8",4284:"3.0",6204:"3.3",6212:"2.6",6220:"3.0",6234:"2.4",6238:"2.6","6262HE":"1.6",6272:"2.1",6274:"2.2",6276:"2.3",6278:"2.4","6282SE":"2.6","6284SE":"2.7",6308:"3.5",6320:"2.8",6328:"3.2","6338P":"2.3",6344:"2.6",6348:"2.8",6366:"1.8","6370P":"2.0",6376:"2.3",6378:"2.4",6380:"2.5",6386:"2.8","FX|4100":"3.6","FX|4120":"3.9","FX|4130":"3.8","FX|4150":"3.8","FX|4170":"4.2","FX|6100":"3.3","FX|6120":"3.6","FX|6130":"3.6","FX|6200":"3.8","FX|8100":"2.8","FX|8120":"3.1","FX|8140":"3.2","FX|8150":"3.6","FX|8170":"3.9","FX|4300":"3.8","FX|4320":"4.0","FX|4350":"4.2","FX|6300":"3.5","FX|6350":"3.9","FX|8300":"3.3","FX|8310":"3.4","FX|8320":"3.5","FX|8350":"4.0","FX|8370":"4.0","FX|9370":"4.4","FX|9590":"4.7","FX|8320E":"3.2","FX|8370E":"3.3",1200:"3.1","Pro 1200":"3.1","1300X":"3.5","Pro 1300":"3.5",1400:"3.2","1500X":"3.5","Pro 1500":"3.5",1600:"3.2","1600X":"3.6","Pro 1600":"3.2",1700:"3.0","Pro 1700":"3.0","1700X":"3.4","Pro 1700X":"3.4","1800X":"3.6","1900X":"3.8",1920:"3.2","1920X":"3.5","1950X":"3.4","200GE":"3.2","Pro 200GE":"3.2","220GE":"3.4","240GE":"3.5","3000G":"3.5","300GE":"3.4","3050GE":"3.4","2200G":"3.5","Pro 2200G":"3.5","2200GE":"3.2","Pro 2200GE":"3.2","2400G":"3.6","Pro 2400G":"3.6","2400GE":"3.2","Pro 2400GE":"3.2","Pro 200U":"2.3","300U":"2.4","2200U":"2.5","3200U":"2.6","2300U":"2.0","Pro 2300U":"2.0","2500U":"2.0","Pro 2500U":"2.2","2600H":"3.2","2700U":"2.0","Pro 2700U":"2.2","2800H":"3.3",7351:"2.4","7351P":"2.4",7401:"2.0","7401P":"2.0","7551P":"2.0",7551:"2.0",7251:"2.1",7261:"2.5",7281:"2.1",7301:"2.2",7371:"3.1",7451:"2.3",7501:"2.0",7571:"2.2",7601:"2.2",V1500B:"2.2",V1780B:"3.35",V1202B:"2.3",V1404I:"2.0",V1605B:"2.0",V1756B:"3.25",V1807B:"3.35",3101:"2.1",3151:"2.7",3201:"1.5",3251:"2.5",3255:"2.5",3301:"2.0",3351:"1.9",3401:"1.85",3451:"2.15","1200|AF":"3.1","2300X":"3.5","2500X":"3.6",2600:"3.4","2600E":"3.1","1600|AF":"3.2","2600X":"3.6",2700:"3.2","2700E":"2.8","Pro 2700":"3.2","2700X":"3.7","Pro 2700X":"3.6","2920X":"3.5","2950X":"3.5","2970WX":"3.0","2990WX":"3.0","Pro 300GE":"3.4","Pro 3125GE":"3.4","3150G":"3.5","Pro 3150G":"3.5","3150GE":"3.3","Pro 3150GE":"3.3","3200G":"3.6","Pro 3200G":"3.6","3200GE":"3.3","Pro 3200GE":"3.3","3350G":"3.6","Pro 3350G":"3.6","3350GE":"3.3","Pro 3350GE":"3.3","3400G":"3.7","Pro 3400G":"3.7","3400GE":"3.3","Pro 3400GE":"3.3","3300U":"2.1","PRO 3300U":"2.1","3450U":"2.1","3500U":"2.1","PRO 3500U":"2.1","3500C":"2.1","3550H":"2.1","3580U":"2.1","3700U":"2.3","PRO 3700U":"2.3","3700C":"2.3","3750H":"2.3","3780U":"2.3",3100:"3.6","3300X":"3.8",3500:"3.6","3500X":"3.6",3600:"3.6","Pro 3600":"3.6","3600X":"3.8","3600XT":"3.8","Pro 3700":"3.6","3700X":"3.6","3800X":"3.9","3800XT":"3.9",3900:"3.1","Pro 3900":"3.1","3900X":"3.8","3900XT":"3.8","3950X":"3.5","3960X":"3.8","3970X":"3.7","3990X":"2.9","3945WX":"4.0","3955WX":"3.9","3975WX":"3.5","3995WX":"2.7","4300GE":"3.5","Pro 4300GE":"3.5","4300G":"3.8","Pro 4300G":"3.8","4600GE":"3.3","Pro 4650GE":"3.3","4600G":"3.7","Pro 4650G":"3.7","4700GE":"3.1","Pro 4750GE":"3.1","4700G":"3.6","Pro 4750G":"3.6","4300U":"2.7","4450U":"2.5","Pro 4450U":"2.5","4500U":"2.3","4600U":"2.1","PRO 4650U":"2.1","4680U":"2.1","4600HS":"3.0","4600H":"3.0","4700U":"2.0","PRO 4750U":"1.7","4800U":"1.8","4800HS":"2.9","4800H":"2.9","4900HS":"3.0","4900H":"3.3","5300U":"2.6","5500U":"2.1","5700U":"1.8","7232P":"3.1","7302P":"3.0","7402P":"2.8","7502P":"2.5","7702P":"2.0",7252:"3.1",7262:"3.2",7272:"2.9",7282:"2.8",7302:"3.0",7352:"2.3",7402:"2.8",7452:"2.35",7502:"2.5",7532:"2.4",7542:"2.9",7552:"2.2",7642:"2.3",7662:"2.0",7702:"2.0",7742:"2.25","7H12":"2.6","7F32":"3.7","7F52":"3.5","7F72":"3.2","7773X":"2.2",7763:"2.45",7713:"2.0","7713P":"2.0",7663:"2.0",7643:"2.3","7573X":"2.8","75F3":"2.95",7543:"2.8","7543P":"2.8",7513:"2.6","7473X":"2.8",7453:"2.75","74F3":"3.2",7443:"2.85","7443P":"2.85",7413:"2.65","7373X":"3.05","73F3":"3.5",7343:"3.2",7313:"3.0","7313P":"3.0","72F3":"3.7","5600X":"3.7","5800X":"3.8","5900X":"3.7","5950X":"3.4","5945WX":"4.1","5955WX":"4.0","5965WX":"3.8","5975WX":"3.6","5995WX":"2.7","7960X":"4.2","7970X":"4.0","7980X":"3.2","7965WX":"4.2","7975WX":"4.0","7985WX":"3.2","7995WX":"2.5",9754:"2.25","9754S":"2.25",9734:"2.2","9684X":"2.55","9384X":"3.1","9184X":"3.55","9654P":"2.4",9654:"2.4",9634:"2.25","9554P":"3.1",9554:"3.1",9534:"2.45","9474F":"3.6","9454P":"2.75",9454:"2.75","9374F":"3.85","9354P":"3.25",9354:"3.25",9334:"2.7","9274F":"4.05",9254:"2.9",9224:"2.5","9174F":"4.1",9124:"3.0"},E6={1:"Other",2:"Unknown",3:"Daughter Board",4:"ZIF Socket",5:"Replacement/Piggy Back",6:"None",7:"LIF Socket",8:"Slot 1",9:"Slot 2",10:"370 Pin Socket",11:"Slot A",12:"Slot M",13:"423",14:"A (Socket 462)",15:"478",16:"754",17:"940",18:"939",19:"mPGA604",20:"LGA771",21:"LGA775",22:"S1",23:"AM2",24:"F (1207)",25:"LGA1366",26:"G34",27:"AM3",28:"C32",29:"LGA1156",30:"LGA1567",31:"PGA988A",32:"BGA1288",33:"rPGA988B",34:"BGA1023",35:"BGA1224",36:"LGA1155",37:"LGA1356",38:"LGA2011",39:"FS1",40:"FS2",41:"FM1",42:"FM2",43:"LGA2011-3",44:"LGA1356-3",45:"LGA1150",46:"BGA1168",47:"BGA1234",48:"BGA1364",49:"AM4",50:"LGA1151",51:"BGA1356",52:"BGA1440",53:"BGA1515",54:"LGA3647-1",55:"SP3",56:"SP3r2",57:"LGA2066",58:"BGA1392",59:"BGA1510",60:"BGA1528",61:"LGA4189",62:"LGA1200",63:"LGA4677",64:"LGA1700",65:"BGA1744",66:"BGA1781",67:"BGA1211",68:"BGA2422",69:"LGA1211",70:"LGA2422",71:"LGA5773",72:"BGA5773",73:"AM5",74:"SP5",75:"SP6",76:"BGA883",77:"BGA1190",78:"BGA4129",79:"LGA4710",80:"LGA7529",81:"BGA1964",82:"BGA1792",83:"BGA2049",84:"BGA2551",85:"LGA1851",86:"BGA2114",87:"BGA2833"},S6={LGA1150:"i7-5775C i3-4340 i3-4170 G3250 i3-4160T i3-4160 E3-1231 G3258 G3240 i7-4790S i7-4790K i7-4790 i5-4690K i5-4690 i5-4590T i5-4590S i5-4590 i5-4460 i3-4360 i3-4150 G1820 G3420 G3220 i7-4771 i5-4440 i3-4330 i3-4130T i3-4130 E3-1230 i7-4770S i7-4770K i7-4770 i5-4670K i5-4670 i5-4570T i5-4570S i5-4570 i5-4430",LGA1151:"i9-9900KS E-2288G E-2224 G5420 i9-9900T i9-9900 i7-9700T i7-9700F i7-9700E i7-9700 i5-9600 i5-9500T i5-9500F i5-9500 i5-9400T i3-9350K i3-9300 i3-9100T i3-9100F i3-9100 G4930 i9-9900KF i7-9700KF i5-9600KF i5-9400F i5-9400 i3-9350KF i9-9900K i7-9700K i5-9600K G5500 G5400 i7-8700T i7-8086K i5-8600 i5-8500T i5-8500 i5-8400T i3-8300 i3-8100T G4900 i7-8700K i7-8700 i5-8600K i5-8400 i3-8350K i3-8100 E3-1270 G4600 G4560 i7-7700T i7-7700K i7-7700 i5-7600K i5-7600 i5-7500T i5-7500 i5-7400 i3-7350K i3-7300 i3-7100T i3-7100 G3930 G3900 G4400 i7-6700T i7-6700K i7-6700 i5-6600K i5-6600 i5-6500T i5-6500 i5-6400T i5-6400 i3-6300 i3-6100T i3-6100 E3-1270 E3-1270 T4500 T4400",1155:"G440 G460 G465 G470 G530T G540T G550T G1610T G1620T G530 G540 G1610 G550 G1620 G555 G1630 i3-2100T i3-2120T i3-3220T i3-3240T i3-3250T i3-2100 i3-2105 i3-2102 i3-3210 i3-3220 i3-2125 i3-2120 i3-3225 i3-2130 i3-3245 i3-3240 i3-3250 i5-3570T i5-2500T i5-2400S i5-2405S i5-2390T i5-3330S i5-2500S i5-3335S i5-2300 i5-3450S i5-3340S i5-3470S i5-3475S i5-3470T i5-2310 i5-3550S i5-2320 i5-3330 i5-3350P i5-3450 i5-2400 i5-3340 i5-3570S i5-2380P i5-2450P i5-3470 i5-2500K i5-3550 i5-2500 i5-3570 i5-3570K i5-2550K i7-3770T i7-2600S i7-3770S i7-2600K i7-2600 i7-3770 i7-3770K i7-2700K G620T G630T G640T G2020T G645T G2100T G2030T G622 G860T G620 G632 G2120T G630 G640 G2010 G840 G2020 G850 G645 G2030 G860 G2120 G870 G2130 G2140 E3-1220L E3-1220L E3-1260L E3-1265L E3-1220 E3-1225 E3-1220 E3-1235 E3-1225 E3-1230 E3-1230 E3-1240 E3-1245 E3-1270 E3-1275 E3-1240 E3-1245 E3-1270 E3-1280 E3-1275 E3-1290 E3-1280 E3-1290"};function Ole(r){let e="";for(let t in S6)S6[t].split(" ").forEach(s=>{r.indexOf(s)>=0&&(e=t)});return e}function T0(r){let e=r;return r=r.toLowerCase(),r.indexOf("intel")>=0&&(e="Intel"),r.indexOf("amd")>=0&&(e="AMD"),r.indexOf("qemu")>=0&&(e="QEMU"),r.indexOf("hygon")>=0&&(e="Hygon"),r.indexOf("centaur")>=0&&(e="WinChip/Via"),r.indexOf("vmware")>=0&&(e="VMware"),r.indexOf("Xen")>=0&&(e="Xen Hypervisor"),r.indexOf("tcg")>=0&&(e="QEMU"),r.indexOf("apple")>=0&&(e="Apple"),r.indexOf("sifive")>=0&&(e="SiFive"),r.indexOf("thead")>=0&&(e="T-Head"),r.indexOf("andestech")>=0&&(e="Andes Technology"),e}function y0(r){r.brand=r.brand.replace(/\(R\)+/g,"\xAE").replace(/\s+/g," ").trim(),r.brand=r.brand.replace(/\(TM\)+/g,"\u2122").replace(/\s+/g," ").trim(),r.brand=r.brand.replace(/\(C\)+/g,"\xA9").replace(/\s+/g," ").trim(),r.brand=r.brand.replace(/CPU+/g,"").replace(/\s+/g," ").trim(),r.manufacturer=T0(r.brand);let e=r.brand.split(" ");return e.shift(),r.brand=e.join(" "),r}function F1(r){let e="0";for(let t in U1)if({}.hasOwnProperty.call(U1,t)){let n=t.split("|"),s=0;n.forEach(i=>{r.indexOf(i)>-1&&s++}),s===n.length&&(e=U1[t])}return parseFloat(e)}function Cle(){return new Promise(r=>{process.nextTick(()=>{let e="unknown",t={manufacturer:e,brand:e,vendor:"",family:"",model:"",stepping:"",revision:"",voltage:"",speed:0,speedMin:0,speedMax:0,governor:"",cores:pe.cores(),physicalCores:pe.cores(),performanceCores:pe.cores(),efficiencyCores:0,processors:1,socket:"",flags:"",virtualization:!1,cache:{}};_6().then(n=>{if(t.flags=n,t.virtualization=n.indexOf("vmx")>-1||n.indexOf("svm")>-1,C0&&Br("sysctl machdep.cpu hw.cpufrequency_max hw.cpufrequency_min hw.packages hw.physicalcpu_max hw.ncpu hw.tbfrequency hw.cpufamily hw.cpusubfamily",function(s,i){let o=i.toString().split(`
|
|
298
298
|
`),c=pe.getValue(o,"machdep.cpu.brand_string").split("@");t.brand=c[0].trim();let u=c[1]?c[1].trim():"0";t.speed=parseFloat(u.replace(/GHz+/g,""));let l=pe.getValue(o,"hw.tbfrequency")/1e9;l=l<.1?l*100:l,t.speed=t.speed===0?l:t.speed,tu=t.speed,t=y0(t),t.speedMin=pe.getValue(o,"hw.cpufrequency_min")?pe.getValue(o,"hw.cpufrequency_min")/1e9:t.speed,t.speedMax=pe.getValue(o,"hw.cpufrequency_max")?pe.getValue(o,"hw.cpufrequency_max")/1e9:t.speed,t.vendor=pe.getValue(o,"machdep.cpu.vendor")||"Apple",t.family=pe.getValue(o,"machdep.cpu.family")||pe.getValue(o,"hw.cpufamily"),t.model=pe.getValue(o,"machdep.cpu.model"),t.stepping=pe.getValue(o,"machdep.cpu.stepping")||pe.getValue(o,"hw.cpusubfamily"),t.virtualization=!0;let f=pe.getValue(o,"hw.packages"),p=pe.getValue(o,"hw.physicalcpu_max"),d=pe.getValue(o,"hw.ncpu");if(Zn.arch()==="arm64"){t.socket="SOC";try{let m=O0("ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type").toString().split(`
|
|
299
299
|
`),g=m.filter(E=>E.indexOf('"E"')>=0).length,h=m.filter(E=>E.indexOf('"P"')>=0).length;t.efficiencyCores=g,t.performanceCores=h}catch{pe.noop()}}f&&(t.processors=parseInt(f)||1),p&&d&&(t.cores=parseInt(d)||pe.cores(),t.physicalCores=parseInt(p)||pe.cores()),y6().then(m=>{t.cache=m,r(t)})}),ru){let s="",i=[];Zn.cpus()[0]&&Zn.cpus()[0].model&&(s=Zn.cpus()[0].model),Br('export LC_ALL=C; lscpu; echo -n "Governor: "; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 2>/dev/null; echo; unset LC_ALL',function(o,a){o||(i=a.toString().split(`
|
|
300
|
-
`)),s=pe.getValue(i,"model name")||s,s=pe.getValue(i,"bios model name")||s,s=pe.cleanString(s);let c=s.split("@");if(t.brand=c[0].trim(),t.brand.indexOf("Unknown")>=0&&(t.brand=t.brand.split("Unknown")[0].trim()),t.speed=c[1]?parseFloat(c[1].trim()):0,t.speed===0&&(t.brand.indexOf("AMD")>-1||t.brand.toLowerCase().indexOf("ryzen")>-1)&&(t.speed=
|
|
300
|
+
`)),s=pe.getValue(i,"model name")||s,s=pe.getValue(i,"bios model name")||s,s=pe.cleanString(s);let c=s.split("@");if(t.brand=c[0].trim(),t.brand.indexOf("Unknown")>=0&&(t.brand=t.brand.split("Unknown")[0].trim()),t.speed=c[1]?parseFloat(c[1].trim()):0,t.speed===0&&(t.brand.indexOf("AMD")>-1||t.brand.toLowerCase().indexOf("ryzen")>-1)&&(t.speed=F1(t.brand)),t.speed===0){let g=V1();g.avg!==0&&(t.speed=g.avg)}tu=t.speed,t.speedMin=Math.round(parseFloat(pe.getValue(i,"cpu min mhz").replace(/,/g,"."))/10)/100,t.speedMax=Math.round(parseFloat(pe.getValue(i,"cpu max mhz").replace(/,/g,"."))/10)/100,t=y0(t),t.vendor=T0(pe.getValue(i,"vendor id")),t.family=pe.getValue(i,"cpu family"),t.model=pe.getValue(i,"model:"),t.stepping=pe.getValue(i,"stepping"),t.revision=pe.getValue(i,"cpu revision"),t.cache.l1d=pe.getValue(i,"l1d cache"),t.cache.l1d&&(t.cache.l1d=parseInt(t.cache.l1d)*(t.cache.l1d.indexOf("M")!==-1?1024*1024:t.cache.l1d.indexOf("K")!==-1?1024:1)),t.cache.l1i=pe.getValue(i,"l1i cache"),t.cache.l1i&&(t.cache.l1i=parseInt(t.cache.l1i)*(t.cache.l1i.indexOf("M")!==-1?1024*1024:t.cache.l1i.indexOf("K")!==-1?1024:1)),t.cache.l2=pe.getValue(i,"l2 cache"),t.cache.l2&&(t.cache.l2=parseInt(t.cache.l2)*(t.cache.l2.indexOf("M")!==-1?1024*1024:t.cache.l2.indexOf("K")!==-1?1024:1)),t.cache.l3=pe.getValue(i,"l3 cache"),t.cache.l3&&(t.cache.l3=parseInt(t.cache.l3)*(t.cache.l3.indexOf("M")!==-1?1024*1024:t.cache.l3.indexOf("K")!==-1?1024:1));let u=pe.getValue(i,"thread(s) per core")||"1",l=pe.getValue(i,"socket(s)")||"1",f=parseInt(u,10),p=parseInt(l,10)||1,d=parseInt(pe.getValue(i,"core(s) per socket"),10);if(t.physicalCores=d?d*p:t.cores/f,t.performanceCores=f>1?t.cores-t.physicalCores:t.cores,t.efficiencyCores=f>1?t.cores-f*t.performanceCores:0,t.processors=p,t.governor=pe.getValue(i,"governor")||"",t.vendor==="ARM"&&pe.isRaspberry()){let g=pe.decodePiCpuinfo();t.family=t.manufacturer,t.manufacturer=g.manufacturer,t.brand=g.processor,t.revision=g.revisionCode,t.socket="SOC"}if(pe.getValue(i,"architecture")==="riscv64"){let g=A0.readFileSync("/proc/cpuinfo").toString().split(`
|
|
301
301
|
`),h=pe.getValue(g,"uarch")||"";if(h.indexOf(",")>-1){let E=h.split(",");t.manufacturer=T0(E[0]),t.brand=E[1]}}let m=[];Br('export LC_ALL=C; dmidecode \u2013t 4 2>/dev/null | grep "Upgrade: Socket"; unset LC_ALL',function(g,h){m=h.toString().split(`
|
|
302
302
|
`),m&&m.length&&(t.socket=pe.getValue(m,"Upgrade").replace("Socket","").trim()||t.socket),r(t)})})}if(D0||x0||b0){let s="",i=[];Zn.cpus()[0]&&Zn.cpus()[0].model&&(s=Zn.cpus()[0].model),Br("export LC_ALL=C; dmidecode -t 4; dmidecode -t 7 unset LC_ALL",function(o,a){let c=[];if(!o){let d=a.toString().split("# dmidecode"),m=d.length>1?d[1]:"";c=d.length>2?d[2].split("Cache Information"):[],i=m.split(`
|
|
303
|
-
`)}if(t.brand=s.split("@")[0].trim(),t.speed=s.split("@")[1]?parseFloat(s.split("@")[1].trim()):0,t.speed===0&&(t.brand.indexOf("AMD")>-1||t.brand.toLowerCase().indexOf("ryzen")>-1)&&(t.speed=
|
|
303
|
+
`)}if(t.brand=s.split("@")[0].trim(),t.speed=s.split("@")[1]?parseFloat(s.split("@")[1].trim()):0,t.speed===0&&(t.brand.indexOf("AMD")>-1||t.brand.toLowerCase().indexOf("ryzen")>-1)&&(t.speed=F1(t.brand)),t.speed===0){let d=V1();d.avg!==0&&(t.speed=d.avg)}tu=t.speed,t.speedMin=t.speed,t.speedMax=Math.round(parseFloat(pe.getValue(i,"max speed").replace(/Mhz/g,""))/10)/100,t=y0(t),t.vendor=T0(pe.getValue(i,"manufacturer"));let u=pe.getValue(i,"signature");u=u.split(",");for(let d=0;d<u.length;d++)u[d]=u[d].trim();t.family=pe.getValue(u,"Family"," ",!0),t.model=pe.getValue(u,"Model"," ",!0),t.stepping=pe.getValue(u,"Stepping"," ",!0),t.revision="";let l=parseFloat(pe.getValue(i,"voltage"));t.voltage=isNaN(l)?"":l.toFixed(2);for(let d=0;d<c.length;d++){i=c[d].split(`
|
|
304
304
|
`);let m=pe.getValue(i,"Socket Designation").toLowerCase().replace(" ","-").split("-");m=m.length?m[0]:"";let g=pe.getValue(i,"Installed Size").split(" "),h=parseInt(g[0],10),E=g.length>1?g[1]:"kb";h=h*(E==="kb"?1024:E==="mb"?1024*1024:E==="gb"?1024*1024*1024:1),m&&(m==="l1"?(t.cache[m+"d"]=h/2,t.cache[m+"i"]=h/2):t.cache[m]=h)}t.socket=pe.getValue(i,"Upgrade").replace("Socket","").trim();let f=pe.getValue(i,"thread count").trim(),p=pe.getValue(i,"core count").trim();p&&f&&(t.cores=parseInt(f,10),t.physicalCores=parseInt(p,10)),r(t)})}if(P0&&r(t),v0)try{let s=[];s.push(pe.powerShell("Get-CimInstance Win32_processor | select Name, Revision, L2CacheSize, L3CacheSize, Manufacturer, MaxClockSpeed, Description, UpgradeMethod, Caption, NumberOfLogicalProcessors, NumberOfCores | fl")),s.push(pe.powerShell("Get-CimInstance Win32_CacheMemory | select CacheType,InstalledSize,Level | fl")),s.push(pe.powerShell("(Get-CimInstance Win32_ComputerSystem).HypervisorPresent")),Promise.all(s).then(i=>{let o=i[0].split(`\r
|
|
305
|
-
`),a=pe.getValue(o,"name",":")||"";a.indexOf("@")>=0?(t.brand=a.split("@")[0].trim(),t.speed=a.split("@")[1]?parseFloat(a.split("@")[1].trim()):0,tu=t.speed):(t.brand=a.trim(),t.speed=0),t=y0(t),t.revision=pe.getValue(o,"revision",":"),t.vendor=pe.getValue(o,"manufacturer",":"),t.speedMax=Math.round(parseFloat(pe.getValue(o,"maxclockspeed",":").replace(/,/g,"."))/10)/100,t.speed===0&&(t.brand.indexOf("AMD")>-1||t.brand.toLowerCase().indexOf("ryzen")>-1)&&(t.speed=
|
|
306
|
-
`).filter(a=>a.length>0);for(let a in o)i.push(Math.floor(parseInt(o[a],10)/10)/100)}catch{pe.noop()}if(i?.length)try{for(let o in i)n=n+i[o],i[o]>t&&(t=i[o]),i[o]<e&&(e=i[o]),s.push(parseFloat(i[o].toFixed(2)));return n=n/i.length,{min:parseFloat(e.toFixed(2)),max:parseFloat(t.toFixed(2)),avg:parseFloat(n.toFixed(2)),cores:s}}catch{return{min:0,max:0,avg:0,cores:s}}else return{min:0,max:0,avg:0,cores:s}}function Dle(r){return new Promise(e=>{process.nextTick(()=>{let t=
|
|
305
|
+
`),a=pe.getValue(o,"name",":")||"";a.indexOf("@")>=0?(t.brand=a.split("@")[0].trim(),t.speed=a.split("@")[1]?parseFloat(a.split("@")[1].trim()):0,tu=t.speed):(t.brand=a.trim(),t.speed=0),t=y0(t),t.revision=pe.getValue(o,"revision",":"),t.vendor=pe.getValue(o,"manufacturer",":"),t.speedMax=Math.round(parseFloat(pe.getValue(o,"maxclockspeed",":").replace(/,/g,"."))/10)/100,t.speed===0&&(t.brand.indexOf("AMD")>-1||t.brand.toLowerCase().indexOf("ryzen")>-1)&&(t.speed=F1(t.brand)),t.speed===0&&(t.speed=t.speedMax),t.speedMin=t.speed;let c=pe.getValue(o,"description",":").split(" ");for(let g=0;g<c.length;g++)c[g].toLowerCase().startsWith("family")&&g+1<c.length&&c[g+1]&&(t.family=c[g+1]),c[g].toLowerCase().startsWith("model")&&g+1<c.length&&c[g+1]&&(t.model=c[g+1]),c[g].toLowerCase().startsWith("stepping")&&g+1<c.length&&c[g+1]&&(t.stepping=c[g+1]);let u=pe.getValue(o,"UpgradeMethod",":");E6[u]&&(t.socket=E6[u]);let l=Ole(a);l&&(t.socket=l);let f=pe.countLines(o,"Caption"),p=pe.getValue(o,"NumberOfLogicalProcessors",":"),d=pe.getValue(o,"NumberOfCores",":");f&&(t.processors=parseInt(f)||1),d&&p&&(t.cores=parseInt(p)||pe.cores(),t.physicalCores=parseInt(d)||pe.cores()),f>1&&(t.cores=t.cores*f,t.physicalCores=t.physicalCores*f),t.cache=T6(i[0],i[1]);let m=i[2]?i[2].toString().toLowerCase():"";t.virtualization=m.indexOf("true")!==-1,r(t)})}catch{r(t)}})})})}function vle(r){return new Promise(e=>{process.nextTick(()=>{Cle().then(t=>{r&&r(t),e(t)})})})}xs.cpu=vle;function V1(){let r=Zn.cpus(),e=999999999,t=0,n=0,s=[],i=[];if(r?.length&&Object.prototype.hasOwnProperty.call(r[0],"speed"))for(let o in r)i.push(r[o].speed>100?(r[o].speed+1)/1e3:r[o].speed/10);else if(ru)try{let o=O0('cat /proc/cpuinfo | grep "cpu MHz" | cut -d " " -f 3',pe.execOptsLinux).toString().split(`
|
|
306
|
+
`).filter(a=>a.length>0);for(let a in o)i.push(Math.floor(parseInt(o[a],10)/10)/100)}catch{pe.noop()}if(i?.length)try{for(let o in i)n=n+i[o],i[o]>t&&(t=i[o]),i[o]<e&&(e=i[o]),s.push(parseFloat(i[o].toFixed(2)));return n=n/i.length,{min:parseFloat(e.toFixed(2)),max:parseFloat(t.toFixed(2)),avg:parseFloat(n.toFixed(2)),cores:s}}catch{return{min:0,max:0,avg:0,cores:s}}else return{min:0,max:0,avg:0,cores:s}}function Dle(r){return new Promise(e=>{process.nextTick(()=>{let t=V1();if(t.avg===0&&tu!==0){let n=parseFloat(tu);t={min:n,max:n,avg:n,cores:[]}}r&&r(t),e(t)})})}xs.cpuCurrentSpeed=Dle;function xle(r){return new Promise(e=>{process.nextTick(()=>{let t={main:null,cores:[],max:null,socket:[],chipset:null};if(ru){try{let i=O0('cat /sys/class/thermal/thermal_zone*/type 2>/dev/null; echo "-----"; cat /sys/class/thermal/thermal_zone*/temp 2>/dev/null;',pe.execOptsLinux).toString().split(`-----
|
|
307
307
|
`);if(i.length===2){let o=i[0].split(`
|
|
308
308
|
`),a=i[1].split(`
|
|
309
309
|
`);for(let c=0;c<o.length;c++){let u=o[c].trim();u.startsWith("acpi")&&a[c]&&t.socket.push(Math.round(parseInt(a[c],10)/100)/10),u.startsWith("pch")&&a[c]&&(t.chipset=Math.round(parseInt(a[c],10)/100)/10)}}}catch{pe.noop()}let n='for mon in /sys/class/hwmon/hwmon*; do for label in "$mon"/temp*_label; do if [ -f $label ]; then value=${label%_*}_input; echo $(cat "$label")___$(cat "$value"); fi; done; done;';try{Br(n,function(s,i){i=i.toString();let o=i.toLowerCase().indexOf("tdie");o!==-1&&(i=i.substring(o));let a=i.split(`
|
|
@@ -321,13 +321,13 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
|
|
|
321
321
|
`),c=pe.getValue(a,"Socket Designation").toLowerCase().replace(" ","-").split("-");c=c.length?c[0]:"";let u=pe.getValue(a,"Installed Size").split(" "),l=parseInt(u[0],10),f=u.length>1?u[1]:"kb";l=l*(f==="kb"?1024:f==="mb"?1024*1024:f==="gb"?1024*1024*1024:1),c&&(c==="l1"?(t.cache[c+"d"]=l/2,t.cache[c+"i"]=l/2):t.cache[c]=l)}r&&r(t),e(t)}),C0&&Br("sysctl hw.l1icachesize hw.l1dcachesize hw.l2cachesize hw.l3cachesize",function(n,s){n||s.toString().split(`
|
|
322
322
|
`).forEach(function(o){let a=o.split(":");a[0].toLowerCase().indexOf("hw.l1icachesize")!==-1&&(t.l1d=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l1dcachesize")!==-1&&(t.l1i=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l2cachesize")!==-1&&(t.l2=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l3cachesize")!==-1&&(t.l3=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1))}),r&&r(t),e(t)}),P0&&(r&&r(t),e(t)),v0)try{let n=[];n.push(pe.powerShell("Get-CimInstance Win32_processor | select L2CacheSize, L3CacheSize | fl")),n.push(pe.powerShell("Get-CimInstance Win32_CacheMemory | select CacheType,InstalledSize,Level | fl")),Promise.all(n).then(s=>{t=T6(s[0],s[1]),r&&r(t),e(t)})}catch{r&&r(t),e(t)}})})}function T6(r,e){let t={l1d:null,l1i:null,l2:null,l3:null},n=r.split(`\r
|
|
323
323
|
`);t.l1d=0,t.l1i=0,t.l2=pe.getValue(n,"l2cachesize",":"),t.l3=pe.getValue(n,"l3cachesize",":"),t.l2?t.l2=parseInt(t.l2,10)*1024:t.l2=0,t.l3?t.l3=parseInt(t.l3,10)*1024:t.l3=0;let s=e.split(/\n\s*\n/),i=0,o=0,a=0;return s.forEach(function(c){let u=c.split(`\r
|
|
324
|
-
`),l=pe.getValue(u,"CacheType"),f=pe.getValue(u,"Level"),p=pe.getValue(u,"InstalledSize");f==="3"&&l==="3"&&(t.l1i=t.l1i+parseInt(p,10)*1024),f==="3"&&l==="4"&&(t.l1d=t.l1d+parseInt(p,10)*1024),f==="3"&&l==="5"&&(i=parseInt(p,10)/2,o=parseInt(p,10)/2),f==="4"&&l==="5"&&(a=a+parseInt(p,10)*1024)}),!t.l1i&&!t.l1d&&(t.l1i=i,t.l1d=o),a&&(t.l2=a),t}xs.cpuCache=y6;function ble(){return new Promise(r=>{process.nextTick(()=>{let e=Zn.loadavg().map(function(i){return i/pe.cores()}),t=parseFloat(Math.max.apply(Math,e).toFixed(2)),n={};if(Date.now()-tt.ms>=200){tt.ms=Date.now();let i=Zn.cpus().map(function(E){return E.times.steal=0,E.times.guest=0,E}),o=0,a=0,c=0,u=0,l=0,f=0,p=0,d=[];if(
|
|
325
|
-
`);if(E.length>1&&(E.shift(),E.length===i.length))for(let _=0;_<E.length;_++){let S=E[_].split(" ");if(S.length>=10){let T=parseFloat(S[8])||0,y=parseFloat(S[9])||0;i[_].times.steal=T,i[_].times.guest=y}}}catch{pe.noop()}for(let E=0;E<
|
|
324
|
+
`),l=pe.getValue(u,"CacheType"),f=pe.getValue(u,"Level"),p=pe.getValue(u,"InstalledSize");f==="3"&&l==="3"&&(t.l1i=t.l1i+parseInt(p,10)*1024),f==="3"&&l==="4"&&(t.l1d=t.l1d+parseInt(p,10)*1024),f==="3"&&l==="5"&&(i=parseInt(p,10)/2,o=parseInt(p,10)/2),f==="4"&&l==="5"&&(a=a+parseInt(p,10)*1024)}),!t.l1i&&!t.l1d&&(t.l1i=i,t.l1d=o),a&&(t.l2=a),t}xs.cpuCache=y6;function ble(){return new Promise(r=>{process.nextTick(()=>{let e=Zn.loadavg().map(function(i){return i/pe.cores()}),t=parseFloat(Math.max.apply(Math,e).toFixed(2)),n={};if(Date.now()-tt.ms>=200){tt.ms=Date.now();let i=Zn.cpus().map(function(E){return E.times.steal=0,E.times.guest=0,E}),o=0,a=0,c=0,u=0,l=0,f=0,p=0,d=[];if(B1=i&&i.length?i.length:0,ru)try{let E=O0("cat /proc/stat 2>/dev/null | grep cpu",pe.execOptsLinux).toString().split(`
|
|
325
|
+
`);if(E.length>1&&(E.shift(),E.length===i.length))for(let _=0;_<E.length;_++){let S=E[_].split(" ");if(S.length>=10){let T=parseFloat(S[8])||0,y=parseFloat(S[9])||0;i[_].times.steal=T,i[_].times.guest=y}}}catch{pe.noop()}for(let E=0;E<B1;E++){let _=i[E].times;o+=_.user,a+=_.sys,c+=_.nice,l+=_.idle,u+=_.irq,f+=_.steal||0,p+=_.guest||0;let S=ae&&ae[E]&&ae[E].totalTick?ae[E].totalTick:0,T=ae&&ae[E]&&ae[E].totalLoad?ae[E].totalLoad:0,y=ae&&ae[E]&&ae[E].user?ae[E].user:0,b=ae&&ae[E]&&ae[E].sys?ae[E].sys:0,C=ae&&ae[E]&&ae[E].nice?ae[E].nice:0,D=ae&&ae[E]&&ae[E].idle?ae[E].idle:0,A=ae&&ae[E]&&ae[E].irq?ae[E].irq:0,v=ae&&ae[E]&&ae[E].steal?ae[E].steal:0,I=ae&&ae[E]&&ae[E].guest?ae[E].guest:0;ae[E]=_,ae[E].totalTick=ae[E].user+ae[E].sys+ae[E].nice+ae[E].irq+ae[E].steal+ae[E].guest+ae[E].idle,ae[E].totalLoad=ae[E].user+ae[E].sys+ae[E].nice+ae[E].irq+ae[E].steal+ae[E].guest,ae[E].currentTick=ae[E].totalTick-S,ae[E].load=ae[E].totalLoad-T,ae[E].loadUser=ae[E].user-y,ae[E].loadSystem=ae[E].sys-b,ae[E].loadNice=ae[E].nice-C,ae[E].loadIdle=ae[E].idle-D,ae[E].loadIrq=ae[E].irq-A,ae[E].loadSteal=ae[E].steal-v,ae[E].loadGuest=ae[E].guest-I,d[E]={},d[E].load=ae[E].load/ae[E].currentTick*100,d[E].loadUser=ae[E].loadUser/ae[E].currentTick*100,d[E].loadSystem=ae[E].loadSystem/ae[E].currentTick*100,d[E].loadNice=ae[E].loadNice/ae[E].currentTick*100,d[E].loadIdle=ae[E].loadIdle/ae[E].currentTick*100,d[E].loadIrq=ae[E].loadIrq/ae[E].currentTick*100,d[E].loadSteal=ae[E].loadSteal/ae[E].currentTick*100,d[E].loadGuest=ae[E].loadGuest/ae[E].currentTick*100,d[E].rawLoad=ae[E].load,d[E].rawLoadUser=ae[E].loadUser,d[E].rawLoadSystem=ae[E].loadSystem,d[E].rawLoadNice=ae[E].loadNice,d[E].rawLoadIdle=ae[E].loadIdle,d[E].rawLoadIrq=ae[E].loadIrq,d[E].rawLoadSteal=ae[E].loadSteal,d[E].rawLoadGuest=ae[E].loadGuest}let m=o+a+c+u+f+p+l,g=o+a+c+u+f+p,h=m-tt.tick;n={avgLoad:t,currentLoad:(g-tt.load)/h*100,currentLoadUser:(o-tt.user)/h*100,currentLoadSystem:(a-tt.system)/h*100,currentLoadNice:(c-tt.nice)/h*100,currentLoadIdle:(l-tt.idle)/h*100,currentLoadIrq:(u-tt.irq)/h*100,currentLoadSteal:(f-tt.steal)/h*100,currentLoadGuest:(p-tt.guest)/h*100,rawCurrentLoad:g-tt.load,rawCurrentLoadUser:o-tt.user,rawCurrentLoadSystem:a-tt.system,rawCurrentLoadNice:c-tt.nice,rawCurrentLoadIdle:l-tt.idle,rawCurrentLoadIrq:u-tt.irq,rawCurrentLoadSteal:f-tt.steal,rawCurrentLoadGuest:p-tt.guest,cpus:d},tt={user:o,nice:c,system:a,idle:l,irq:u,steal:f,guest:p,tick:m,load:g,ms:tt.ms,currentLoad:n.currentLoad,currentLoadUser:n.currentLoadUser,currentLoadSystem:n.currentLoadSystem,currentLoadNice:n.currentLoadNice,currentLoadIdle:n.currentLoadIdle,currentLoadIrq:n.currentLoadIrq,currentLoadSteal:n.currentLoadSteal,currentLoadGuest:n.currentLoadGuest,rawCurrentLoad:n.rawCurrentLoad,rawCurrentLoadUser:n.rawCurrentLoadUser,rawCurrentLoadSystem:n.rawCurrentLoadSystem,rawCurrentLoadNice:n.rawCurrentLoadNice,rawCurrentLoadIdle:n.rawCurrentLoadIdle,rawCurrentLoadIrq:n.rawCurrentLoadIrq,rawCurrentLoadSteal:n.rawCurrentLoadSteal,rawCurrentLoadGuest:n.rawCurrentLoadGuest}}else{let i=[];for(let o=0;o<B1;o++)i[o]={},i[o].load=ae[o].load/ae[o].currentTick*100,i[o].loadUser=ae[o].loadUser/ae[o].currentTick*100,i[o].loadSystem=ae[o].loadSystem/ae[o].currentTick*100,i[o].loadNice=ae[o].loadNice/ae[o].currentTick*100,i[o].loadIdle=ae[o].loadIdle/ae[o].currentTick*100,i[o].loadIrq=ae[o].loadIrq/ae[o].currentTick*100,i[o].rawLoad=ae[o].load,i[o].rawLoadUser=ae[o].loadUser,i[o].rawLoadSystem=ae[o].loadSystem,i[o].rawLoadNice=ae[o].loadNice,i[o].rawLoadIdle=ae[o].loadIdle,i[o].rawLoadIrq=ae[o].loadIrq,i[o].rawLoadSteal=ae[o].loadSteal,i[o].rawLoadGuest=ae[o].loadGuest;n={avgLoad:t,currentLoad:tt.currentLoad,currentLoadUser:tt.currentLoadUser,currentLoadSystem:tt.currentLoadSystem,currentLoadNice:tt.currentLoadNice,currentLoadIdle:tt.currentLoadIdle,currentLoadIrq:tt.currentLoadIrq,currentLoadSteal:tt.currentLoadSteal,currentLoadGuest:tt.currentLoadGuest,rawCurrentLoad:tt.rawCurrentLoad,rawCurrentLoadUser:tt.rawCurrentLoadUser,rawCurrentLoadSystem:tt.rawCurrentLoadSystem,rawCurrentLoadNice:tt.rawCurrentLoadNice,rawCurrentLoadIdle:tt.rawCurrentLoadIdle,rawCurrentLoadIrq:tt.rawCurrentLoadIrq,rawCurrentLoadSteal:tt.rawCurrentLoadSteal,rawCurrentLoadGuest:tt.rawCurrentLoadGuest,cpus:i}}r(n)})})}function Ple(r){return new Promise(e=>{process.nextTick(()=>{ble().then(t=>{r&&r(t),e(t)})})})}xs.currentLoad=Ple;function Ile(){return new Promise(r=>{process.nextTick(()=>{let e=Zn.cpus(),t=0,n=0,s=0,i=0,o=0,a=0;if(e&&e.length){for(let u=0,l=e.length;u<l;u++){let f=e[u].times;t+=f.user,n+=f.sys,s+=f.nice,i+=f.irq,o+=f.idle}let c=o+i+s+n+t;a=(c-o)/c*100}r(a)})})}function wle(r){return new Promise(e=>{process.nextTick(()=>{Ile().then(t=>{r&&r(t),e(t)})})})}xs.fullLoad=wle});var w6=x(G1=>{"use strict";var Ei=W("os"),af=W("child_process").exec,I0=W("child_process").execSync,ge=kt(),Rle=W("fs"),bs=process.platform,C6=bs==="linux"||bs==="android",v6=bs==="darwin",D6=bs==="win32",x6=bs==="freebsd",b6=bs==="openbsd",P6=bs==="netbsd",I6=bs==="sunos",O6={"00CE":"Samsung Electronics Inc","014F":"Transcend Information Inc.","017A":"Apacer Technology Inc.","0198":"HyperX","029E":"Corsair","02FE":"Elpida","04CB":"A-DATA","04CD":"G.Skill International Enterprise","059B":"Crucial",1315:"Crucial","2C00":"Micron Technology Inc.",5105:"Qimonda AG i. In.","802C":"Micron Technology Inc.","80AD":"Hynix Semiconductor Inc.","80CE":"Samsung Electronics Inc.",8551:"Qimonda AG i. In.","859B":"Crucial",AD00:"Hynix Semiconductor Inc.",CE00:"Samsung Electronics Inc.",SAMSUNG:"Samsung Electronics Inc.",HYNIX:"Hynix Semiconductor Inc.","G-SKILL":"G-Skill International Enterprise","G.SKILL":"G-Skill International Enterprise",TRANSCEND:"Transcend Information",APACER:"Apacer Technology Inc",MICRON:"Micron Technology Inc.",QIMONDA:"Qimonda AG i. In."};function Lle(r){return new Promise(e=>{process.nextTick(()=>{let t={total:Ei.totalmem(),free:Ei.freemem(),used:Ei.totalmem()-Ei.freemem(),active:Ei.totalmem()-Ei.freemem(),available:Ei.freemem(),buffers:0,cached:0,slab:0,buffcache:0,reclaimable:0,swaptotal:0,swapused:0,swapfree:0,writeback:null,dirty:null};if(C6)try{Rle.readFile("/proc/meminfo",function(n,s){if(!n){let i=s.toString().split(`
|
|
326
326
|
`);t.total=parseInt(ge.getValue(i,"memtotal"),10),t.total=t.total?t.total*1024:Ei.totalmem(),t.free=parseInt(ge.getValue(i,"memfree"),10),t.free=t.free?t.free*1024:Ei.freemem(),t.used=t.total-t.free,t.buffers=parseInt(ge.getValue(i,"buffers"),10),t.buffers=t.buffers?t.buffers*1024:0,t.cached=parseInt(ge.getValue(i,"cached"),10),t.cached=t.cached?t.cached*1024:0,t.slab=parseInt(ge.getValue(i,"slab"),10),t.slab=t.slab?t.slab*1024:0,t.buffcache=t.buffers+t.cached+t.slab;let o=parseInt(ge.getValue(i,"memavailable"),10);t.available=o?o*1024:t.free+t.buffcache,t.active=t.total-t.available,t.swaptotal=parseInt(ge.getValue(i,"swaptotal"),10),t.swaptotal=t.swaptotal?t.swaptotal*1024:0,t.swapfree=parseInt(ge.getValue(i,"swapfree"),10),t.swapfree=t.swapfree?t.swapfree*1024:0,t.swapused=t.swaptotal-t.swapfree,t.writeback=parseInt(ge.getValue(i,"writeback"),10),t.writeback=t.writeback?t.writeback*1024:0,t.dirty=parseInt(ge.getValue(i,"dirty"),10),t.dirty=t.dirty?t.dirty*1024:0,t.reclaimable=parseInt(ge.getValue(i,"sreclaimable"),10),t.reclaimable=t.reclaimable?t.reclaimable*1024:0}r&&r(t),e(t)})}catch{r&&r(t),e(t)}if(x6||b6||P6)try{af("/sbin/sysctl hw.realmem hw.physmem vm.stats.vm.v_page_count vm.stats.vm.v_wire_count vm.stats.vm.v_active_count vm.stats.vm.v_inactive_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count vm.stats.vm.v_page_size",function(n,s){if(!n){let i=s.toString().split(`
|
|
327
327
|
`),o=parseInt(ge.getValue(i,"vm.stats.vm.v_page_size"),10),a=parseInt(ge.getValue(i,"vm.stats.vm.v_inactive_count"),10)*o,c=parseInt(ge.getValue(i,"vm.stats.vm.v_cache_count"),10)*o;t.total=parseInt(ge.getValue(i,"hw.realmem"),10),isNaN(t.total)&&(t.total=parseInt(ge.getValue(i,"hw.physmem"),10)),t.free=parseInt(ge.getValue(i,"vm.stats.vm.v_free_count"),10)*o,t.buffcache=a+c,t.available=t.buffcache+t.free,t.active=t.total-t.free-t.buffcache,t.swaptotal=0,t.swapfree=0,t.swapused=0}r&&r(t),e(t)})}catch{r&&r(t),e(t)}if(I6&&(r&&r(t),e(t)),v6){let n=4096;try{n=ge.toInt(I0("sysctl -n vm.pagesize").toString())||n}catch{ge.noop()}try{af('vm_stat 2>/dev/null | egrep "Pages active|Pages inactive"',function(s,i){if(!s){let o=i.toString().split(`
|
|
328
328
|
`);t.active=(parseInt(ge.getValue(o,"Pages active"),10)||0)*n,t.reclaimable=(parseInt(ge.getValue(o,"Pages inactive"),10)||0)*n,t.buffcache=t.used-t.active,t.available=t.free+t.buffcache}af("sysctl -n vm.swapusage 2>/dev/null",function(o,a){if(!o){let c=a.toString().split(`
|
|
329
329
|
`);c.length>0&&c[0].replace(/,/g,".").replace(/M/g,"").trim().split(" ").forEach(f=>{f.toLowerCase().indexOf("total")!==-1&&(t.swaptotal=parseFloat(f.split("=")[1].trim())*1024*1024),f.toLowerCase().indexOf("used")!==-1&&(t.swapused=parseFloat(f.split("=")[1].trim())*1024*1024),f.toLowerCase().indexOf("free")!==-1&&(t.swapfree=parseFloat(f.split("=")[1].trim())*1024*1024)})}r&&r(t),e(t)})})}catch{r&&r(t),e(t)}}if(D6){let n=0,s=0;try{ge.powerShell("Get-CimInstance Win32_PageFileUsage | Select AllocatedBaseSize, CurrentUsage").then((i,o)=>{o||i.split(`\r
|
|
330
|
-
`).filter(c=>c.trim()!=="").filter((c,u)=>u>0).forEach(function(c){c!==""&&(c=c.trim().split(/\s\s+/),n=n+(parseInt(c[0],10)||0),s=s+(parseInt(c[1],10)||0))}),t.swaptotal=n*1024*1024,t.swapused=s*1024*1024,t.swapfree=t.swaptotal-t.swapused,r&&r(t),e(t)})}catch{r&&r(t),e(t)}}})})}
|
|
330
|
+
`).filter(c=>c.trim()!=="").filter((c,u)=>u>0).forEach(function(c){c!==""&&(c=c.trim().split(/\s\s+/),n=n+(parseInt(c[0],10)||0),s=s+(parseInt(c[1],10)||0))}),t.swaptotal=n*1024*1024,t.swapused=s*1024*1024,t.swapfree=t.swaptotal-t.swapused,r&&r(t),e(t)})}catch{r&&r(t),e(t)}}})})}G1.mem=Lle;function Mle(r){function e(t){let n=t.replace("0x","").toUpperCase();return n.length>=4&&{}.hasOwnProperty.call(O6,n)?O6[n]:t}return new Promise(t=>{process.nextTick(()=>{let n=[];if((C6||x6||b6||P6)&&af('export LC_ALL=C; dmidecode -t memory 2>/dev/null | grep -iE "Size:|Type|Speed|Manufacturer|Form Factor|Locator|Memory Device|Serial Number|Voltage|Part Number"; unset LC_ALL',function(s,i){if(!s){let o=i.toString().split("Memory Device");o.shift(),o.forEach(function(a){let c=a.split(`
|
|
331
331
|
`),u=ge.getValue(c,"Size"),l=u.indexOf("GB")>=0?parseInt(u,10)*1024*1024*1024:parseInt(u,10)*1024*1024,f=ge.getValue(c,"Bank Locator");if(f.toLowerCase().indexOf("bad")>=0&&(f=""),parseInt(ge.getValue(c,"Size"),10)>0){let p=ge.toInt(ge.getValue(c,"Total Width")),d=ge.toInt(ge.getValue(c,"Data Width"));n.push({size:l,bank:f,type:ge.getValue(c,"Type:"),ecc:d&&p?p>d:!1,clockSpeed:ge.getValue(c,"Configured Clock Speed:")?parseInt(ge.getValue(c,"Configured Clock Speed:"),10):ge.getValue(c,"Speed:")?parseInt(ge.getValue(c,"Speed:"),10):null,formFactor:ge.getValue(c,"Form Factor:"),manufacturer:e(ge.getValue(c,"Manufacturer:")),partNum:ge.getValue(c,"Part Number:"),serialNum:ge.getValue(c,"Serial Number:"),voltageConfigured:parseFloat(ge.getValue(c,"Configured Voltage:"))||null,voltageMin:parseFloat(ge.getValue(c,"Minimum Voltage:"))||null,voltageMax:parseFloat(ge.getValue(c,"Maximum Voltage:"))||null})}else n.push({size:0,bank:f,type:"Empty",ecc:null,clockSpeed:0,formFactor:ge.getValue(c,"Form Factor:"),partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null})})}if(!n.length){n.push({size:Ei.totalmem(),bank:"",type:"",ecc:null,clockSpeed:0,formFactor:"",partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null});try{let o=I0("cat /proc/cpuinfo 2>/dev/null",ge.execOptsLinux),a=o.toString().split(`
|
|
332
332
|
`),c=ge.getValue(a,"revision",":",!0).toLowerCase();if(ge.isRaspberry(a)){let u={0:400,1:450,2:450,3:3200,4:4267};n[0].type="LPDDR2",n[0].type=c&&c[2]&&c[2]==="3"?"LPDDR4":n[0].type,n[0].type=c&&c[2]&&c[2]==="4"?"LPDDR4X":n[0].type,n[0].ecc=!1,n[0].clockSpeed=c&&c[2]&&u[c[2]]||400,n[0].clockSpeed=c&&c[4]&&c[4]==="d"?500:n[0].clockSpeed,n[0].formFactor="SoC",o=I0("vcgencmd get_config sdram_freq 2>/dev/null",ge.execOptsLinux),a=o.toString().split(`
|
|
333
333
|
`);let l=parseInt(ge.getValue(a,"sdram_freq","=",!0),10)||0;l&&(n[0].clockSpeed=l),o=I0("vcgencmd measure_volts sdram_p 2>/dev/null",ge.execOptsLinux),a=o.toString().split(`
|
|
@@ -335,15 +335,15 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
|
|
|
335
335
|
`),a=ge.getValue(o,"ecc",":",!0).toLowerCase(),c=i.toString().split(" BANK "),u=!0;c.length===1&&(c=i.toString().split(" DIMM"),u=!1),c.shift(),c.forEach(function(l){let f=l.split(`
|
|
336
336
|
`),p=(u?"BANK ":"DIMM")+f[0].trim().split("/")[0],d=parseInt(ge.getValue(f," Size"));d?n.push({size:d*1024*1024*1024,bank:p,type:ge.getValue(f," Type:"),ecc:a?a==="enabled":null,clockSpeed:parseInt(ge.getValue(f," Speed:"),10),formFactor:"",manufacturer:e(ge.getValue(f," Manufacturer:")),partNum:ge.getValue(f," Part Number:"),serialNum:ge.getValue(f," Serial Number:"),voltageConfigured:null,voltageMin:null,voltageMax:null}):n.push({size:0,bank:p,type:"Empty",ecc:null,clockSpeed:0,formFactor:"",manufacturer:"",partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null})})}if(!n.length){let o=i.toString().split(`
|
|
337
337
|
`),a=parseInt(ge.getValue(o," Memory:")),c=ge.getValue(o," Type:"),u=ge.getValue(o," Manufacturer:");a&&c&&n.push({size:a*1024*1024*1024,bank:"0",type:c,ecc:!1,clockSpeed:null,formFactor:"SOC",manufacturer:e(u),partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null})}r&&r(n),t(n)}),I6&&(r&&r(n),t(n)),D6){let s="Unknown|Other|DRAM|Synchronous DRAM|Cache DRAM|EDO|EDRAM|VRAM|SRAM|RAM|ROM|FLASH|EEPROM|FEPROM|EPROM|CDRAM|3DRAM|SDRAM|SGRAM|RDRAM|DDR|DDR2|DDR2 FB-DIMM|Reserved|DDR3|FBD2|DDR4|LPDDR|LPDDR2|LPDDR3|LPDDR4|Logical non-volatile device|HBM|HBM2|DDR5|LPDDR5".split("|"),i="Unknown|Other|SIP|DIP|ZIP|SOJ|Proprietary|SIMM|DIMM|TSOP|PGA|RIMM|SODIMM|SRIMM|SMD|SSMP|QFP|TQFP|SOIC|LCC|PLCC|BGA|FPBGA|LGA".split("|");try{ge.powerShell("Get-CimInstance Win32_PhysicalMemory | select DataWidth,TotalWidth,Capacity,BankLabel,MemoryType,SMBIOSMemoryType,ConfiguredClockSpeed,Speed,FormFactor,Manufacturer,PartNumber,SerialNumber,ConfiguredVoltage,MinVoltage,MaxVoltage,Tag | fl").then((o,a)=>{if(!a){let c=o.toString().split(/\n\s*\n/);c.shift(),c.forEach(function(u){let l=u.split(`\r
|
|
338
|
-
`),f=ge.toInt(ge.getValue(l,"DataWidth",":")),p=ge.toInt(ge.getValue(l,"TotalWidth",":")),d=parseInt(ge.getValue(l,"Capacity",":"),10)||0,m=ge.getValue(l,"Tag",":"),g=ge.splitByNumber(m);d&&n.push({size:d,bank:ge.getValue(l,"BankLabel",":")+(g[1]?"/"+g[1]:""),type:s[parseInt(ge.getValue(l,"MemoryType",":"),10)||parseInt(ge.getValue(l,"SMBIOSMemoryType",":"),10)],ecc:f&&p?p>f:!1,clockSpeed:parseInt(ge.getValue(l,"ConfiguredClockSpeed",":"),10)||parseInt(ge.getValue(l,"Speed",":"),10)||0,formFactor:i[parseInt(ge.getValue(l,"FormFactor",":"),10)||0],manufacturer:e(ge.getValue(l,"Manufacturer",":")),partNum:ge.getValue(l,"PartNumber",":"),serialNum:ge.getValue(l,"SerialNumber",":"),voltageConfigured:(parseInt(ge.getValue(l,"ConfiguredVoltage",":"),10)||0)/1e3,voltageMin:(parseInt(ge.getValue(l,"MinVoltage",":"),10)||0)/1e3,voltageMax:(parseInt(ge.getValue(l,"MaxVoltage",":"),10)||0)/1e3})})}r&&r(n),t(n)})}catch{r&&r(n),t(n)}}})})}
|
|
338
|
+
`),f=ge.toInt(ge.getValue(l,"DataWidth",":")),p=ge.toInt(ge.getValue(l,"TotalWidth",":")),d=parseInt(ge.getValue(l,"Capacity",":"),10)||0,m=ge.getValue(l,"Tag",":"),g=ge.splitByNumber(m);d&&n.push({size:d,bank:ge.getValue(l,"BankLabel",":")+(g[1]?"/"+g[1]:""),type:s[parseInt(ge.getValue(l,"MemoryType",":"),10)||parseInt(ge.getValue(l,"SMBIOSMemoryType",":"),10)],ecc:f&&p?p>f:!1,clockSpeed:parseInt(ge.getValue(l,"ConfiguredClockSpeed",":"),10)||parseInt(ge.getValue(l,"Speed",":"),10)||0,formFactor:i[parseInt(ge.getValue(l,"FormFactor",":"),10)||0],manufacturer:e(ge.getValue(l,"Manufacturer",":")),partNum:ge.getValue(l,"PartNumber",":"),serialNum:ge.getValue(l,"SerialNumber",":"),voltageConfigured:(parseInt(ge.getValue(l,"ConfiguredVoltage",":"),10)||0)/1e3,voltageMin:(parseInt(ge.getValue(l,"MinVoltage",":"),10)||0)/1e3,voltageMax:(parseInt(ge.getValue(l,"MaxVoltage",":"),10)||0)/1e3})})}r&&r(n),t(n)})}catch{r&&r(n),t(n)}}})})}G1.memLayout=Mle});var M6=x((OOe,L6)=>{"use strict";var R6=W("child_process").exec,nu=W("fs"),$e=kt(),Ps=process.platform,Nle=Ps==="linux"||Ps==="android",Ble=Ps==="darwin",Ule=Ps==="win32",Fle=Ps==="freebsd",Vle=Ps==="openbsd",Gle=Ps==="netbsd",kle=Ps==="sunos";function jle(r,e,t){let n={},s=$e.getValue(r,"BatteryStatus",":").trim();if(s>=0){let i=s?parseInt(s):0;n.status=i,n.hasBattery=!0,n.maxCapacity=t||parseInt($e.getValue(r,"DesignCapacity",":")||0),n.designedCapacity=parseInt($e.getValue(r,"DesignCapacity",":")||e),n.voltage=parseInt($e.getValue(r,"DesignVoltage",":")||0)/1e3,n.capacityUnit="mWh",n.percent=parseInt($e.getValue(r,"EstimatedChargeRemaining",":")||0),n.currentCapacity=parseInt(n.maxCapacity*n.percent/100),n.isCharging=i>=6&&i<=9||i===11||i!==3&&i!==1&&n.percent<100,n.acConnected=n.isCharging||i===2,n.model=$e.getValue(r,"DeviceID",":")}else n.status=-1;return n}L6.exports=function(r){return new Promise(e=>{process.nextTick(()=>{let t={hasBattery:!1,cycleCount:0,isCharging:!1,designedCapacity:0,maxCapacity:0,currentCapacity:0,voltage:0,capacityUnit:"",percent:0,timeRemaining:null,acConnected:!0,type:"",model:"",manufacturer:"",serial:""};if(Nle){let n="";nu.existsSync("/sys/class/power_supply/BAT1/uevent")?n="/sys/class/power_supply/BAT1/":nu.existsSync("/sys/class/power_supply/BAT0/uevent")&&(n="/sys/class/power_supply/BAT0/");let s=!1,i="";nu.existsSync("/sys/class/power_supply/AC/online")?i="/sys/class/power_supply/AC/online":nu.existsSync("/sys/class/power_supply/AC0/online")&&(i="/sys/class/power_supply/AC0/online"),i&&(s=nu.readFileSync(i).toString().trim()==="1"),n?nu.readFile(n+"uevent",function(o,a){if(o)r&&r(t),e(t);else{let c=a.toString().split(`
|
|
339
339
|
`);t.isCharging=$e.getValue(c,"POWER_SUPPLY_STATUS","=").toLowerCase()==="charging",t.acConnected=s||t.isCharging,t.voltage=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_VOLTAGE_NOW","="),10)/1e6,t.capacityUnit=t.voltage?"mWh":"mAh",t.cycleCount=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_CYCLE_COUNT","="),10),t.maxCapacity=Math.round(parseInt("0"+$e.getValue(c,"POWER_SUPPLY_CHARGE_FULL","=",!0,!0),10)/1e3*(t.voltage||1));let u=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_VOLTAGE_MIN_DESIGN","="),10)/1e6;t.designedCapacity=Math.round(parseInt("0"+$e.getValue(c,"POWER_SUPPLY_CHARGE_FULL_DESIGN","=",!0,!0),10)/1e3*(u||t.voltage||1)),t.currentCapacity=Math.round(parseInt("0"+$e.getValue(c,"POWER_SUPPLY_CHARGE_NOW","="),10)/1e3*(t.voltage||1)),t.maxCapacity||(t.maxCapacity=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_ENERGY_FULL","=",!0,!0),10)/1e3,t.designedCapacity=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_ENERGY_FULL_DESIGN","=",!0,!0),10)/1e3|t.maxCapacity,t.currentCapacity=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_ENERGY_NOW","="),10)/1e3);let l=$e.getValue(c,"POWER_SUPPLY_CAPACITY","="),f=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_ENERGY_NOW","="),10),p=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_POWER_NOW","="),10),d=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_CURRENT_NOW","="),10),m=parseInt("0"+$e.getValue(c,"POWER_SUPPLY_CHARGE_NOW","="),10);t.percent=parseInt("0"+l,10),t.maxCapacity&&t.currentCapacity&&(t.hasBattery=!0,l||(t.percent=100*t.currentCapacity/t.maxCapacity)),t.isCharging&&(t.hasBattery=!0),f&&p?t.timeRemaining=Math.floor(f/p*60):d&&m?t.timeRemaining=Math.floor(m/d*60):d&&t.currentCapacity&&(t.timeRemaining=Math.floor(t.currentCapacity/d*60)),t.type=$e.getValue(c,"POWER_SUPPLY_TECHNOLOGY","="),t.model=$e.getValue(c,"POWER_SUPPLY_MODEL_NAME","="),t.manufacturer=$e.getValue(c,"POWER_SUPPLY_MANUFACTURER","="),t.serial=$e.getValue(c,"POWER_SUPPLY_SERIAL_NUMBER","="),r&&r(t),e(t)}}):(r&&r(t),e(t))}if((Fle||Vle||Gle)&&R6("sysctl -i hw.acpi.battery hw.acpi.acline",function(n,s){let i=s.toString().split(`
|
|
340
340
|
`),o=parseInt("0"+$e.getValue(i,"hw.acpi.battery.units"),10),a=parseInt("0"+$e.getValue(i,"hw.acpi.battery.life"),10);t.hasBattery=o>0,t.cycleCount=null,t.isCharging=$e.getValue(i,"hw.acpi.acline")!=="1",t.acConnected=t.isCharging,t.maxCapacity=null,t.currentCapacity=null,t.capacityUnit="unknown",t.percent=o?a:null,r&&r(t),e(t)}),Ble&&R6('ioreg -n AppleSmartBattery -r | egrep "CycleCount|IsCharging|DesignCapacity|MaxCapacity|CurrentCapacity|DeviceName|BatterySerialNumber|Serial|TimeRemaining|Voltage"; pmset -g batt | grep %',function(n,s){if(s){let i=s.toString().replace(/ +/g,"").replace(/"+/g,"").replace(/-/g,"").split(`
|
|
341
341
|
`);t.cycleCount=parseInt("0"+$e.getValue(i,"cyclecount","="),10),t.voltage=parseInt("0"+$e.getValue(i,"voltage","="),10)/1e3,t.capacityUnit=t.voltage?"mWh":"mAh",t.maxCapacity=Math.round(parseInt("0"+$e.getValue(i,"applerawmaxcapacity","="),10)*(t.voltage||1)),t.currentCapacity=Math.round(parseInt("0"+$e.getValue(i,"applerawcurrentcapacity","="),10)*(t.voltage||1)),t.designedCapacity=Math.round(parseInt("0"+$e.getValue(i,"DesignCapacity","="),10)*(t.voltage||1)),t.manufacturer="Apple",t.serial=$e.getValue(i,"BatterySerialNumber","=")||$e.getValue(i,"Serial","="),t.model=$e.getValue(i,"DeviceName","=");let o=null,c=$e.getValue(i,"internal","Battery").split(";");if(c&&c[0]){let u=c[0].split(" ");u&&u[1]&&(o=parseFloat(u[1].trim().replace(/%/g,"")))}c&&c[1]?(t.isCharging=c[1].trim()==="charging",t.acConnected=c[1].trim()!=="discharging"):(t.isCharging=$e.getValue(i,"ischarging","=").toLowerCase()==="yes",t.acConnected=t.isCharging),t.maxCapacity&&t.currentCapacity&&(t.hasBattery=!0,t.type="Li-ion",t.percent=o!==null?o:Math.round(100*t.currentCapacity/t.maxCapacity),t.isCharging||(t.timeRemaining=parseInt("0"+$e.getValue(i,"TimeRemaining","="),10)))}r&&r(t),e(t)}),kle&&(r&&r(t),e(t)),Ule)try{let n=[];n.push($e.powerShell("Get-CimInstance Win32_Battery | select BatteryStatus, DesignCapacity, DesignVoltage, EstimatedChargeRemaining, DeviceID | fl")),n.push($e.powerShell("(Get-WmiObject -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity")),n.push($e.powerShell("(Get-CimInstance -Class BatteryFullChargedCapacity -Namespace ROOT/WMI).FullChargedCapacity")),$e.promiseAll(n).then(s=>{if(s){let i=s.results[0].split(/\n\s*\n/),o=[],a=l=>/\S/.test(l);for(let l=0;l<i.length;l++)a(i[l])&&(!o.length||!a(i[l-1]))&&o.push([]),a(i[l])&&o[o.length-1].push(i[l]);let c=s.results[1].split(`\r
|
|
342
342
|
`).filter(l=>l),u=s.results[2].split(`\r
|
|
343
343
|
`).filter(l=>l);if(o.length){let l=!1,f=[];for(let p=0;p<o.length;p++){let d=o[p][0].split(`\r
|
|
344
|
-
`),m=c&&c.length>=p+1&&c[p]?$e.toInt(c[p]):0,g=u&&u.length>=p+1&&u[p]?$e.toInt(u[p]):0,h=jle(d,m,g);!l&&h.status>0&&h.status!==10?(t.hasBattery=h.hasBattery,t.maxCapacity=h.maxCapacity,t.designedCapacity=h.designedCapacity,t.voltage=h.voltage,t.capacityUnit=h.capacityUnit,t.percent=h.percent,t.currentCapacity=h.currentCapacity,t.isCharging=h.isCharging,t.acConnected=h.acConnected,t.model=h.model,l=!0):h.status!==-1&&f.push({hasBattery:h.hasBattery,maxCapacity:h.maxCapacity,designedCapacity:h.designedCapacity,voltage:h.voltage,capacityUnit:h.capacityUnit,percent:h.percent,currentCapacity:h.currentCapacity,isCharging:h.isCharging,timeRemaining:null,acConnected:h.acConnected,model:h.model,type:"",manufacturer:"",serial:""})}!l&&f.length&&(t=f[0],f.shift()),f.length&&(t.additionalBatteries=f)}}r&&r(t),e(t)})}catch{r&&r(t),e(t)}})})}});var V6=x(F6=>{"use strict";var w0=W("fs"),iu=W("child_process").exec,
|
|
345
|
-
`);for(let _=0;_<h.length;_++)h[_]=h[_].replace("Bus Address:","").replace("0000:","").trim();h=h.filter(function(_){return _!=null&&_})}catch{_e.noop()}let E=1;return p.forEach(_=>{let S="";if(E<p.length&&p[E]&&(S=p[E],S.indexOf(":")>0&&(S=S.split(":")[1])),_.trim()!==""){if(_[0]!==" "&&_[0]!==" "){let T=h.indexOf(_.split(" ")[0])>=0,y=_.toLowerCase().indexOf(" vga "),b=_.toLowerCase().indexOf("3d controller");if(y!==-1||b!==-1){b!==-1&&y===-1&&(y=b),(m.vendor||m.model||m.bus||m.vram!==null||m.vramDynamic)&&(d.push(m),m={vendor:"",model:"",bus:"",busAddress:"",vram:null,vramDynamic:!1});let C=_.split(" ")[0];/[\da-fA-F]{2}:[\da-fA-F]{2}\.[\da-fA-F]/.test(C)&&(m.busAddress=C),g=!0;let D=_.search(/\[[0-9a-f]{4}:[0-9a-f]{4}]|$/),A=_.substr(y,D-y).split(":");if(m.busAddress=_.substr(0,y).trim(),A.length>1&&(A[1]=A[1].trim(),A[1].toLowerCase().indexOf("corporation")>=0?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("corporation")+11).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("corporation")+11,200).split("(")[0].trim(),m.bus=h.length>0&&T?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" inc.")>=0?((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" inc.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" inc.")+5,200).trim().split("(")[0].trim()),m.bus=h.length>0&&T?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" ltd.")>=0&&((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" ltd.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" ltd.")+5,200).trim().split("(")[0].trim())),m.model&&S.indexOf(m.model)!==-1)){let v=S.split(m.model)[0].trim();v&&(m.subVendor=v)}}else g=!1}if(g){let T=_.split(":");if(T.length>1&&T[0].replace(/ +/g,"").toLowerCase().indexOf("devicename")!==-1&&T[1].toLowerCase().indexOf("onboard")!==-1&&(m.bus="Onboard"),T.length>1&&T[0].replace(/ +/g,"").toLowerCase().indexOf("region")!==-1&&T[1].toLowerCase().indexOf("memory")!==-1){let y=T[1].split("=");y.length>1&&(m.vram=parseInt(y[1]))}}}E++}),(m.vendor||m.model||m.bus||m.busAddress||m.vram!==null||m.vramDynamic)&&d.push(m),d}function n(p,d){let m=/\[([^\]]+)\]\s+(\w+)\s+(.*)/,g=d.reduce((h,E)=>{let _=m.exec(E.trim());return _&&(h[_[1]]||(h[_[1]]={}),h[_[1]][_[2]]=_[3]),h},{});for(let h in g){let E=g[h];if(E.CL_DEVICE_TYPE==="CL_DEVICE_TYPE_GPU"){let _;if(E.CL_DEVICE_TOPOLOGY_AMD){let S=E.CL_DEVICE_TOPOLOGY_AMD.match(/[a-zA-Z0-9]+:\d+\.\d+/);S&&(_=S[0])}else if(E.CL_DEVICE_PCI_BUS_ID_NV&&E.CL_DEVICE_PCI_SLOT_ID_NV){let S=parseInt(E.CL_DEVICE_PCI_BUS_ID_NV),T=parseInt(E.CL_DEVICE_PCI_SLOT_ID_NV);if(!isNaN(S)&&!isNaN(T)){let y=S&255,b=T>>3&255,C=T&7;_=`${y.toString().padStart(2,"0")}:${b.toString().padStart(2,"0")}.${C}`}}if(_){let S=p.find(y=>y.busAddress===_);S||(S={vendor:"",model:"",bus:"",busAddress:_,vram:null,vramDynamic:!1},p.push(S)),S.vendor=E.CL_DEVICE_VENDOR,E.CL_DEVICE_BOARD_NAME_AMD?S.model=E.CL_DEVICE_BOARD_NAME_AMD:S.model=E.CL_DEVICE_NAME;let T=parseInt(E.CL_DEVICE_GLOBAL_MEM_SIZE);isNaN(T)||(S.vram=Math.round(T/1024/1024))}}}return p}function s(){if(cf)return cf;if(N6)try{let p=_e.WINDIR+"\\System32\\DriverStore\\FileRepository",m=w0.readdirSync(p).filter(g=>w0.readdirSync([p,g].join("/")).includes("nvidia-smi.exe")).reduce((g,h)=>{let E=w0.statSync([p,g,"nvidia-smi.exe"].join("/")),_=w0.statSync([p,h,"nvidia-smi.exe"].join("/"));return E.ctimeMs>_.ctimeMs?g:h});m&&(cf=[p,m,"nvidia-smi.exe"].join("/"))}catch{_e.noop()}else R0&&(cf="nvidia-smi");return cf}function i(p){let d=s();if(p=p||_e.execOptsWin,d){let g=d+" "+"--query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits"+(R0?" 2>/dev/null":"");R0&&(p.stdio=["pipe","pipe","ignore"]);try{let h=_e.sanitizeShellString(g);return
|
|
346
|
-
`).filter(Boolean).map(h=>{let E=h.split(", ").map(_=>_.includes("N/A")?void 0:_);return E.length===16?{driverVersion:E[0],subDeviceId:E[1],name:E[2],pciBus:E[3],fanSpeed:p(E[4]),memoryTotal:p(E[5]),memoryUsed:p(E[6]),memoryFree:p(E[7]),utilizationGpu:p(E[8]),utilizationMemory:p(E[9]),temperatureGpu:p(E[10]),temperatureMemory:p(E[11]),powerDraw:p(E[12]),powerLimit:p(E[13]),clockCore:p(E[14]),clockMemory:p(E[15])}:{}});return g=g.filter(h=>"pciBus"in h),g}function a(p,d){return d.driverVersion&&(p.driverVersion=d.driverVersion),d.subDeviceId&&(p.subDeviceId=d.subDeviceId),d.name&&(p.name=d.name),d.pciBus&&(p.pciBus=d.pciBus),d.fanSpeed&&(p.fanSpeed=d.fanSpeed),d.memoryTotal&&(p.memoryTotal=d.memoryTotal,p.vram=d.memoryTotal,p.vramDynamic=!1),d.memoryUsed&&(p.memoryUsed=d.memoryUsed),d.memoryFree&&(p.memoryFree=d.memoryFree),d.utilizationGpu&&(p.utilizationGpu=d.utilizationGpu),d.utilizationMemory&&(p.utilizationMemory=d.utilizationMemory),d.temperatureGpu&&(p.temperatureGpu=d.temperatureGpu),d.temperatureMemory&&(p.temperatureMemory=d.temperatureMemory),d.powerDraw&&(p.powerDraw=d.powerDraw),d.powerLimit&&(p.powerLimit=d.powerLimit),d.clockCore&&(p.clockCore=d.clockCore),d.clockMemory&&(p.clockMemory=d.clockMemory),p}function c(p){let d={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},m=108;if(p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),d.resolutionX=parseInt("0x0"+p.substr(m+8,1)+p.substr(m+4,2)),d.resolutionY=parseInt("0x0"+p.substr(m+14,1)+p.substr(m+10,2)),d.sizeX=parseInt("0x0"+p.substr(m+28,1)+p.substr(m+24,2)),d.sizeY=parseInt("0x0"+p.substr(m+29,1)+p.substr(m+26,2)),m=p.indexOf("000000fc00"),m>=0){let g=p.substr(m+10,26);g.indexOf("0a")!==-1&&(g=g.substr(0,g.indexOf("0a")));try{g.length>2&&(d.model=g.match(/.{1,2}/g).map(function(h){return String.fromCharCode(parseInt(h,16))}).join(""))}catch{_e.noop()}}else d.model="";return d}function u(p,d){let m=[],g={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},h=!1,E=!1,_="",S=0;for(let T=1;T<p.length;T++)if(p[T].trim()!==""){if(p[T][0]!==" "&&p[T][0]!==" "&&p[T].toLowerCase().indexOf(" connected ")!==-1){(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&(m.push(g),g={vendor:"",model:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null});let y=p[T].split(" ");g.connection=y[0],g.main=p[T].toLowerCase().indexOf(" primary ")>=0,g.builtin=y[0].toLowerCase().indexOf("edp")>=0}if(h)if(p[T].search(/\S|$/)>S)_+=p[T].toLowerCase().trim();else{let y=c(_);g.vendor=y.vendor,g.model=y.model,g.resolutionX=y.resolutionX,g.resolutionY=y.resolutionY,g.sizeX=y.sizeX,g.sizeY=y.sizeY,g.pixelDepth=d,h=!1}if(p[T].toLowerCase().indexOf("edid:")>=0&&(h=!0,S=p[T].search(/\S|$/)),p[T].toLowerCase().indexOf("*current")>=0){let y=p[T].split("(");if(y&&y.length>1&&y[0].indexOf("x")>=0){let b=y[0].trim().split("x");g.currentResX=_e.toInt(b[0]),g.currentResY=_e.toInt(b[1])}E=!0}if(E&&p[T].toLowerCase().indexOf("clock")>=0&&p[T].toLowerCase().indexOf("hz")>=0&&p[T].toLowerCase().indexOf("v: height")>=0){let y=p[T].split("clock");y&&y.length>1&&y[1].toLowerCase().indexOf("hz")>=0&&(g.currentRefreshRate=_e.toInt(y[1])),E=!1}}return(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&m.push(g),m}return new Promise(p=>{process.nextTick(()=>{let d={controllers:[],displays:[]};if(qle&&iu("system_profiler -xml -detailLevel full SPDisplaysDataType",function(g,h){if(!g){try{let E=h.toString();d=e(_e.plistParser(E)[0]._items)}catch{_e.noop()}try{h=
|
|
344
|
+
`),m=c&&c.length>=p+1&&c[p]?$e.toInt(c[p]):0,g=u&&u.length>=p+1&&u[p]?$e.toInt(u[p]):0,h=jle(d,m,g);!l&&h.status>0&&h.status!==10?(t.hasBattery=h.hasBattery,t.maxCapacity=h.maxCapacity,t.designedCapacity=h.designedCapacity,t.voltage=h.voltage,t.capacityUnit=h.capacityUnit,t.percent=h.percent,t.currentCapacity=h.currentCapacity,t.isCharging=h.isCharging,t.acConnected=h.acConnected,t.model=h.model,l=!0):h.status!==-1&&f.push({hasBattery:h.hasBattery,maxCapacity:h.maxCapacity,designedCapacity:h.designedCapacity,voltage:h.voltage,capacityUnit:h.capacityUnit,percent:h.percent,currentCapacity:h.currentCapacity,isCharging:h.isCharging,timeRemaining:null,acConnected:h.acConnected,model:h.model,type:"",manufacturer:"",serial:""})}!l&&f.length&&(t=f[0],f.shift()),f.length&&(t.additionalBatteries=f)}}r&&r(t),e(t)})}catch{r&&r(t),e(t)}})})}});var V6=x(F6=>{"use strict";var w0=W("fs"),iu=W("child_process").exec,k1=W("child_process").execSync,_e=kt(),Is=process.platform,cf="",R0=Is==="linux"||Is==="android",qle=Is==="darwin",N6=Is==="win32",Hle=Is==="freebsd",$le=Is==="openbsd",Wle=Is==="netbsd",Yle=Is==="sunos",uf=0,lf=0,L0=0,M0=0,B6={"-2":"UNINITIALIZED","-1":"OTHER",0:"HD15",1:"SVIDEO",2:"Composite video",3:"Component video",4:"DVI",5:"HDMI",6:"LVDS",8:"D_JPN",9:"SDI",10:"DP",11:"DP embedded",12:"UDI",13:"UDI embedded",14:"SDTVDONGLE",15:"MIRACAST","2147483648":"INTERNAL"};function U6(r){let e=[{pattern:"^LG.+",manufacturer:"LG"},{pattern:"^BENQ.+",manufacturer:"BenQ"},{pattern:"^ASUS.+",manufacturer:"Asus"},{pattern:"^DELL.+",manufacturer:"Dell"},{pattern:"^SAMSUNG.+",manufacturer:"Samsung"},{pattern:"^VIEWSON.+",manufacturer:"ViewSonic"},{pattern:"^SONY.+",manufacturer:"Sony"},{pattern:"^ACER.+",manufacturer:"Acer"},{pattern:"^AOC.+",manufacturer:"AOC Monitors"},{pattern:"^HP.+",manufacturer:"HP"},{pattern:"^EIZO.?",manufacturer:"Eizo"},{pattern:"^PHILIPS.?",manufacturer:"Philips"},{pattern:"^IIYAMA.?",manufacturer:"Iiyama"},{pattern:"^SHARP.?",manufacturer:"Sharp"},{pattern:"^NEC.?",manufacturer:"NEC"},{pattern:"^LENOVO.?",manufacturer:"Lenovo"},{pattern:"COMPAQ.?",manufacturer:"Compaq"},{pattern:"APPLE.?",manufacturer:"Apple"},{pattern:"INTEL.?",manufacturer:"Intel"},{pattern:"AMD.?",manufacturer:"AMD"},{pattern:"NVIDIA.?",manufacturer:"NVDIA"}],t="";return r&&(r=r.toUpperCase(),e.forEach(n=>{RegExp(n.pattern).test(r)&&(t=n.manufacturer)})),t}function zle(r){return{610:"Apple","1e6d":"LG","10ac":"DELL","4dd9":"Sony","38a3":"NEC"}[r]||""}function Kle(r){let e="";return r=(r||"").toLowerCase(),r.indexOf("apple")>=0?e="0x05ac":r.indexOf("nvidia")>=0?e="0x10de":r.indexOf("intel")>=0?e="0x8086":(r.indexOf("ati")>=0||r.indexOf("amd")>=0)&&(e="0x1002"),e}function Xle(r){return{spdisplays_mtlgpufamilymac1:"mac1",spdisplays_mtlgpufamilymac2:"mac2",spdisplays_mtlgpufamilyapple1:"apple1",spdisplays_mtlgpufamilyapple2:"apple2",spdisplays_mtlgpufamilyapple3:"apple3",spdisplays_mtlgpufamilyapple4:"apple4",spdisplays_mtlgpufamilyapple5:"apple5",spdisplays_mtlgpufamilyapple6:"apple6",spdisplays_mtlgpufamilyapple7:"apple7",spdisplays_metalfeaturesetfamily11:"family1_v1",spdisplays_metalfeaturesetfamily12:"family1_v2",spdisplays_metalfeaturesetfamily13:"family1_v3",spdisplays_metalfeaturesetfamily14:"family1_v4",spdisplays_metalfeaturesetfamily21:"family2_v1"}[r]||""}function Jle(r){function e(p){let d={controllers:[],displays:[]};try{return p.forEach(function(m){let g=(m.sppci_bus||"").indexOf("builtin")>-1?"Built-In":(m.sppci_bus||"").indexOf("pcie")>-1?"PCIe":"",h=(parseInt(m.spdisplays_vram||"",10)||0)*((m.spdisplays_vram||"").indexOf("GB")>-1?1024:1),E=(parseInt(m.spdisplays_vram_shared||"",10)||0)*((m.spdisplays_vram_shared||"").indexOf("GB")>-1?1024:1),_=Xle(m.spdisplays_metal||m.spdisplays_metalfamily||"");d.controllers.push({vendor:U6(m.spdisplays_vendor||"")||m.spdisplays_vendor||"",model:m.sppci_model||"",bus:g,vramDynamic:g==="Built-In",vram:h||E||null,deviceId:m["spdisplays_device-id"]||"",vendorId:m["spdisplays_vendor-id"]||Kle((m.spdisplays_vendor||"")+(m.sppci_model||"")),external:m.sppci_device_type==="spdisplays_egpu",cores:m.sppci_cores||null,metalVersion:_}),m.spdisplays_ndrvs&&m.spdisplays_ndrvs.length&&m.spdisplays_ndrvs.forEach(function(S){let T=S.spdisplays_connection_type||"",y=(S._spdisplays_resolution||"").split("@"),b=y[0].split("x"),C=(S._spdisplays_pixels||"").split("x"),D=S.spdisplays_depth||"",A=S["_spdisplays_display-serial-number"]||S["_spdisplays_display-serial-number2"]||null;d.displays.push({vendor:zle(S["_spdisplays_display-vendor-id"]||"")||U6(S._name||""),vendorId:S["_spdisplays_display-vendor-id"]||"",model:S._name||"",productionYear:S["_spdisplays_display-year"]||null,serial:A!=="0"?A:null,displayId:S._spdisplays_displayID||null,main:S.spdisplays_main?S.spdisplays_main==="spdisplays_yes":!1,builtin:(S.spdisplays_display_type||"").indexOf("built-in")>-1,connection:T.indexOf("_internal")>-1?"Internal":T.indexOf("_displayport")>-1?"Display Port":T.indexOf("_hdmi")>-1?"HDMI":null,sizeX:null,sizeY:null,pixelDepth:D==="CGSThirtyBitColor"?30:D==="CGSThirtytwoBitColor"?32:D==="CGSTwentyfourBitColor"?24:null,resolutionX:C.length>1?parseInt(C[0],10):null,resolutionY:C.length>1?parseInt(C[1],10):null,currentResX:b.length>1?parseInt(b[0],10):null,currentResY:b.length>1?parseInt(b[1],10):null,positionX:0,positionY:0,currentRefreshRate:y.length>1?parseInt(y[1],10):null})})}),d}catch{return d}}function t(p){let d=[],m={vendor:"",subVendor:"",model:"",bus:"",busAddress:"",vram:null,vramDynamic:!1,pciID:""},g=!1,h=[];try{h=k1('export LC_ALL=C; dmidecode -t 9 2>/dev/null; unset LC_ALL | grep "Bus Address: "',_e.execOptsLinux).toString().split(`
|
|
345
|
+
`);for(let _=0;_<h.length;_++)h[_]=h[_].replace("Bus Address:","").replace("0000:","").trim();h=h.filter(function(_){return _!=null&&_})}catch{_e.noop()}let E=1;return p.forEach(_=>{let S="";if(E<p.length&&p[E]&&(S=p[E],S.indexOf(":")>0&&(S=S.split(":")[1])),_.trim()!==""){if(_[0]!==" "&&_[0]!==" "){let T=h.indexOf(_.split(" ")[0])>=0,y=_.toLowerCase().indexOf(" vga "),b=_.toLowerCase().indexOf("3d controller");if(y!==-1||b!==-1){b!==-1&&y===-1&&(y=b),(m.vendor||m.model||m.bus||m.vram!==null||m.vramDynamic)&&(d.push(m),m={vendor:"",model:"",bus:"",busAddress:"",vram:null,vramDynamic:!1});let C=_.split(" ")[0];/[\da-fA-F]{2}:[\da-fA-F]{2}\.[\da-fA-F]/.test(C)&&(m.busAddress=C),g=!0;let D=_.search(/\[[0-9a-f]{4}:[0-9a-f]{4}]|$/),A=_.substr(y,D-y).split(":");if(m.busAddress=_.substr(0,y).trim(),A.length>1&&(A[1]=A[1].trim(),A[1].toLowerCase().indexOf("corporation")>=0?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("corporation")+11).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("corporation")+11,200).split("(")[0].trim(),m.bus=h.length>0&&T?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" inc.")>=0?((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" inc.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" inc.")+5,200).trim().split("(")[0].trim()),m.bus=h.length>0&&T?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" ltd.")>=0&&((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" ltd.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" ltd.")+5,200).trim().split("(")[0].trim())),m.model&&S.indexOf(m.model)!==-1)){let v=S.split(m.model)[0].trim();v&&(m.subVendor=v)}}else g=!1}if(g){let T=_.split(":");if(T.length>1&&T[0].replace(/ +/g,"").toLowerCase().indexOf("devicename")!==-1&&T[1].toLowerCase().indexOf("onboard")!==-1&&(m.bus="Onboard"),T.length>1&&T[0].replace(/ +/g,"").toLowerCase().indexOf("region")!==-1&&T[1].toLowerCase().indexOf("memory")!==-1){let y=T[1].split("=");y.length>1&&(m.vram=parseInt(y[1]))}}}E++}),(m.vendor||m.model||m.bus||m.busAddress||m.vram!==null||m.vramDynamic)&&d.push(m),d}function n(p,d){let m=/\[([^\]]+)\]\s+(\w+)\s+(.*)/,g=d.reduce((h,E)=>{let _=m.exec(E.trim());return _&&(h[_[1]]||(h[_[1]]={}),h[_[1]][_[2]]=_[3]),h},{});for(let h in g){let E=g[h];if(E.CL_DEVICE_TYPE==="CL_DEVICE_TYPE_GPU"){let _;if(E.CL_DEVICE_TOPOLOGY_AMD){let S=E.CL_DEVICE_TOPOLOGY_AMD.match(/[a-zA-Z0-9]+:\d+\.\d+/);S&&(_=S[0])}else if(E.CL_DEVICE_PCI_BUS_ID_NV&&E.CL_DEVICE_PCI_SLOT_ID_NV){let S=parseInt(E.CL_DEVICE_PCI_BUS_ID_NV),T=parseInt(E.CL_DEVICE_PCI_SLOT_ID_NV);if(!isNaN(S)&&!isNaN(T)){let y=S&255,b=T>>3&255,C=T&7;_=`${y.toString().padStart(2,"0")}:${b.toString().padStart(2,"0")}.${C}`}}if(_){let S=p.find(y=>y.busAddress===_);S||(S={vendor:"",model:"",bus:"",busAddress:_,vram:null,vramDynamic:!1},p.push(S)),S.vendor=E.CL_DEVICE_VENDOR,E.CL_DEVICE_BOARD_NAME_AMD?S.model=E.CL_DEVICE_BOARD_NAME_AMD:S.model=E.CL_DEVICE_NAME;let T=parseInt(E.CL_DEVICE_GLOBAL_MEM_SIZE);isNaN(T)||(S.vram=Math.round(T/1024/1024))}}}return p}function s(){if(cf)return cf;if(N6)try{let p=_e.WINDIR+"\\System32\\DriverStore\\FileRepository",m=w0.readdirSync(p).filter(g=>w0.readdirSync([p,g].join("/")).includes("nvidia-smi.exe")).reduce((g,h)=>{let E=w0.statSync([p,g,"nvidia-smi.exe"].join("/")),_=w0.statSync([p,h,"nvidia-smi.exe"].join("/"));return E.ctimeMs>_.ctimeMs?g:h});m&&(cf=[p,m,"nvidia-smi.exe"].join("/"))}catch{_e.noop()}else R0&&(cf="nvidia-smi");return cf}function i(p){let d=s();if(p=p||_e.execOptsWin,d){let g=d+" "+"--query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits"+(R0?" 2>/dev/null":"");R0&&(p.stdio=["pipe","pipe","ignore"]);try{let h=_e.sanitizeShellString(g);return k1(h,p).toString()}catch{_e.noop()}}return""}function o(){function p(h){return[null,void 0].includes(h)?h:parseFloat(h)}let d=i();if(!d)return[];let g=d.split(`
|
|
346
|
+
`).filter(Boolean).map(h=>{let E=h.split(", ").map(_=>_.includes("N/A")?void 0:_);return E.length===16?{driverVersion:E[0],subDeviceId:E[1],name:E[2],pciBus:E[3],fanSpeed:p(E[4]),memoryTotal:p(E[5]),memoryUsed:p(E[6]),memoryFree:p(E[7]),utilizationGpu:p(E[8]),utilizationMemory:p(E[9]),temperatureGpu:p(E[10]),temperatureMemory:p(E[11]),powerDraw:p(E[12]),powerLimit:p(E[13]),clockCore:p(E[14]),clockMemory:p(E[15])}:{}});return g=g.filter(h=>"pciBus"in h),g}function a(p,d){return d.driverVersion&&(p.driverVersion=d.driverVersion),d.subDeviceId&&(p.subDeviceId=d.subDeviceId),d.name&&(p.name=d.name),d.pciBus&&(p.pciBus=d.pciBus),d.fanSpeed&&(p.fanSpeed=d.fanSpeed),d.memoryTotal&&(p.memoryTotal=d.memoryTotal,p.vram=d.memoryTotal,p.vramDynamic=!1),d.memoryUsed&&(p.memoryUsed=d.memoryUsed),d.memoryFree&&(p.memoryFree=d.memoryFree),d.utilizationGpu&&(p.utilizationGpu=d.utilizationGpu),d.utilizationMemory&&(p.utilizationMemory=d.utilizationMemory),d.temperatureGpu&&(p.temperatureGpu=d.temperatureGpu),d.temperatureMemory&&(p.temperatureMemory=d.temperatureMemory),d.powerDraw&&(p.powerDraw=d.powerDraw),d.powerLimit&&(p.powerLimit=d.powerLimit),d.clockCore&&(p.clockCore=d.clockCore),d.clockMemory&&(p.clockMemory=d.clockMemory),p}function c(p){let d={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},m=108;if(p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),d.resolutionX=parseInt("0x0"+p.substr(m+8,1)+p.substr(m+4,2)),d.resolutionY=parseInt("0x0"+p.substr(m+14,1)+p.substr(m+10,2)),d.sizeX=parseInt("0x0"+p.substr(m+28,1)+p.substr(m+24,2)),d.sizeY=parseInt("0x0"+p.substr(m+29,1)+p.substr(m+26,2)),m=p.indexOf("000000fc00"),m>=0){let g=p.substr(m+10,26);g.indexOf("0a")!==-1&&(g=g.substr(0,g.indexOf("0a")));try{g.length>2&&(d.model=g.match(/.{1,2}/g).map(function(h){return String.fromCharCode(parseInt(h,16))}).join(""))}catch{_e.noop()}}else d.model="";return d}function u(p,d){let m=[],g={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},h=!1,E=!1,_="",S=0;for(let T=1;T<p.length;T++)if(p[T].trim()!==""){if(p[T][0]!==" "&&p[T][0]!==" "&&p[T].toLowerCase().indexOf(" connected ")!==-1){(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&(m.push(g),g={vendor:"",model:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null});let y=p[T].split(" ");g.connection=y[0],g.main=p[T].toLowerCase().indexOf(" primary ")>=0,g.builtin=y[0].toLowerCase().indexOf("edp")>=0}if(h)if(p[T].search(/\S|$/)>S)_+=p[T].toLowerCase().trim();else{let y=c(_);g.vendor=y.vendor,g.model=y.model,g.resolutionX=y.resolutionX,g.resolutionY=y.resolutionY,g.sizeX=y.sizeX,g.sizeY=y.sizeY,g.pixelDepth=d,h=!1}if(p[T].toLowerCase().indexOf("edid:")>=0&&(h=!0,S=p[T].search(/\S|$/)),p[T].toLowerCase().indexOf("*current")>=0){let y=p[T].split("(");if(y&&y.length>1&&y[0].indexOf("x")>=0){let b=y[0].trim().split("x");g.currentResX=_e.toInt(b[0]),g.currentResY=_e.toInt(b[1])}E=!0}if(E&&p[T].toLowerCase().indexOf("clock")>=0&&p[T].toLowerCase().indexOf("hz")>=0&&p[T].toLowerCase().indexOf("v: height")>=0){let y=p[T].split("clock");y&&y.length>1&&y[1].toLowerCase().indexOf("hz")>=0&&(g.currentRefreshRate=_e.toInt(y[1])),E=!1}}return(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&m.push(g),m}return new Promise(p=>{process.nextTick(()=>{let d={controllers:[],displays:[]};if(qle&&iu("system_profiler -xml -detailLevel full SPDisplaysDataType",function(g,h){if(!g){try{let E=h.toString();d=e(_e.plistParser(E)[0]._items)}catch{_e.noop()}try{h=k1('defaults read /Library/Preferences/com.apple.windowserver.plist 2>/dev/null;defaults read /Library/Preferences/com.apple.windowserver.displays.plist 2>/dev/null; echo ""',{maxBuffer:1024*2e4});let E=(h||"").toString(),_=_e.plistReader(E);if(_.DisplayAnyUserSets&&_.DisplayAnyUserSets.Configs&&_.DisplayAnyUserSets.Configs[0]&&_.DisplayAnyUserSets.Configs[0].DisplayConfig){let S=_.DisplayAnyUserSets.Configs[0].DisplayConfig,T=0;S.forEach(y=>{y.CurrentInfo&&y.CurrentInfo.OriginX!==void 0&&d.displays&&d.displays[T]&&(d.displays[T].positionX=y.CurrentInfo.OriginX),y.CurrentInfo&&y.CurrentInfo.OriginY!==void 0&&d.displays&&d.displays[T]&&(d.displays[T].positionY=y.CurrentInfo.OriginY),T++})}if(_.DisplayAnyUserSets&&_.DisplayAnyUserSets.length>0&&_.DisplayAnyUserSets[0].length>0&&_.DisplayAnyUserSets[0][0].DisplayID){let S=_.DisplayAnyUserSets[0],T=0;S.forEach(y=>{"OriginX"in y&&d.displays&&d.displays[T]&&(d.displays[T].positionX=y.OriginX),"OriginY"in y&&d.displays&&d.displays[T]&&(d.displays[T].positionY=y.OriginY),y.Mode&&y.Mode.BitsPerPixel!==void 0&&d.displays&&d.displays[T]&&(d.displays[T].pixelDepth=y.Mode.BitsPerPixel),T++})}}catch{_e.noop()}}r&&r(d),p(d)}),R0&&(_e.isRaspberry()&&iu(`fbset -s 2> /dev/null | grep 'mode "' ; vcgencmd get_mem gpu 2> /dev/null; tvservice -s 2> /dev/null; tvservice -n 2> /dev/null;`,function(h,E){let _=E.toString().split(`
|
|
347
347
|
`);if(_.length>3&&_[0].indexOf('mode "')>=-1&&_[2].indexOf("0x12000a")>-1){let S=_[0].replace("mode","").replace(/"/g,"").trim().split("x");S.length===2&&d.displays.push({vendor:"",model:_e.getValue(_,"device_name","="),main:!0,builtin:!1,connection:"HDMI",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:parseInt(S[0],10),resolutionY:parseInt(S[1],10),currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null})}_.length>=1&&E.toString().indexOf("gpu=")>=-1&&d.controllers.push({vendor:"Broadcom",model:_e.getRpiGpu(),bus:"",vram:_e.getValue(_,"gpu","=").replace("M",""),vramDynamic:!0})}),iu("lspci -vvv 2>/dev/null",function(g,h){if(!g){let _=h.toString().split(`
|
|
348
348
|
`);if(d.controllers.length===0){d.controllers=t(_);let S=o();d.controllers=d.controllers.map(T=>a(T,S.find(y=>y.pciBus.toLowerCase().endsWith(T.busAddress.toLowerCase()))||{}))}}iu("clinfo --raw",function(_,S){if(!_){let y=S.toString().split(`
|
|
349
349
|
`);d.controllers=n(d.controllers,y)}iu("xdpyinfo 2>/dev/null | grep 'depth of root window' | awk '{ print $5 }'",function(y,b){let C=0;if(!y){let A=b.toString().split(`
|
|
@@ -363,12 +363,12 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
|
|
|
363
363
|
`),E=ue.toInt(ue.getValue(h,"size",":")),_=ue.toInt(ue.getValue(h,"freespace",":")),S=ue.getValue(h,"caption",":"),T=ue.getValue(h,"access",":"),y=T?ue.toInt(T)!==1:null;E&&u.push({fs:S,type:ue.getValue(h,"filesystem",":"),size:E,used:E-_,available:_,use:parseFloat((100*(E-_)/E).toFixed(2)),mount:S,rw:y})}),e&&e(u),c(u)})}catch{e&&e(u),c(u)}})})}na.fsSize=Zle;function efe(r){return new Promise(e=>{process.nextTick(()=>{let t={max:null,allocated:null,available:null};(Pn||In||wn||Rs)&&Cr("sysctl -i kern.maxfiles kern.num_files kern.open_files",{maxBuffer:1024*1024},(s,i)=>{if(!s){let o=i.toString().split(`
|
|
364
364
|
`);t.max=parseInt(ue.getValue(o,"kern.maxfiles",":"),10),t.allocated=parseInt(ue.getValue(o,"kern.num_files",":"),10)||parseInt(ue.getValue(o,"kern.open_files",":"),10),t.available=t.max-t.allocated}r&&r(t),e(t)}),bn&&G6.readFile("/proc/sys/fs/file-nr",(n,s)=>{if(n)G6.readFile("/proc/sys/fs/file-max",(i,o)=>{if(!i){let a=o.toString().split(`
|
|
365
365
|
`);a[0]&&(t.max=parseInt(a[0],10))}r&&r(t),e(t)});else{let i=s.toString().split(`
|
|
366
|
-
`);if(i[0]){let o=i[0].replace(/\s+/g," ").split(" ");o.length===3&&(t.allocated=parseInt(o[0],10),t.available=parseInt(o[1],10),t.max=parseInt(o[2],10),t.available||(t.available=t.max-t.allocated))}r&&r(t),e(t)}}),ou&&(r&&r(null),e(null)),su&&(r&&r(null),e(null))})})}na.fsOpenFiles=efe;function tfe(r){return parseInt(r.substr(r.indexOf(" (")+2,r.indexOf(" Bytes)")-10),10)}function rfe(r){let e=[],t=0;return r.forEach(n=>{if(n.length>0)if(n[0]==="*")t++;else{let s=n.split(":");s.length>1&&(e[t]||(e[t]={name:"",identifier:"",type:"disk",fsType:"",mount:"",size:0,physical:"HDD",uuid:"",label:"",model:"",serial:"",removable:!1,protocol:"",group:"",device:""}),s[0]=s[0].trim().toUpperCase().replace(/ +/g,""),s[1]=s[1].trim(),s[0]==="DEVICEIDENTIFIER"&&(e[t].identifier=s[1]),s[0]==="DEVICENODE"&&(e[t].name=s[1]),s[0]==="VOLUMENAME"&&s[1].indexOf("Not applicable")===-1&&(e[t].label=s[1]),s[0]==="PROTOCOL"&&(e[t].protocol=s[1]),s[0]==="DISKSIZE"&&(e[t].size=tfe(s[1])),s[0]==="FILESYSTEMPERSONALITY"&&(e[t].fsType=s[1]),s[0]==="MOUNTPOINT"&&(e[t].mount=s[1]),s[0]==="VOLUMEUUID"&&(e[t].uuid=s[1]),s[0]==="READ-ONLYMEDIA"&&s[1]==="Yes"&&(e[t].physical="CD/DVD"),s[0]==="SOLIDSTATE"&&s[1]==="Yes"&&(e[t].physical="SSD"),s[0]==="VIRTUAL"&&(e[t].type="virtual"),s[0]==="REMOVABLEMEDIA"&&(e[t].removable=s[1]==="Removable"),s[0]==="PARTITIONTYPE"&&(e[t].type="part"),s[0]==="DEVICE/MEDIANAME"&&(e[t].model=s[1]))}}),e}function
|
|
366
|
+
`);if(i[0]){let o=i[0].replace(/\s+/g," ").split(" ");o.length===3&&(t.allocated=parseInt(o[0],10),t.available=parseInt(o[1],10),t.max=parseInt(o[2],10),t.available||(t.available=t.max-t.allocated))}r&&r(t),e(t)}}),ou&&(r&&r(null),e(null)),su&&(r&&r(null),e(null))})})}na.fsOpenFiles=efe;function tfe(r){return parseInt(r.substr(r.indexOf(" (")+2,r.indexOf(" Bytes)")-10),10)}function rfe(r){let e=[],t=0;return r.forEach(n=>{if(n.length>0)if(n[0]==="*")t++;else{let s=n.split(":");s.length>1&&(e[t]||(e[t]={name:"",identifier:"",type:"disk",fsType:"",mount:"",size:0,physical:"HDD",uuid:"",label:"",model:"",serial:"",removable:!1,protocol:"",group:"",device:""}),s[0]=s[0].trim().toUpperCase().replace(/ +/g,""),s[1]=s[1].trim(),s[0]==="DEVICEIDENTIFIER"&&(e[t].identifier=s[1]),s[0]==="DEVICENODE"&&(e[t].name=s[1]),s[0]==="VOLUMENAME"&&s[1].indexOf("Not applicable")===-1&&(e[t].label=s[1]),s[0]==="PROTOCOL"&&(e[t].protocol=s[1]),s[0]==="DISKSIZE"&&(e[t].size=tfe(s[1])),s[0]==="FILESYSTEMPERSONALITY"&&(e[t].fsType=s[1]),s[0]==="MOUNTPOINT"&&(e[t].mount=s[1]),s[0]==="VOLUMEUUID"&&(e[t].uuid=s[1]),s[0]==="READ-ONLYMEDIA"&&s[1]==="Yes"&&(e[t].physical="CD/DVD"),s[0]==="SOLIDSTATE"&&s[1]==="Yes"&&(e[t].physical="SSD"),s[0]==="VIRTUAL"&&(e[t].type="virtual"),s[0]==="REMOVABLEMEDIA"&&(e[t].removable=s[1]==="Removable"),s[0]==="PARTITIONTYPE"&&(e[t].type="part"),s[0]==="DEVICE/MEDIANAME"&&(e[t].model=s[1]))}}),e}function j1(r){let e=[];return r.filter(t=>t!=="").forEach(t=>{try{t=decodeURIComponent(t.replace(/\\x/g,"%")),t=t.replace(/\\/g,"\\\\");let n=JSON.parse(t);e.push({name:ue.sanitizeShellString(n.name),type:n.type,fsType:n.fsType,mount:n.mountpoint,size:parseInt(n.size,10),physical:n.type==="disk"?n.rota==="0"?"SSD":"HDD":n.type==="rom"?"CD/DVD":"",uuid:n.uuid,label:n.label,model:(n.model||"").trim(),serial:n.serial,removable:n.rm==="1",protocol:n.tran,group:n.group||""})}catch{ue.noop()}}),e=ue.unique(e),e=ue.sortByKey(e,["type","name"]),e}function nfe(r){let e=ue.getValue(r,"md_level","="),t=ue.getValue(r,"md_name","="),n=ue.getValue(r,"md_uuid","="),s=[];return r.forEach(i=>{i.toLowerCase().startsWith("md_device_dev")&&i.toLowerCase().indexOf("/dev/")>0&&s.push(i.split("/dev/")[1])}),{raid:e,label:t,uuid:n,members:s}}function k6(r){let e=r;try{r.forEach(t=>{if(t.type.startsWith("raid")){let n=ws(`mdadm --export --detail /dev/${t.name}`,ue.execOptsLinux).toString().split(`
|
|
367
367
|
`),s=nfe(n);t.label=s.label,t.uuid=s.uuid,s.members?.length&&s.raid===t.type&&(e=e.map(i=>(i.fsType==="linux_raid_member"&&s.members.indexOf(i.name)>=0&&(i.group=t.name),i)))}})}catch{ue.noop()}return e}function ife(r){let e=[];return r.forEach(t=>{t.type.startsWith("disk")&&e.push(t.name)}),e}function sfe(r){let e=r;try{let t=ife(r);e=e.map(n=>((n.type.startsWith("part")||n.type.startsWith("disk"))&&t.forEach(s=>{n.name.startsWith(s)&&(n.device="/dev/"+s)}),n))}catch{ue.noop()}return e}function ofe(r){let e=[];return r.forEach(t=>{if(t.type.startsWith("disk")&&e.push({name:t.name,model:t.model,device:t.name}),t.type.startsWith("virtual")){let n="";e.forEach(s=>{s.model===t.model&&(n=s.device)}),n&&e.push({name:t.name,model:t.model,device:n})}}),e}function afe(r){let e=r;try{let t=ofe(r);e=e.map(n=>((n.type.startsWith("part")||n.type.startsWith("disk")||n.type.startsWith("virtual"))&&t.forEach(s=>{n.name.startsWith(s.name)&&(n.device=s.device)}),n))}catch{ue.noop()}return e}function cfe(r){let e=[];return r.forEach(t=>{let n=t.split(`\r
|
|
368
|
-
`),s=ue.getValue(n,"DeviceID",":"),i=t.split("@{DeviceID=");i.length>1&&(i=i.slice(1),i.forEach(o=>{e.push({name:o.split(";")[0].toUpperCase(),device:s})}))}),e}function ufe(r,e){let t=cfe(e);return r.map(n=>{let s=t.filter(i=>i.name===n.name.toUpperCase());return s.length>0&&(n.device=s[0].device),n}),r}function
|
|
369
|
-
`)}function lfe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(bn&&Cr("lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,TRAN,SERIAL,LABEL,MODEL,OWNER 2>/dev/null",{maxBuffer:1048576},(s,i)=>{if(s)Cr("lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER 2>/dev/null",{maxBuffer:1048576},(a,c)=>{if(!a){let u=
|
|
370
|
-
`);t=
|
|
371
|
-
`);t=
|
|
368
|
+
`),s=ue.getValue(n,"DeviceID",":"),i=t.split("@{DeviceID=");i.length>1&&(i=i.slice(1),i.forEach(o=>{e.push({name:o.split(";")[0].toUpperCase(),device:s})}))}),e}function ufe(r,e){let t=cfe(e);return r.map(n=>{let s=t.filter(i=>i.name===n.name.toUpperCase());return s.length>0&&(n.device=s[0].device),n}),r}function q1(r){return r.toString().replace(/NAME=/g,'{"name":').replace(/FSTYPE=/g,',"fsType":').replace(/TYPE=/g,',"type":').replace(/SIZE=/g,',"size":').replace(/MOUNTPOINT=/g,',"mountpoint":').replace(/UUID=/g,',"uuid":').replace(/ROTA=/g,',"rota":').replace(/RO=/g,',"ro":').replace(/RM=/g,',"rm":').replace(/TRAN=/g,',"tran":').replace(/SERIAL=/g,',"serial":').replace(/LABEL=/g,',"label":').replace(/MODEL=/g,',"model":').replace(/OWNER=/g,',"owner":').replace(/GROUP=/g,',"group":').replace(/\n/g,`}
|
|
369
|
+
`)}function lfe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(bn&&Cr("lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,TRAN,SERIAL,LABEL,MODEL,OWNER 2>/dev/null",{maxBuffer:1048576},(s,i)=>{if(s)Cr("lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER 2>/dev/null",{maxBuffer:1048576},(a,c)=>{if(!a){let u=q1(c).split(`
|
|
370
|
+
`);t=j1(u),t=k6(t)}r&&r(t),e(t)}).on("error",()=>{r&&r(t),e(t)});else{let o=q1(i).split(`
|
|
371
|
+
`);t=j1(o),t=k6(t),t=sfe(t),r&&r(t),e(t)}}).on("error",()=>{r&&r(t),e(t)}),Rs&&Cr("diskutil info -all",{maxBuffer:1048576},(s,i)=>{if(!s){let o=i.toString().split(`
|
|
372
372
|
`);t=rfe(o),t=afe(t)}r&&r(t),e(t)}).on("error",()=>{r&&r(t),e(t)}),ou&&(r&&r(t),e(t)),su){let n=["Unknown","NoRoot","Removable","Local","Network","CD/DVD","RAM"];try{let s=[];s.push(ue.powerShell("Get-CimInstance -ClassName Win32_LogicalDisk | select Caption,DriveType,Name,FileSystem,Size,VolumeSerialNumber,VolumeName | fl")),s.push(ue.powerShell("Get-WmiObject -Class Win32_diskdrive | Select-Object -Property PNPDeviceId,DeviceID, Model, Size, @{L='Partitions'; E={$_.GetRelated('Win32_DiskPartition').GetRelated('Win32_LogicalDisk') | Select-Object -Property DeviceID, VolumeName, Size, FreeSpace}} | fl")),ue.promiseAll(s).then(i=>{let o=i.results[0].toString().split(/\n\s*\n/),a=i.results[1].toString().split(/\n\s*\n/);o.forEach(c=>{let u=c.split(`\r
|
|
373
373
|
`),l=ue.getValue(u,"drivetype",":");l&&t.push({name:ue.getValue(u,"name",":"),identifier:ue.getValue(u,"caption",":"),type:"disk",fsType:ue.getValue(u,"filesystem",":").toLowerCase(),mount:ue.getValue(u,"caption",":"),size:ue.getValue(u,"size",":"),physical:l>=0&&l<=6?n[l]:n[0],uuid:ue.getValue(u,"volumeserialnumber",":"),label:ue.getValue(u,"volumename",":"),model:"",serial:ue.getValue(u,"volumeserialnumber",":"),removable:l==="2",protocol:"",group:"",device:""})}),t=ufe(t,a),r&&r(t),e(t)})}catch{r&&r(t),e(t)}}(Pn||In||wn)&&(r&&r(null),e(null))})})}na.blockDevices=lfe;function j6(r,e){let t={rx:0,wx:0,tx:0,rx_sec:null,wx_sec:null,tx_sec:null,ms:0};return ut?.ms?(t.rx=r,t.wx=e,t.tx=t.rx+t.wx,t.ms=Date.now()-ut.ms,t.rx_sec=(t.rx-ut.bytes_read)/(t.ms/1e3),t.wx_sec=(t.wx-ut.bytes_write)/(t.ms/1e3),t.tx_sec=t.rx_sec+t.wx_sec,ut.rx_sec=t.rx_sec,ut.wx_sec=t.wx_sec,ut.tx_sec=t.tx_sec,ut.bytes_read=t.rx,ut.bytes_write=t.wx,ut.bytes_overall=t.rx+t.wx,ut.ms=Date.now(),ut.last_ms=t.ms):(t.rx=r,t.wx=e,t.tx=t.rx+t.wx,ut.rx_sec=null,ut.wx_sec=null,ut.tx_sec=null,ut.bytes_read=t.rx,ut.bytes_write=t.wx,ut.bytes_overall=t.rx+t.wx,ut.ms=Date.now(),ut.last_ms=0),t}function ffe(r){return new Promise(e=>{process.nextTick(()=>{if(su||Pn||In||wn||ou)return e(null);let t={rx:0,wx:0,tx:0,rx_sec:null,wx_sec:null,tx_sec:null,ms:0},n=0,s=0;ut&&!ut.ms||ut?.ms&&Date.now()-ut.ms>=500?(bn&&Cr("lsblk -r 2>/dev/null | grep /",{maxBuffer:1048576},(o,a)=>{if(o)r&&r(t),e(t);else{let c=a.toString().split(`
|
|
374
374
|
`),u=[];c.forEach(p=>{p!==""&&(p=p.trim().split(" "),u.indexOf(p[0])===-1&&u.push(p[0]))});let l=u.join("|");Cr('cat /proc/diskstats | egrep "'+l+'"',{maxBuffer:1024*1024},(p,d)=>{p||(d.toString().split(`
|
|
@@ -377,8 +377,8 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
|
|
|
377
377
|
`).forEach(u=>{u=u.trim(),u!==""&&(u=u.split(","),n+=parseInt(u[2],10),s+=parseInt(u[9],10))}),t=j6(n,s)),r&&r(t),e(t)}).on("error",()=>{r&&r(t),e(t)})):(t.ms=ut.last_ms,t.rx=ut.bytes_read,t.wx=ut.bytes_write,t.tx=ut.bytes_read+ut.bytes_write,t.rx_sec=ut.rx_sec,t.wx_sec=ut.wx_sec,t.tx_sec=ut.tx_sec,r&&r(t),e(t))})})}na.fsStats=ffe;function q6(r,e,t,n,s){let i={rIO:0,wIO:0,tIO:0,rIO_sec:null,wIO_sec:null,tIO_sec:null,rWaitTime:0,wWaitTime:0,tWaitTime:0,rWaitPercent:null,wWaitPercent:null,tWaitPercent:null,ms:0};return Fe?.ms?(i.rIO=r,i.wIO=e,i.tIO=r+e,i.ms=Date.now()-Fe.ms,i.rIO_sec=(i.rIO-Fe.rIO)/(i.ms/1e3),i.wIO_sec=(i.wIO-Fe.wIO)/(i.ms/1e3),i.tIO_sec=i.rIO_sec+i.wIO_sec,i.rWaitTime=t,i.wWaitTime=n,i.tWaitTime=s,i.rWaitPercent=(i.rWaitTime-Fe.rWaitTime)*100/i.ms,i.wWaitPercent=(i.wWaitTime-Fe.wWaitTime)*100/i.ms,i.tWaitPercent=(i.tWaitTime-Fe.tWaitTime)*100/i.ms,Fe.rIO=r,Fe.wIO=e,Fe.rIO_sec=i.rIO_sec,Fe.wIO_sec=i.wIO_sec,Fe.tIO_sec=i.tIO_sec,Fe.rWaitTime=t,Fe.wWaitTime=n,Fe.tWaitTime=s,Fe.rWaitPercent=i.rWaitPercent,Fe.wWaitPercent=i.wWaitPercent,Fe.tWaitPercent=i.tWaitPercent,Fe.last_ms=i.ms,Fe.ms=Date.now()):(i.rIO=r,i.wIO=e,i.tIO=r+e,i.rWaitTime=t,i.wWaitTime=n,i.tWaitTime=s,Fe.rIO=r,Fe.wIO=e,Fe.rIO_sec=null,Fe.wIO_sec=null,Fe.tIO_sec=null,Fe.rWaitTime=t,Fe.wWaitTime=n,Fe.tWaitTime=s,Fe.rWaitPercent=null,Fe.wWaitPercent=null,Fe.tWaitPercent=null,Fe.last_ms=0,Fe.ms=Date.now()),i}function pfe(r){return new Promise(e=>{process.nextTick(()=>{if(su||ou)return e(null);let t={rIO:0,wIO:0,tIO:0,rIO_sec:null,wIO_sec:null,tIO_sec:null,rWaitTime:0,wWaitTime:0,tWaitTime:0,rWaitPercent:null,wWaitPercent:null,tWaitPercent:null,ms:0},n=0,s=0,i=0,o=0,a=0;Fe&&!Fe.ms||Fe?.ms&&Date.now()-Fe.ms>=500?((bn||Pn||In||wn)&&Cr('for mount in `lsblk 2>/dev/null | grep " disk " | sed "s/[\u2502\u2514\u2500\u251C]//g" | awk \'{$1=$1};1\' | cut -d " " -f 1 | sort -u`; do cat /sys/block/$mount/stat | sed -r "s/ +/;/g" | sed -r "s/^;//"; done',{maxBuffer:1024*1024},(u,l)=>{u?(r&&r(t),e(t)):(l.split(`
|
|
378
378
|
`).forEach(p=>{if(!p)return;let d=p.split(";");n+=parseInt(d[0],10),s+=parseInt(d[4],10),i+=parseInt(d[3],10),o+=parseInt(d[7],10),a+=parseInt(d[10],10)}),t=q6(n,s,i,o,a),r&&r(t),e(t))}),Rs&&Cr(`ioreg -c IOBlockStorageDriver -k Statistics -r -w0 | sed -n "/IOBlockStorageDriver/,/Statistics/p" | grep "Statistics" | tr -cd "01234567890,
|
|
379
379
|
"`,{maxBuffer:1024*1024},(c,u)=>{c||(u.toString().split(`
|
|
380
|
-
`).forEach(f=>{f=f.trim(),f!==""&&(f=f.split(","),n+=parseInt(f[10],10),s+=parseInt(f[0],10))}),t=q6(n,s,i,o,a)),r&&r(t),e(t)})):(t.rIO=Fe.rIO,t.wIO=Fe.wIO,t.tIO=Fe.rIO+Fe.wIO,t.ms=Fe.last_ms,t.rIO_sec=Fe.rIO_sec,t.wIO_sec=Fe.wIO_sec,t.tIO_sec=Fe.tIO_sec,t.rWaitTime=Fe.rWaitTime,t.wWaitTime=Fe.wWaitTime,t.tWaitTime=Fe.tWaitTime,t.rWaitPercent=Fe.rWaitPercent,t.wWaitPercent=Fe.wWaitPercent,t.tWaitPercent=Fe.tWaitPercent,r&&r(t),e(t))})})}na.disksIO=pfe;function dfe(r){function e(t){let n=[{pattern:"WESTERN.*",manufacturer:"Western Digital"},{pattern:"^WDC.*",manufacturer:"Western Digital"},{pattern:"WD.*",manufacturer:"Western Digital"},{pattern:"TOSHIBA.*",manufacturer:"Toshiba"},{pattern:"HITACHI.*",manufacturer:"Hitachi"},{pattern:"^IC.*",manufacturer:"Hitachi"},{pattern:"^HTS.*",manufacturer:"Hitachi"},{pattern:"SANDISK.*",manufacturer:"SanDisk"},{pattern:"KINGSTON.*",manufacturer:"Kingston Technology"},{pattern:"^SONY.*",manufacturer:"Sony"},{pattern:"TRANSCEND.*",manufacturer:"Transcend"},{pattern:"SAMSUNG.*",manufacturer:"Samsung"},{pattern:"^ST(?!I\\ ).*",manufacturer:"Seagate"},{pattern:"^STI\\ .*",manufacturer:"SimpleTech"},{pattern:"^D...-.*",manufacturer:"IBM"},{pattern:"^IBM.*",manufacturer:"IBM"},{pattern:"^FUJITSU.*",manufacturer:"Fujitsu"},{pattern:"^MP.*",manufacturer:"Fujitsu"},{pattern:"^MK.*",manufacturer:"Toshiba"},{pattern:"MAXTO.*",manufacturer:"Maxtor"},{pattern:"PIONEER.*",manufacturer:"Pioneer"},{pattern:"PHILIPS.*",manufacturer:"Philips"},{pattern:"QUANTUM.*",manufacturer:"Quantum Technology"},{pattern:"FIREBALL.*",manufacturer:"Quantum Technology"},{pattern:"^VBOX.*",manufacturer:"VirtualBox"},{pattern:"CORSAIR.*",manufacturer:"Corsair Components"},{pattern:"CRUCIAL.*",manufacturer:"Crucial"},{pattern:"ECM.*",manufacturer:"ECM"},{pattern:"INTEL.*",manufacturer:"INTEL"},{pattern:"EVO.*",manufacturer:"Samsung"},{pattern:"APPLE.*",manufacturer:"Apple"}],s="";return t&&(t=t.toUpperCase(),n.forEach(i=>{RegExp(i.pattern).test(t)&&(s=i.manufacturer)})),s}return new Promise(t=>{process.nextTick(()=>{let n=o=>{for(let a=0;a<o.length;a++)delete o[a].BSDName;r&&r(o),t(o)},s=[],i="";if(bn){let o="";Cr("export LC_ALL=C; lsblk -ablJO 2>/dev/null; unset LC_ALL",{maxBuffer:1024*1024},(a,c)=>{if(!a)try{let u=c.toString().trim(),l=[];try{let f=JSON.parse(u);f&&{}.hasOwnProperty.call(f,"blockdevices")&&(l=f.blockdevices.filter(p=>p.type==="disk"&&p.size>0&&(p.model!==null||p.mountpoint===null&&p.label===null&&p.fstype===null&&p.parttype===null&&p.path&&p.path.indexOf("/ram")!==0&&p.path.indexOf("/loop")!==0&&p["disc-max"]&&p["disc-max"]!==0)))}catch{try{let f=ws("export LC_ALL=C; lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER,GROUP 2>/dev/null; unset LC_ALL",ue.execOptsLinux).toString(),p=
|
|
381
|
-
`);l=
|
|
380
|
+
`).forEach(f=>{f=f.trim(),f!==""&&(f=f.split(","),n+=parseInt(f[10],10),s+=parseInt(f[0],10))}),t=q6(n,s,i,o,a)),r&&r(t),e(t)})):(t.rIO=Fe.rIO,t.wIO=Fe.wIO,t.tIO=Fe.rIO+Fe.wIO,t.ms=Fe.last_ms,t.rIO_sec=Fe.rIO_sec,t.wIO_sec=Fe.wIO_sec,t.tIO_sec=Fe.tIO_sec,t.rWaitTime=Fe.rWaitTime,t.wWaitTime=Fe.wWaitTime,t.tWaitTime=Fe.tWaitTime,t.rWaitPercent=Fe.rWaitPercent,t.wWaitPercent=Fe.wWaitPercent,t.tWaitPercent=Fe.tWaitPercent,r&&r(t),e(t))})})}na.disksIO=pfe;function dfe(r){function e(t){let n=[{pattern:"WESTERN.*",manufacturer:"Western Digital"},{pattern:"^WDC.*",manufacturer:"Western Digital"},{pattern:"WD.*",manufacturer:"Western Digital"},{pattern:"TOSHIBA.*",manufacturer:"Toshiba"},{pattern:"HITACHI.*",manufacturer:"Hitachi"},{pattern:"^IC.*",manufacturer:"Hitachi"},{pattern:"^HTS.*",manufacturer:"Hitachi"},{pattern:"SANDISK.*",manufacturer:"SanDisk"},{pattern:"KINGSTON.*",manufacturer:"Kingston Technology"},{pattern:"^SONY.*",manufacturer:"Sony"},{pattern:"TRANSCEND.*",manufacturer:"Transcend"},{pattern:"SAMSUNG.*",manufacturer:"Samsung"},{pattern:"^ST(?!I\\ ).*",manufacturer:"Seagate"},{pattern:"^STI\\ .*",manufacturer:"SimpleTech"},{pattern:"^D...-.*",manufacturer:"IBM"},{pattern:"^IBM.*",manufacturer:"IBM"},{pattern:"^FUJITSU.*",manufacturer:"Fujitsu"},{pattern:"^MP.*",manufacturer:"Fujitsu"},{pattern:"^MK.*",manufacturer:"Toshiba"},{pattern:"MAXTO.*",manufacturer:"Maxtor"},{pattern:"PIONEER.*",manufacturer:"Pioneer"},{pattern:"PHILIPS.*",manufacturer:"Philips"},{pattern:"QUANTUM.*",manufacturer:"Quantum Technology"},{pattern:"FIREBALL.*",manufacturer:"Quantum Technology"},{pattern:"^VBOX.*",manufacturer:"VirtualBox"},{pattern:"CORSAIR.*",manufacturer:"Corsair Components"},{pattern:"CRUCIAL.*",manufacturer:"Crucial"},{pattern:"ECM.*",manufacturer:"ECM"},{pattern:"INTEL.*",manufacturer:"INTEL"},{pattern:"EVO.*",manufacturer:"Samsung"},{pattern:"APPLE.*",manufacturer:"Apple"}],s="";return t&&(t=t.toUpperCase(),n.forEach(i=>{RegExp(i.pattern).test(t)&&(s=i.manufacturer)})),s}return new Promise(t=>{process.nextTick(()=>{let n=o=>{for(let a=0;a<o.length;a++)delete o[a].BSDName;r&&r(o),t(o)},s=[],i="";if(bn){let o="";Cr("export LC_ALL=C; lsblk -ablJO 2>/dev/null; unset LC_ALL",{maxBuffer:1024*1024},(a,c)=>{if(!a)try{let u=c.toString().trim(),l=[];try{let f=JSON.parse(u);f&&{}.hasOwnProperty.call(f,"blockdevices")&&(l=f.blockdevices.filter(p=>p.type==="disk"&&p.size>0&&(p.model!==null||p.mountpoint===null&&p.label===null&&p.fstype===null&&p.parttype===null&&p.path&&p.path.indexOf("/ram")!==0&&p.path.indexOf("/loop")!==0&&p["disc-max"]&&p["disc-max"]!==0)))}catch{try{let f=ws("export LC_ALL=C; lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER,GROUP 2>/dev/null; unset LC_ALL",ue.execOptsLinux).toString(),p=q1(f).split(`
|
|
381
|
+
`);l=j1(p).filter(m=>m.type==="disk"&&m.size>0&&(m.model!==null&&m.model!==""||m.mount===""&&m.label===""&&m.fsType===""))}catch{ue.noop()}}l.forEach(f=>{let p="",d="/dev/"+f.name,m=f.name;try{p=ws("cat /sys/block/"+m+"/queue/rotational 2>/dev/null",ue.execOptsLinux).toString().split(`
|
|
382
382
|
`)[0]}catch{ue.noop()}let g=f.tran?f.tran.toUpperCase().trim():"";g==="NVME"&&(p="2",g="PCIe"),s.push({device:d,type:p==="0"?"SSD":p==="1"?"HD":p==="2"?"NVMe":f.model&&f.model.indexOf("SSD")>-1?"SSD":f.model&&f.model.indexOf("NVM")>-1?"NVMe":"HD",name:f.model||"",vendor:e(f.model)||(f.vendor?f.vendor.trim():""),size:f.size||0,bytesPerSector:null,totalCylinders:null,totalHeads:null,totalSectors:null,totalTracks:null,tracksPerCylinder:null,sectorsPerTrack:null,firmwareRevision:f.rev?f.rev.trim():"",serialNum:f.serial?f.serial.trim():"",interfaceType:g,smartStatus:"unknown",temperature:null,BSDName:d}),i+=`printf "
|
|
383
383
|
${d}|"; smartctl -H ${d} | grep overall;`,o+=`${o?'printf ",";':""}smartctl -a -j ${d};`})}catch{ue.noop()}o?Cr(o,{maxBuffer:1024*1024},(u,l)=>{try{JSON.parse(`[${l}]`).forEach(p=>{let d=p.smartctl.argv[p.smartctl.argv.length-1];for(let m=0;m<s.length;m++)s[m].BSDName===d&&(s[m].smartStatus=p.smart_status.passed?"Ok":p.smart_status.passed===!1?"Predicted Failure":"unknown",p.temperature?.current&&(s[m].temperature=p.temperature.current),s[m].smartData=p)}),n(s)}catch{i?(i=i+`printf "
|
|
384
384
|
"`,Cr(i,{maxBuffer:1024*1024},(f,p)=>{p.toString().split(`
|
|
@@ -420,7 +420,7 @@ Profile on interface`)}catch(r){return r.status===1&&r.stdout.includes("AutoConf
|
|
|
420
420
|
`),t=K6(e);return Ofe(t)}catch{return[]}}function vfe(r){let e=`nmcli device status 2>/dev/null | grep ${r}`;try{let i=jt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(3).join(" ");return i!="--"?i:""}catch{return""}}function X6(r){let e=[];try{let t=`cat ${r} 2> /dev/null | grep 'iface\\|source'`;jt(t,he.execOptsLinux).toString().split(`
|
|
421
421
|
`).forEach(s=>{let i=s.replace(/\s+/g," ").trim().split(" ");if(i.length>=4&&s.toLowerCase().indexOf(" inet ")>=0&&s.toLowerCase().indexOf("dhcp")>=0&&e.push(i[1]),s.toLowerCase().includes("source")){let o=s.split(" ")[1];e=e.concat(X6(o))}})}catch{he.noop()}return e}function Dfe(){let r="ip a 2> /dev/null",e=[];try{let t=jt(r,he.execOptsLinux).toString().split(`
|
|
422
422
|
`),n=K6(t);e=xfe(n)}catch{he.noop()}try{e=X6("/etc/network/interfaces")}catch{he.noop()}return e}function xfe(r){let e=[];return r&&r.length&&r.forEach(t=>{if(t&&t.length&&t[0].split(":").length>2){for(let s of t)if(s.indexOf(" inet ")>=0&&s.indexOf(" dynamic ")>=0){let i=s.split(" "),o=i[i.length-1].trim();e.push(o);break}}}),e}function bfe(r,e,t){let n=!1;if(e){let s=`nmcli connection show "${e}" 2>/dev/null | grep ipv4.method;`;try{return jt(s,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString()==="auto"?n=!0:n=!1,n}catch{return t.indexOf(r)>=0}}else return t.indexOf(r)>=0}function Pfe(r){let e=!1,t=`ipconfig getpacket "${r}" 2>/dev/null | grep lease_time;`;try{let n=jt(t).toString().split(`
|
|
423
|
-
`);n.length&&n[0].startsWith("lease_time")&&(e=!0)}catch{he.noop()}return e}function Ife(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep ipv4.dns-search;`;try{let s=jt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"Not defined":s}catch{return"Unknown"}}else return"Unknown"}function wfe(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep 802-1x.eap;`;try{let s=jt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"":s}catch{return"Not defined"}}else return"Not defined"}function Rfe(r){return r?r=="Not defined"?"Disabled":"Enabled":"Unknown"}function
|
|
423
|
+
`);n.length&&n[0].startsWith("lease_time")&&(e=!0)}catch{he.noop()}return e}function Ife(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep ipv4.dns-search;`;try{let s=jt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"Not defined":s}catch{return"Unknown"}}else return"Unknown"}function wfe(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep 802-1x.eap;`;try{let s=jt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"":s}catch{return"Not defined"}}else return"Not defined"}function Rfe(r){return r?r=="Not defined"?"Disabled":"Enabled":"Unknown"}function H1(r,e,t){let n=["00:00:00:00:00:00","00:03:FF","00:05:69","00:0C:29","00:0F:4B","00:13:07","00:13:BE","00:15:5d","00:16:3E","00:1C:42","00:21:F6","00:24:0B","00:50:56","00:A0:B1","00:E0:C8","08:00:27","0A:00:27","18:92:2C","16:DF:49","3C:F3:92","54:52:00","FC:15:97"];return t?n.filter(s=>t.toUpperCase().toUpperCase().startsWith(s.substring(0,t.length))).length>0||r.toLowerCase().indexOf(" virtual ")>-1||e.toLowerCase().indexOf(" virtual ")>-1||r.toLowerCase().indexOf("vethernet ")>-1||e.toLowerCase().indexOf("vethernet ")>-1||r.toLowerCase().startsWith("veth")||e.toLowerCase().startsWith("veth")||r.toLowerCase().startsWith("vboxnet")||e.toLowerCase().startsWith("vboxnet"):!1}function $1(r,e,t){return typeof r=="string"&&(t=r,e=!0,r=null),typeof r=="boolean"&&(e=r,r=null,t=""),typeof e>"u"&&(e=!0),t=t||"",t=""+t,new Promise(n=>{process.nextTick(()=>{let s=B0.networkInterfaces(),i=[],o=[],a=[],c=[];if(Ui||Ns||Bs||Us)if(JSON.stringify(s)===JSON.stringify(au)&&!e)i=cu,r&&r(i),n(i);else{let u=sa();au=JSON.parse(JSON.stringify(s)),o=Cfe(),o.forEach(l=>{({}).hasOwnProperty.call(s,l.iface)&&s[l.iface].forEach(function(m){(m.family==="IPv4"||m.family===4)&&(l.ip4subnet=m.netmask),(m.family==="IPv6"||m.family===6)&&(l.ip6subnet=m.netmask)});let f="",p=he.isPrototypePolluted()?"---":he.sanitizeShellString(l.iface),d=he.mathMin(p.length,2e3);for(let m=0;m<=d;m++)p[m]!==void 0&&(f=f+p[m]);i.push({iface:l.iface,ifaceName:l.iface,default:l.iface===u,ip4:l.ip4,ip4subnet:l.ip4subnet||"",ip6:l.ip6,ip6subnet:l.ip6subnet||"",mac:l.mac,internal:l.internal,virtual:l.internal?!1:H1(l.iface,l.iface,l.mac),operstate:l.operstate,type:l.type,duplex:l.duplex,mtu:l.mtu,speed:l.speed,dhcp:Pfe(f),dnsSuffix:"",ieee8021xAuth:"",ieee8021xState:"",carrierChanges:0})}),cu=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(l=>l.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)}if(Bi)if(JSON.stringify(s)===JSON.stringify(au)&&!e)i=cu,r&&r(i),n(i);else{au=JSON.parse(JSON.stringify(s)),Y6=Dfe();let u=sa();for(let l in s){let f="",p="",d="",m="",g="",h="",E="",_=null,S=0,T=!1,y="",b="",C="",D="";if({}.hasOwnProperty.call(s,l)){let A=l;s[l].forEach(function(X){(X.family==="IPv4"||X.family===4)&&(f=X.address,p=X.netmask),(X.family==="IPv6"||X.family===6)&&(!d||d.match(/^fe80::/i))&&(d=X.address,m=X.netmask),g=X.mac;let le=parseInt(process.versions.node.split("."),10);g.indexOf("00:00:0")>-1&&(Bi||Ui)&&!X.internal&&le>=8&&le<=11&&(Object.keys(uu).length===0&&(uu=z6()),g=uu[l]||"")});let v=l.split(":")[0].trim().toLowerCase(),I="",F=he.isPrototypePolluted()?"---":he.sanitizeShellString(v),V=he.mathMin(F.length,2e3);for(let X=0;X<=V;X++)F[X]!==void 0&&(I=I+F[X]);let $=`echo -n "addr_assign_type: "; cat /sys/class/net/${I}/addr_assign_type 2>/dev/null; echo;
|
|
424
424
|
echo -n "address: "; cat /sys/class/net/${I}/address 2>/dev/null; echo;
|
|
425
425
|
echo -n "addr_len: "; cat /sys/class/net/${I}/addr_len 2>/dev/null; echo;
|
|
426
426
|
echo -n "broadcast: "; cat /sys/class/net/${I}/broadcast 2>/dev/null; echo;
|
|
@@ -445,11 +445,11 @@ Profile on interface`)}catch(r){return r.status===1&&r.stdout.includes("AutoConf
|
|
|
445
445
|
echo -n "type: "; cat /sys/class/net/${I}/type 2>/dev/null; echo;
|
|
446
446
|
echo -n "wireless: "; cat /proc/net/wireless 2>/dev/null | grep ${I}; echo;
|
|
447
447
|
echo -n "wirelessspeed: "; iw dev ${I} link 2>&1 | grep bitrate; echo;`,k=[];try{k=jt($,he.execOptsLinux).toString().split(`
|
|
448
|
-
`);let X=vfe(I);T=bfe(I,X,Y6),y=Ife(X),b=wfe(X),C=Rfe(b)}catch{he.noop()}h=he.getValue(k,"duplex"),h=h.startsWith("cat")?"":h,E=parseInt(he.getValue(k,"mtu"),10);let K=parseInt(he.getValue(k,"speed"),10);_=isNaN(K)?null:K;let ee=he.getValue(k,"wirelessspeed").split("tx bitrate: ");_===null&&ee.length===2&&(K=parseFloat(ee[1]),_=isNaN(K)?null:K),S=parseInt(he.getValue(k,"carrier_changes"),10);let ne=he.getValue(k,"operstate");D=ne==="up"?he.getValue(k,"wireless").trim()?"wireless":"wired":"unknown",(I==="lo"||I.startsWith("bond"))&&(D="virtual");let ie=s[l]&&s[l][0]?s[l][0].internal:!1;(l.toLowerCase().indexOf("loopback")>-1||A.toLowerCase().indexOf("loopback")>-1)&&(ie=!0);let Ee=ie?!1:
|
|
448
|
+
`);let X=vfe(I);T=bfe(I,X,Y6),y=Ife(X),b=wfe(X),C=Rfe(b)}catch{he.noop()}h=he.getValue(k,"duplex"),h=h.startsWith("cat")?"":h,E=parseInt(he.getValue(k,"mtu"),10);let K=parseInt(he.getValue(k,"speed"),10);_=isNaN(K)?null:K;let ee=he.getValue(k,"wirelessspeed").split("tx bitrate: ");_===null&&ee.length===2&&(K=parseFloat(ee[1]),_=isNaN(K)?null:K),S=parseInt(he.getValue(k,"carrier_changes"),10);let ne=he.getValue(k,"operstate");D=ne==="up"?he.getValue(k,"wireless").trim()?"wireless":"wired":"unknown",(I==="lo"||I.startsWith("bond"))&&(D="virtual");let ie=s[l]&&s[l][0]?s[l][0].internal:!1;(l.toLowerCase().indexOf("loopback")>-1||A.toLowerCase().indexOf("loopback")>-1)&&(ie=!0);let Ee=ie?!1:H1(l,A,g);i.push({iface:I,ifaceName:A,default:v===u,ip4:f,ip4subnet:p,ip6:d,ip6subnet:m,mac:g,internal:ie,virtual:Ee,operstate:ne,type:D,duplex:h,mtu:E,speed:_,dhcp:T,dnsSuffix:y,ieee8021xAuth:b,ieee8021xState:C,carrierChanges:S})}}cu=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(l=>l.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)}if(ff)if(JSON.stringify(s)===JSON.stringify(au)&&!e)i=cu,r&&r(i),n(i);else{au=JSON.parse(JSON.stringify(s));let u=sa();Efe().then(function(l){l.forEach(f=>{let p=!1;Object.keys(s).forEach(d=>{p||s[d].forEach(m=>{Object.keys(m).indexOf("mac")>=0&&(p=m.mac===f.mac)})}),p||(s[f.name]=[{mac:f.mac}])}),c=yfe(),a=Sfe();for(let f in s){let p="",d=he.isPrototypePolluted()?"---":he.sanitizeShellString(f),m=he.mathMin(d.length,2e3);for(let k=0;k<=m;k++)d[k]!==void 0&&(p=p+d[k]);let g=f,h="",E="",_="",S="",T="",y="",b="",C=null,D=0,A="down",v=!1,I="",F="",V="",$="";if({}.hasOwnProperty.call(s,f)){let k=f;s[f].forEach(function(Ee){(Ee.family==="IPv4"||Ee.family===4)&&(h=Ee.address,E=Ee.netmask),(Ee.family==="IPv6"||Ee.family===6)&&(!_||_.match(/^fe80::/i))&&(_=Ee.address,S=Ee.netmask),T=Ee.mac;let X=parseInt(process.versions.node.split("."),10);T.indexOf("00:00:0")>-1&&(Bi||Ui)&&!Ee.internal&&X>=8&&X<=11&&(Object.keys(uu).length===0&&(uu=z6()),T=uu[f]||"")}),I=_fe(a.ifaces,p);let K=!1;l.forEach(Ee=>{Ee.mac===T&&!K&&(g=Ee.iface||g,k=Ee.name,v=Ee.dhcp,A=Ee.operstate,C=A==="up"?Ee.speed:0,$=Ee.type,K=!0)}),(f.toLowerCase().indexOf("wlan")>=0||k.toLowerCase().indexOf("wlan")>=0||k.toLowerCase().indexOf("802.11n")>=0||k.toLowerCase().indexOf("wireless")>=0||k.toLowerCase().indexOf("wi-fi")>=0||k.toLowerCase().indexOf("wifi")>=0)&&($="wireless");let ee=Afe($,p,c);F=ee.protocol,V=ee.state;let ne=s[f]&&s[f][0]?s[f][0].internal:!1;(f.toLowerCase().indexOf("loopback")>-1||k.toLowerCase().indexOf("loopback")>-1)&&(ne=!0);let ie=ne?!1:H1(f,k,T);i.push({iface:g,ifaceName:k,default:g===u,ip4:h,ip4subnet:E,ip6:_,ip6subnet:S,mac:T,internal:ne,virtual:ie,operstate:A,type:$,duplex:y,mtu:b,speed:C,dhcp:v,dnsSuffix:I,ieee8021xAuth:F,ieee8021xState:V,carrierChanges:D})}}cu=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(f=>f.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)})}})})}oa.networkInterfaces=$1;function N0(r,e,t,n,s,i,o,a){let c={iface:r,operstate:n,rx_bytes:e,rx_dropped:s,rx_errors:i,tx_bytes:t,tx_dropped:o,tx_errors:a,rx_sec:null,tx_sec:null,ms:0};return st[r]&&st[r].ms?(c.ms=Date.now()-st[r].ms,c.rx_sec=e-st[r].rx_bytes>=0?(e-st[r].rx_bytes)/(c.ms/1e3):0,c.tx_sec=t-st[r].tx_bytes>=0?(t-st[r].tx_bytes)/(c.ms/1e3):0,st[r].rx_bytes=e,st[r].tx_bytes=t,st[r].rx_sec=c.rx_sec,st[r].tx_sec=c.tx_sec,st[r].ms=Date.now(),st[r].last_ms=c.ms,st[r].operstate=n):(st[r]||(st[r]={}),st[r].rx_bytes=e,st[r].tx_bytes=t,st[r].rx_sec=null,st[r].tx_sec=null,st[r].ms=Date.now(),st[r].last_ms=0,st[r].operstate=n),c}function J6(r,e){let t=[];return new Promise(n=>{process.nextTick(()=>{if(he.isFunction(r)&&!e)e=r,t=[sa()];else{if(typeof r!="string"&&r!==void 0)return e&&e([]),n([]);r=r||sa();try{r.__proto__.toLowerCase=he.stringToLower,r.__proto__.replace=he.stringReplace,r.__proto__.toString=he.stringToString,r.__proto__.substr=he.stringSubstr,r.__proto__.substring=he.stringSubstring,r.__proto__.trim=he.stringTrim,r.__proto__.startsWith=he.stringStartWith}catch{Object.setPrototypeOf(r,he.stringObj)}r=r.trim().toLowerCase().replace(/,+/g,"|"),t=r.split("|")}let s=[],i=[];if(t.length&&t[0].trim()==="*")t=[],$1(!1).then(o=>{for(let a of o)t.push(a.iface);J6(t.join(",")).then(a=>{e&&e(a),n(a)})});else{for(let o of t)i.push(Lfe(o.trim()));i.length?Promise.all(i).then(o=>{e&&e(o),n(o)}):(e&&e(s),n(s))}})})}function Lfe(r){function e(t){let n=[];for(let s in t)if({}.hasOwnProperty.call(t,s)&&t[s].trim()!==""){let i=t[s].trim().split(`\r
|
|
449
449
|
`);n.push({name:he.getValue(i,"Name",":").replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase(),rx_bytes:parseInt(he.getValue(i,"BytesReceivedPersec",":"),10),rx_errors:parseInt(he.getValue(i,"PacketsReceivedErrors",":"),10),rx_dropped:parseInt(he.getValue(i,"PacketsReceivedDiscarded",":"),10),tx_bytes:parseInt(he.getValue(i,"BytesSentPersec",":"),10),tx_errors:parseInt(he.getValue(i,"PacketsOutboundErrors",":"),10),tx_dropped:parseInt(he.getValue(i,"PacketsOutboundDiscarded",":"),10)})}return n}return new Promise(t=>{process.nextTick(()=>{let n="",s=he.isPrototypePolluted()?"---":he.sanitizeShellString(r),i=he.mathMin(s.length,2e3);for(let E=0;E<=i;E++)s[E]!==void 0&&(n=n+s[E]);let o={iface:n,operstate:"unknown",rx_bytes:0,rx_dropped:0,rx_errors:0,tx_bytes:0,tx_dropped:0,tx_errors:0,rx_sec:null,tx_sec:null,ms:0},a="unknown",c=0,u=0,l=0,f=0,p=0,d=0,m,g,h;if(!st[n]||st[n]&&!st[n].ms||st[n]&&st[n].ms&&Date.now()-st[n].ms>=500){if(Bi&&(hfe.existsSync("/sys/class/net/"+n)?(m="cat /sys/class/net/"+n+"/operstate; cat /sys/class/net/"+n+"/statistics/rx_bytes; cat /sys/class/net/"+n+"/statistics/tx_bytes; cat /sys/class/net/"+n+"/statistics/rx_dropped; cat /sys/class/net/"+n+"/statistics/rx_errors; cat /sys/class/net/"+n+"/statistics/tx_dropped; cat /sys/class/net/"+n+"/statistics/tx_errors; ",sn(m,function(E,_){E||(g=_.toString().split(`
|
|
450
450
|
`),a=g[0].trim(),c=parseInt(g[1],10),u=parseInt(g[2],10),l=parseInt(g[3],10),f=parseInt(g[4],10),p=parseInt(g[5],10),d=parseInt(g[6],10),o=N0(n,c,u,a,l,f,p,d)),t(o)})):t(o)),(Ns||Bs||Us)&&(m="netstat -ibndI "+n,sn(m,function(E,_){if(!E){g=_.toString().split(`
|
|
451
451
|
`);for(let S=1;S<g.length;S++){let T=g[S].replace(/ +/g," ").split(" ");T&&T[0]&&T[7]&&T[10]&&(c=c+parseInt(T[7]),T[6].trim()!=="-"&&(l=l+parseInt(T[6])),T[5].trim()!=="-"&&(f=f+parseInt(T[5])),u=u+parseInt(T[10]),T[12].trim()!=="-"&&(p=p+parseInt(T[12])),T[9].trim()!=="-"&&(d=d+parseInt(T[9])),a="up")}o=N0(n,c,u,a,l,f,p,d)}t(o)})),Ui&&(m="ifconfig "+n+' | grep "status"',sn(m,function(E,_){o.operstate=(_.toString().split(":")[1]||"").trim(),o.operstate=(o.operstate||"").toLowerCase(),o.operstate=o.operstate==="active"?"up":o.operstate==="inactive"?"down":"unknown",m="netstat -bdI "+n,sn(m,function(S,T){if(!S&&(g=T.toString().split(`
|
|
452
|
-
`),g.length>1&&g[1].trim()!=="")){h=g[1].replace(/ +/g," ").split(" ");let y=h.length>11?1:0;c=parseInt(h[y+5]),l=parseInt(h[y+10]),f=parseInt(h[y+4]),u=parseInt(h[y+8]),p=parseInt(h[y+10]),d=parseInt(h[y+7]),o=N0(n,c,u,o.operstate,l,f,p,d)}t(o)})})),ff){let E=[],_=n;he.powerShell("Get-CimInstance Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl").then((S,T)=>{if(!T){let y=S.toString().split(/\n\s*\n/);E=e(y)}$
|
|
452
|
+
`),g.length>1&&g[1].trim()!=="")){h=g[1].replace(/ +/g," ").split(" ");let y=h.length>11?1:0;c=parseInt(h[y+5]),l=parseInt(h[y+10]),f=parseInt(h[y+4]),u=parseInt(h[y+8]),p=parseInt(h[y+10]),d=parseInt(h[y+7]),o=N0(n,c,u,o.operstate,l,f,p,d)}t(o)})})),ff){let E=[],_=n;he.powerShell("Get-CimInstance Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl").then((S,T)=>{if(!T){let y=S.toString().split(/\n\s*\n/);E=e(y)}$1(!1).then(y=>{c=0,u=0,E.forEach(b=>{y.forEach(C=>{(C.iface.toLowerCase()===n.toLowerCase()||C.mac.toLowerCase()===n.toLowerCase()||C.ip4.toLowerCase()===n.toLowerCase()||C.ip6.toLowerCase()===n.toLowerCase()||C.ifaceName.replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase()===n.replace(/[()[\] ]+/g,"").replace("#","_").toLowerCase())&&C.ifaceName.replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase()===b.name&&(_=C.iface,c=b.rx_bytes,l=b.rx_dropped,f=b.rx_errors,u=b.tx_bytes,p=b.tx_dropped,d=b.tx_errors,a=C.operstate)})}),c&&u&&(o=N0(_,parseInt(c),parseInt(u),a,l,f,p,d)),t(o)})})}}else o.rx_bytes=st[n].rx_bytes,o.tx_bytes=st[n].tx_bytes,o.rx_sec=st[n].rx_sec,o.tx_sec=st[n].tx_sec,o.ms=st[n].last_ms,o.operstate=st[n].operstate,t(o)})})}oa.networkStats=J6;function Mfe(r,e){let t="";return r.forEach(n=>{let s=n.split(" ");(parseInt(s[0],10)||-1)===e&&(s.shift(),t=s.join(" ").split(":")[0])}),t=t.split(" -")[0],t=t.split(" /")[0],t}function Nfe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Bi||Ns||Bs||Us){let n='export LC_ALL=C; netstat -tunap | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL';(Ns||Bs||Us)&&(n='export LC_ALL=C; netstat -na | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL'),sn(n,{maxBuffer:1024*2e4},function(s,i){let o=i.toString().split(`
|
|
453
453
|
`);!s&&(o.length>1||o[0]!="")?(o.forEach(function(a){if(a=a.replace(/ +/g," ").split(" "),a.length>=7){let c=a[3],u="",l=a[3].split(":");l.length>1&&(u=l[l.length-1],l.pop(),c=l.join(":"));let f=a[4],p="",d=a[4].split(":");d.length>1&&(p=d[d.length-1],d.pop(),f=d.join(":"));let m=a[5],g=a[6].split("/");m&&t.push({protocol:a[0],localAddress:c,localPort:u,peerAddress:f,peerPort:p,state:m,pid:g[0]&&g[0]!=="-"?parseInt(g[0],10):null,process:g[1]?g[1].split(" ")[0].split(":")[0]:""})}}),r&&r(t),e(t)):(n='ss -tunap | grep "ESTAB\\|SYN-SENT\\|SYN-RECV\\|FIN-WAIT1\\|FIN-WAIT2\\|TIME-WAIT\\|CLOSE\\|CLOSE-WAIT\\|LAST-ACK\\|LISTEN\\|CLOSING"',sn(n,{maxBuffer:1024*2e4},function(a,c){a||c.toString().split(`
|
|
454
454
|
`).forEach(function(l){if(l=l.replace(/ +/g," ").split(" "),l.length>=6){let f=l[4],p="",d=l[4].split(":");d.length>1&&(p=d[d.length-1],d.pop(),f=d.join(":"));let m=l[5],g="",h=l[5].split(":");h.length>1&&(g=h[h.length-1],h.pop(),m=h.join(":"));let E=l[1];E==="ESTAB"&&(E="ESTABLISHED"),E==="TIME-WAIT"&&(E="TIME_WAIT");let _=null,S="";if(l.length>=7&&l[6].indexOf("users:")>-1){let T=l[6].replace('users:(("',"").replace(/"/g,"").split(",");T.length>2&&(S=T[0].split(" ")[0].split(":")[0],_=parseInt(T[1],10))}E&&t.push({protocol:l[0],localAddress:f,localPort:p,peerAddress:m,peerPort:g,state:E,pid:_,process:S})}}),r&&r(t),e(t)}))})}if(Ui){let n='netstat -natvln | head -n2; netstat -natvln | grep "tcp4\\|tcp6\\|udp4\\|udp6"',s="ESTABLISHED|SYN_SENT|SYN_RECV|FIN_WAIT1|FIN_WAIT_1|FIN_WAIT2|FIN_WAIT_2|TIME_WAIT|CLOSE|CLOSE_WAIT|LAST_ACK|LISTEN|CLOSING|UNKNOWN".split("|");sn(n,{maxBuffer:1024*2e4},function(i,o){i||sn("ps -axo pid,command",{maxBuffer:1024*2e4},function(a,c){let u=c.toString().split(`
|
|
455
455
|
`);u=u.map((p=>p.trim().replace(/ +/g," ")));let l=o.toString().split(`
|
|
@@ -458,7 +458,7 @@ Profile on interface`)}catch(r){return r.status===1&&r.stdout.includes("AutoConf
|
|
|
458
458
|
`),c=(o&&o[0]?o[0]:"").split(" via ");c&&c[1]&&(c=c[1].split(" "),t=c[0]),r&&r(t),e(t)}})}catch{r&&r(t),e(t)}}if(Ui){let n="route -n get default";try{sn(n,{maxBuffer:1024*2e4},function(s,i){if(!s){let o=i.toString().split(`
|
|
459
459
|
`).map(a=>a.trim());t=he.getValue(o,"gateway")}t?(r&&r(t),e(t)):(n="netstat -rn | awk '/default/ {print $2}'",sn(n,{maxBuffer:1024*2e4},function(o,a){t=a.toString().split(`
|
|
460
460
|
`).map(u=>u.trim()).find(u=>/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(u)),r&&r(t),e(t)}))})}catch{r&&r(t),e(t)}}if(ff)try{sn("netstat -r",he.execOptsWin,function(n,s){s.toString().split(B0.EOL).forEach(o=>{if(o=o.replace(/\s+/g," ").trim(),o.indexOf("0.0.0.0 0.0.0.0")>-1&&!/[a-zA-Z]/.test(o)){let a=o.split(" ");a.length>=5&&a[a.length-3].indexOf(".")>-1&&(t=a[a.length-3])}}),t?(r&&r(t),e(t)):he.powerShell("Get-CimInstance -ClassName Win32_IP4RouteTable | Where-Object { $_.Destination -eq '0.0.0.0' -and $_.Mask -eq '0.0.0.0' }").then(o=>{let a=o.toString().split(`\r
|
|
461
|
-
`);a.length>1&&!t&&(t=he.getValue(a,"NextHop"),r&&r(t),e(t))})})}catch{r&&r(t),e(t)}})})}oa.networkGatewayDefault=Bfe});var nq=x(V0=>{"use strict";var pf=W("os"),
|
|
461
|
+
`);a.length>1&&!t&&(t=he.getValue(a,"NextHop"),r&&r(t),e(t))})})}catch{r&&r(t),e(t)}})})}oa.networkGatewayDefault=Bfe});var nq=x(V0=>{"use strict";var pf=W("os"),W1=W("child_process").exec,Fs=W("child_process").execSync,me=kt(),U0=process.platform,Y1=U0==="linux"||U0==="android",z1=U0==="darwin",K1=U0==="win32";function X1(r){let e=parseFloat(r);return e<0?0:e>=100?-50:e/2-100}function F0(r){let e=2*(parseFloat(r)+100);return e<=100?e:100}var df={1:2412,2:2417,3:2422,4:2427,5:2432,6:2437,7:2442,8:2447,9:2452,10:2457,11:2462,12:2467,13:2472,14:2484,32:5160,34:5170,36:5180,38:5190,40:5200,42:5210,44:5220,46:5230,48:5240,50:5250,52:5260,54:5270,56:5280,58:5290,60:5300,62:5310,64:5320,68:5340,96:5480,100:5500,102:5510,104:5520,106:5530,108:5540,110:5550,112:5560,114:5570,116:5580,118:5590,120:5600,122:5610,124:5620,126:5630,128:5640,132:5660,134:5670,136:5680,138:5690,140:5700,142:5710,144:5720,149:5745,151:5755,153:5765,155:5775,157:5785,159:5795,161:5805,165:5825,169:5845,173:5865,183:4915,184:4920,185:4925,187:4935,188:4940,189:4945,192:4960,196:4980};function hf(r){return{}.hasOwnProperty.call(df,r)?df[r]:null}function Ufe(r){let e=0;for(let t in df)({}).hasOwnProperty.call(df,t)&&df[t]===r&&(e=me.toInt(t));return e}function eq(){let r=[],e="iw dev 2>/dev/null";try{let n=Fs(e,me.execOptsLinux).toString().split(`
|
|
462
462
|
`).map(s=>s.trim()).join(`
|
|
463
463
|
`).split(`
|
|
464
464
|
Interface `);return n.shift(),n.forEach(s=>{let i=s.split(`
|
|
@@ -468,56 +468,56 @@ Interface `);return n.shift(),n.forEach(s=>{let i=s.split(`
|
|
|
468
468
|
`),c=me.getValue(a,"GENERAL.DEVICE"),u=me.getValue(a,"GENERAL.TYPE"),l=i++,f=me.getValue(a,"GENERAL.HWADDR");u.toLowerCase()==="wifi"&&r.push({id:l,iface:c,mac:f,channel:""})}),r}catch{return[]}}}function tq(r){let e=`nmcli -t -f general,wifi-properties,capabilities,ip4,ip6 device show ${r} 2> /dev/null`;try{let t=Fs(e,me.execOptsLinux).toString().split(`
|
|
469
469
|
`),n=me.getValue(t,"GENERAL.CONNECTION");return{iface:r,type:me.getValue(t,"GENERAL.TYPE"),vendor:me.getValue(t,"GENERAL.VENDOR"),product:me.getValue(t,"GENERAL.PRODUCT"),mac:me.getValue(t,"GENERAL.HWADDR").toLowerCase(),ssid:n!=="--"?n:null}}catch{return{}}}function Ffe(r){let e=`nmcli -t --show-secrets connection show ${r} 2>/dev/null`;try{let t=Fs(e,me.execOptsLinux).toString().split(`
|
|
470
470
|
`),n=me.getValue(t,"802-11-wireless.seen-bssids").toLowerCase();return{ssid:r!=="--"?r:null,uuid:me.getValue(t,"connection.uuid"),type:me.getValue(t,"connection.type"),autoconnect:me.getValue(t,"connection.autoconnect")==="yes",security:me.getValue(t,"802-11-wireless-security.key-mgmt"),bssid:n!=="--"?n:null}}catch{return{}}}function Vfe(r){if(!r)return{};let e=`wpa_cli -i ${r} status 2>&1`;try{let t=Fs(e,me.execOptsLinux).toString().split(`
|
|
471
|
-
`),n=me.toInt(me.getValue(t,"freq","="));return{ssid:me.getValue(t,"ssid","="),uuid:me.getValue(t,"uuid","="),security:me.getValue(t,"key_mgmt","="),freq:n,channel:Ufe(n),bssid:me.getValue(t,"bssid","=").toLowerCase()}}catch{return{}}}function rq(){let r=[],e="nmcli -t -m multiline --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list 2>/dev/null";try{let n=Fs(e,me.execOptsLinux).toString().split("ACTIVE:");return n.shift(),n.forEach(s=>{s="ACTIVE:"+s;let i=s.split(pf.EOL),o=me.getValue(i,"CHAN"),a=me.getValue(i,"FREQ").toLowerCase().replace("mhz","").trim(),c=me.getValue(i,"SECURITY").replace("(","").replace(")",""),u=me.getValue(i,"WPA-FLAGS").replace("(","").replace(")",""),l=me.getValue(i,"RSN-FLAGS").replace("(","").replace(")",""),f=me.getValue(i,"SIGNAL");r.push({ssid:me.getValue(i,"SSID"),bssid:me.getValue(i,"BSSID").toLowerCase(),mode:me.getValue(i,"MODE"),channel:o?parseInt(o,10):null,frequency:a?parseInt(a,10):null,signalLevel:
|
|
472
|
-
`),i=me.getValue(s,"channel",":",!0),o=s&&s.length&&s[0].indexOf("Address:")>=0?s[0].split("Address:")[1].trim().toLowerCase():"",a=me.getValue(s,"mode",":",!0),c=me.getValue(s,"frequency",":",!0),l=me.getValue(s,"Quality","=",!0).toLowerCase().split("signal level="),f=l.length>1?me.toInt(l[1]):0,p=f?F0(f):0,d=me.getValue(s,"essid",":",!0),m=n.indexOf(" WPA ")>=0,g=n.indexOf("WPA2 ")>=0,h=[];m&&h.push("WPA"),g&&h.push("WPA2");let E=[],_="";s.forEach(function(S){let T=S.trim().toLowerCase();if(T.indexOf("group cipher")>=0){_&&E.push(_);let y=T.split(":");y.length>1&&(_=y[1].trim().toUpperCase())}if(T.indexOf("pairwise cipher")>=0){let y=T.split(":");y.length>1&&(y[1].indexOf("tkip")?_=_?"TKIP/"+_:"TKIP":y[1].indexOf("ccmp")?_=_?"CCMP/"+_:"CCMP":y[1].indexOf("proprietary")&&(_=_?"PROP/"+_:"PROP"))}if(T.indexOf("authentication suites")>=0){let y=T.split(":");y.length>1&&(y[1].indexOf("802.1x")?_=_?"802.1x/"+_:"802.1x":y[1].indexOf("psk")&&(_=_?"PSK/"+_:"PSK"))}}),_&&E.push(_),e.push({ssid:d,bssid:o,mode:a,channel:i?me.toInt(i):null,frequency:c?me.toInt(c.replace(".","")):null,signalLevel:f,quality:p,security:h,wpaFlags:E,rsnFlags:[]})})),e)}catch{return-1}}function Gfe(r){let e=[];try{let t=JSON.parse(r);return t=t.SPAirPortDataType[0].spairport_airport_interfaces[0].spairport_airport_other_local_wireless_networks,t.forEach(function(n){let s=[],i=n.spairport_security_mode||"";i==="spairport_security_mode_wep"?s.push("WEP"):i==="spairport_security_mode_wpa2_personal"?s.push("WPA2"):i.startsWith("spairport_security_mode_wpa2_enterprise")?s.push("WPA2 EAP"):i.startsWith("pairport_security_mode_wpa3_transition")?s.push("WPA2/WPA3"):i.startsWith("pairport_security_mode_wpa3")&&s.push("WPA3");let o=parseInt((""+n.spairport_network_channel).split(" ")[0])||0,a=n.spairport_signal_noise||null;e.push({ssid:n._name||"",bssid:n.spairport_network_bssid||null,mode:n.spairport_network_phymode,channel:o,frequency:hf(o),signalLevel:a?parseInt(a,10):null,quality:F0(a),security:s,wpaFlags:[],rsnFlags:[]})}),e}catch{return e}}function kfe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(
|
|
471
|
+
`),n=me.toInt(me.getValue(t,"freq","="));return{ssid:me.getValue(t,"ssid","="),uuid:me.getValue(t,"uuid","="),security:me.getValue(t,"key_mgmt","="),freq:n,channel:Ufe(n),bssid:me.getValue(t,"bssid","=").toLowerCase()}}catch{return{}}}function rq(){let r=[],e="nmcli -t -m multiline --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list 2>/dev/null";try{let n=Fs(e,me.execOptsLinux).toString().split("ACTIVE:");return n.shift(),n.forEach(s=>{s="ACTIVE:"+s;let i=s.split(pf.EOL),o=me.getValue(i,"CHAN"),a=me.getValue(i,"FREQ").toLowerCase().replace("mhz","").trim(),c=me.getValue(i,"SECURITY").replace("(","").replace(")",""),u=me.getValue(i,"WPA-FLAGS").replace("(","").replace(")",""),l=me.getValue(i,"RSN-FLAGS").replace("(","").replace(")",""),f=me.getValue(i,"SIGNAL");r.push({ssid:me.getValue(i,"SSID"),bssid:me.getValue(i,"BSSID").toLowerCase(),mode:me.getValue(i,"MODE"),channel:o?parseInt(o,10):null,frequency:a?parseInt(a,10):null,signalLevel:X1(f),quality:f?parseInt(f,10):null,security:c&&c!=="none"?c.split(" "):[],wpaFlags:u&&u!=="none"?u.split(" "):[],rsnFlags:l&&l!=="none"?l.split(" "):[]})}),r}catch{return[]}}function Z6(r){let e=[];try{let t=Fs(`export LC_ALL=C; iwlist ${r} scan 2>&1; unset LC_ALL`,me.execOptsLinux).toString().split(" Cell ");return t[0].indexOf("resource busy")>=0?-1:(t.length>1&&(t.shift(),t.forEach(n=>{let s=n.split(`
|
|
472
|
+
`),i=me.getValue(s,"channel",":",!0),o=s&&s.length&&s[0].indexOf("Address:")>=0?s[0].split("Address:")[1].trim().toLowerCase():"",a=me.getValue(s,"mode",":",!0),c=me.getValue(s,"frequency",":",!0),l=me.getValue(s,"Quality","=",!0).toLowerCase().split("signal level="),f=l.length>1?me.toInt(l[1]):0,p=f?F0(f):0,d=me.getValue(s,"essid",":",!0),m=n.indexOf(" WPA ")>=0,g=n.indexOf("WPA2 ")>=0,h=[];m&&h.push("WPA"),g&&h.push("WPA2");let E=[],_="";s.forEach(function(S){let T=S.trim().toLowerCase();if(T.indexOf("group cipher")>=0){_&&E.push(_);let y=T.split(":");y.length>1&&(_=y[1].trim().toUpperCase())}if(T.indexOf("pairwise cipher")>=0){let y=T.split(":");y.length>1&&(y[1].indexOf("tkip")?_=_?"TKIP/"+_:"TKIP":y[1].indexOf("ccmp")?_=_?"CCMP/"+_:"CCMP":y[1].indexOf("proprietary")&&(_=_?"PROP/"+_:"PROP"))}if(T.indexOf("authentication suites")>=0){let y=T.split(":");y.length>1&&(y[1].indexOf("802.1x")?_=_?"802.1x/"+_:"802.1x":y[1].indexOf("psk")&&(_=_?"PSK/"+_:"PSK"))}}),_&&E.push(_),e.push({ssid:d,bssid:o,mode:a,channel:i?me.toInt(i):null,frequency:c?me.toInt(c.replace(".","")):null,signalLevel:f,quality:p,security:h,wpaFlags:E,rsnFlags:[]})})),e)}catch{return-1}}function Gfe(r){let e=[];try{let t=JSON.parse(r);return t=t.SPAirPortDataType[0].spairport_airport_interfaces[0].spairport_airport_other_local_wireless_networks,t.forEach(function(n){let s=[],i=n.spairport_security_mode||"";i==="spairport_security_mode_wep"?s.push("WEP"):i==="spairport_security_mode_wpa2_personal"?s.push("WPA2"):i.startsWith("spairport_security_mode_wpa2_enterprise")?s.push("WPA2 EAP"):i.startsWith("pairport_security_mode_wpa3_transition")?s.push("WPA2/WPA3"):i.startsWith("pairport_security_mode_wpa3")&&s.push("WPA3");let o=parseInt((""+n.spairport_network_channel).split(" ")[0])||0,a=n.spairport_signal_noise||null;e.push({ssid:n._name||"",bssid:n.spairport_network_bssid||null,mode:n.spairport_network_phymode,channel:o,frequency:hf(o),signalLevel:a?parseInt(a,10):null,quality:F0(a),security:s,wpaFlags:[],rsnFlags:[]})}),e}catch{return e}}function kfe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Y1)if(t=rq(),t.length===0)try{let n=Fs("export LC_ALL=C; iwconfig 2>/dev/null; unset LC_ALL",me.execOptsLinux).toString().split(`
|
|
473
473
|
|
|
474
|
-
`),s="";if(n.forEach(i=>{i.indexOf("no wireless")===-1&&i.trim()!==""&&(s=i.split(" ")[0])}),s){let i="",o=me.isPrototypePolluted()?"---":me.sanitizeShellString(s,!0),a=me.mathMin(o.length,2e3);for(let u=0;u<=a;u++)o[u]!==void 0&&(i=i+o[u]);let c=Z6(i);c===-1?setTimeout(function(u){let l=Z6(u);l!=-1&&(t=l),r&&r(t),e(t)},4e3):(t=c,r&&r(t),e(t))}else r&&r(t),e(t)}catch{r&&r(t),e(t)}else r&&r(t),e(t);else
|
|
475
|
-
`));let f=c.find(E=>E._name==="Wi-Fi"),p=u[0].spairport_current_network_information,d=parseInt((""+p.spairport_network_channel).split(" ")[0])||0,m=p.spairport_signal_noise||null,g=[],h=p.spairport_security_mode||"";h==="spairport_security_mode_wep"?g.push("WEP"):h==="spairport_security_mode_wpa2_personal"?g.push("WPA2"):h.startsWith("spairport_security_mode_wpa2_enterprise")?g.push("WPA2 EAP"):h.startsWith("pairport_security_mode_wpa3_transition")?g.push("WPA2/WPA3"):h.startsWith("pairport_security_mode_wpa3")&&g.push("WPA3"),t.push({id:f._name||"Wi-Fi",iface:f.interface||"",model:f.hardware||"",ssid:p._name||"",bssid:p.spairport_network_bssid||"",channel:d,frequency:d?hf(d):null,type:p.spairport_network_phymode||"802.11",security:g,signalLevel:m?parseInt(m,10):null,quality:F0(m),txRate:p.spairport_network_rate||null})}catch{me.noop()}r&&r(t),e(t)}):
|
|
474
|
+
`),s="";if(n.forEach(i=>{i.indexOf("no wireless")===-1&&i.trim()!==""&&(s=i.split(" ")[0])}),s){let i="",o=me.isPrototypePolluted()?"---":me.sanitizeShellString(s,!0),a=me.mathMin(o.length,2e3);for(let u=0;u<=a;u++)o[u]!==void 0&&(i=i+o[u]);let c=Z6(i);c===-1?setTimeout(function(u){let l=Z6(u);l!=-1&&(t=l),r&&r(t),e(t)},4e3):(t=c,r&&r(t),e(t))}else r&&r(t),e(t)}catch{r&&r(t),e(t)}else r&&r(t),e(t);else z1?W1("system_profiler SPAirPortDataType -json 2>/dev/null",{maxBuffer:1024*4e4},function(s,i){t=Gfe(i.toString()),r&&r(t),e(t)}):K1?me.powerShell("netsh wlan show networks mode=Bssid").then(s=>{let i=s.toString("utf8").split(pf.EOL+pf.EOL+"SSID ");i.shift(),i.forEach(o=>{let a=o.split(pf.EOL);if(a&&a.length>=8&&a[0].indexOf(":")>=0){let c=o.split(" BSSID");c.shift(),c.forEach(u=>{let l=u.split(pf.EOL),f=l[0].split(":");f.shift();let p=f.join(":").trim().toLowerCase(),d=l[3].split(":").pop().trim(),m=l[1].split(":").pop().trim();t.push({ssid:a[0].split(":").pop().trim(),bssid:p,mode:"",channel:d?parseInt(d,10):null,frequency:hf(d),signalLevel:X1(m),quality:m?parseInt(m,10):null,security:[a[2].split(":").pop().trim()],wpaFlags:[a[3].split(":").pop().trim()],rsnFlags:[]})})}}),r&&r(t),e(t)}):(r&&r(t),e(t))})})}V0.wifiNetworks=kfe;function jfe(r){r=r.toLowerCase();let e="";return r.indexOf("intel")>=0?e="Intel":r.indexOf("realtek")>=0?e="Realtek":r.indexOf("qualcom")>=0?e="Qualcom":r.indexOf("broadcom")>=0?e="Broadcom":r.indexOf("cavium")>=0?e="Cavium":r.indexOf("cisco")>=0?e="Cisco":r.indexOf("marvel")>=0?e="Marvel":r.indexOf("zyxel")>=0?e="Zyxel":r.indexOf("melanox")>=0?e="Melanox":r.indexOf("d-link")>=0?e="D-Link":r.indexOf("tp-link")>=0?e="TP-Link":r.indexOf("asus")>=0?e="Asus":r.indexOf("linksys")>=0&&(e="Linksys"),e}function qfe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Y1){let n=eq(),s=rq();n.forEach(i=>{let o="",a=me.isPrototypePolluted()?"---":me.sanitizeShellString(i.iface,!0),c=me.mathMin(a.length,2e3);for(let T=0;T<=c;T++)a[T]!==void 0&&(o=o+a[T]);let u=tq(o),l=Vfe(o),f=u.ssid||l.ssid,p=s.filter(T=>T.ssid===f),d="",m=me.isPrototypePolluted()?"---":me.sanitizeShellString(f,!0),g=me.mathMin(m.length,32);for(let T=0;T<=g;T++)m[T]!==void 0&&(d=d+m[T]);let h=Ffe(d),E=p&&p.length&&p[0].channel?p[0].channel:l.channel?l.channel:null,_=p&&p.length&&p[0].bssid?p[0].bssid:l.bssid?l.bssid:null,S=p&&p.length&&p[0].signalLevel?p[0].signalLevel:null;f&&_&&t.push({id:i.id,iface:i.iface,model:u.product,ssid:f,bssid:p&&p.length&&p[0].bssid?p[0].bssid:l.bssid?l.bssid:null,channel:E,frequency:E?hf(E):null,type:h.type?h.type:"802.11",security:h.security?h.security:l.security?l.security:null,signalLevel:S,quality:F0(S),txRate:null})}),r&&r(t),e(t)}else z1?W1('system_profiler SPNetworkDataType SPAirPortDataType -xml 2>/dev/null; echo "######" ; ioreg -n AppleBCMWLANSkywalkInterface -r 2>/dev/null',function(s,i){try{let o=i.toString().split("######"),a=me.plistParser(o[0]),c=a[0]._SPCommandLineArguments.indexOf("SPNetworkDataType")>=0?a[0]._items:a[1]._items,u=a[0]._SPCommandLineArguments.indexOf("SPAirPortDataType")>=0?a[0]._items[0].spairport_airport_interfaces:a[1]._items[0].spairport_airport_interfaces,l=[];o[1].indexOf(" | {")>0&&o[1].indexOf(" | }")>o[1].indexOf(" | {")&&(l=o[1].split(" | {")[1].split(" | }")[0].replace(/ \| /g,"").replace(/"/g,"").split(`
|
|
475
|
+
`));let f=c.find(E=>E._name==="Wi-Fi"),p=u[0].spairport_current_network_information,d=parseInt((""+p.spairport_network_channel).split(" ")[0])||0,m=p.spairport_signal_noise||null,g=[],h=p.spairport_security_mode||"";h==="spairport_security_mode_wep"?g.push("WEP"):h==="spairport_security_mode_wpa2_personal"?g.push("WPA2"):h.startsWith("spairport_security_mode_wpa2_enterprise")?g.push("WPA2 EAP"):h.startsWith("pairport_security_mode_wpa3_transition")?g.push("WPA2/WPA3"):h.startsWith("pairport_security_mode_wpa3")&&g.push("WPA3"),t.push({id:f._name||"Wi-Fi",iface:f.interface||"",model:f.hardware||"",ssid:p._name||"",bssid:p.spairport_network_bssid||"",channel:d,frequency:d?hf(d):null,type:p.spairport_network_phymode||"802.11",security:g,signalLevel:m?parseInt(m,10):null,quality:F0(m),txRate:p.spairport_network_rate||null})}catch{me.noop()}r&&r(t),e(t)}):K1?me.powerShell("netsh wlan show interfaces").then(function(s){let i=s.toString().split(`\r
|
|
476
476
|
`);for(let a=0;a<i.length;a++)i[a]=i[a].trim();let o=i.join(`\r
|
|
477
477
|
`).split(`:\r
|
|
478
478
|
\r
|
|
479
479
|
`);o.shift(),o.forEach(a=>{let c=a.split(`\r
|
|
480
|
-
`);if(c.length>=5){let u=c[0].indexOf(":")>=0?c[0].split(":")[1].trim():"",l=c[1].indexOf(":")>=0?c[1].split(":")[1].trim():"",f=c[2].indexOf(":")>=0?c[2].split(":")[1].trim():"",p=me.getValue(c,"SSID",":",!0),d=me.getValue(c,"BSSID",":",!0)||me.getValue(c,"AP BSSID",":",!0),m=me.getValue(c,"Signal",":",!0),g=
|
|
480
|
+
`);if(c.length>=5){let u=c[0].indexOf(":")>=0?c[0].split(":")[1].trim():"",l=c[1].indexOf(":")>=0?c[1].split(":")[1].trim():"",f=c[2].indexOf(":")>=0?c[2].split(":")[1].trim():"",p=me.getValue(c,"SSID",":",!0),d=me.getValue(c,"BSSID",":",!0)||me.getValue(c,"AP BSSID",":",!0),m=me.getValue(c,"Signal",":",!0),g=X1(m),h=me.getValue(c,"Radio type",":",!0)||me.getValue(c,"Type de radio",":",!0)||me.getValue(c,"Funktyp",":",!0)||null,E=me.getValue(c,"authentication",":",!0)||me.getValue(c,"Authentification",":",!0)||me.getValue(c,"Authentifizierung",":",!0)||null,_=me.getValue(c,"Channel",":",!0)||me.getValue(c,"Canal",":",!0)||me.getValue(c,"Kanal",":",!0)||null,S=me.getValue(c,"Transmit rate (mbps)",":",!0)||me.getValue(c,"Transmission (mbit/s)",":",!0)||me.getValue(c,"Empfangsrate (MBit/s)",":",!0)||null;l&&f&&p&&d&&t.push({id:f,iface:u,model:l,ssid:p,bssid:d,channel:me.toInt(_),frequency:_?hf(_):null,type:h,security:E,signalLevel:g,quality:m?parseInt(m,10):null,txRate:me.toInt(S)||null})}}),r&&r(t),e(t)}):(r&&r(t),e(t))})})}V0.wifiConnections=qfe;function Hfe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];Y1?(eq().forEach(s=>{let i=tq(s.iface);t.push({id:s.id,iface:s.iface,model:i.product?i.product:null,vendor:i.vendor?i.vendor:null,mac:s.mac})}),r&&r(t),e(t)):z1?W1("system_profiler SPNetworkDataType",function(s,i){let o=i.toString().split(`
|
|
481
481
|
|
|
482
482
|
Wi-Fi:
|
|
483
483
|
|
|
484
484
|
`);if(o.length>1){let a=o[1].split(`
|
|
485
485
|
|
|
486
486
|
`)[0].split(`
|
|
487
|
-
`),c=me.getValue(a,"BSD Device Name",":",!0),u=me.getValue(a,"MAC Address",":",!0),l=me.getValue(a,"hardware",":",!0);t.push({id:"Wi-Fi",iface:c,model:l,vendor:"",mac:u})}r&&r(t),e(t)}):
|
|
487
|
+
`),c=me.getValue(a,"BSD Device Name",":",!0),u=me.getValue(a,"MAC Address",":",!0),l=me.getValue(a,"hardware",":",!0);t.push({id:"Wi-Fi",iface:c,model:l,vendor:"",mac:u})}r&&r(t),e(t)}):K1?me.powerShell("netsh wlan show interfaces").then(function(s){let i=s.toString().split(`\r
|
|
488
488
|
`);for(let a=0;a<i.length;a++)i[a]=i[a].trim();let o=i.join(`\r
|
|
489
489
|
`).split(`:\r
|
|
490
490
|
\r
|
|
491
491
|
`);o.shift(),o.forEach(a=>{let c=a.split(`\r
|
|
492
|
-
`);if(c.length>=5){let u=c[0].indexOf(":")>=0?c[0].split(":")[1].trim():"",l=c[1].indexOf(":")>=0?c[1].split(":")[1].trim():"",f=c[2].indexOf(":")>=0?c[2].split(":")[1].trim():"",p=c[3].indexOf(":")>=0?c[3].split(":"):[];p.shift();let d=p.join(":").trim(),m=jfe(l);u&&l&&f&&d&&t.push({id:f,iface:u,model:l,vendor:m,mac:d})}}),r&&r(t),e(t)}):(r&&r(t),e(t))})})}V0.wifiInterfaces=Hfe});var oq=x(j0=>{"use strict";var k0=W("os"),$fe=W("fs"),Wfe=W("path"),mf=W("child_process").exec,
|
|
493
|
-
`);o=[];for(let f of l){let p=f.split(".service")[0];p&&f.indexOf(" not-found ")===-1&&o.push(p.trim())}n=o.join("|")}catch{try{n="";let f=
|
|
494
|
-
`);for(let p of f){let d=p.split("]");d.length===2&&(n+=(n!==""?"|":"")+d[1].trim())}o=n.split("|")}catch{try{let p=
|
|
492
|
+
`);if(c.length>=5){let u=c[0].indexOf(":")>=0?c[0].split(":")[1].trim():"",l=c[1].indexOf(":")>=0?c[1].split(":")[1].trim():"",f=c[2].indexOf(":")>=0?c[2].split(":")[1].trim():"",p=c[3].indexOf(":")>=0?c[3].split(":"):[];p.shift();let d=p.join(":").trim(),m=jfe(l);u&&l&&f&&d&&t.push({id:f,iface:u,model:l,vendor:m,mac:d})}}),r&&r(t),e(t)}):(r&&r(t),e(t))})})}V0.wifiInterfaces=Hfe});var oq=x(j0=>{"use strict";var k0=W("os"),$fe=W("fs"),Wfe=W("path"),mf=W("child_process").exec,J1=W("child_process").execSync,Pe=kt(),Vs=process.platform,Si=Vs==="linux"||Vs==="android",aa=Vs==="darwin",Q1=Vs==="win32",gf=Vs==="freebsd",Ef=Vs==="openbsd",Sf=Vs==="netbsd",G0=Vs==="sunos",zt={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},lu={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},Hr={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},iq={0:"unknown",1:"other",2:"ready",3:"running",4:"blocked",5:"suspended blocked",6:"suspended ready",7:"terminated",8:"stopped",9:"growing"};function Yfe(r){let e=r,t=r.replace(/ +/g," ").split(" ");return t.length===5&&(e=t[4]+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(t[1].toUpperCase())/3+1)).slice(-2)+"-"+("0"+t[2]).slice(-2)+" "+t[3]),e}function zfe(r){let e=new Date;e=new Date(e.getTime()-e.getTimezoneOffset()*6e4);let t=r.split("-"),n=t.length-1,s=n>0?parseInt(t[n-1]):0,i=t[n].split(":"),o=i.length===3?parseInt(i[0]||0):0,a=parseInt(i[i.length===3?1:0]||0),c=parseInt(i[i.length===3?2:1]||0),u=(((s*24+o)*60+a)*60+c)*1e3,l=new Date(e.getTime()),f=l.toISOString().substring(0,10)+" "+l.toISOString().substring(11,19);try{l=new Date(e.getTime()-u),f=l.toISOString().substring(0,10)+" "+l.toISOString().substring(11,19)}catch{Pe.noop()}return f}function Kfe(r,e){return Pe.isFunction(r)&&!e&&(e=r,r=""),new Promise(t=>{process.nextTick(()=>{if(typeof r!="string")return e&&e([]),t([]);if(r){let n="";try{n.__proto__.toLowerCase=Pe.stringToLower,n.__proto__.replace=Pe.stringReplace,n.__proto__.toString=Pe.stringToString,n.__proto__.substr=Pe.stringSubstr,n.__proto__.substring=Pe.stringSubstring,n.__proto__.trim=Pe.stringTrim,n.__proto__.startsWith=Pe.stringStartWith}catch{Object.setPrototypeOf(n,Pe.stringObj)}let s=Pe.sanitizeShellString(r),i=Pe.mathMin(s.length,2e3);for(let u=0;u<=i;u++)s[u]!==void 0&&(n=n+s[u]);n=n.trim().toLowerCase().replace(/, /g,"|").replace(/,+/g,"|"),n===""&&(n="*"),Pe.isPrototypePolluted()&&n!=="*"&&(n="------");let o=n.split("|"),a=[],c=[];if(Si||gf||Ef||Sf||aa){if((Si||gf||Ef||Sf)&&n==="*")try{let l=J1("systemctl --all --type=service --no-legend 2> /dev/null",Pe.execOptsLinux).toString().split(`
|
|
493
|
+
`);o=[];for(let f of l){let p=f.split(".service")[0];p&&f.indexOf(" not-found ")===-1&&o.push(p.trim())}n=o.join("|")}catch{try{n="";let f=J1("service --status-all 2> /dev/null",Pe.execOptsLinux).toString().split(`
|
|
494
|
+
`);for(let p of f){let d=p.split("]");d.length===2&&(n+=(n!==""?"|":"")+d[1].trim())}o=n.split("|")}catch{try{let p=J1("ls /etc/init.d/ -m 2> /dev/null",Pe.execOptsLinux).toString().split(`
|
|
495
495
|
`).join("");if(n="",p){let d=p.split(",");for(let m of d){let g=m.trim();g&&(n+=(n!==""?"|":"")+g)}o=n.split("|")}}catch{n="",o=[]}}}aa&&n==="*"&&(e&&e(a),t(a));let u=aa?["-caxo","pcpu,pmem,pid,command"]:["-axo","pcpu,pmem,pid,command"];n!==""&&o.length>0?Pe.execSafe("ps",u).then(l=>{if(l){let f=l.replace(/ +/g," ").replace(/,+/g,".").split(`
|
|
496
496
|
`);if(o.forEach(function(p){let d;aa?d=f.filter(function(g){return g.toLowerCase().indexOf(p)!==-1}):d=f.filter(function(g){return g.toLowerCase().indexOf(" "+p.toLowerCase()+":")!==-1||g.toLowerCase().indexOf("("+p.toLowerCase()+" ")!==-1||g.toLowerCase().indexOf("("+p.toLowerCase()+")")!==-1||g.toLowerCase().indexOf(" "+p.toLowerCase().replace(/[0-9.]/g,"")+":")!==-1||g.toLowerCase().indexOf("/"+p.toLowerCase())!==-1});let m=[];for(let g of d){let h=g.trim().split(" ")[2];h&&m.push(parseInt(h,10))}a.push({name:p,running:d.length>0,startmode:"",pids:m,cpu:parseFloat(d.reduce(function(g,h){return g+parseFloat(h.trim().split(" ")[0])},0).toFixed(2)),mem:parseFloat(d.reduce(function(g,h){return g+parseFloat(h.trim().split(" ")[1])},0).toFixed(2))})}),Si){let p='cat /proc/stat | grep "cpu "';for(let d in a)for(let m in a[d].pids)p+=";cat /proc/"+a[d].pids[m]+"/stat";mf(p,{maxBuffer:1024*2e4},function(d,m){let g=m.toString().split(`
|
|
497
|
-
`),h=
|
|
498
|
-
`);o.forEach(function(d){let m=p.filter(function(g){return g.indexOf(d)!==-1});a.push({name:d,running:m.length>0,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)}else o.forEach(function(p){a.push({name:p,running:!1,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)})}):(e&&e(a),t(a))}if(
|
|
499
|
-
`),g=Pe.getValue(m,"Name",":",!0).toLowerCase(),h=Pe.getValue(m,"Caption",":",!0).toLowerCase(),E=Pe.getValue(m,"Started",":",!0),_=Pe.getValue(m,"StartMode",":",!0),S=Pe.getValue(m,"ProcessId",":",!0);(n==="*"||o.indexOf(g)>=0||o.indexOf(h)>=0)&&(a.push({name:g,running:E.toLowerCase()==="true",startmode:_,pids:[S],cpu:0,mem:0}),c.push(g),c.push(h))}}),n!=="*"&&o.filter(function(m){return c.indexOf(m)===-1}).forEach(function(m){a.push({name:m,running:!1,startmode:"",pids:[],cpu:0,mem:0})}),e&&e(a),t(a))})}catch{e&&e(a),t(a)}}else e&&e([]),t([])})})}j0.services=Kfe;function
|
|
497
|
+
`),h=Z1(g.shift()),E={},_={};g.forEach(S=>{if(_=eO(S,h,lu),_.pid){let T=-1;for(let y in a)for(let b in a[y].pids)parseInt(a[y].pids[b])===parseInt(_.pid)&&(T=y);T>=0&&(a[T].cpu+=_.cpuu+_.cpus),E[_.pid]={cpuu:_.cpuu,cpus:_.cpus,utime:_.utime,stime:_.stime,cutime:_.cutime,cstime:_.cstime}}}),lu.all=h,lu.list=Object.assign({},E),lu.ms=Date.now()-lu.ms,lu.result=Object.assign({},a),e&&e(a),t(a)})}else e&&e(a),t(a)}else u=["-o","comm"],Pe.execSafe("ps",u).then(f=>{if(f){let p=f.replace(/ +/g," ").replace(/,+/g,".").split(`
|
|
498
|
+
`);o.forEach(function(d){let m=p.filter(function(g){return g.indexOf(d)!==-1});a.push({name:d,running:m.length>0,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)}else o.forEach(function(p){a.push({name:p,running:!1,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)})}):(e&&e(a),t(a))}if(Q1)try{let u="Get-CimInstance Win32_Service";o[0]!=="*"&&(u+=' -Filter "',o.forEach(l=>{u+=`Name='${l}' or `}),u=`${u.slice(0,-4)}"`),u+=" | select Name,Caption,Started,StartMode,ProcessId | fl",Pe.powerShell(u).then((l,f)=>{f?(o.forEach(function(p){a.push({name:p,running:!1,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)):(l.split(/\n\s*\n/).forEach(d=>{if(d.trim()!==""){let m=d.trim().split(`\r
|
|
499
|
+
`),g=Pe.getValue(m,"Name",":",!0).toLowerCase(),h=Pe.getValue(m,"Caption",":",!0).toLowerCase(),E=Pe.getValue(m,"Started",":",!0),_=Pe.getValue(m,"StartMode",":",!0),S=Pe.getValue(m,"ProcessId",":",!0);(n==="*"||o.indexOf(g)>=0||o.indexOf(h)>=0)&&(a.push({name:g,running:E.toLowerCase()==="true",startmode:_,pids:[S],cpu:0,mem:0}),c.push(g),c.push(h))}}),n!=="*"&&o.filter(function(m){return c.indexOf(m)===-1}).forEach(function(m){a.push({name:m,running:!1,startmode:"",pids:[],cpu:0,mem:0})}),e&&e(a),t(a))})}catch{e&&e(a),t(a)}}else e&&e([]),t([])})})}j0.services=Kfe;function Z1(r){let e=r.replace(/ +/g," ").split(" "),t=e.length>=2?parseInt(e[1]):0,n=e.length>=3?parseInt(e[2]):0,s=e.length>=4?parseInt(e[3]):0,i=e.length>=5?parseInt(e[4]):0,o=e.length>=6?parseInt(e[5]):0,a=e.length>=7?parseInt(e[6]):0,c=e.length>=8?parseInt(e[7]):0,u=e.length>=9?parseInt(e[8]):0,l=e.length>=10?parseInt(e[9]):0,f=e.length>=11?parseInt(e[10]):0;return t+n+s+i+o+a+c+u+l+f}function eO(r,e,t){let n=r.replace(/ +/g," ").split(")");if(n.length>=2){let s=n[1].split(" ");if(s.length>=16){let i=parseInt(n[0].split(" ")[0]),o=parseInt(s[12]),a=parseInt(s[13]),c=parseInt(s[14]),u=parseInt(s[15]),l=0,f=0;return t.all>0&&t.list[i]?(l=(o+c-t.list[i].utime-t.list[i].cutime)/(e-t.all)*100,f=(a+u-t.list[i].stime-t.list[i].cstime)/(e-t.all)*100):(l=(o+c)/e*100,f=(a+u)/e*100),{pid:i,utime:o,stime:a,cutime:c,cstime:u,cpuu:l,cpus:f}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}function sq(r,e,t){let n=0,s=0;return t.all>0&&t.list[r.pid]?(n=(r.utime-t.list[r.pid].utime)/(e-t.all)*100,s=(r.stime-t.list[r.pid].stime)/(e-t.all)*100):(n=r.utime/e*100,s=r.stime/e*100),{pid:r.pid,utime:r.utime,stime:r.stime,cpuu:n>0?n:0,cpus:s>0?s:0}}function Xfe(r){let e=[];function t(o){o=o||"";let a=o.split(" ")[0];if(a.substr(-1)===":"&&(a=a.substr(0,a.length-1)),a.substr(0,1)!=="["){let c=a.split("/");isNaN(parseInt(c[c.length-1]))?a=c[c.length-1]:a=c[0]}return a}function n(o){let a=0,c=0;function u(v){a=c,e[v]?c=o.substring(e[v].to+a,1e4).indexOf(" "):c=1e4}u(0);let l=parseInt(o.substring(e[0].from+a,e[0].to+c));u(1);let f=parseInt(o.substring(e[1].from+a,e[1].to+c));u(2);let p=parseFloat(o.substring(e[2].from+a,e[2].to+c).replace(/,/g,"."));u(3);let d=parseFloat(o.substring(e[3].from+a,e[3].to+c).replace(/,/g,"."));u(4);let m=parseInt(o.substring(e[4].from+a,e[4].to+c));u(5);let g=parseInt(o.substring(e[5].from+a,e[5].to+c));u(6);let h=parseInt(o.substring(e[6].from+a,e[6].to+c));u(7);let E=parseInt(o.substring(e[7].from+a,e[7].to+c))||0;u(8);let _=G0?Yfe(o.substring(e[8].from+a,e[8].to+c).trim()):zfe(o.substring(e[8].from+a,e[8].to+c).trim());u(9);let S=o.substring(e[9].from+a,e[9].to+c).trim();S=S[0]==="R"?"running":S[0]==="S"?"sleeping":S[0]==="T"?"stopped":S[0]==="W"?"paging":S[0]==="X"?"dead":S[0]==="Z"?"zombie":S[0]==="D"||S[0]==="U"?"blocked":"unknown",u(10);let T=o.substring(e[10].from+a,e[10].to+c).trim();(T==="?"||T==="??")&&(T=""),u(11);let y=o.substring(e[11].from+a,e[11].to+c).trim();u(12);let b="",C="",D="",A=o.substring(e[12].from+a,e[12].to+c).trim();if(A.substr(A.length-1)==="]"&&(A=A.slice(0,-1)),A.substr(0,1)==="[")C=A.substring(1);else{let v=A.indexOf("("),I=A.indexOf(")"),F=A.indexOf("/"),V=A.indexOf(":");if(v<I&&v<F&&F<I)C=A.split(" ")[0],C=C.replace(/:/g,"");else if(V>0&&(F===-1||F>3))C=A.split(" ")[0],C=C.replace(/:/g,"");else{let $=A.indexOf(" -"),k=A.indexOf(" /");$=$>=0?$:1e4,k=k>=0?k:1e4;let K=Math.min($,k),ee=A.substr(0,K),ne=A.substr(K),ie=ee.lastIndexOf("/");if(ie>=0&&(b=ee.substr(0,ie),ee=ee.substr(ie+1)),K===1e4&&ee.indexOf(" ")>-1){let Ee=ee.split(" ");$fe.existsSync(Wfe.join(b,Ee[0]))?(C=Ee.shift(),D=(Ee.join(" ")+" "+ne).trim()):(C=ee.trim(),D=ne.trim())}else C=ee.trim(),D=ne.trim()}}return{pid:l,parentPid:f,name:Si?t(C):C,cpu:p,cpuu:0,cpus:0,mem:d,priority:m,memVsz:g,memRss:h,nice:E,started:_,state:S,tty:T,user:y,command:C,params:D,path:b}}function s(o){let a=[];if(o.length>1){let c=o[0];e=Pe.parseHead(c,8),o.shift(),o.forEach(function(u){u.trim()!==""&&a.push(n(u))})}return a}function i(o){function a(l){let f=("0"+(l.getMonth()+1).toString()).slice(-2),p=l.getFullYear().toString(),d=("0"+l.getDate().toString()).slice(-2),m=("0"+l.getHours().toString()).slice(-2),g=("0"+l.getMinutes().toString()).slice(-2),h=("0"+l.getSeconds().toString()).slice(-2);return p+"-"+f+"-"+d+" "+m+":"+g+":"+h}function c(l){let f="";if(l.indexOf("d")>=0){let p=l.split("d");f=a(new Date(Date.now()-(p[0]*24+p[1]*1)*60*60*1e3))}else if(l.indexOf("h")>=0){let p=l.split("h");f=a(new Date(Date.now()-(p[0]*60+p[1]*1)*60*1e3))}else if(l.indexOf(":")>=0){let p=l.split(":");f=a(new Date(Date.now()-(p.length>1?(p[0]*60+p[1])*1e3:p[0]*1e3)))}return f}let u=[];return o.forEach(function(l){if(l.trim()!==""){l=l.trim().replace(/ +/g," ").replace(/,+/g,".");let f=l.split(" "),p=f.slice(9).join(" "),d=parseFloat((1*parseInt(f[3])*1024/k0.totalmem()).toFixed(1)),m=c(f[5]);u.push({pid:parseInt(f[0]),parentPid:parseInt(f[1]),name:t(p),cpu:0,cpuu:0,cpus:0,mem:d,priority:0,memVsz:parseInt(f[2]),memRss:parseInt(f[3]),nice:parseInt(f[4]),started:m,state:f[6]==="R"?"running":f[6]==="S"?"sleeping":f[6]==="T"?"stopped":f[6]==="W"?"paging":f[6]==="X"?"dead":f[6]==="Z"?"zombie":f[6]==="D"||f[6]==="U"?"blocked":"unknown",tty:f[7],user:f[8],command:p})}}),u}return new Promise(o=>{process.nextTick(()=>{let a={all:0,running:0,blocked:0,sleeping:0,unknown:0,list:[]},c="";if(zt.ms&&Date.now()-zt.ms>=500||zt.ms===0)if(Si||gf||Ef||Sf||aa||G0)Si&&(c="export LC_ALL=C; ps -axo pid:11,ppid:11,pcpu:6,pmem:6,pri:5,vsz:11,rss:11,ni:5,etime:30,state:5,tty:15,user:20,command; unset LC_ALL"),(gf||Ef||Sf)&&(c="export LC_ALL=C; ps -axo pid,ppid,pcpu,pmem,pri,vsz,rss,ni,etime,state,tty,user,command; unset LC_ALL"),aa&&(c="ps -axo pid,ppid,pcpu,pmem,pri,vsz=temp_title_1,rss=temp_title_2,nice,etime=temp_title_3,state,tty,user,command -r"),G0&&(c="ps -Ao pid,ppid,pcpu,pmem,pri,vsz,rss,nice,stime,s,tty,user,comm"),mf(c,{maxBuffer:1024*2e4},function(u,l){!u&&l.toString().trim()?(a.list=s(l.toString().split(`
|
|
500
500
|
`)).slice(),a.all=a.list.length,a.running=a.list.filter(function(f){return f.state==="running"}).length,a.blocked=a.list.filter(function(f){return f.state==="blocked"}).length,a.sleeping=a.list.filter(function(f){return f.state==="sleeping"}).length,Si?(c='cat /proc/stat | grep "cpu "',a.list.forEach(f=>{c+=";cat /proc/"+f.pid+"/stat"}),mf(c,{maxBuffer:1024*2e4},function(f,p){let d=p.toString().split(`
|
|
501
|
-
`),m=
|
|
502
|
-
`);d.shift(),a.list=i(d).slice(),a.all=a.list.length,a.running=a.list.filter(function(m){return m.state==="running"}).length,a.blocked=a.list.filter(function(m){return m.state==="blocked"}).length,a.sleeping=a.list.filter(function(m){return m.state==="sleeping"}).length,r&&r(a),o(a)}}))});else if(
|
|
503
|
-
`),S=parseInt(Pe.getValue(_,"ProcessId",":",!0),10),T=parseInt(Pe.getValue(_,"ParentProcessId",":",!0),10),y=Pe.getValue(_,"ExecutionState",":"),b=Pe.getValue(_,"Caption",":",!0),C=Pe.getValue(_,"CommandLine",":",!0),D=!1;_.forEach(V=>{D&&V.toLowerCase().startsWith(" ")?C+=" "+V.trim():D=!1,V.toLowerCase().startsWith("commandline")&&(D=!0)});let A=Pe.getValue(_,"ExecutablePath",":",!0),v=parseInt(Pe.getValue(_,"UserModeTime",":",!0),10),I=parseInt(Pe.getValue(_,"KernelModeTime",":",!0),10),F=parseInt(Pe.getValue(_,"WorkingSetSize",":",!0),10);g=g+v,h=h+I,a.all++,y||a.unknown++,y==="3"&&a.running++,(y==="4"||y==="5")&&a.blocked++,d.push({pid:S,utime:v,stime:I,cpu:0,cpuu:0,cpus:0}),p.push({pid:S,parentPid:T,name:b,cpu:0,cpuu:0,cpus:0,mem:F/k0.totalmem()*100,priority:parseInt(Pe.getValue(_,"Priority",":",!0),10),memVsz:parseInt(Pe.getValue(_,"PageFileUsage",":",!0),10),memRss:Math.floor(parseInt(Pe.getValue(_,"WorkingSetSize",":",!0),10)/1024),nice:0,started:Pe.getValue(_,"CreationDate",":",!0),state:y?iq[y]:iq[0],tty:"",user:"",command:C||b,path:A,params:""})}}),a.sleeping=a.all-a.running-a.blocked-a.unknown,a.list=p,d.forEach(E=>{let _=sq(E,g+h,zt),S=a.list.map(function(T){return T.pid}).indexOf(_.pid);S>=0&&(a.list[S].cpu=_.cpuu+_.cpus,a.list[S].cpuu=_.cpuu,a.list[S].cpus=_.cpus),m[_.pid]={cpuu:_.cpuu,cpus:_.cpus,utime:_.utime,stime:_.stime}}),zt.all=g+h,zt.all_utime=g,zt.all_stime=h,zt.list=Object.assign({},m),zt.ms=Date.now()-zt.ms,zt.result=Object.assign({},a)}r&&r(a),o(a)})}catch{r&&r(a),o(a)}else r&&r(a),o(a);else r&&r(zt.result),o(zt.result)})})}j0.processes=Xfe;function Jfe(r,e){return Pe.isFunction(r)&&!e&&(e=r,r=""),new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return e&&e([]),t([]);let n="";try{n.__proto__.toLowerCase=Pe.stringToLower,n.__proto__.replace=Pe.stringReplace,n.__proto__.toString=Pe.stringToString,n.__proto__.substr=Pe.stringSubstr,n.__proto__.substring=Pe.stringSubstring,n.__proto__.trim=Pe.stringTrim,n.__proto__.startsWith=Pe.stringStartWith}catch{Object.setPrototypeOf(n,Pe.stringObj)}let s=Pe.sanitizeShellString(r),i=Pe.mathMin(s.length,2e3);for(let u=0;u<=i;u++)s[u]!==void 0&&(n=n+s[u]);n=n.trim().toLowerCase().replace(/, /g,"|").replace(/,+/g,"|"),n===""&&(n="*"),Pe.isPrototypePolluted()&&n!=="*"&&(n="------");let o=n.split("|"),a=[];if((Pe.isPrototypePolluted()?"":Pe.sanitizeShellString(r)||"*")&&o.length&&o[0]!=="------"){if(
|
|
501
|
+
`),m=Z1(d.shift()),g={},h={};d.forEach(E=>{if(h=eO(E,m,zt),h.pid){let _=a.list.map(function(S){return S.pid}).indexOf(h.pid);_>=0&&(a.list[_].cpu=h.cpuu+h.cpus,a.list[_].cpuu=h.cpuu,a.list[_].cpus=h.cpus),g[h.pid]={cpuu:h.cpuu,cpus:h.cpus,utime:h.utime,stime:h.stime,cutime:h.cutime,cstime:h.cstime}}}),zt.all=m,zt.list=Object.assign({},g),zt.ms=Date.now()-zt.ms,zt.result=Object.assign({},a),r&&r(a),o(a)})):(r&&r(a),o(a))):(c="ps -o pid,ppid,vsz,rss,nice,etime,stat,tty,user,comm",G0&&(c="ps -o pid,ppid,vsz,rss,nice,etime,s,tty,user,comm"),mf(c,{maxBuffer:1024*2e4},function(f,p){if(f)r&&r(a),o(a);else{let d=p.toString().split(`
|
|
502
|
+
`);d.shift(),a.list=i(d).slice(),a.all=a.list.length,a.running=a.list.filter(function(m){return m.state==="running"}).length,a.blocked=a.list.filter(function(m){return m.state==="blocked"}).length,a.sleeping=a.list.filter(function(m){return m.state==="sleeping"}).length,r&&r(a),o(a)}}))});else if(Q1)try{Pe.powerShell('Get-CimInstance Win32_Process | select-Object ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage, @{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}} | fl').then((u,l)=>{if(!l){let f=u.split(/\n\s*\n/),p=[],d=[],m={},g=0,h=0;f.forEach(E=>{if(E.trim()!==""){let _=E.trim().split(`\r
|
|
503
|
+
`),S=parseInt(Pe.getValue(_,"ProcessId",":",!0),10),T=parseInt(Pe.getValue(_,"ParentProcessId",":",!0),10),y=Pe.getValue(_,"ExecutionState",":"),b=Pe.getValue(_,"Caption",":",!0),C=Pe.getValue(_,"CommandLine",":",!0),D=!1;_.forEach(V=>{D&&V.toLowerCase().startsWith(" ")?C+=" "+V.trim():D=!1,V.toLowerCase().startsWith("commandline")&&(D=!0)});let A=Pe.getValue(_,"ExecutablePath",":",!0),v=parseInt(Pe.getValue(_,"UserModeTime",":",!0),10),I=parseInt(Pe.getValue(_,"KernelModeTime",":",!0),10),F=parseInt(Pe.getValue(_,"WorkingSetSize",":",!0),10);g=g+v,h=h+I,a.all++,y||a.unknown++,y==="3"&&a.running++,(y==="4"||y==="5")&&a.blocked++,d.push({pid:S,utime:v,stime:I,cpu:0,cpuu:0,cpus:0}),p.push({pid:S,parentPid:T,name:b,cpu:0,cpuu:0,cpus:0,mem:F/k0.totalmem()*100,priority:parseInt(Pe.getValue(_,"Priority",":",!0),10),memVsz:parseInt(Pe.getValue(_,"PageFileUsage",":",!0),10),memRss:Math.floor(parseInt(Pe.getValue(_,"WorkingSetSize",":",!0),10)/1024),nice:0,started:Pe.getValue(_,"CreationDate",":",!0),state:y?iq[y]:iq[0],tty:"",user:"",command:C||b,path:A,params:""})}}),a.sleeping=a.all-a.running-a.blocked-a.unknown,a.list=p,d.forEach(E=>{let _=sq(E,g+h,zt),S=a.list.map(function(T){return T.pid}).indexOf(_.pid);S>=0&&(a.list[S].cpu=_.cpuu+_.cpus,a.list[S].cpuu=_.cpuu,a.list[S].cpus=_.cpus),m[_.pid]={cpuu:_.cpuu,cpus:_.cpus,utime:_.utime,stime:_.stime}}),zt.all=g+h,zt.all_utime=g,zt.all_stime=h,zt.list=Object.assign({},m),zt.ms=Date.now()-zt.ms,zt.result=Object.assign({},a)}r&&r(a),o(a)})}catch{r&&r(a),o(a)}else r&&r(a),o(a);else r&&r(zt.result),o(zt.result)})})}j0.processes=Xfe;function Jfe(r,e){return Pe.isFunction(r)&&!e&&(e=r,r=""),new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return e&&e([]),t([]);let n="";try{n.__proto__.toLowerCase=Pe.stringToLower,n.__proto__.replace=Pe.stringReplace,n.__proto__.toString=Pe.stringToString,n.__proto__.substr=Pe.stringSubstr,n.__proto__.substring=Pe.stringSubstring,n.__proto__.trim=Pe.stringTrim,n.__proto__.startsWith=Pe.stringStartWith}catch{Object.setPrototypeOf(n,Pe.stringObj)}let s=Pe.sanitizeShellString(r),i=Pe.mathMin(s.length,2e3);for(let u=0;u<=i;u++)s[u]!==void 0&&(n=n+s[u]);n=n.trim().toLowerCase().replace(/, /g,"|").replace(/,+/g,"|"),n===""&&(n="*"),Pe.isPrototypePolluted()&&n!=="*"&&(n="------");let o=n.split("|"),a=[];if((Pe.isPrototypePolluted()?"":Pe.sanitizeShellString(r)||"*")&&o.length&&o[0]!=="------"){if(Q1)try{Pe.powerShell("Get-CimInstance Win32_Process | select ProcessId,Caption,UserModeTime,KernelModeTime,WorkingSetSize | fl").then((u,l)=>{if(!l){let f=u.split(/\n\s*\n/),p=[],d={},m=0,g=0;f.forEach(h=>{if(h.trim()!==""){let E=h.trim().split(`\r
|
|
504
504
|
`),_=parseInt(Pe.getValue(E,"ProcessId",":",!0),10),S=Pe.getValue(E,"Caption",":",!0),T=parseInt(Pe.getValue(E,"UserModeTime",":",!0),10),y=parseInt(Pe.getValue(E,"KernelModeTime",":",!0),10),b=parseInt(Pe.getValue(E,"WorkingSetSize",":",!0),10);m=m+T,g=g+y,p.push({pid:_,name:S,utime:T,stime:y,cpu:0,cpuu:0,cpus:0,mem:b});let C="",D=!1;if(o.forEach(function(A){S.toLowerCase().indexOf(A.toLowerCase())>=0&&!D&&(D=!0,C=A)}),n==="*"||D){let A=!1;a.forEach(function(v){v.proc.toLowerCase()===C.toLowerCase()&&(v.pids.push(_),v.mem+=b/k0.totalmem()*100,A=!0)}),A||a.push({proc:C,pid:_,pids:[_],cpu:0,mem:b/k0.totalmem()*100})}}}),n!=="*"&&o.filter(function(E){return p.filter(function(_){return _.name.toLowerCase().indexOf(E)>=0}).length===0}).forEach(function(E){a.push({proc:E,pid:null,pids:[],cpu:0,mem:0})}),p.forEach(h=>{let E=sq(h,m+g,Hr),_=-1;for(let S=0;S<a.length;S++)(a[S].pid===E.pid||a[S].pids.indexOf(E.pid)>=0)&&(_=S);_>=0&&(a[_].cpu+=E.cpuu+E.cpus),d[E.pid]={cpuu:E.cpuu,cpus:E.cpus,utime:E.utime,stime:E.stime}}),Hr.all=m+g,Hr.all_utime=m,Hr.all_stime=g,Hr.list=Object.assign({},d),Hr.ms=Date.now()-Hr.ms,Hr.result=JSON.parse(JSON.stringify(a)),e&&e(a),t(a)}})}catch{e&&e(a),t(a)}if(aa||Si||gf||Ef||Sf){let u=["-axo","pid,ppid,pcpu,pmem,comm"];Pe.execSafe("ps",u).then(l=>{if(l){let f=[],p=l.toString().split(`
|
|
505
505
|
`).filter(function(d){if(n==="*")return!0;if(d.toLowerCase().indexOf("grep")!==-1)return!1;let m=!1;return o.forEach(function(g){m=m||d.toLowerCase().indexOf(g.toLowerCase())>=0}),m});if(p.shift(),p.forEach(function(d){let m=d.trim().replace(/ +/g," ").split(" ");if(m.length>4){let g=m[4].indexOf("/")>=0?m[4].substring(0,m[4].indexOf("/")):m[4],h=Si?g:m[4].substring(m[4].lastIndexOf("/")+1);f.push({name:h,pid:parseInt(m[0])||0,ppid:parseInt(m[1])||0,cpu:parseFloat(m[2].replace(",",".")),mem:parseFloat(m[3].replace(",","."))})}}),f.forEach(function(d){let m=-1,g=!1,h=d.name;for(let E=0;E<a.length;E++)d.name.toLowerCase().indexOf(a[E].proc.toLowerCase())>=0&&(m=E);o.forEach(function(E){d.name.toLowerCase().indexOf(E.toLowerCase())>=0&&!g&&(g=!0,h=E)}),(n==="*"||g)&&(m<0?h&&a.push({proc:h,pid:d.pid,pids:[d.pid],cpu:d.cpu,mem:d.mem}):(d.ppid<10&&(a[m].pid=d.pid),a[m].pids.push(d.pid),a[m].cpu+=d.cpu,a[m].mem+=d.mem))}),n!=="*"&&o.filter(function(m){return f.filter(function(g){return g.name.toLowerCase().indexOf(m)>=0}).length===0}).forEach(function(m){a.push({proc:m,pid:null,pids:[],cpu:0,mem:0})}),Si){a.forEach(function(m){m.cpu=0});let d='cat /proc/stat | grep "cpu "';for(let m in a)for(let g in a[m].pids)d+=";cat /proc/"+a[m].pids[g]+"/stat";mf(d,{maxBuffer:1024*2e4},function(m,g){let h=g.toString().split(`
|
|
506
|
-
`),E=
|
|
506
|
+
`),E=Z1(h.shift()),_={},S={};h.forEach(T=>{if(S=eO(T,E,Hr),S.pid){let y=-1;for(let b in a)a[b].pids.indexOf(S.pid)>=0&&(y=b);y>=0&&(a[y].cpu+=S.cpuu+S.cpus),_[S.pid]={cpuu:S.cpuu,cpus:S.cpus,utime:S.utime,stime:S.stime,cutime:S.cutime,cstime:S.cstime}}}),a.forEach(function(T){T.cpu=Math.round(T.cpu*100)/100}),Hr.all=E,Hr.list=Object.assign({},_),Hr.ms=Date.now()-Hr.ms,Hr.result=Object.assign({},a),e&&e(a),t(a)})}else e&&e(a),t(a)}else e&&e(a),t(a)})}}})})}j0.processLoad=Jfe});var uq=x(cq=>{"use strict";var _f=W("child_process").exec,Fi=kt(),Gs=process.platform,Qfe=Gs==="linux"||Gs==="android",Zfe=Gs==="darwin",epe=Gs==="win32",tpe=Gs==="freebsd",rpe=Gs==="openbsd",npe=Gs==="netbsd",ipe=Gs==="sunos";function aq(r,e){let t=[],n=[],s={},i=!0,o=[],a=[],c={},u=!0;return r.forEach(function(l){if(l==="---")u=!1;else{let f=l.replace(/ +/g," ").split(" ");u?n.push({user:f[0],tty:f[1],date:f[2],time:f[3],ip:f&&f.length>4?f[4].replace(/\(/g,"").replace(/\)/g,""):""}):i?(o=f,o.forEach(function(p){a.push(l.indexOf(p))}),i=!1):(s.user=l.substring(a[0],a[1]-1).trim(),s.tty=l.substring(a[1],a[2]-1).trim(),s.ip=l.substring(a[2],a[3]-1).replace(/\(/g,"").replace(/\)/g,"").trim(),s.command=l.substring(a[7],1e3).trim(),c=n.filter(function(p){return p.user.substring(0,8).trim()===s.user&&p.tty===s.tty}),c.length===1&&t.push({user:c[0].user,tty:c[0].tty,date:c[0].date,time:c[0].time,ip:c[0].ip,command:s.command}))}}),t.length===0&&e===2?n:t}function tO(r){let e=[],t=[],n={},s={},i=!0;return r.forEach(function(o){if(o==="---")i=!1;else{let a=o.replace(/ +/g," ").split(" ");if(i){let c=""+new Date().getFullYear()+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(a[2].toUpperCase())/3+1)).slice(-2)+"-"+("0"+a[3]).slice(-2);try{new Date(c)>new Date&&(c=""+(new Date().getFullYear()-1)+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(a[2].toUpperCase())/3+1)).slice(-2)+"-"+("0"+a[3]).slice(-2))}catch{Fi.noop()}t.push({user:a[0],tty:a[1],date:c,time:a[4]})}else n.user=a[0],n.tty=a[1],n.ip=a[2]!=="-"?a[2]:"",n.command=a.slice(5,1e3).join(" "),s=t.filter(function(c){return c.user.substring(0,10)===n.user.substring(0,10)&&(c.tty.substring(3,1e3)===n.tty||c.tty===n.tty)}),s.length===1&&e.push({user:s[0].user,tty:s[0].tty,date:s[0].date,time:s[0].time,ip:n.ip,command:n.command})}}),e}function spe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Qfe&&_f('export LC_ALL=C; who --ips; echo "---"; w; unset LC_ALL | tail -n +2',function(n,s){if(n)r&&r(t),e(t);else{let i=s.toString().split(`
|
|
507
507
|
`);t=aq(i,1),t.length===0?_f('who; echo "---"; w | tail -n +2',function(o,a){o||(i=a.toString().split(`
|
|
508
508
|
`),t=aq(i,2)),r&&r(t),e(t)}):(r&&r(t),e(t))}}),(tpe||rpe||npe)&&_f('who; echo "---"; w -ih',function(n,s){if(!n){let i=s.toString().split(`
|
|
509
|
-
`);t=
|
|
510
|
-
`);t=
|
|
511
|
-
`);t=
|
|
509
|
+
`);t=tO(i)}r&&r(t),e(t)}),ipe&&_f('who; echo "---"; w -h',function(n,s){if(!n){let i=s.toString().split(`
|
|
510
|
+
`);t=tO(i)}r&&r(t),e(t)}),Zfe&&_f('export LC_ALL=C; who; echo "---"; w -ih; unset LC_ALL',function(n,s){if(!n){let i=s.toString().split(`
|
|
511
|
+
`);t=tO(i)}r&&r(t),e(t)}),epe)try{let n=`Get-CimInstance Win32_LogonSession | select LogonId,@{n="StartTime";e={$_.StartTime.ToString("yyyy-MM-dd HH:mm:ss")}} | fl; echo '#-#-#-#';`;n+="Get-CimInstance Win32_LoggedOnUser | select antecedent,dependent | fl ; echo '#-#-#-#';",n+=`$process = (Get-CimInstance Win32_Process -Filter "name = 'explorer.exe'"); Invoke-CimMethod -InputObject $process[0] -MethodName GetOwner | select user, domain | fl; get-process -name explorer | select-object sessionid | fl; echo '#-#-#-#';`,n+="query user",Fi.powerShell(n).then(s=>{if(s){s=s.split("#-#-#-#");let i=ope((s[0]||"").split(/\n\s*\n/)),o=upe((s[1]||"").split(/\n\s*\n/)),a=lpe((s[3]||"").split(`\r
|
|
512
512
|
`)),c=cpe((s[2]||"").split(/\n\s*\n/),a);for(let u in o)({}).hasOwnProperty.call(o,u)&&(o[u].dateTime={}.hasOwnProperty.call(i,u)?i[u]:"");c.forEach(u=>{let l="";for(let f in o)({}).hasOwnProperty.call(o,f)&&o[f].user===u.user&&(!l||l<o[f].dateTime)&&(l=o[f].dateTime);t.push({user:u.user,tty:u.tty,date:`${l.substring(0,10)}`,time:`${l.substring(11,19)}`,ip:"",command:""})})}r&&r(t),e(t)})}catch{r&&r(t),e(t)}})})}function ope(r){let e={};return r.forEach(t=>{let n=t.split(`\r
|
|
513
513
|
`),s=Fi.getValue(n,"LogonId"),i=Fi.getValue(n,"starttime");s&&(e[s]=i)}),e}function ape(r,e){r=r.toLowerCase(),e=e.toLowerCase();let t=0,n=r.length;e.length>n&&(n=e.length);for(let s=0;s<n;s++){let i=r[s]||"",o=e[s]||"";i===o&&t++}return n>10?t/n>.9:n>0?t/n>.8:!1}function cpe(r,e){let t=[];return r.forEach(n=>{let s=n.split(`\r
|
|
514
514
|
`),i=Fi.getValue(s,"domain",":",!0),o=Fi.getValue(s,"user",":",!0),a=Fi.getValue(s,"sessionid",":",!0);if(o){let c=e.filter(u=>ape(u.user,o));t.push({domain:i,user:o,tty:c&&c[0]&&c[0].tty?c[0].tty:a})}}),t}function upe(r){let e={};return r.forEach(t=>{let n=t.split(`\r
|
|
515
|
-
`),i=Fi.getValue(n,"antecedent",":",!0).split("="),o=i.length>2?i[1].split(",")[0].replace(/"/g,"").trim():"",a=i.length>2?i[2].replace(/"/g,"").replace(/\)/g,"").trim():"";i=Fi.getValue(n,"dependent",":",!0).split("=");let u=i.length>1?i[1].replace(/"/g,"").replace(/\)/g,"").trim():"";u&&(e[u]={domain:a,user:o})}),e}function lpe(r){r=r.filter(s=>s);let e=[],t=r[0],n=[];if(t){let s=t[0]===" "?1:0;n.push(s-1);let i=0;for(let o=s+1;o<t.length;o++)t[o]===" "&&(t[o-1]===" "||t[o-1]===".")?i=o:i&&(n.push(i),i=0);for(let o=1;o<r.length;o++)if(r[o].trim()){let a=r[o].substring(n[0]+1,n[1]).trim()||"",c=r[o].substring(n[1]+1,n[2]-2).trim()||"";e.push({user:a,tty:c})}}return e}cq.users=spe});var mq=x(
|
|
515
|
+
`),i=Fi.getValue(n,"antecedent",":",!0).split("="),o=i.length>2?i[1].split(",")[0].replace(/"/g,"").trim():"",a=i.length>2?i[2].replace(/"/g,"").replace(/\)/g,"").trim():"";i=Fi.getValue(n,"dependent",":",!0).split("=");let u=i.length>1?i[1].replace(/"/g,"").replace(/\)/g,"").trim():"";u&&(e[u]={domain:a,user:o})}),e}function lpe(r){r=r.filter(s=>s);let e=[],t=r[0],n=[];if(t){let s=t[0]===" "?1:0;n.push(s-1);let i=0;for(let o=s+1;o<t.length;o++)t[o]===" "&&(t[o-1]===" "||t[o-1]===".")?i=o:i&&(n.push(i),i=0);for(let o=1;o<r.length;o++)if(r[o].trim()){let a=r[o].substring(n[0]+1,n[1]).trim()||"",c=r[o].substring(n[1]+1,n[2]-2).trim()||"";e.push({user:a,tty:c})}}return e}cq.users=spe});var mq=x(rO=>{"use strict";var qt=kt(),ks=process.platform,lq=ks==="linux"||ks==="android",fq=ks==="darwin",fpe=ks==="win32",pq=ks==="freebsd",dq=ks==="openbsd",hq=ks==="netbsd",ppe=ks==="sunos";function dpe(r,e){return new Promise(t=>{process.nextTick(()=>{let n={url:r,ok:!1,status:404,ms:null};if(typeof r!="string")return e&&e(n),t(n);let s="",i=qt.sanitizeShellString(r,!0),o=qt.mathMin(i.length,2e3);for(let a=0;a<=o;a++)if(i[a]!==void 0){try{i[a].__proto__.toLowerCase=qt.stringToLower}catch{Object.setPrototypeOf(i[a],qt.stringObj)}let c=i[a].toLowerCase();c&&c[0]&&!c[1]&&c[0].length===1&&(s=s+c[0])}n.url=s;try{if(s&&!qt.isPrototypePolluted()){try{s.__proto__.startsWith=qt.stringStartWith}catch{Object.setPrototypeOf(s,qt.stringObj)}if(s.startsWith("file:")||s.startsWith("gopher:")||s.startsWith("telnet:")||s.startsWith("mailto:")||s.startsWith("news:")||s.startsWith("nntp:"))return e&&e(n),t(n);qt.checkWebsite(s).then(a=>{n.status=a.statusCode,n.ok=a.statusCode>=200&&a.statusCode<=399,n.ms=n.ok?a.time:null,e&&e(n),t(n)})}else e&&e(n),t(n)}catch{e&&e(n),t(n)}})})}rO.inetChecksite=dpe;function hpe(r,e){return qt.isFunction(r)&&!e&&(e=r,r=""),r=r||"8.8.8.8",new Promise(t=>{process.nextTick(()=>{if(typeof r!="string")return e&&e(null),t(null);let n="",s=(qt.isPrototypePolluted()?"8.8.8.8":qt.sanitizeShellString(r,!0)).trim(),i=qt.mathMin(s.length,2e3);for(let a=0;a<=i;a++)if(s[a]!==void 0){try{s[a].__proto__.toLowerCase=qt.stringToLower}catch{Object.setPrototypeOf(s[a],qt.stringObj)}let c=s[a].toLowerCase();c&&c[0]&&!c[1]&&(n=n+c[0])}try{n.__proto__.startsWith=qt.stringStartWith}catch{Object.setPrototypeOf(n,qt.stringObj)}if(n.startsWith("file:")||n.startsWith("gopher:")||n.startsWith("telnet:")||n.startsWith("mailto:")||n.startsWith("news:")||n.startsWith("nntp:"))return e&&e(null),t(null);let o;if((lq||pq||dq||hq||fq)&&(lq&&(o=["-c","2","-w","3",n]),(pq||dq||hq)&&(o=["-c","2","-t","3",n]),fq&&(o=["-c2","-t3",n]),qt.execSafe("ping",o).then(a=>{let c=null;if(a){let l=a.split(`
|
|
516
516
|
`).filter(f=>f.indexOf("rtt")>=0||f.indexOf("round-trip")>=0||f.indexOf("avg")>=0).join(`
|
|
517
517
|
`).split("=");if(l.length>1){let f=l[1].split("/");f.length>1&&(c=parseFloat(f[1]))}}e&&e(c),t(c)})),ppe){let a=["-s","-a",n,"56","2"],c="avg";qt.execSafe("ping",a,{timeout:3e3}).then(u=>{let l=null;if(u){let p=u.split(`
|
|
518
518
|
`).filter(d=>d.indexOf(c)>=0).join(`
|
|
519
519
|
`).split("=");if(p.length>1){let d=p[1].split("/");d.length>1&&(l=parseFloat(d[1].replace(",",".")))}}e&&e(l),t(l)})}if(fpe){let a=null;try{let c=[n,"-n","1"];qt.execSafe("ping",c,qt.execOptsWin).then(u=>{if(u){let l=u.split(`\r
|
|
520
|
-
`);l.shift(),l.forEach(function(f){if((f.toLowerCase().match(/ms/g)||[]).length===3){let p=f.replace(/ +/g," ").split(" ");p.length>6&&(a=parseFloat(p[p.length-1]))}})}e&&e(a),t(a)})}catch{e&&e(a),t(a)}}})})}
|
|
520
|
+
`);l.shift(),l.forEach(function(f){if((f.toLowerCase().match(/ms/g)||[]).length===3){let p=f.replace(/ +/g," ").split(" ");p.length>6&&(a=parseFloat(p[p.length-1]))}})}e&&e(a),t(a)})}catch{e&&e(a),t(a)}}})})}rO.inetLatency=hpe});var Eq=x((wOe,gq)=>{"use strict";var js=W("net"),mpe=W("os").type()==="Windows_NT",qs=mpe?"//./pipe/docker_engine":"/var/run/docker.sock",nO=class{getInfo(e){try{let t=js.createConnection({path:qs}),n="",s;t.on("connect",()=>{t.write(`GET http:/info HTTP/1.0\r
|
|
521
521
|
\r
|
|
522
522
|
`)}),t.on("data",i=>{n=n+i.toString()}),t.on("error",()=>{t=!1,e({})}),t.on("end",()=>{let i=n.indexOf(`\r
|
|
523
523
|
\r
|
|
@@ -549,11 +549,11 @@ Interface `);return n.shift(),n.forEach(s=>{let i=s.split(`
|
|
|
549
549
|
\r
|
|
550
550
|
`)}),t.on("data",i=>{n=n+i.toString()}),t.on("error",()=>{t=!1,e({})}),t.on("end",()=>{let i=n.indexOf(`\r
|
|
551
551
|
\r
|
|
552
|
-
`);n=n.substring(i+4),t=!1;try{s=JSON.parse(n),e(s)}catch{e({})}})}catch{e({})}}};gq.exports=n1});var _q=x($s=>{"use strict";var Tt=kt(),Hs=Eq(),gpe=process.platform,Epe=gpe==="win32",fu={},At,i1=0;function Spe(r){return new Promise(e=>{process.nextTick(()=>{At||(At=new Hs);let t={};At.getInfo(n=>{t.id=n.ID,t.containers=n.Containers,t.containersRunning=n.ContainersRunning,t.containersPaused=n.ContainersPaused,t.containersStopped=n.ContainersStopped,t.images=n.Images,t.driver=n.Driver,t.memoryLimit=n.MemoryLimit,t.swapLimit=n.SwapLimit,t.kernelMemory=n.KernelMemory,t.cpuCfsPeriod=n.CpuCfsPeriod,t.cpuCfsQuota=n.CpuCfsQuota,t.cpuShares=n.CPUShares,t.cpuSet=n.CPUSet,t.ipv4Forwarding=n.IPv4Forwarding,t.bridgeNfIptables=n.BridgeNfIptables,t.bridgeNfIp6tables=n.BridgeNfIp6tables,t.debug=n.Debug,t.nfd=n.NFd,t.oomKillDisable=n.OomKillDisable,t.ngoroutines=n.NGoroutines,t.systemTime=n.SystemTime,t.loggingDriver=n.LoggingDriver,t.cgroupDriver=n.CgroupDriver,t.nEventsListener=n.NEventsListener,t.kernelVersion=n.KernelVersion,t.operatingSystem=n.OperatingSystem,t.osType=n.OSType,t.architecture=n.Architecture,t.ncpu=n.NCPU,t.memTotal=n.MemTotal,t.dockerRootDir=n.DockerRootDir,t.httpProxy=n.HttpProxy,t.httpsProxy=n.HttpsProxy,t.noProxy=n.NoProxy,t.name=n.Name,t.labels=n.Labels,t.experimentalBuild=n.ExperimentalBuild,t.serverVersion=n.ServerVersion,t.clusterStore=n.ClusterStore,t.clusterAdvertise=n.ClusterAdvertise,t.defaultRuntime=n.DefaultRuntime,t.liveRestoreEnabled=n.LiveRestoreEnabled,t.isolation=n.Isolation,t.initBinary=n.InitBinary,t.productLicense=n.ProductLicense,r&&r(t),e(t)})})})}$s.dockerInfo=Spe;function _pe(r,e){Tt.isFunction(r)&&!e&&(e=r,r=!1),typeof r=="string"&&r==="true"&&(r=!0),typeof r!="boolean"&&r!==void 0&&(r=!1),r=r||!1;let t=[];return new Promise(n=>{process.nextTick(()=>{At||(At=new Hs);let s=[];At.listImages(r,i=>{let o={};try{o=i,o&&Object.prototype.toString.call(o)==="[object Array]"&&o.length>0?(o.forEach(function(a){a.Names&&Object.prototype.toString.call(a.Names)==="[object Array]"&&a.Names.length>0&&(a.Name=a.Names[0].replace(/^\/|\/$/g,"")),s.push(ype(a.Id.trim(),a))}),s.length?Promise.all(s).then(a=>{e&&e(a),n(a)}):(e&&e(t),n(t))):(e&&e(t),n(t))}catch{e&&e(t),n(t)}})})})}function ype(r,e){return new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return t();let n=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim();n?(At||(At=new Hs),At.inspectImage(n.trim(),s=>{try{t({id:e.Id,container:s.Container,comment:s.Comment,os:s.Os,architecture:s.Architecture,parent:s.Parent,dockerVersion:s.DockerVersion,size:s.Size,sharedSize:e.SharedSize,virtualSize:s.VirtualSize,author:s.Author,created:s.Created?Math.round(new Date(s.Created).getTime()/1e3):0,containerConfig:s.ContainerConfig?s.ContainerConfig:{},graphDriver:s.GraphDriver?s.GraphDriver:{},repoDigests:s.RepoDigests?s.RepoDigests:{},repoTags:s.RepoTags?s.RepoTags:{},config:s.Config?s.Config:{},rootFS:s.RootFS?s.RootFS:{}})}catch{t()}})):t()})})}$s.dockerImages=_pe;function s1(r,e){function t(s,i){return s.filter(a=>a.Id&&a.Id===i).length>0}Tt.isFunction(r)&&!e&&(e=r,r=!1),typeof r=="string"&&r==="true"&&(r=!0),typeof r!="boolean"&&r!==void 0&&(r=!1),r=r||!1;let n=[];return new Promise(s=>{process.nextTick(()=>{At||(At=new Hs);let i=[];At.listContainers(r,o=>{let a={};try{if(a=o,a&&Object.prototype.toString.call(a)==="[object Array]"&&a.length>0){for(let c in fu)({}).hasOwnProperty.call(fu,c)&&(t(a,c)||delete fu[c]);a.forEach(function(c){c.Names&&Object.prototype.toString.call(c.Names)==="[object Array]"&&c.Names.length>0&&(c.Name=c.Names[0].replace(/^\/|\/$/g,"")),i.push(Tpe(c.Id.trim(),c))}),i.length?Promise.all(i).then(c=>{e&&e(c),s(c)}):(e&&e(n),s(n))}else e&&e(n),s(n)}catch{for(let u in fu)({}).hasOwnProperty.call(fu,u)&&(t(a,u)||delete fu[u]);e&&e(n),s(n)}})})})}function Tpe(r,e){return new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return t();let n=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim();n?(At||(At=new Hs),At.getInspect(n.trim(),s=>{try{t({id:e.Id,name:e.Name,image:e.Image,imageID:e.ImageID,command:e.Command,created:e.Created,started:s.State&&s.State.StartedAt?Math.round(new Date(s.State.StartedAt).getTime()/1e3):0,finished:s.State&&s.State.FinishedAt&&!s.State.FinishedAt.startsWith("0001-01-01")?Math.round(new Date(s.State.FinishedAt).getTime()/1e3):0,createdAt:s.Created?s.Created:"",startedAt:s.State&&s.State.StartedAt?s.State.StartedAt:"",finishedAt:s.State&&s.State.FinishedAt&&!s.State.FinishedAt.startsWith("0001-01-01")?s.State.FinishedAt:"",state:e.State,restartCount:s.RestartCount||0,platform:s.Platform||"",driver:s.Driver||"",ports:e.Ports,mounts:e.Mounts})}catch{t()}})):t()})})}$s.dockerContainers=s1;function Ape(r,e){if(Epe){let t=Tt.nanoSeconds(),n=0;if(i1>0){let s=t-i1,i=r.cpu_usage.total_usage-e.cpu_usage.total_usage;s>0&&(n=100*i/s)}return i1=t,n}else{let t=0,n=r.cpu_usage.total_usage-e.cpu_usage.total_usage,s=r.system_cpu_usage-e.system_cpu_usage;return s>0&&n>0&&(e.online_cpus?t=n/s*e.online_cpus*100:t=n/s*r.cpu_usage.percpu_usage.length*100),t}}function Ope(r){let e,t;for(let n in r){if(!{}.hasOwnProperty.call(r,n))continue;let s=r[n];e=+s.rx_bytes,t=+s.tx_bytes}return{rx:e,wx:t}}function Cpe(r){let e={r:0,w:0};return r&&r.io_service_bytes_recursive&&Object.prototype.toString.call(r.io_service_bytes_recursive)==="[object Array]"&&r.io_service_bytes_recursive.length>0&&r.io_service_bytes_recursive.forEach(function(t){t.op&&t.op.toLowerCase()==="read"&&t.value&&(e.r+=t.value),t.op&&t.op.toLowerCase()==="write"&&t.value&&(e.w+=t.value)}),e}function o1(r,e){let t=[];return new Promise(n=>{process.nextTick(()=>{if(Tt.isFunction(r)&&!e)e=r,t=["*"];else{if(r=r||"*",typeof r!="string")return e&&e([]),n([]);let o="";try{o.__proto__.toLowerCase=Tt.stringToLower,o.__proto__.replace=Tt.stringReplace,o.__proto__.toString=Tt.stringToString,o.__proto__.substr=Tt.stringSubstr,o.__proto__.substring=Tt.stringSubstring,o.__proto__.trim=Tt.stringTrim,o.__proto__.startsWith=Tt.stringStartWith}catch{Object.setPrototypeOf(o,Tt.stringObj)}if(o=r,o=o.trim(),o!=="*"){o="";let a=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim(),c=Tt.mathMin(a.length,2e3);for(let u=0;u<=c;u++)if(a[u]!==void 0){a[u].__proto__.toLowerCase=Tt.stringToLower;let l=a[u].toLowerCase();l&&l[0]&&!l[1]&&(o=o+l[0])}}o=o.trim().toLowerCase().replace(/,+/g,"|"),t=o.split("|")}let s=[],i=[];if(t.length&&t[0].trim()==="*")t=[],s1().then(o=>{for(let a of o)t.push(a.id.substring(0,12));t.length?o1(t.join(",")).then(a=>{e&&e(a),n(a)}):(e&&e(s),n(s))});else{for(let o of t)i.push(vpe(o.trim()));i.length?Promise.all(i).then(o=>{e&&e(o),n(o)}):(e&&e(s),n(s))}})})}function vpe(r){r=r||"";let e={id:r,memUsage:0,memLimit:0,memPercent:0,cpuPercent:0,pids:0,netIO:{rx:0,wx:0},blockIO:{r:0,w:0},restartCount:0,cpuStats:{},precpuStats:{},memoryStats:{},networks:{}};return new Promise(t=>{process.nextTick(()=>{r?(At||(At=new Hs),At.getInspect(r,n=>{try{At.getStats(r,s=>{try{let i=s;i.message||(s.id&&(e.id=s.id),e.memUsage=i.memory_stats&&i.memory_stats.usage?i.memory_stats.usage:0,e.memLimit=i.memory_stats&&i.memory_stats.limit?i.memory_stats.limit:0,e.memPercent=i.memory_stats&&i.memory_stats.usage&&i.memory_stats.limit?i.memory_stats.usage/i.memory_stats.limit*100:0,e.cpuPercent=i.cpu_stats&&i.precpu_stats?Ape(i.cpu_stats,i.precpu_stats):0,e.pids=i.pids_stats&&i.pids_stats.current?i.pids_stats.current:0,e.restartCount=n.RestartCount?n.RestartCount:0,i.networks&&(e.netIO=Ope(i.networks)),i.blkio_stats&&(e.blockIO=Cpe(i.blkio_stats)),e.cpuStats=i.cpu_stats?i.cpu_stats:{},e.precpuStats=i.precpu_stats?i.precpu_stats:{},e.memoryStats=i.memory_stats?i.memory_stats:{},e.networks=i.networks?i.networks:{})}catch{Tt.noop()}t(e)})}catch{Tt.noop()}})):t(e)})})}$s.dockerContainerStats=o1;function Sq(r,e){let t=[];return new Promise(n=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return n(t);let s=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim();s?(At||(At=new Hs),At.getProcesses(s,i=>{try{if(i&&i.Titles&&i.Processes){let o=i.Titles.map(function(y){return y.toUpperCase()}),a=o.indexOf("PID"),c=o.indexOf("PPID"),u=o.indexOf("PGID"),l=o.indexOf("VSZ"),f=o.indexOf("TIME"),p=o.indexOf("ELAPSED"),d=o.indexOf("NI"),m=o.indexOf("RUSER"),g=o.indexOf("USER"),h=o.indexOf("RGROUP"),E=o.indexOf("GROUP"),_=o.indexOf("STAT"),S=o.indexOf("RSS"),T=o.indexOf("COMMAND");i.Processes.forEach(y=>{t.push({pidHost:a>=0?y[a]:"",ppid:c>=0?y[c]:"",pgid:u>=0?y[u]:"",user:g>=0?y[g]:"",ruser:m>=0?y[m]:"",group:E>=0?y[E]:"",rgroup:h>=0?y[h]:"",stat:_>=0?y[_]:"",time:f>=0?y[f]:"",elapsed:p>=0?y[p]:"",nice:d>=0?y[d]:"",rss:S>=0?y[S]:"",vsz:l>=0?y[l]:"",command:T>=0?y[T]:""})})}}catch{Tt.noop()}e&&e(t),n(t)})):(e&&e(t),n(t))})})}$s.dockerContainerProcesses=Sq;function Dpe(r){let e=[];return new Promise(t=>{process.nextTick(()=>{At||(At=new Hs),At.listVolumes(n=>{let s={};try{s=n,s&&s.Volumes&&Object.prototype.toString.call(s.Volumes)==="[object Array]"&&s.Volumes.length>0?(s.Volumes.forEach(function(i){e.push({name:i.Name,driver:i.Driver,labels:i.Labels,mountpoint:i.Mountpoint,options:i.Options,scope:i.Scope,created:i.CreatedAt?Math.round(new Date(i.CreatedAt).getTime()/1e3):0})}),r&&r(e),t(e)):(r&&r(e),t(e))}catch{r&&r(e),t(e)}})})})}$s.dockerVolumes=Dpe;function xpe(r){return new Promise(e=>{process.nextTick(()=>{s1(!0).then(t=>{if(t&&Object.prototype.toString.call(t)==="[object Array]"&&t.length>0){let n=t.length;t.forEach(function(s){o1(s.id).then(i=>{s.memUsage=i[0].memUsage,s.memLimit=i[0].memLimit,s.memPercent=i[0].memPercent,s.cpuPercent=i[0].cpuPercent,s.pids=i[0].pids,s.netIO=i[0].netIO,s.blockIO=i[0].blockIO,s.cpuStats=i[0].cpuStats,s.precpuStats=i[0].precpuStats,s.memoryStats=i[0].memoryStats,s.networks=i[0].networks,Sq(s.id).then(o=>{s.processes=o,n-=1,n===0&&(r&&r(t),e(t))})})})}else r&&r(t),e(t)})})})}$s.dockerAll=xpe});var Tq=x(yq=>{"use strict";var a1=W("os"),bpe=W("child_process").exec,ot=kt();function Ppe(r){let e=[];return new Promise(t=>{process.nextTick(()=>{try{bpe(ot.getVboxmanage()+" list vms --long",function(n,s){let i=(a1.EOL+s.toString()).split(a1.EOL+"Name:");i.shift(),i.forEach(o=>{let a=("Name:"+o).split(a1.EOL),c=ot.getValue(a,"State"),u=c.startsWith("running"),l=u?c.replace("running (since ","").replace(")","").trim():"",f=0;try{if(u){let m=new Date(l),g=m.getTimezoneOffset();f=Math.round((Date.now()-Date.parse(m))/1e3)+g*60}}catch{ot.noop()}let p=u?"":c.replace("powered off (since","").replace(")","").trim(),d=0;try{if(!u){let m=new Date(p),g=m.getTimezoneOffset();d=Math.round((Date.now()-Date.parse(m))/1e3)+g*60}}catch{ot.noop()}e.push({id:ot.getValue(a,"UUID"),name:ot.getValue(a,"Name"),running:u,started:l,runningSince:f,stopped:p,stoppedSince:d,guestOS:ot.getValue(a,"Guest OS"),hardwareUUID:ot.getValue(a,"Hardware UUID"),memory:parseInt(ot.getValue(a,"Memory size"," "),10),vram:parseInt(ot.getValue(a,"VRAM size"),10),cpus:parseInt(ot.getValue(a,"Number of CPUs"),10),cpuExepCap:ot.getValue(a,"CPU exec cap"),cpuProfile:ot.getValue(a,"CPUProfile"),chipset:ot.getValue(a,"Chipset"),firmware:ot.getValue(a,"Firmware"),pageFusion:ot.getValue(a,"Page Fusion")==="enabled",configFile:ot.getValue(a,"Config file"),snapshotFolder:ot.getValue(a,"Snapshot folder"),logFolder:ot.getValue(a,"Log folder"),hpet:ot.getValue(a,"HPET")==="enabled",pae:ot.getValue(a,"PAE")==="enabled",longMode:ot.getValue(a,"Long Mode")==="enabled",tripleFaultReset:ot.getValue(a,"Triple Fault Reset")==="enabled",apic:ot.getValue(a,"APIC")==="enabled",x2Apic:ot.getValue(a,"X2APIC")==="enabled",acpi:ot.getValue(a,"ACPI")==="enabled",ioApic:ot.getValue(a,"IOAPIC")==="enabled",biosApicMode:ot.getValue(a,"BIOS APIC mode"),bootMenuMode:ot.getValue(a,"Boot menu mode"),bootDevice1:ot.getValue(a,"Boot Device 1"),bootDevice2:ot.getValue(a,"Boot Device 2"),bootDevice3:ot.getValue(a,"Boot Device 3"),bootDevice4:ot.getValue(a,"Boot Device 4"),timeOffset:ot.getValue(a,"Time offset"),rtc:ot.getValue(a,"RTC")})}),r&&r(e),t(e)})}catch{r&&r(e),t(e)}})})}yq.vboxInfo=Ppe});var vq=x(Cq=>{"use strict";var c1=W("child_process").exec,ir=kt(),Ws=process.platform,Aq=Ws==="linux"||Ws==="android",Ipe=Ws==="darwin",wpe=Ws==="win32",Rpe=Ws==="freebsd",Lpe=Ws==="openbsd",Mpe=Ws==="netbsd",Npe=Ws==="sunos",Oq={1:"Other",2:"Unknown",3:"Idle",4:"Printing",5:"Warmup",6:"Stopped Printing",7:"Offline"};function Bpe(r){let e={};if(r&&r.length&&r[0].indexOf(" CUPS v")>0){let t=r[0].split(" CUPS v");e.cupsVersion=t[1]}return e}function Upe(r){let e={},t=ir.getValue(r,"PrinterId"," ");return e.id=t?parseInt(t,10):null,e.name=ir.getValue(r,"Info"," "),e.model=r.length>0&&r[0]?r[0].split(" ")[0]:"",e.uri=ir.getValue(r,"DeviceURI"," "),e.uuid=ir.getValue(r,"UUID"," "),e.status=ir.getValue(r,"State"," "),e.local=ir.getValue(r,"Location"," ").toLowerCase().startsWith("local"),e.default=null,e.shared=ir.getValue(r,"Shared"," ").toLowerCase().startsWith("yes"),e}function Fpe(r,e){let t={};return t.id=e,t.name=ir.getValue(r,"Description",":",!0),t.model=r.length>0&&r[0]?r[0].split(" ")[0]:"",t.uri=null,t.uuid=null,t.status=r.length>0&&r[0]?r[0].indexOf(" idle")>0?"idle":r[0].indexOf(" printing")>0?"printing":"unknown":null,t.local=ir.getValue(r,"Location",":",!0).toLowerCase().startsWith("local"),t.default=null,t.shared=ir.getValue(r,"Shared"," ").toLowerCase().startsWith("yes"),t}function Vpe(r,e){let t={},n=r.uri.split("/");return t.id=e,t.name=r._name,t.model=n.length?n[n.length-1]:"",t.uri=r.uri,t.uuid=null,t.status=r.status,t.local=r.printserver==="local",t.default=r.default==="yes",t.shared=r.shared==="yes",t}function Gpe(r,e){let t={},n=parseInt(ir.getValue(r,"PrinterStatus",":"),10);return t.id=e,t.name=ir.getValue(r,"name",":"),t.model=ir.getValue(r,"DriverName",":"),t.uri=null,t.uuid=null,t.status=Oq[n]?Oq[n]:null,t.local=ir.getValue(r,"Local",":").toUpperCase()==="TRUE",t.default=ir.getValue(r,"Default",":").toUpperCase()==="TRUE",t.shared=ir.getValue(r,"Shared",":").toUpperCase()==="TRUE",t}function kpe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Aq||Rpe||Lpe||Mpe){let n="cat /etc/cups/printers.conf 2>/dev/null";c1(n,function(s,i){if(!s){let o=i.toString().split("<Printer "),a=Bpe(o[0]);for(let c=1;c<o.length;c++){let u=Upe(o[c].split(`
|
|
553
|
-
`));u.name&&(u.engine="CUPS",u.engineVersion=a.cupsVersion,t.push(u))}}t.length===0&&Aq?(n="export LC_ALL=C; lpstat -lp 2>/dev/null; unset LC_ALL",
|
|
552
|
+
`);n=n.substring(i+4),t=!1;try{s=JSON.parse(n),e(s)}catch{e({})}})}catch{e({})}}};gq.exports=nO});var _q=x($s=>{"use strict";var Tt=kt(),Hs=Eq(),gpe=process.platform,Epe=gpe==="win32",fu={},At,iO=0;function Spe(r){return new Promise(e=>{process.nextTick(()=>{At||(At=new Hs);let t={};At.getInfo(n=>{t.id=n.ID,t.containers=n.Containers,t.containersRunning=n.ContainersRunning,t.containersPaused=n.ContainersPaused,t.containersStopped=n.ContainersStopped,t.images=n.Images,t.driver=n.Driver,t.memoryLimit=n.MemoryLimit,t.swapLimit=n.SwapLimit,t.kernelMemory=n.KernelMemory,t.cpuCfsPeriod=n.CpuCfsPeriod,t.cpuCfsQuota=n.CpuCfsQuota,t.cpuShares=n.CPUShares,t.cpuSet=n.CPUSet,t.ipv4Forwarding=n.IPv4Forwarding,t.bridgeNfIptables=n.BridgeNfIptables,t.bridgeNfIp6tables=n.BridgeNfIp6tables,t.debug=n.Debug,t.nfd=n.NFd,t.oomKillDisable=n.OomKillDisable,t.ngoroutines=n.NGoroutines,t.systemTime=n.SystemTime,t.loggingDriver=n.LoggingDriver,t.cgroupDriver=n.CgroupDriver,t.nEventsListener=n.NEventsListener,t.kernelVersion=n.KernelVersion,t.operatingSystem=n.OperatingSystem,t.osType=n.OSType,t.architecture=n.Architecture,t.ncpu=n.NCPU,t.memTotal=n.MemTotal,t.dockerRootDir=n.DockerRootDir,t.httpProxy=n.HttpProxy,t.httpsProxy=n.HttpsProxy,t.noProxy=n.NoProxy,t.name=n.Name,t.labels=n.Labels,t.experimentalBuild=n.ExperimentalBuild,t.serverVersion=n.ServerVersion,t.clusterStore=n.ClusterStore,t.clusterAdvertise=n.ClusterAdvertise,t.defaultRuntime=n.DefaultRuntime,t.liveRestoreEnabled=n.LiveRestoreEnabled,t.isolation=n.Isolation,t.initBinary=n.InitBinary,t.productLicense=n.ProductLicense,r&&r(t),e(t)})})})}$s.dockerInfo=Spe;function _pe(r,e){Tt.isFunction(r)&&!e&&(e=r,r=!1),typeof r=="string"&&r==="true"&&(r=!0),typeof r!="boolean"&&r!==void 0&&(r=!1),r=r||!1;let t=[];return new Promise(n=>{process.nextTick(()=>{At||(At=new Hs);let s=[];At.listImages(r,i=>{let o={};try{o=i,o&&Object.prototype.toString.call(o)==="[object Array]"&&o.length>0?(o.forEach(function(a){a.Names&&Object.prototype.toString.call(a.Names)==="[object Array]"&&a.Names.length>0&&(a.Name=a.Names[0].replace(/^\/|\/$/g,"")),s.push(ype(a.Id.trim(),a))}),s.length?Promise.all(s).then(a=>{e&&e(a),n(a)}):(e&&e(t),n(t))):(e&&e(t),n(t))}catch{e&&e(t),n(t)}})})})}function ype(r,e){return new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return t();let n=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim();n?(At||(At=new Hs),At.inspectImage(n.trim(),s=>{try{t({id:e.Id,container:s.Container,comment:s.Comment,os:s.Os,architecture:s.Architecture,parent:s.Parent,dockerVersion:s.DockerVersion,size:s.Size,sharedSize:e.SharedSize,virtualSize:s.VirtualSize,author:s.Author,created:s.Created?Math.round(new Date(s.Created).getTime()/1e3):0,containerConfig:s.ContainerConfig?s.ContainerConfig:{},graphDriver:s.GraphDriver?s.GraphDriver:{},repoDigests:s.RepoDigests?s.RepoDigests:{},repoTags:s.RepoTags?s.RepoTags:{},config:s.Config?s.Config:{},rootFS:s.RootFS?s.RootFS:{}})}catch{t()}})):t()})})}$s.dockerImages=_pe;function sO(r,e){function t(s,i){return s.filter(a=>a.Id&&a.Id===i).length>0}Tt.isFunction(r)&&!e&&(e=r,r=!1),typeof r=="string"&&r==="true"&&(r=!0),typeof r!="boolean"&&r!==void 0&&(r=!1),r=r||!1;let n=[];return new Promise(s=>{process.nextTick(()=>{At||(At=new Hs);let i=[];At.listContainers(r,o=>{let a={};try{if(a=o,a&&Object.prototype.toString.call(a)==="[object Array]"&&a.length>0){for(let c in fu)({}).hasOwnProperty.call(fu,c)&&(t(a,c)||delete fu[c]);a.forEach(function(c){c.Names&&Object.prototype.toString.call(c.Names)==="[object Array]"&&c.Names.length>0&&(c.Name=c.Names[0].replace(/^\/|\/$/g,"")),i.push(Tpe(c.Id.trim(),c))}),i.length?Promise.all(i).then(c=>{e&&e(c),s(c)}):(e&&e(n),s(n))}else e&&e(n),s(n)}catch{for(let u in fu)({}).hasOwnProperty.call(fu,u)&&(t(a,u)||delete fu[u]);e&&e(n),s(n)}})})})}function Tpe(r,e){return new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return t();let n=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim();n?(At||(At=new Hs),At.getInspect(n.trim(),s=>{try{t({id:e.Id,name:e.Name,image:e.Image,imageID:e.ImageID,command:e.Command,created:e.Created,started:s.State&&s.State.StartedAt?Math.round(new Date(s.State.StartedAt).getTime()/1e3):0,finished:s.State&&s.State.FinishedAt&&!s.State.FinishedAt.startsWith("0001-01-01")?Math.round(new Date(s.State.FinishedAt).getTime()/1e3):0,createdAt:s.Created?s.Created:"",startedAt:s.State&&s.State.StartedAt?s.State.StartedAt:"",finishedAt:s.State&&s.State.FinishedAt&&!s.State.FinishedAt.startsWith("0001-01-01")?s.State.FinishedAt:"",state:e.State,restartCount:s.RestartCount||0,platform:s.Platform||"",driver:s.Driver||"",ports:e.Ports,mounts:e.Mounts})}catch{t()}})):t()})})}$s.dockerContainers=sO;function Ape(r,e){if(Epe){let t=Tt.nanoSeconds(),n=0;if(iO>0){let s=t-iO,i=r.cpu_usage.total_usage-e.cpu_usage.total_usage;s>0&&(n=100*i/s)}return iO=t,n}else{let t=0,n=r.cpu_usage.total_usage-e.cpu_usage.total_usage,s=r.system_cpu_usage-e.system_cpu_usage;return s>0&&n>0&&(e.online_cpus?t=n/s*e.online_cpus*100:t=n/s*r.cpu_usage.percpu_usage.length*100),t}}function Ope(r){let e,t;for(let n in r){if(!{}.hasOwnProperty.call(r,n))continue;let s=r[n];e=+s.rx_bytes,t=+s.tx_bytes}return{rx:e,wx:t}}function Cpe(r){let e={r:0,w:0};return r&&r.io_service_bytes_recursive&&Object.prototype.toString.call(r.io_service_bytes_recursive)==="[object Array]"&&r.io_service_bytes_recursive.length>0&&r.io_service_bytes_recursive.forEach(function(t){t.op&&t.op.toLowerCase()==="read"&&t.value&&(e.r+=t.value),t.op&&t.op.toLowerCase()==="write"&&t.value&&(e.w+=t.value)}),e}function oO(r,e){let t=[];return new Promise(n=>{process.nextTick(()=>{if(Tt.isFunction(r)&&!e)e=r,t=["*"];else{if(r=r||"*",typeof r!="string")return e&&e([]),n([]);let o="";try{o.__proto__.toLowerCase=Tt.stringToLower,o.__proto__.replace=Tt.stringReplace,o.__proto__.toString=Tt.stringToString,o.__proto__.substr=Tt.stringSubstr,o.__proto__.substring=Tt.stringSubstring,o.__proto__.trim=Tt.stringTrim,o.__proto__.startsWith=Tt.stringStartWith}catch{Object.setPrototypeOf(o,Tt.stringObj)}if(o=r,o=o.trim(),o!=="*"){o="";let a=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim(),c=Tt.mathMin(a.length,2e3);for(let u=0;u<=c;u++)if(a[u]!==void 0){a[u].__proto__.toLowerCase=Tt.stringToLower;let l=a[u].toLowerCase();l&&l[0]&&!l[1]&&(o=o+l[0])}}o=o.trim().toLowerCase().replace(/,+/g,"|"),t=o.split("|")}let s=[],i=[];if(t.length&&t[0].trim()==="*")t=[],sO().then(o=>{for(let a of o)t.push(a.id.substring(0,12));t.length?oO(t.join(",")).then(a=>{e&&e(a),n(a)}):(e&&e(s),n(s))});else{for(let o of t)i.push(vpe(o.trim()));i.length?Promise.all(i).then(o=>{e&&e(o),n(o)}):(e&&e(s),n(s))}})})}function vpe(r){r=r||"";let e={id:r,memUsage:0,memLimit:0,memPercent:0,cpuPercent:0,pids:0,netIO:{rx:0,wx:0},blockIO:{r:0,w:0},restartCount:0,cpuStats:{},precpuStats:{},memoryStats:{},networks:{}};return new Promise(t=>{process.nextTick(()=>{r?(At||(At=new Hs),At.getInspect(r,n=>{try{At.getStats(r,s=>{try{let i=s;i.message||(s.id&&(e.id=s.id),e.memUsage=i.memory_stats&&i.memory_stats.usage?i.memory_stats.usage:0,e.memLimit=i.memory_stats&&i.memory_stats.limit?i.memory_stats.limit:0,e.memPercent=i.memory_stats&&i.memory_stats.usage&&i.memory_stats.limit?i.memory_stats.usage/i.memory_stats.limit*100:0,e.cpuPercent=i.cpu_stats&&i.precpu_stats?Ape(i.cpu_stats,i.precpu_stats):0,e.pids=i.pids_stats&&i.pids_stats.current?i.pids_stats.current:0,e.restartCount=n.RestartCount?n.RestartCount:0,i.networks&&(e.netIO=Ope(i.networks)),i.blkio_stats&&(e.blockIO=Cpe(i.blkio_stats)),e.cpuStats=i.cpu_stats?i.cpu_stats:{},e.precpuStats=i.precpu_stats?i.precpu_stats:{},e.memoryStats=i.memory_stats?i.memory_stats:{},e.networks=i.networks?i.networks:{})}catch{Tt.noop()}t(e)})}catch{Tt.noop()}})):t(e)})})}$s.dockerContainerStats=oO;function Sq(r,e){let t=[];return new Promise(n=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return n(t);let s=(Tt.isPrototypePolluted()?"":Tt.sanitizeShellString(r,!0)).trim();s?(At||(At=new Hs),At.getProcesses(s,i=>{try{if(i&&i.Titles&&i.Processes){let o=i.Titles.map(function(y){return y.toUpperCase()}),a=o.indexOf("PID"),c=o.indexOf("PPID"),u=o.indexOf("PGID"),l=o.indexOf("VSZ"),f=o.indexOf("TIME"),p=o.indexOf("ELAPSED"),d=o.indexOf("NI"),m=o.indexOf("RUSER"),g=o.indexOf("USER"),h=o.indexOf("RGROUP"),E=o.indexOf("GROUP"),_=o.indexOf("STAT"),S=o.indexOf("RSS"),T=o.indexOf("COMMAND");i.Processes.forEach(y=>{t.push({pidHost:a>=0?y[a]:"",ppid:c>=0?y[c]:"",pgid:u>=0?y[u]:"",user:g>=0?y[g]:"",ruser:m>=0?y[m]:"",group:E>=0?y[E]:"",rgroup:h>=0?y[h]:"",stat:_>=0?y[_]:"",time:f>=0?y[f]:"",elapsed:p>=0?y[p]:"",nice:d>=0?y[d]:"",rss:S>=0?y[S]:"",vsz:l>=0?y[l]:"",command:T>=0?y[T]:""})})}}catch{Tt.noop()}e&&e(t),n(t)})):(e&&e(t),n(t))})})}$s.dockerContainerProcesses=Sq;function Dpe(r){let e=[];return new Promise(t=>{process.nextTick(()=>{At||(At=new Hs),At.listVolumes(n=>{let s={};try{s=n,s&&s.Volumes&&Object.prototype.toString.call(s.Volumes)==="[object Array]"&&s.Volumes.length>0?(s.Volumes.forEach(function(i){e.push({name:i.Name,driver:i.Driver,labels:i.Labels,mountpoint:i.Mountpoint,options:i.Options,scope:i.Scope,created:i.CreatedAt?Math.round(new Date(i.CreatedAt).getTime()/1e3):0})}),r&&r(e),t(e)):(r&&r(e),t(e))}catch{r&&r(e),t(e)}})})})}$s.dockerVolumes=Dpe;function xpe(r){return new Promise(e=>{process.nextTick(()=>{sO(!0).then(t=>{if(t&&Object.prototype.toString.call(t)==="[object Array]"&&t.length>0){let n=t.length;t.forEach(function(s){oO(s.id).then(i=>{s.memUsage=i[0].memUsage,s.memLimit=i[0].memLimit,s.memPercent=i[0].memPercent,s.cpuPercent=i[0].cpuPercent,s.pids=i[0].pids,s.netIO=i[0].netIO,s.blockIO=i[0].blockIO,s.cpuStats=i[0].cpuStats,s.precpuStats=i[0].precpuStats,s.memoryStats=i[0].memoryStats,s.networks=i[0].networks,Sq(s.id).then(o=>{s.processes=o,n-=1,n===0&&(r&&r(t),e(t))})})})}else r&&r(t),e(t)})})})}$s.dockerAll=xpe});var Tq=x(yq=>{"use strict";var aO=W("os"),bpe=W("child_process").exec,ot=kt();function Ppe(r){let e=[];return new Promise(t=>{process.nextTick(()=>{try{bpe(ot.getVboxmanage()+" list vms --long",function(n,s){let i=(aO.EOL+s.toString()).split(aO.EOL+"Name:");i.shift(),i.forEach(o=>{let a=("Name:"+o).split(aO.EOL),c=ot.getValue(a,"State"),u=c.startsWith("running"),l=u?c.replace("running (since ","").replace(")","").trim():"",f=0;try{if(u){let m=new Date(l),g=m.getTimezoneOffset();f=Math.round((Date.now()-Date.parse(m))/1e3)+g*60}}catch{ot.noop()}let p=u?"":c.replace("powered off (since","").replace(")","").trim(),d=0;try{if(!u){let m=new Date(p),g=m.getTimezoneOffset();d=Math.round((Date.now()-Date.parse(m))/1e3)+g*60}}catch{ot.noop()}e.push({id:ot.getValue(a,"UUID"),name:ot.getValue(a,"Name"),running:u,started:l,runningSince:f,stopped:p,stoppedSince:d,guestOS:ot.getValue(a,"Guest OS"),hardwareUUID:ot.getValue(a,"Hardware UUID"),memory:parseInt(ot.getValue(a,"Memory size"," "),10),vram:parseInt(ot.getValue(a,"VRAM size"),10),cpus:parseInt(ot.getValue(a,"Number of CPUs"),10),cpuExepCap:ot.getValue(a,"CPU exec cap"),cpuProfile:ot.getValue(a,"CPUProfile"),chipset:ot.getValue(a,"Chipset"),firmware:ot.getValue(a,"Firmware"),pageFusion:ot.getValue(a,"Page Fusion")==="enabled",configFile:ot.getValue(a,"Config file"),snapshotFolder:ot.getValue(a,"Snapshot folder"),logFolder:ot.getValue(a,"Log folder"),hpet:ot.getValue(a,"HPET")==="enabled",pae:ot.getValue(a,"PAE")==="enabled",longMode:ot.getValue(a,"Long Mode")==="enabled",tripleFaultReset:ot.getValue(a,"Triple Fault Reset")==="enabled",apic:ot.getValue(a,"APIC")==="enabled",x2Apic:ot.getValue(a,"X2APIC")==="enabled",acpi:ot.getValue(a,"ACPI")==="enabled",ioApic:ot.getValue(a,"IOAPIC")==="enabled",biosApicMode:ot.getValue(a,"BIOS APIC mode"),bootMenuMode:ot.getValue(a,"Boot menu mode"),bootDevice1:ot.getValue(a,"Boot Device 1"),bootDevice2:ot.getValue(a,"Boot Device 2"),bootDevice3:ot.getValue(a,"Boot Device 3"),bootDevice4:ot.getValue(a,"Boot Device 4"),timeOffset:ot.getValue(a,"Time offset"),rtc:ot.getValue(a,"RTC")})}),r&&r(e),t(e)})}catch{r&&r(e),t(e)}})})}yq.vboxInfo=Ppe});var vq=x(Cq=>{"use strict";var cO=W("child_process").exec,ir=kt(),Ws=process.platform,Aq=Ws==="linux"||Ws==="android",Ipe=Ws==="darwin",wpe=Ws==="win32",Rpe=Ws==="freebsd",Lpe=Ws==="openbsd",Mpe=Ws==="netbsd",Npe=Ws==="sunos",Oq={1:"Other",2:"Unknown",3:"Idle",4:"Printing",5:"Warmup",6:"Stopped Printing",7:"Offline"};function Bpe(r){let e={};if(r&&r.length&&r[0].indexOf(" CUPS v")>0){let t=r[0].split(" CUPS v");e.cupsVersion=t[1]}return e}function Upe(r){let e={},t=ir.getValue(r,"PrinterId"," ");return e.id=t?parseInt(t,10):null,e.name=ir.getValue(r,"Info"," "),e.model=r.length>0&&r[0]?r[0].split(" ")[0]:"",e.uri=ir.getValue(r,"DeviceURI"," "),e.uuid=ir.getValue(r,"UUID"," "),e.status=ir.getValue(r,"State"," "),e.local=ir.getValue(r,"Location"," ").toLowerCase().startsWith("local"),e.default=null,e.shared=ir.getValue(r,"Shared"," ").toLowerCase().startsWith("yes"),e}function Fpe(r,e){let t={};return t.id=e,t.name=ir.getValue(r,"Description",":",!0),t.model=r.length>0&&r[0]?r[0].split(" ")[0]:"",t.uri=null,t.uuid=null,t.status=r.length>0&&r[0]?r[0].indexOf(" idle")>0?"idle":r[0].indexOf(" printing")>0?"printing":"unknown":null,t.local=ir.getValue(r,"Location",":",!0).toLowerCase().startsWith("local"),t.default=null,t.shared=ir.getValue(r,"Shared"," ").toLowerCase().startsWith("yes"),t}function Vpe(r,e){let t={},n=r.uri.split("/");return t.id=e,t.name=r._name,t.model=n.length?n[n.length-1]:"",t.uri=r.uri,t.uuid=null,t.status=r.status,t.local=r.printserver==="local",t.default=r.default==="yes",t.shared=r.shared==="yes",t}function Gpe(r,e){let t={},n=parseInt(ir.getValue(r,"PrinterStatus",":"),10);return t.id=e,t.name=ir.getValue(r,"name",":"),t.model=ir.getValue(r,"DriverName",":"),t.uri=null,t.uuid=null,t.status=Oq[n]?Oq[n]:null,t.local=ir.getValue(r,"Local",":").toUpperCase()==="TRUE",t.default=ir.getValue(r,"Default",":").toUpperCase()==="TRUE",t.shared=ir.getValue(r,"Shared",":").toUpperCase()==="TRUE",t}function kpe(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Aq||Rpe||Lpe||Mpe){let n="cat /etc/cups/printers.conf 2>/dev/null";cO(n,function(s,i){if(!s){let o=i.toString().split("<Printer "),a=Bpe(o[0]);for(let c=1;c<o.length;c++){let u=Upe(o[c].split(`
|
|
553
|
+
`));u.name&&(u.engine="CUPS",u.engineVersion=a.cupsVersion,t.push(u))}}t.length===0&&Aq?(n="export LC_ALL=C; lpstat -lp 2>/dev/null; unset LC_ALL",cO(n,function(o,a){let c=(`
|
|
554
554
|
`+a.toString()).split(`
|
|
555
555
|
printer `);for(let u=1;u<c.length;u++){let l=Fpe(c[u].split(`
|
|
556
|
-
`),u);t.push(l)}}),r&&r(t),e(t)):(r&&r(t),e(t))})}Ipe&&
|
|
556
|
+
`),u);t.push(l)}}),r&&r(t),e(t)):(r&&r(t),e(t))})}Ipe&&cO("system_profiler SPPrintersDataType -json",function(s,i){if(!s)try{let o=JSON.parse(i.toString());if(o.SPPrintersDataType&&o.SPPrintersDataType.length)for(let a=0;a<o.SPPrintersDataType.length;a++){let c=Vpe(o.SPPrintersDataType[a],a);t.push(c)}}catch{ir.noop()}r&&r(t),e(t)}),wpe&&ir.powerShell("Get-CimInstance Win32_Printer | select PrinterStatus,Name,DriverName,Local,Default,Shared | fl").then((n,s)=>{if(!s){let i=n.toString().split(/\n\s*\n/);for(let o=0;o<i.length;o++){let a=Gpe(i[o].split(`
|
|
557
557
|
`),o);(a.name||a.model)&&t.push(a)}}r&&r(t),e(t)}),Npe&&e(null)})})}Cq.printer=kpe});var bq=x(xq=>{"use strict";var Dq=W("child_process").exec,Rn=kt(),Ys=process.platform,jpe=Ys==="linux"||Ys==="android",qpe=Ys==="darwin",Hpe=Ys==="win32",$pe=Ys==="freebsd",Wpe=Ys==="openbsd",Ype=Ys==="netbsd",zpe=Ys==="sunos";function Kpe(r,e){let t=r,n=(e+" "+r).toLowerCase();return n.indexOf("camera")>=0?t="Camera":n.indexOf("hub")>=0?t="Hub":n.indexOf("keybrd")>=0||n.indexOf("keyboard")>=0?t="Keyboard":n.indexOf("mouse")>=0?t="Mouse":n.indexOf("stora")>=0?t="Storage":n.indexOf("microp")>=0?t="Microphone":(n.indexOf("headset")>=0||n.indexOf("audio")>=0)&&(t="Audio"),t}function Xpe(r){let e={},t=r.split(`
|
|
558
558
|
`);if(t&&t.length&&t[0].indexOf("Device")>=0){let _=t[0].split(" ");e.bus=parseInt(_[0],10),_[2]?e.deviceId=parseInt(_[2],10):e.deviceId=null}else e.bus=null,e.deviceId=null;let n=Rn.getValue(t,"idVendor"," ",!0).trim(),s=n.split(" ");s.shift();let i=s.join(" "),o=Rn.getValue(t,"idProduct"," ",!0).trim(),a=o.split(" ");a.shift();let c=a.join(" "),l=Rn.getValue(t,"bInterfaceClass"," ",!0).trim().split(" ");l.shift();let f=l.join(" "),d=Rn.getValue(t,"iManufacturer"," ",!0).trim().split(" ");d.shift();let m=d.join(" "),h=Rn.getValue(t,"iSerial"," ",!0).trim().split(" ");h.shift();let E=h.join(" ");return e.id=(n.startsWith("0x")?n.split(" ")[0].substr(2,10):"")+":"+(o.startsWith("0x")?o.split(" ")[0].substr(2,10):""),e.name=c,e.type=Kpe(f,c),e.removable=null,e.vendor=i,e.manufacturer=m,e.maxPower=Rn.getValue(t,"MaxPower"," ",!0),e.serialNumber=E,e}function Jpe(r){let e="";return r.indexOf("camera")>=0?e="Camera":r.indexOf("touch bar")>=0?e="Touch Bar":r.indexOf("controller")>=0?e="Controller":r.indexOf("headset")>=0?e="Audio":r.indexOf("keyboard")>=0?e="Keyboard":r.indexOf("trackpad")>=0?e="Trackpad":r.indexOf("sensor")>=0?e="Sensor":r.indexOf("bthusb")>=0||r.indexOf("bth")>=0||r.indexOf("rfcomm")>=0?e="Bluetooth":r.indexOf("usbhub")>=0||r.indexOf(" hub")>=0?e="Hub":r.indexOf("mouse")>=0?e="Mouse":r.indexOf("microp")>=0?e="Microphone":r.indexOf("removable")>=0&&(e="Storage"),e}function Qpe(r,e){let t={};t.id=e,r=r.replace(/ \|/g,""),r=r.trim();let n=r.split(`
|
|
559
559
|
`);n.shift();try{for(let o=0;o<n.length;o++){n[o]=n[o].trim(),n[o]=n[o].replace(/=/g,":"),n[o]!=="{"&&n[o]!=="}"&&n[o+1]&&n[o+1].trim()!=="}"&&(n[o]=n[o]+","),n[o]=n[o].replace(":Yes,",':"Yes",'),n[o]=n[o].replace(": Yes,",': "Yes",'),n[o]=n[o].replace(": Yes",': "Yes"'),n[o]=n[o].replace(":No,",':"No",'),n[o]=n[o].replace(": No,",': "No",'),n[o]=n[o].replace(": No",': "No"'),n[o]=n[o].replace("((","").replace("))","");let a=/<(\w+)>/.exec(n[o]);if(a){let c=a[0];n[o]=n[o].replace(c,`"${c}"`)}}let s=JSON.parse(n.join(`
|
|
@@ -562,35 +562,35 @@ printer `);for(let u=1;u<c.length;u++){let l=Fpe(c[u].split(`
|
|
|
562
562
|
`+i.toString()).split(`
|
|
563
563
|
|
|
564
564
|
Bus `);for(let a=1;a<o.length;a++){let c=Xpe(o[a]);t.push(c)}}r&&r(t),e(t)}),qpe&&Dq("ioreg -p IOUSB -c AppleUSBRootHubDevice -w0 -l",{maxBuffer:1024*1024*128},function(s,i){if(!s){let o=i.toString().split(" +-o ");for(let a=1;a<o.length;a++){let c=Qpe(o[a]);c&&t.push(c)}r&&r(t),e(t)}r&&r(t),e(t)}),Hpe&&Rn.powerShell('Get-CimInstance CIM_LogicalDevice | where { $_.Description -match "USB"} | select Name,CreationClassName,DeviceId,Manufacturer | fl').then((n,s)=>{if(!s){let i=n.toString().split(/\n\s*\n/);for(let o=0;o<i.length;o++){let a=ede(i[o].split(`
|
|
565
|
-
`),o);a&&t.filter(c=>c.deviceId===a.deviceId).length===0&&t.push(a)}}r&&r(t),e(t)}),(zpe||$pe||Wpe||Ype)&&e(null)})})}xq.usb=tde});var wq=x(Iq=>{"use strict";var Pq=W("child_process").exec,rde=W("child_process").execSync,Ur=kt(),zs=process.platform,nde=zs==="linux"||zs==="android",ide=zs==="darwin",sde=zs==="win32",ode=zs==="freebsd",ade=zs==="openbsd",cde=zs==="netbsd",ude=zs==="sunos";function
|
|
565
|
+
`),o);a&&t.filter(c=>c.deviceId===a.deviceId).length===0&&t.push(a)}}r&&r(t),e(t)}),(zpe||$pe||Wpe||Ype)&&e(null)})})}xq.usb=tde});var wq=x(Iq=>{"use strict";var Pq=W("child_process").exec,rde=W("child_process").execSync,Ur=kt(),zs=process.platform,nde=zs==="linux"||zs==="android",ide=zs==="darwin",sde=zs==="win32",ode=zs==="freebsd",ade=zs==="openbsd",cde=zs==="netbsd",ude=zs==="sunos";function uO(r,e,t){r=r.toLowerCase();let n="";return r.indexOf("input")>=0&&(n="Microphone"),r.indexOf("display audio")>=0&&(n="Speaker"),r.indexOf("speak")>=0&&(n="Speaker"),r.indexOf("laut")>=0&&(n="Speaker"),r.indexOf("loud")>=0&&(n="Speaker"),r.indexOf("head")>=0&&(n="Headset"),r.indexOf("mic")>=0&&(n="Microphone"),r.indexOf("mikr")>=0&&(n="Microphone"),r.indexOf("phone")>=0&&(n="Phone"),r.indexOf("controll")>=0&&(n="Controller"),r.indexOf("line o")>=0&&(n="Line Out"),r.indexOf("digital o")>=0&&(n="Digital Out"),r.indexOf("smart sound technology")>=0&&(n="Digital Signal Processor"),r.indexOf("high definition audio")>=0&&(n="Sound Driver"),!n&&t?n="Speaker":!n&&e&&(n="Microphone"),n}function lde(){let r="lspci -v 2>/dev/null",e=[];try{return rde(r,Ur.execOptsLinux).toString().split(`
|
|
566
566
|
|
|
567
567
|
`).forEach(n=>{let s=n.split(`
|
|
568
|
-
`);if(s&&s.length&&s[0].toLowerCase().indexOf("audio")>=0){let i={};i.slotId=s[0].split(" ")[0],i.driver=Ur.getValue(s,"Kernel driver in use",":",!0)||Ur.getValue(s,"Kernel modules",":",!0),e.push(i)}}),e}catch{return e}}function fde(r,e){let t={},n=Ur.getValue(r,"Slot"),s=e.filter(function(i){return i.slotId===n});return t.id=n,t.name=Ur.getValue(r,"SDevice"),t.manufacturer=Ur.getValue(r,"SVendor"),t.revision=Ur.getValue(r,"Rev"),t.driver=s&&s.length===1&&s[0].driver?s[0].driver:"",t.default=null,t.channel="PCIe",t.type=
|
|
568
|
+
`);if(s&&s.length&&s[0].toLowerCase().indexOf("audio")>=0){let i={};i.slotId=s[0].split(" ")[0],i.driver=Ur.getValue(s,"Kernel driver in use",":",!0)||Ur.getValue(s,"Kernel modules",":",!0),e.push(i)}}),e}catch{return e}}function fde(r,e){let t={},n=Ur.getValue(r,"Slot"),s=e.filter(function(i){return i.slotId===n});return t.id=n,t.name=Ur.getValue(r,"SDevice"),t.manufacturer=Ur.getValue(r,"SVendor"),t.revision=Ur.getValue(r,"Rev"),t.driver=s&&s.length===1&&s[0].driver?s[0].driver:"",t.default=null,t.channel="PCIe",t.type=uO(t.name,null,null),t.in=null,t.out=null,t.status="online",t}function pde(r){let e="";return r.indexOf("builtin")>=0&&(e="Built-In"),r.indexOf("extern")>=0&&(e="Audio-Jack"),r.indexOf("hdmi")>=0&&(e="HDMI"),r.indexOf("displayport")>=0&&(e="Display-Port"),r.indexOf("usb")>=0&&(e="USB"),r.indexOf("pci")>=0&&(e="PCIe"),e}function dde(r,e){let t={},n=((r.coreaudio_device_transport||"")+" "+(r._name||"")).toLowerCase();return t.id=e,t.name=r._name,t.manufacturer=r.coreaudio_device_manufacturer,t.revision=null,t.driver=null,t.default=!!r.coreaudio_default_audio_input_device||!!r.coreaudio_default_audio_output_device,t.channel=pde(n),t.type=uO(t.name,!!r.coreaudio_device_input,!!r.coreaudio_device_output),t.in=!!r.coreaudio_device_input,t.out=!!r.coreaudio_device_output,t.status="online",t}function hde(r){let e={},t=Ur.getValue(r,"StatusInfo",":");return e.id=Ur.getValue(r,"DeviceID",":"),e.name=Ur.getValue(r,"name",":"),e.manufacturer=Ur.getValue(r,"manufacturer",":"),e.revision=null,e.driver=null,e.default=null,e.channel=null,e.type=uO(e.name,null,null),e.in=null,e.out=null,e.status=t,e}function mde(r){return new Promise(e=>{process.nextTick(()=>{let t=[];(nde||ode||ade||cde)&&Pq("lspci -vmm 2>/dev/null",function(s,i){if(!s){let o=lde();i.toString().split(`
|
|
569
569
|
|
|
570
570
|
`).forEach(c=>{let u=c.split(`
|
|
571
571
|
`);if(Ur.getValue(u,"class",":",!0).toLowerCase().indexOf("audio")>=0){let l=fde(u,o);t.push(l)}})}r&&r(t),e(t)}),ide&&Pq("system_profiler SPAudioDataType -json",function(s,i){if(!s)try{let o=JSON.parse(i.toString());if(o.SPAudioDataType&&o.SPAudioDataType.length&&o.SPAudioDataType[0]&&o.SPAudioDataType[0]._items&&o.SPAudioDataType[0]._items.length)for(let a=0;a<o.SPAudioDataType[0]._items.length;a++){let c=dde(o.SPAudioDataType[0]._items[a],a);t.push(c)}}catch{Ur.noop()}r&&r(t),e(t)}),sde&&Ur.powerShell("Get-CimInstance Win32_SoundDevice | select DeviceID,StatusInfo,Name,Manufacturer | fl").then((n,s)=>{s||n.toString().split(/\n\s*\n/).forEach(o=>{let a=o.split(`
|
|
572
|
-
`);Ur.getValue(a,"name",":")&&t.push(hde(a))}),r&&r(t),e(t)}),ude&&e(null)})})}Iq.audio=mde});var Lq=x((U1e,Rq)=>{"use strict";Rq.exports={0:"Ericsson Technology Licensing",1:"Nokia Mobile Phones",2:"Intel Corp.",3:"IBM Corp.",4:"Toshiba Corp.",5:"3Com",6:"Microsoft",7:"Lucent",8:"Motorola",9:"Infineon Technologies AG",10:"Cambridge Silicon Radio",11:"Silicon Wave",12:"Digianswer A/S",13:"Texas Instruments Inc.",14:"Ceva, Inc. (formerly Parthus Technologies, Inc.)",15:"Broadcom Corporation",16:"Mitel Semiconductor",17:"Widcomm, Inc",18:"Zeevo, Inc.",19:"Atmel Corporation",20:"Mitsubishi Electric Corporation",21:"RTX Telecom A/S",22:"KC Technology Inc.",23:"NewLogic",24:"Transilica, Inc.",25:"Rohde & Schwarz GmbH & Co. KG",26:"TTPCom Limited",27:"Signia Technologies, Inc.",28:"Conexant Systems Inc.",29:"Qualcomm",30:"Inventel",31:"AVM Berlin",32:"BandSpeed, Inc.",33:"Mansella Ltd",34:"NEC Corporation",35:"WavePlus Technology Co., Ltd.",36:"Alcatel",37:"NXP Semiconductors (formerly Philips Semiconductors)",38:"C Technologies",39:"Open Interface",40:"R F Micro Devices",41:"Hitachi Ltd",42:"Symbol Technologies, Inc.",43:"Tenovis",44:"Macronix International Co. Ltd.",45:"GCT Semiconductor",46:"Norwood Systems",47:"MewTel Technology Inc.",48:"ST Microelectronics",49:"Synopsis",50:"Red-M (Communications) Ltd",51:"Commil Ltd",52:"Computer Access Technology Corporation (CATC)",53:"Eclipse (HQ Espana) S.L.",54:"Renesas Electronics Corporation",55:"Mobilian Corporation",56:"Terax",57:"Integrated System Solution Corp.",58:"Matsushita Electric Industrial Co., Ltd.",59:"Gennum Corporation",60:"BlackBerry Limited (formerly Research In Motion)",61:"IPextreme, Inc.",62:"Systems and Chips, Inc.",63:"Bluetooth SIG, Inc.",64:"Seiko Epson Corporation",65:"Integrated Silicon Solution Taiwan, Inc.",66:"CONWISE Technology Corporation Ltd",67:"PARROT SA",68:"Socket Mobile",69:"Atheros Communications, Inc.",70:"MediaTek, Inc.",71:"Bluegiga",72:"Marvell Technology Group Ltd.",73:"3DSP Corporation",74:"Accel Semiconductor Ltd.",75:"Continental Automotive Systems",76:"Apple, Inc.",77:"Staccato Communications, Inc.",78:"Avago Technologies",79:"APT Licensing Ltd.",80:"SiRF Technology",81:"Tzero Technologies, Inc.",82:"J&M Corporation",83:"Free2move AB",84:"3DiJoy Corporation",85:"Plantronics, Inc.",86:"Sony Ericsson Mobile Communications",87:"Harman International Industries, Inc.",88:"Vizio, Inc.",89:"Nordic Semiconductor ASA",90:"EM Microelectronic-Marin SA",91:"Ralink Technology Corporation",92:"Belkin International, Inc.",93:"Realtek Semiconductor Corporation",94:"Stonestreet One, LLC",95:"Wicentric, Inc.",96:"RivieraWaves S.A.S",97:"RDA Microelectronics",98:"Gibson Guitars",99:"MiCommand Inc.",100:"Band XI International, LLC",101:"Hewlett-Packard Company",102:"9Solutions Oy",103:"GN Netcom A/S",104:"General Motors",105:"A&D Engineering, Inc.",106:"MindTree Ltd.",107:"Polar Electro OY",108:"Beautiful Enterprise Co., Ltd.",109:"BriarTek, Inc.",110:"Summit Data Communications, Inc.",111:"Sound ID",112:"Monster, LLC",113:"connectBlue AB",114:"ShangHai Super Smart Electronics Co. Ltd.",115:"Group Sense Ltd.",116:"Zomm, LLC",117:"Samsung Electronics Co. Ltd.",118:"Creative Technology Ltd.",119:"Laird Technologies",120:"Nike, Inc.",121:"lesswire AG",122:"MStar Semiconductor, Inc.",123:"Hanlynn Technologies",124:"A & R Cambridge",125:"Seers Technology Co. Ltd",126:"Sports Tracking Technologies Ltd.",127:"Autonet Mobile",128:"DeLorme Publishing Company, Inc.",129:"WuXi Vimicro",130:"Sennheiser Communications A/S",131:"TimeKeeping Systems, Inc.",132:"Ludus Helsinki Ltd.",133:"BlueRadios, Inc.",134:"equinox AG",135:"Garmin International, Inc.",136:"Ecotest",137:"GN ReSound A/S",138:"Jawbone",139:"Topcorn Positioning Systems, LLC",140:"Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)",141:"Zscan Software",142:"Quintic Corp.",143:"Stollman E+V GmbH",144:"Funai Electric Co., Ltd.",145:"Advanced PANMOBIL Systems GmbH & Co. KG",146:"ThinkOptics, Inc.",147:"Universal Electronics, Inc.",148:"Airoha Technology Corp.",149:"NEC Lighting, Ltd.",150:"ODM Technology, Inc.",151:"ConnecteDevice Ltd.",152:"zer01.tv GmbH",153:"i.Tech Dynamic Global Distribution Ltd.",154:"Alpwise",155:"Jiangsu Toppower Automotive Electronics Co., Ltd.",156:"Colorfy, Inc.",157:"Geoforce Inc.",158:"Bose Corporation",159:"Suunto Oy",160:"Kensington Computer Products Group",161:"SR-Medizinelektronik",162:"Vertu Corporation Limited",163:"Meta Watch Ltd.",164:"LINAK A/S",165:"OTL Dynamics LLC",166:"Panda Ocean Inc.",167:"Visteon Corporation",168:"ARP Devices Limited",169:"Magneti Marelli S.p.A",170:"CAEN RFID srl",171:"Ingenieur-Systemgruppe Zahn GmbH",172:"Green Throttle Games",173:"Peter Systemtechnik GmbH",174:"Omegawave Oy",175:"Cinetix",176:"Passif Semiconductor Corp",177:"Saris Cycling Group, Inc",178:"Bekey A/S",179:"Clarinox Technologies Pty. Ltd.",180:"BDE Technology Co., Ltd.",181:"Swirl Networks",182:"Meso international",183:"TreLab Ltd",184:"Qualcomm Innovation Center, Inc. (QuIC)",185:"Johnson Controls, Inc.",186:"Starkey Laboratories Inc.",187:"S-Power Electronics Limited",188:"Ace Sensor Inc",189:"Aplix Corporation",190:"AAMP of America",191:"Stalmart Technology Limited",192:"AMICCOM Electronics Corporation",193:"Shenzhen Excelsecu Data Technology Co.,Ltd",194:"Geneq Inc.",195:"adidas AG",196:"LG Electronics",197:"Onset Computer Corporation",198:"Selfly BV",199:"Quuppa Oy.",200:"GeLo Inc",201:"Evluma",202:"MC10",203:"Binauric SE",204:"Beats Electronics",205:"Microchip Technology Inc.",206:"Elgato Systems GmbH",207:"ARCHOS SA",208:"Dexcom, Inc.",209:"Polar Electro Europe B.V.",210:"Dialog Semiconductor B.V.",211:"Taixingbang\xA0Technology (HK) Co,. LTD.",212:"Kawantech",213:"Austco Communication Systems",214:"Timex Group USA, Inc.",215:"Qualcomm Technologies, Inc.",216:"Qualcomm Connected Experiences, Inc.",217:"Voyetra Turtle Beach",218:"txtr GmbH",219:"Biosentronics",220:"Procter & Gamble",221:"Hosiden Corporation",222:"Muzik LLC",223:"Misfit Wearables Corp",224:"Google",225:"Danlers Ltd",226:"Semilink Inc",227:"inMusic Brands, Inc",228:"L.S. Research Inc.",229:"Eden Software Consultants Ltd.",230:"Freshtemp",231:"KS Technologies",232:"ACTS Technologies",233:"Vtrack Systems",234:"Nielsen-Kellerman Company",235:"Server Technology, Inc.",236:"BioResearch Associates",237:"Jolly Logic, LLC",238:"Above Average Outcomes, Inc.",239:"Bitsplitters GmbH",240:"PayPal, Inc.",241:"Witron Technology Limited",242:"Aether Things\xA0Inc. (formerly Morse Project Inc.)",243:"Kent Displays Inc.",244:"Nautilus Inc.",245:"Smartifier Oy",246:"Elcometer Limited",247:"VSN Technologies Inc.",248:"AceUni Corp., Ltd.",249:"StickNFind",250:"Crystal Code AB",251:"KOUKAAM a.s.",252:"Delphi Corporation",253:"ValenceTech Limited",254:"Reserved",255:"Typo Products, LLC",256:"TomTom International BV",257:"Fugoo, Inc",258:"Keiser Corporation",259:"Bang & Olufsen A/S",260:"PLUS Locations Systems Pty Ltd",261:"Ubiquitous Computing Technology Corporation",262:"Innovative Yachtter Solutions",263:"William Demant Holding A/S",264:"Chicony Electronics Co., Ltd.",265:"Atus BV",266:"Codegate Ltd.",267:"ERi, Inc.",268:"Transducers Direct, LLC",269:"Fujitsu Ten Limited",270:"Audi AG",271:"HiSilicon Technologies Co., Ltd.",272:"Nippon Seiki Co., Ltd.",273:"Steelseries ApS",274:"vyzybl Inc.",275:"Openbrain Technologies, Co., Ltd.",276:"Xensr",277:"e.solutions",278:"1OAK Technologies",279:"Wimoto Technologies Inc",280:"Radius Networks, Inc.",281:"Wize Technology Co., Ltd.",282:"Qualcomm Labs, Inc.",283:"Aruba Networks",284:"Baidu",285:"Arendi AG",286:"Skoda Auto a.s.",287:"Volkswagon AG",288:"Porsche AG",289:"Sino Wealth Electronic Ltd.",290:"AirTurn, Inc.",291:"Kinsa, Inc.",292:"HID Global",293:"SEAT es",294:"Promethean Ltd.",295:"Salutica Allied Solutions",296:"GPSI Group Pty Ltd",297:"Nimble Devices Oy",298:"Changzhou Yongse Infotech Co., Ltd",299:"SportIQ",300:"TEMEC Instruments B.V.",301:"Sony Corporation",302:"ASSA ABLOY",303:"Clarion Co., Ltd.",304:"Warehouse Innovations",305:"Cypress Semiconductor Corporation",306:"MADS Inc",307:"Blue Maestro Limited",308:"Resolution Products, Inc.",309:"Airewear LLC",310:"Seed Labs, Inc. (formerly ETC sp. z.o.o.)",311:"Prestigio Plaza Ltd.",312:"NTEO Inc.",313:"Focus Systems Corporation",314:"Tencent Holdings Limited",315:"Allegion",316:"Murata Manufacuring Co., Ltd.",318:"Nod, Inc.",319:"B&B Manufacturing Company",320:"Alpine\xA0Electronics\xA0(China)\xA0Co.,\xA0Ltd",321:"FedEx Services",322:"Grape Systems Inc.",323:"Bkon Connect",324:"Lintech GmbH",325:"Novatel Wireless",326:"Ciright",327:"Mighty Cast, Inc.",328:"Ambimat Electronics",329:"Perytons Ltd.",330:"Tivoli Audio, LLC",331:"Master Lock",332:"Mesh-Net Ltd",333:"Huizhou Desay SV Automotive CO., LTD.",334:"Tangerine, Inc.",335:"B&W Group Ltd.",336:"Pioneer Corporation",337:"OnBeep",338:"Vernier Software & Technology",339:"ROL Ergo",340:"Pebble Technology",341:"NETATMO",342:"Accumulate AB",343:"Anhui Huami Information Technology Co., Ltd.",344:"Inmite s.r.o.",345:"ChefSteps, Inc.",346:"micas AG",347:"Biomedical Research Ltd.",348:"Pitius Tec S.L.",349:"Estimote, Inc.",350:"Unikey Technologies, Inc.",351:"Timer Cap Co.",352:"AwoX",353:"yikes",354:"MADSGlobal NZ Ltd.",355:"PCH International",356:"Qingdao Yeelink Information Technology Co., Ltd.",357:"Milwaukee Tool (formerly Milwaukee Electric Tools)",358:"MISHIK Pte Ltd",359:"Bayer HealthCare",360:"Spicebox LLC",361:"emberlight",362:"Cooper-Atkins Corporation",363:"Qblinks",364:"MYSPHERA",365:"LifeScan Inc",366:"Volantic AB",367:"Podo Labs, Inc",368:"Roche Diabetes Care AG",369:"Amazon Fulfillment Service",370:"Connovate Technology Private Limited",371:"Kocomojo, LLC",372:"Everykey LLC",373:"Dynamic Controls",374:"SentriLock",375:"I-SYST inc.",376:"CASIO COMPUTER CO., LTD.",377:"LAPIS Semiconductor Co., Ltd.",378:"Telemonitor, Inc.",379:"taskit GmbH",380:"Daimler AG",381:"BatAndCat",382:"BluDotz Ltd",383:"XTel ApS",384:"Gigaset Communications GmbH",385:"Gecko Health Innovations, Inc.",386:"HOP Ubiquitous",387:"To Be Assigned",388:"Nectar",389:"bel\u2019apps LLC",390:"CORE Lighting Ltd",391:"Seraphim Sense Ltd",392:"Unico RBC",393:"Physical Enterprises Inc.",394:"Able Trend Technology Limited",395:"Konica Minolta, Inc.",396:"Wilo SE",397:"Extron Design Services",398:"Fitbit, Inc.",399:"Fireflies Systems",400:"Intelletto Technologies Inc.",401:"FDK CORPORATION",402:"Cloudleaf, Inc",403:"Maveric Automation LLC",404:"Acoustic Stream Corporation",405:"Zuli",406:"Paxton Access Ltd",407:"WiSilica Inc",408:"Vengit Limited",409:"SALTO SYSTEMS S.L.",410:"TRON Forum (formerly T-Engine Forum)",411:"CUBETECH s.r.o.",412:"Cokiya Incorporated",413:"CVS Health",414:"Ceruus",415:"Strainstall Ltd",416:"Channel Enterprises (HK) Ltd.",417:"FIAMM",418:"GIGALANE.CO.,LTD",419:"EROAD",420:"Mine Safety Appliances",421:"Icon Health and Fitness",422:"Asandoo GmbH",423:"ENERGOUS CORPORATION",424:"Taobao",425:"Canon Inc.",426:"Geophysical Technology Inc.",427:"Facebook, Inc.",428:"Nipro Diagnostics, Inc.",429:"FlightSafety International",430:"Earlens Corporation",431:"Sunrise Micro Devices, Inc.",432:"Star Micronics Co., Ltd.",433:"Netizens Sp. z o.o.",434:"Nymi Inc.",435:"Nytec, Inc.",436:"Trineo Sp. z o.o.",437:"Nest Labs Inc.",438:"LM Technologies Ltd",439:"General Electric Company",440:"i+D3 S.L.",441:"HANA Micron",442:"Stages Cycling LLC",443:"Cochlear Bone Anchored Solutions AB",444:"SenionLab AB",445:"Syszone Co., Ltd",446:"Pulsate Mobile Ltd.",447:"Hong Kong HunterSun Electronic Limited",448:"pironex GmbH",449:"BRADATECH Corp.",450:"Transenergooil AG",451:"Bunch",452:"DME Microelectronics",453:"Bitcraze AB",454:"HASWARE Inc.",455:"Abiogenix Inc.",456:"Poly-Control ApS",457:"Avi-on",458:"Laerdal Medical AS",459:"Fetch My Pet",460:"Sam Labs Ltd.",461:"Chengdu Synwing Technology Ltd",462:"HOUWA SYSTEM DESIGN, k.k.",463:"BSH",464:"Primus Inter Pares Ltd",465:"August",466:"Gill Electronics",467:"Sky Wave Design",468:"Newlab S.r.l.",469:"ELAD srl",470:"G-wearables inc.",471:"Squadrone Systems Inc.",472:"Code Corporation",473:"Savant Systems LLC",474:"Logitech International SA",475:"Innblue Consulting",476:"iParking Ltd.",477:"Koninklijke Philips Electronics N.V.",478:"Minelab Electronics Pty Limited",479:"Bison Group Ltd.",480:"Widex A/S",481:"Jolla Ltd",482:"Lectronix, Inc.",483:"Caterpillar Inc",484:"Freedom Innovations",485:"Dynamic Devices Ltd",486:"Technology Solutions (UK) Ltd",487:"IPS Group Inc.",488:"STIR",489:"Sano, Inc",490:"Advanced Application Design, Inc.",491:"AutoMap LLC",492:"Spreadtrum Communications Shanghai Ltd",493:"CuteCircuit LTD",494:"Valeo Service",495:"Fullpower Technologies, Inc.",496:"KloudNation",497:"Zebra Technologies Corporation",498:"Itron, Inc.",499:"The University of Tokyo",500:"UTC Fire and Security",501:"Cool Webthings Limited",502:"DJO Global",503:"Gelliner Limited",504:"Anyka (Guangzhou) Microelectronics Technology Co, LTD",505:"Medtronic, Inc.",506:"Gozio, Inc.",507:"Form Lifting, LLC",508:"Wahoo Fitness, LLC",509:"Kontakt Micro-Location Sp. z o.o.",510:"Radio System Corporation",511:"Freescale Semiconductor, Inc.",512:"Verifone Systems PTe Ltd. Taiwan Branch",513:"AR Timing",514:"Rigado LLC",515:"Kemppi Oy",516:"Tapcentive Inc.",517:"Smartbotics Inc.",518:"Otter Products, LLC",519:"STEMP Inc.",520:"LumiGeek LLC",521:"InvisionHeart Inc.",522:"Macnica Inc. ",523:"Jaguar Land Rover Limited",524:"CoroWare Technologies, Inc",525:"Simplo Technology Co., LTD",526:"Omron Healthcare Co., LTD",527:"Comodule GMBH",528:"ikeGPS",529:"Telink Semiconductor Co. Ltd",530:"Interplan Co., Ltd",531:"Wyler AG",532:"IK Multimedia Production srl",533:"Lukoton Experience Oy",534:"MTI Ltd",535:"Tech4home, Lda",536:"Hiotech AB",537:"DOTT Limited",538:"Blue Speck Labs, LLC",539:"Cisco Systems, Inc",540:"Mobicomm Inc",541:"Edamic",542:"Goodnet, Ltd",543:"Luster Leaf Products Inc",544:"Manus Machina BV",545:"Mobiquity Networks Inc",546:"Praxis Dynamics",547:"Philip Morris Products S.A.",548:"Comarch SA",549:"Nestl Nespresso S.A.",550:"Merlinia A/S",551:"LifeBEAM Technologies",552:"Twocanoes Labs, LLC",553:"Muoverti Limited",554:"Stamer Musikanlagen GMBH",555:"Tesla Motors",556:"Pharynks Corporation",557:"Lupine",558:"Siemens AG",559:"Huami (Shanghai) Culture Communication CO., LTD",560:"Foster Electric Company, Ltd",561:"ETA SA",562:"x-Senso Solutions Kft",563:"Shenzhen SuLong Communication Ltd",564:"FengFan (BeiJing) Technology Co, Ltd",565:"Qrio Inc",566:"Pitpatpet Ltd",567:"MSHeli s.r.l.",568:"Trakm8 Ltd",569:"JIN CO, Ltd",570:"Alatech Tehnology",571:"Beijing CarePulse Electronic Technology Co, Ltd",572:"Awarepoint",573:"ViCentra B.V.",574:"Raven Industries",575:"WaveWare Technologies Inc.",576:"Argenox Technologies",577:"Bragi GmbH",578:"16Lab Inc",579:"Masimo Corp",580:"Iotera Inc",581:"Endress+Hauser",582:"ACKme Networks, Inc.",583:"FiftyThree Inc.",584:"Parker Hannifin Corp",585:"Transcranial Ltd",586:"Uwatec AG",587:"Orlan LLC",588:"Blue Clover Devices",589:"M-Way Solutions GmbH",590:"Microtronics Engineering GmbH",591:"Schneider Schreibgerte GmbH",592:"Sapphire Circuits LLC",593:"Lumo Bodytech Inc.",594:"UKC Technosolution",595:"Xicato Inc.",596:"Playbrush",597:"Dai Nippon Printing Co., Ltd.",598:"G24 Power Limited",599:"AdBabble Local Commerce Inc.",600:"Devialet SA",601:"ALTYOR",602:"University of Applied Sciences Valais/Haute Ecole Valaisanne",603:"Five Interactive, LLC dba Zendo",604:"NetEaseHangzhouNetwork co.Ltd.",605:"Lexmark International Inc.",606:"Fluke Corporation",607:"Yardarm Technologies",608:"SensaRx",609:"SECVRE GmbH",610:"Glacial Ridge Technologies",611:"Identiv, Inc.",612:"DDS, Inc.",613:"SMK Corporation",614:"Schawbel Technologies LLC",615:"XMI Systems SA",616:"Cerevo",617:"Torrox GmbH & Co KG",618:"Gemalto",619:"DEKA Research & Development Corp.",620:"Domster Tadeusz Szydlowski",621:"Technogym SPA",622:"FLEURBAEY BVBA",623:"Aptcode Solutions",624:"LSI ADL Technology",625:"Animas Corp",626:"Alps Electric Co., Ltd.",627:"OCEASOFT",628:"Motsai Research",629:"Geotab",630:"E.G.O. Elektro-Gertebau GmbH",631:"bewhere inc",632:"Johnson Outdoors Inc",633:"steute Schaltgerate GmbH & Co. KG",634:"Ekomini inc.",635:"DEFA AS",636:"Aseptika Ltd",637:"HUAWEI Technologies Co., Ltd. ( )",638:"HabitAware, LLC",639:"ruwido austria gmbh",640:"ITEC corporation",641:"StoneL",642:"Sonova AG",643:"Maven Machines, Inc.",644:"Synapse Electronics",645:"Standard Innovation Inc.",646:"RF Code, Inc.",647:"Wally Ventures S.L.",648:"Willowbank Electronics Ltd",649:"SK Telecom",650:"Jetro AS",651:"Code Gears LTD",652:"NANOLINK APS",653:"IF, LLC",654:"RF Digital Corp",655:"Church & Dwight Co., Inc",656:"Multibit Oy",657:"CliniCloud Inc",658:"SwiftSensors",659:"Blue Bite",660:"ELIAS GmbH",661:"Sivantos GmbH",662:"Petzl",663:"storm power ltd",664:"EISST Ltd",665:"Inexess Technology Simma KG",666:"Currant, Inc.",667:"C2 Development, Inc.",668:"Blue Sky Scientific, LLC",669:"ALOTTAZS LABS, LLC",670:"Kupson spol. s r.o.",671:"Areus Engineering GmbH",672:"Impossible Camera GmbH",673:"InventureTrack Systems",674:"LockedUp",675:"Itude",676:"Pacific Lock Company",677:"Tendyron Corporation ( )",678:"Robert Bosch GmbH",679:"Illuxtron international B.V.",680:"miSport Ltd.",681:"Chargelib",682:"Doppler Lab",683:"BBPOS Limited",684:"RTB Elektronik GmbH & Co. KG",685:"Rx Networks, Inc.",686:"WeatherFlow, Inc.",687:"Technicolor USA Inc.",688:"Bestechnic(Shanghai),Ltd",689:"Raden Inc",690:"JouZen Oy",691:"CLABER S.P.A.",692:"Hyginex, Inc.",693:"HANSHIN ELECTRIC RAILWAY CO.,LTD.",694:"Schneider Electric",695:"Oort Technologies LLC",696:"Chrono Therapeutics",697:"Rinnai Corporation",698:"Swissprime Technologies AG",699:"Koha.,Co.Ltd",700:"Genevac Ltd",701:"Chemtronics",702:"Seguro Technology Sp. z o.o.",703:"Redbird Flight Simulations",704:"Dash Robotics",705:"LINE Corporation",706:"Guillemot Corporation",707:"Techtronic Power Tools Technology Limited",708:"Wilson Sporting Goods",709:"Lenovo (Singapore) Pte Ltd. ( )",710:"Ayatan Sensors",711:"Electronics Tomorrow Limited",712:"VASCO Data Security International, Inc.",713:"PayRange Inc.",714:"ABOV Semiconductor",715:"AINA-Wireless Inc.",716:"Eijkelkamp Soil & Water",717:"BMA ergonomics b.v.",718:"Teva Branded Pharmaceutical Products R&D, Inc.",719:"Anima",720:"3M",721:"Empatica Srl",722:"Afero, Inc.",723:"Powercast Corporation",724:"Secuyou ApS",725:"OMRON Corporation",726:"Send Solutions",727:"NIPPON SYSTEMWARE CO.,LTD.",728:"Neosfar",729:"Fliegl Agrartechnik GmbH",730:"Gilvader",731:"Digi International Inc (R)",732:"DeWalch Technologies, Inc.",733:"Flint Rehabilitation Devices, LLC",734:"Samsung SDS Co., Ltd.",735:"Blur Product Development",736:"University of Michigan",737:"Victron Energy BV",738:"NTT docomo",739:"Carmanah Technologies Corp.",740:"Bytestorm Ltd.",741:"Espressif Incorporated ( () )",742:"Unwire",743:"Connected Yard, Inc.",744:"American Music Environments",745:"Sensogram Technologies, Inc.",746:"Fujitsu Limited",747:"Ardic Technology",748:"Delta Systems, Inc",749:"HTC Corporation",750:"Citizen Holdings Co., Ltd.",751:"SMART-INNOVATION.inc",752:"Blackrat Software",753:"The Idea Cave, LLC",754:"GoPro, Inc.",755:"AuthAir, Inc",756:"Vensi, Inc.",757:"Indagem Tech LLC",758:"Intemo Technologies",759:"DreamVisions co., Ltd.",760:"Runteq Oy Ltd",761:"IMAGINATION TECHNOLOGIES LTD",762:"CoSTAR TEchnologies",763:"Clarius Mobile Health Corp.",764:"Shanghai Frequen Microelectronics Co., Ltd.",765:"Uwanna, Inc.",766:"Lierda Science & Technology Group Co., Ltd.",767:"Silicon Laboratories",768:"World Moto Inc.",769:"Giatec Scientific Inc.",770:"Loop Devices, Inc",771:"IACA electronique",772:"Martians Inc",773:"Swipp ApS",774:"Life Laboratory Inc.",775:"FUJI INDUSTRIAL CO.,LTD.",776:"Surefire, LLC",777:"Dolby Labs",778:"Ellisys",779:"Magnitude Lighting Converters",780:"Hilti AG",781:"Devdata S.r.l.",782:"Deviceworx",783:"Shortcut Labs",784:"SGL Italia S.r.l.",785:"PEEQ DATA",786:"Ducere Technologies Pvt Ltd",787:"DiveNav, Inc.",788:"RIIG AI Sp. z o.o.",789:"Thermo Fisher Scientific",790:"AG Measurematics Pvt. Ltd.",791:"CHUO Electronics CO., LTD.",792:"Aspenta International",793:"Eugster Frismag AG",794:"Amber wireless GmbH",795:"HQ Inc",796:"Lab Sensor Solutions",797:"Enterlab ApS",798:"Eyefi, Inc.",799:"MetaSystem S.p.A.",800:"SONO ELECTRONICS. CO., LTD",801:"Jewelbots",802:"Compumedics Limited",803:"Rotor Bike Components",804:"Astro, Inc.",805:"Amotus Solutions",806:"Healthwear Technologies (Changzhou)Ltd",807:"Essex Electronics",808:"Grundfos A/S",809:"Eargo, Inc.",810:"Electronic Design Lab",811:"ESYLUX",812:"NIPPON SMT.CO.,Ltd",813:"BM innovations GmbH",814:"indoormap",815:"OttoQ Inc",816:"North Pole Engineering",817:"3flares Technologies Inc.",818:"Electrocompaniet A.S.",819:"Mul-T-Lock",820:"Corentium AS",821:"Enlighted Inc",822:"GISTIC",823:"AJP2 Holdings, LLC",824:"COBI GmbH",825:"Blue Sky Scientific, LLC",826:"Appception, Inc.",827:"Courtney Thorne Limited",828:"Virtuosys",829:"TPV Technology Limited",830:"Monitra SA",831:"Automation Components, Inc.",832:"Letsense s.r.l.",833:"Etesian Technologies LLC",834:"GERTEC BRASIL LTDA.",835:"Drekker Development Pty. Ltd.",836:"Whirl Inc",837:"Locus Positioning",838:"Acuity Brands Lighting, Inc",839:"Prevent Biometrics",840:"Arioneo",841:"VersaMe",842:"Vaddio",843:"Libratone A/S",844:"HM Electronics, Inc.",845:"TASER International, Inc.",846:"SafeTrust Inc.",847:"Heartland Payment Systems",848:"Bitstrata Systems Inc.",849:"Pieps GmbH",850:"iRiding(Xiamen)Technology Co.,Ltd.",851:"Alpha Audiotronics, Inc.",852:"TOPPAN FORMS CO.,LTD.",853:"Sigma Designs, Inc.",854:"Spectrum Brands, Inc.",855:"Polymap Wireless",856:"MagniWare Ltd.",857:"Novotec Medical GmbH",858:"Medicom Innovation Partner a/s",859:"Matrix Inc.",860:"Eaton Corporation",861:"KYS",862:"Naya Health, Inc.",863:"Acromag",864:"Insulet Corporation",865:"Wellinks Inc.",866:"ON Semiconductor",867:"FREELAP SA",868:"Favero Electronics Srl",869:"BioMech Sensor LLC",870:"BOLTT Sports technologies Private limited",871:"Saphe International",872:"Metormote AB",873:"littleBits",874:"SetPoint Medical",875:"BRControls Products BV",876:"Zipcar",877:"AirBolt Pty Ltd",878:"KeepTruckin Inc",879:"Motiv, Inc.",880:"Wazombi Labs O",881:"ORBCOMM",882:"Nixie Labs, Inc.",883:"AppNearMe Ltd",884:"Holman Industries",885:"Expain AS",886:"Electronic Temperature Instruments Ltd",887:"Plejd AB",888:"Propeller Health",889:"Shenzhen iMCO Electronic Technology Co.,Ltd",890:"Algoria",891:"Apption Labs Inc.",892:"Cronologics Corporation",893:"MICRODIA Ltd.",894:"lulabytes S.L.",895:"Nestec S.A.",896:"LLC MEGA - F service",897:"Sharp Corporation",898:"Precision Outcomes Ltd",899:"Kronos Incorporated",900:"OCOSMOS Co., Ltd.",901:"Embedded Electronic Solutions Ltd. dba e2Solutions",902:"Aterica Inc.",903:"BluStor PMC, Inc.",904:"Kapsch TrafficCom AB",905:"ActiveBlu Corporation",906:"Kohler Mira Limited",907:"Noke",908:"Appion Inc.",909:"Resmed Ltd",910:"Crownstone B.V.",911:"Xiaomi Inc.",912:"INFOTECH s.r.o.",913:"Thingsquare AB",914:"T&D",915:"LAVAZZA S.p.A.",916:"Netclearance Systems, Inc.",917:"SDATAWAY",918:"BLOKS GmbH",919:"LEGO System A/S",920:"Thetatronics Ltd",921:"Nikon Corporation",922:"NeST",923:"South Silicon Valley Microelectronics",924:"ALE International",925:"CareView Communications, Inc.",926:"SchoolBoard Limited",927:"Molex Corporation",928:"IVT Wireless Limited",929:"Alpine Labs LLC",930:"Candura Instruments",931:"SmartMovt Technology Co., Ltd",932:"Token Zero Ltd",933:"ACE CAD Enterprise Co., Ltd. (ACECAD)",934:"Medela, Inc",935:"AeroScout",936:"Esrille Inc.",937:"THINKERLY SRL",938:"Exon Sp. z o.o.",939:"Meizu Technology Co., Ltd.",940:"Smablo LTD",941:"XiQ",942:"Allswell Inc.",943:"Comm-N-Sense Corp DBA Verigo",944:"VIBRADORM GmbH",945:"Otodata Wireless Network Inc.",946:"Propagation Systems Limited",947:"Midwest Instruments & Controls",948:"Alpha Nodus, inc.",949:"petPOMM, Inc",950:"Mattel",951:"Airbly Inc.",952:"A-Safe Limited",953:"FREDERIQUE CONSTANT SA",954:"Maxscend Microelectronics Company Limited",955:"Abbott Diabetes Care",956:"ASB Bank Ltd",957:"amadas",958:"Applied Science, Inc.",959:"iLumi Solutions Inc.",960:"Arch Systems Inc.",961:"Ember Technologies, Inc.",962:"Snapchat Inc",963:"Casambi Technologies Oy",964:"Pico Technology Inc.",965:"St. Jude Medical, Inc.",966:"Intricon",967:"Structural Health Systems, Inc.",968:"Avvel International",969:"Gallagher Group",970:"In2things Automation Pvt. Ltd.",971:"SYSDEV Srl",972:"Vonkil Technologies Ltd",973:"Wynd Technologies, Inc.",974:"CONTRINEX S.A.",975:"MIRA, Inc.",976:"Watteam Ltd",977:"Density Inc.",978:"IOT Pot India Private Limited",979:"Sigma Connectivity AB",980:"PEG PEREGO SPA",981:"Wyzelink Systems Inc.",982:"Yota Devices LTD",983:"FINSECUR",984:"Zen-Me Labs Ltd",985:"3IWare Co., Ltd.",986:"EnOcean GmbH",987:"Instabeat, Inc",988:"Nima Labs",989:"Andreas Stihl AG & Co. KG",990:"Nathan Rhoades LLC",991:"Grob Technologies, LLC",992:"Actions (Zhuhai) Technology Co., Limited",993:"SPD Development Company Ltd",994:"Sensoan Oy",995:"Qualcomm Life Inc",996:"Chip-ing AG",997:"ffly4u",998:"IoT Instruments Oy",999:"TRUE Fitness Technology",1e3:"Reiner Kartengeraete GmbH & Co. KG.",1001:"SHENZHEN LEMONJOY TECHNOLOGY CO., LTD.",1002:"Hello Inc.",1003:"Evollve Inc.",1004:"Jigowatts Inc.",1005:"BASIC MICRO.COM,INC.",1006:"CUBE TECHNOLOGIES",1007:"foolography GmbH",1008:"CLINK",1009:"Hestan Smart Cooking Inc.",1010:"WindowMaster A/S",1011:"Flowscape AB",1012:"PAL Technologies Ltd",1013:"WHERE, Inc.",1014:"Iton Technology Corp.",1015:"Owl Labs Inc.",1016:"Rockford Corp.",1017:"Becon Technologies Co.,Ltd.",1018:"Vyassoft Technologies Inc",1019:"Nox Medical",1020:"Kimberly-Clark",1021:"Trimble Navigation Ltd.",1022:"Littelfuse",1023:"Withings",1024:"i-developer IT Beratung UG",1026:"Sears Holdings Corporation",1027:"Gantner Electronic GmbH",1028:"Authomate Inc",1029:"Vertex International, Inc.",1030:"Airtago",1031:"Swiss Audio SA",1032:"ToGetHome Inc.",1033:"AXIS",1034:"Openmatics",1035:"Jana Care Inc.",1036:"Senix Corporation",1037:"NorthStar Battery Company, LLC",1038:"SKF (U.K.) Limited",1039:"CO-AX Technology, Inc.",1040:"Fender Musical Instruments",1041:"Luidia Inc",1042:"SEFAM",1043:"Wireless Cables Inc",1044:"Lightning Protection International Pty Ltd",1045:"Uber Technologies Inc",1046:"SODA GmbH",1047:"Fatigue Science",1048:"Alpine Electronics Inc.",1049:"Novalogy LTD",1050:"Friday Labs Limited",1051:"OrthoAccel Technologies",1052:"WaterGuru, Inc.",1053:"Benning Elektrotechnik und Elektronik GmbH & Co. KG",1054:"Dell Computer Corporation",1055:"Kopin Corporation",1056:"TecBakery GmbH",1057:"Backbone Labs, Inc.",1058:"DELSEY SA",1059:"Chargifi Limited",1060:"Trainesense Ltd.",1061:"Unify Software and Solutions GmbH & Co. KG",1062:"Husqvarna AB",1063:"Focus fleet and fuel management inc",1064:"SmallLoop, LLC",1065:"Prolon Inc.",1066:"BD Medical",1067:"iMicroMed Incorporated",1068:"Ticto N.V.",1069:"Meshtech AS",1070:"MemCachier Inc.",1071:"Danfoss A/S",1072:"SnapStyk Inc.",1073:"Amyway Corporation",1074:"Silk Labs, Inc.",1075:"Pillsy Inc.",1076:"Hatch Baby, Inc.",1077:"Blocks Wearables Ltd.",1078:"Drayson Technologies (Europe) Limited",1079:"eBest IOT Inc.",1080:"Helvar Ltd",1081:"Radiance Technologies",1082:"Nuheara Limited",1083:"Appside co., ltd.",1084:"DeLaval",1085:"Coiler Corporation",1086:"Thermomedics, Inc.",1087:"Tentacle Sync GmbH",1088:"Valencell, Inc.",1089:"iProtoXi Oy",1090:"SECOM CO., LTD.",1091:"Tucker International LLC",1092:"Metanate Limited",1093:"Kobian Canada Inc.",1094:"NETGEAR, Inc.",1095:"Fabtronics Australia Pty Ltd",1096:"Grand Centrix GmbH",1097:"1UP USA.com llc",1098:"SHIMANO INC.",1099:"Nain Inc.",1100:"LifeStyle Lock, LLC",1101:"VEGA Grieshaber KG",1102:"Xtrava Inc.",1103:"TTS Tooltechnic Systems AG & Co. KG",1104:"Teenage Engineering AB",1105:"Tunstall Nordic AB",1106:"Svep Design Center AB",1107:"GreenPeak Technologies BV",1108:"Sphinx Electronics GmbH & Co KG",1109:"Atomation",1110:"Nemik Consulting Inc",1111:"RF INNOVATION",1112:"Mini Solution Co., Ltd.",1113:"Lumenetix, Inc",1114:"2048450 Ontario Inc",1115:"SPACEEK LTD",1116:"Delta T Corporation",1117:"Boston Scientific Corporation",1118:"Nuviz, Inc.",1119:"Real Time Automation, Inc.",1120:"Kolibree",1121:"vhf elektronik GmbH",1122:"Bonsai Systems GmbH",1123:"Fathom Systems Inc.",1124:"Bellman & Symfon",1125:"International Forte Group LLC",1126:"CycleLabs Solutions inc.",1127:"Codenex Oy",1128:"Kynesim Ltd",1129:"Palago AB",1130:"INSIGMA INC.",1131:"PMD Solutions",1132:"Qingdao Realtime Technology Co., Ltd.",1133:"BEGA Gantenbrink-Leuchten KG",1134:"Pambor Ltd.",65535:"SPECIAL USE/DEFAULT"}});var Nq=x(Mq=>{"use strict";var gde=W("child_process").exec,Ede=W("child_process").execSync,Sde=W("path"),Vi=kt(),_de=Lq(),yde=W("fs"),Ks=process.platform,Tde=Ks==="linux"||Ks==="android",Ade=Ks==="darwin",Ode=Ks==="win32",Cde=Ks==="freebsd",vde=Ks==="openbsd",Dde=Ks==="netbsd",xde=Ks==="sunos";function f1(r){let e="";return r.indexOf("keyboard")>=0&&(e="Keyboard"),r.indexOf("mouse")>=0&&(e="Mouse"),r.indexOf("trackpad")>=0&&(e="Trackpad"),r.indexOf("speaker")>=0&&(e="Speaker"),r.indexOf("headset")>=0&&(e="Headset"),r.indexOf("phone")>=0&&(e="Phone"),r.indexOf("macbook")>=0&&(e="Computer"),r.indexOf("imac")>=0&&(e="Computer"),r.indexOf("ipad")>=0&&(e="Tablet"),r.indexOf("watch")>=0&&(e="Watch"),r.indexOf("headphone")>=0&&(e="Headset"),e}function bde(r){let e=r.split(" ")[0];return r=r.toLowerCase(),r.indexOf("apple")>=0&&(e="Apple"),r.indexOf("ipad")>=0&&(e="Apple"),r.indexOf("imac")>=0&&(e="Apple"),r.indexOf("iphone")>=0&&(e="Apple"),r.indexOf("magic mouse")>=0&&(e="Apple"),r.indexOf("magic track")>=0&&(e="Apple"),r.indexOf("macbook")>=0&&(e="Apple"),e}function Pde(r){let e=parseInt(r);if(!isNaN(e))return _de[e]}function Ide(r,e,t){let n={};return n.device=null,n.name=Vi.getValue(r,"name","="),n.manufacturer=null,n.macDevice=e,n.macHost=t,n.batteryPercent=null,n.type=f1(n.name.toLowerCase()),n.connected=!1,n}function l1(r,e){let t={},n=((r.device_minorClassOfDevice_string||r.device_majorClassOfDevice_string||r.device_minorType||"")+(r.device_name||"")).toLowerCase();return t.device=r.device_services||"",t.name=r.device_name||"",t.manufacturer=r.device_manufacturer||Pde(r.device_vendorID)||bde(r.device_name||"")||"",t.macDevice=(r.device_addr||r.device_address||"").toLowerCase().replace(/-/g,":"),t.macHost=e,t.batteryPercent=r.device_batteryPercent||null,t.type=f1(n),t.connected=r.device_isconnected==="attrib_Yes"||!1,t}function wde(r){let e={};return e.device=null,e.name=Vi.getValue(r,"name",":"),e.manufacturer=Vi.getValue(r,"manufacturer",":"),e.macDevice=null,e.macHost=null,e.batteryPercent=null,e.type=f1(e.name.toLowerCase()),e.connected=null,e}function Rde(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Tde){Vi.getFilesInPath("/var/lib/bluetooth/").forEach(s=>{let i=Sde.basename(s),o=s.split("/"),a=o.length>=6?o[o.length-2]:null,c=o.length>=7?o[o.length-3]:null;if(i==="info"){let u=yde.readFileSync(s,{encoding:"utf8"}).split(`
|
|
573
|
-
`);t.push(Ide(u,a,c))}});try{let s=Ede("hcitool con",Vi.execOptsLinux).toString().toLowerCase();for(let i=0;i<t.length;i++)t[i].macDevice&&t[i].macDevice.length>10&&s.indexOf(t[i].macDevice.toLowerCase())>=0&&(t[i].connected=!0)}catch{Vi.noop()}r&&r(t),e(t)}Ade&&gde("system_profiler SPBluetoothDataType -json",function(s,i){if(!s)try{let o=JSON.parse(i.toString());if(o.SPBluetoothDataType&&o.SPBluetoothDataType.length&&o.SPBluetoothDataType[0]&&o.SPBluetoothDataType[0].device_title&&o.SPBluetoothDataType[0].device_title.length){let a=null;o.SPBluetoothDataType[0].local_device_title&&o.SPBluetoothDataType[0].local_device_title.general_address&&(a=o.SPBluetoothDataType[0].local_device_title.general_address.toLowerCase().replace(/-/g,":")),o.SPBluetoothDataType[0].device_title.forEach(c=>{let u=c,l=Object.keys(u);if(l&&l.length===1){let f=u[l[0]];f.device_name=l[0];let p=
|
|
572
|
+
`);Ur.getValue(a,"name",":")&&t.push(hde(a))}),r&&r(t),e(t)}),ude&&e(null)})})}Iq.audio=mde});var Lq=x((UOe,Rq)=>{"use strict";Rq.exports={0:"Ericsson Technology Licensing",1:"Nokia Mobile Phones",2:"Intel Corp.",3:"IBM Corp.",4:"Toshiba Corp.",5:"3Com",6:"Microsoft",7:"Lucent",8:"Motorola",9:"Infineon Technologies AG",10:"Cambridge Silicon Radio",11:"Silicon Wave",12:"Digianswer A/S",13:"Texas Instruments Inc.",14:"Ceva, Inc. (formerly Parthus Technologies, Inc.)",15:"Broadcom Corporation",16:"Mitel Semiconductor",17:"Widcomm, Inc",18:"Zeevo, Inc.",19:"Atmel Corporation",20:"Mitsubishi Electric Corporation",21:"RTX Telecom A/S",22:"KC Technology Inc.",23:"NewLogic",24:"Transilica, Inc.",25:"Rohde & Schwarz GmbH & Co. KG",26:"TTPCom Limited",27:"Signia Technologies, Inc.",28:"Conexant Systems Inc.",29:"Qualcomm",30:"Inventel",31:"AVM Berlin",32:"BandSpeed, Inc.",33:"Mansella Ltd",34:"NEC Corporation",35:"WavePlus Technology Co., Ltd.",36:"Alcatel",37:"NXP Semiconductors (formerly Philips Semiconductors)",38:"C Technologies",39:"Open Interface",40:"R F Micro Devices",41:"Hitachi Ltd",42:"Symbol Technologies, Inc.",43:"Tenovis",44:"Macronix International Co. Ltd.",45:"GCT Semiconductor",46:"Norwood Systems",47:"MewTel Technology Inc.",48:"ST Microelectronics",49:"Synopsis",50:"Red-M (Communications) Ltd",51:"Commil Ltd",52:"Computer Access Technology Corporation (CATC)",53:"Eclipse (HQ Espana) S.L.",54:"Renesas Electronics Corporation",55:"Mobilian Corporation",56:"Terax",57:"Integrated System Solution Corp.",58:"Matsushita Electric Industrial Co., Ltd.",59:"Gennum Corporation",60:"BlackBerry Limited (formerly Research In Motion)",61:"IPextreme, Inc.",62:"Systems and Chips, Inc.",63:"Bluetooth SIG, Inc.",64:"Seiko Epson Corporation",65:"Integrated Silicon Solution Taiwan, Inc.",66:"CONWISE Technology Corporation Ltd",67:"PARROT SA",68:"Socket Mobile",69:"Atheros Communications, Inc.",70:"MediaTek, Inc.",71:"Bluegiga",72:"Marvell Technology Group Ltd.",73:"3DSP Corporation",74:"Accel Semiconductor Ltd.",75:"Continental Automotive Systems",76:"Apple, Inc.",77:"Staccato Communications, Inc.",78:"Avago Technologies",79:"APT Licensing Ltd.",80:"SiRF Technology",81:"Tzero Technologies, Inc.",82:"J&M Corporation",83:"Free2move AB",84:"3DiJoy Corporation",85:"Plantronics, Inc.",86:"Sony Ericsson Mobile Communications",87:"Harman International Industries, Inc.",88:"Vizio, Inc.",89:"Nordic Semiconductor ASA",90:"EM Microelectronic-Marin SA",91:"Ralink Technology Corporation",92:"Belkin International, Inc.",93:"Realtek Semiconductor Corporation",94:"Stonestreet One, LLC",95:"Wicentric, Inc.",96:"RivieraWaves S.A.S",97:"RDA Microelectronics",98:"Gibson Guitars",99:"MiCommand Inc.",100:"Band XI International, LLC",101:"Hewlett-Packard Company",102:"9Solutions Oy",103:"GN Netcom A/S",104:"General Motors",105:"A&D Engineering, Inc.",106:"MindTree Ltd.",107:"Polar Electro OY",108:"Beautiful Enterprise Co., Ltd.",109:"BriarTek, Inc.",110:"Summit Data Communications, Inc.",111:"Sound ID",112:"Monster, LLC",113:"connectBlue AB",114:"ShangHai Super Smart Electronics Co. Ltd.",115:"Group Sense Ltd.",116:"Zomm, LLC",117:"Samsung Electronics Co. Ltd.",118:"Creative Technology Ltd.",119:"Laird Technologies",120:"Nike, Inc.",121:"lesswire AG",122:"MStar Semiconductor, Inc.",123:"Hanlynn Technologies",124:"A & R Cambridge",125:"Seers Technology Co. Ltd",126:"Sports Tracking Technologies Ltd.",127:"Autonet Mobile",128:"DeLorme Publishing Company, Inc.",129:"WuXi Vimicro",130:"Sennheiser Communications A/S",131:"TimeKeeping Systems, Inc.",132:"Ludus Helsinki Ltd.",133:"BlueRadios, Inc.",134:"equinox AG",135:"Garmin International, Inc.",136:"Ecotest",137:"GN ReSound A/S",138:"Jawbone",139:"Topcorn Positioning Systems, LLC",140:"Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)",141:"Zscan Software",142:"Quintic Corp.",143:"Stollman E+V GmbH",144:"Funai Electric Co., Ltd.",145:"Advanced PANMOBIL Systems GmbH & Co. KG",146:"ThinkOptics, Inc.",147:"Universal Electronics, Inc.",148:"Airoha Technology Corp.",149:"NEC Lighting, Ltd.",150:"ODM Technology, Inc.",151:"ConnecteDevice Ltd.",152:"zer01.tv GmbH",153:"i.Tech Dynamic Global Distribution Ltd.",154:"Alpwise",155:"Jiangsu Toppower Automotive Electronics Co., Ltd.",156:"Colorfy, Inc.",157:"Geoforce Inc.",158:"Bose Corporation",159:"Suunto Oy",160:"Kensington Computer Products Group",161:"SR-Medizinelektronik",162:"Vertu Corporation Limited",163:"Meta Watch Ltd.",164:"LINAK A/S",165:"OTL Dynamics LLC",166:"Panda Ocean Inc.",167:"Visteon Corporation",168:"ARP Devices Limited",169:"Magneti Marelli S.p.A",170:"CAEN RFID srl",171:"Ingenieur-Systemgruppe Zahn GmbH",172:"Green Throttle Games",173:"Peter Systemtechnik GmbH",174:"Omegawave Oy",175:"Cinetix",176:"Passif Semiconductor Corp",177:"Saris Cycling Group, Inc",178:"Bekey A/S",179:"Clarinox Technologies Pty. Ltd.",180:"BDE Technology Co., Ltd.",181:"Swirl Networks",182:"Meso international",183:"TreLab Ltd",184:"Qualcomm Innovation Center, Inc. (QuIC)",185:"Johnson Controls, Inc.",186:"Starkey Laboratories Inc.",187:"S-Power Electronics Limited",188:"Ace Sensor Inc",189:"Aplix Corporation",190:"AAMP of America",191:"Stalmart Technology Limited",192:"AMICCOM Electronics Corporation",193:"Shenzhen Excelsecu Data Technology Co.,Ltd",194:"Geneq Inc.",195:"adidas AG",196:"LG Electronics",197:"Onset Computer Corporation",198:"Selfly BV",199:"Quuppa Oy.",200:"GeLo Inc",201:"Evluma",202:"MC10",203:"Binauric SE",204:"Beats Electronics",205:"Microchip Technology Inc.",206:"Elgato Systems GmbH",207:"ARCHOS SA",208:"Dexcom, Inc.",209:"Polar Electro Europe B.V.",210:"Dialog Semiconductor B.V.",211:"Taixingbang\xA0Technology (HK) Co,. LTD.",212:"Kawantech",213:"Austco Communication Systems",214:"Timex Group USA, Inc.",215:"Qualcomm Technologies, Inc.",216:"Qualcomm Connected Experiences, Inc.",217:"Voyetra Turtle Beach",218:"txtr GmbH",219:"Biosentronics",220:"Procter & Gamble",221:"Hosiden Corporation",222:"Muzik LLC",223:"Misfit Wearables Corp",224:"Google",225:"Danlers Ltd",226:"Semilink Inc",227:"inMusic Brands, Inc",228:"L.S. Research Inc.",229:"Eden Software Consultants Ltd.",230:"Freshtemp",231:"KS Technologies",232:"ACTS Technologies",233:"Vtrack Systems",234:"Nielsen-Kellerman Company",235:"Server Technology, Inc.",236:"BioResearch Associates",237:"Jolly Logic, LLC",238:"Above Average Outcomes, Inc.",239:"Bitsplitters GmbH",240:"PayPal, Inc.",241:"Witron Technology Limited",242:"Aether Things\xA0Inc. (formerly Morse Project Inc.)",243:"Kent Displays Inc.",244:"Nautilus Inc.",245:"Smartifier Oy",246:"Elcometer Limited",247:"VSN Technologies Inc.",248:"AceUni Corp., Ltd.",249:"StickNFind",250:"Crystal Code AB",251:"KOUKAAM a.s.",252:"Delphi Corporation",253:"ValenceTech Limited",254:"Reserved",255:"Typo Products, LLC",256:"TomTom International BV",257:"Fugoo, Inc",258:"Keiser Corporation",259:"Bang & Olufsen A/S",260:"PLUS Locations Systems Pty Ltd",261:"Ubiquitous Computing Technology Corporation",262:"Innovative Yachtter Solutions",263:"William Demant Holding A/S",264:"Chicony Electronics Co., Ltd.",265:"Atus BV",266:"Codegate Ltd.",267:"ERi, Inc.",268:"Transducers Direct, LLC",269:"Fujitsu Ten Limited",270:"Audi AG",271:"HiSilicon Technologies Co., Ltd.",272:"Nippon Seiki Co., Ltd.",273:"Steelseries ApS",274:"vyzybl Inc.",275:"Openbrain Technologies, Co., Ltd.",276:"Xensr",277:"e.solutions",278:"1OAK Technologies",279:"Wimoto Technologies Inc",280:"Radius Networks, Inc.",281:"Wize Technology Co., Ltd.",282:"Qualcomm Labs, Inc.",283:"Aruba Networks",284:"Baidu",285:"Arendi AG",286:"Skoda Auto a.s.",287:"Volkswagon AG",288:"Porsche AG",289:"Sino Wealth Electronic Ltd.",290:"AirTurn, Inc.",291:"Kinsa, Inc.",292:"HID Global",293:"SEAT es",294:"Promethean Ltd.",295:"Salutica Allied Solutions",296:"GPSI Group Pty Ltd",297:"Nimble Devices Oy",298:"Changzhou Yongse Infotech Co., Ltd",299:"SportIQ",300:"TEMEC Instruments B.V.",301:"Sony Corporation",302:"ASSA ABLOY",303:"Clarion Co., Ltd.",304:"Warehouse Innovations",305:"Cypress Semiconductor Corporation",306:"MADS Inc",307:"Blue Maestro Limited",308:"Resolution Products, Inc.",309:"Airewear LLC",310:"Seed Labs, Inc. (formerly ETC sp. z.o.o.)",311:"Prestigio Plaza Ltd.",312:"NTEO Inc.",313:"Focus Systems Corporation",314:"Tencent Holdings Limited",315:"Allegion",316:"Murata Manufacuring Co., Ltd.",318:"Nod, Inc.",319:"B&B Manufacturing Company",320:"Alpine\xA0Electronics\xA0(China)\xA0Co.,\xA0Ltd",321:"FedEx Services",322:"Grape Systems Inc.",323:"Bkon Connect",324:"Lintech GmbH",325:"Novatel Wireless",326:"Ciright",327:"Mighty Cast, Inc.",328:"Ambimat Electronics",329:"Perytons Ltd.",330:"Tivoli Audio, LLC",331:"Master Lock",332:"Mesh-Net Ltd",333:"Huizhou Desay SV Automotive CO., LTD.",334:"Tangerine, Inc.",335:"B&W Group Ltd.",336:"Pioneer Corporation",337:"OnBeep",338:"Vernier Software & Technology",339:"ROL Ergo",340:"Pebble Technology",341:"NETATMO",342:"Accumulate AB",343:"Anhui Huami Information Technology Co., Ltd.",344:"Inmite s.r.o.",345:"ChefSteps, Inc.",346:"micas AG",347:"Biomedical Research Ltd.",348:"Pitius Tec S.L.",349:"Estimote, Inc.",350:"Unikey Technologies, Inc.",351:"Timer Cap Co.",352:"AwoX",353:"yikes",354:"MADSGlobal NZ Ltd.",355:"PCH International",356:"Qingdao Yeelink Information Technology Co., Ltd.",357:"Milwaukee Tool (formerly Milwaukee Electric Tools)",358:"MISHIK Pte Ltd",359:"Bayer HealthCare",360:"Spicebox LLC",361:"emberlight",362:"Cooper-Atkins Corporation",363:"Qblinks",364:"MYSPHERA",365:"LifeScan Inc",366:"Volantic AB",367:"Podo Labs, Inc",368:"Roche Diabetes Care AG",369:"Amazon Fulfillment Service",370:"Connovate Technology Private Limited",371:"Kocomojo, LLC",372:"Everykey LLC",373:"Dynamic Controls",374:"SentriLock",375:"I-SYST inc.",376:"CASIO COMPUTER CO., LTD.",377:"LAPIS Semiconductor Co., Ltd.",378:"Telemonitor, Inc.",379:"taskit GmbH",380:"Daimler AG",381:"BatAndCat",382:"BluDotz Ltd",383:"XTel ApS",384:"Gigaset Communications GmbH",385:"Gecko Health Innovations, Inc.",386:"HOP Ubiquitous",387:"To Be Assigned",388:"Nectar",389:"bel\u2019apps LLC",390:"CORE Lighting Ltd",391:"Seraphim Sense Ltd",392:"Unico RBC",393:"Physical Enterprises Inc.",394:"Able Trend Technology Limited",395:"Konica Minolta, Inc.",396:"Wilo SE",397:"Extron Design Services",398:"Fitbit, Inc.",399:"Fireflies Systems",400:"Intelletto Technologies Inc.",401:"FDK CORPORATION",402:"Cloudleaf, Inc",403:"Maveric Automation LLC",404:"Acoustic Stream Corporation",405:"Zuli",406:"Paxton Access Ltd",407:"WiSilica Inc",408:"Vengit Limited",409:"SALTO SYSTEMS S.L.",410:"TRON Forum (formerly T-Engine Forum)",411:"CUBETECH s.r.o.",412:"Cokiya Incorporated",413:"CVS Health",414:"Ceruus",415:"Strainstall Ltd",416:"Channel Enterprises (HK) Ltd.",417:"FIAMM",418:"GIGALANE.CO.,LTD",419:"EROAD",420:"Mine Safety Appliances",421:"Icon Health and Fitness",422:"Asandoo GmbH",423:"ENERGOUS CORPORATION",424:"Taobao",425:"Canon Inc.",426:"Geophysical Technology Inc.",427:"Facebook, Inc.",428:"Nipro Diagnostics, Inc.",429:"FlightSafety International",430:"Earlens Corporation",431:"Sunrise Micro Devices, Inc.",432:"Star Micronics Co., Ltd.",433:"Netizens Sp. z o.o.",434:"Nymi Inc.",435:"Nytec, Inc.",436:"Trineo Sp. z o.o.",437:"Nest Labs Inc.",438:"LM Technologies Ltd",439:"General Electric Company",440:"i+D3 S.L.",441:"HANA Micron",442:"Stages Cycling LLC",443:"Cochlear Bone Anchored Solutions AB",444:"SenionLab AB",445:"Syszone Co., Ltd",446:"Pulsate Mobile Ltd.",447:"Hong Kong HunterSun Electronic Limited",448:"pironex GmbH",449:"BRADATECH Corp.",450:"Transenergooil AG",451:"Bunch",452:"DME Microelectronics",453:"Bitcraze AB",454:"HASWARE Inc.",455:"Abiogenix Inc.",456:"Poly-Control ApS",457:"Avi-on",458:"Laerdal Medical AS",459:"Fetch My Pet",460:"Sam Labs Ltd.",461:"Chengdu Synwing Technology Ltd",462:"HOUWA SYSTEM DESIGN, k.k.",463:"BSH",464:"Primus Inter Pares Ltd",465:"August",466:"Gill Electronics",467:"Sky Wave Design",468:"Newlab S.r.l.",469:"ELAD srl",470:"G-wearables inc.",471:"Squadrone Systems Inc.",472:"Code Corporation",473:"Savant Systems LLC",474:"Logitech International SA",475:"Innblue Consulting",476:"iParking Ltd.",477:"Koninklijke Philips Electronics N.V.",478:"Minelab Electronics Pty Limited",479:"Bison Group Ltd.",480:"Widex A/S",481:"Jolla Ltd",482:"Lectronix, Inc.",483:"Caterpillar Inc",484:"Freedom Innovations",485:"Dynamic Devices Ltd",486:"Technology Solutions (UK) Ltd",487:"IPS Group Inc.",488:"STIR",489:"Sano, Inc",490:"Advanced Application Design, Inc.",491:"AutoMap LLC",492:"Spreadtrum Communications Shanghai Ltd",493:"CuteCircuit LTD",494:"Valeo Service",495:"Fullpower Technologies, Inc.",496:"KloudNation",497:"Zebra Technologies Corporation",498:"Itron, Inc.",499:"The University of Tokyo",500:"UTC Fire and Security",501:"Cool Webthings Limited",502:"DJO Global",503:"Gelliner Limited",504:"Anyka (Guangzhou) Microelectronics Technology Co, LTD",505:"Medtronic, Inc.",506:"Gozio, Inc.",507:"Form Lifting, LLC",508:"Wahoo Fitness, LLC",509:"Kontakt Micro-Location Sp. z o.o.",510:"Radio System Corporation",511:"Freescale Semiconductor, Inc.",512:"Verifone Systems PTe Ltd. Taiwan Branch",513:"AR Timing",514:"Rigado LLC",515:"Kemppi Oy",516:"Tapcentive Inc.",517:"Smartbotics Inc.",518:"Otter Products, LLC",519:"STEMP Inc.",520:"LumiGeek LLC",521:"InvisionHeart Inc.",522:"Macnica Inc. ",523:"Jaguar Land Rover Limited",524:"CoroWare Technologies, Inc",525:"Simplo Technology Co., LTD",526:"Omron Healthcare Co., LTD",527:"Comodule GMBH",528:"ikeGPS",529:"Telink Semiconductor Co. Ltd",530:"Interplan Co., Ltd",531:"Wyler AG",532:"IK Multimedia Production srl",533:"Lukoton Experience Oy",534:"MTI Ltd",535:"Tech4home, Lda",536:"Hiotech AB",537:"DOTT Limited",538:"Blue Speck Labs, LLC",539:"Cisco Systems, Inc",540:"Mobicomm Inc",541:"Edamic",542:"Goodnet, Ltd",543:"Luster Leaf Products Inc",544:"Manus Machina BV",545:"Mobiquity Networks Inc",546:"Praxis Dynamics",547:"Philip Morris Products S.A.",548:"Comarch SA",549:"Nestl Nespresso S.A.",550:"Merlinia A/S",551:"LifeBEAM Technologies",552:"Twocanoes Labs, LLC",553:"Muoverti Limited",554:"Stamer Musikanlagen GMBH",555:"Tesla Motors",556:"Pharynks Corporation",557:"Lupine",558:"Siemens AG",559:"Huami (Shanghai) Culture Communication CO., LTD",560:"Foster Electric Company, Ltd",561:"ETA SA",562:"x-Senso Solutions Kft",563:"Shenzhen SuLong Communication Ltd",564:"FengFan (BeiJing) Technology Co, Ltd",565:"Qrio Inc",566:"Pitpatpet Ltd",567:"MSHeli s.r.l.",568:"Trakm8 Ltd",569:"JIN CO, Ltd",570:"Alatech Tehnology",571:"Beijing CarePulse Electronic Technology Co, Ltd",572:"Awarepoint",573:"ViCentra B.V.",574:"Raven Industries",575:"WaveWare Technologies Inc.",576:"Argenox Technologies",577:"Bragi GmbH",578:"16Lab Inc",579:"Masimo Corp",580:"Iotera Inc",581:"Endress+Hauser",582:"ACKme Networks, Inc.",583:"FiftyThree Inc.",584:"Parker Hannifin Corp",585:"Transcranial Ltd",586:"Uwatec AG",587:"Orlan LLC",588:"Blue Clover Devices",589:"M-Way Solutions GmbH",590:"Microtronics Engineering GmbH",591:"Schneider Schreibgerte GmbH",592:"Sapphire Circuits LLC",593:"Lumo Bodytech Inc.",594:"UKC Technosolution",595:"Xicato Inc.",596:"Playbrush",597:"Dai Nippon Printing Co., Ltd.",598:"G24 Power Limited",599:"AdBabble Local Commerce Inc.",600:"Devialet SA",601:"ALTYOR",602:"University of Applied Sciences Valais/Haute Ecole Valaisanne",603:"Five Interactive, LLC dba Zendo",604:"NetEaseHangzhouNetwork co.Ltd.",605:"Lexmark International Inc.",606:"Fluke Corporation",607:"Yardarm Technologies",608:"SensaRx",609:"SECVRE GmbH",610:"Glacial Ridge Technologies",611:"Identiv, Inc.",612:"DDS, Inc.",613:"SMK Corporation",614:"Schawbel Technologies LLC",615:"XMI Systems SA",616:"Cerevo",617:"Torrox GmbH & Co KG",618:"Gemalto",619:"DEKA Research & Development Corp.",620:"Domster Tadeusz Szydlowski",621:"Technogym SPA",622:"FLEURBAEY BVBA",623:"Aptcode Solutions",624:"LSI ADL Technology",625:"Animas Corp",626:"Alps Electric Co., Ltd.",627:"OCEASOFT",628:"Motsai Research",629:"Geotab",630:"E.G.O. Elektro-Gertebau GmbH",631:"bewhere inc",632:"Johnson Outdoors Inc",633:"steute Schaltgerate GmbH & Co. KG",634:"Ekomini inc.",635:"DEFA AS",636:"Aseptika Ltd",637:"HUAWEI Technologies Co., Ltd. ( )",638:"HabitAware, LLC",639:"ruwido austria gmbh",640:"ITEC corporation",641:"StoneL",642:"Sonova AG",643:"Maven Machines, Inc.",644:"Synapse Electronics",645:"Standard Innovation Inc.",646:"RF Code, Inc.",647:"Wally Ventures S.L.",648:"Willowbank Electronics Ltd",649:"SK Telecom",650:"Jetro AS",651:"Code Gears LTD",652:"NANOLINK APS",653:"IF, LLC",654:"RF Digital Corp",655:"Church & Dwight Co., Inc",656:"Multibit Oy",657:"CliniCloud Inc",658:"SwiftSensors",659:"Blue Bite",660:"ELIAS GmbH",661:"Sivantos GmbH",662:"Petzl",663:"storm power ltd",664:"EISST Ltd",665:"Inexess Technology Simma KG",666:"Currant, Inc.",667:"C2 Development, Inc.",668:"Blue Sky Scientific, LLC",669:"ALOTTAZS LABS, LLC",670:"Kupson spol. s r.o.",671:"Areus Engineering GmbH",672:"Impossible Camera GmbH",673:"InventureTrack Systems",674:"LockedUp",675:"Itude",676:"Pacific Lock Company",677:"Tendyron Corporation ( )",678:"Robert Bosch GmbH",679:"Illuxtron international B.V.",680:"miSport Ltd.",681:"Chargelib",682:"Doppler Lab",683:"BBPOS Limited",684:"RTB Elektronik GmbH & Co. KG",685:"Rx Networks, Inc.",686:"WeatherFlow, Inc.",687:"Technicolor USA Inc.",688:"Bestechnic(Shanghai),Ltd",689:"Raden Inc",690:"JouZen Oy",691:"CLABER S.P.A.",692:"Hyginex, Inc.",693:"HANSHIN ELECTRIC RAILWAY CO.,LTD.",694:"Schneider Electric",695:"Oort Technologies LLC",696:"Chrono Therapeutics",697:"Rinnai Corporation",698:"Swissprime Technologies AG",699:"Koha.,Co.Ltd",700:"Genevac Ltd",701:"Chemtronics",702:"Seguro Technology Sp. z o.o.",703:"Redbird Flight Simulations",704:"Dash Robotics",705:"LINE Corporation",706:"Guillemot Corporation",707:"Techtronic Power Tools Technology Limited",708:"Wilson Sporting Goods",709:"Lenovo (Singapore) Pte Ltd. ( )",710:"Ayatan Sensors",711:"Electronics Tomorrow Limited",712:"VASCO Data Security International, Inc.",713:"PayRange Inc.",714:"ABOV Semiconductor",715:"AINA-Wireless Inc.",716:"Eijkelkamp Soil & Water",717:"BMA ergonomics b.v.",718:"Teva Branded Pharmaceutical Products R&D, Inc.",719:"Anima",720:"3M",721:"Empatica Srl",722:"Afero, Inc.",723:"Powercast Corporation",724:"Secuyou ApS",725:"OMRON Corporation",726:"Send Solutions",727:"NIPPON SYSTEMWARE CO.,LTD.",728:"Neosfar",729:"Fliegl Agrartechnik GmbH",730:"Gilvader",731:"Digi International Inc (R)",732:"DeWalch Technologies, Inc.",733:"Flint Rehabilitation Devices, LLC",734:"Samsung SDS Co., Ltd.",735:"Blur Product Development",736:"University of Michigan",737:"Victron Energy BV",738:"NTT docomo",739:"Carmanah Technologies Corp.",740:"Bytestorm Ltd.",741:"Espressif Incorporated ( () )",742:"Unwire",743:"Connected Yard, Inc.",744:"American Music Environments",745:"Sensogram Technologies, Inc.",746:"Fujitsu Limited",747:"Ardic Technology",748:"Delta Systems, Inc",749:"HTC Corporation",750:"Citizen Holdings Co., Ltd.",751:"SMART-INNOVATION.inc",752:"Blackrat Software",753:"The Idea Cave, LLC",754:"GoPro, Inc.",755:"AuthAir, Inc",756:"Vensi, Inc.",757:"Indagem Tech LLC",758:"Intemo Technologies",759:"DreamVisions co., Ltd.",760:"Runteq Oy Ltd",761:"IMAGINATION TECHNOLOGIES LTD",762:"CoSTAR TEchnologies",763:"Clarius Mobile Health Corp.",764:"Shanghai Frequen Microelectronics Co., Ltd.",765:"Uwanna, Inc.",766:"Lierda Science & Technology Group Co., Ltd.",767:"Silicon Laboratories",768:"World Moto Inc.",769:"Giatec Scientific Inc.",770:"Loop Devices, Inc",771:"IACA electronique",772:"Martians Inc",773:"Swipp ApS",774:"Life Laboratory Inc.",775:"FUJI INDUSTRIAL CO.,LTD.",776:"Surefire, LLC",777:"Dolby Labs",778:"Ellisys",779:"Magnitude Lighting Converters",780:"Hilti AG",781:"Devdata S.r.l.",782:"Deviceworx",783:"Shortcut Labs",784:"SGL Italia S.r.l.",785:"PEEQ DATA",786:"Ducere Technologies Pvt Ltd",787:"DiveNav, Inc.",788:"RIIG AI Sp. z o.o.",789:"Thermo Fisher Scientific",790:"AG Measurematics Pvt. Ltd.",791:"CHUO Electronics CO., LTD.",792:"Aspenta International",793:"Eugster Frismag AG",794:"Amber wireless GmbH",795:"HQ Inc",796:"Lab Sensor Solutions",797:"Enterlab ApS",798:"Eyefi, Inc.",799:"MetaSystem S.p.A.",800:"SONO ELECTRONICS. CO., LTD",801:"Jewelbots",802:"Compumedics Limited",803:"Rotor Bike Components",804:"Astro, Inc.",805:"Amotus Solutions",806:"Healthwear Technologies (Changzhou)Ltd",807:"Essex Electronics",808:"Grundfos A/S",809:"Eargo, Inc.",810:"Electronic Design Lab",811:"ESYLUX",812:"NIPPON SMT.CO.,Ltd",813:"BM innovations GmbH",814:"indoormap",815:"OttoQ Inc",816:"North Pole Engineering",817:"3flares Technologies Inc.",818:"Electrocompaniet A.S.",819:"Mul-T-Lock",820:"Corentium AS",821:"Enlighted Inc",822:"GISTIC",823:"AJP2 Holdings, LLC",824:"COBI GmbH",825:"Blue Sky Scientific, LLC",826:"Appception, Inc.",827:"Courtney Thorne Limited",828:"Virtuosys",829:"TPV Technology Limited",830:"Monitra SA",831:"Automation Components, Inc.",832:"Letsense s.r.l.",833:"Etesian Technologies LLC",834:"GERTEC BRASIL LTDA.",835:"Drekker Development Pty. Ltd.",836:"Whirl Inc",837:"Locus Positioning",838:"Acuity Brands Lighting, Inc",839:"Prevent Biometrics",840:"Arioneo",841:"VersaMe",842:"Vaddio",843:"Libratone A/S",844:"HM Electronics, Inc.",845:"TASER International, Inc.",846:"SafeTrust Inc.",847:"Heartland Payment Systems",848:"Bitstrata Systems Inc.",849:"Pieps GmbH",850:"iRiding(Xiamen)Technology Co.,Ltd.",851:"Alpha Audiotronics, Inc.",852:"TOPPAN FORMS CO.,LTD.",853:"Sigma Designs, Inc.",854:"Spectrum Brands, Inc.",855:"Polymap Wireless",856:"MagniWare Ltd.",857:"Novotec Medical GmbH",858:"Medicom Innovation Partner a/s",859:"Matrix Inc.",860:"Eaton Corporation",861:"KYS",862:"Naya Health, Inc.",863:"Acromag",864:"Insulet Corporation",865:"Wellinks Inc.",866:"ON Semiconductor",867:"FREELAP SA",868:"Favero Electronics Srl",869:"BioMech Sensor LLC",870:"BOLTT Sports technologies Private limited",871:"Saphe International",872:"Metormote AB",873:"littleBits",874:"SetPoint Medical",875:"BRControls Products BV",876:"Zipcar",877:"AirBolt Pty Ltd",878:"KeepTruckin Inc",879:"Motiv, Inc.",880:"Wazombi Labs O",881:"ORBCOMM",882:"Nixie Labs, Inc.",883:"AppNearMe Ltd",884:"Holman Industries",885:"Expain AS",886:"Electronic Temperature Instruments Ltd",887:"Plejd AB",888:"Propeller Health",889:"Shenzhen iMCO Electronic Technology Co.,Ltd",890:"Algoria",891:"Apption Labs Inc.",892:"Cronologics Corporation",893:"MICRODIA Ltd.",894:"lulabytes S.L.",895:"Nestec S.A.",896:"LLC MEGA - F service",897:"Sharp Corporation",898:"Precision Outcomes Ltd",899:"Kronos Incorporated",900:"OCOSMOS Co., Ltd.",901:"Embedded Electronic Solutions Ltd. dba e2Solutions",902:"Aterica Inc.",903:"BluStor PMC, Inc.",904:"Kapsch TrafficCom AB",905:"ActiveBlu Corporation",906:"Kohler Mira Limited",907:"Noke",908:"Appion Inc.",909:"Resmed Ltd",910:"Crownstone B.V.",911:"Xiaomi Inc.",912:"INFOTECH s.r.o.",913:"Thingsquare AB",914:"T&D",915:"LAVAZZA S.p.A.",916:"Netclearance Systems, Inc.",917:"SDATAWAY",918:"BLOKS GmbH",919:"LEGO System A/S",920:"Thetatronics Ltd",921:"Nikon Corporation",922:"NeST",923:"South Silicon Valley Microelectronics",924:"ALE International",925:"CareView Communications, Inc.",926:"SchoolBoard Limited",927:"Molex Corporation",928:"IVT Wireless Limited",929:"Alpine Labs LLC",930:"Candura Instruments",931:"SmartMovt Technology Co., Ltd",932:"Token Zero Ltd",933:"ACE CAD Enterprise Co., Ltd. (ACECAD)",934:"Medela, Inc",935:"AeroScout",936:"Esrille Inc.",937:"THINKERLY SRL",938:"Exon Sp. z o.o.",939:"Meizu Technology Co., Ltd.",940:"Smablo LTD",941:"XiQ",942:"Allswell Inc.",943:"Comm-N-Sense Corp DBA Verigo",944:"VIBRADORM GmbH",945:"Otodata Wireless Network Inc.",946:"Propagation Systems Limited",947:"Midwest Instruments & Controls",948:"Alpha Nodus, inc.",949:"petPOMM, Inc",950:"Mattel",951:"Airbly Inc.",952:"A-Safe Limited",953:"FREDERIQUE CONSTANT SA",954:"Maxscend Microelectronics Company Limited",955:"Abbott Diabetes Care",956:"ASB Bank Ltd",957:"amadas",958:"Applied Science, Inc.",959:"iLumi Solutions Inc.",960:"Arch Systems Inc.",961:"Ember Technologies, Inc.",962:"Snapchat Inc",963:"Casambi Technologies Oy",964:"Pico Technology Inc.",965:"St. Jude Medical, Inc.",966:"Intricon",967:"Structural Health Systems, Inc.",968:"Avvel International",969:"Gallagher Group",970:"In2things Automation Pvt. Ltd.",971:"SYSDEV Srl",972:"Vonkil Technologies Ltd",973:"Wynd Technologies, Inc.",974:"CONTRINEX S.A.",975:"MIRA, Inc.",976:"Watteam Ltd",977:"Density Inc.",978:"IOT Pot India Private Limited",979:"Sigma Connectivity AB",980:"PEG PEREGO SPA",981:"Wyzelink Systems Inc.",982:"Yota Devices LTD",983:"FINSECUR",984:"Zen-Me Labs Ltd",985:"3IWare Co., Ltd.",986:"EnOcean GmbH",987:"Instabeat, Inc",988:"Nima Labs",989:"Andreas Stihl AG & Co. KG",990:"Nathan Rhoades LLC",991:"Grob Technologies, LLC",992:"Actions (Zhuhai) Technology Co., Limited",993:"SPD Development Company Ltd",994:"Sensoan Oy",995:"Qualcomm Life Inc",996:"Chip-ing AG",997:"ffly4u",998:"IoT Instruments Oy",999:"TRUE Fitness Technology",1e3:"Reiner Kartengeraete GmbH & Co. KG.",1001:"SHENZHEN LEMONJOY TECHNOLOGY CO., LTD.",1002:"Hello Inc.",1003:"Evollve Inc.",1004:"Jigowatts Inc.",1005:"BASIC MICRO.COM,INC.",1006:"CUBE TECHNOLOGIES",1007:"foolography GmbH",1008:"CLINK",1009:"Hestan Smart Cooking Inc.",1010:"WindowMaster A/S",1011:"Flowscape AB",1012:"PAL Technologies Ltd",1013:"WHERE, Inc.",1014:"Iton Technology Corp.",1015:"Owl Labs Inc.",1016:"Rockford Corp.",1017:"Becon Technologies Co.,Ltd.",1018:"Vyassoft Technologies Inc",1019:"Nox Medical",1020:"Kimberly-Clark",1021:"Trimble Navigation Ltd.",1022:"Littelfuse",1023:"Withings",1024:"i-developer IT Beratung UG",1026:"Sears Holdings Corporation",1027:"Gantner Electronic GmbH",1028:"Authomate Inc",1029:"Vertex International, Inc.",1030:"Airtago",1031:"Swiss Audio SA",1032:"ToGetHome Inc.",1033:"AXIS",1034:"Openmatics",1035:"Jana Care Inc.",1036:"Senix Corporation",1037:"NorthStar Battery Company, LLC",1038:"SKF (U.K.) Limited",1039:"CO-AX Technology, Inc.",1040:"Fender Musical Instruments",1041:"Luidia Inc",1042:"SEFAM",1043:"Wireless Cables Inc",1044:"Lightning Protection International Pty Ltd",1045:"Uber Technologies Inc",1046:"SODA GmbH",1047:"Fatigue Science",1048:"Alpine Electronics Inc.",1049:"Novalogy LTD",1050:"Friday Labs Limited",1051:"OrthoAccel Technologies",1052:"WaterGuru, Inc.",1053:"Benning Elektrotechnik und Elektronik GmbH & Co. KG",1054:"Dell Computer Corporation",1055:"Kopin Corporation",1056:"TecBakery GmbH",1057:"Backbone Labs, Inc.",1058:"DELSEY SA",1059:"Chargifi Limited",1060:"Trainesense Ltd.",1061:"Unify Software and Solutions GmbH & Co. KG",1062:"Husqvarna AB",1063:"Focus fleet and fuel management inc",1064:"SmallLoop, LLC",1065:"Prolon Inc.",1066:"BD Medical",1067:"iMicroMed Incorporated",1068:"Ticto N.V.",1069:"Meshtech AS",1070:"MemCachier Inc.",1071:"Danfoss A/S",1072:"SnapStyk Inc.",1073:"Amyway Corporation",1074:"Silk Labs, Inc.",1075:"Pillsy Inc.",1076:"Hatch Baby, Inc.",1077:"Blocks Wearables Ltd.",1078:"Drayson Technologies (Europe) Limited",1079:"eBest IOT Inc.",1080:"Helvar Ltd",1081:"Radiance Technologies",1082:"Nuheara Limited",1083:"Appside co., ltd.",1084:"DeLaval",1085:"Coiler Corporation",1086:"Thermomedics, Inc.",1087:"Tentacle Sync GmbH",1088:"Valencell, Inc.",1089:"iProtoXi Oy",1090:"SECOM CO., LTD.",1091:"Tucker International LLC",1092:"Metanate Limited",1093:"Kobian Canada Inc.",1094:"NETGEAR, Inc.",1095:"Fabtronics Australia Pty Ltd",1096:"Grand Centrix GmbH",1097:"1UP USA.com llc",1098:"SHIMANO INC.",1099:"Nain Inc.",1100:"LifeStyle Lock, LLC",1101:"VEGA Grieshaber KG",1102:"Xtrava Inc.",1103:"TTS Tooltechnic Systems AG & Co. KG",1104:"Teenage Engineering AB",1105:"Tunstall Nordic AB",1106:"Svep Design Center AB",1107:"GreenPeak Technologies BV",1108:"Sphinx Electronics GmbH & Co KG",1109:"Atomation",1110:"Nemik Consulting Inc",1111:"RF INNOVATION",1112:"Mini Solution Co., Ltd.",1113:"Lumenetix, Inc",1114:"2048450 Ontario Inc",1115:"SPACEEK LTD",1116:"Delta T Corporation",1117:"Boston Scientific Corporation",1118:"Nuviz, Inc.",1119:"Real Time Automation, Inc.",1120:"Kolibree",1121:"vhf elektronik GmbH",1122:"Bonsai Systems GmbH",1123:"Fathom Systems Inc.",1124:"Bellman & Symfon",1125:"International Forte Group LLC",1126:"CycleLabs Solutions inc.",1127:"Codenex Oy",1128:"Kynesim Ltd",1129:"Palago AB",1130:"INSIGMA INC.",1131:"PMD Solutions",1132:"Qingdao Realtime Technology Co., Ltd.",1133:"BEGA Gantenbrink-Leuchten KG",1134:"Pambor Ltd.",65535:"SPECIAL USE/DEFAULT"}});var Nq=x(Mq=>{"use strict";var gde=W("child_process").exec,Ede=W("child_process").execSync,Sde=W("path"),Vi=kt(),_de=Lq(),yde=W("fs"),Ks=process.platform,Tde=Ks==="linux"||Ks==="android",Ade=Ks==="darwin",Ode=Ks==="win32",Cde=Ks==="freebsd",vde=Ks==="openbsd",Dde=Ks==="netbsd",xde=Ks==="sunos";function fO(r){let e="";return r.indexOf("keyboard")>=0&&(e="Keyboard"),r.indexOf("mouse")>=0&&(e="Mouse"),r.indexOf("trackpad")>=0&&(e="Trackpad"),r.indexOf("speaker")>=0&&(e="Speaker"),r.indexOf("headset")>=0&&(e="Headset"),r.indexOf("phone")>=0&&(e="Phone"),r.indexOf("macbook")>=0&&(e="Computer"),r.indexOf("imac")>=0&&(e="Computer"),r.indexOf("ipad")>=0&&(e="Tablet"),r.indexOf("watch")>=0&&(e="Watch"),r.indexOf("headphone")>=0&&(e="Headset"),e}function bde(r){let e=r.split(" ")[0];return r=r.toLowerCase(),r.indexOf("apple")>=0&&(e="Apple"),r.indexOf("ipad")>=0&&(e="Apple"),r.indexOf("imac")>=0&&(e="Apple"),r.indexOf("iphone")>=0&&(e="Apple"),r.indexOf("magic mouse")>=0&&(e="Apple"),r.indexOf("magic track")>=0&&(e="Apple"),r.indexOf("macbook")>=0&&(e="Apple"),e}function Pde(r){let e=parseInt(r);if(!isNaN(e))return _de[e]}function Ide(r,e,t){let n={};return n.device=null,n.name=Vi.getValue(r,"name","="),n.manufacturer=null,n.macDevice=e,n.macHost=t,n.batteryPercent=null,n.type=fO(n.name.toLowerCase()),n.connected=!1,n}function lO(r,e){let t={},n=((r.device_minorClassOfDevice_string||r.device_majorClassOfDevice_string||r.device_minorType||"")+(r.device_name||"")).toLowerCase();return t.device=r.device_services||"",t.name=r.device_name||"",t.manufacturer=r.device_manufacturer||Pde(r.device_vendorID)||bde(r.device_name||"")||"",t.macDevice=(r.device_addr||r.device_address||"").toLowerCase().replace(/-/g,":"),t.macHost=e,t.batteryPercent=r.device_batteryPercent||null,t.type=fO(n),t.connected=r.device_isconnected==="attrib_Yes"||!1,t}function wde(r){let e={};return e.device=null,e.name=Vi.getValue(r,"name",":"),e.manufacturer=Vi.getValue(r,"manufacturer",":"),e.macDevice=null,e.macHost=null,e.batteryPercent=null,e.type=fO(e.name.toLowerCase()),e.connected=null,e}function Rde(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Tde){Vi.getFilesInPath("/var/lib/bluetooth/").forEach(s=>{let i=Sde.basename(s),o=s.split("/"),a=o.length>=6?o[o.length-2]:null,c=o.length>=7?o[o.length-3]:null;if(i==="info"){let u=yde.readFileSync(s,{encoding:"utf8"}).split(`
|
|
573
|
+
`);t.push(Ide(u,a,c))}});try{let s=Ede("hcitool con",Vi.execOptsLinux).toString().toLowerCase();for(let i=0;i<t.length;i++)t[i].macDevice&&t[i].macDevice.length>10&&s.indexOf(t[i].macDevice.toLowerCase())>=0&&(t[i].connected=!0)}catch{Vi.noop()}r&&r(t),e(t)}Ade&&gde("system_profiler SPBluetoothDataType -json",function(s,i){if(!s)try{let o=JSON.parse(i.toString());if(o.SPBluetoothDataType&&o.SPBluetoothDataType.length&&o.SPBluetoothDataType[0]&&o.SPBluetoothDataType[0].device_title&&o.SPBluetoothDataType[0].device_title.length){let a=null;o.SPBluetoothDataType[0].local_device_title&&o.SPBluetoothDataType[0].local_device_title.general_address&&(a=o.SPBluetoothDataType[0].local_device_title.general_address.toLowerCase().replace(/-/g,":")),o.SPBluetoothDataType[0].device_title.forEach(c=>{let u=c,l=Object.keys(u);if(l&&l.length===1){let f=u[l[0]];f.device_name=l[0];let p=lO(f,a);t.push(p)}})}if(o.SPBluetoothDataType&&o.SPBluetoothDataType.length&&o.SPBluetoothDataType[0]&&o.SPBluetoothDataType[0].device_connected&&o.SPBluetoothDataType[0].device_connected.length){let a=o.SPBluetoothDataType[0].controller_properties&&o.SPBluetoothDataType[0].controller_properties.controller_address?o.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;o.SPBluetoothDataType[0].device_connected.forEach(c=>{let u=c,l=Object.keys(u);if(l&&l.length===1){let f=u[l[0]];f.device_name=l[0],f.device_isconnected="attrib_Yes";let p=lO(f,a);t.push(p)}})}if(o.SPBluetoothDataType&&o.SPBluetoothDataType.length&&o.SPBluetoothDataType[0]&&o.SPBluetoothDataType[0].device_not_connected&&o.SPBluetoothDataType[0].device_not_connected.length){let a=o.SPBluetoothDataType[0].controller_properties&&o.SPBluetoothDataType[0].controller_properties.controller_address?o.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;o.SPBluetoothDataType[0].device_not_connected.forEach(c=>{let u=c,l=Object.keys(u);if(l&&l.length===1){let f=u[l[0]];f.device_name=l[0],f.device_isconnected="attrib_No";let p=lO(f,a);t.push(p)}})}}catch{Vi.noop()}r&&r(t),e(t)}),Ode&&Vi.powerShell("Get-CimInstance Win32_PNPEntity | select PNPClass, Name, Manufacturer | fl").then((n,s)=>{s||n.toString().split(/\n\s*\n/).forEach(o=>{Vi.getValue(o.split(`
|
|
574
574
|
`),"PNPClass",":")==="Bluetooth"&&t.push(wde(o.split(`
|
|
575
|
-
`)))}),r&&r(t),e(t)}),(Cde||Dde||vde||xde)&&e(null)})})}Mq.bluetoothDevices=Rde});var Yq=x(Oe=>{"use strict";var Lde=Qj().version,Js=kt(),Xs=g6(),Gi=MO(),Ln=A6(),H0=w6(),Bq=M6(),Uq=V6(),yi=H6(),ki=Q6(),$0=nq(),Of=oq(),Fq=uq(),p1=mq(),ca=_q(),Mde=Tq(),Vq=vq(),Gq=bq(),kq=wq(),jq=Nq(),Cf=process.platform,q0=Cf==="win32",yf=Cf==="freebsd",Tf=Cf==="openbsd",Af=Cf==="netbsd",_i=Cf==="sunos";q0&&(Js.getCodepage(),Js.getPowershell());function qq(){return Lde}function Hq(r){return new Promise(e=>{process.nextTick(()=>{let t={};t.version=qq(),Promise.all([Xs.system(),Xs.bios(),Xs.baseboard(),Xs.chassis(),Gi.osInfo(),Gi.uuid(),Gi.versions(),Ln.cpu(),Ln.cpuFlags(),Uq.graphics(),ki.networkInterfaces(),H0.memLayout(),yi.diskLayout(),kq.audio(),jq.bluetoothDevices(),Gq.usb(),Vq.printer()]).then(n=>{t.system=n[0],t.bios=n[1],t.baseboard=n[2],t.chassis=n[3],t.os=n[4],t.uuid=n[5],t.versions=n[6],t.cpu=n[7],t.cpu.flags=n[8],t.graphics=n[9],t.net=n[10],t.memLayout=n[11],t.diskLayout=n[12],t.audio=n[13],t.bluetooth=n[14],t.usb=n[15],t.printer=n[16],r&&r(t),e(t)})})})}function $q(r,e,t){return Js.isFunction(e)&&(t=e,e=""),Js.isFunction(r)&&(t=r,r=""),new Promise(n=>{process.nextTick(()=>{e=e||ki.getDefaultNetworkInterface(),r=r||"";let s=(function(){let o=15;return q0&&(o=13),(yf||Tf||Af)&&(o=11),_i&&(o=6),function(){--o===0&&(t&&t(i),n(i))}})(),i={};i.time=Gi.time(),i.node=process.versions.node,i.v8=process.versions.v8,Ln.cpuCurrentSpeed().then(o=>{i.cpuCurrentSpeed=o,s()}),Fq.users().then(o=>{i.users=o,s()}),Of.processes().then(o=>{i.processes=o,s()}),Ln.currentLoad().then(o=>{i.currentLoad=o,s()}),_i||Ln.cpuTemperature().then(o=>{i.temp=o,s()}),!Tf&&!yf&&!Af&&!_i&&ki.networkStats(e).then(o=>{i.networkStats=o,s()}),_i||ki.networkConnections().then(o=>{i.networkConnections=o,s()}),H0.mem().then(o=>{i.mem=o,s()}),_i||Bq().then(o=>{i.battery=o,s()}),_i||Of.services(r).then(o=>{i.services=o,s()}),_i||yi.fsSize().then(o=>{i.fsSize=o,s()}),!q0&&!Tf&&!yf&&!Af&&!_i&&yi.fsStats().then(o=>{i.fsStats=o,s()}),!q0&&!Tf&&!yf&&!Af&&!_i&&yi.disksIO().then(o=>{i.disksIO=o,s()}),!Tf&&!yf&&!Af&&!_i&&$0.wifiNetworks().then(o=>{i.wifiNetworks=o,s()}),p1.inetLatency().then(o=>{i.inetLatency=o,s()})})})}function Nde(r,e,t){return new Promise(n=>{process.nextTick(()=>{let s={};e&&Js.isFunction(e)&&!t&&(t=e,e=""),r&&Js.isFunction(r)&&!e&&!t&&(t=r,r="",e=""),Hq().then(i=>{s=i,$q(r,e).then(o=>{for(let a in o)({}).hasOwnProperty.call(o,a)&&(s[a]=o[a]);t&&t(s),n(s)})})})})}function Wq(r,e){return new Promise(t=>{process.nextTick(()=>{let n=Object.keys(r).filter(s=>({}).hasOwnProperty.call(Oe,s)).map(s=>{let i=r[s].substring(r[s].lastIndexOf("(")+1,r[s].lastIndexOf(")")),o=s.indexOf(")")>=0?s.split(")")[1].trim():s;return o=s.indexOf("|")>=0?s.split("|")[0].trim():o,i?Oe[o](i):Oe[o]("")});Promise.all(n).then(s=>{let i={},o=0;for(let a in r)if({}.hasOwnProperty.call(r,a)&&{}.hasOwnProperty.call(Oe,a)&&s.length>o){if(r[a]==="*"||r[a]==="all")i[a]=s[o];else{let c=r[a],u="",l=[];if(c.indexOf(")")>=0&&(c=c.split(")")[1].trim()),c.indexOf("|")>=0&&(u=c.split("|")[1].trim(),l=u.split(":"),c=c.split("|")[0].trim()),c=c.replace(/,/g," ").replace(/ +/g," ").split(" "),s[o])if(Array.isArray(s[o])){let f=[];s[o].forEach(p=>{let d={};if(c.length===1&&(c[0]==="*"||c[0]==="all")?d=p:c.forEach(m=>{({}).hasOwnProperty.call(p,m)&&(d[m]=p[m])}),u&&l.length===2){if({}.hasOwnProperty.call(d,l[0].trim())){let m=d[l[0].trim()];typeof m=="number"?m===parseFloat(l[1].trim())&&f.push(d):typeof m=="string"&&m.toLowerCase()===l[1].trim().toLowerCase()&&f.push(d)}}else f.push(d)}),i[a]=f}else{let f={};c.forEach(p=>{({}).hasOwnProperty.call(s[o],p)&&(f[p]=s[o][p])}),i[a]=f}else i[a]={}}o++}e&&e(i),t(i)})})})}function Bde(r,e,t){let n=null;return setInterval(()=>{Wq(r).then(i=>{JSON.stringify(n)!==JSON.stringify(i)&&(n=Object.assign({},i),t(i))})},e)}Oe.version=qq;Oe.system=Xs.system;Oe.bios=Xs.bios;Oe.baseboard=Xs.baseboard;Oe.chassis=Xs.chassis;Oe.time=Gi.time;Oe.osInfo=Gi.osInfo;Oe.versions=Gi.versions;Oe.shell=Gi.shell;Oe.uuid=Gi.uuid;Oe.cpu=Ln.cpu;Oe.cpuFlags=Ln.cpuFlags;Oe.cpuCache=Ln.cpuCache;Oe.cpuCurrentSpeed=Ln.cpuCurrentSpeed;Oe.cpuTemperature=Ln.cpuTemperature;Oe.currentLoad=Ln.currentLoad;Oe.fullLoad=Ln.fullLoad;Oe.mem=H0.mem;Oe.memLayout=H0.memLayout;Oe.battery=Bq;Oe.graphics=Uq.graphics;Oe.fsSize=yi.fsSize;Oe.fsOpenFiles=yi.fsOpenFiles;Oe.blockDevices=yi.blockDevices;Oe.fsStats=yi.fsStats;Oe.disksIO=yi.disksIO;Oe.diskLayout=yi.diskLayout;Oe.networkInterfaceDefault=ki.networkInterfaceDefault;Oe.networkGatewayDefault=ki.networkGatewayDefault;Oe.networkInterfaces=ki.networkInterfaces;Oe.networkStats=ki.networkStats;Oe.networkConnections=ki.networkConnections;Oe.wifiNetworks=$0.wifiNetworks;Oe.wifiInterfaces=$0.wifiInterfaces;Oe.wifiConnections=$0.wifiConnections;Oe.services=Of.services;Oe.processes=Of.processes;Oe.processLoad=Of.processLoad;Oe.users=Fq.users;Oe.inetChecksite=p1.inetChecksite;Oe.inetLatency=p1.inetLatency;Oe.dockerInfo=ca.dockerInfo;Oe.dockerImages=ca.dockerImages;Oe.dockerContainers=ca.dockerContainers;Oe.dockerContainerStats=ca.dockerContainerStats;Oe.dockerContainerProcesses=ca.dockerContainerProcesses;Oe.dockerVolumes=ca.dockerVolumes;Oe.dockerAll=ca.dockerAll;Oe.vboxInfo=Mde.vboxInfo;Oe.printer=Vq.printer;Oe.usb=Gq.usb;Oe.audio=kq.audio;Oe.bluetoothDevices=jq.bluetoothDevices;Oe.getStaticData=Hq;Oe.getDynamicData=$q;Oe.getAllData=Nde;Oe.get=Wq;Oe.observe=Bde;Oe.powerShellStart=Js.powerShellStart;Oe.powerShellRelease=Js.powerShellRelease});be();var Zq=dr(ZC(),1),X0=dr(BD(),1),Ti=dr(Rb(),1);import ei from"node:path";import{fileURLToPath as Gde}from"node:url";var Lb=(r=0)=>e=>`\x1B[${e+r}m`,Mb=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,Nb=(r=0)=>(e,t,n)=>`\x1B[${38+r};2;${e};${t};${n}m`,vt={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]}},Hge=Object.keys(vt.modifier),jY=Object.keys(vt.color),qY=Object.keys(vt.bgColor),$ge=[...jY,...qY];function HY(){let r=new Map;for(let[e,t]of Object.entries(vt)){for(let[n,s]of Object.entries(t))vt[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},t[n]=vt[n],r.set(s[0],s[1]);Object.defineProperty(vt,e,{value:t,enumerable:!1})}return Object.defineProperty(vt,"codes",{value:r,enumerable:!1}),vt.color.close="\x1B[39m",vt.bgColor.close="\x1B[49m",vt.color.ansi=Lb(),vt.color.ansi256=Mb(),vt.color.ansi16m=Nb(),vt.bgColor.ansi=Lb(10),vt.bgColor.ansi256=Mb(10),vt.bgColor.ansi16m=Nb(10),Object.defineProperties(vt,{rgbToAnsi256:{value(e,t,n){return 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){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>vt.rgbToAnsi256(...vt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,s;if(e>=232)t=((e-232)*10+8)/255,n=t,s=t;else{e-=16;let a=e%36;t=Math.floor(e/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(t,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>vt.ansi256ToAnsi(vt.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>vt.ansi256ToAnsi(vt.hexToAnsi256(e)),enumerable:!1}}),vt}var $Y=HY(),Bn=$Y;import gE from"node:process";import WY from"node:os";import Bb from"node:tty";function un(r,e=globalThis.Deno?globalThis.Deno.args:gE.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",n=e.indexOf(t+r),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:It}=gE,yp;un("no-color")||un("no-colors")||un("color=false")||un("color=never")?yp=0:(un("color")||un("colors")||un("color=true")||un("color=always"))&&(yp=1);function YY(){if("FORCE_COLOR"in It)return It.FORCE_COLOR==="true"?1:It.FORCE_COLOR==="false"?0:It.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(It.FORCE_COLOR,10),3)}function zY(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function KY(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let n=YY();n!==void 0&&(yp=n);let s=t?yp:n;if(s===0)return 0;if(t){if(un("color=16m")||un("color=full")||un("color=truecolor"))return 3;if(un("color=256"))return 2}if("TF_BUILD"in It&&"AGENT_NAME"in It)return 1;if(r&&!e&&s===void 0)return 0;let i=s||0;if(It.TERM==="dumb")return i;if(gE.platform==="win32"){let o=WY.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in It)return"GITHUB_ACTIONS"in It||"GITEA_ACTIONS"in It?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in It)||It.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in It)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(It.TEAMCITY_VERSION)?1:0;if(It.COLORTERM==="truecolor"||It.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in It){let o=Number.parseInt((It.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(It.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(It.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(It.TERM)||"COLORTERM"in It?1:i}function Ub(r,e={}){let t=KY(r,{streamIsTTY:r&&r.isTTY,...e});return zY(t)}var XY={stdout:Ub({isTTY:Bb.isatty(1)}),stderr:Ub({isTTY:Bb.isatty(2)})},Fb=XY;function Vb(r,e,t){let n=r.indexOf(e);if(n===-1)return r;let s=e.length,i=0,o="";do o+=r.slice(i,n)+e+t,i=n+s,n=r.indexOf(e,i);while(n!==-1);return o+=r.slice(i),o}function Gb(r,e,t,n){let s=0,i="";do{let o=r[n-1]==="\r";i+=r.slice(s,o?n-1:n)+e+(o?`\r
|
|
575
|
+
`)))}),r&&r(t),e(t)}),(Cde||Dde||vde||xde)&&e(null)})})}Mq.bluetoothDevices=Rde});var Yq=x(Oe=>{"use strict";var Lde=Qj().version,Js=kt(),Xs=g6(),Gi=M1(),Ln=A6(),H0=w6(),Bq=M6(),Uq=V6(),yi=H6(),ki=Q6(),$0=nq(),Of=oq(),Fq=uq(),pO=mq(),ca=_q(),Mde=Tq(),Vq=vq(),Gq=bq(),kq=wq(),jq=Nq(),Cf=process.platform,q0=Cf==="win32",yf=Cf==="freebsd",Tf=Cf==="openbsd",Af=Cf==="netbsd",_i=Cf==="sunos";q0&&(Js.getCodepage(),Js.getPowershell());function qq(){return Lde}function Hq(r){return new Promise(e=>{process.nextTick(()=>{let t={};t.version=qq(),Promise.all([Xs.system(),Xs.bios(),Xs.baseboard(),Xs.chassis(),Gi.osInfo(),Gi.uuid(),Gi.versions(),Ln.cpu(),Ln.cpuFlags(),Uq.graphics(),ki.networkInterfaces(),H0.memLayout(),yi.diskLayout(),kq.audio(),jq.bluetoothDevices(),Gq.usb(),Vq.printer()]).then(n=>{t.system=n[0],t.bios=n[1],t.baseboard=n[2],t.chassis=n[3],t.os=n[4],t.uuid=n[5],t.versions=n[6],t.cpu=n[7],t.cpu.flags=n[8],t.graphics=n[9],t.net=n[10],t.memLayout=n[11],t.diskLayout=n[12],t.audio=n[13],t.bluetooth=n[14],t.usb=n[15],t.printer=n[16],r&&r(t),e(t)})})})}function $q(r,e,t){return Js.isFunction(e)&&(t=e,e=""),Js.isFunction(r)&&(t=r,r=""),new Promise(n=>{process.nextTick(()=>{e=e||ki.getDefaultNetworkInterface(),r=r||"";let s=(function(){let o=15;return q0&&(o=13),(yf||Tf||Af)&&(o=11),_i&&(o=6),function(){--o===0&&(t&&t(i),n(i))}})(),i={};i.time=Gi.time(),i.node=process.versions.node,i.v8=process.versions.v8,Ln.cpuCurrentSpeed().then(o=>{i.cpuCurrentSpeed=o,s()}),Fq.users().then(o=>{i.users=o,s()}),Of.processes().then(o=>{i.processes=o,s()}),Ln.currentLoad().then(o=>{i.currentLoad=o,s()}),_i||Ln.cpuTemperature().then(o=>{i.temp=o,s()}),!Tf&&!yf&&!Af&&!_i&&ki.networkStats(e).then(o=>{i.networkStats=o,s()}),_i||ki.networkConnections().then(o=>{i.networkConnections=o,s()}),H0.mem().then(o=>{i.mem=o,s()}),_i||Bq().then(o=>{i.battery=o,s()}),_i||Of.services(r).then(o=>{i.services=o,s()}),_i||yi.fsSize().then(o=>{i.fsSize=o,s()}),!q0&&!Tf&&!yf&&!Af&&!_i&&yi.fsStats().then(o=>{i.fsStats=o,s()}),!q0&&!Tf&&!yf&&!Af&&!_i&&yi.disksIO().then(o=>{i.disksIO=o,s()}),!Tf&&!yf&&!Af&&!_i&&$0.wifiNetworks().then(o=>{i.wifiNetworks=o,s()}),pO.inetLatency().then(o=>{i.inetLatency=o,s()})})})}function Nde(r,e,t){return new Promise(n=>{process.nextTick(()=>{let s={};e&&Js.isFunction(e)&&!t&&(t=e,e=""),r&&Js.isFunction(r)&&!e&&!t&&(t=r,r="",e=""),Hq().then(i=>{s=i,$q(r,e).then(o=>{for(let a in o)({}).hasOwnProperty.call(o,a)&&(s[a]=o[a]);t&&t(s),n(s)})})})})}function Wq(r,e){return new Promise(t=>{process.nextTick(()=>{let n=Object.keys(r).filter(s=>({}).hasOwnProperty.call(Oe,s)).map(s=>{let i=r[s].substring(r[s].lastIndexOf("(")+1,r[s].lastIndexOf(")")),o=s.indexOf(")")>=0?s.split(")")[1].trim():s;return o=s.indexOf("|")>=0?s.split("|")[0].trim():o,i?Oe[o](i):Oe[o]("")});Promise.all(n).then(s=>{let i={},o=0;for(let a in r)if({}.hasOwnProperty.call(r,a)&&{}.hasOwnProperty.call(Oe,a)&&s.length>o){if(r[a]==="*"||r[a]==="all")i[a]=s[o];else{let c=r[a],u="",l=[];if(c.indexOf(")")>=0&&(c=c.split(")")[1].trim()),c.indexOf("|")>=0&&(u=c.split("|")[1].trim(),l=u.split(":"),c=c.split("|")[0].trim()),c=c.replace(/,/g," ").replace(/ +/g," ").split(" "),s[o])if(Array.isArray(s[o])){let f=[];s[o].forEach(p=>{let d={};if(c.length===1&&(c[0]==="*"||c[0]==="all")?d=p:c.forEach(m=>{({}).hasOwnProperty.call(p,m)&&(d[m]=p[m])}),u&&l.length===2){if({}.hasOwnProperty.call(d,l[0].trim())){let m=d[l[0].trim()];typeof m=="number"?m===parseFloat(l[1].trim())&&f.push(d):typeof m=="string"&&m.toLowerCase()===l[1].trim().toLowerCase()&&f.push(d)}}else f.push(d)}),i[a]=f}else{let f={};c.forEach(p=>{({}).hasOwnProperty.call(s[o],p)&&(f[p]=s[o][p])}),i[a]=f}else i[a]={}}o++}e&&e(i),t(i)})})})}function Bde(r,e,t){let n=null;return setInterval(()=>{Wq(r).then(i=>{JSON.stringify(n)!==JSON.stringify(i)&&(n=Object.assign({},i),t(i))})},e)}Oe.version=qq;Oe.system=Xs.system;Oe.bios=Xs.bios;Oe.baseboard=Xs.baseboard;Oe.chassis=Xs.chassis;Oe.time=Gi.time;Oe.osInfo=Gi.osInfo;Oe.versions=Gi.versions;Oe.shell=Gi.shell;Oe.uuid=Gi.uuid;Oe.cpu=Ln.cpu;Oe.cpuFlags=Ln.cpuFlags;Oe.cpuCache=Ln.cpuCache;Oe.cpuCurrentSpeed=Ln.cpuCurrentSpeed;Oe.cpuTemperature=Ln.cpuTemperature;Oe.currentLoad=Ln.currentLoad;Oe.fullLoad=Ln.fullLoad;Oe.mem=H0.mem;Oe.memLayout=H0.memLayout;Oe.battery=Bq;Oe.graphics=Uq.graphics;Oe.fsSize=yi.fsSize;Oe.fsOpenFiles=yi.fsOpenFiles;Oe.blockDevices=yi.blockDevices;Oe.fsStats=yi.fsStats;Oe.disksIO=yi.disksIO;Oe.diskLayout=yi.diskLayout;Oe.networkInterfaceDefault=ki.networkInterfaceDefault;Oe.networkGatewayDefault=ki.networkGatewayDefault;Oe.networkInterfaces=ki.networkInterfaces;Oe.networkStats=ki.networkStats;Oe.networkConnections=ki.networkConnections;Oe.wifiNetworks=$0.wifiNetworks;Oe.wifiInterfaces=$0.wifiInterfaces;Oe.wifiConnections=$0.wifiConnections;Oe.services=Of.services;Oe.processes=Of.processes;Oe.processLoad=Of.processLoad;Oe.users=Fq.users;Oe.inetChecksite=pO.inetChecksite;Oe.inetLatency=pO.inetLatency;Oe.dockerInfo=ca.dockerInfo;Oe.dockerImages=ca.dockerImages;Oe.dockerContainers=ca.dockerContainers;Oe.dockerContainerStats=ca.dockerContainerStats;Oe.dockerContainerProcesses=ca.dockerContainerProcesses;Oe.dockerVolumes=ca.dockerVolumes;Oe.dockerAll=ca.dockerAll;Oe.vboxInfo=Mde.vboxInfo;Oe.printer=Vq.printer;Oe.usb=Gq.usb;Oe.audio=kq.audio;Oe.bluetoothDevices=jq.bluetoothDevices;Oe.getStaticData=Hq;Oe.getDynamicData=$q;Oe.getAllData=Nde;Oe.get=Wq;Oe.observe=Bde;Oe.powerShellStart=Js.powerShellStart;Oe.powerShellRelease=Js.powerShellRelease});be();var Zq=dr(ZC(),1),X0=dr(BD(),1),Ti=dr(Rb(),1);import ei from"node:path";import{fileURLToPath as Gde}from"node:url";var Lb=(r=0)=>e=>`\x1B[${e+r}m`,Mb=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,Nb=(r=0)=>(e,t,n)=>`\x1B[${38+r};2;${e};${t};${n}m`,vt={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]}},Hge=Object.keys(vt.modifier),jY=Object.keys(vt.color),qY=Object.keys(vt.bgColor),$ge=[...jY,...qY];function HY(){let r=new Map;for(let[e,t]of Object.entries(vt)){for(let[n,s]of Object.entries(t))vt[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},t[n]=vt[n],r.set(s[0],s[1]);Object.defineProperty(vt,e,{value:t,enumerable:!1})}return Object.defineProperty(vt,"codes",{value:r,enumerable:!1}),vt.color.close="\x1B[39m",vt.bgColor.close="\x1B[49m",vt.color.ansi=Lb(),vt.color.ansi256=Mb(),vt.color.ansi16m=Nb(),vt.bgColor.ansi=Lb(10),vt.bgColor.ansi256=Mb(10),vt.bgColor.ansi16m=Nb(10),Object.defineProperties(vt,{rgbToAnsi256:{value(e,t,n){return 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){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>vt.rgbToAnsi256(...vt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,s;if(e>=232)t=((e-232)*10+8)/255,n=t,s=t;else{e-=16;let a=e%36;t=Math.floor(e/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(t,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>vt.ansi256ToAnsi(vt.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>vt.ansi256ToAnsi(vt.hexToAnsi256(e)),enumerable:!1}}),vt}var $Y=HY(),Bn=$Y;import gE from"node:process";import WY from"node:os";import Bb from"node:tty";function un(r,e=globalThis.Deno?globalThis.Deno.args:gE.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",n=e.indexOf(t+r),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:It}=gE,yp;un("no-color")||un("no-colors")||un("color=false")||un("color=never")?yp=0:(un("color")||un("colors")||un("color=true")||un("color=always"))&&(yp=1);function YY(){if("FORCE_COLOR"in It)return It.FORCE_COLOR==="true"?1:It.FORCE_COLOR==="false"?0:It.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(It.FORCE_COLOR,10),3)}function zY(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function KY(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let n=YY();n!==void 0&&(yp=n);let s=t?yp:n;if(s===0)return 0;if(t){if(un("color=16m")||un("color=full")||un("color=truecolor"))return 3;if(un("color=256"))return 2}if("TF_BUILD"in It&&"AGENT_NAME"in It)return 1;if(r&&!e&&s===void 0)return 0;let i=s||0;if(It.TERM==="dumb")return i;if(gE.platform==="win32"){let o=WY.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in It)return"GITHUB_ACTIONS"in It||"GITEA_ACTIONS"in It?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in It)||It.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in It)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(It.TEAMCITY_VERSION)?1:0;if(It.COLORTERM==="truecolor"||It.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in It){let o=Number.parseInt((It.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(It.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(It.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(It.TERM)||"COLORTERM"in It?1:i}function Ub(r,e={}){let t=KY(r,{streamIsTTY:r&&r.isTTY,...e});return zY(t)}var XY={stdout:Ub({isTTY:Bb.isatty(1)}),stderr:Ub({isTTY:Bb.isatty(2)})},Fb=XY;function Vb(r,e,t){let n=r.indexOf(e);if(n===-1)return r;let s=e.length,i=0,o="";do o+=r.slice(i,n)+e+t,i=n+s,n=r.indexOf(e,i);while(n!==-1);return o+=r.slice(i),o}function Gb(r,e,t,n){let s=0,i="";do{let o=r[n-1]==="\r";i+=r.slice(s,o?n-1:n)+e+(o?`\r
|
|
576
576
|
`:`
|
|
577
577
|
`)+t,s=n+1,n=r.indexOf(`
|
|
578
578
|
`,s)}while(n!==-1);return i+=r.slice(s),i}var{stdout:kb,stderr:jb}=Fb,EE=Symbol("GENERATOR"),ba=Symbol("STYLER"),ku=Symbol("IS_EMPTY"),qb=["ansi","ansi","ansi256","ansi16m"],Pa=Object.create(null),JY=(r,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=kb?kb.level:0;r.level=e.level===void 0?t:e.level};var QY=r=>{let e=(...t)=>t.join(" ");return JY(e,r),Object.setPrototypeOf(e,ju.prototype),e};function ju(r){return QY(r)}Object.setPrototypeOf(ju.prototype,Function.prototype);for(let[r,e]of Object.entries(Bn))Pa[r]={get(){let t=Tp(this,_E(e.open,e.close,this[ba]),this[ku]);return Object.defineProperty(this,r,{value:t}),t}};Pa.visible={get(){let r=Tp(this,this[ba],!0);return Object.defineProperty(this,"visible",{value:r}),r}};var SE=(r,e,t,...n)=>r==="rgb"?e==="ansi16m"?Bn[t].ansi16m(...n):e==="ansi256"?Bn[t].ansi256(Bn.rgbToAnsi256(...n)):Bn[t].ansi(Bn.rgbToAnsi(...n)):r==="hex"?SE("rgb",e,t,...Bn.hexToRgb(...n)):Bn[t][r](...n),ZY=["rgb","hex","ansi256"];for(let r of ZY){Pa[r]={get(){let{level:t}=this;return function(...n){let s=_E(SE(r,qb[t],"color",...n),Bn.color.close,this[ba]);return Tp(this,s,this[ku])}}};let e="bg"+r[0].toUpperCase()+r.slice(1);Pa[e]={get(){let{level:t}=this;return function(...n){let s=_E(SE(r,qb[t],"bgColor",...n),Bn.bgColor.close,this[ba]);return Tp(this,s,this[ku])}}}}var ez=Object.defineProperties(()=>{},{...Pa,level:{enumerable:!0,get(){return this[EE].level},set(r){this[EE].level=r}}}),_E=(r,e,t)=>{let n,s;return t===void 0?(n=r,s=e):(n=t.openAll+r,s=e+t.closeAll),{open:r,close:e,openAll:n,closeAll:s,parent:t}},Tp=(r,e,t)=>{let n=(...s)=>tz(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,ez),n[EE]=r,n[ba]=e,n[ku]=t,n},tz=(r,e)=>{if(r.level<=0||!e)return r[ku]?"":e;let t=r[ba];if(t===void 0)return e;let{openAll:n,closeAll:s}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=Vb(e,t.close,t.open),t=t.parent;let i=e.indexOf(`
|
|
579
579
|
`);return i!==-1&&(e=Gb(e,s,n,i)),n+e+s};Object.defineProperties(ju.prototype,Pa);var rz=ju(),tEe=ju({level:jb?jb.level:0});var yE=rz;var xE=dr(Jb(),1),gr=(...r)=>{let e,t;if(r.length===0)throw new Error("Missing gradient colors");if(Array.isArray(r[0]))e=(0,xE.default)(r[0]),t=bE(r[1]);else{if(r.length===1)throw new Error(`Expected an array of colors, received ${JSON.stringify(r[0])}`);e=(0,xE.default)(...r)}let n=(s,i)=>nz(s?s.toString():"",e,i??t);return n.multiline=(s,i)=>iz(s?s.toString():"",e,i??t),n},Qb=(r,e,t)=>e.interpolation?.toLowerCase()==="hsv"?r.hsv(t,e.hsvSpin?.toLowerCase()||!1):r.rgb(t);function nz(r,e,t){let n=bE(t),s=Math.max(r.replace(/\s/g,"").length,e.stops.length),i=Qb(e,n,s),o="";for(let a of r)o+=a.match(/\s/g)?a:yE.hex(i.shift()?.toHex()||"#000")(a);return o}function iz(r,e,t){let n=bE(t),s=r.split(`
|
|
580
580
|
`),i=Math.max(...s.map(c=>c.length),e.stops.length),o=Qb(e,n,i),a=[];for(let c of s){let u=o.slice(0),l="";for(let f of c)l+=yE.hex(u.shift()?.toHex()||"#000")(f);a.push(l)}return a.join(`
|
|
581
|
-
`)}function bE(r){let e={interpolation:"rgb",hsvSpin:"short",...r};if(r!==void 0&&typeof r!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof r}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be \`rgb\` or \`hsv\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`short\` or \`long\`, got \`${typeof e.hsvSpin}\``);return e}var Wr={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};function Yr(r){let e=t=>gr(...r.colors)(t,r.options);return e.multiline=(t="")=>gr(...r.colors).multiline(t,r.options),e}var Zb=gr,sz=Yr(Wr.atlas),oz=Yr(Wr.cristal),az=Yr(Wr.teen),cz=Yr(Wr.mind),uz=Yr(Wr.morning),lz=Yr(Wr.vice),fz=Yr(Wr.passion),pz=Yr(Wr.fruit),dz=Yr(Wr.instagram),hz=Yr(Wr.retro),mz=Yr(Wr.summer),gz=Yr(Wr.rainbow),Ez=Yr(Wr.pastel);gr.atlas=sz;gr.cristal=oz;gr.teen=az;gr.mind=cz;gr.morning=uz;gr.vice=lz;gr.passion=fz;gr.fruit=pz;gr.instagram=dz;gr.retro=hz;gr.summer=mz;gr.rainbow=gz;gr.pastel=Ez;var T1=dr(zE(),1),Df=dr(WI(),1),O1=dr(KI(),1);var ao=class r extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,r)}};function XI(){return vJ()?0:1}function vJ(){return DJ()&&!process.defaultApp}function DJ(){return!!process.versions.electron}function Bp(r){return r.slice(XI()+1)}function JI(){return process.argv[XI()]}import{format as PJ}from"util";import{normalize as IJ,resolve as wJ}from"path";function co(r){if(r!==r.toLowerCase()&&r!==r.toUpperCase()||(r=r.toLowerCase()),r.indexOf("-")===-1&&r.indexOf("_")===-1)return r;{let t="",n=!1,s=r.match(/^-+/);for(let i=s?s[0].length:0;i<r.length;i++){let o=r.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(t+=o)}return t}}function Up(r,e){let t=r.toLowerCase();e=e||"-";let n="";for(let s=0;s<r.length;s++){let i=t.charAt(s),o=r.charAt(s);i!==o&&s>0?n+=`${e}${t.charAt(s)}`:n+=o}return n}function Fp(r){return r==null?!1:typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^0[^.]/.test(r)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function QI(r){if(Array.isArray(r))return r.map(o=>typeof o!="string"?o+"":o);r=r.trim();let e=0,t=null,n=null,s=null,i=[];for(let o=0;o<r.length;o++){if(t=n,n=r.charAt(o),n===" "&&!s){t!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var pn;(function(r){r.BOOLEAN="boolean",r.STRING="string",r.NUMBER="number",r.ARRAY="array"})(pn||(pn={}));var Di,Vp=class{constructor(e){Di=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),s=QI(e),i=typeof e=="string",o=xJ(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],l=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),g=n.__||Di.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(P){let R=typeof P=="object"?P.key:P,H=Object.keys(P).map(function(G){return{boolean:"bools",string:"strings",number:"numbers"}[G]}).filter(Boolean).pop();H&&(h[H][R]=!0),h.arrays[R]=!0,h.keys.push(R)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(P){h.bools[P]=!0,h.keys.push(P)}),[].concat(n.string||[]).filter(Boolean).forEach(function(P){h.strings[P]=!0,h.keys.push(P)}),[].concat(n.number||[]).filter(Boolean).forEach(function(P){h.numbers[P]=!0,h.keys.push(P)}),[].concat(n.count||[]).filter(Boolean).forEach(function(P){h.counts[P]=!0,h.keys.push(P)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(P){h.normalize[P]=!0,h.keys.push(P)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([P,R])=>{typeof R=="number"&&(h.nargs[P]=R,h.keys.push(P))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([P,R])=>{typeof R=="function"&&(h.coercions[P]=R,h.keys.push(P))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(P){h.configs[P]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([P,R])=>{(typeof R=="boolean"||typeof R=="function")&&(h.configs[P]=R)})),de(n.key,o,n.default,h.arrays),Object.keys(c).forEach(function(P){(h.aliases[P]||[]).forEach(function(R){c[R]=c[P]})});let S=null;Se();let T=[],y=Object.assign(Object.create(null),{_:[]}),b={};for(let P=0;P<s.length;P++){let R=s[P],H=R.replace(/^-{3,}/,"---"),G,w,Z,J,se,ze;if(R!=="--"&&/^-/.test(R)&&N(R))C(R);else if(H.match(/^---+(=|$)/)){C(R);continue}else if(R.match(/^--.+=/)||!a["short-option-groups"]&&R.match(/^-.+=/))J=R.match(/^--?([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&(q(J[1],h.arrays)?P=A(P,J[1],s,J[2]):q(J[1],h.nargs)!==!1?P=D(P,J[1],s,J[2]):v(J[1],J[2],!0));else if(R.match(_)&&a["boolean-negation"])J=R.match(_),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],v(w,q(w,h.arrays)?[!1]:!1));else if(R.match(/^--.+/)||!a["short-option-groups"]&&R.match(/^-[^-]+/))J=R.match(/^--?(.+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],q(w,h.arrays)?P=A(P,w,s):q(w,h.nargs)!==!1?P=D(P,w,s):(se=s[P+1],se!==void 0&&(!se.match(/^-/)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(v(w,se),P++):v(w,oe(w))));else if(R.match(/^-.\..+=/))J=R.match(/^-([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&v(J[1],J[2]);else if(R.match(/^-.\..+/)&&!R.match(E))se=s[P+1],J=R.match(/^-(.\..+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],se!==void 0&&!se.match(/^-/)&&!q(w,h.bools)&&!q(w,h.counts)?(v(w,se),P++):v(w,oe(w)));else if(R.match(/^-[^-]+/)&&!R.match(E)){Z=R.slice(1,-1).split(""),G=!1;for(let rt=0;rt<Z.length;rt++){if(se=R.slice(rt+2),Z[rt+1]&&Z[rt+1]==="="){ze=R.slice(rt+3),w=Z[rt],q(w,h.arrays)?P=A(P,w,s,ze):q(w,h.nargs)!==!1?P=D(P,w,s,ze):v(w,ze),G=!0;break}if(se==="-"){v(Z[rt],se);continue}if(/[A-Za-z]/.test(Z[rt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(se)&&q(se,h.bools)===!1){v(Z[rt],se),G=!0;break}if(Z[rt+1]&&Z[rt+1].match(/\W/)){v(Z[rt],se),G=!0;break}else v(Z[rt],oe(Z[rt]))}w=R.slice(-1)[0],!G&&w!=="-"&&(q(w,h.arrays)?P=A(P,w,s):q(w,h.nargs)!==!1?P=D(P,w,s):(se=s[P+1],se!==void 0&&(!/^(-|--)[^-]/.test(se)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(v(w,se),P++):v(w,oe(w))))}else if(R.match(/^-[0-9]$/)&&R.match(E)&&q(R.slice(1),h.bools))w=R.slice(1),v(w,oe(w));else if(R==="--"){T=s.slice(P+1);break}else if(a["halt-at-non-option"]){T=s.slice(P);break}else C(R)}ee(y,!0),ee(y,!1),$(y),K(),Ee(y,h.aliases,c,!0),ne(y),a["set-placeholder-key"]&&ie(y),Object.keys(h.counts).forEach(function(P){X(y,P.split("."))||v(P,0)}),f&&T.length&&(y[p]=[]),T.forEach(function(P){y[p].push(P)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(y).filter(P=>P!=="--"&&P.includes("-")).forEach(P=>{delete y[P]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(P=>o[P])).forEach(P=>{a["camel-case-expansion"]&&P.includes("-")&&delete y[P.split(".").map(R=>co(R)).join(".")],delete y[P]});function C(P){let R=V("_",P);(typeof R=="string"||typeof R=="number")&&y._.push(R)}function D(P,R,H,G){let w,Z=q(R,h.nargs);if(Z=typeof Z!="number"||isNaN(Z)?1:Z,Z===0)return Ce(G)||(S=Error(g("Argument unexpected for: %s",R))),v(R,oe(R)),P;let J=Ce(G)?0:1;if(a["nargs-eats-options"])H.length-(P+1)+J<Z&&(S=Error(g("Not enough arguments following: %s",R))),J=Z;else{for(w=P+1;w<H.length&&(!H[w].match(/^-[^0-9]/)||H[w].match(E)||N(H[w]));w++)J++;J<Z&&(S=Error(g("Not enough arguments following: %s",R)))}let se=Math.min(J,Z);for(!Ce(G)&&se>0&&(v(R,G),se--),w=P+1;w<se+P+1;w++)v(R,H[w]);return P+se}function A(P,R,H,G){let w=[],Z=G||H[P+1],J=q(R,h.nargs);if(q(R,h.bools)&&!/^(true|false)$/.test(Z))w.push(!0);else if(Ce(Z)||Ce(G)&&/^-/.test(Z)&&!E.test(Z)&&!N(Z)){if(c[R]!==void 0){let se=c[R];w=Array.isArray(se)?se:[se]}}else{Ce(G)||w.push(F(R,G,!0));for(let se=P+1;se<H.length&&!(!a["greedy-arrays"]&&w.length>0||J&&typeof J=="number"&&w.length>=J||(Z=H[se],/^-/.test(Z)&&!E.test(Z)&&!N(Z)));se++)P=se,w.push(F(R,Z,i))}return typeof J=="number"&&(J&&w.length<J||isNaN(J)&&w.length===0)&&(S=Error(g("Not enough arguments following: %s",R))),v(R,w),P}function v(P,R,H=i){if(/-/.test(P)&&a["camel-case-expansion"]){let Z=P.split(".").map(function(J){return co(J)}).join(".");I(P,Z)}let G=F(P,R,H),w=P.split(".");le(y,w,G),h.aliases[P]&&h.aliases[P].forEach(function(Z){let J=Z.split(".");le(y,J,G)}),w.length>1&&a["dot-notation"]&&(h.aliases[w[0]]||[]).forEach(function(Z){let J=Z.split("."),se=[].concat(w);se.shift(),J=J.concat(se),(h.aliases[P]||[]).includes(J.join("."))||le(y,J,G)}),q(P,h.normalize)&&!q(P,h.arrays)&&[P].concat(h.aliases[P]||[]).forEach(function(J){Object.defineProperty(b,J,{enumerable:!0,get(){return R},set(se){R=typeof se=="string"?Di.normalize(se):se}})})}function I(P,R){h.aliases[P]&&h.aliases[P].length||(h.aliases[P]=[R],d[R]=!0),h.aliases[R]&&h.aliases[R].length||I(R,P)}function F(P,R,H){H&&(R=bJ(R)),(q(P,h.bools)||q(P,h.counts))&&typeof R=="string"&&(R=R==="true");let G=Array.isArray(R)?R.map(function(w){return V(P,w)}):V(P,R);return q(P,h.counts)&&(Ce(G)||typeof G=="boolean")&&(G=JE()),q(P,h.normalize)&&q(P,h.arrays)&&(Array.isArray(R)?G=R.map(w=>Di.normalize(w)):G=Di.normalize(R)),G}function V(P,R){return!a["parse-positional-numbers"]&&P==="_"||!q(P,h.strings)&&!q(P,h.bools)&&!Array.isArray(R)&&(Fp(R)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${R}`)))||!Ce(R)&&q(P,h.numbers))&&(R=Number(R)),R}function $(P){let R=Object.create(null);Ee(R,h.aliases,c),Object.keys(h.configs).forEach(function(H){let G=P[H]||R[H];if(G)try{let w=null,Z=Di.resolve(Di.cwd(),G),J=h.configs[H];if(typeof J=="function"){try{w=J(Z)}catch(se){w=se}if(w instanceof Error){S=w;return}}else w=Di.require(Z);k(w)}catch(w){w.name==="PermissionDenied"?S=w:P[H]&&(S=Error(g("Invalid JSON config file: %s",G)))}})}function k(P,R){Object.keys(P).forEach(function(H){let G=P[H],w=R?R+"."+H:H;typeof G=="object"&&G!==null&&!Array.isArray(G)&&a["dot-notation"]?k(G,w):(!X(y,w.split("."))||q(w,h.arrays)&&a["combine-arrays"])&&v(w,G)})}function K(){typeof u<"u"&&u.forEach(function(P){k(P)})}function ee(P,R){if(typeof l>"u")return;let H=typeof l=="string"?l:"",G=Di.env();Object.keys(G).forEach(function(w){if(H===""||w.lastIndexOf(H,0)===0){let Z=w.split("__").map(function(J,se){return se===0&&(J=J.substring(H.length)),co(J)});(R&&h.configs[Z.join(".")]||!R)&&!X(P,Z)&&v(Z.join("."),G[w])}})}function ne(P){let R,H=new Set;Object.keys(P).forEach(function(G){if(!H.has(G)&&(R=q(G,h.coercions),typeof R=="function"))try{let w=V(G,R(P[G]));[].concat(h.aliases[G]||[],G).forEach(Z=>{H.add(Z),P[Z]=w})}catch(w){S=w}})}function ie(P){return h.keys.forEach(R=>{~R.indexOf(".")||typeof P[R]>"u"&&(P[R]=void 0)}),P}function Ee(P,R,H,G=!1){Object.keys(H).forEach(function(w){X(P,w.split("."))||(le(P,w.split("."),H[w]),G&&(m[w]=!0),(R[w]||[]).forEach(function(Z){X(P,Z.split("."))||le(P,Z.split("."),H[w])}))})}function X(P,R){let H=P;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(w){H=H[w]||{}});let G=R[R.length-1];return typeof H!="object"?!1:G in H}function le(P,R,H){let G=P;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(ze){ze=ZI(ze),typeof G=="object"&&G[ze]===void 0&&(G[ze]={}),typeof G[ze]!="object"||Array.isArray(G[ze])?(Array.isArray(G[ze])?G[ze].push({}):G[ze]=[G[ze],{}],G=G[ze][G[ze].length-1]):G=G[ze]});let w=ZI(R[R.length-1]),Z=q(R.join("."),h.arrays),J=Array.isArray(H),se=a["duplicate-arguments-array"];!se&&q(w,h.nargs)&&(se=!0,(!Ce(G[w])&&h.nargs[w]===1||Array.isArray(G[w])&&G[w].length===h.nargs[w])&&(G[w]=void 0)),H===JE()?G[w]=JE(G[w]):Array.isArray(G[w])?se&&Z&&J?G[w]=a["flatten-duplicate-arrays"]?G[w].concat(H):(Array.isArray(G[w][0])?G[w]:[G[w]]).concat([H]):!se&&!!Z==!!J?G[w]=H:G[w]=G[w].concat([H]):G[w]===void 0&&Z?G[w]=J?H:[H]:se&&!(G[w]===void 0||q(w,h.counts)||q(w,h.bools))?G[w]=[G[w],H]:G[w]=H}function de(...P){P.forEach(function(R){Object.keys(R||{}).forEach(function(H){h.aliases[H]||(h.aliases[H]=[].concat(o[H]||[]),h.aliases[H].concat(H).forEach(function(G){if(/-/.test(G)&&a["camel-case-expansion"]){let w=co(G);w!==H&&h.aliases[H].indexOf(w)===-1&&(h.aliases[H].push(w),d[w]=!0)}}),h.aliases[H].concat(H).forEach(function(G){if(G.length>1&&/[A-Z]/.test(G)&&a["camel-case-expansion"]){let w=Up(G,"-");w!==H&&h.aliases[H].indexOf(w)===-1&&(h.aliases[H].push(w),d[w]=!0)}}),h.aliases[H].forEach(function(G){h.aliases[G]=[H].concat(h.aliases[H].filter(function(w){return G!==w}))}))})})}function q(P,R){let H=[].concat(h.aliases[P]||[],P),G=Object.keys(R),w=H.find(Z=>G.includes(Z));return w?R[w]:!1}function Ve(P){let R=Object.keys(h);return[].concat(R.map(G=>h[G])).some(function(G){return Array.isArray(G)?G.includes(P):G[P]})}function U(P,...R){return[].concat(...R).some(function(G){let w=P.match(G);return w&&Ve(w[1])})}function L(P){if(P.match(E)||!P.match(/^-[^-]+/))return!1;let R=!0,H,G=P.slice(1).split("");for(let w=0;w<G.length;w++){if(H=P.slice(w+2),!Ve(G[w])){R=!1;break}if(G[w+1]&&G[w+1]==="="||H==="-"||/[A-Za-z]/.test(G[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(H)||G[w+1]&&G[w+1].match(/\W/))break}return R}function N(P){return a["unknown-options-as-args"]&&z(P)}function z(P){return P=P.replace(/^-{3,}/,"--"),P.match(E)||L(P)?!1:!U(P,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(P){return!q(P,h.bools)&&!q(P,h.counts)&&`${P}`in c?c[P]:fe(Ie(P))}function fe(P){return{[pn.BOOLEAN]:!0,[pn.STRING]:"",[pn.NUMBER]:void 0,[pn.ARRAY]:[]}[P]}function Ie(P){let R=pn.BOOLEAN;return q(P,h.strings)?R=pn.STRING:q(P,h.numbers)?R=pn.NUMBER:q(P,h.bools)?R=pn.BOOLEAN:q(P,h.arrays)&&(R=pn.ARRAY),R}function Ce(P){return P===void 0}function Se(){Object.keys(h.counts).find(P=>q(P,h.arrays)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",P)),!0):q(P,h.nargs)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",P)),!0):!1)}return{aliases:Object.assign({},h.aliases),argv:Object.assign(b,y),configuration:a,defaulted:Object.assign({},m),error:S,newAliases:Object.assign({},d)}}};function xJ(r){let e=[],t=Object.create(null),n=!0;for(Object.keys(r).forEach(function(s){e.push([].concat(r[s],s))});n;){n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,c){return c.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(t[i]=s)}),t}function JE(r){return r!==void 0?r+1:1}function ZI(r){return r==="__proto__"?"___proto___":r}function bJ(r){return typeof r=="string"&&(r[0]==="'"||r[0]==='"')&&r[r.length-1]===r[0]?r.substring(1,r.length-1):r}import{readFileSync as RJ}from"fs";var QE,ZE,eS,ew=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,tw=(ZE=(QE=process==null?void 0:process.versions)===null||QE===void 0?void 0:QE.node)!==null&&ZE!==void 0?ZE:(eS=process==null?void 0:process.version)===null||eS===void 0?void 0:eS.slice(1);if(tw&&Number(tw.match(/^([^.]+)/)[1])<ew)throw Error(`yargs parser supports a minimum Node.js version of ${ew}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var LJ=process?process.env:{},rw=new Vp({cwd:process.cwd,env:()=>LJ,format:PJ,normalize:IJ,resolve:wJ,require:r=>{if(typeof W<"u")return W(r);if(r.match(/\.json$/))return JSON.parse(RJ(r,"utf8"));throw Error("only .json config files are supported in ESM")}}),Qu=function(e,t){return rw.parse(e.slice(),t).argv};Qu.detailed=function(r,e){return rw.parse(r.slice(),e)};Qu.camelCase=co;Qu.decamelize=Up;Qu.looksLikeNumber=Fp;var Zu=Qu;import{notStrictEqual as KJ,strictEqual as XJ}from"assert";var MJ={right:VJ,center:GJ},NJ=0,Gp=1,BJ=2,kp=3,tS=class{constructor(e){var t;this.width=e.width,this.wrap=(t=e.wrap)!==null&&t!==void 0?t:!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let t=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
581
|
+
`)}function bE(r){let e={interpolation:"rgb",hsvSpin:"short",...r};if(r!==void 0&&typeof r!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof r}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be \`rgb\` or \`hsv\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`short\` or \`long\`, got \`${typeof e.hsvSpin}\``);return e}var Wr={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};function Yr(r){let e=t=>gr(...r.colors)(t,r.options);return e.multiline=(t="")=>gr(...r.colors).multiline(t,r.options),e}var Zb=gr,sz=Yr(Wr.atlas),oz=Yr(Wr.cristal),az=Yr(Wr.teen),cz=Yr(Wr.mind),uz=Yr(Wr.morning),lz=Yr(Wr.vice),fz=Yr(Wr.passion),pz=Yr(Wr.fruit),dz=Yr(Wr.instagram),hz=Yr(Wr.retro),mz=Yr(Wr.summer),gz=Yr(Wr.rainbow),Ez=Yr(Wr.pastel);gr.atlas=sz;gr.cristal=oz;gr.teen=az;gr.mind=cz;gr.morning=uz;gr.vice=lz;gr.passion=fz;gr.fruit=pz;gr.instagram=dz;gr.retro=hz;gr.summer=mz;gr.rainbow=gz;gr.pastel=Ez;var TO=dr(zE(),1),Df=dr(WI(),1),OO=dr(KI(),1);var ao=class r extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,r)}};function XI(){return vJ()?0:1}function vJ(){return DJ()&&!process.defaultApp}function DJ(){return!!process.versions.electron}function Bp(r){return r.slice(XI()+1)}function JI(){return process.argv[XI()]}import{format as PJ}from"util";import{normalize as IJ,resolve as wJ}from"path";function co(r){if(r!==r.toLowerCase()&&r!==r.toUpperCase()||(r=r.toLowerCase()),r.indexOf("-")===-1&&r.indexOf("_")===-1)return r;{let t="",n=!1,s=r.match(/^-+/);for(let i=s?s[0].length:0;i<r.length;i++){let o=r.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(t+=o)}return t}}function Up(r,e){let t=r.toLowerCase();e=e||"-";let n="";for(let s=0;s<r.length;s++){let i=t.charAt(s),o=r.charAt(s);i!==o&&s>0?n+=`${e}${t.charAt(s)}`:n+=o}return n}function Fp(r){return r==null?!1:typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^0[^.]/.test(r)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function QI(r){if(Array.isArray(r))return r.map(o=>typeof o!="string"?o+"":o);r=r.trim();let e=0,t=null,n=null,s=null,i=[];for(let o=0;o<r.length;o++){if(t=n,n=r.charAt(o),n===" "&&!s){t!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var pn;(function(r){r.BOOLEAN="boolean",r.STRING="string",r.NUMBER="number",r.ARRAY="array"})(pn||(pn={}));var Di,Vp=class{constructor(e){Di=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),s=QI(e),i=typeof e=="string",o=xJ(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],l=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),g=n.__||Di.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(P){let R=typeof P=="object"?P.key:P,H=Object.keys(P).map(function(G){return{boolean:"bools",string:"strings",number:"numbers"}[G]}).filter(Boolean).pop();H&&(h[H][R]=!0),h.arrays[R]=!0,h.keys.push(R)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(P){h.bools[P]=!0,h.keys.push(P)}),[].concat(n.string||[]).filter(Boolean).forEach(function(P){h.strings[P]=!0,h.keys.push(P)}),[].concat(n.number||[]).filter(Boolean).forEach(function(P){h.numbers[P]=!0,h.keys.push(P)}),[].concat(n.count||[]).filter(Boolean).forEach(function(P){h.counts[P]=!0,h.keys.push(P)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(P){h.normalize[P]=!0,h.keys.push(P)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([P,R])=>{typeof R=="number"&&(h.nargs[P]=R,h.keys.push(P))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([P,R])=>{typeof R=="function"&&(h.coercions[P]=R,h.keys.push(P))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(P){h.configs[P]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([P,R])=>{(typeof R=="boolean"||typeof R=="function")&&(h.configs[P]=R)})),de(n.key,o,n.default,h.arrays),Object.keys(c).forEach(function(P){(h.aliases[P]||[]).forEach(function(R){c[R]=c[P]})});let S=null;Se();let T=[],y=Object.assign(Object.create(null),{_:[]}),b={};for(let P=0;P<s.length;P++){let R=s[P],H=R.replace(/^-{3,}/,"---"),G,w,Z,J,se,ze;if(R!=="--"&&/^-/.test(R)&&N(R))C(R);else if(H.match(/^---+(=|$)/)){C(R);continue}else if(R.match(/^--.+=/)||!a["short-option-groups"]&&R.match(/^-.+=/))J=R.match(/^--?([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&(q(J[1],h.arrays)?P=A(P,J[1],s,J[2]):q(J[1],h.nargs)!==!1?P=D(P,J[1],s,J[2]):v(J[1],J[2],!0));else if(R.match(_)&&a["boolean-negation"])J=R.match(_),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],v(w,q(w,h.arrays)?[!1]:!1));else if(R.match(/^--.+/)||!a["short-option-groups"]&&R.match(/^-[^-]+/))J=R.match(/^--?(.+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],q(w,h.arrays)?P=A(P,w,s):q(w,h.nargs)!==!1?P=D(P,w,s):(se=s[P+1],se!==void 0&&(!se.match(/^-/)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(v(w,se),P++):v(w,oe(w))));else if(R.match(/^-.\..+=/))J=R.match(/^-([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&v(J[1],J[2]);else if(R.match(/^-.\..+/)&&!R.match(E))se=s[P+1],J=R.match(/^-(.\..+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],se!==void 0&&!se.match(/^-/)&&!q(w,h.bools)&&!q(w,h.counts)?(v(w,se),P++):v(w,oe(w)));else if(R.match(/^-[^-]+/)&&!R.match(E)){Z=R.slice(1,-1).split(""),G=!1;for(let rt=0;rt<Z.length;rt++){if(se=R.slice(rt+2),Z[rt+1]&&Z[rt+1]==="="){ze=R.slice(rt+3),w=Z[rt],q(w,h.arrays)?P=A(P,w,s,ze):q(w,h.nargs)!==!1?P=D(P,w,s,ze):v(w,ze),G=!0;break}if(se==="-"){v(Z[rt],se);continue}if(/[A-Za-z]/.test(Z[rt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(se)&&q(se,h.bools)===!1){v(Z[rt],se),G=!0;break}if(Z[rt+1]&&Z[rt+1].match(/\W/)){v(Z[rt],se),G=!0;break}else v(Z[rt],oe(Z[rt]))}w=R.slice(-1)[0],!G&&w!=="-"&&(q(w,h.arrays)?P=A(P,w,s):q(w,h.nargs)!==!1?P=D(P,w,s):(se=s[P+1],se!==void 0&&(!/^(-|--)[^-]/.test(se)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(v(w,se),P++):v(w,oe(w))))}else if(R.match(/^-[0-9]$/)&&R.match(E)&&q(R.slice(1),h.bools))w=R.slice(1),v(w,oe(w));else if(R==="--"){T=s.slice(P+1);break}else if(a["halt-at-non-option"]){T=s.slice(P);break}else C(R)}ee(y,!0),ee(y,!1),$(y),K(),Ee(y,h.aliases,c,!0),ne(y),a["set-placeholder-key"]&&ie(y),Object.keys(h.counts).forEach(function(P){X(y,P.split("."))||v(P,0)}),f&&T.length&&(y[p]=[]),T.forEach(function(P){y[p].push(P)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(y).filter(P=>P!=="--"&&P.includes("-")).forEach(P=>{delete y[P]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(P=>o[P])).forEach(P=>{a["camel-case-expansion"]&&P.includes("-")&&delete y[P.split(".").map(R=>co(R)).join(".")],delete y[P]});function C(P){let R=V("_",P);(typeof R=="string"||typeof R=="number")&&y._.push(R)}function D(P,R,H,G){let w,Z=q(R,h.nargs);if(Z=typeof Z!="number"||isNaN(Z)?1:Z,Z===0)return Ce(G)||(S=Error(g("Argument unexpected for: %s",R))),v(R,oe(R)),P;let J=Ce(G)?0:1;if(a["nargs-eats-options"])H.length-(P+1)+J<Z&&(S=Error(g("Not enough arguments following: %s",R))),J=Z;else{for(w=P+1;w<H.length&&(!H[w].match(/^-[^0-9]/)||H[w].match(E)||N(H[w]));w++)J++;J<Z&&(S=Error(g("Not enough arguments following: %s",R)))}let se=Math.min(J,Z);for(!Ce(G)&&se>0&&(v(R,G),se--),w=P+1;w<se+P+1;w++)v(R,H[w]);return P+se}function A(P,R,H,G){let w=[],Z=G||H[P+1],J=q(R,h.nargs);if(q(R,h.bools)&&!/^(true|false)$/.test(Z))w.push(!0);else if(Ce(Z)||Ce(G)&&/^-/.test(Z)&&!E.test(Z)&&!N(Z)){if(c[R]!==void 0){let se=c[R];w=Array.isArray(se)?se:[se]}}else{Ce(G)||w.push(F(R,G,!0));for(let se=P+1;se<H.length&&!(!a["greedy-arrays"]&&w.length>0||J&&typeof J=="number"&&w.length>=J||(Z=H[se],/^-/.test(Z)&&!E.test(Z)&&!N(Z)));se++)P=se,w.push(F(R,Z,i))}return typeof J=="number"&&(J&&w.length<J||isNaN(J)&&w.length===0)&&(S=Error(g("Not enough arguments following: %s",R))),v(R,w),P}function v(P,R,H=i){if(/-/.test(P)&&a["camel-case-expansion"]){let Z=P.split(".").map(function(J){return co(J)}).join(".");I(P,Z)}let G=F(P,R,H),w=P.split(".");le(y,w,G),h.aliases[P]&&h.aliases[P].forEach(function(Z){let J=Z.split(".");le(y,J,G)}),w.length>1&&a["dot-notation"]&&(h.aliases[w[0]]||[]).forEach(function(Z){let J=Z.split("."),se=[].concat(w);se.shift(),J=J.concat(se),(h.aliases[P]||[]).includes(J.join("."))||le(y,J,G)}),q(P,h.normalize)&&!q(P,h.arrays)&&[P].concat(h.aliases[P]||[]).forEach(function(J){Object.defineProperty(b,J,{enumerable:!0,get(){return R},set(se){R=typeof se=="string"?Di.normalize(se):se}})})}function I(P,R){h.aliases[P]&&h.aliases[P].length||(h.aliases[P]=[R],d[R]=!0),h.aliases[R]&&h.aliases[R].length||I(R,P)}function F(P,R,H){H&&(R=bJ(R)),(q(P,h.bools)||q(P,h.counts))&&typeof R=="string"&&(R=R==="true");let G=Array.isArray(R)?R.map(function(w){return V(P,w)}):V(P,R);return q(P,h.counts)&&(Ce(G)||typeof G=="boolean")&&(G=JE()),q(P,h.normalize)&&q(P,h.arrays)&&(Array.isArray(R)?G=R.map(w=>Di.normalize(w)):G=Di.normalize(R)),G}function V(P,R){return!a["parse-positional-numbers"]&&P==="_"||!q(P,h.strings)&&!q(P,h.bools)&&!Array.isArray(R)&&(Fp(R)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${R}`)))||!Ce(R)&&q(P,h.numbers))&&(R=Number(R)),R}function $(P){let R=Object.create(null);Ee(R,h.aliases,c),Object.keys(h.configs).forEach(function(H){let G=P[H]||R[H];if(G)try{let w=null,Z=Di.resolve(Di.cwd(),G),J=h.configs[H];if(typeof J=="function"){try{w=J(Z)}catch(se){w=se}if(w instanceof Error){S=w;return}}else w=Di.require(Z);k(w)}catch(w){w.name==="PermissionDenied"?S=w:P[H]&&(S=Error(g("Invalid JSON config file: %s",G)))}})}function k(P,R){Object.keys(P).forEach(function(H){let G=P[H],w=R?R+"."+H:H;typeof G=="object"&&G!==null&&!Array.isArray(G)&&a["dot-notation"]?k(G,w):(!X(y,w.split("."))||q(w,h.arrays)&&a["combine-arrays"])&&v(w,G)})}function K(){typeof u<"u"&&u.forEach(function(P){k(P)})}function ee(P,R){if(typeof l>"u")return;let H=typeof l=="string"?l:"",G=Di.env();Object.keys(G).forEach(function(w){if(H===""||w.lastIndexOf(H,0)===0){let Z=w.split("__").map(function(J,se){return se===0&&(J=J.substring(H.length)),co(J)});(R&&h.configs[Z.join(".")]||!R)&&!X(P,Z)&&v(Z.join("."),G[w])}})}function ne(P){let R,H=new Set;Object.keys(P).forEach(function(G){if(!H.has(G)&&(R=q(G,h.coercions),typeof R=="function"))try{let w=V(G,R(P[G]));[].concat(h.aliases[G]||[],G).forEach(Z=>{H.add(Z),P[Z]=w})}catch(w){S=w}})}function ie(P){return h.keys.forEach(R=>{~R.indexOf(".")||typeof P[R]>"u"&&(P[R]=void 0)}),P}function Ee(P,R,H,G=!1){Object.keys(H).forEach(function(w){X(P,w.split("."))||(le(P,w.split("."),H[w]),G&&(m[w]=!0),(R[w]||[]).forEach(function(Z){X(P,Z.split("."))||le(P,Z.split("."),H[w])}))})}function X(P,R){let H=P;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(w){H=H[w]||{}});let G=R[R.length-1];return typeof H!="object"?!1:G in H}function le(P,R,H){let G=P;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(ze){ze=ZI(ze),typeof G=="object"&&G[ze]===void 0&&(G[ze]={}),typeof G[ze]!="object"||Array.isArray(G[ze])?(Array.isArray(G[ze])?G[ze].push({}):G[ze]=[G[ze],{}],G=G[ze][G[ze].length-1]):G=G[ze]});let w=ZI(R[R.length-1]),Z=q(R.join("."),h.arrays),J=Array.isArray(H),se=a["duplicate-arguments-array"];!se&&q(w,h.nargs)&&(se=!0,(!Ce(G[w])&&h.nargs[w]===1||Array.isArray(G[w])&&G[w].length===h.nargs[w])&&(G[w]=void 0)),H===JE()?G[w]=JE(G[w]):Array.isArray(G[w])?se&&Z&&J?G[w]=a["flatten-duplicate-arrays"]?G[w].concat(H):(Array.isArray(G[w][0])?G[w]:[G[w]]).concat([H]):!se&&!!Z==!!J?G[w]=H:G[w]=G[w].concat([H]):G[w]===void 0&&Z?G[w]=J?H:[H]:se&&!(G[w]===void 0||q(w,h.counts)||q(w,h.bools))?G[w]=[G[w],H]:G[w]=H}function de(...P){P.forEach(function(R){Object.keys(R||{}).forEach(function(H){h.aliases[H]||(h.aliases[H]=[].concat(o[H]||[]),h.aliases[H].concat(H).forEach(function(G){if(/-/.test(G)&&a["camel-case-expansion"]){let w=co(G);w!==H&&h.aliases[H].indexOf(w)===-1&&(h.aliases[H].push(w),d[w]=!0)}}),h.aliases[H].concat(H).forEach(function(G){if(G.length>1&&/[A-Z]/.test(G)&&a["camel-case-expansion"]){let w=Up(G,"-");w!==H&&h.aliases[H].indexOf(w)===-1&&(h.aliases[H].push(w),d[w]=!0)}}),h.aliases[H].forEach(function(G){h.aliases[G]=[H].concat(h.aliases[H].filter(function(w){return G!==w}))}))})})}function q(P,R){let H=[].concat(h.aliases[P]||[],P),G=Object.keys(R),w=H.find(Z=>G.includes(Z));return w?R[w]:!1}function Ve(P){let R=Object.keys(h);return[].concat(R.map(G=>h[G])).some(function(G){return Array.isArray(G)?G.includes(P):G[P]})}function U(P,...R){return[].concat(...R).some(function(G){let w=P.match(G);return w&&Ve(w[1])})}function L(P){if(P.match(E)||!P.match(/^-[^-]+/))return!1;let R=!0,H,G=P.slice(1).split("");for(let w=0;w<G.length;w++){if(H=P.slice(w+2),!Ve(G[w])){R=!1;break}if(G[w+1]&&G[w+1]==="="||H==="-"||/[A-Za-z]/.test(G[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(H)||G[w+1]&&G[w+1].match(/\W/))break}return R}function N(P){return a["unknown-options-as-args"]&&z(P)}function z(P){return P=P.replace(/^-{3,}/,"--"),P.match(E)||L(P)?!1:!U(P,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(P){return!q(P,h.bools)&&!q(P,h.counts)&&`${P}`in c?c[P]:fe(Ie(P))}function fe(P){return{[pn.BOOLEAN]:!0,[pn.STRING]:"",[pn.NUMBER]:void 0,[pn.ARRAY]:[]}[P]}function Ie(P){let R=pn.BOOLEAN;return q(P,h.strings)?R=pn.STRING:q(P,h.numbers)?R=pn.NUMBER:q(P,h.bools)?R=pn.BOOLEAN:q(P,h.arrays)&&(R=pn.ARRAY),R}function Ce(P){return P===void 0}function Se(){Object.keys(h.counts).find(P=>q(P,h.arrays)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",P)),!0):q(P,h.nargs)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",P)),!0):!1)}return{aliases:Object.assign({},h.aliases),argv:Object.assign(b,y),configuration:a,defaulted:Object.assign({},m),error:S,newAliases:Object.assign({},d)}}};function xJ(r){let e=[],t=Object.create(null),n=!0;for(Object.keys(r).forEach(function(s){e.push([].concat(r[s],s))});n;){n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,c){return c.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(t[i]=s)}),t}function JE(r){return r!==void 0?r+1:1}function ZI(r){return r==="__proto__"?"___proto___":r}function bJ(r){return typeof r=="string"&&(r[0]==="'"||r[0]==='"')&&r[r.length-1]===r[0]?r.substring(1,r.length-1):r}import{readFileSync as RJ}from"fs";var QE,ZE,eS,ew=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,tw=(ZE=(QE=process==null?void 0:process.versions)===null||QE===void 0?void 0:QE.node)!==null&&ZE!==void 0?ZE:(eS=process==null?void 0:process.version)===null||eS===void 0?void 0:eS.slice(1);if(tw&&Number(tw.match(/^([^.]+)/)[1])<ew)throw Error(`yargs parser supports a minimum Node.js version of ${ew}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var LJ=process?process.env:{},rw=new Vp({cwd:process.cwd,env:()=>LJ,format:PJ,normalize:IJ,resolve:wJ,require:r=>{if(typeof W<"u")return W(r);if(r.match(/\.json$/))return JSON.parse(RJ(r,"utf8"));throw Error("only .json config files are supported in ESM")}}),Qu=function(e,t){return rw.parse(e.slice(),t).argv};Qu.detailed=function(r,e){return rw.parse(r.slice(),e)};Qu.camelCase=co;Qu.decamelize=Up;Qu.looksLikeNumber=Fp;var Zu=Qu;import{notStrictEqual as KJ,strictEqual as XJ}from"assert";var MJ={right:VJ,center:GJ},NJ=0,Gp=1,BJ=2,kp=3,tS=class{constructor(e){var t;this.width=e.width,this.wrap=(t=e.wrap)!==null&&t!==void 0?t:!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let t=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
582
582
|
`).map(s=>s.split(" ")),n=0;return t.forEach(s=>{s.length>1&&zr.stringWidth(s[0])>n&&(n=Math.min(Math.floor(this.width*.5),zr.stringWidth(s[0])))}),t.forEach(s=>{this.div(...s.map((i,o)=>({text:i.trim(),padding:this.measurePadding(i),width:o===0&&s.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=zr.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(t=>!t.hidden).map(t=>t.text).join(`
|
|
583
583
|
`)}rowToString(e,t){return this.rasterize(e).forEach((n,s)=>{let i="";n.forEach((o,a)=>{let{width:c}=e[a],u=this.negatePadding(e[a]),l=o;if(u>zr.stringWidth(o)&&(l+=" ".repeat(u-zr.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){let p=MJ[e[a].align];l=p(l,u),zr.stringWidth(l)<u&&(l+=" ".repeat((c||0)-zr.stringWidth(l)-1))}let f=e[a].padding||[0,0,0,0];f[kp]&&(i+=" ".repeat(f[kp])),i+=nw(e[a],l,"| "),i+=l,i+=nw(e[a],l," |"),f[Gp]&&(i+=" ".repeat(f[Gp])),s===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,""),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),s=n?n[0].length:0,i=t.text,o=zr.stringWidth(i.trimRight());return t.span?this.wrap?s<o?e:(t.hidden=!0,i.trimRight()+" ".repeat(s-o)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),s;return e.forEach((i,o)=>{i.width=n[o],this.wrap?s=zr.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
|
|
584
584
|
`):s=i.text.split(`
|
|
585
585
|
`),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[NJ]||0).fill("")),s.push(...new Array(i.padding[BJ]||0).fill(""))),s.forEach((a,c)=>{t[c]||t.push([]);let u=t[c];for(let l=0;l<o;l++)u[l]===void 0&&u.push("");u.push(a)})}),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[kp]||0)+(e.padding[Gp]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(o=>o.width||zr.stringWidth(o.text));let t=e.length,n=this.width,s=e.map(o=>{if(o.width)return t--,n-=o.width,o.width}),i=t?Math.floor(n/t):0;return s.map((o,a)=>o===void 0?Math.max(i,UJ(e[a])):o)}};function nw(r,e,t){return r.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function UJ(r){let e=r.padding||[],t=1+(e[kp]||0)+(e[Gp]||0);return r.border?t+4:t}function FJ(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function VJ(r,e){r=r.trim();let t=zr.stringWidth(r);return t<e?" ".repeat(e-t)+r:r}function GJ(r,e){r=r.trim();let t=zr.stringWidth(r);return t>=e?r:" ".repeat(e-t>>1)+r}var zr;function iw(r,e){return zr=e,new tS({width:r?.width||FJ(),wrap:r?.wrap})}var sw=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function rS(r){return r.replace(sw,"")}function ow(r,e){let[t,n]=r.match(sw)||["",""];r=rS(r);let s="";for(let i=0;i<r.length;i++)i!==0&&i%e===0&&(s+=`
|
|
586
|
-
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function nS(r){return iw(r,{stringWidth:e=>[...e].length,stripAnsi:rS,wrap:ow})}import{dirname as aw,resolve as cw}from"path";import{readdirSync as kJ,statSync as jJ}from"fs";function uw(r,e){let t=cw(".",r),n;for(jJ(t).isDirectory()||(t=aw(t));;){if(n=e(t,kJ(t)),n)return cw(t,n);if(t=aw(n=t),n===t)break}}import{inspect as JJ}from"util";import{readFileSync as QJ}from"fs";import{fileURLToPath as ZJ}from"url";import{basename as eQ,dirname as tQ,extname as rQ,relative as nQ,resolve as dw}from"path";import{readFileSync as qJ,statSync as HJ,writeFile as $J}from"fs";import{format as WJ}from"util";import{resolve as YJ}from"path";var lw={fs:{readFileSync:qJ,writeFile:$J},format:WJ,resolve:YJ,exists:r=>{try{return HJ(r).isFile()}catch{return!1}}};var Un,iS=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Un.format.apply(Un.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),Un.format.apply(Un.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);Un.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{Un.fs.readFileSync&&(e=JSON.parse(Un.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=Un.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Un.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Un.exists(e)}};function fw(r,e){Un=e;let t=new iS(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var zJ=r=>fw(r,lw),pw=zJ;var iQ="require is not supported by ESM",hw="loading a directory of commands is not supported yet for ESM",el;try{el=ZJ(import.meta.url)}catch{el=process.cwd()}var sQ=el.substring(0,el.lastIndexOf("node_modules")),oQ={assert:{notStrictEqual:KJ,strictEqual:XJ},cliui:nS,findUp:uw,getEnv:r=>process.env[r],inspect:JJ,getCallerFile:()=>{throw new ao(hw)},getProcessArgvBin:JI,mainFilename:sQ||process.cwd(),Parser:Zu,path:{basename:eQ,dirname:tQ,extname:rQ,relative:nQ,resolve:dw},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(r,e)=>process.emitWarning(r,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:QJ,require:()=>{throw new ao(iQ)},requireDirectory:()=>{throw new ao(hw)},stringWidth:r=>[...r].length,y18n:pw({directory:dw(el,"../../../locales"),updateFiles:!1})};var qR=dr(jR(),1),{applyExtends:hZ,cjsPlatformShim:mZ,Parser:gZ,processArgv:EZ,Yargs:sd}=qR.default;sd.applyExtends=(r,e,t)=>hZ(r,e,t,mZ);sd.hideBin=EZ.hideBin;sd.Parser=gZ;var HR=sd;var at=dr(GN(),1);var Cd="create-cedar-app",vd="1.0.0-canary.
|
|
587
|
-
`)[0]}),vu.trace.getActiveSpan()?.recordException(r)}var eH="Initial commit",{telemetry:kde}=Zu(Bp(process.argv),{boolean:["telemetry"],default:{telemetry:process.env.REDWOOD_DISABLE_TELEMETRY===void 0||process.env.REDWOOD_DISABLE_TELEMETRY===""}}),Ye=new at.RedwoodTUI;function jde(){let{npm_config_user_agent:r}=process.env;if(r){let e=r.match(/yarn\/(\d+)/);if(e&&e[1])return parseInt(e[1],10)>=2}return!1}async function qde(r){let e=new at.ReactiveTUIContent({mode:"text",content:"Checking node and yarn compatibility",spinner:{enabled:!0}});Ye.startReactive(e);let[t,n]=await Hde(r);if(t){e.update({spinner:{enabled:!1},content:`${at.RedwoodStyling.green("\u2714")} Compatibility checks passed`}),Ye.stopReactive();return}if(!t){
|
|
586
|
+
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function nS(r){return iw(r,{stringWidth:e=>[...e].length,stripAnsi:rS,wrap:ow})}import{dirname as aw,resolve as cw}from"path";import{readdirSync as kJ,statSync as jJ}from"fs";function uw(r,e){let t=cw(".",r),n;for(jJ(t).isDirectory()||(t=aw(t));;){if(n=e(t,kJ(t)),n)return cw(t,n);if(t=aw(n=t),n===t)break}}import{inspect as JJ}from"util";import{readFileSync as QJ}from"fs";import{fileURLToPath as ZJ}from"url";import{basename as eQ,dirname as tQ,extname as rQ,relative as nQ,resolve as dw}from"path";import{readFileSync as qJ,statSync as HJ,writeFile as $J}from"fs";import{format as WJ}from"util";import{resolve as YJ}from"path";var lw={fs:{readFileSync:qJ,writeFile:$J},format:WJ,resolve:YJ,exists:r=>{try{return HJ(r).isFile()}catch{return!1}}};var Un,iS=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Un.format.apply(Un.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),Un.format.apply(Un.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);Un.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{Un.fs.readFileSync&&(e=JSON.parse(Un.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=Un.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Un.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Un.exists(e)}};function fw(r,e){Un=e;let t=new iS(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var zJ=r=>fw(r,lw),pw=zJ;var iQ="require is not supported by ESM",hw="loading a directory of commands is not supported yet for ESM",el;try{el=ZJ(import.meta.url)}catch{el=process.cwd()}var sQ=el.substring(0,el.lastIndexOf("node_modules")),oQ={assert:{notStrictEqual:KJ,strictEqual:XJ},cliui:nS,findUp:uw,getEnv:r=>process.env[r],inspect:JJ,getCallerFile:()=>{throw new ao(hw)},getProcessArgvBin:JI,mainFilename:sQ||process.cwd(),Parser:Zu,path:{basename:eQ,dirname:tQ,extname:rQ,relative:nQ,resolve:dw},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(r,e)=>process.emitWarning(r,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:QJ,require:()=>{throw new ao(iQ)},requireDirectory:()=>{throw new ao(hw)},stringWidth:r=>[...r].length,y18n:pw({directory:dw(el,"../../../locales"),updateFiles:!1})};var qR=dr(jR(),1),{applyExtends:hZ,cjsPlatformShim:mZ,Parser:gZ,processArgv:EZ,Yargs:sd}=qR.default;sd.applyExtends=(r,e,t)=>hZ(r,e,t,mZ);sd.hideBin=EZ.hideBin;sd.Parser=gZ;var HR=sd;var at=dr(GN(),1);var Cd="create-cedar-app",vd="1.0.0-canary.13010+e4d7549b6";be();be();var Kq=dr(Wk(),1),gO=dr(Cc(),1),K0=dr($j(),1),vf=dr(di(),1),Xq=dr(Kj(),1),Jq=dr(Jj(),1),EO=dr(Yq(),1);var fr=[];for(let r=0;r<256;++r)fr.push((r+256).toString(16).slice(1));function zq(r,e=0){return(fr[r[e+0]]+fr[r[e+1]]+fr[r[e+2]]+fr[r[e+3]]+"-"+fr[r[e+4]]+fr[r[e+5]]+"-"+fr[r[e+6]]+fr[r[e+7]]+"-"+fr[r[e+8]]+fr[r[e+9]]+"-"+fr[r[e+10]]+fr[r[e+11]]+fr[r[e+12]]+fr[r[e+13]]+fr[r[e+14]]+fr[r[e+15]]).toLowerCase()}import Ude from"node:crypto";var Y0=new Uint8Array(256),W0=Y0.length;function dO(){return W0>Y0.length-16&&(Ude.randomFillSync(Y0),W0=0),Y0.slice(W0,W0+=16)}import Fde from"node:crypto";var hO={randomUUID:Fde.randomUUID};function Vde(r,e,t){if(hO.randomUUID&&!e&&!r)return hO.randomUUID();r=r||{};let n=r.random||(r.rng||dO)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=n[s];return e}return zq(n)}var mO=Vde;var z0,SO,_O,yO=mO();async function Qq(){Cu.setLogger(new wf,Ht.ERROR);let r=JSON.parse(await Jq.default.run({System:["OS","Shell"],Binaries:["Node","Yarn","npm"],npmPackages:"@cedarjs/*",IDEs:["VSCode"]},{json:!0})),e=r.System?.Shell;e?.path?.match("/")?r.System.Shell.name=r.System.Shell.path.split("/").pop():e?.path.match("\\")&&(r.System.Shell.name=r.System.Shell.path.split("\\").pop());let t=await EO.default.cpu(),n=await EO.default.mem(),s;Object.keys(process.env).some(o=>o.startsWith("GITPOD_"))&&(s="gitpod");let i=gO.Resource.default().merge(new gO.Resource({[vf.SemanticResourceAttributes.SERVICE_NAME]:Cd,[vf.SemanticResourceAttributes.SERVICE_VERSION]:vd,[vf.SemanticResourceAttributes.OS_TYPE]:r.System?.OS?.split(" ")[0],[vf.SemanticResourceAttributes.OS_VERSION]:r.System?.OS?.split(" ")[1],"shell.name":r.System?.Shell?.name,"node.version":r.Binaries?.Node?.version,"yarn.version":r.Binaries?.Yarn?.version,"npm.version":r.Binaries?.npm?.version,"vscode.version":r.IDEs?.VSCode?.version,"cpu.count":t.physicalCores,"memory.gb":Math.round(n.total/1073741824),"env.node_env":process.env.NODE_ENV||null,"ci.redwood":!!process.env.REDWOOD_CI,"ci.isci":Xq.default.isCI,"dev.environment":s,uid:yO}));z0=new K0.NodeTracerProvider({resource:i}),_O=new Kq.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),SO=new K0.BatchSpanProcessor(_O),z0.addSpanProcessor(SO),z0.register(),process.on("SIGTERM",async()=>{await sr()})}async function sr(){try{vu.trace.getActiveSpan()?.end(),await z0?.shutdown(),await SO?.shutdown(),await _O?.shutdown()}catch{}}function vr(r){vu.trace.getActiveSpan()?.setStatus({code:Hi.ERROR,message:r.toString().split(`
|
|
587
|
+
`)[0]}),vu.trace.getActiveSpan()?.recordException(r)}var eH="Initial commit",{telemetry:kde}=Zu(Bp(process.argv),{boolean:["telemetry"],default:{telemetry:process.env.REDWOOD_DISABLE_TELEMETRY===void 0||process.env.REDWOOD_DISABLE_TELEMETRY===""}}),Ye=new at.RedwoodTUI;function jde(){let{npm_config_user_agent:r}=process.env;if(r){let e=r.match(/yarn\/(\d+)/);if(e&&e[1])return parseInt(e[1],10)>=2}return!1}async function qde(r){let e=new at.ReactiveTUIContent({mode:"text",content:"Checking node and yarn compatibility",spinner:{enabled:!0}});Ye.startReactive(e);let[t,n]=await Hde(r);if(t){e.update({spinner:{enabled:!1},content:`${at.RedwoodStyling.green("\u2714")} Compatibility checks passed`}),Ye.stopReactive();return}if(!t){TO.default.lt(n.node.version.version,TO.default.minVersion(n.node.wanted.raw))&&(Ye.stopReactive(!0),Ye.displayError("Compatibility checks failed",[" You need to upgrade the version of node you're using.",` You're using ${n.node.version.version} and we currently support node ${n.node.wanted.range}.`,""," Please use tools like nvm or corepack to change to a compatible version.",` See: ${(0,Df.terminalLink)("How to - Using nvm","https://cedarjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Using nvm https://cedarjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Df.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
|
|
588
588
|
`)),vr("Compatibility checks failed"),await sr(),process.exit(1)),Ye.stopReactive(!0),Ye.displayWarning("Compatibility checks failed",[" You may want to downgrade the version of node you're using.",` You're using ${n.node.version.version} and we currently support node ${n.node.wanted.range}.`,""," This may make your project incompatible with some deploy targets, especially those using AWS Lambdas.",""," Please use tools like nvm or corepack to change to a compatible version.",` See: ${(0,Df.terminalLink)("How to - Use nvm","https://cedarjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Use nvm https://cedarjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Df.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
|
|
589
|
-
`));try{(await Ye.prompt({type:"select",name:"override-engine-error",message:"How would you like to proceed?",choices:["Override error and continue install","Quit install"],initial:0}))["override-engine-error"]==="Quit install"&&(vr("User quit after engine check error"),await sr(),process.exit(0))}catch{vr("User cancelled install at engine check error"),await sr(),process.exit(1)}}}function Hde(r){return new Promise(e=>{let{engines:t}=Ti.default.readJSONSync(ei.join(r,"package.json"));(0,Zq.default)(t,(n,s)=>e([s.isSatisfied,s.versions]))})}async function $de(r,{templateDir:e,overwrite:t}){let n=r,s=new at.ReactiveTUIContent({mode:"text",content:"Creating project files",spinner:{enabled:!0}});return Ye.startReactive(s),n=await
|
|
589
|
+
`));try{(await Ye.prompt({type:"select",name:"override-engine-error",message:"How would you like to proceed?",choices:["Override error and continue install","Quit install"],initial:0}))["override-engine-error"]==="Quit install"&&(vr("User quit after engine check error"),await sr(),process.exit(0))}catch{vr("User cancelled install at engine check error"),await sr(),process.exit(1)}}}function Hde(r){return new Promise(e=>{let{engines:t}=Ti.default.readJSONSync(ei.join(r,"package.json"));(0,Zq.default)(t,(n,s)=>e([s.isSatisfied,s.versions]))})}async function $de(r,{templateDir:e,overwrite:t}){let n=r,s=new at.ReactiveTUIContent({mode:"text",content:"Creating project files",spinner:{enabled:!0}});return Ye.startReactive(s),n=await AO(n,{overwrite:t}),Ti.default.ensureDirSync(ei.dirname(n)),Ti.default.copySync(e,n,{overwrite:t}),Ti.default.renameSync(ei.join(n,"gitignore.template"),ei.join(n,".gitignore")),Ti.default.ensureDirSync(ei.join(n,".redwood")),Ti.default.writeFileSync(ei.join(n,".redwood","telemetry.txt"),yO),s.update({spinner:{enabled:!1},content:`${at.RedwoodStyling.green("\u2714")} Project files created`}),Ye.stopReactive(),n}async function Wde(r){let e=new at.ReactiveTUIContent({mode:"text",header:"Installing node modules",content:" \u23F1 This could take a while...",spinner:{enabled:!0}});Ye.startReactive(e);let t=process.cwd();process.chdir(r);let n=(0,X0.default)("yarn install",{shell:!0,cwd:r});try{await n}catch(s){Ye.stopReactive(!0),Ye.displayError("Couldn't install node modules",[`We couldn't install node modules via ${at.RedwoodStyling.info("'yarn install'")}. Please see below for the full error message.`,"",s].join(`
|
|
590
590
|
`)),vr(s),await sr(),process.chdir(t),process.exit(1)}process.chdir(t),e.update({header:"",content:`${at.RedwoodStyling.green("\u2714")} Installed node modules`,spinner:{enabled:!1}}),Ye.stopReactive()}async function Yde(r){let e=new at.ReactiveTUIContent({mode:"text",content:"Generating types",spinner:{enabled:!0}});Ye.startReactive(e);let t=(0,X0.default)("yarn rw-gen",{shell:!0,cwd:r});try{await t}catch(n){Ye.stopReactive(!0),Ye.displayError("Couldn't generate types",[`We could not generate types using ${at.RedwoodStyling.info("'yarn rw-gen'")}. Please see below for the full error message.`,"",n].join(`
|
|
591
591
|
`)),vr(n),await sr(),process.exit(1)}e.update({content:`${at.RedwoodStyling.green("\u2714")} Generated types`,spinner:{enabled:!1}}),Ye.stopReactive()}async function zde(r,e){let t=new at.ReactiveTUIContent({mode:"text",content:"Initializing a git repo",spinner:{enabled:!0}});Ye.startReactive(t);let n=(0,X0.default)(`git init && git add . && git commit -m "${e}"`,{shell:!0,cwd:r});try{await n}catch(s){Ye.stopReactive(!0),Ye.displayError("Couldn't initialize a git repo",[`We could not initialize a git repo using ${at.RedwoodStyling.info(`git init && git add . && git commit -m "${e}"`)}. Please see below for the full error message.`,"",s].join(`
|
|
592
|
-
`)),vr(s),await sr(),process.exit(1)}t.update({content:`${at.RedwoodStyling.green("\u2714")} Initialized a git repo with commit message "${e}"`,spinner:{enabled:!1}}),Ye.stopReactive()}async function Kde(r){if(r){let e=r==="."?"the current directory":r;return Ye.drawText(`${at.RedwoodStyling.green("\u2714")} Creating your Cedar app in ${e} based on command line argument`),r}try{let e=await Ye.prompt({type:"input",name:"targetDir",message:"Where would you like to create your CedarJS app?",initial:"my-cedar-app"});return/^~\w/.test(e.targetDir)&&(Ye.stopReactive(!0),Ye.displayError("The `~username` syntax is not supported here","Please use the full path or specify the target directory on the command line."),vr("Target dir prompt path syntax not supported"),await sr(),process.exit(1)),(0,
|
|
593
|
-
`)));try{let i=await Ye.prompt({type:"select",name:"projectDirectoryAlreadyExists",message:"How would you like to proceed?",choices:["Quit install",`Overwrite files in '${s}' and continue install`,"Specify a different directory"],initial:0});if(i.projectDirectoryAlreadyExists===`Overwrite files in '${s}' and continue install`)await Ti.default.remove(n);else if(i.projectDirectoryAlreadyExists==="Specify a different directory"){let o=await Zde();/^~\w/.test(o)?(Ye.stopReactive(!0),Ye.displayError("The `~username` syntax is not supported here","Please use the full path or specify the target directory on the command line."),n=await
|
|
592
|
+
`)),vr(s),await sr(),process.exit(1)}t.update({content:`${at.RedwoodStyling.green("\u2714")} Initialized a git repo with commit message "${e}"`,spinner:{enabled:!1}}),Ye.stopReactive()}async function Kde(r){if(r){let e=r==="."?"the current directory":r;return Ye.drawText(`${at.RedwoodStyling.green("\u2714")} Creating your Cedar app in ${e} based on command line argument`),r}try{let e=await Ye.prompt({type:"input",name:"targetDir",message:"Where would you like to create your CedarJS app?",initial:"my-cedar-app"});return/^~\w/.test(e.targetDir)&&(Ye.stopReactive(!0),Ye.displayError("The `~username` syntax is not supported here","Please use the full path or specify the target directory on the command line."),vr("Target dir prompt path syntax not supported"),await sr(),process.exit(1)),(0,OO.default)(e.targetDir)}catch{vr("User cancelled install at target dir prompt"),await sr(),process.exit(1)}}async function Xde(r){if(r!==null)return Ye.drawText(`${at.RedwoodStyling.green("\u2714")} Using ${r?"TypeScript":"JavaScript"} based on command line flag`),r;try{return(await Ye.prompt({type:"Select",name:"language",choices:["TypeScript","JavaScript"],message:"Select your preferred language",initial:"TypeScript"})).language==="TypeScript"}catch{vr("User cancelled install at language prompt"),await sr(),process.exit(1)}}async function Jde(r){return r!==null?(Ye.drawText(`${at.RedwoodStyling.green("\u2714")} Setting up ${r?"an ESM":"a CJS"} project based on command line flag`),r):!1}async function Qde(r){if(r!==null)return Ye.drawText(`${at.RedwoodStyling.green("\u2714")} ${r?"Will":"Will not"} initialize a git repo based on command line flag`),r;try{return(await Ye.prompt({type:"Toggle",name:"git",message:"Do you want to initialize a git repo?",enabled:"Yes",disabled:"no",initial:"Yes"})).git}catch{vr("User cancelled install at git prompt"),await sr(),process.exit(1)}}async function AO(r,{overwrite:e,suppressWarning:t}){let n=r;if(Ti.default.existsSync(n)&&!e&&Ti.default.readdirSync(n).length>0){let s=at.RedwoodStyling.info(n);t||(Ye.stopReactive(!0),Ye.displayWarning("Project directory already contains files",[`'${s}' already exists and is not empty`].join(`
|
|
593
|
+
`)));try{let i=await Ye.prompt({type:"select",name:"projectDirectoryAlreadyExists",message:"How would you like to proceed?",choices:["Quit install",`Overwrite files in '${s}' and continue install`,"Specify a different directory"],initial:0});if(i.projectDirectoryAlreadyExists===`Overwrite files in '${s}' and continue install`)await Ti.default.remove(n);else if(i.projectDirectoryAlreadyExists==="Specify a different directory"){let o=await Zde();/^~\w/.test(o)?(Ye.stopReactive(!0),Ye.displayError("The `~username` syntax is not supported here","Please use the full path or specify the target directory on the command line."),n=await AO(r,{overwrite:e,suppressWarning:!0})):n=ei.resolve(process.cwd(),(0,OO.default)(o)),n=await AO(n,{overwrite:e})}else i.projectDirectoryAlreadyExists==="Quit install"&&(vr("User quit after directory already exists error"),await sr(),process.exit(1))}catch{vr("User cancelled install after directory already exists error"),await sr(),process.exit(1)}}return n}async function Zde(){try{return(await Ye.prompt({type:"input",name:"targetDirectoryInput",message:"What directory would you like to create the app in?",initial:"my-cedar-app"})).targetDirectoryInput}catch{vr("User cancelled install at specify a different directory prompt"),await sr(),process.exit(1)}}async function ehe(r){if(r!==null)return r;try{return(await Ye.prompt({type:"input",name:"commitMessage",message:"Enter a commit message",initial:eH})).commitMessage}catch{vr("User cancelled install at commit message prompt"),await sr(),process.exit(1)}}async function the(r){if(r!==null)return Ye.drawText(`${at.RedwoodStyling.green("\u2714")} ${r?"Will":"Will not"} run yarn install based on command line flag`),r;try{return(await Ye.prompt({type:"Toggle",name:"yarnInstall",message:"Do you want to run yarn install?",enabled:"Yes",disabled:"no",initial:"Yes"})).yarnInstall}catch{vr("User cancelled install at yarn install prompt"),await sr(),process.exit(1)}}async function rhe(){let r=HR(Bp(process.argv)).scriptName(Cd).usage("Usage: $0 <project directory>").example("$0 my-cedar-app").version(vd).option("yes",{alias:"y",default:null,type:"boolean",describe:"Skip prompts and use defaults"}).option("node-check",{default:!0,type:"boolean",describe:"Check if the installed version of Node is supported"}).option("overwrite",{default:!1,type:"boolean",describe:"Create even if target directory isn't empty"}).option("typescript",{alias:"ts",default:null,type:"boolean",describe:"Generate a TypeScript project"}).option("esm",{hidden:!0,default:null,type:"boolean",describe:"Generate an ESM project"}).option("git-init",{alias:"git",default:null,type:"boolean",describe:"Initialize a git repository"}).option("commit-message",{alias:"m",default:null,type:"string",describe:"Commit message for the initial commit"}).option("telemetry",{default:!0,type:"boolean",describe:"Enables sending telemetry events for this create command and all Cedar CLI commands https://telemetry.redwoodjs.com"}),e=jde();e&&r.option("yarn-install",{default:null,type:"boolean",describe:"Install node modules. Skip via --no-yarn-install."});let t=r.parse();console.log(Zb(["#00ff41","#008f11"]).multiline(`
|
|
594
594
|
|
|
595
595
|
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588
|
|
596
596
|
\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588
|