UNPKG

@servicenow/sdk

Version:
3 lines 13.5 MB
"use strict";var uqr=Object.create;var oxe=Object.defineProperty;var dqr=Object.getOwnPropertyDescriptor;var pqr=Object.getOwnPropertyNames;var fqr=Object.getPrototypeOf,_qr=Object.prototype.hasOwnProperty;var t=(n,e)=>oxe(n,"name",{value:e,configurable:!0});var hd=(n,e)=>()=>(n&&(e=n(n=0)),e);var Te=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),VA=(n,e)=>{for(var r in e)oxe(n,r,{get:e[r],enumerable:!0})},con=(n,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of pqr(e))!_qr.call(n,s)&&s!==r&&oxe(n,s,{get:()=>e[s],enumerable:!(a=dqr(e,s))||a.enumerable});return n};var VU=(n,e,r)=>(r=n!=null?uqr(fqr(n)):{},con(e||!n||!n.__esModule?oxe(r,"default",{value:n,enumerable:!0}):r,n)),bp=n=>con(oxe({},"__esModule",{value:!0}),n);var fe,k=hd(()=>{fe=["/home/jenkins/agent/workspace/ps_platform_fluent_feature_4.7.0/target/checkout/node/node","/home/jenkins/agent/workspace/ps_platform_fluent_feature_4.7.0/target/checkout/packages/sdk/esbuild.ts","--production"]});function aF(n,e,r){return r={path:e,exports:{},require:t(function(a,s){return hqr(a,s??r.path)},"require")},n(r,r.exports),r.exports}function hqr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var UU,xQ=hd(()=>{k();F();L();O();UU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t(aF,"createCommonjsModule");t(hqr,"commonjsRequire")});function gqr(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var yqr,sxe,Ape,pmt,LIa,b3e,FIa,uon=hd(()=>{k();F();L();O();xQ();t(gqr,"getScope");yqr=gqr(),sxe=yqr[Symbol.for("brodeProcess")],Ape={nextTick(n,...e){if(!(sxe&&sxe.exitCode!==null)){if(typeof n!="function")throw new TypeError("handler is not a function");queueMicrotask(()=>{try{n(...e)}catch(r){if(sxe&&sxe.hasListeners("uncaughtException")){sxe.emit("uncaughtException",r);return}throw r}})}},emitWarning(n){console.warn(n)}},pmt=aF(function(n,e){(function(r){var a=Object.hasOwnProperty,s=Array.isArray?Array.isArray:t(function(ut){return Object.prototype.toString.call(ut)==="[object Array]"},"_isArray"),l=10,d=typeof Ape=="object"&&typeof Ape.nextTick=="function",p=typeof Symbol=="function",_=typeof Reflect=="object",m=typeof setImmediate=="function",g=m?setImmediate:setTimeout,v=p?_&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(He){var ut=Object.getOwnPropertyNames(He);return ut.push.apply(ut,Object.getOwnPropertySymbols(He)),ut}:Object.keys;function E(){this._events={},this._conf&&x.call(this,this._conf)}t(E,"init");function x(He){He&&(this._conf=He,He.delimiter&&(this.delimiter=He.delimiter),He.maxListeners!==r&&(this._maxListeners=He.maxListeners),He.wildcard&&(this.wildcard=He.wildcard),He.newListener&&(this._newListener=He.newListener),He.removeListener&&(this._removeListener=He.removeListener),He.verboseMemoryLeak&&(this.verboseMemoryLeak=He.verboseMemoryLeak),He.ignoreErrors&&(this.ignoreErrors=He.ignoreErrors),this.wildcard&&(this.listenerTree={}))}t(x,"configure");function A(He,ut){var _t="(node) warning: possible EventEmitter memory leak detected. "+He+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(_t+=" Event name: "+ut+"."),typeof Ape<"u"&&Ape.emitWarning){var Nt=new Error(_t);Nt.name="MaxListenersExceededWarning",Nt.emitter=this,Nt.count=He,Ape.emitWarning(Nt)}else console.error(_t),console.trace&&console.trace()}t(A,"logPossibleMemoryLeak");var I=t(function(He,ut,_t){var Nt=arguments.length;switch(Nt){case 0:return[];case 1:return[He];case 2:return[He,ut];case 3:return[He,ut,_t];default:for(var pn=new Array(Nt);Nt--;)pn[Nt]=arguments[Nt];return pn}},"toArray");function D(He,ut){for(var _t={},Nt,pn=He.length,$t=ut?ut.length:0,yn=0;yn<pn;yn++)Nt=He[yn],_t[Nt]=yn<$t?ut[yn]:r;return _t}t(D,"toObject");function w(He,ut,_t){this._emitter=He,this._target=ut,this._listeners={},this._listenersCount=0;var Nt,pn;if((_t.on||_t.off)&&(Nt=_t.on,pn=_t.off),ut.addEventListener?(Nt=ut.addEventListener,pn=ut.removeEventListener):ut.addListener?(Nt=ut.addListener,pn=ut.removeListener):ut.on&&(Nt=ut.on,pn=ut.off),!Nt&&!pn)throw Error("target does not implement any known event API");if(typeof Nt!="function")throw TypeError("on method must be a function");if(typeof pn!="function")throw TypeError("off method must be a function");this._on=Nt,this._off=pn;var $t=He._observers;$t?$t.push(this):He._observers=[this]}t(w,"TargetObserver"),Object.assign(w.prototype,{subscribe:t(function(He,ut,_t){var Nt=this,pn=this._target,$t=this._emitter,yn=this._listeners,Sn=t(function(){var Pn=I.apply(null,arguments),mn={data:Pn,name:ut,original:He};if(_t){var st=_t.call(pn,mn);st!==!1&&$t.emit.apply($t,[mn.name].concat(Pn));return}$t.emit.apply($t,[ut].concat(Pn))},"handler");if(yn[He])throw Error("Event '"+He+"' is already listening");this._listenersCount++,$t._newListener&&$t._removeListener&&!Nt._onNewListener?(this._onNewListener=function(Pn){Pn===ut&&yn[He]===null&&(yn[He]=Sn,Nt._on.call(pn,He,Sn))},$t.on("newListener",this._onNewListener),this._onRemoveListener=function(Pn){Pn===ut&&!$t.hasListeners(Pn)&&yn[He]&&(yn[He]=null,Nt._off.call(pn,He,Sn))},yn[He]=null,$t.on("removeListener",this._onRemoveListener)):(yn[He]=Sn,Nt._on.call(pn,He,Sn))},"subscribe"),unsubscribe:t(function(He){var ut=this,_t=this._listeners,Nt=this._emitter,pn,$t,yn=this._off,Sn=this._target,Pn;if(He&&typeof He!="string")throw TypeError("event must be a string");function mn(){ut._onNewListener&&(Nt.off("newListener",ut._onNewListener),Nt.off("removeListener",ut._onRemoveListener),ut._onNewListener=null,ut._onRemoveListener=null);var st=ie.call(Nt,ut);Nt._observers.splice(st,1)}if(t(mn,"clearRefs"),He){if(pn=_t[He],!pn)return;yn.call(Sn,He,pn),delete _t[He],--this._listenersCount||mn()}else{for($t=v(_t),Pn=$t.length;Pn-- >0;)He=$t[Pn],yn.call(Sn,He,_t[He]);this._listeners={},this._listenersCount=0,mn()}},"unsubscribe")});function M(He,ut,_t,Nt){var pn=Object.assign({},ut);if(!He)return pn;if(typeof He!="object")throw TypeError("options must be an object");var $t=Object.keys(He),yn=$t.length,Sn,Pn,mn;function st(vt){throw Error('Invalid "'+Sn+'" option value'+(vt?". Reason: "+vt:""))}t(st,"reject");for(var Ge=0;Ge<yn;Ge++){if(Sn=$t[Ge],!Nt&&!a.call(ut,Sn))throw Error('Unknown "'+Sn+'" option');Pn=He[Sn],Pn!==r&&(mn=_t[Sn],pn[Sn]=mn?mn(Pn,st):Pn)}return pn}t(M,"resolveOptions");function W(He,ut){return(typeof He!="function"||!He.hasOwnProperty("prototype"))&&ut("value must be a constructor"),He}t(W,"constructorReducer");function B(He){var ut="value must be type of "+He.join("|"),_t=He.length,Nt=He[0],pn=He[1];return _t===1?function($t,yn){if(typeof $t===Nt)return $t;yn(ut)}:_t===2?function($t,yn){var Sn=typeof $t;if(Sn===Nt||Sn===pn)return $t;yn(ut)}:function($t,yn){for(var Sn=typeof $t,Pn=_t;Pn-- >0;)if(Sn===He[Pn])return $t;yn(ut)}}t(B,"makeTypeReducer");var q=B(["function"]),J=B(["object","function"]);function $(He,ut,_t){var Nt,pn,$t=0,yn,Sn=new He(function(Pn,mn,st){_t=M(_t,{timeout:0,overload:!1},{timeout:t(function(Qe,$e){return Qe*=1,(typeof Qe!="number"||Qe<0||!Number.isFinite(Qe))&&$e("timeout must be a positive number"),Qe},"timeout")}),Nt=!_t.overload&&typeof He.prototype.cancel=="function"&&typeof st=="function";function Ge(){pn&&(pn=null),$t&&(clearTimeout($t),$t=0)}t(Ge,"cleanup");var vt=t(function(Qe){Ge(),Pn(Qe)},"_resolve"),Me=t(function(Qe){Ge(),mn(Qe)},"_reject");Nt?ut(vt,Me,st):(pn=[function(Qe){Me(Qe||Error("canceled"))}],ut(vt,Me,function(Qe){if(yn)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Qe!="function")throw TypeError("onCancel callback must be a function");pn.push(Qe)}),yn=!0),_t.timeout>0&&($t=setTimeout(function(){var Qe=Error("timeout");Qe.code="ETIMEDOUT",$t=0,Sn.cancel(Qe),mn(Qe)},_t.timeout))});return Nt||(Sn.cancel=function(Pn){if(pn){for(var mn=pn.length,st=1;st<mn;st++)pn[st](Pn);pn[0](Pn),pn=null}}),Sn}t($,"makeCancelablePromise");function ie(He){var ut=this._observers;if(!ut)return-1;for(var _t=ut.length,Nt=0;Nt<_t;Nt++)if(ut[Nt]._target===He)return Nt;return-1}t(ie,"findTargetIndex");function re(He,ut,_t,Nt,pn){if(!_t)return null;if(Nt===0){var $t=typeof ut;if($t==="string"){var yn,Sn,Pn=0,mn=0,st=this.delimiter,Ge=st.length;if((Sn=ut.indexOf(st))!==-1){yn=new Array(5);do yn[Pn++]=ut.slice(mn,Sn),mn=Sn+Ge;while((Sn=ut.indexOf(st,mn))!==-1);yn[Pn++]=ut.slice(mn),ut=yn,pn=Pn}else ut=[ut],pn=1}else $t==="object"?pn=ut.length:(ut=[ut],pn=1)}var vt=null,Me,Qe,$e,Rt,rn,An=ut[Nt],Yt=ut[Nt+1],mr,ki;if(Nt===pn)_t._listeners&&(typeof _t._listeners=="function"?(He&&He.push(_t._listeners),vt=[_t]):(He&&He.push.apply(He,_t._listeners),vt=[_t]));else if(An==="*"){for(mr=v(_t),Sn=mr.length;Sn-- >0;)Me=mr[Sn],Me!=="_listeners"&&(ki=re(He,ut,_t[Me],Nt+1,pn),ki&&(vt?vt.push.apply(vt,ki):vt=ki));return vt}else if(An==="**"){for(rn=Nt+1===pn||Nt+2===pn&&Yt==="*",rn&&_t._listeners&&(vt=re(He,ut,_t,pn,pn)),mr=v(_t),Sn=mr.length;Sn-- >0;)Me=mr[Sn],Me!=="_listeners"&&(Me==="*"||Me==="**"?(_t[Me]._listeners&&!rn&&(ki=re(He,ut,_t[Me],pn,pn),ki&&(vt?vt.push.apply(vt,ki):vt=ki)),ki=re(He,ut,_t[Me],Nt,pn)):Me===Yt?ki=re(He,ut,_t[Me],Nt+2,pn):ki=re(He,ut,_t[Me],Nt,pn),ki&&(vt?vt.push.apply(vt,ki):vt=ki));return vt}else _t[An]&&(vt=re(He,ut,_t[An],Nt+1,pn));if(Qe=_t["*"],Qe&&re(He,ut,Qe,Nt+1,pn),$e=_t["**"],$e)if(Nt<pn)for($e._listeners&&re(He,ut,$e,pn,pn),mr=v($e),Sn=mr.length;Sn-- >0;)Me=mr[Sn],Me!=="_listeners"&&(Me===Yt?re(He,ut,$e[Me],Nt+2,pn):Me===An?re(He,ut,$e[Me],Nt+1,pn):(Rt={},Rt[Me]=$e[Me],re(He,ut,{"**":Rt},Nt+1,pn)));else $e._listeners?re(He,ut,$e,pn,pn):$e["*"]&&$e["*"]._listeners&&re(He,ut,$e["*"],pn,pn);return vt}t(re,"searchListenerTree");function De(He,ut,_t){var Nt=0,pn=0,$t,yn=this.delimiter,Sn=yn.length,Pn;if(typeof He=="string")if(($t=He.indexOf(yn))!==-1){Pn=new Array(5);do Pn[Nt++]=He.slice(pn,$t),pn=$t+Sn;while(($t=He.indexOf(yn,pn))!==-1);Pn[Nt++]=He.slice(pn)}else Pn=[He],Nt=1;else Pn=He,Nt=He.length;if(Nt>1){for($t=0;$t+1<Nt;$t++)if(Pn[$t]==="**"&&Pn[$t+1]==="**")return}var mn=this.listenerTree,st;for($t=0;$t<Nt;$t++)if(st=Pn[$t],mn=mn[st]||(mn[st]={}),$t===Nt-1)return mn._listeners?(typeof mn._listeners=="function"&&(mn._listeners=[mn._listeners]),_t?mn._listeners.unshift(ut):mn._listeners.push(ut),!mn._listeners.warned&&this._maxListeners>0&&mn._listeners.length>this._maxListeners&&(mn._listeners.warned=!0,A.call(this,mn._listeners.length,st))):mn._listeners=ut,!0;return!0}t(De,"growListenerTree");function Oe(He,ut,_t,Nt){for(var pn=v(He),$t=pn.length,yn,Sn,Pn,mn=He._listeners,st;$t-- >0;)Sn=pn[$t],yn=He[Sn],Sn==="_listeners"?Pn=_t:Pn=_t?_t.concat(Sn):[Sn],st=Nt||typeof Sn=="symbol",mn&&ut.push(st?Pn:Pn.join(this.delimiter)),typeof yn=="object"&&Oe.call(this,yn,ut,Pn,st);return ut}t(Oe,"collectTreeEvents");function Fe(He){for(var ut=v(He),_t=ut.length,Nt,pn,$t;_t-- >0;)pn=ut[_t],Nt=He[pn],Nt&&($t=!0,pn!=="_listeners"&&!Fe(Nt)&&delete He[pn]);return $t}t(Fe,"recursivelyGarbageCollect");function Ae(He,ut,_t){this.emitter=He,this.event=ut,this.listener=_t}t(Ae,"Listener"),Ae.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function Se(He,ut,_t){if(_t===!0)pn=!0;else if(_t===!1)Nt=!0;else{if(!_t||typeof _t!="object")throw TypeError("options should be an object or true");var Nt=_t.async,pn=_t.promisify,$t=_t.nextTick,yn=_t.objectify}if(Nt||$t||pn){var Sn=ut,Pn=ut._origin||ut;if($t&&!d)throw Error("process.nextTick is not supported");pn===r&&(pn=ut.constructor.name==="AsyncFunction"),ut=t(function(){var mn=arguments,st=this,Ge=this.event;return pn?$t?Promise.resolve():new Promise(function(vt){g(vt)}).then(function(){return st.event=Ge,Sn.apply(st,mn)}):($t?Ape.nextTick:g)(function(){st.event=Ge,Sn.apply(st,mn)})},"listener"),ut._async=!0,ut._origin=Pn}return[ut,yn?new Ae(this,He,ut):this]}t(Se,"setupListener");function We(He){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,x.call(this,He)}t(We,"EventEmitter"),We.EventEmitter2=We,We.prototype.listenTo=function(He,ut,_t){if(typeof He!="object")throw TypeError("target musts be an object");var Nt=this;_t=M(_t,{on:r,off:r,reducers:r},{on:q,off:q,reducers:J});function pn($t){if(typeof $t!="object")throw TypeError("events must be an object");var yn=_t.reducers,Sn=ie.call(Nt,He),Pn;Sn===-1?Pn=new w(Nt,He,_t):Pn=Nt._observers[Sn];for(var mn=v($t),st=mn.length,Ge,vt=typeof yn=="function",Me=0;Me<st;Me++)Ge=mn[Me],Pn.subscribe(Ge,$t[Ge]||Ge,vt?yn:yn&&yn[Ge])}return t(pn,"listen"),s(ut)?pn(D(ut)):pn(typeof ut=="string"?D(ut.split(/\s+/)):ut),this},We.prototype.stopListeningTo=function(He,ut){var _t=this._observers;if(!_t)return!1;var Nt=_t.length,pn,$t=!1;if(He&&typeof He!="object")throw TypeError("target should be an object");for(;Nt-- >0;)pn=_t[Nt],(!He||pn._target===He)&&(pn.unsubscribe(ut),$t=!0);return $t},We.prototype.delimiter=".",We.prototype.setMaxListeners=function(He){He!==r&&(this._maxListeners=He,this._conf||(this._conf={}),this._conf.maxListeners=He)},We.prototype.getMaxListeners=function(){return this._maxListeners},We.prototype.event="",We.prototype.once=function(He,ut,_t){return this._once(He,ut,!1,_t)},We.prototype.prependOnceListener=function(He,ut,_t){return this._once(He,ut,!0,_t)},We.prototype._once=function(He,ut,_t,Nt){return this._many(He,1,ut,_t,Nt)},We.prototype.many=function(He,ut,_t,Nt){return this._many(He,ut,_t,!1,Nt)},We.prototype.prependMany=function(He,ut,_t,Nt){return this._many(He,ut,_t,!0,Nt)},We.prototype._many=function(He,ut,_t,Nt,pn){var $t=this;if(typeof _t!="function")throw new Error("many only accepts instances of Function");function yn(){return--ut===0&&$t.off(He,yn),_t.apply(this,arguments)}return t(yn,"listener"),yn._origin=_t,this._on(He,yn,Nt,pn)},We.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||E.call(this);var He=arguments[0],ut,_t=this.wildcard,Nt,pn,$t,yn,Sn;if(He==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(_t&&(ut=He,He!=="newListener"&&He!=="removeListener"&&typeof He=="object")){if(pn=He.length,p){for($t=0;$t<pn;$t++)if(typeof He[$t]=="symbol"){Sn=!0;break}}Sn||(He=He.join(this.delimiter))}var Pn=arguments.length,mn;if(this._all&&this._all.length)for(mn=this._all.slice(),$t=0,pn=mn.length;$t<pn;$t++)switch(this.event=He,Pn){case 1:mn[$t].call(this,He);break;case 2:mn[$t].call(this,He,arguments[1]);break;case 3:mn[$t].call(this,He,arguments[1],arguments[2]);break;default:mn[$t].apply(this,arguments)}if(_t)mn=[],re.call(this,mn,ut,this.listenerTree,0,pn);else if(mn=this._events[He],typeof mn=="function"){switch(this.event=He,Pn){case 1:mn.call(this);break;case 2:mn.call(this,arguments[1]);break;case 3:mn.call(this,arguments[1],arguments[2]);break;default:for(Nt=new Array(Pn-1),yn=1;yn<Pn;yn++)Nt[yn-1]=arguments[yn];mn.apply(this,Nt)}return!0}else mn&&(mn=mn.slice());if(mn&&mn.length){if(Pn>3)for(Nt=new Array(Pn-1),yn=1;yn<Pn;yn++)Nt[yn-1]=arguments[yn];for($t=0,pn=mn.length;$t<pn;$t++)switch(this.event=He,Pn){case 1:mn[$t].call(this);break;case 2:mn[$t].call(this,arguments[1]);break;case 3:mn[$t].call(this,arguments[1],arguments[2]);break;default:mn[$t].apply(this,Nt)}return!0}else if(!this.ignoreErrors&&!this._all&&He==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},We.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||E.call(this);var He=arguments[0],ut=this.wildcard,_t,Nt,pn,$t,yn,Sn;if(He==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(ut&&(_t=He,He!=="newListener"&&He!=="removeListener"&&typeof He=="object")){if($t=He.length,p){for(yn=0;yn<$t;yn++)if(typeof He[yn]=="symbol"){Nt=!0;break}}Nt||(He=He.join(this.delimiter))}var Pn=[],mn=arguments.length,st;if(this._all)for(yn=0,$t=this._all.length;yn<$t;yn++)switch(this.event=He,mn){case 1:Pn.push(this._all[yn].call(this,He));break;case 2:Pn.push(this._all[yn].call(this,He,arguments[1]));break;case 3:Pn.push(this._all[yn].call(this,He,arguments[1],arguments[2]));break;default:Pn.push(this._all[yn].apply(this,arguments))}if(ut?(st=[],re.call(this,st,_t,this.listenerTree,0)):st=this._events[He],typeof st=="function")switch(this.event=He,mn){case 1:Pn.push(st.call(this));break;case 2:Pn.push(st.call(this,arguments[1]));break;case 3:Pn.push(st.call(this,arguments[1],arguments[2]));break;default:for(pn=new Array(mn-1),Sn=1;Sn<mn;Sn++)pn[Sn-1]=arguments[Sn];Pn.push(st.apply(this,pn))}else if(st&&st.length){if(st=st.slice(),mn>3)for(pn=new Array(mn-1),Sn=1;Sn<mn;Sn++)pn[Sn-1]=arguments[Sn];for(yn=0,$t=st.length;yn<$t;yn++)switch(this.event=He,mn){case 1:Pn.push(st[yn].call(this));break;case 2:Pn.push(st[yn].call(this,arguments[1]));break;case 3:Pn.push(st[yn].call(this,arguments[1],arguments[2]));break;default:Pn.push(st[yn].apply(this,pn))}}else if(!this.ignoreErrors&&!this._all&&He==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(Pn)},We.prototype.on=function(He,ut,_t){return this._on(He,ut,!1,_t)},We.prototype.prependListener=function(He,ut,_t){return this._on(He,ut,!0,_t)},We.prototype.onAny=function(He){return this._onAny(He,!1)},We.prototype.prependAny=function(He){return this._onAny(He,!0)},We.prototype.addListener=We.prototype.on,We.prototype._onAny=function(He,ut){if(typeof He!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),ut?this._all.unshift(He):this._all.push(He),this},We.prototype._on=function(He,ut,_t,Nt){if(typeof He=="function")return this._onAny(He,ut),this;if(typeof ut!="function")throw new Error("on only accepts instances of Function");this._events||E.call(this);var pn=this,$t;return Nt!==r&&($t=Se.call(this,He,ut,Nt),ut=$t[0],pn=$t[1]),this._newListener&&this.emit("newListener",He,ut),this.wildcard?(De.call(this,He,ut,_t),pn):(this._events[He]?(typeof this._events[He]=="function"&&(this._events[He]=[this._events[He]]),_t?this._events[He].unshift(ut):this._events[He].push(ut),!this._events[He].warned&&this._maxListeners>0&&this._events[He].length>this._maxListeners&&(this._events[He].warned=!0,A.call(this,this._events[He].length,He))):this._events[He]=ut,pn)},We.prototype.off=function(He,ut){if(typeof ut!="function")throw new Error("removeListener only takes instances of Function");var _t,Nt=[];if(this.wildcard){var pn=typeof He=="string"?He.split(this.delimiter):He.slice();if(Nt=re.call(this,null,pn,this.listenerTree,0),!Nt)return this}else{if(!this._events[He])return this;_t=this._events[He],Nt.push({_listeners:_t})}for(var $t=0;$t<Nt.length;$t++){var yn=Nt[$t];if(_t=yn._listeners,s(_t)){for(var Sn=-1,Pn=0,mn=_t.length;Pn<mn;Pn++)if(_t[Pn]===ut||_t[Pn].listener&&_t[Pn].listener===ut||_t[Pn]._origin&&_t[Pn]._origin===ut){Sn=Pn;break}if(Sn<0)continue;return this.wildcard?yn._listeners.splice(Sn,1):this._events[He].splice(Sn,1),_t.length===0&&(this.wildcard?delete yn._listeners:delete this._events[He]),this._removeListener&&this.emit("removeListener",He,ut),this}else(_t===ut||_t.listener&&_t.listener===ut||_t._origin&&_t._origin===ut)&&(this.wildcard?delete yn._listeners:delete this._events[He],this._removeListener&&this.emit("removeListener",He,ut))}return this.listenerTree&&Fe(this.listenerTree),this},We.prototype.offAny=function(He){var ut=0,_t=0,Nt;if(He&&this._all&&this._all.length>0){for(Nt=this._all,ut=0,_t=Nt.length;ut<_t;ut++)if(He===Nt[ut])return Nt.splice(ut,1),this._removeListener&&this.emit("removeListenerAny",He),this}else{if(Nt=this._all,this._removeListener)for(ut=0,_t=Nt.length;ut<_t;ut++)this.emit("removeListenerAny",Nt[ut]);this._all=[]}return this},We.prototype.removeListener=We.prototype.off,We.prototype.removeAllListeners=function(He){if(He===r)return!this._events||E.call(this),this;if(this.wildcard){var ut=re.call(this,null,He,this.listenerTree,0),_t,Nt;if(!ut)return this;for(Nt=0;Nt<ut.length;Nt++)_t=ut[Nt],_t._listeners=null;this.listenerTree&&Fe(this.listenerTree)}else this._events&&(this._events[He]=null);return this},We.prototype.listeners=function(He){var ut=this._events,_t,Nt,pn,$t,yn;if(He===r){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!ut)return[];for(_t=v(ut),$t=_t.length,pn=[];$t-- >0;)Nt=ut[_t[$t]],typeof Nt=="function"?pn.push(Nt):pn.push.apply(pn,Nt);return pn}else{if(this.wildcard){if(yn=this.listenerTree,!yn)return[];var Sn=[],Pn=typeof He=="string"?He.split(this.delimiter):He.slice();return re.call(this,Sn,Pn,yn,0),Sn}return ut?(Nt=ut[He],Nt?typeof Nt=="function"?[Nt]:Nt:[]):[]}},We.prototype.eventNames=function(He){var ut=this._events;return this.wildcard?Oe.call(this,this.listenerTree,[],null,He):ut?v(ut):[]},We.prototype.listenerCount=function(He){return this.listeners(He).length},We.prototype.hasListeners=function(He){if(this.wildcard){var ut=[],_t=typeof He=="string"?He.split(this.delimiter):He.slice();return re.call(this,ut,_t,this.listenerTree,0),ut.length>0}var Nt=this._events,pn=this._all;return!!(pn&&pn.length||Nt&&(He===r?v(Nt).length:Nt[He]))},We.prototype.listenersAny=function(){return this._all?this._all:[]},We.prototype.waitFor=function(He,ut){var _t=this,Nt=typeof ut;return Nt==="number"?ut={timeout:ut}:Nt==="function"&&(ut={filter:ut}),ut=M(ut,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:q,Promise:W}),$(ut.Promise,function(pn,$t,yn){function Sn(){var Pn=ut.filter;if(!(Pn&&!Pn.apply(_t,arguments)))if(_t.off(He,Sn),ut.handleError){var mn=arguments[0];mn?$t(mn):pn(I.apply(null,arguments).slice(1))}else pn(I.apply(null,arguments))}t(Sn,"listener"),yn(function(){_t.off(He,Sn)}),_t._on(He,Sn,!1)},{timeout:ut.timeout,overload:ut.overload})};function ze(He,ut,_t){_t=M(_t,{Promise,timeout:0,overload:!1},{Promise:W});var Nt=_t.Promise;return $(Nt,function(pn,$t,yn){var Sn;if(typeof He.addEventListener=="function"){Sn=t(function(){pn(I.apply(null,arguments))},"handler"),yn(function(){He.removeEventListener(ut,Sn)}),He.addEventListener(ut,Sn,{once:!0});return}var Pn=t(function(){mn&&He.removeListener("error",mn),pn(I.apply(null,arguments))},"eventListener"),mn;ut!=="error"&&(mn=t(function(st){He.removeListener(ut,Pn),$t(st)},"errorListener"),He.once("error",mn)),yn(function(){mn&&He.removeListener("error",mn),He.removeListener(ut,Pn)}),He.once(ut,Pn)},{timeout:_t.timeout,overload:_t.overload})}t(ze,"once");var Le=We.prototype;Object.defineProperties(We,{defaultMaxListeners:{get:t(function(){return Le._maxListeners},"get"),set:t(function(He){if(typeof He!="number"||He<0||Number.isNaN(He))throw TypeError("n must be a non-negative number");Le._maxListeners=He},"set"),enumerable:!0},once:{value:ze,writable:!0,configurable:!0}}),Object.defineProperties(Le,{_maxListeners:{value:l,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof r=="function"&&r.amd?r(function(){return We}):n.exports=We})()}),LIa=pmt.EventEmitter2,b3e=pmt,FIa=pmt.defaultMaxListeners});var TQ={};VA(TQ,{EventEmitter:()=>S3e,default:()=>E3e});var S3e,E3e,GU=hd(()=>{k();F();L();O();uon();b3e.EventEmitter=b3e;S3e=b3e,E3e=S3e});var vqr,x3e,bqr,don=hd(()=>{k();F();L();O();vqr=t(()=>{if("performance"in window||(window.performance={}),Date.now=Date.now||(()=>new Date().getTime()),!("now"in window.performance)){let n=Date.now();performance.timing&&performance.timing.navigationStart&&(n=performance.timing.navigationStart),window.performance.now=()=>Date.now()-n}},"perfomancePolyfill"),x3e=t(n=>{vqr();let e=Math.floor((Date.now()-performance.now())*.001),r=performance.now()*.001,a=Math.floor(r)+e,s=Math.floor(r%1*1e9);return n&&(a=a-n[0],s=s-n[1],s<0&&(a--,s+=1e9)),[a,s]},"hrtime"),bqr=1e9;x3e.bigint=()=>{let n=x3e();return BigInt(n[0]*bqr+n[1])}});function Cie(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var T3e=hd(()=>{k();F();L();O();t(Cie,"getScope")});var AQ,fmt=hd(()=>{k();F();L();O();xQ();AQ=aF(function(n){typeof Object.create=="function"?n.exports=t(function(r,a){a&&(r.super_=a,r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):n.exports=t(function(r,a){if(a){r.super_=a;var s=t(function(){},"TempCtor");s.prototype=a.prototype,r.prototype=new s,r.prototype.constructor=r}},"inherits")})});var gon,w3e,pon,Sqr,Eqr,_mt,xqr,Tqr,Aqr,WK,D3e,Zy,Npe,yon,wpe,mmt,Die,hmt,Cqr,Cpe,CQ,Dpe,Dqr,Ppe,Iqr,fon,wqr,Pqr,_on,I3e,Nqr,Rqr,kqr,Oqr,Lqr,jK,von,Fqr,Rpe,Mqr,Emt,P3e,bon,Bqr,jqr,Wqr,Vqr,Uqr,Son,gmt,Gqr,ymt,zqr,Eon,Ipe,xmt,A3e,qqr,Tmt,Hqr,Kqr,Jqr,$qr,Xqr,mon,Yqr,Qqr,xon,Zqr,eHr,tHr,nHr,N3e,vmt,rHr,Ton,C3e,Iie,iHr,Aon,aHr,Con,oHr,sHr,Don,bmt,lHr,Amt,cHr,Ion,hon,uHr,dHr,won,Smt,pHr,Z9,fHr,_Hr,hS,mHr,hHr,gHr,wie,yHr,vHr,bHr,SHr,EHr,xHr,THr,AHr,CHr,DHr,IHr,wHr,PHr,NHr,RHr,kHr,OHr,LHr,FHr,MHr,BHr,jHr,Cmt=hd(()=>{k();F();L();O();lxe();xQ();fmt();gon=t(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0},"hasSymbols"),w3e=t(function(){return gon()&&!!Symbol.toStringTag},"hasToStringTagShams"),pon=typeof Symbol<"u"&&Symbol,Sqr=t(function(){return typeof pon!="function"||typeof Symbol!="function"||typeof pon("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gon()},"hasNativeSymbols"),Eqr="Function.prototype.bind called on incompatible ",_mt=Array.prototype.slice,xqr=Object.prototype.toString,Tqr="[object Function]",Aqr=t(function(e){var r=this;if(typeof r!="function"||xqr.call(r)!==Tqr)throw new TypeError(Eqr+r);for(var a=_mt.call(arguments,1),s,l=t(function(){if(this instanceof s){var g=r.apply(this,a.concat(_mt.call(arguments)));return Object(g)===g?g:this}else return r.apply(e,a.concat(_mt.call(arguments)))},"binder"),d=Math.max(0,r.length-a.length),p=[],_=0;_<d;_++)p.push("$"+_);if(s=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(l),r.prototype){var m=t(function(){},"Empty2");m.prototype=r.prototype,s.prototype=new m,m.prototype=null}return s},"bind"),WK=Function.prototype.bind||Aqr,D3e=WK.call(Function.call,Object.prototype.hasOwnProperty),Npe=SyntaxError,yon=Function,wpe=TypeError,mmt=t(function(n){try{return yon('"use strict"; return ('+n+").constructor;")()}catch{}},"getEvalledConstructor"),Die=Object.getOwnPropertyDescriptor;if(Die)try{Die({},"")}catch{Die=null}hmt=t(function(){throw new wpe},"throwTypeError"),Cqr=Die?function(){try{return arguments.callee,hmt}catch{try{return Die(arguments,"callee").get}catch{return hmt}}}():hmt,Cpe=Sqr(),CQ=Object.getPrototypeOf||function(n){return n.__proto__},Dpe={},Dqr=typeof Uint8Array>"u"?Zy:CQ(Uint8Array),Ppe={"%AggregateError%":typeof AggregateError>"u"?Zy:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Zy:ArrayBuffer,"%ArrayIteratorPrototype%":Cpe?CQ([][Symbol.iterator]()):Zy,"%AsyncFromSyncIteratorPrototype%":Zy,"%AsyncFunction%":Dpe,"%AsyncGenerator%":Dpe,"%AsyncGeneratorFunction%":Dpe,"%AsyncIteratorPrototype%":Dpe,"%Atomics%":typeof Atomics>"u"?Zy:Atomics,"%BigInt%":typeof BigInt>"u"?Zy:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Zy:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Zy:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Zy:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Zy:FinalizationRegistry,"%Function%":yon,"%GeneratorFunction%":Dpe,"%Int8Array%":typeof Int8Array>"u"?Zy:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Zy:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Zy:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Cpe?CQ(CQ([][Symbol.iterator]())):Zy,"%JSON%":typeof JSON=="object"?JSON:Zy,"%Map%":typeof Map>"u"?Zy:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Cpe?Zy:CQ(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Zy:Promise,"%Proxy%":typeof Proxy>"u"?Zy:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Zy:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Zy:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Cpe?Zy:CQ(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Zy:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Cpe?CQ(""[Symbol.iterator]()):Zy,"%Symbol%":Cpe?Symbol:Zy,"%SyntaxError%":Npe,"%ThrowTypeError%":Cqr,"%TypedArray%":Dqr,"%TypeError%":wpe,"%Uint8Array%":typeof Uint8Array>"u"?Zy:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Zy:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Zy:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Zy:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Zy:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Zy:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Zy:WeakSet},Iqr=t(function n(e){var r;if(e==="%AsyncFunction%")r=mmt("async function () {}");else if(e==="%GeneratorFunction%")r=mmt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=mmt("async function* () {}");else if(e==="%AsyncGenerator%"){var a=n("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=n("%AsyncGenerator%");s&&(r=CQ(s.prototype))}return Ppe[e]=r,r},"doEval2"),fon={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},wqr=WK.call(Function.call,Array.prototype.concat),Pqr=WK.call(Function.apply,Array.prototype.splice),_on=WK.call(Function.call,String.prototype.replace),I3e=WK.call(Function.call,String.prototype.slice),Nqr=WK.call(Function.call,RegExp.prototype.exec),Rqr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kqr=/\\(\\)?/g,Oqr=t(function(e){var r=I3e(e,0,1),a=I3e(e,-1);if(r==="%"&&a!=="%")throw new Npe("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&r!=="%")throw new Npe("invalid intrinsic syntax, expected opening `%`");var s=[];return _on(e,Rqr,function(l,d,p,_){s[s.length]=p?_on(_,kqr,"$1"):d||l}),s},"stringToPath2"),Lqr=t(function(e,r){var a=e,s;if(D3e(fon,a)&&(s=fon[a],a="%"+s[0]+"%"),D3e(Ppe,a)){var l=Ppe[a];if(l===Dpe&&(l=Iqr(a)),typeof l>"u"&&!r)throw new wpe("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:a,value:l}}throw new Npe("intrinsic "+e+" does not exist!")},"getBaseIntrinsic2"),jK=t(function(e,r){if(typeof e!="string"||e.length===0)throw new wpe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new wpe('"allowMissing" argument must be a boolean');if(Nqr(/^%?[^%]*%?$/g,e)===null)throw new Npe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Oqr(e),s=a.length>0?a[0]:"",l=Lqr("%"+s+"%",r),d=l.name,p=l.value,_=!1,m=l.alias;m&&(s=m[0],Pqr(a,wqr([0,1],m)));for(var g=1,v=!0;g<a.length;g+=1){var E=a[g],x=I3e(E,0,1),A=I3e(E,-1);if((x==='"'||x==="'"||x==="`"||A==='"'||A==="'"||A==="`")&&x!==A)throw new Npe("property names with quotes must have matching quotes");if((E==="constructor"||!v)&&(_=!0),s+="."+E,d="%"+s+"%",D3e(Ppe,d))p=Ppe[d];else if(p!=null){if(!(E in p)){if(!r)throw new wpe("base intrinsic for "+e+" exists, but the property is not available.");return}if(Die&&g+1>=a.length){var I=Die(p,E);v=!!I,v&&"get"in I&&!("originalValue"in I.get)?p=I.get:p=p[E]}else v=D3e(p,E),p=p[E];v&&!_&&(Ppe[d]=p)}}return p},"GetIntrinsic"),von=aF(function(n){var e=jK("%Function.prototype.apply%"),r=jK("%Function.prototype.call%"),a=jK("%Reflect.apply%",!0)||WK.call(r,e),s=jK("%Object.getOwnPropertyDescriptor%",!0),l=jK("%Object.defineProperty%",!0),d=jK("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}n.exports=t(function(m){var g=a(WK,r,arguments);if(s&&l){var v=s(g,"length");v.configurable&&l(g,"length",{value:1+d(0,m.length-(arguments.length-1))})}return g},"callBind2");var p=t(function(){return a(WK,e,arguments)},"applyBind2");l?l(n.exports,"apply",{value:p}):n.exports.apply=p}),Fqr=von(jK("String.prototype.indexOf")),Rpe=t(function(e,r){var a=jK(e,!!r);return typeof a=="function"&&Fqr(e,".prototype.")>-1?von(a):a},"callBoundIntrinsic"),Mqr=w3e(),Emt=Rpe("Object.prototype.toString"),P3e=t(function(e){return Mqr&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Emt(e)==="[object Arguments]"},"isArguments"),bon=t(function(e){return P3e(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Emt(e)!=="[object Array]"&&Emt(e.callee)==="[object Function]"},"isArguments2"),Bqr=function(){return P3e(arguments)}();P3e.isLegacyArguments=bon;jqr=Bqr?P3e:bon,Wqr=Object.prototype.toString,Vqr=Function.prototype.toString,Uqr=/^\s*(?:function)?\*/,Son=w3e(),gmt=Object.getPrototypeOf,Gqr=t(function(){if(!Son)return!1;try{return Function("return function*() {}")()}catch{}},"getGeneratorFunc"),zqr=t(function(e){if(typeof e!="function")return!1;if(Uqr.test(Vqr.call(e)))return!0;if(!Son){var r=Wqr.call(e);return r==="[object GeneratorFunction]"}if(!gmt)return!1;if(typeof ymt>"u"){var a=Gqr();ymt=a?gmt(a):!1}return gmt(e)===ymt},"isGeneratorFunction2"),Eon=Function.prototype.toString,Ipe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof Ipe=="function"&&typeof Object.defineProperty=="function")try{xmt=Object.defineProperty({},"length",{get:t(function(){throw A3e},"get")}),A3e={},Ipe(function(){throw 42},null,xmt)}catch(n){n!==A3e&&(Ipe=null)}else Ipe=null;qqr=/^\s*class\b/,Tmt=t(function(e){try{var r=Eon.call(e);return qqr.test(r)}catch{return!1}},"isES6ClassFunction"),Hqr=t(function(e){try{return Tmt(e)?!1:(Eon.call(e),!0)}catch{return!1}},"tryFunctionToStr"),Kqr=Object.prototype.toString,Jqr="[object Function]",$qr="[object GeneratorFunction]",Xqr=typeof Symbol=="function"&&!!Symbol.toStringTag,mon=typeof document=="object"&&typeof document.all>"u"&&document.all!==void 0?document.all:{},Yqr=Ipe?t(function(e){if(e===mon)return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(typeof e=="function"&&!e.prototype)return!0;try{Ipe(e,null,xmt)}catch(r){if(r!==A3e)return!1}return!Tmt(e)},"isCallable2"):t(function(e){if(e===mon)return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(typeof e=="function"&&!e.prototype)return!0;if(Xqr)return Hqr(e);if(Tmt(e))return!1;var r=Kqr.call(e);return r===Jqr||r===$qr},"isCallable3"),Qqr=Object.prototype.toString,xon=Object.prototype.hasOwnProperty,Zqr=t(function(e,r,a){for(var s=0,l=e.length;s<l;s++)xon.call(e,s)&&(a==null?r(e[s],s,e):r.call(a,e[s],s,e))},"forEachArray2"),eHr=t(function(e,r,a){for(var s=0,l=e.length;s<l;s++)a==null?r(e.charAt(s),s,e):r.call(a,e.charAt(s),s,e)},"forEachString2"),tHr=t(function(e,r,a){for(var s in e)xon.call(e,s)&&(a==null?r(e[s],s,e):r.call(a,e[s],s,e))},"forEachObject2"),nHr=t(function(e,r,a){if(!Yqr(r))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=a),Qqr.call(e)==="[object Array]"?Zqr(e,r,s):typeof e=="string"?eHr(e,r,s):tHr(e,r,s)},"forEach2"),N3e=nHr,vmt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],rHr=typeof globalThis>"u"?UU:globalThis,Ton=t(function(){for(var e=[],r=0;r<vmt.length;r++)typeof rHr[vmt[r]]=="function"&&(e[e.length]=vmt[r]);return e},"availableTypedArrays2"),C3e=jK("%Object.getOwnPropertyDescriptor%",!0);if(C3e)try{C3e([],"length")}catch{C3e=null}Iie=C3e,iHr=Rpe("Object.prototype.toString"),Aon=w3e(),aHr=typeof globalThis>"u"?UU:globalThis,Con=Ton(),oHr=Rpe("Array.prototype.indexOf",!0)||t(function(e,r){for(var a=0;a<e.length;a+=1)if(e[a]===r)return a;return-1},"indexOf"),sHr=Rpe("String.prototype.slice"),Don={},bmt=Object.getPrototypeOf;Aon&&Iie&&bmt&&N3e(Con,function(n){var e=new aHr[n];if(Symbol.toStringTag in e){var r=bmt(e),a=Iie(r,Symbol.toStringTag);if(!a){var s=bmt(r);a=Iie(s,Symbol.toStringTag)}Don[n]=a.get}});lHr=t(function(e){var r=!1;return N3e(Don,function(a,s){if(!r)try{r=a.call(e)===s}catch{}}),r},"tryAllTypedArrays"),Amt=t(function(e){if(!e||typeof e!="object")return!1;if(!Aon||!(Symbol.toStringTag in e)){var r=sHr(iHr(e),8,-1);return oHr(Con,r)>-1}return Iie?lHr(e):!1},"isTypedArray2"),cHr=Rpe("Object.prototype.toString"),Ion=w3e(),hon=typeof globalThis>"u"?UU:globalThis,uHr=Ton(),dHr=Rpe("String.prototype.slice"),won={},Smt=Object.getPrototypeOf;Ion&&Iie&&Smt&&N3e(uHr,function(n){if(typeof hon[n]=="function"){var e=new hon[n];if(Symbol.toStringTag in e){var r=Smt(e),a=Iie(r,Symbol.toStringTag);if(!a){var s=Smt(r);a=Iie(s,Symbol.toStringTag)}won[n]=a.get}}});pHr=t(function(e){var r=!1;return N3e(won,function(a,s){if(!r)try{var l=a.call(e);l===s&&(r=l)}catch{}}),r},"tryAllTypedArrays2"),Z9=t(function(e){return Amt(e)?!Ion||!(Symbol.toStringTag in e)?dHr(cHr(e),8,-1):pHr(e):!1},"whichTypedArray2"),fHr=aF(function(n,e){function r(An){return An.call.bind(An)}t(r,"uncurryThis");var a=typeof BigInt<"u",s=typeof Symbol<"u",l=r(Object.prototype.toString),d=r(Number.prototype.valueOf),p=r(String.prototype.valueOf),_=r(Boolean.prototype.valueOf);if(a)var m=r(BigInt.prototype.valueOf);if(s)var g=r(Symbol.prototype.valueOf);function v(An,Yt){if(typeof An!="object")return!1;try{return Yt(An),!0}catch{return!1}}t(v,"checkBoxedPrimitive"),e.isArgumentsObject=jqr,e.isGeneratorFunction=zqr,e.isTypedArray=Amt;function E(An){return typeof Promise<"u"&&An instanceof Promise||An!==null&&typeof An=="object"&&typeof An.then=="function"&&typeof An.catch=="function"}t(E,"isPromise"),e.isPromise=E;function x(An){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(An):Amt(An)||_t(An)}t(x,"isArrayBufferView"),e.isArrayBufferView=x;function A(An){return Z9(An)==="Uint8Array"}t(A,"isUint8Array"),e.isUint8Array=A;function I(An){return Z9(An)==="Uint8ClampedArray"}t(I,"isUint8ClampedArray"),e.isUint8ClampedArray=I;function D(An){return Z9(An)==="Uint16Array"}t(D,"isUint16Array"),e.isUint16Array=D;function w(An){return Z9(An)==="Uint32Array"}t(w,"isUint32Array"),e.isUint32Array=w;function M(An){return Z9(An)==="Int8Array"}t(M,"isInt8Array"),e.isInt8Array=M;function W(An){return Z9(An)==="Int16Array"}t(W,"isInt16Array"),e.isInt16Array=W;function B(An){return Z9(An)==="Int32Array"}t(B,"isInt32Array"),e.isInt32Array=B;function q(An){return Z9(An)==="Float32Array"}t(q,"isFloat32Array"),e.isFloat32Array=q;function J(An){return Z9(An)==="Float64Array"}t(J,"isFloat64Array"),e.isFloat64Array=J;function $(An){return Z9(An)==="BigInt64Array"}t($,"isBigInt64Array"),e.isBigInt64Array=$;function ie(An){return Z9(An)==="BigUint64Array"}t(ie,"isBigUint64Array"),e.isBigUint64Array=ie;function re(An){return l(An)==="[object Map]"}t(re,"isMapToString"),re.working=typeof Map<"u"&&re(new Map);function De(An){return typeof Map>"u"?!1:re.working?re(An):An instanceof Map}t(De,"isMap"),e.isMap=De;function Oe(An){return l(An)==="[object Set]"}t(Oe,"isSetToString"),Oe.working=typeof Set<"u"&&Oe(new Set);function Fe(An){return typeof Set>"u"?!1:Oe.working?Oe(An):An instanceof Set}t(Fe,"isSet"),e.isSet=Fe;function Ae(An){return l(An)==="[object WeakMap]"}t(Ae,"isWeakMapToString"),Ae.working=typeof WeakMap<"u"&&Ae(new WeakMap);function Se(An){return typeof WeakMap>"u"?!1:Ae.working?Ae(An):An instanceof WeakMap}t(Se,"isWeakMap"),e.isWeakMap=Se;function We(An){return l(An)==="[object WeakSet]"}t(We,"isWeakSetToString"),We.working=typeof WeakSet<"u"&&We(new WeakSet);function ze(An){return We(An)}t(ze,"isWeakSet"),e.isWeakSet=ze;function Le(An){return l(An)==="[object ArrayBuffer]"}t(Le,"isArrayBufferToString"),Le.working=typeof ArrayBuffer<"u"&&Le(new ArrayBuffer);function He(An){return typeof ArrayBuffer>"u"?!1:Le.working?Le(An):An instanceof ArrayBuffer}t(He,"isArrayBuffer"),e.isArrayBuffer=He;function ut(An){return l(An)==="[object DataView]"}t(ut,"isDataViewToString"),ut.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ut(new DataView(new ArrayBuffer(1),0,1));function _t(An){return typeof DataView>"u"?!1:ut.working?ut(An):An instanceof DataView}t(_t,"isDataView"),e.isDataView=_t;var Nt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pn(An){return l(An)==="[object SharedArrayBuffer]"}t(pn,"isSharedArrayBufferToString");function $t(An){return typeof Nt>"u"?!1:(typeof pn.working>"u"&&(pn.working=pn(new Nt)),pn.working?pn(An):An instanceof Nt)}t($t,"isSharedArrayBuffer"),e.isSharedArrayBuffer=$t;function yn(An){return l(An)==="[object AsyncFunction]"}t(yn,"isAsyncFunction"),e.isAsyncFunction=yn;function Sn(An){return l(An)==="[object Map Iterator]"}t(Sn,"isMapIterator"),e.isMapIterator=Sn;function Pn(An){return l(An)==="[object Set Iterator]"}t(Pn,"isSetIterator"),e.isSetIterator=Pn;function mn(An){return l(An)==="[object Generator]"}t(mn,"isGeneratorObject"),e.isGeneratorObject=mn;function st(An){return l(An)==="[object WebAssembly.Module]"}t(st,"isWebAssemblyCompiledModule"),e.isWebAssemblyCompiledModule=st;function Ge(An){return v(An,d)}t(Ge,"isNumberObject"),e.isNumberObject=Ge;function vt(An){return v(An,p)}t(vt,"isStringObject"),e.isStringObject=vt;function Me(An){return v(An,_)}t(Me,"isBooleanObject"),e.isBooleanObject=Me;function Qe(An){return a&&v(An,m)}t(Qe,"isBigIntObject"),e.isBigIntObject=Qe;function $e(An){return s&&v(An,g)}t($e,"isSymbolObject"),e.isSymbolObject=$e;function Rt(An){return Ge(An)||vt(An)||Me(An)||Qe(An)||$e(An)}t(Rt,"isBoxedPrimitive"),e.isBoxedPrimitive=Rt;function rn(An){return typeof Uint8Array<"u"&&(He(An)||$t(An))}t(rn,"isAnyArrayBuffer"),e.isAnyArrayBuffer=rn,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(An){Object.defineProperty(e,An,{enumerable:!1,value:t(function(){throw new Error(An+" is not supported in userland")},"value")})})}),_Hr=t(function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},"isBuffer"),hS=aF(function(n,e){var r=Object.getOwnPropertyDescriptors||t(function(yn){for(var Sn=Object.keys(yn),Pn={},mn=0;mn<Sn.length;mn++)Pn[Sn[mn]]=Object.getOwnPropertyDescriptor(yn,Sn[mn]);return Pn},"getOwnPropertyDescriptors2"),a=/%[sdj%]/g;e.format=function($t){if(!J($t)){for(var yn=[],Sn=0;Sn<arguments.length;Sn++)yn.push(p(arguments[Sn]));return yn.join(" ")}for(var Sn=1,Pn=arguments,mn=Pn.length,st=String($t).replace(a,function(vt){if(vt==="%%")return"%";if(Sn>=mn)return vt;switch(vt){case"%s":return String(Pn[Sn++]);case"%d":return Number(Pn[Sn++]);case"%j":try{return JSON.stringify(Pn[Sn++])}catch{return"[Circular]"}default:return vt}}),Ge=Pn[Sn];Sn<mn;Ge=Pn[++Sn])W(Ge)||!De(Ge)?st+=" "+Ge:st+=" "+p(Ge);return st},e.deprecate=function($t,yn){if(typeof de<"u"&&de.noDeprecation===!0)return $t;if(typeof de>"u")return function(){return e.deprecate($t,yn).apply(this,arguments)};var Sn=!1;function Pn(){if(!Sn){if(de.throwDeprecation)throw new Error(yn);de.traceDeprecation?console.trace(yn):console.error(yn),Sn=!0}return $t.apply(this,arguments)}return t(Pn,"deprecated"),Pn};var s={},l=/^$/;if(de.env.NODE_DEBUG){var d=de.env.NODE_DEBUG;d=d.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+d+"$","i")}e.debuglog=function($t){if($t=$t.toUpperCase(),!s[$t])if(l.test($t)){var yn=de.pid;s[$t]=function(){var Sn=e.format.apply(e,arguments);console.error("%s %d: %s",$t,yn,Sn)}}else s[$t]=function(){};return s[$t]};function p($t,yn){var Sn={seen:[],stylize:m};return arguments.length>=3&&(Sn.depth=arguments[2]),arguments.length>=4&&(Sn.colors=arguments[3]),M(yn)?Sn.showHidden=yn:yn&&e._extend(Sn,yn),ie(Sn.showHidden)&&(Sn.showHidden=!1),ie(Sn.depth)&&(Sn.depth=2),ie(Sn.colors)&&(Sn.colors=!1),ie(Sn.customInspect)&&(Sn.customInspect=!0),Sn.colors&&(Sn.stylize=_),v(Sn,$t,Sn.depth)}t(p,"inspect2"),e.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function _($t,yn){var Sn=p.styles[yn];return Sn?"\x1B["+p.colors[Sn][0]+"m"+$t+"\x1B["+p.colors[Sn][1]+"m":$t}t(_,"stylizeWithColor");function m($t,yn){return $t}t(m,"stylizeNoColor");function g($t){var yn={};return $t.forEach(function(Sn,Pn){yn[Sn]=!0}),yn}t(g,"arrayToHash");function v($t,yn,Sn){if($t.customInspect&&yn&&Ae(yn.inspect)&&yn.inspect!==e.inspect&&!(yn.constructor&&yn.constructor.prototype===yn)){var Pn=yn.inspect(Sn,$t);return J(Pn)||(Pn=v($t,Pn,Sn)),Pn}var mn=E($t,yn);if(mn)return mn;var st=Object.keys(yn),Ge=g(st);if($t.showHidden&&(st=Object.getOwnPropertyNames(yn)),Fe(yn)&&(st.indexOf("message")>=0||st.indexOf("description")>=0))return x(yn);if(st.length===0){if(Ae(yn)){var vt=yn.name?": "+yn.name:"";return $t.stylize("[Function"+vt+"]","special")}if(re(yn))return $t.stylize(RegExp.prototype.toString.call(yn),"regexp");if(Oe(yn))return $t.stylize(Date.prototype.toString.call(yn),"date");if(Fe(yn))return x(yn)}var Me="",Qe=!1,$e=["{","}"];if(w(yn)&&(Qe=!0,$e=["[","]"]),Ae(yn)){var Rt=yn.name?": "+yn.name:"";Me=" [Function"+Rt+"]"}if(re(yn)&&(Me=" "+RegExp.prototype.toString.call(yn)),Oe(yn)&&(Me=" "+Date.prototype.toUTCString.call(yn)),Fe(yn)&&(Me=" "+x(yn)),st.length===0&&(!Qe||yn.length==0))return $e[0]+Me+$e[1];if(Sn<0)return re(yn)?$t.stylize(RegExp.prototype.toString.call(yn),"regexp"):$t.stylize("[Object]","special");$t.seen.push(yn);var rn;return Qe?rn=A($t,yn,Sn,Ge,st):rn=st.map(function(An){return I($t,yn,Sn,Ge,An,Qe)}),$t.seen.pop(),D(rn,Me,$e)}t(v,"formatValue");function E($t,yn){if(ie(yn))return $t.stylize("undefined","undefined");if(J(yn)){var Sn="'"+JSON.stringify(yn).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $t.stylize(Sn,"string")}if(q(yn))return $t.stylize(""+yn,"number");if(M(yn))return $t.stylize(""+yn,"boolean");if(W(yn))return $t.stylize("null","null")}t(E,"formatPrimitive");function x($t){return"["+Error.prototype.toString.call($t)+"]"}t(x,"formatError");function A($t,yn,Sn,Pn,mn){for(var st=[],Ge=0,vt=yn.length;Ge<vt;++Ge)ut(yn,String(Ge))?st.push(I($t,yn,Sn,Pn,String(Ge),!0)):st.push("");return mn.forEach(function(Me){Me.match(/^\d+$/)||st.push(I($t,yn,Sn,Pn,Me,!0))}),st}t(A,"formatArray");function I($t,yn,Sn,Pn,mn,st){var Ge,vt,Me;if(Me=Object.getOwnPropertyDescriptor(yn,mn)||{value:yn[mn]},Me.get?Me.set?vt=$t.stylize("[Getter/Setter]","special"):vt=$t.stylize("[Getter]","special"):Me.set&&(vt=$t.stylize("[Setter]","special")),ut(Pn,mn)||(Ge="["+mn+"]"),vt||($t.seen.indexOf(Me.value)<0?(W(Sn)?vt=v($t,Me.value,null):vt=v($t,Me.value,Sn-1),vt.indexOf(` `)>-1&&(st?vt=vt.split(` `).