edgeone 1.6.2 → 1.6.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  var _a;
3
- var Un=Object.create;var jt=Object.defineProperty;var Bn=Object.getOwnPropertyDescriptor;var Dn=Object.getOwnPropertyNames;var Mn=Object.getPrototypeOf,jn=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Dn(e))!jn.call(t,s)&&s!==r&&jt(t,s,{get:()=>e[s],enumerable:!(n=Bn(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?Un(Mn(t)):{},Hn(e||!t||!t.__esModule?jt(r,"default",{value:t,enumerable:!0}):r,t));var kt=p(Ht=>{var d=Ht,{Buffer:we}=require("buffer"),kn=require("os");d.toBuffer=function(t,e,r){r=~~r;let n;if(this.isV4Format(t))n=e||we.alloc(r+4),t.split(/\./g).map(s=>{n[r++]=parseInt(s,10)&255});else if(this.isV6Format(t)){let s=t.split(":",8),o;for(o=0;o<s.length;o++){let i=this.isV4Format(s[o]),u;i&&(u=this.toBuffer(s[o]),s[o]=u.slice(0,2).toString("hex")),u&&++o<8&&s.splice(o,0,u.slice(2,4).toString("hex"))}if(s[0]==="")for(;s.length<8;)s.unshift("0");else if(s[s.length-1]==="")for(;s.length<8;)s.push("0");else if(s.length<8){for(o=0;o<s.length&&s[o]!=="";o++);let i=[o,1];for(o=9-s.length;o>0;o--)i.push("0");s.splice(...i)}for(n=e||we.alloc(r+16),o=0;o<s.length;o++){let i=parseInt(s[o],16);n[r++]=i>>8&255,n[r++]=i&255}}if(!n)throw Error(`Invalid ip address: ${t}`);return n};d.toString=function(t,e,r){e=~~e,r=r||t.length-e;let n=[];if(r===4){for(let s=0;s<r;s++)n.push(t[e+s]);n=n.join(".")}else if(r===16){for(let s=0;s<r;s+=2)n.push(t.readUInt16BE(e+s).toString(16));n=n.join(":"),n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),n=n.replace(/:{3,4}/,"::")}return n};var Gn=/^(\d{1,3}\.){3,3}\d{1,3}$/,$n=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;d.isV4Format=function(t){return Gn.test(t)};d.isV6Format=function(t){return $n.test(t)};function fe(t){return t===4?"ipv4":t===6?"ipv6":t?t.toLowerCase():"ipv4"}d.fromPrefixLen=function(t,e){t>32?e="ipv6":e=fe(e);let r=4;e==="ipv6"&&(r=16);let n=we.alloc(r);for(let s=0,o=n.length;s<o;++s){let i=8;t<8&&(i=t),t-=i,n[s]=~(255>>i)&255}return d.toString(n)};d.mask=function(t,e){t=d.toBuffer(t),e=d.toBuffer(e);let r=we.alloc(Math.max(t.length,e.length)),n;if(t.length===e.length)for(n=0;n<t.length;n++)r[n]=t[n]&e[n];else if(e.length===4)for(n=0;n<e.length;n++)r[n]=t[t.length-4+n]&e[n];else{for(n=0;n<r.length-6;n++)r[n]=0;for(r[10]=255,r[11]=255,n=0;n<t.length;n++)r[n+12]=t[n]&e[n+12];n+=12}for(;n<r.length;n++)r[n]=0;return d.toString(r)};d.cidr=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=d.fromPrefixLen(parseInt(e[1],10));return d.mask(r,n)};d.subnet=function(t,e){let r=d.toLong(d.mask(t,e)),n=d.toBuffer(e),s=0;for(let i=0;i<n.length;i++)if(n[i]===255)s+=8;else{let u=n[i]&255;for(;u;)u=u<<1&255,s++}let o=2**(32-s);return{networkAddress:d.fromLong(r),firstAddress:o<=2?d.fromLong(r):d.fromLong(r+1),lastAddress:o<=2?d.fromLong(r+o-1):d.fromLong(r+o-2),broadcastAddress:d.fromLong(r+o-1),subnetMask:e,subnetMaskLength:s,numHosts:o<=2?o:o-2,length:o,contains(i){return r===d.toLong(d.mask(i,e))}}};d.cidrSubnet=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=d.fromPrefixLen(parseInt(e[1],10));return d.subnet(r,n)};d.not=function(t){let e=d.toBuffer(t);for(let r=0;r<e.length;r++)e[r]=255^e[r];return d.toString(e)};d.or=function(t,e){if(t=d.toBuffer(t),e=d.toBuffer(e),t.length===e.length){for(let o=0;o<t.length;++o)t[o]|=e[o];return d.toString(t)}let r=t,n=e;e.length>t.length&&(r=e,n=t);let s=r.length-n.length;for(let o=s;o<r.length;++o)r[o]|=n[o-s];return d.toString(r)};d.isEqual=function(t,e){if(t=d.toBuffer(t),e=d.toBuffer(e),t.length===e.length){for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}if(e.length===4){let n=e;e=t,t=n}for(let n=0;n<10;n++)if(e[n]!==0)return!1;let r=e.readUInt16BE(10);if(r!==0&&r!==65535)return!1;for(let n=0;n<4;n++)if(t[n]!==e[n+12])return!1;return!0};d.isPrivate=function(t){if(d.isLoopback(t))return!0;if(!d.isV6Format(t)){let e=d.normalizeToLong(t);if(e<0)throw new Error("invalid ipv4 address");t=d.fromLong(e)}return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^f[cd][0-9a-f]{2}:/i.test(t)||/^fe80:/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};d.isPublic=function(t){return!d.isPrivate(t)};d.isLoopback=function(t){return!/\./.test(t)&&!/:/.test(t)&&(t=d.fromLong(Number(t))),/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(t)||/^0177\./.test(t)||/^0x7f\./i.test(t)||/^fe80::1$/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};d.loopback=function(t){if(t=fe(t),t!=="ipv4"&&t!=="ipv6")throw new Error("family must be ipv4 or ipv6");return t==="ipv4"?"127.0.0.1":"fe80::1"};d.address=function(t,e){let r=kn.networkInterfaces();if(e=fe(e),t&&t!=="private"&&t!=="public"){let s=r[t].filter(o=>fe(o.family)===e);return s.length===0?void 0:s[0].address}let n=Object.keys(r).map(s=>{let o=r[s].filter(i=>(i.family=fe(i.family),i.family!==e||d.isLoopback(i.address)?!1:t?t==="public"?d.isPrivate(i.address):d.isPublic(i.address):!0));return o.length?o[0].address:void 0}).filter(Boolean);return n.length?n[0]:d.loopback(e)};d.toLong=function(t){let e=0;return t.split(".").forEach(r=>{e<<=8,e+=parseInt(r)}),e>>>0};d.fromLong=function(t){return`${t>>>24}.${t>>16&255}.${t>>8&255}.${t&255}`};d.normalizeToLong=function(t){let e=t.split(".").map(s=>s.startsWith("0x")||s.startsWith("0X")?parseInt(s,16):s.startsWith("0")&&s!=="0"&&/^[0-7]+$/.test(s)?parseInt(s,8):/^[1-9]\d*$/.test(s)||s==="0"?parseInt(s,10):NaN);if(e.some(isNaN))return-1;let r=0;switch(e.length){case 1:r=e[0];break;case 2:if(e[0]>255||e[1]>16777215)return-1;r=e[0]<<24|e[1]&16777215;break;case 3:if(e[0]>255||e[1]>255||e[2]>65535)return-1;r=e[0]<<24|e[1]<<16|e[2]&65535;break;case 4:if(e.some(s=>s>255))return-1;r=e[0]<<24|e[1]<<16|e[2]<<8|e[3];break;default:return-1}return r>>>0}});var Gt=p(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.Request=void 0;var zn=function(){function t(){this.mParams=new Map}return t.prototype.getParam=function(e){return this.mParams.has(e)&&this.mParams.get(e)||""},t.prototype.setParam=function(e,r){r==null?this.mParams.set(e,""):this.mParams.set(e,r)},t.prototype.getAllParams=function(){return this.mParams},t}();Oe.Request=zn});var $t=p(Y=>{"use strict";var Jn=Y&&Y.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Y,"__esModule",{value:!0});Y.PutLogsRequest=void 0;var Vn=Gt(),Wn=function(t){Jn(e,t);function e(r,n){var s=t.call(this)||this;return s.topic=r,s.logItems=n,s}return e.prototype.getFilename=function(){return this.logItems.getFilename()},e.prototype.setFilename=function(r){this.logItems.setFilename(r)},e.prototype.getTopic=function(){return this.topic},e.prototype.setTopic=function(r){this.topic=r},e.prototype.getSource=function(){return this.source},e.prototype.setSource=function(r){this.source=r},e.prototype.getLogItems=function(){return this.logItems},e.prototype.setlogItems=function(r){this.logItems=r},e.prototype.encodeLogItems=function(){return JSON.stringify(this.logItems)},e}(Vn.Request);Y.PutLogsRequest=Wn});var Je=p(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.Response=void 0;var Xn=function(){function t(){this.httpStatusCode=0,this.mHeaders={},this.errorCode="",this.errorMessage=""}return t.prototype.getHeader=function(e){return this.mHeaders[e]?this.mHeaders[e]:[]},t.prototype.setHttpStatusCode=function(e){this.httpStatusCode=e},t.prototype.setErrorCode=function(e){this.errorCode=e},t.prototype.setErrorMessage=function(e){this.errorMessage=e},t.prototype.getHttpStatusCode=function(){return this.httpStatusCode},t.prototype.getErrorCode=function(){return this.errorCode},t.prototype.getErrorMessage=function(){return this.errorMessage},t.prototype.setAllHeaders=function(e){this.mHeaders=e},t.prototype.getAllHeaders=function(){return this.mHeaders},t}();be.Response=Xn});var zt=p(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.LogGroup=Z.Log=void 0;var Yn=function(){function t(e){this.contents={},this.time=e}return t.prototype.setTime=function(e){this.time=e},t.prototype.getTime=function(){return this.time},t.prototype.addContent=function(e,r){this.contents[e]=r},t}();Z.Log=Yn;var Zn=function(){function t(e,r,n){this.logs=[],this.source=e,r!=null&&r!=null&&(this.filename=""),n!=null&&n!=null&&(this.contextflow="")}return t.prototype.setSource=function(e){this.source=e},t.prototype.getSource=function(){return this.source},t.prototype.setContextFlow=function(){this.contextflow=this.contextflow},t.prototype.getContextFlow=function(){return this.contextflow},t.prototype.setFilename=function(e){this.filename=e},t.prototype.getFilename=function(){return this.filename},t.prototype.setLogs=function(e){this.logs=e},t.prototype.getLogs=function(){return this.logs},t.prototype.addLog=function(e){this.logs.push(e)},t}();Z.LogGroup=Zn});var Jt=p(le=>{"use strict";var Kn=le&&le.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});var Qn=function(t){Kn(e,t);function e(r,n){n===void 0&&(n="");var s=t.call(this,r)||this;return s.requestId=n||"",s}return e.prototype.getMessage=function(){return this.message},e.prototype.getRequestId=function(){return this.requestId},e.prototype.toString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e.prototype.toLocaleString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e}(Error);le.default=Qn});var Vt=p(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.SORT=h.CONTEXT=h.LIMIT=h.QUERY_STRING=h.END_TIME=h.START_TIME=h.LOGSET_ID=h.TOPIC_IDS=h.CONST_LZ4=h.CONST_X_SLS_COMPRESSTYPE=h.CONST_MAX_PUT_SIZE=h.UPLOAD_LOG_RESOURCE_URI=h.TOPIC_ID=h.HTTP_SEND_TIME_OUT=h.HTTP_CONNECT_TIME_OUT=h.CONST_LOCAL_IP=h.UTF_8_ENCODING=h.CONST_MD5=h.CONST_HOST=h.CONST_X_SLS_REQUESTID=h.CONST_HTTP_METHOD_GET=h.CONST_HTTP_METHOD_POST=h.CONST_GZIP_ENCODING=h.CONST_AUTHORIZATION=h.CONST_CONTENT_LENGTH=h.CONST_JSON=h.CONST_PROTO_BUF=h.CONST_CONTENT_TYPE=void 0;h.CONST_CONTENT_TYPE="Content-Type";h.CONST_PROTO_BUF="application/x-protobuf";h.CONST_JSON="application/json";h.CONST_CONTENT_LENGTH="Content-Length";h.CONST_AUTHORIZATION="Authorization";h.CONST_GZIP_ENCODING="deflate";h.CONST_HTTP_METHOD_POST="POST";h.CONST_HTTP_METHOD_GET="GET";h.CONST_X_SLS_REQUESTID="x-log-requestid";h.CONST_HOST="Host";h.CONST_MD5="MD5";h.UTF_8_ENCODING="UTF-8";h.CONST_LOCAL_IP="127.0.0.1";h.HTTP_CONNECT_TIME_OUT=60*1e3;h.HTTP_SEND_TIME_OUT=60*1e3;h.TOPIC_ID="topic_id";h.UPLOAD_LOG_RESOURCE_URI="/tracklog";h.CONST_MAX_PUT_SIZE=1*1024*1024;h.CONST_X_SLS_COMPRESSTYPE="x-cls-compress-type";h.CONST_LZ4="lz4";h.TOPIC_IDS="topic_ids";h.LOGSET_ID="logset_id";h.START_TIME="start_time";h.END_TIME="end_time";h.QUERY_STRING="query_string";h.LIMIT="limit";h.CONTEXT="context";h.SORT="sort"});var Ve=p((ri,Wt)=>{"use strict";Wt.exports=function(e,r){return function(){for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];return e.apply(r,s)}}});var x=p((ni,Zt)=>{"use strict";var es=Ve(),$=Object.prototype.toString;function Ye(t){return $.call(t)==="[object Array]"}function We(t){return typeof t>"u"}function ts(t){return t!==null&&!We(t)&&t.constructor!==null&&!We(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function rs(t){return $.call(t)==="[object ArrayBuffer]"}function ns(t){return typeof FormData<"u"&&t instanceof FormData}function ss(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function os(t){return typeof t=="string"}function is(t){return typeof t=="number"}function Xt(t){return t!==null&&typeof t=="object"}function Re(t){if($.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function as(t){return $.call(t)==="[object Date]"}function us(t){return $.call(t)==="[object File]"}function cs(t){return $.call(t)==="[object Blob]"}function Yt(t){return $.call(t)==="[object Function]"}function fs(t){return Xt(t)&&Yt(t.pipe)}function ls(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function hs(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ds(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ze(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Ye(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.call(null,t[s],s,t)}function Xe(){var t={};function e(s,o){Re(t[o])&&Re(s)?t[o]=Xe(t[o],s):Re(s)?t[o]=Xe({},s):Ye(s)?t[o]=s.slice():t[o]=s}for(var r=0,n=arguments.length;r<n;r++)Ze(arguments[r],e);return t}function ps(t,e,r){return Ze(e,function(s,o){r&&typeof s=="function"?t[o]=es(s,r):t[o]=s}),t}function ms(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}Zt.exports={isArray:Ye,isArrayBuffer:rs,isBuffer:ts,isFormData:ns,isArrayBufferView:ss,isString:os,isNumber:is,isObject:Xt,isPlainObject:Re,isUndefined:We,isDate:as,isFile:us,isBlob:cs,isFunction:Yt,isStream:fs,isURLSearchParams:ls,isStandardBrowserEnv:ds,forEach:Ze,merge:Xe,extend:ps,trim:hs,stripBOM:ms}});var xe=p((si,Qt)=>{"use strict";var K=x();function Kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Qt.exports=function(e,r,n){if(!r)return e;var s;if(n)s=n(r);else if(K.isURLSearchParams(r))s=r.toString();else{var o=[];K.forEach(r,function(f,c){f===null||typeof f>"u"||(K.isArray(f)?c=c+"[]":f=[f],K.forEach(f,function(l){K.isDate(l)?l=l.toISOString():K.isObject(l)&&(l=JSON.stringify(l)),o.push(Kt(c)+"="+Kt(l))}))}),s=o.join("&")}if(s){var i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}});var tr=p((oi,er)=>{"use strict";var vs=x();function Se(){this.handlers=[]}Se.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Se.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Se.prototype.forEach=function(e){vs.forEach(this.handlers,function(n){n!==null&&e(n)})};er.exports=Se});var nr=p((ii,rr)=>{"use strict";var gs=x();rr.exports=function(e,r){gs.forEach(e,function(s,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(e[r]=s,delete e[o])})}});var qe=p((ai,sr)=>{"use strict";sr.exports=function(e,r,n,s,o){return e.config=r,n&&(e.code=n),e.request=s,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}});var Le=p((ui,or)=>{"use strict";var ys=qe();or.exports=function(e,r,n,s,o){var i=new Error(e);return ys(i,r,n,s,o)}});var Ke=p((ci,ir)=>{"use strict";var _s=Le();ir.exports=function(e,r,n){var s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):r(_s("Request failed with status code "+n.status,n.config,null,n.request,n))}});var ur=p((fi,ar)=>{"use strict";var Ie=x();ar.exports=Ie.isStandardBrowserEnv()?function(){return{write:function(r,n,s,o,i,u){var f=[];f.push(r+"="+encodeURIComponent(n)),Ie.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),Ie.isString(o)&&f.push("path="+o),Ie.isString(i)&&f.push("domain="+i),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var fr=p((li,cr)=>{"use strict";cr.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var hr=p((hi,lr)=>{"use strict";lr.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Qe=p((di,dr)=>{"use strict";var Cs=fr(),Ts=hr();dr.exports=function(e,r){return e&&!Cs(r)?Ts(e,r):r}});var mr=p((pi,pr)=>{"use strict";var et=x(),Es=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];pr.exports=function(e){var r={},n,s,o;return e&&et.forEach(e.split(`
4
- `),function(u){if(o=u.indexOf(":"),n=et.trim(u.substr(0,o)).toLowerCase(),s=et.trim(u.substr(o+1)),n){if(r[n]&&Es.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([s]):r[n]=r[n]?r[n]+", "+s:s}}),r}});var yr=p((mi,gr)=>{"use strict";var vr=x();gr.exports=vr.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function s(o){var i=o;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(i){var u=vr.isString(i)?s(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Q=p((vi,_r)=>{"use strict";function tt(t){this.message=t}tt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};tt.prototype.__CANCEL__=!0;_r.exports=tt});var Tr=p((gi,Cr)=>{"use strict";var Ne=x(),ws=Ke(),Os=ur(),bs=xe(),Rs=Qe(),xs=mr(),Ss=yr(),rt=Le(),qs=ee(),Ls=Q();Cr.exports=function(e){return new Promise(function(n,s){var o=e.data,i=e.headers,u=e.responseType,f;function c(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}Ne.isFormData(o)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+m)}var y=Rs(e.baseURL,e.url);a.open(e.method.toUpperCase(),bs(y,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function A(){if(a){var v="getAllResponseHeaders"in a?xs(a.getAllResponseHeaders()):null,C=!u||u==="text"||u==="json"?a.responseText:a.response,b={data:C,status:a.status,statusText:a.statusText,headers:v,config:e,request:a};ws(function(B){n(B),c()},function(B){s(B),c()},b),a=null}}if("onloadend"in a?a.onloadend=A:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(A)},a.onabort=function(){a&&(s(rt("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){s(rt("Network Error",e,null,a)),a=null},a.ontimeout=function(){var C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",b=e.transitional||qs.transitional;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),s(rt(C,e,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Ne.isStandardBrowserEnv()){var _=(e.withCredentials||Ss(y))&&e.xsrfCookieName?Os.read(e.xsrfCookieName):void 0;_&&(i[e.xsrfHeaderName]=_)}"setRequestHeader"in a&&Ne.forEach(i,function(C,b){typeof o>"u"&&b.toLowerCase()==="content-type"?delete i[b]:a.setRequestHeader(b,C)}),Ne.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),u&&u!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(v){a&&(s(!v||v&&v.type?new Ls("canceled"):v),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),o||(o=null),a.send(o)})}});var wr=p((yi,Er)=>{var te=1e3,re=te*60,ne=re*60,z=ne*24,Is=z*7,Ns=z*365.25;Er.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Ps(t);if(r==="number"&&isFinite(t))return e.long?As(t):Fs(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Ps(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ns;case"weeks":case"week":case"w":return r*Is;case"days":case"day":case"d":return r*z;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ne;case"minutes":case"minute":case"mins":case"min":case"m":return r*re;case"seconds":case"second":case"secs":case"sec":case"s":return r*te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Fs(t){var e=Math.abs(t);return e>=z?Math.round(t/z)+"d":e>=ne?Math.round(t/ne)+"h":e>=re?Math.round(t/re)+"m":e>=te?Math.round(t/te)+"s":t+"ms"}function As(t){var e=Math.abs(t);return e>=z?Pe(t,e,z,"day"):e>=ne?Pe(t,e,ne,"hour"):e>=re?Pe(t,e,re,"minute"):e>=te?Pe(t,e,te,"second"):t+" ms"}function Pe(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var nt=p((_i,Or)=>{function Us(t){r.debug=r,r.default=r,r.coerce=f,r.disable=i,r.enable=s,r.enabled=u,r.humanize=wr(),r.destroy=c,Object.keys(t).forEach(a=>{r[a]=t[a]}),r.names=[],r.skips=[],r.formatters={};function e(a){let l=0;for(let m=0;m<a.length;m++)l=(l<<5)-l+a.charCodeAt(m),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=e;function r(a){let l,m=null,y,A;function _(...v){if(!_.enabled)return;let C=_,b=Number(new Date),ie=b-(l||b);C.diff=ie,C.prev=l,C.curr=b,l=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let B=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(ae,N)=>{if(ae==="%%")return"%";B++;let U=r.formatters[N];if(typeof U=="function"){let _e=v[B];ae=U.call(C,_e),v.splice(B,1),B--}return ae}),r.formatArgs.call(C,v),(C.log||r.log).apply(C,v)}return _.namespace=a,_.useColors=r.useColors(),_.color=r.selectColor(a),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(y!==r.namespaces&&(y=r.namespaces,A=r.enabled(a)),A),set:v=>{m=v}}),typeof r.init=="function"&&r.init(_),_}function n(a,l){let m=r(this.namespace+(typeof l>"u"?":":l)+a);return m.log=this.log,m}function s(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let l=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of l)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function o(a,l){let m=0,y=0,A=-1,_=0;for(;m<a.length;)if(y<l.length&&(l[y]===a[m]||l[y]==="*"))l[y]==="*"?(A=y,_=m,y++):(m++,y++);else if(A!==-1)y=A+1,_++,m=_;else return!1;for(;y<l.length&&l[y]==="*";)y++;return y===l.length}function i(){let a=[...r.names,...r.skips.map(l=>"-"+l)].join(",");return r.enable(""),a}function u(a){for(let l of r.skips)if(o(a,l))return!1;for(let l of r.names)if(o(a,l))return!0;return!1}function f(a){return a instanceof Error?a.stack||a.message:a}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Or.exports=Us});var br=p((S,Fe)=>{S.formatArgs=Ds;S.save=Ms;S.load=js;S.useColors=Bs;S.storage=Hs();S.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();S.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Bs(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ds(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fe.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}S.log=console.debug||console.log||(()=>{});function Ms(t){try{t?S.storage.setItem("debug",t):S.storage.removeItem("debug")}catch{}}function js(){let t;try{t=S.storage.getItem("debug")||S.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Hs(){try{return localStorage}catch{}}Fe.exports=nt()(S);var{formatters:ks}=Fe.exports;ks.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var xr=p((Ci,Rr)=>{"use strict";Rr.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var Lr=p((Ti,qr)=>{"use strict";var Gs=require("os"),Sr=require("tty"),P=xr(),{env:T}=process,j;P("no-color")||P("no-colors")||P("color=false")||P("color=never")?j=0:(P("color")||P("colors")||P("color=true")||P("color=always"))&&(j=1);"FORCE_COLOR"in T&&(T.FORCE_COLOR==="true"?j=1:T.FORCE_COLOR==="false"?j=0:j=T.FORCE_COLOR.length===0?1:Math.min(parseInt(T.FORCE_COLOR,10),3));function st(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ot(t,e){if(j===0)return 0;if(P("color=16m")||P("color=full")||P("color=truecolor"))return 3;if(P("color=256"))return 2;if(t&&!e&&j===void 0)return 0;let r=j||0;if(T.TERM==="dumb")return r;if(process.platform==="win32"){let n=Gs.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in T)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in T)||T.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in T)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(T.TEAMCITY_VERSION)?1:0;if(T.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in T){let n=parseInt((T.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(T.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(T.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(T.TERM)||"COLORTERM"in T?1:r}function $s(t){let e=ot(t,t&&t.isTTY);return st(e)}qr.exports={supportsColor:$s,stdout:st(ot(!0,Sr.isatty(1))),stderr:st(ot(!0,Sr.isatty(2)))}});var Nr=p((E,Ue)=>{var zs=require("tty"),Ae=require("util");E.init=Ks;E.log=Xs;E.formatArgs=Vs;E.save=Ys;E.load=Zs;E.useColors=Js;E.destroy=Ae.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");E.colors=[6,2,3,4,5,1];try{let t=Lr();t&&(t.stderr||t).level>=2&&(E.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}E.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Js(){return"colors"in E.inspectOpts?!!E.inspectOpts.colors:zs.isatty(process.stderr.fd)}function Vs(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
3
+ var Un=Object.create;var jt=Object.defineProperty;var Bn=Object.getOwnPropertyDescriptor;var Dn=Object.getOwnPropertyNames;var Mn=Object.getPrototypeOf,jn=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Dn(e))!jn.call(t,s)&&s!==r&&jt(t,s,{get:()=>e[s],enumerable:!(n=Bn(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?Un(Mn(t)):{},Hn(e||!t||!t.__esModule?jt(r,"default",{value:t,enumerable:!0}):r,t));var kt=p(Ht=>{var d=Ht,{Buffer:Oe}=require("buffer"),kn=require("os");d.toBuffer=function(t,e,r){r=~~r;let n;if(this.isV4Format(t))n=e||Oe.alloc(r+4),t.split(/\./g).map(s=>{n[r++]=parseInt(s,10)&255});else if(this.isV6Format(t)){let s=t.split(":",8),o;for(o=0;o<s.length;o++){let i=this.isV4Format(s[o]),u;i&&(u=this.toBuffer(s[o]),s[o]=u.slice(0,2).toString("hex")),u&&++o<8&&s.splice(o,0,u.slice(2,4).toString("hex"))}if(s[0]==="")for(;s.length<8;)s.unshift("0");else if(s[s.length-1]==="")for(;s.length<8;)s.push("0");else if(s.length<8){for(o=0;o<s.length&&s[o]!=="";o++);let i=[o,1];for(o=9-s.length;o>0;o--)i.push("0");s.splice(...i)}for(n=e||Oe.alloc(r+16),o=0;o<s.length;o++){let i=parseInt(s[o],16);n[r++]=i>>8&255,n[r++]=i&255}}if(!n)throw Error(`Invalid ip address: ${t}`);return n};d.toString=function(t,e,r){e=~~e,r=r||t.length-e;let n=[];if(r===4){for(let s=0;s<r;s++)n.push(t[e+s]);n=n.join(".")}else if(r===16){for(let s=0;s<r;s+=2)n.push(t.readUInt16BE(e+s).toString(16));n=n.join(":"),n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),n=n.replace(/:{3,4}/,"::")}return n};var Gn=/^(\d{1,3}\.){3,3}\d{1,3}$/,$n=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;d.isV4Format=function(t){return Gn.test(t)};d.isV6Format=function(t){return $n.test(t)};function fe(t){return t===4?"ipv4":t===6?"ipv6":t?t.toLowerCase():"ipv4"}d.fromPrefixLen=function(t,e){t>32?e="ipv6":e=fe(e);let r=4;e==="ipv6"&&(r=16);let n=Oe.alloc(r);for(let s=0,o=n.length;s<o;++s){let i=8;t<8&&(i=t),t-=i,n[s]=~(255>>i)&255}return d.toString(n)};d.mask=function(t,e){t=d.toBuffer(t),e=d.toBuffer(e);let r=Oe.alloc(Math.max(t.length,e.length)),n;if(t.length===e.length)for(n=0;n<t.length;n++)r[n]=t[n]&e[n];else if(e.length===4)for(n=0;n<e.length;n++)r[n]=t[t.length-4+n]&e[n];else{for(n=0;n<r.length-6;n++)r[n]=0;for(r[10]=255,r[11]=255,n=0;n<t.length;n++)r[n+12]=t[n]&e[n+12];n+=12}for(;n<r.length;n++)r[n]=0;return d.toString(r)};d.cidr=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=d.fromPrefixLen(parseInt(e[1],10));return d.mask(r,n)};d.subnet=function(t,e){let r=d.toLong(d.mask(t,e)),n=d.toBuffer(e),s=0;for(let i=0;i<n.length;i++)if(n[i]===255)s+=8;else{let u=n[i]&255;for(;u;)u=u<<1&255,s++}let o=2**(32-s);return{networkAddress:d.fromLong(r),firstAddress:o<=2?d.fromLong(r):d.fromLong(r+1),lastAddress:o<=2?d.fromLong(r+o-1):d.fromLong(r+o-2),broadcastAddress:d.fromLong(r+o-1),subnetMask:e,subnetMaskLength:s,numHosts:o<=2?o:o-2,length:o,contains(i){return r===d.toLong(d.mask(i,e))}}};d.cidrSubnet=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=d.fromPrefixLen(parseInt(e[1],10));return d.subnet(r,n)};d.not=function(t){let e=d.toBuffer(t);for(let r=0;r<e.length;r++)e[r]=255^e[r];return d.toString(e)};d.or=function(t,e){if(t=d.toBuffer(t),e=d.toBuffer(e),t.length===e.length){for(let o=0;o<t.length;++o)t[o]|=e[o];return d.toString(t)}let r=t,n=e;e.length>t.length&&(r=e,n=t);let s=r.length-n.length;for(let o=s;o<r.length;++o)r[o]|=n[o-s];return d.toString(r)};d.isEqual=function(t,e){if(t=d.toBuffer(t),e=d.toBuffer(e),t.length===e.length){for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}if(e.length===4){let n=e;e=t,t=n}for(let n=0;n<10;n++)if(e[n]!==0)return!1;let r=e.readUInt16BE(10);if(r!==0&&r!==65535)return!1;for(let n=0;n<4;n++)if(t[n]!==e[n+12])return!1;return!0};d.isPrivate=function(t){if(d.isLoopback(t))return!0;if(!d.isV6Format(t)){let e=d.normalizeToLong(t);if(e<0)throw new Error("invalid ipv4 address");t=d.fromLong(e)}return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^f[cd][0-9a-f]{2}:/i.test(t)||/^fe80:/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};d.isPublic=function(t){return!d.isPrivate(t)};d.isLoopback=function(t){return!/\./.test(t)&&!/:/.test(t)&&(t=d.fromLong(Number(t))),/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(t)||/^0177\./.test(t)||/^0x7f\./i.test(t)||/^fe80::1$/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};d.loopback=function(t){if(t=fe(t),t!=="ipv4"&&t!=="ipv6")throw new Error("family must be ipv4 or ipv6");return t==="ipv4"?"127.0.0.1":"fe80::1"};d.address=function(t,e){let r=kn.networkInterfaces();if(e=fe(e),t&&t!=="private"&&t!=="public"){let s=r[t].filter(o=>fe(o.family)===e);return s.length===0?void 0:s[0].address}let n=Object.keys(r).map(s=>{let o=r[s].filter(i=>(i.family=fe(i.family),i.family!==e||d.isLoopback(i.address)?!1:t?t==="public"?d.isPrivate(i.address):d.isPublic(i.address):!0));return o.length?o[0].address:void 0}).filter(Boolean);return n.length?n[0]:d.loopback(e)};d.toLong=function(t){let e=0;return t.split(".").forEach(r=>{e<<=8,e+=parseInt(r)}),e>>>0};d.fromLong=function(t){return`${t>>>24}.${t>>16&255}.${t>>8&255}.${t&255}`};d.normalizeToLong=function(t){let e=t.split(".").map(s=>s.startsWith("0x")||s.startsWith("0X")?parseInt(s,16):s.startsWith("0")&&s!=="0"&&/^[0-7]+$/.test(s)?parseInt(s,8):/^[1-9]\d*$/.test(s)||s==="0"?parseInt(s,10):NaN);if(e.some(isNaN))return-1;let r=0;switch(e.length){case 1:r=e[0];break;case 2:if(e[0]>255||e[1]>16777215)return-1;r=e[0]<<24|e[1]&16777215;break;case 3:if(e[0]>255||e[1]>255||e[2]>65535)return-1;r=e[0]<<24|e[1]<<16|e[2]&65535;break;case 4:if(e.some(s=>s>255))return-1;r=e[0]<<24|e[1]<<16|e[2]<<8|e[3];break;default:return-1}return r>>>0}});var Gt=p(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.Request=void 0;var zn=function(){function t(){this.mParams=new Map}return t.prototype.getParam=function(e){return this.mParams.has(e)&&this.mParams.get(e)||""},t.prototype.setParam=function(e,r){r==null?this.mParams.set(e,""):this.mParams.set(e,r)},t.prototype.getAllParams=function(){return this.mParams},t}();we.Request=zn});var $t=p(Y=>{"use strict";var Jn=Y&&Y.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Y,"__esModule",{value:!0});Y.PutLogsRequest=void 0;var Vn=Gt(),Wn=function(t){Jn(e,t);function e(r,n){var s=t.call(this)||this;return s.topic=r,s.logItems=n,s}return e.prototype.getFilename=function(){return this.logItems.getFilename()},e.prototype.setFilename=function(r){this.logItems.setFilename(r)},e.prototype.getTopic=function(){return this.topic},e.prototype.setTopic=function(r){this.topic=r},e.prototype.getSource=function(){return this.source},e.prototype.setSource=function(r){this.source=r},e.prototype.getLogItems=function(){return this.logItems},e.prototype.setlogItems=function(r){this.logItems=r},e.prototype.encodeLogItems=function(){return JSON.stringify(this.logItems)},e}(Vn.Request);Y.PutLogsRequest=Wn});var Je=p(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.Response=void 0;var Xn=function(){function t(){this.httpStatusCode=0,this.mHeaders={},this.errorCode="",this.errorMessage=""}return t.prototype.getHeader=function(e){return this.mHeaders[e]?this.mHeaders[e]:[]},t.prototype.setHttpStatusCode=function(e){this.httpStatusCode=e},t.prototype.setErrorCode=function(e){this.errorCode=e},t.prototype.setErrorMessage=function(e){this.errorMessage=e},t.prototype.getHttpStatusCode=function(){return this.httpStatusCode},t.prototype.getErrorCode=function(){return this.errorCode},t.prototype.getErrorMessage=function(){return this.errorMessage},t.prototype.setAllHeaders=function(e){this.mHeaders=e},t.prototype.getAllHeaders=function(){return this.mHeaders},t}();be.Response=Xn});var zt=p(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.LogGroup=Z.Log=void 0;var Yn=function(){function t(e){this.contents={},this.time=e}return t.prototype.setTime=function(e){this.time=e},t.prototype.getTime=function(){return this.time},t.prototype.addContent=function(e,r){this.contents[e]=r},t}();Z.Log=Yn;var Zn=function(){function t(e,r,n){this.logs=[],this.source=e,r!=null&&r!=null&&(this.filename=""),n!=null&&n!=null&&(this.contextflow="")}return t.prototype.setSource=function(e){this.source=e},t.prototype.getSource=function(){return this.source},t.prototype.setContextFlow=function(){this.contextflow=this.contextflow},t.prototype.getContextFlow=function(){return this.contextflow},t.prototype.setFilename=function(e){this.filename=e},t.prototype.getFilename=function(){return this.filename},t.prototype.setLogs=function(e){this.logs=e},t.prototype.getLogs=function(){return this.logs},t.prototype.addLog=function(e){this.logs.push(e)},t}();Z.LogGroup=Zn});var Jt=p(le=>{"use strict";var Kn=le&&le.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});var Qn=function(t){Kn(e,t);function e(r,n){n===void 0&&(n="");var s=t.call(this,r)||this;return s.requestId=n||"",s}return e.prototype.getMessage=function(){return this.message},e.prototype.getRequestId=function(){return this.requestId},e.prototype.toString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e.prototype.toLocaleString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e}(Error);le.default=Qn});var Vt=p(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.SORT=h.CONTEXT=h.LIMIT=h.QUERY_STRING=h.END_TIME=h.START_TIME=h.LOGSET_ID=h.TOPIC_IDS=h.CONST_LZ4=h.CONST_X_SLS_COMPRESSTYPE=h.CONST_MAX_PUT_SIZE=h.UPLOAD_LOG_RESOURCE_URI=h.TOPIC_ID=h.HTTP_SEND_TIME_OUT=h.HTTP_CONNECT_TIME_OUT=h.CONST_LOCAL_IP=h.UTF_8_ENCODING=h.CONST_MD5=h.CONST_HOST=h.CONST_X_SLS_REQUESTID=h.CONST_HTTP_METHOD_GET=h.CONST_HTTP_METHOD_POST=h.CONST_GZIP_ENCODING=h.CONST_AUTHORIZATION=h.CONST_CONTENT_LENGTH=h.CONST_JSON=h.CONST_PROTO_BUF=h.CONST_CONTENT_TYPE=void 0;h.CONST_CONTENT_TYPE="Content-Type";h.CONST_PROTO_BUF="application/x-protobuf";h.CONST_JSON="application/json";h.CONST_CONTENT_LENGTH="Content-Length";h.CONST_AUTHORIZATION="Authorization";h.CONST_GZIP_ENCODING="deflate";h.CONST_HTTP_METHOD_POST="POST";h.CONST_HTTP_METHOD_GET="GET";h.CONST_X_SLS_REQUESTID="x-log-requestid";h.CONST_HOST="Host";h.CONST_MD5="MD5";h.UTF_8_ENCODING="UTF-8";h.CONST_LOCAL_IP="127.0.0.1";h.HTTP_CONNECT_TIME_OUT=60*1e3;h.HTTP_SEND_TIME_OUT=60*1e3;h.TOPIC_ID="topic_id";h.UPLOAD_LOG_RESOURCE_URI="/tracklog";h.CONST_MAX_PUT_SIZE=1*1024*1024;h.CONST_X_SLS_COMPRESSTYPE="x-cls-compress-type";h.CONST_LZ4="lz4";h.TOPIC_IDS="topic_ids";h.LOGSET_ID="logset_id";h.START_TIME="start_time";h.END_TIME="end_time";h.QUERY_STRING="query_string";h.LIMIT="limit";h.CONTEXT="context";h.SORT="sort"});var Ve=p((ri,Wt)=>{"use strict";Wt.exports=function(e,r){return function(){for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];return e.apply(r,s)}}});var x=p((ni,Zt)=>{"use strict";var es=Ve(),$=Object.prototype.toString;function Ye(t){return $.call(t)==="[object Array]"}function We(t){return typeof t>"u"}function ts(t){return t!==null&&!We(t)&&t.constructor!==null&&!We(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function rs(t){return $.call(t)==="[object ArrayBuffer]"}function ns(t){return typeof FormData<"u"&&t instanceof FormData}function ss(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function os(t){return typeof t=="string"}function is(t){return typeof t=="number"}function Xt(t){return t!==null&&typeof t=="object"}function Re(t){if($.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function as(t){return $.call(t)==="[object Date]"}function us(t){return $.call(t)==="[object File]"}function cs(t){return $.call(t)==="[object Blob]"}function Yt(t){return $.call(t)==="[object Function]"}function fs(t){return Xt(t)&&Yt(t.pipe)}function ls(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function hs(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ds(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ze(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Ye(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.call(null,t[s],s,t)}function Xe(){var t={};function e(s,o){Re(t[o])&&Re(s)?t[o]=Xe(t[o],s):Re(s)?t[o]=Xe({},s):Ye(s)?t[o]=s.slice():t[o]=s}for(var r=0,n=arguments.length;r<n;r++)Ze(arguments[r],e);return t}function ps(t,e,r){return Ze(e,function(s,o){r&&typeof s=="function"?t[o]=es(s,r):t[o]=s}),t}function ms(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}Zt.exports={isArray:Ye,isArrayBuffer:rs,isBuffer:ts,isFormData:ns,isArrayBufferView:ss,isString:os,isNumber:is,isObject:Xt,isPlainObject:Re,isUndefined:We,isDate:as,isFile:us,isBlob:cs,isFunction:Yt,isStream:fs,isURLSearchParams:ls,isStandardBrowserEnv:ds,forEach:Ze,merge:Xe,extend:ps,trim:hs,stripBOM:ms}});var xe=p((si,Qt)=>{"use strict";var K=x();function Kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Qt.exports=function(e,r,n){if(!r)return e;var s;if(n)s=n(r);else if(K.isURLSearchParams(r))s=r.toString();else{var o=[];K.forEach(r,function(l,c){l===null||typeof l>"u"||(K.isArray(l)?c=c+"[]":l=[l],K.forEach(l,function(f){K.isDate(f)?f=f.toISOString():K.isObject(f)&&(f=JSON.stringify(f)),o.push(Kt(c)+"="+Kt(f))}))}),s=o.join("&")}if(s){var i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}});var tr=p((oi,er)=>{"use strict";var vs=x();function Se(){this.handlers=[]}Se.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Se.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Se.prototype.forEach=function(e){vs.forEach(this.handlers,function(n){n!==null&&e(n)})};er.exports=Se});var nr=p((ii,rr)=>{"use strict";var gs=x();rr.exports=function(e,r){gs.forEach(e,function(s,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(e[r]=s,delete e[o])})}});var qe=p((ai,sr)=>{"use strict";sr.exports=function(e,r,n,s,o){return e.config=r,n&&(e.code=n),e.request=s,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}});var Le=p((ui,or)=>{"use strict";var ys=qe();or.exports=function(e,r,n,s,o){var i=new Error(e);return ys(i,r,n,s,o)}});var Ke=p((ci,ir)=>{"use strict";var _s=Le();ir.exports=function(e,r,n){var s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):r(_s("Request failed with status code "+n.status,n.config,null,n.request,n))}});var ur=p((fi,ar)=>{"use strict";var Ie=x();ar.exports=Ie.isStandardBrowserEnv()?function(){return{write:function(r,n,s,o,i,u){var l=[];l.push(r+"="+encodeURIComponent(n)),Ie.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),Ie.isString(o)&&l.push("path="+o),Ie.isString(i)&&l.push("domain="+i),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var fr=p((li,cr)=>{"use strict";cr.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var hr=p((hi,lr)=>{"use strict";lr.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Qe=p((di,dr)=>{"use strict";var Cs=fr(),Ts=hr();dr.exports=function(e,r){return e&&!Cs(r)?Ts(e,r):r}});var mr=p((pi,pr)=>{"use strict";var et=x(),Es=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];pr.exports=function(e){var r={},n,s,o;return e&&et.forEach(e.split(`
4
+ `),function(u){if(o=u.indexOf(":"),n=et.trim(u.substr(0,o)).toLowerCase(),s=et.trim(u.substr(o+1)),n){if(r[n]&&Es.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([s]):r[n]=r[n]?r[n]+", "+s:s}}),r}});var yr=p((mi,gr)=>{"use strict";var vr=x();gr.exports=vr.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function s(o){var i=o;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(i){var u=vr.isString(i)?s(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Q=p((vi,_r)=>{"use strict";function tt(t){this.message=t}tt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};tt.prototype.__CANCEL__=!0;_r.exports=tt});var Tr=p((gi,Cr)=>{"use strict";var Ne=x(),Os=Ke(),ws=ur(),bs=xe(),Rs=Qe(),xs=mr(),Ss=yr(),rt=Le(),qs=ee(),Ls=Q();Cr.exports=function(e){return new Promise(function(n,s){var o=e.data,i=e.headers,u=e.responseType,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}Ne.isFormData(o)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(f+":"+m)}var y=Rs(e.baseURL,e.url);a.open(e.method.toUpperCase(),bs(y,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function A(){if(a){var v="getAllResponseHeaders"in a?xs(a.getAllResponseHeaders()):null,C=!u||u==="text"||u==="json"?a.responseText:a.response,b={data:C,status:a.status,statusText:a.statusText,headers:v,config:e,request:a};Os(function(B){n(B),c()},function(B){s(B),c()},b),a=null}}if("onloadend"in a?a.onloadend=A:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(A)},a.onabort=function(){a&&(s(rt("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){s(rt("Network Error",e,null,a)),a=null},a.ontimeout=function(){var C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",b=e.transitional||qs.transitional;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),s(rt(C,e,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Ne.isStandardBrowserEnv()){var _=(e.withCredentials||Ss(y))&&e.xsrfCookieName?ws.read(e.xsrfCookieName):void 0;_&&(i[e.xsrfHeaderName]=_)}"setRequestHeader"in a&&Ne.forEach(i,function(C,b){typeof o>"u"&&b.toLowerCase()==="content-type"?delete i[b]:a.setRequestHeader(b,C)}),Ne.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),u&&u!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(l=function(v){a&&(s(!v||v&&v.type?new Ls("canceled"):v),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l))),o||(o=null),a.send(o)})}});var Or=p((yi,Er)=>{var te=1e3,re=te*60,ne=re*60,z=ne*24,Is=z*7,Ns=z*365.25;Er.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Ps(t);if(r==="number"&&isFinite(t))return e.long?As(t):Fs(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Ps(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ns;case"weeks":case"week":case"w":return r*Is;case"days":case"day":case"d":return r*z;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ne;case"minutes":case"minute":case"mins":case"min":case"m":return r*re;case"seconds":case"second":case"secs":case"sec":case"s":return r*te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Fs(t){var e=Math.abs(t);return e>=z?Math.round(t/z)+"d":e>=ne?Math.round(t/ne)+"h":e>=re?Math.round(t/re)+"m":e>=te?Math.round(t/te)+"s":t+"ms"}function As(t){var e=Math.abs(t);return e>=z?Pe(t,e,z,"day"):e>=ne?Pe(t,e,ne,"hour"):e>=re?Pe(t,e,re,"minute"):e>=te?Pe(t,e,te,"second"):t+" ms"}function Pe(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var nt=p((_i,wr)=>{function Us(t){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=s,r.enabled=u,r.humanize=Or(),r.destroy=c,Object.keys(t).forEach(a=>{r[a]=t[a]}),r.names=[],r.skips=[],r.formatters={};function e(a){let f=0;for(let m=0;m<a.length;m++)f=(f<<5)-f+a.charCodeAt(m),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(a){let f,m=null,y,A;function _(...v){if(!_.enabled)return;let C=_,b=Number(new Date),ie=b-(f||b);C.diff=ie,C.prev=f,C.curr=b,f=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let B=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(ae,N)=>{if(ae==="%%")return"%";B++;let U=r.formatters[N];if(typeof U=="function"){let _e=v[B];ae=U.call(C,_e),v.splice(B,1),B--}return ae}),r.formatArgs.call(C,v),(C.log||r.log).apply(C,v)}return _.namespace=a,_.useColors=r.useColors(),_.color=r.selectColor(a),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(y!==r.namespaces&&(y=r.namespaces,A=r.enabled(a)),A),set:v=>{m=v}}),typeof r.init=="function"&&r.init(_),_}function n(a,f){let m=r(this.namespace+(typeof f>"u"?":":f)+a);return m.log=this.log,m}function s(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let f=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of f)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function o(a,f){let m=0,y=0,A=-1,_=0;for(;m<a.length;)if(y<f.length&&(f[y]===a[m]||f[y]==="*"))f[y]==="*"?(A=y,_=m,y++):(m++,y++);else if(A!==-1)y=A+1,_++,m=_;else return!1;for(;y<f.length&&f[y]==="*";)y++;return y===f.length}function i(){let a=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),a}function u(a){for(let f of r.skips)if(o(a,f))return!1;for(let f of r.names)if(o(a,f))return!0;return!1}function l(a){return a instanceof Error?a.stack||a.message:a}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}wr.exports=Us});var br=p((S,Fe)=>{S.formatArgs=Ds;S.save=Ms;S.load=js;S.useColors=Bs;S.storage=Hs();S.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();S.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Bs(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ds(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fe.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}S.log=console.debug||console.log||(()=>{});function Ms(t){try{t?S.storage.setItem("debug",t):S.storage.removeItem("debug")}catch{}}function js(){let t;try{t=S.storage.getItem("debug")||S.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Hs(){try{return localStorage}catch{}}Fe.exports=nt()(S);var{formatters:ks}=Fe.exports;ks.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var xr=p((Ci,Rr)=>{"use strict";Rr.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var Lr=p((Ti,qr)=>{"use strict";var Gs=require("os"),Sr=require("tty"),P=xr(),{env:T}=process,j;P("no-color")||P("no-colors")||P("color=false")||P("color=never")?j=0:(P("color")||P("colors")||P("color=true")||P("color=always"))&&(j=1);"FORCE_COLOR"in T&&(T.FORCE_COLOR==="true"?j=1:T.FORCE_COLOR==="false"?j=0:j=T.FORCE_COLOR.length===0?1:Math.min(parseInt(T.FORCE_COLOR,10),3));function st(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ot(t,e){if(j===0)return 0;if(P("color=16m")||P("color=full")||P("color=truecolor"))return 3;if(P("color=256"))return 2;if(t&&!e&&j===void 0)return 0;let r=j||0;if(T.TERM==="dumb")return r;if(process.platform==="win32"){let n=Gs.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in T)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in T)||T.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in T)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(T.TEAMCITY_VERSION)?1:0;if(T.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in T){let n=parseInt((T.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(T.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(T.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(T.TERM)||"COLORTERM"in T?1:r}function $s(t){let e=ot(t,t&&t.isTTY);return st(e)}qr.exports={supportsColor:$s,stdout:st(ot(!0,Sr.isatty(1))),stderr:st(ot(!0,Sr.isatty(2)))}});var Nr=p((E,Ue)=>{var zs=require("tty"),Ae=require("util");E.init=Ks;E.log=Xs;E.formatArgs=Vs;E.save=Ys;E.load=Zs;E.useColors=Js;E.destroy=Ae.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");E.colors=[6,2,3,4,5,1];try{let t=Lr();t&&(t.stderr||t).level>=2&&(E.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}E.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Js(){return"colors"in E.inspectOpts?!!E.inspectOpts.colors:zs.isatty(process.stderr.fd)}function Vs(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
5
5
  `).join(`
6
6
  `+o),t.push(s+"m+"+Ue.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ws()+e+" "+t[0]}function Ws(){return E.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xs(...t){return process.stderr.write(Ae.formatWithOptions(E.inspectOpts,...t)+`
7
7
  `)}function Ys(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Zs(){return process.env.DEBUG}function Ks(t){t.inspectOpts={};let e=Object.keys(E.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=E.inspectOpts[e[r]]}Ue.exports=nt()(E);var{formatters:Ir}=Ue.exports;Ir.o=function(t){return this.inspectOpts.colors=this.useColors,Ae.inspect(t,this.inspectOpts).split(`
8
- `).map(e=>e.trim()).join(" ")};Ir.O=function(t){return this.inspectOpts.colors=this.useColors,Ae.inspect(t,this.inspectOpts)}});var Pr=p((Ei,it)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?it.exports=br():it.exports=Nr()});var Ar=p((wi,Fr)=>{var he;Fr.exports=function(){if(!he){try{he=Pr()("follow-redirects")}catch{}typeof he!="function"&&(he=function(){})}he.apply(null,arguments)}});var _t=p((Oi,yt)=>{var pe=require("url"),de=pe.URL,Qs=require("http"),eo=require("https"),lt=require("stream").Writable,ht=require("assert"),Ur=Ar();(function(){var e=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=V(Error.captureStackTrace);!e&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var dt=!1;try{ht(new de(""))}catch(t){dt=t.code==="ERR_INVALID_URL"}var to=["Authorization","Proxy-Authorization","Cookie"],ro=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],pt=["abort","aborted","connect","error","socket","timeout"],mt=Object.create(null);pt.forEach(function(t){mt[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var ut=me("ERR_INVALID_URL","Invalid URL",TypeError),ct=me("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),no=me("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ct),so=me("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),oo=me("ERR_STREAM_WRITE_AFTER_END","write after end"),io=lt.prototype.destroy||Dr;function q(t,e){lt.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(s){r.emit("error",s instanceof ct?s:new ct({cause:s}))}},this._headerFilter=new RegExp("^(?:"+to.concat(t.sensitiveHeaders).map(ho).join("|")+")$","i"),this._performRequest()}q.prototype=Object.create(lt.prototype);q.prototype.abort=function(){gt(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};q.prototype.destroy=function(t){return gt(this._currentRequest,t),io.call(this,t),this};q.prototype.write=function(t,e,r){if(this._ending)throw new oo;if(!J(t)&&!fo(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(V(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new so),this.abort())};q.prototype.end=function(t,e,r){if(V(t)?(r=t,t=e=null):V(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,s=this._currentRequest;this.write(t,e,function(){n._ended=!0,s.end(null,null,r)}),this._ending=!0}};q.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};q.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};q.prototype.setTimeout=function(t,e){var r=this;function n(i){i.setTimeout(t),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function s(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},t),n(i)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),r.removeListener("close",o),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",s)}return e&&this.on("timeout",e),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){q.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(q.prototype,t,{get:function(){return this._currentRequest[t]}})});q.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),co(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};q.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var s of pt)n.on(s,mt[s]);if(this._currentUrl=/^\//.test(this._options.path)?pe.format(this._options):this._options.path,this._isRedirect){var o=0,i=this,u=this._requestBodyBuffers;(function f(c){if(n===i._currentRequest)if(c)i.emit("error",c);else if(o<u.length){var a=u[o++];n.finished||n.write(a.data,a.encoding,f)}else i._ended&&n.end()})()}};q.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(gt(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new no;var n,s=this._options.beforeRedirect;s&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var o=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],at(/^content-/i,this._options.headers));var i=at(/^host$/i,this._options.headers),u=vt(this._currentUrl),f=i||u.host,c=/^\w+:/.test(r)?this._currentUrl:pe.format(Object.assign(u,{host:f})),a=ao(r,c);if(Ur("redirecting to",a.href),this._isRedirect=!0,ft(a,this._options),(a.protocol!==u.protocol&&a.protocol!=="https:"||a.host!==f&&!uo(a.host,f))&&at(this._headerFilter,this._options.headers),V(s)){var l={headers:t.headers,statusCode:e},m={url:c,method:o,headers:n};s(this._options,l,m),this._sanitizeOptions(this._options)}this._performRequest()};function Br(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var s=n+":",o=r[s]=t[n],i=e[n]=Object.create(o);function u(c,a,l){return lo(c)?c=ft(c):J(c)?c=ft(vt(c)):(l=a,a=Mr(c),c={protocol:s}),V(a)&&(l=a,a=null),a=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},c,a),a.nativeProtocols=r,!J(a.host)&&!J(a.hostname)&&(a.hostname="::1"),ht.equal(a.protocol,s,"protocol mismatch"),Ur("options",a),new q(a,l)}function f(c,a,l){var m=i.request(c,a,l);return m.end(),m}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:f,configurable:!0,enumerable:!0,writable:!0}})}),e}function Dr(){}function vt(t){var e;if(dt)e=new de(t);else if(e=Mr(pe.parse(t)),!J(e.protocol))throw new ut({input:t});return e}function ao(t,e){return dt?new de(t,e):vt(pe.resolve(e,t))}function Mr(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new ut({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new ut({input:t.href||t});return t}function ft(t,e){var r=e||{};for(var n of ro)r[n]=t[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function at(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function me(t,e,r){function n(s){V(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,s||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function gt(t,e){for(var r of pt)t.removeListener(r,mt[r]);t.on("error",Dr),t.destroy(e)}function uo(t,e){ht(J(t)&&J(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function co(t){return t instanceof Array}function J(t){return typeof t=="string"||t instanceof String}function V(t){return typeof t=="function"}function fo(t){return typeof t=="object"&&"length"in t}function lo(t){return de&&t instanceof de}function ho(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}yt.exports=Br({http:Qs,https:eo});yt.exports.wrap=Br});var Be=p((bi,jr)=>{jr.exports={version:"0.24.0"}});var Jr=p((Ri,zr)=>{"use strict";var ve=x(),Hr=Ke(),po=Qe(),mo=xe(),vo=require("http"),go=require("https"),yo=_t().http,_o=_t().https,kr=require("url"),Co=require("zlib"),To=Be().version,De=Le(),Ct=qe(),Eo=ee(),wo=Q(),Gr=/https:?/;function $r(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(o){o.headers.host=o.host,$r(o,e,o.href)}}zr.exports=function(e){return new Promise(function(n,s){var o;function i(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}var u=function(g){i(),n(g)},f=function(g){i(),s(g)},c=e.data,a=e.headers,l={};if(Object.keys(a).forEach(function(g){l[g.toLowerCase()]=g}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+To,c&&!ve.isStream(c)){if(!Buffer.isBuffer(c))if(ve.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else if(ve.isString(c))c=Buffer.from(c,"utf-8");else return f(De("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));l["content-length"]||(a["Content-Length"]=c.length)}var m=void 0;if(e.auth){var y=e.auth.username||"",A=e.auth.password||"";m=y+":"+A}var _=po(e.baseURL,e.url),v=kr.parse(_),C=v.protocol||"http:";if(!m&&v.auth){var b=v.auth.split(":"),ie=b[0]||"",B=b[1]||"";m=ie+":"+B}m&&l.authorization&&delete a[l.authorization];var $e=Gr.test(C),ae=$e?e.httpsAgent:e.httpAgent,N={path:mo(v.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:a,agent:ae,agents:{http:e.httpAgent,https:e.httpsAgent},auth:m};e.socketPath?N.socketPath=e.socketPath:(N.hostname=v.hostname,N.port=v.port);var U=e.proxy;if(!U&&U!==!1){var _e=C.slice(0,-1)+"_proxy",Nt=process.env[_e]||process.env[_e.toUpperCase()];if(Nt){var ue=kr.parse(Nt),Pt=process.env.no_proxy||process.env.NO_PROXY,Ft=!0;if(Pt){var An=Pt.split(",").map(function(g){return g.trim()});Ft=!An.some(function(g){return g?g==="*"||g[0]==="."&&v.hostname.substr(v.hostname.length-g.length)===g?!0:v.hostname===g:!1})}if(Ft&&(U={host:ue.hostname,port:ue.port,protocol:ue.protocol},ue.auth)){var At=ue.auth.split(":");U.auth={username:At[0],password:At[1]}}}}U&&(N.headers.host=v.hostname+(v.port?":"+v.port:""),$r(N,U,C+"//"+v.hostname+(v.port?":"+v.port:"")+N.path));var Ce,Ut=$e&&(U?Gr.test(U.protocol):!0);e.transport?Ce=e.transport:e.maxRedirects===0?Ce=Ut?go:vo:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),Ce=Ut?_o:yo),e.maxBodyLength>-1&&(N.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser);var R=Ce.request(N,function(g){if(!R.aborted){var G=g,Te=g.req||R;if(g.statusCode!==204&&Te.method!=="HEAD"&&e.decompress!==!1)switch(g.headers["content-encoding"]){case"gzip":case"compress":case"deflate":G=G.pipe(Co.createUnzip()),delete g.headers["content-encoding"];break}var Ee={status:g.statusCode,statusText:g.statusMessage,headers:g.headers,config:e,request:Te};if(e.responseType==="stream")Ee.data=G,Hr(u,f,Ee);else{var Bt=[],Dt=0;G.on("data",function(D){Bt.push(D),Dt+=D.length,e.maxContentLength>-1&&Dt>e.maxContentLength&&(G.destroy(),f(De("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Te)))}),G.on("error",function(D){R.aborted||f(Ct(D,e,null,Te))}),G.on("end",function(){var D=Buffer.concat(Bt);e.responseType!=="arraybuffer"&&(D=D.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(D=ve.stripBOM(D))),Ee.data=D,Hr(u,f,Ee)})}}});if(R.on("error",function(g){R.aborted&&g.code!=="ERR_FR_TOO_MANY_REDIRECTS"||f(Ct(g,e,null,R))}),e.timeout){var ze=parseInt(e.timeout,10);if(isNaN(ze)){f(De("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",R));return}R.setTimeout(ze,function(){R.abort();var g=e.transitional||Eo.transitional;f(De("timeout of "+ze+"ms exceeded",e,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",R))})}(e.cancelToken||e.signal)&&(o=function(L){R.aborted||(R.abort(),f(!L||L&&L.type?new wo("canceled"):L))},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))),ve.isStream(c)?c.on("error",function(g){f(Ct(g,e,null,R))}).pipe(R):R.end(c)})}});var ee=p((xi,Xr)=>{"use strict";var w=x(),Vr=nr(),Oo=qe(),bo={"Content-Type":"application/x-www-form-urlencoded"};function Wr(t,e){!w.isUndefined(t)&&w.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Ro(){var t;return typeof XMLHttpRequest<"u"?t=Tr():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Jr()),t}function xo(t,e,r){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Me={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Ro(),transformRequest:[function(e,r){return Vr(r,"Accept"),Vr(r,"Content-Type"),w.isFormData(e)||w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)?e:w.isArrayBufferView(e)?e.buffer:w.isURLSearchParams(e)?(Wr(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):w.isObject(e)||r&&r["Content-Type"]==="application/json"?(Wr(r,"application/json"),xo(e)):e}],transformResponse:[function(e){var r=this.transitional||Me.transitional,n=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||s&&w.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(o)throw i.name==="SyntaxError"?Oo(i,this,"E_JSON_PARSE"):i}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};w.forEach(["delete","get","head"],function(e){Me.headers[e]={}});w.forEach(["post","put","patch"],function(e){Me.headers[e]=w.merge(bo)});Xr.exports=Me});var Zr=p((Si,Yr)=>{"use strict";var So=x(),qo=ee();Yr.exports=function(e,r,n){var s=this||qo;return So.forEach(n,function(i){e=i.call(s,e,r)}),e}});var Tt=p((qi,Kr)=>{"use strict";Kr.exports=function(e){return!!(e&&e.__CANCEL__)}});var tn=p((Li,en)=>{"use strict";var Qr=x(),Et=Zr(),Lo=Tt(),Io=ee(),No=Q();function wt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new No("canceled")}en.exports=function(e){wt(e),e.headers=e.headers||{},e.data=Et.call(e,e.data,e.headers,e.transformRequest),e.headers=Qr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Qr.forEach(["delete","get","head","post","put","patch","common"],function(s){delete e.headers[s]});var r=e.adapter||Io.adapter;return r(e).then(function(s){return wt(e),s.data=Et.call(e,s.data,s.headers,e.transformResponse),s},function(s){return Lo(s)||(wt(e),s&&s.response&&(s.response.data=Et.call(e,s.response.data,s.response.headers,e.transformResponse))),Promise.reject(s)})}});var Ot=p((Ii,rn)=>{"use strict";var I=x();rn.exports=function(e,r){r=r||{};var n={};function s(a,l){return I.isPlainObject(a)&&I.isPlainObject(l)?I.merge(a,l):I.isPlainObject(l)?I.merge({},l):I.isArray(l)?l.slice():l}function o(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(e[a],r[a])}function i(a){if(!I.isUndefined(r[a]))return s(void 0,r[a])}function u(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(void 0,r[a])}function f(a){if(a in r)return s(e[a],r[a]);if(a in e)return s(void 0,e[a])}var c={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return I.forEach(Object.keys(e).concat(Object.keys(r)),function(l){var m=c[l]||o,y=m(l);I.isUndefined(y)&&m!==f||(n[l]=y)}),n}});var on=p((Ni,sn)=>{"use strict";var Po=Be().version,bt={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){bt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var nn={};bt.transitional=function(e,r,n){function s(o,i){return"[Axios v"+Po+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return function(o,i,u){if(e===!1)throw new Error(s(i," has been removed"+(r?" in "+r:"")));return r&&!nn[i]&&(nn[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,i,u):!0}};function Fo(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),s=n.length;s-- >0;){var o=n[s],i=e[o];if(i){var u=t[o],f=u===void 0||i(u,o,t);if(f!==!0)throw new TypeError("option "+o+" must be "+f);continue}if(r!==!0)throw Error("Unknown option "+o)}}sn.exports={assertOptions:Fo,validators:bt}});var hn=p((Pi,ln)=>{"use strict";var cn=x(),Ao=xe(),an=tr(),un=tn(),je=Ot(),fn=on(),se=fn.validators;function ge(t){this.defaults=t,this.interceptors={request:new an,response:new an}}ge.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=je(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&fn.assertOptions(r,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(s=s&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var i;if(!s){var u=[un,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var f=e;n.length;){var c=n.shift(),a=n.shift();try{f=c(f)}catch(l){a(l);break}}try{i=un(f)}catch(l){return Promise.reject(l)}for(;o.length;)i=i.then(o.shift(),o.shift());return i};ge.prototype.getUri=function(e){return e=je(this.defaults,e),Ao(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};cn.forEach(["delete","get","head","options"],function(e){ge.prototype[e]=function(r,n){return this.request(je(n||{},{method:e,url:r,data:(n||{}).data}))}});cn.forEach(["post","put","patch"],function(e){ge.prototype[e]=function(r,n,s){return this.request(je(s||{},{method:e,url:r,data:n}))}});ln.exports=ge});var pn=p((Fi,dn)=>{"use strict";var Uo=Q();function oe(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(s){e=s});var r=this;this.promise.then(function(n){if(r._listeners){var s,o=r._listeners.length;for(s=0;s<o;s++)r._listeners[s](n);r._listeners=null}}),this.promise.then=function(n){var s,o=new Promise(function(i){r.subscribe(i),s=i}).then(n);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s){r.reason||(r.reason=new Uo(s),e(r.reason))})}oe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};oe.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};oe.prototype.unsubscribe=function(e){if(this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};oe.source=function(){var e,r=new oe(function(s){e=s});return{token:r,cancel:e}};dn.exports=oe});var vn=p((Ai,mn)=>{"use strict";mn.exports=function(e){return function(n){return e.apply(null,n)}}});var yn=p((Ui,gn)=>{"use strict";gn.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Tn=p((Bi,Rt)=>{"use strict";var _n=x(),Bo=Ve(),He=hn(),Do=Ot(),Mo=ee();function Cn(t){var e=new He(t),r=Bo(He.prototype.request,e);return _n.extend(r,He.prototype,e),_n.extend(r,e),r.create=function(s){return Cn(Do(t,s))},r}var M=Cn(Mo);M.Axios=He;M.Cancel=Q();M.CancelToken=pn();M.isCancel=Tt();M.VERSION=Be().version;M.all=function(e){return Promise.all(e)};M.spread=vn();M.isAxiosError=yn();Rt.exports=M;Rt.exports.default=M});var wn=p((Di,En)=>{En.exports=Tn()});var Rn=p(H=>{"use strict";var On=H&&H.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(a){try{c(n.next(a))}catch(l){i(l)}}function f(a){try{c(n.throw(a))}catch(l){i(l)}}function c(a){a.done?o(a.value):s(a.value).then(u,f)}c((n=n.apply(t,e||[])).next())})},bn=H&&H.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(a){return f([c,a])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(o=c[0]&2?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(a){c=[6,a],s=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(H,"__esModule",{value:!0});H.AsyncClient=void 0;var ye=Jt(),W=Vt(),jo=wn(),xt=Je(),Ho=function(){function t(e){if(e==null||e==null)throw new ye.default("AsyncClientOptions invalid");if(e.endpoint==null||e.endpoint==null||e.endpoint.length==0)throw new ye.default("options endpoint can not be empty");for(this.retry_times=e.retry_times,(e.retry_times==0||e.retry_times==null||e.retry_times==null)&&(this.retry_times=5),e.endpoint.startsWith("http://")?(this.hostName=e.endpoint.substring(7),this.httpType="http://"):e.endpoint.startsWith("https://")?(this.hostName=e.endpoint.substring(8),this.httpType="https://"):(this.hostName=e.endpoint,this.httpType="http://");this.hostName.endsWith("/");)this.hostName=this.hostName.substring(0,this.hostName.length-1)}return t.prototype.PutLogs=function(e){return On(this,void 0,void 0,function(){var r,n,s,o,f,i,u,f,f;return bn(this,function(c){switch(c.label){case 0:if(r=e.encodeLogItems(),r.length>W.CONST_MAX_PUT_SIZE)throw new ye.default("InvalidLogSize. logItems' size exceeds maximum limitation : "+W.CONST_MAX_PUT_SIZE+" bytes, logBytes="+r.length+", topic="+e.getTopic());n=this.getCommonHeadPara(W.CONST_JSON),e.setParam(W.TOPIC_ID,e.getTopic()),s=0,c.label=1;case 1:if(!(s<this.retry_times))return[3,6];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.sendLogs(W.UPLOAD_LOG_RESOURCE_URI,n,r,e.getTopic())];case 3:if(o=c.sent(),f=new xt.Response,f.setAllHeaders(o.headers),f.setHttpStatusCode(o.status),f.getHttpStatusCode()==200)return[2,f];if(s+1>=this.retry_times)throw new ye.default("send log failed and exceed retry times");return[3,5];case 4:if(i=c.sent(),u="",i.response&&i.response.headers&&(u=i.response.headers["x-cls-requestid"]),i.response&&i.response.status==413)return f=new xt.Response,f.setAllHeaders(i.response.headers),f.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&f.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&f.setErrorMessage(i.response.data.errormessage),[2,f];if(s+1>=this.retry_times)throw f=new xt.Response,i.response&&(f.setAllHeaders(i.response.headers),f.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&f.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&f.setErrorMessage(i.response.data.errormessage)),new ye.default("send log failed and exceed retry times. reason: "+JSON.stringify(f)+", error: "+i.message+".",u);return[3,5];case 5:return s++,[3,1];case 6:return[2]}})})},t.prototype.sendLogs=function(e,r,n,s){return On(this,void 0,void 0,function(){var o,i,u;return bn(this,function(f){return o=this.stringToArrayBuffer(n),i=new Uint8Array(o),u={},r.forEach(function(c,a){u[a]=c}),[2,jo.default({url:this.httpType+this.hostName+e+"?"+W.TOPIC_ID+"="+s,method:"post",data:i,headers:u})]})})},t.prototype.getCommonHeadPara=function(e){var r=new Map;return r.set(W.CONST_CONTENT_TYPE,e),r},t.prototype.stringToArrayBuffer=function(e){var r=new Array,n,s;n=e.length;for(var o=0;o<n;o++)s=e.charCodeAt(o),s>=65536&&s<=1114111?(r.push(s>>18&7|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)):s>=2048&&s<=65535?(r.push(s>>12&15|224),r.push(s>>6&63|128),r.push(s&63|128)):s>=128&&s<=2047?(r.push(s>>6&31|192),r.push(s&63|128)):r.push(s&255);var i=new Int8Array(r.length);for(var u in r)i[u]=r[u];return i.buffer},t}();H.AsyncClient=Ho});var Sn=p(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.AsyncClient=F.Log=F.LogGroup=F.Response=F.PutLogsRequest=void 0;var ko=$t();Object.defineProperty(F,"PutLogsRequest",{enumerable:!0,get:function(){return ko.PutLogsRequest}});var Go=Je();Object.defineProperty(F,"Response",{enumerable:!0,get:function(){return Go.Response}});var xn=zt();Object.defineProperty(F,"LogGroup",{enumerable:!0,get:function(){return xn.LogGroup}});Object.defineProperty(F,"Log",{enumerable:!0,get:function(){return xn.Log}});var $o=Rn();Object.defineProperty(F,"AsyncClient",{enumerable:!0,get:function(){return $o.AsyncClient}})});var Pn=require("child_process"),Fn=ce(require("path"));var Nn=ce(kt()),k=ce(Sn());var qn=ce(require("crypto")),Ge=new Uint8Array(256),ke=Ge.length;function St(){return ke>Ge.length-16&&(qn.default.randomFillSync(Ge),ke=0),Ge.slice(ke,ke+=16)}var O=[];for(let t=0;t<256;++t)O.push((t+256).toString(16).slice(1));function Ln(t,e=0){return O[t[e+0]]+O[t[e+1]]+O[t[e+2]]+O[t[e+3]]+"-"+O[t[e+4]]+O[t[e+5]]+"-"+O[t[e+6]]+O[t[e+7]]+"-"+O[t[e+8]]+O[t[e+9]]+"-"+O[t[e+10]]+O[t[e+11]]+O[t[e+12]]+O[t[e+13]]+O[t[e+14]]+O[t[e+15]]}var In=ce(require("crypto")),qt={randomUUID:In.default.randomUUID};function zo(t,e,r){if(qt.randomUUID&&!e&&!t)return qt.randomUUID();t=t||{};let n=t.random||(t.rng||St)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let s=0;s<16;++s)e[r+s]=n[s];return e}return Ln(n)}var Lt=zo;var It=class{localIp;topicId;endpoint;client;logs=[];runId="";constructor(){this.localIp=Nn.default.address(),this.setRegion(!0)}setRunId(e){this.runId=e}setRegion(e){e?(this.endpoint="ap-nanjing.cls.tencentcs.com",this.topicId="4c6502d3-1134-4f2f-8359-157a8c5184cd"):(this.endpoint="ap-singapore.cls.tencentcs.com",this.topicId="589425db-bf02-4810-ae91-fe66daf63dc3"),this.client=new k.AsyncClient({endpoint:this.endpoint,retry_times:1})}add(e,r){try{let n=new k.Log(Date.now());n.addContent("id",Lt()),n.addContent("source",this.localIp);let s=null;if(typeof r=="string")try{s=JSON.parse(r)}catch{}if(s&&typeof s=="object"){!this.runId&&typeof s.run_id=="string"&&(this.runId=s.run_id),this.runId&&!s.run_id&&(s.run_id=this.runId);for(let[o,i]of Object.entries(s))i!=null&&n.addContent(o,String(i))}else this.runId&&n.addContent("run_id",this.runId),n.addContent(e,String(r));this.logs.push(n)}catch{}}async report(){try{if(this.logs.length===0)return;let e=this.logs.splice(0),r=new k.LogGroup(this.localIp);for(let s of e)r.addLog(s);let n=new k.PutLogsRequest(this.topicId,r);await this.client.PutLogs(n)}catch{}}},Jo=new It,X=Jo;function Vo(){let t=Date.now(),e=null;process.removeAllListeners("warning"),process.on("warning",n=>{n.name!=="DeprecationWarning"&&console.warn(n.message)});let r=(0,Pn.spawn)(process.execPath,["--no-warnings","--no-deprecation","--experimental-vm-modules",...process.execArgv,Fn.default.join(__dirname,"../edgeone-dist/cli.js"),...process.argv.slice(2)],{stdio:["inherit","inherit","inherit","ipc"]});process.on("SIGINT",()=>{e="sigint",r.kill("SIGTERM")}),process.on("SIGTERM",()=>{e="sigterm",r.kill("SIGTERM")}),r.on("message",n=>{try{let s=JSON.parse(n),{name:o,value:i,isDomestic:u}=s;o&&i&&X.add(o,i),typeof u<"u"&&X.setRegion(u)}catch{}}),r.on("exit",(n,s)=>{let o=n!=null?n:s?1:0,i=Date.now()-t,u="success";e?u=e:s?u=s.toLowerCase():o!==0&&(u="fail");let f=JSON.stringify({event_name:"CLI:Exit",event_scope:"exit",event_result:o===0?"success":"fail",final_result:o===0?"success":"fail",termination_reason:u,exit_code:o,duration_ms:i});X.add("CLI:Exit",f),X.report().then(()=>{process.exit(o)}).catch(()=>{process.exit(o)})}),r.on("error",n=>{let s=JSON.stringify({event_name:"CLI:Process Error",event_scope:"exit",event_result:"fail",termination_reason:"uncaught_exception",error_message:n!=null&&n.message?n.message.slice(0,500):"child process error"});X.add("CLI:Process Error",s),X.report().then(()=>{process.exit(1)}).catch(()=>{process.exit(1)})})}Vo();
8
+ `).map(e=>e.trim()).join(" ")};Ir.O=function(t){return this.inspectOpts.colors=this.useColors,Ae.inspect(t,this.inspectOpts)}});var Pr=p((Ei,it)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?it.exports=br():it.exports=Nr()});var Ar=p((Oi,Fr)=>{var he;Fr.exports=function(){if(!he){try{he=Pr()("follow-redirects")}catch{}typeof he!="function"&&(he=function(){})}he.apply(null,arguments)}});var _t=p((wi,yt)=>{var pe=require("url"),de=pe.URL,Qs=require("http"),eo=require("https"),lt=require("stream").Writable,ht=require("assert"),Ur=Ar();(function(){var e=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=V(Error.captureStackTrace);!e&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var dt=!1;try{ht(new de(""))}catch(t){dt=t.code==="ERR_INVALID_URL"}var to=["Authorization","Proxy-Authorization","Cookie"],ro=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],pt=["abort","aborted","connect","error","socket","timeout"],mt=Object.create(null);pt.forEach(function(t){mt[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var ut=me("ERR_INVALID_URL","Invalid URL",TypeError),ct=me("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),no=me("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ct),so=me("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),oo=me("ERR_STREAM_WRITE_AFTER_END","write after end"),io=lt.prototype.destroy||Dr;function q(t,e){lt.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(s){r.emit("error",s instanceof ct?s:new ct({cause:s}))}},this._headerFilter=new RegExp("^(?:"+to.concat(t.sensitiveHeaders).map(ho).join("|")+")$","i"),this._performRequest()}q.prototype=Object.create(lt.prototype);q.prototype.abort=function(){gt(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};q.prototype.destroy=function(t){return gt(this._currentRequest,t),io.call(this,t),this};q.prototype.write=function(t,e,r){if(this._ending)throw new oo;if(!J(t)&&!fo(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(V(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new so),this.abort())};q.prototype.end=function(t,e,r){if(V(t)?(r=t,t=e=null):V(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,s=this._currentRequest;this.write(t,e,function(){n._ended=!0,s.end(null,null,r)}),this._ending=!0}};q.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};q.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};q.prototype.setTimeout=function(t,e){var r=this;function n(i){i.setTimeout(t),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function s(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},t),n(i)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),r.removeListener("close",o),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",s)}return e&&this.on("timeout",e),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){q.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(q.prototype,t,{get:function(){return this._currentRequest[t]}})});q.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),co(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};q.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var s of pt)n.on(s,mt[s]);if(this._currentUrl=/^\//.test(this._options.path)?pe.format(this._options):this._options.path,this._isRedirect){var o=0,i=this,u=this._requestBodyBuffers;(function l(c){if(n===i._currentRequest)if(c)i.emit("error",c);else if(o<u.length){var a=u[o++];n.finished||n.write(a.data,a.encoding,l)}else i._ended&&n.end()})()}};q.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(gt(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new no;var n,s=this._options.beforeRedirect;s&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var o=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],at(/^content-/i,this._options.headers));var i=at(/^host$/i,this._options.headers),u=vt(this._currentUrl),l=i||u.host,c=/^\w+:/.test(r)?this._currentUrl:pe.format(Object.assign(u,{host:l})),a=ao(r,c);if(Ur("redirecting to",a.href),this._isRedirect=!0,ft(a,this._options),(a.protocol!==u.protocol&&a.protocol!=="https:"||a.host!==l&&!uo(a.host,l))&&at(this._headerFilter,this._options.headers),V(s)){var f={headers:t.headers,statusCode:e},m={url:c,method:o,headers:n};s(this._options,f,m),this._sanitizeOptions(this._options)}this._performRequest()};function Br(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var s=n+":",o=r[s]=t[n],i=e[n]=Object.create(o);function u(c,a,f){return lo(c)?c=ft(c):J(c)?c=ft(vt(c)):(f=a,a=Mr(c),c={protocol:s}),V(a)&&(f=a,a=null),a=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},c,a),a.nativeProtocols=r,!J(a.host)&&!J(a.hostname)&&(a.hostname="::1"),ht.equal(a.protocol,s,"protocol mismatch"),Ur("options",a),new q(a,f)}function l(c,a,f){var m=i.request(c,a,f);return m.end(),m}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function Dr(){}function vt(t){var e;if(dt)e=new de(t);else if(e=Mr(pe.parse(t)),!J(e.protocol))throw new ut({input:t});return e}function ao(t,e){return dt?new de(t,e):vt(pe.resolve(e,t))}function Mr(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new ut({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new ut({input:t.href||t});return t}function ft(t,e){var r=e||{};for(var n of ro)r[n]=t[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function at(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function me(t,e,r){function n(s){V(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,s||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function gt(t,e){for(var r of pt)t.removeListener(r,mt[r]);t.on("error",Dr),t.destroy(e)}function uo(t,e){ht(J(t)&&J(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function co(t){return t instanceof Array}function J(t){return typeof t=="string"||t instanceof String}function V(t){return typeof t=="function"}function fo(t){return typeof t=="object"&&"length"in t}function lo(t){return de&&t instanceof de}function ho(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}yt.exports=Br({http:Qs,https:eo});yt.exports.wrap=Br});var Be=p((bi,jr)=>{jr.exports={version:"0.24.0"}});var Jr=p((Ri,zr)=>{"use strict";var ve=x(),Hr=Ke(),po=Qe(),mo=xe(),vo=require("http"),go=require("https"),yo=_t().http,_o=_t().https,kr=require("url"),Co=require("zlib"),To=Be().version,De=Le(),Ct=qe(),Eo=ee(),Oo=Q(),Gr=/https:?/;function $r(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(o){o.headers.host=o.host,$r(o,e,o.href)}}zr.exports=function(e){return new Promise(function(n,s){var o;function i(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}var u=function(g){i(),n(g)},l=function(g){i(),s(g)},c=e.data,a=e.headers,f={};if(Object.keys(a).forEach(function(g){f[g.toLowerCase()]=g}),"user-agent"in f?a[f["user-agent"]]||delete a[f["user-agent"]]:a["User-Agent"]="axios/"+To,c&&!ve.isStream(c)){if(!Buffer.isBuffer(c))if(ve.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else if(ve.isString(c))c=Buffer.from(c,"utf-8");else return l(De("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));f["content-length"]||(a["Content-Length"]=c.length)}var m=void 0;if(e.auth){var y=e.auth.username||"",A=e.auth.password||"";m=y+":"+A}var _=po(e.baseURL,e.url),v=kr.parse(_),C=v.protocol||"http:";if(!m&&v.auth){var b=v.auth.split(":"),ie=b[0]||"",B=b[1]||"";m=ie+":"+B}m&&f.authorization&&delete a[f.authorization];var $e=Gr.test(C),ae=$e?e.httpsAgent:e.httpAgent,N={path:mo(v.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:a,agent:ae,agents:{http:e.httpAgent,https:e.httpsAgent},auth:m};e.socketPath?N.socketPath=e.socketPath:(N.hostname=v.hostname,N.port=v.port);var U=e.proxy;if(!U&&U!==!1){var _e=C.slice(0,-1)+"_proxy",Nt=process.env[_e]||process.env[_e.toUpperCase()];if(Nt){var ue=kr.parse(Nt),Pt=process.env.no_proxy||process.env.NO_PROXY,Ft=!0;if(Pt){var An=Pt.split(",").map(function(g){return g.trim()});Ft=!An.some(function(g){return g?g==="*"||g[0]==="."&&v.hostname.substr(v.hostname.length-g.length)===g?!0:v.hostname===g:!1})}if(Ft&&(U={host:ue.hostname,port:ue.port,protocol:ue.protocol},ue.auth)){var At=ue.auth.split(":");U.auth={username:At[0],password:At[1]}}}}U&&(N.headers.host=v.hostname+(v.port?":"+v.port:""),$r(N,U,C+"//"+v.hostname+(v.port?":"+v.port:"")+N.path));var Ce,Ut=$e&&(U?Gr.test(U.protocol):!0);e.transport?Ce=e.transport:e.maxRedirects===0?Ce=Ut?go:vo:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),Ce=Ut?_o:yo),e.maxBodyLength>-1&&(N.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser);var R=Ce.request(N,function(g){if(!R.aborted){var G=g,Te=g.req||R;if(g.statusCode!==204&&Te.method!=="HEAD"&&e.decompress!==!1)switch(g.headers["content-encoding"]){case"gzip":case"compress":case"deflate":G=G.pipe(Co.createUnzip()),delete g.headers["content-encoding"];break}var Ee={status:g.statusCode,statusText:g.statusMessage,headers:g.headers,config:e,request:Te};if(e.responseType==="stream")Ee.data=G,Hr(u,l,Ee);else{var Bt=[],Dt=0;G.on("data",function(D){Bt.push(D),Dt+=D.length,e.maxContentLength>-1&&Dt>e.maxContentLength&&(G.destroy(),l(De("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Te)))}),G.on("error",function(D){R.aborted||l(Ct(D,e,null,Te))}),G.on("end",function(){var D=Buffer.concat(Bt);e.responseType!=="arraybuffer"&&(D=D.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(D=ve.stripBOM(D))),Ee.data=D,Hr(u,l,Ee)})}}});if(R.on("error",function(g){R.aborted&&g.code!=="ERR_FR_TOO_MANY_REDIRECTS"||l(Ct(g,e,null,R))}),e.timeout){var ze=parseInt(e.timeout,10);if(isNaN(ze)){l(De("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",R));return}R.setTimeout(ze,function(){R.abort();var g=e.transitional||Eo.transitional;l(De("timeout of "+ze+"ms exceeded",e,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",R))})}(e.cancelToken||e.signal)&&(o=function(L){R.aborted||(R.abort(),l(!L||L&&L.type?new Oo("canceled"):L))},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))),ve.isStream(c)?c.on("error",function(g){l(Ct(g,e,null,R))}).pipe(R):R.end(c)})}});var ee=p((xi,Xr)=>{"use strict";var O=x(),Vr=nr(),wo=qe(),bo={"Content-Type":"application/x-www-form-urlencoded"};function Wr(t,e){!O.isUndefined(t)&&O.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Ro(){var t;return typeof XMLHttpRequest<"u"?t=Tr():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Jr()),t}function xo(t,e,r){if(O.isString(t))try{return(e||JSON.parse)(t),O.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Me={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Ro(),transformRequest:[function(e,r){return Vr(r,"Accept"),Vr(r,"Content-Type"),O.isFormData(e)||O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)?e:O.isArrayBufferView(e)?e.buffer:O.isURLSearchParams(e)?(Wr(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):O.isObject(e)||r&&r["Content-Type"]==="application/json"?(Wr(r,"application/json"),xo(e)):e}],transformResponse:[function(e){var r=this.transitional||Me.transitional,n=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||s&&O.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(o)throw i.name==="SyntaxError"?wo(i,this,"E_JSON_PARSE"):i}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};O.forEach(["delete","get","head"],function(e){Me.headers[e]={}});O.forEach(["post","put","patch"],function(e){Me.headers[e]=O.merge(bo)});Xr.exports=Me});var Zr=p((Si,Yr)=>{"use strict";var So=x(),qo=ee();Yr.exports=function(e,r,n){var s=this||qo;return So.forEach(n,function(i){e=i.call(s,e,r)}),e}});var Tt=p((qi,Kr)=>{"use strict";Kr.exports=function(e){return!!(e&&e.__CANCEL__)}});var tn=p((Li,en)=>{"use strict";var Qr=x(),Et=Zr(),Lo=Tt(),Io=ee(),No=Q();function Ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new No("canceled")}en.exports=function(e){Ot(e),e.headers=e.headers||{},e.data=Et.call(e,e.data,e.headers,e.transformRequest),e.headers=Qr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Qr.forEach(["delete","get","head","post","put","patch","common"],function(s){delete e.headers[s]});var r=e.adapter||Io.adapter;return r(e).then(function(s){return Ot(e),s.data=Et.call(e,s.data,s.headers,e.transformResponse),s},function(s){return Lo(s)||(Ot(e),s&&s.response&&(s.response.data=Et.call(e,s.response.data,s.response.headers,e.transformResponse))),Promise.reject(s)})}});var wt=p((Ii,rn)=>{"use strict";var I=x();rn.exports=function(e,r){r=r||{};var n={};function s(a,f){return I.isPlainObject(a)&&I.isPlainObject(f)?I.merge(a,f):I.isPlainObject(f)?I.merge({},f):I.isArray(f)?f.slice():f}function o(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(e[a],r[a])}function i(a){if(!I.isUndefined(r[a]))return s(void 0,r[a])}function u(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(void 0,r[a])}function l(a){if(a in r)return s(e[a],r[a]);if(a in e)return s(void 0,e[a])}var c={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l};return I.forEach(Object.keys(e).concat(Object.keys(r)),function(f){var m=c[f]||o,y=m(f);I.isUndefined(y)&&m!==l||(n[f]=y)}),n}});var on=p((Ni,sn)=>{"use strict";var Po=Be().version,bt={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){bt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var nn={};bt.transitional=function(e,r,n){function s(o,i){return"[Axios v"+Po+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return function(o,i,u){if(e===!1)throw new Error(s(i," has been removed"+(r?" in "+r:"")));return r&&!nn[i]&&(nn[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,i,u):!0}};function Fo(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),s=n.length;s-- >0;){var o=n[s],i=e[o];if(i){var u=t[o],l=u===void 0||i(u,o,t);if(l!==!0)throw new TypeError("option "+o+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+o)}}sn.exports={assertOptions:Fo,validators:bt}});var hn=p((Pi,ln)=>{"use strict";var cn=x(),Ao=xe(),an=tr(),un=tn(),je=wt(),fn=on(),se=fn.validators;function ge(t){this.defaults=t,this.interceptors={request:new an,response:new an}}ge.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=je(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&fn.assertOptions(r,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(s=s&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var i;if(!s){var u=[un,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var l=e;n.length;){var c=n.shift(),a=n.shift();try{l=c(l)}catch(f){a(f);break}}try{i=un(l)}catch(f){return Promise.reject(f)}for(;o.length;)i=i.then(o.shift(),o.shift());return i};ge.prototype.getUri=function(e){return e=je(this.defaults,e),Ao(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};cn.forEach(["delete","get","head","options"],function(e){ge.prototype[e]=function(r,n){return this.request(je(n||{},{method:e,url:r,data:(n||{}).data}))}});cn.forEach(["post","put","patch"],function(e){ge.prototype[e]=function(r,n,s){return this.request(je(s||{},{method:e,url:r,data:n}))}});ln.exports=ge});var pn=p((Fi,dn)=>{"use strict";var Uo=Q();function oe(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(s){e=s});var r=this;this.promise.then(function(n){if(r._listeners){var s,o=r._listeners.length;for(s=0;s<o;s++)r._listeners[s](n);r._listeners=null}}),this.promise.then=function(n){var s,o=new Promise(function(i){r.subscribe(i),s=i}).then(n);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s){r.reason||(r.reason=new Uo(s),e(r.reason))})}oe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};oe.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};oe.prototype.unsubscribe=function(e){if(this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};oe.source=function(){var e,r=new oe(function(s){e=s});return{token:r,cancel:e}};dn.exports=oe});var vn=p((Ai,mn)=>{"use strict";mn.exports=function(e){return function(n){return e.apply(null,n)}}});var yn=p((Ui,gn)=>{"use strict";gn.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Tn=p((Bi,Rt)=>{"use strict";var _n=x(),Bo=Ve(),He=hn(),Do=wt(),Mo=ee();function Cn(t){var e=new He(t),r=Bo(He.prototype.request,e);return _n.extend(r,He.prototype,e),_n.extend(r,e),r.create=function(s){return Cn(Do(t,s))},r}var M=Cn(Mo);M.Axios=He;M.Cancel=Q();M.CancelToken=pn();M.isCancel=Tt();M.VERSION=Be().version;M.all=function(e){return Promise.all(e)};M.spread=vn();M.isAxiosError=yn();Rt.exports=M;Rt.exports.default=M});var On=p((Di,En)=>{En.exports=Tn()});var Rn=p(H=>{"use strict";var wn=H&&H.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(a){try{c(n.next(a))}catch(f){i(f)}}function l(a){try{c(n.throw(a))}catch(f){i(f)}}function c(a){a.done?o(a.value):s(a.value).then(u,l)}c((n=n.apply(t,e||[])).next())})},bn=H&&H.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(a){return l([c,a])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(o=c[0]&2?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(a){c=[6,a],s=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(H,"__esModule",{value:!0});H.AsyncClient=void 0;var ye=Jt(),W=Vt(),jo=On(),xt=Je(),Ho=function(){function t(e){if(e==null||e==null)throw new ye.default("AsyncClientOptions invalid");if(e.endpoint==null||e.endpoint==null||e.endpoint.length==0)throw new ye.default("options endpoint can not be empty");for(this.retry_times=e.retry_times,(e.retry_times==0||e.retry_times==null||e.retry_times==null)&&(this.retry_times=5),e.endpoint.startsWith("http://")?(this.hostName=e.endpoint.substring(7),this.httpType="http://"):e.endpoint.startsWith("https://")?(this.hostName=e.endpoint.substring(8),this.httpType="https://"):(this.hostName=e.endpoint,this.httpType="http://");this.hostName.endsWith("/");)this.hostName=this.hostName.substring(0,this.hostName.length-1)}return t.prototype.PutLogs=function(e){return wn(this,void 0,void 0,function(){var r,n,s,o,l,i,u,l,l;return bn(this,function(c){switch(c.label){case 0:if(r=e.encodeLogItems(),r.length>W.CONST_MAX_PUT_SIZE)throw new ye.default("InvalidLogSize. logItems' size exceeds maximum limitation : "+W.CONST_MAX_PUT_SIZE+" bytes, logBytes="+r.length+", topic="+e.getTopic());n=this.getCommonHeadPara(W.CONST_JSON),e.setParam(W.TOPIC_ID,e.getTopic()),s=0,c.label=1;case 1:if(!(s<this.retry_times))return[3,6];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.sendLogs(W.UPLOAD_LOG_RESOURCE_URI,n,r,e.getTopic())];case 3:if(o=c.sent(),l=new xt.Response,l.setAllHeaders(o.headers),l.setHttpStatusCode(o.status),l.getHttpStatusCode()==200)return[2,l];if(s+1>=this.retry_times)throw new ye.default("send log failed and exceed retry times");return[3,5];case 4:if(i=c.sent(),u="",i.response&&i.response.headers&&(u=i.response.headers["x-cls-requestid"]),i.response&&i.response.status==413)return l=new xt.Response,l.setAllHeaders(i.response.headers),l.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&l.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&l.setErrorMessage(i.response.data.errormessage),[2,l];if(s+1>=this.retry_times)throw l=new xt.Response,i.response&&(l.setAllHeaders(i.response.headers),l.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&l.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&l.setErrorMessage(i.response.data.errormessage)),new ye.default("send log failed and exceed retry times. reason: "+JSON.stringify(l)+", error: "+i.message+".",u);return[3,5];case 5:return s++,[3,1];case 6:return[2]}})})},t.prototype.sendLogs=function(e,r,n,s){return wn(this,void 0,void 0,function(){var o,i,u;return bn(this,function(l){return o=this.stringToArrayBuffer(n),i=new Uint8Array(o),u={},r.forEach(function(c,a){u[a]=c}),[2,jo.default({url:this.httpType+this.hostName+e+"?"+W.TOPIC_ID+"="+s,method:"post",data:i,headers:u})]})})},t.prototype.getCommonHeadPara=function(e){var r=new Map;return r.set(W.CONST_CONTENT_TYPE,e),r},t.prototype.stringToArrayBuffer=function(e){var r=new Array,n,s;n=e.length;for(var o=0;o<n;o++)s=e.charCodeAt(o),s>=65536&&s<=1114111?(r.push(s>>18&7|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)):s>=2048&&s<=65535?(r.push(s>>12&15|224),r.push(s>>6&63|128),r.push(s&63|128)):s>=128&&s<=2047?(r.push(s>>6&31|192),r.push(s&63|128)):r.push(s&255);var i=new Int8Array(r.length);for(var u in r)i[u]=r[u];return i.buffer},t}();H.AsyncClient=Ho});var Sn=p(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.AsyncClient=F.Log=F.LogGroup=F.Response=F.PutLogsRequest=void 0;var ko=$t();Object.defineProperty(F,"PutLogsRequest",{enumerable:!0,get:function(){return ko.PutLogsRequest}});var Go=Je();Object.defineProperty(F,"Response",{enumerable:!0,get:function(){return Go.Response}});var xn=zt();Object.defineProperty(F,"LogGroup",{enumerable:!0,get:function(){return xn.LogGroup}});Object.defineProperty(F,"Log",{enumerable:!0,get:function(){return xn.Log}});var $o=Rn();Object.defineProperty(F,"AsyncClient",{enumerable:!0,get:function(){return $o.AsyncClient}})});var Pn=require("child_process"),Fn=ce(require("path"));var Nn=ce(kt()),k=ce(Sn());var qn=ce(require("crypto")),Ge=new Uint8Array(256),ke=Ge.length;function St(){return ke>Ge.length-16&&(qn.default.randomFillSync(Ge),ke=0),Ge.slice(ke,ke+=16)}var w=[];for(let t=0;t<256;++t)w.push((t+256).toString(16).slice(1));function Ln(t,e=0){return w[t[e+0]]+w[t[e+1]]+w[t[e+2]]+w[t[e+3]]+"-"+w[t[e+4]]+w[t[e+5]]+"-"+w[t[e+6]]+w[t[e+7]]+"-"+w[t[e+8]]+w[t[e+9]]+"-"+w[t[e+10]]+w[t[e+11]]+w[t[e+12]]+w[t[e+13]]+w[t[e+14]]+w[t[e+15]]}var In=ce(require("crypto")),qt={randomUUID:In.default.randomUUID};function zo(t,e,r){if(qt.randomUUID&&!e&&!t)return qt.randomUUID();t=t||{};let n=t.random||(t.rng||St)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let s=0;s<16;++s)e[r+s]=n[s];return e}return Ln(n)}var Lt=zo;var It=class{localIp;topicId;endpoint;client;logs=[];runId="";constructor(){this.localIp=Nn.default.address(),this.setRegion(!0)}setRunId(e){this.runId=e}setRegion(e){e?(this.endpoint="ap-nanjing.cls.tencentcs.com",this.topicId="4c6502d3-1134-4f2f-8359-157a8c5184cd"):(this.endpoint="ap-singapore.cls.tencentcs.com",this.topicId="589425db-bf02-4810-ae91-fe66daf63dc3"),this.client=new k.AsyncClient({endpoint:this.endpoint,retry_times:1})}add(e,r){try{let n=new k.Log(Date.now());n.addContent("id",Lt()),n.addContent("source",this.localIp);let s=null;if(typeof r=="string")try{s=JSON.parse(r)}catch{}if(s&&typeof s=="object"){!this.runId&&typeof s.run_id=="string"&&(this.runId=s.run_id),this.runId&&!s.run_id&&(s.run_id=this.runId);for(let[o,i]of Object.entries(s))i!=null&&n.addContent(o,String(i))}else this.runId&&n.addContent("run_id",this.runId),n.addContent(e,String(r));this.logs.push(n)}catch{}}async report(){try{if(this.logs.length===0)return;let e=this.logs.splice(0),r=new k.LogGroup(this.localIp);for(let s of e)r.addLog(s);let n=new k.PutLogsRequest(this.topicId,r);await this.client.PutLogs(n)}catch{}}},Jo=new It,X=Jo;function Vo(){let t=Date.now(),e=null;process.removeAllListeners("warning"),process.on("warning",n=>{n.name!=="DeprecationWarning"&&console.warn(n.message)});let r=(0,Pn.spawn)(process.execPath,["--no-warnings","--no-deprecation","--experimental-vm-modules",...process.execArgv,Fn.default.join(__dirname,"../edgeone-dist/cli.js"),...process.argv.slice(2)],{stdio:["inherit","inherit","inherit","ipc"]});process.on("SIGINT",()=>{e="sigint",r.kill("SIGTERM")}),process.on("SIGTERM",()=>{e="sigterm",r.kill("SIGTERM")}),r.on("message",n=>{try{let s=JSON.parse(n),{name:o,value:i,isDomestic:u}=s;o&&i&&X.add(o,i),typeof u<"u"&&X.setRegion(u)}catch{}}),r.on("exit",(n,s)=>{let o=n!=null?n:s?1:0,i=Date.now()-t,u="success";e?u=e:s?u=s.toLowerCase():o!==0&&(u="fail");let l=JSON.stringify({event_name:"CLI:Exit",event_scope:"exit",event_result:o===0?"success":"fail",final_result:o===0?"success":"fail",termination_reason:u,exit_code:o,duration_ms:i});X.add("CLI:Exit",l);let c=!1,a=()=>{c||(c=!0,process.exit(o))},f=setTimeout(a,1500);typeof f.unref=="function"&&f.unref(),X.report().then(()=>{clearTimeout(f),a()}).catch(()=>{clearTimeout(f),a()})}),r.on("error",n=>{let s=JSON.stringify({event_name:"CLI:Process Error",event_scope:"exit",event_result:"fail",termination_reason:"uncaught_exception",error_message:n!=null&&n.message?n.message.slice(0,500):"child process error"});X.add("CLI:Process Error",s),X.report().then(()=>{process.exit(1)}).catch(()=>{process.exit(1)})})}Vo();