@northflank/js-client 0.8.5 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-client.d.ts +234 -59
- package/dist/cjs/api-client.js +1 -1
- package/dist/esm/api-client.d.ts +234 -59
- package/dist/esm/api-client.js +1 -1
- package/package.json +3 -1
package/dist/esm/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{EventEmitter as e}from"events";import{execSync as n,spawn as r}from"child_process";import*as u from"stream";import o,{Transform as i}from"stream";import s from"http";import a,{fileURLToPath as c}from"url";import d from"https";import*as l from"zlib";import h from"zlib";import p from"os";import*as f from"net";import m,{Socket as v}from"net";import E,{mkdir as A,stat as b,statSync as y,mkdirSync as g}from"fs";import C,{parse as F,dirname as w,resolve as D}from"path";import B from"tls";import I from"crypto";import R,{Buffer as j}from"buffer";import S from"dgram";import{EventEmitter as _}from"node:events";import U from"node:stream";import{StringDecoder as P}from"node:string_decoder";import O,{posix as k,basename as x,win32 as T,join as L}from"node:path";import N from"node:fs";import q from"assert";import M from"node:assert";import{randomBytes as G}from"node:crypto";var z=function(t,e){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},z(t,e)};function $(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var W=function(){return W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var u in e=arguments[n])Object.prototype.hasOwnProperty.call(e,u)&&(t[u]=e[u]);return t},W.apply(this,arguments)};function J(t,e,n,r){return new(n||(n=Promise))(function(u,o){function i(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){var e;t.done?u(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(i,s)}a((r=r.apply(t,e||[])).next())})}function V(t,e){var n,r,u,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(u=2&s[0]?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[2&s[0],u.value]),s[0]){case 0:case 1:u=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(u=o.trys,(u=u.length>0&&u[u.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!u||s[1]>u[0]&&s[1]<u[3])){o.label=s[1];break}if(6===s[0]&&o.label<u[1]){o.label=u[1],u=s;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(s);break}u[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=u=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function H(t,e,n){if(n||2===arguments.length)for(var r,u=0,o=e.length;u<o;u++)!r&&u in e||(r||(r=Array.prototype.slice.call(e,0,u)),r[u]=e[u]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Z="object"==typeof global&&global&&global.Object===Object&&global,Y="object"==typeof self&&self&&self.Object===Object&&self,K=Z||Y||Function("return this")(),X=K.Symbol,Q=Object.prototype,tt=Q.hasOwnProperty,et=Q.toString,nt=X?X.toStringTag:void 0;var rt=Object.prototype.toString;var ut=X?X.toStringTag:void 0;function ot(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?function(t){var e=tt.call(t,nt),n=t[nt];try{t[nt]=void 0;var r=!0}catch(t){}var u=et.call(t);return r&&(e?t[nt]=n:delete t[nt]),u}(t):function(t){return rt.call(t)}(t)}function it(t){return null!=t&&"object"==typeof t}function st(t){return"symbol"==typeof t||it(t)&&"[object Symbol]"==ot(t)}function at(t,e){for(var n=-1,r=null==t?0:t.length,u=Array(r);++n<r;)u[n]=e(t[n],n,t);return u}var ct=Array.isArray,dt=X?X.prototype:void 0,lt=dt?dt.toString:void 0;function ht(t){if("string"==typeof t)return t;if(ct(t))return at(t,ht)+"";if(st(t))return lt?lt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function pt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ft(t){return t}function mt(t){if(!pt(t))return!1;var e=ot(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var vt,Et=K["__core-js_shared__"],At=(vt=/[^.]+$/.exec(Et&&Et.keys&&Et.keys.IE_PROTO||""))?"Symbol(src)_1."+vt:"";var bt=Function.prototype.toString;function yt(t){if(null!=t){try{return bt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var gt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,Ft=Object.prototype,wt=Ct.toString,Dt=Ft.hasOwnProperty,Bt=RegExp("^"+wt.call(Dt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function It(t){return!(!pt(t)||(e=t,At&&At in e))&&(mt(t)?Bt:gt).test(yt(t));var e}function Rt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return It(n)?n:void 0}var jt=Rt(K,"WeakMap"),St=Object.create,_t=function(){function t(){}return function(e){if(!pt(e))return{};if(St)return St(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Ut=Date.now;var Pt,Ot,kt,xt=function(){try{var t=Rt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Tt=xt,Lt=Tt?function(t,e){return Tt(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:ft,Nt=(Pt=Lt,Ot=0,kt=0,function(){var t=Ut(),e=16-(t-kt);if(kt=t,e>0){if(++Ot>=800)return arguments[0]}else Ot=0;return Pt.apply(void 0,arguments)}),qt=/^(?:0|[1-9]\d*)$/;function Mt(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&qt.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e,n){"__proto__"==e&&Tt?Tt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function zt(t,e){return t===e||t!=t&&e!=e}var $t=Object.prototype.hasOwnProperty;function Wt(t,e,n){var r=t[e];$t.call(t,e)&&zt(r,n)&&(void 0!==n||e in t)||Gt(t,e,n)}var Jt=Math.max;function Vt(t,e){return Nt(function(t,e,n){return e=Jt(void 0===e?t.length-1:e,0),function(){for(var r=arguments,u=-1,o=Jt(r.length-e,0),i=Array(o);++u<o;)i[u]=r[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=r[u];return s[e]=n(i),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}}(t,e,ft),t+"")}function Ht(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Zt(t){return null!=t&&Ht(t.length)&&!mt(t)}var Yt=Object.prototype;function Kt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Yt)}function Xt(t){return it(t)&&"[object Arguments]"==ot(t)}var Qt=Object.prototype,te=Qt.hasOwnProperty,ee=Qt.propertyIsEnumerable,ne=Xt(function(){return arguments}())?Xt:function(t){return it(t)&&te.call(t,"callee")&&!ee.call(t,"callee")};var re="object"==typeof exports&&exports&&!exports.nodeType&&exports,ue=re&&"object"==typeof module&&module&&!module.nodeType&&module,oe=ue&&ue.exports===re?K.Buffer:void 0,ie=(oe?oe.isBuffer:void 0)||function(){return!1},se={};se["[object Float32Array]"]=se["[object Float64Array]"]=se["[object Int8Array]"]=se["[object Int16Array]"]=se["[object Int32Array]"]=se["[object Uint8Array]"]=se["[object Uint8ClampedArray]"]=se["[object Uint16Array]"]=se["[object Uint32Array]"]=!0,se["[object Arguments]"]=se["[object Array]"]=se["[object ArrayBuffer]"]=se["[object Boolean]"]=se["[object DataView]"]=se["[object Date]"]=se["[object Error]"]=se["[object Function]"]=se["[object Map]"]=se["[object Number]"]=se["[object Object]"]=se["[object RegExp]"]=se["[object Set]"]=se["[object String]"]=se["[object WeakMap]"]=!1;var ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ce=ae&&"object"==typeof module&&module&&!module.nodeType&&module,de=ce&&ce.exports===ae&&Z.process,le=function(){try{var t=ce&&ce.require&&ce.require("util").types;return t||de&&de.binding&&de.binding("util")}catch(t){}}(),he=le&&le.isTypedArray,pe=he?function(t){return function(e){return t(e)}}(he):function(t){return it(t)&&Ht(t.length)&&!!se[ot(t)]},fe=pe,me=Object.prototype.hasOwnProperty;function ve(t,e){var n=ct(t),r=!n&&ne(t),u=!n&&!r&&ie(t),o=!n&&!r&&!u&&fe(t),i=n||r||u||o,s=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],a=s.length;for(var c in t)!e&&!me.call(t,c)||i&&("length"==c||u&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Mt(c,a))||s.push(c);return s}function Ee(t,e){return function(n){return t(e(n))}}var Ae=Ee(Object.keys,Object),be=Object.prototype.hasOwnProperty;function ye(t){return Zt(t)?ve(t):function(t){if(!Kt(t))return Ae(t);var e=[];for(var n in Object(t))be.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var ge=Object.prototype.hasOwnProperty;function Ce(t){if(!pt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Kt(t),n=[];for(var r in t)("constructor"!=r||!e&&ge.call(t,r))&&n.push(r);return n}function Fe(t){return Zt(t)?ve(t,!0):Ce(t)}var we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/;function Be(t,e){if(ct(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!st(t))||(De.test(t)||!we.test(t)||null!=e&&t in Object(e))}var Ie=Rt(Object,"create");var Re=Object.prototype.hasOwnProperty;var je=Object.prototype.hasOwnProperty;function Se(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function _e(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}Se.prototype.clear=function(){this.__data__=Ie?Ie(null):{},this.size=0},Se.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Se.prototype.get=function(t){var e=this.__data__;if(Ie){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Re.call(e,t)?e[t]:void 0},Se.prototype.has=function(t){var e=this.__data__;return Ie?void 0!==e[t]:je.call(e,t)},Se.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ie&&void 0===e?"__lodash_hash_undefined__":e,this};var Ue=Array.prototype.splice;function Pe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(t){var e=this.__data__,n=_e(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ue.call(e,n,1),--this.size,!0)},Pe.prototype.get=function(t){var e=this.__data__,n=_e(e,t);return n<0?void 0:e[n][1]},Pe.prototype.has=function(t){return _e(this.__data__,t)>-1},Pe.prototype.set=function(t,e){var n=this.__data__,r=_e(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Oe=Rt(K,"Map");function ke(t,e){var n,r,u=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?u["string"==typeof e?"string":"hash"]:u.map}function xe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}xe.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(Oe||Pe),string:new Se}},xe.prototype.delete=function(t){var e=ke(this,t).delete(t);return this.size-=e?1:0,e},xe.prototype.get=function(t){return ke(this,t).get(t)},xe.prototype.has=function(t){return ke(this,t).has(t)},xe.prototype.set=function(t,e){var n=ke(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Te(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,u=e?e.apply(this,r):r[0],o=n.cache;if(o.has(u))return o.get(u);var i=t.apply(this,r);return n.cache=o.set(u,i)||o,i};return n.cache=new(Te.Cache||xe),n}Te.Cache=xe;var Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/\\(\\)?/g,qe=function(t){var e=Te(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Le,function(t,n,r,u){e.push(r?u.replace(Ne,"$1"):n||t)}),e}),Me=qe;function Ge(t){return null==t?"":ht(t)}function ze(t,e){return ct(t)?t:Be(t,e)?[t]:Me(Ge(t))}function $e(t){if("string"==typeof t||st(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function We(t,e){for(var n=0,r=(e=ze(e,t)).length;null!=t&&n<r;)t=t[$e(e[n++])];return n&&n==r?t:void 0}function Je(t,e){for(var n=-1,r=e.length,u=t.length;++n<r;)t[u+n]=e[n];return t}var Ve=X?X.isConcatSpreadable:void 0;function He(t){return ct(t)||ne(t)||!!(Ve&&t&&t[Ve])}function Ze(t,e,n,r,u){var o=-1,i=t.length;for(n||(n=He),u||(u=[]);++o<i;){var s=t[o];e>0&&n(s)?e>1?Ze(s,e-1,n,r,u):Je(u,s):r||(u[u.length]=s)}return u}var Ye=Ee(Object.getPrototypeOf,Object),Ke=Function.prototype,Xe=Object.prototype,Qe=Ke.toString,tn=Xe.hasOwnProperty,en=Qe.call(Object);function nn(t){var e=this.__data__=new Pe(t);this.size=e.size}nn.prototype.clear=function(){this.__data__=new Pe,this.size=0},nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},nn.prototype.get=function(t){return this.__data__.get(t)},nn.prototype.has=function(t){return this.__data__.has(t)},nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Pe){var r=n.__data__;if(!Oe||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new xe(r)}return n.set(t,e),this.size=n.size,this};var rn="object"==typeof exports&&exports&&!exports.nodeType&&exports,un=rn&&"object"==typeof module&&module&&!module.nodeType&&module,on=un&&un.exports===rn?K.Buffer:void 0,sn=on?on.allocUnsafe:void 0;var an=Object.prototype.propertyIsEnumerable,cn=Object.getOwnPropertySymbols,dn=cn?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,u=0,o=[];++n<r;){var i=t[n];e(i,n,t)&&(o[u++]=i)}return o}(cn(t),function(e){return an.call(t,e)}))}:function(){return[]};function ln(t){return function(t,e,n){var r=e(t);return ct(t)?r:Je(r,n(t))}(t,ye,dn)}var hn=Rt(K,"DataView"),pn=Rt(K,"Promise"),fn=Rt(K,"Set"),mn="[object Map]",vn="[object Promise]",En="[object Set]",An="[object WeakMap]",bn="[object DataView]",yn=yt(hn),gn=yt(Oe),Cn=yt(pn),Fn=yt(fn),wn=yt(jt),Dn=ot;(hn&&Dn(new hn(new ArrayBuffer(1)))!=bn||Oe&&Dn(new Oe)!=mn||pn&&Dn(pn.resolve())!=vn||fn&&Dn(new fn)!=En||jt&&Dn(new jt)!=An)&&(Dn=function(t){var e=ot(t),n="[object Object]"==e?t.constructor:void 0,r=n?yt(n):"";if(r)switch(r){case yn:return bn;case gn:return mn;case Cn:return vn;case Fn:return En;case wn:return An}return e});var Bn=Dn,In=K.Uint8Array;function Rn(t,e){var n,r,u=e?(n=t.buffer,r=new n.constructor(n.byteLength),new In(r).set(new In(n)),r):t.buffer;return new t.constructor(u,t.byteOffset,t.length)}function jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new xe;++e<n;)this.add(t[e])}function Sn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}jn.prototype.add=jn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},jn.prototype.has=function(t){return this.__data__.has(t)};function _n(t,e,n,r,u,o){var i=1&n,s=t.length,a=e.length;if(s!=a&&!(i&&a>s))return!1;var c=o.get(t),d=o.get(e);if(c&&d)return c==e&&d==t;var l=-1,h=!0,p=2&n?new jn:void 0;for(o.set(t,e),o.set(e,t);++l<s;){var f=t[l],m=e[l];if(r)var v=i?r(m,f,l,e,t,o):r(f,m,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!Sn(e,function(t,e){if(i=e,!p.has(i)&&(f===t||u(f,t,n,r,o)))return p.push(e);var i})){h=!1;break}}else if(f!==m&&!u(f,m,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Un(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function Pn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var On=X?X.prototype:void 0,kn=On?On.valueOf:void 0;var xn=Object.prototype.hasOwnProperty;var Tn="[object Arguments]",Ln="[object Array]",Nn="[object Object]",qn=Object.prototype.hasOwnProperty;function Mn(t,e,n,r,u,o){var i=ct(t),s=ct(e),a=i?Ln:Bn(t),c=s?Ln:Bn(e),d=(a=a==Tn?Nn:a)==Nn,l=(c=c==Tn?Nn:c)==Nn,h=a==c;if(h&&ie(t)){if(!ie(e))return!1;i=!0,d=!1}if(h&&!d)return o||(o=new nn),i||fe(t)?_n(t,e,n,r,u,o):function(t,e,n,r,u,o,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new In(t),new In(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return zt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Un;case"[object Set]":var a=1&r;if(s||(s=Pn),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;r|=2,i.set(t,e);var d=_n(s(t),s(e),r,u,o,i);return i.delete(t),d;case"[object Symbol]":if(kn)return kn.call(t)==kn.call(e)}return!1}(t,e,a,n,r,u,o);if(!(1&n)){var p=d&&qn.call(t,"__wrapped__"),f=l&&qn.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,v=f?e.value():e;return o||(o=new nn),u(m,v,n,r,o)}}return!!h&&(o||(o=new nn),function(t,e,n,r,u,o){var i=1&n,s=ln(t),a=s.length;if(a!=ln(e).length&&!i)return!1;for(var c=a;c--;){var d=s[c];if(!(i?d in e:xn.call(e,d)))return!1}var l=o.get(t),h=o.get(e);if(l&&h)return l==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var f=i;++c<a;){var m=t[d=s[c]],v=e[d];if(r)var E=i?r(v,m,d,e,t,o):r(m,v,d,t,e,o);if(!(void 0===E?m===v||u(m,v,n,r,o):E)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var A=t.constructor,b=e.constructor;A==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,u,o))}function Gn(t,e,n,r,u){return t===e||(null==t||null==e||!it(t)&&!it(e)?t!=t&&e!=e:Mn(t,e,n,r,Gn,u))}function zn(t){return t==t&&!pt(t)}function $n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function Wn(t){var e=function(t){for(var e=ye(t),n=e.length;n--;){var r=e[n],u=t[r];e[n]=[r,u,zn(u)]}return e}(t);return 1==e.length&&e[0][2]?$n(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,r){var u=n.length,o=u,i=!r;if(null==t)return!o;for(t=Object(t);u--;){var s=n[u];if(i&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<o;){var a=(s=n[u])[0],c=t[a],d=s[1];if(i&&s[2]){if(void 0===c&&!(a in t))return!1}else{var l=new nn;if(r)var h=r(c,d,a,t,e,l);if(!(void 0===h?Gn(d,c,3,r,l):h))return!1}}return!0}(n,t,e)}}function Jn(t,e){return null!=t&&e in Object(t)}function Vn(t,e){return null!=t&&function(t,e,n){for(var r=-1,u=(e=ze(e,t)).length,o=!1;++r<u;){var i=$e(e[r]);if(!(o=null!=t&&n(t,i)))break;t=t[i]}return o||++r!=u?o:!!(u=null==t?0:t.length)&&Ht(u)&&Mt(i,u)&&(ct(t)||ne(t))}(t,e,Jn)}function Hn(t,e){return Be(t)&&zn(e)?$n($e(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:We(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?Vn(n,t):Gn(e,r,3)}}function Zn(t){return Be(t)?(e=$e(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return We(e,t)}}(t);var e}function Yn(t){return"function"==typeof t?t:null==t?ft:"object"==typeof t?ct(t)?Hn(t[0],t[1]):Wn(t):Zn(t)}var Kn,Xn=function(t,e,n){for(var r=-1,u=Object(t),o=n(t),i=o.length;i--;){var s=o[Kn?i:++r];if(!1===e(u[s],s,u))break}return t};var Qn=function(t,e){return function(n,r){if(null==n)return n;if(!Zt(n))return t(n,r);for(var u=n.length,o=e?u:-1,i=Object(n);(e?o--:++o<u)&&!1!==r(i[o],o,i););return n}}(function(t,e){return t&&Xn(t,e,ye)}),tr=Qn;function er(t,e,n){(void 0!==n&&!zt(t[e],n)||void 0===n&&!(e in t))&&Gt(t,e,n)}function nr(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function rr(t){return function(t,e,n,r){var u=!n;n||(n={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=r?r(n[s],t[s],s,n,t):void 0;void 0===a&&(a=t[s]),u?Gt(n,s,a):Wt(n,s,a)}return n}(t,Fe(t))}function ur(t,e,n,r,u,o,i){var s=nr(t,n),a=nr(e,n),c=i.get(a);if(c)er(t,n,c);else{var d,l=o?o(s,a,n+"",t,e,i):void 0,h=void 0===l;if(h){var p=ct(a),f=!p&&ie(a),m=!p&&!f&&fe(a);l=a,p||f||m?ct(s)?l=s:it(d=s)&&Zt(d)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(s):f?(h=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=sn?sn(n):new t.constructor(n);return t.copy(r),r}(a,!0)):m?(h=!1,l=Rn(a,!0)):l=[]:function(t){if(!it(t)||"[object Object]"!=ot(t))return!1;var e=Ye(t);if(null===e)return!0;var n=tn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Qe.call(n)==en}(a)||ne(a)?(l=s,ne(s)?l=rr(s):pt(s)&&!mt(s)||(l=function(t){return"function"!=typeof t.constructor||Kt(t)?{}:_t(Ye(t))}(a))):h=!1}h&&(i.set(a,l),u(l,a,r,o,i),i.delete(a)),er(t,n,l)}}function or(t,e,n,r,u){t!==e&&Xn(e,function(o,i){if(u||(u=new nn),pt(o))ur(t,e,i,n,or,r,u);else{var s=r?r(nr(t,i),o,i+"",t,e,u):void 0;void 0===s&&(s=o),er(t,i,s)}},Fe)}var ir=/[\\^$.*+?()[\]{}|]/g,sr=RegExp(ir.source);function ar(t,e){var n=-1,r=Zt(t)?Array(t.length):[];return tr(t,function(t,u,o){r[++n]=e(t,u,o)}),r}function cr(t,e){return Ze(function(t,e){return(ct(t)?at:ar)(t,Yn(e))}(t,e),1)}var dr=1/0;function lr(t,e){return t>e}function hr(t){return"string"==typeof t||!ct(t)&&it(t)&&"[object String]"==ot(t)}function pr(t,e){return t&&t.length?function(t,e,n){for(var r=-1,u=t.length;++r<u;){var o=t[r],i=e(o);if(null!=i&&(void 0===s?i==i&&!st(i):n(i,s)))var s=i,a=o}return a}(t,Yn(e),lr):void 0}var fr,mr=(fr=function(t,e,n){or(t,e,n)},Vt(function(t,e){var n=-1,r=e.length,u=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(u=fr.length>3&&"function"==typeof u?(r--,u):void 0,o&&function(t,e,n){if(!pt(n))return!1;var r=typeof e;return!!("number"==r?Zt(n)&&Mt(e,n.length):"string"==r&&e in n)&&zt(n[e],t)}(e[0],e[1],o)&&(u=r<3?void 0:u,r=1),t=Object(t);++n<r;){var i=e[n];i&&fr(t,i,n,u)}return t})),vr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Er(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Ar(t,e){return t(e={exports:{}},e.exports),e.exports}var br=Ar(function(t,e){function n(t,e,n){return n.globals&&(t=n.globals[t.name]),new t(`${n.context?n.context:"Value"} ${e}.`)}function r(t,e){if("bigint"==typeof t)throw n(TypeError,"is a BigInt which cannot be converted to a number",e);return e.globals?e.globals.Number(t):Number(t)}function u(t){return s(t>0&&t%1==.5&&!(1&t)||t<0&&t%1==-.5&&!(1&~t)?Math.floor(t):Math.round(t))}function o(t){return s(Math.trunc(t))}function i(t){return t<0?-1:1}function s(t){return 0===t?0:t}function a(t,{unsigned:e}){let a,c;e?(a=0,c=2**t-1):(a=-(2**(t-1)),c=2**(t-1)-1);const d=2**t,l=2**(t-1);return(t,h={})=>{let p=r(t,h);if(p=s(p),h.enforceRange){if(!Number.isFinite(p))throw n(TypeError,"is not a finite number",h);if(p=o(p),p<a||p>c)throw n(TypeError,`is outside the accepted range of ${a} to ${c}, inclusive`,h);return p}return!Number.isNaN(p)&&h.clamp?(p=Math.min(Math.max(p,a),c),p=u(p),p):Number.isFinite(p)&&0!==p?(p=o(p),p>=a&&p<=c?p:(p=function(t,e){const n=t%e;return i(e)!==i(n)?n+e:n}(p,d),!e&&p>=l?p-d:p)):0}}function c(t,{unsigned:e}){const i=Number.MAX_SAFE_INTEGER,a=e?0:Number.MIN_SAFE_INTEGER,c=e?BigInt.asUintN:BigInt.asIntN;return(e,d={})=>{let l=r(e,d);if(l=s(l),d.enforceRange){if(!Number.isFinite(l))throw n(TypeError,"is not a finite number",d);if(l=o(l),l<a||l>i)throw n(TypeError,`is outside the accepted range of ${a} to ${i}, inclusive`,d);return l}if(!Number.isNaN(l)&&d.clamp)return l=Math.min(Math.max(l,a),i),l=u(l),l;if(!Number.isFinite(l)||0===l)return 0;let h=BigInt(o(l));return h=c(t,h),Number(h)}}e.any=t=>t,e.undefined=()=>{},e.boolean=t=>Boolean(t),e.byte=a(8,{unsigned:!1}),e.octet=a(8,{unsigned:!0}),e.short=a(16,{unsigned:!1}),e["unsigned short"]=a(16,{unsigned:!0}),e.long=a(32,{unsigned:!1}),e["unsigned long"]=a(32,{unsigned:!0}),e["long long"]=c(64,{unsigned:!1}),e["unsigned long long"]=c(64,{unsigned:!0}),e.double=(t,e={})=>{const u=r(t,e);if(!Number.isFinite(u))throw n(TypeError,"is not a finite floating-point value",e);return u},e["unrestricted double"]=(t,e={})=>r(t,e),e.float=(t,e={})=>{const u=r(t,e);if(!Number.isFinite(u))throw n(TypeError,"is not a finite floating-point value",e);if(Object.is(u,-0))return u;const o=Math.fround(u);if(!Number.isFinite(o))throw n(TypeError,"is outside the range of a single-precision floating-point value",e);return o},e["unrestricted float"]=(t,e={})=>{const n=r(t,e);return isNaN(n)||Object.is(n,-0)?n:Math.fround(n)},e.DOMString=(t,e={})=>{if(e.treatNullAsEmptyString&&null===t)return"";if("symbol"==typeof t)throw n(TypeError,"is a symbol, which cannot be converted to a string",e);return(e.globals?e.globals.String:String)(t)},e.ByteString=(t,r={})=>{const u=e.DOMString(t,r);let o;for(let t=0;void 0!==(o=u.codePointAt(t));++t)if(o>255)throw n(TypeError,"is not a valid ByteString",r);return u},e.USVString=(t,n={})=>{const r=e.DOMString(t,n),u=r.length,o=[];for(let t=0;t<u;++t){const e=r.charCodeAt(t);if(e<55296||e>57343)o.push(String.fromCodePoint(e));else if(56320<=e&&e<=57343)o.push(String.fromCodePoint(65533));else if(t===u-1)o.push(String.fromCodePoint(65533));else{const n=r.charCodeAt(t+1);if(56320<=n&&n<=57343){const r=1023&e,u=1023&n;o.push(String.fromCodePoint(65536+1024*r+u)),++t}else o.push(String.fromCodePoint(65533))}}return o.join("")},e.object=(t,e={})=>{if(null===t||"object"!=typeof t&&"function"!=typeof t)throw n(TypeError,"is not an object",e);return t};const d=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,l="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(t){try{return d.call(t),!0}catch{return!1}}function p(t){try{return l.call(t),!0}catch{return!1}}function f(t){try{return new Uint8Array(t),!1}catch{return!0}}e.ArrayBuffer=(t,e={})=>{if(!h(t)){if(e.allowShared&&!p(t))throw n(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",e);throw n(TypeError,"is not an ArrayBuffer",e)}if(f(t))throw n(TypeError,"is a detached ArrayBuffer",e);return t};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;e.DataView=(t,e={})=>{try{m.call(t)}catch(t){throw n(TypeError,"is not a DataView",e)}if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is backed by a detached ArrayBuffer",e);return t};const v=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach(t=>{const{name:r}=t,u=/^[AEIOU]/u.test(r)?"an":"a";e[r]=(t,e={})=>{if(!ArrayBuffer.isView(t)||v.call(t)!==r)throw n(TypeError,`is not ${u} ${r} object`,e);if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",e);return t}}),e.ArrayBufferView=(t,e={})=>{if(!ArrayBuffer.isView(t))throw n(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",e);if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",e);return t},e.BufferSource=(t,e={})=>{if(ArrayBuffer.isView(t)){if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",e);return t}if(!e.allowShared&&!h(t))throw n(TypeError,"is not an ArrayBuffer or a view on one",e);if(e.allowShared&&!p(t)&&!h(t))throw n(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",e);if(f(t))throw n(TypeError,"is a detached ArrayBuffer",e);return t},e.DOMTimeStamp=e["unsigned long long"]});br.any,br.undefined,br.octet,br.DOMString,br.ByteString,br.USVString,br.object,br.ArrayBuffer,br.DataView,br.ArrayBufferView,br.BufferSource,br.DOMTimeStamp;var yr=Ar(function(t,e){const n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);const r=Symbol("wrapper"),u=Symbol("impl"),o=Symbol("SameObject caches"),i=Symbol.for("[webidl2js] constructor registry"),s=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);function a(t){if(n(t,i))return t[i];const e=Object.create(null);e["%Object.prototype%"]=t.Object.prototype,e["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new t.Array)[Symbol.iterator]()));try{e["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(t.eval("(async function* () {})").prototype))}catch{e["%AsyncIteratorPrototype%"]=s}return t[i]=e,e}function c(t){return t?t[r]:null}function d(t){return t?t[u]:null}const l=Symbol("internal");const h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;const p=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),v=Symbol("supported property names"),E=Symbol("indexed property get"),A=Symbol("indexed property set new"),b=Symbol("indexed property set existing"),y=Symbol("named property get"),g=Symbol("named property set new"),C=Symbol("named property set existing"),F=Symbol("named property delete"),w=Symbol("async iterator get the next iteration result"),D=Symbol("async iterator return steps"),B=Symbol("async iterator initialization steps"),I=Symbol("async iterator end of iteration");t.exports={isObject:function(t){return"object"==typeof t&&null!==t||"function"==typeof t},hasOwn:n,define:function(t,e){for(const n of Reflect.ownKeys(e)){const r=Reflect.getOwnPropertyDescriptor(e,n);if(r&&!Reflect.defineProperty(t,n,r))throw new TypeError(`Cannot redefine property: ${String(n)}`)}},newObjectInRealm:function(t,e){const n=a(t);return Object.defineProperties(Object.create(n["%Object.prototype%"]),Object.getOwnPropertyDescriptors(e))},wrapperSymbol:r,implSymbol:u,getSameObject:function(t,e,n){return t[o]||(t[o]=Object.create(null)),e in t[o]||(t[o][e]=n()),t[o][e]},ctorRegistrySymbol:i,initCtorRegistry:a,wrapperForImpl:c,implForWrapper:d,tryWrapperForImpl:function(t){const e=c(t);return e||t},tryImplForWrapper:function(t){const e=d(t);return e||t},iterInternalSymbol:l,isArrayBuffer:function(t){try{return h.call(t),!0}catch(t){return!1}},isArrayIndexPropName:function(t){if("string"!=typeof t)return!1;const e=t>>>0;return e!==2**32-1&&t===`${e}`},supportsPropertyIndex:p,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:v,indexedGet:E,indexedSetNew:A,indexedSetExisting:b,namedGet:y,namedSetNew:g,namedSetExisting:C,namedDelete:F,asyncIteratorNext:w,asyncIteratorReturn:D,asyncIteratorInit:B,asyncIteratorEOI:I,iteratorResult:function([t,e],n){let r;switch(n){case"key":r=t;break;case"value":r=e;break;case"key+value":r=[t,e]}return{value:r,done:!1}}}});const gr=2147483647,Cr=36,Fr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wr=Math.floor,Dr=String.fromCharCode;function Br(t){throw new RangeError(Fr[t])}function Ir(t){const e=[];let n=0;const r=t.length;for(;n<r;){const u=t.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const r=t.charCodeAt(n++);56320==(64512&r)?e.push(((1023&u)<<10)+(1023&r)+65536):(e.push(u),n--)}else e.push(u)}return e}const Rr=function(t){return t>=48&&t<58?t-48+26:t>=65&&t<91?t-65:t>=97&&t<123?t-97:Cr},jr=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},Sr=function(t,e,n){let r=0;for(t=n?wr(t/700):t>>1,t+=wr(t/e);t>455;r+=Cr)t=wr(t/35);return wr(r+36*t/(t+38))},_r=function(t){const e=[],n=t.length;let r=0,u=128,o=72,i=t.lastIndexOf("-");i<0&&(i=0);for(let n=0;n<i;++n)t.charCodeAt(n)>=128&&Br("not-basic"),e.push(t.charCodeAt(n));for(let s=i>0?i+1:0;s<n;){const i=r;for(let e=1,u=Cr;;u+=Cr){s>=n&&Br("invalid-input");const i=Rr(t.charCodeAt(s++));i>=Cr&&Br("invalid-input"),i>wr((gr-r)/e)&&Br("overflow"),r+=i*e;const a=u<=o?1:u>=o+26?26:u-o;if(i<a)break;const c=Cr-a;e>wr(gr/c)&&Br("overflow"),e*=c}const a=e.length+1;o=Sr(r-i,a,0==i),wr(r/a)>gr-u&&Br("overflow"),u+=wr(r/a),r%=a,e.splice(r++,0,u)}return String.fromCodePoint(...e)},Ur=function(t){const e=[],n=(t=Ir(t)).length;let r=128,u=0,o=72;for(const n of t)n<128&&e.push(Dr(n));const i=e.length;let s=i;for(i&&e.push("-");s<n;){let n=gr;for(const e of t)e>=r&&e<n&&(n=e);const a=s+1;n-r>wr((gr-u)/a)&&Br("overflow"),u+=(n-r)*a,r=n;for(const n of t)if(n<r&&++u>gr&&Br("overflow"),n===r){let t=u;for(let n=Cr;;n+=Cr){const r=n<=o?1:n>=o+26?26:n-o;if(t<r)break;const u=t-r,i=Cr-r;e.push(Dr(jr(r+u%i,0))),t=wr(u/i)}e.push(Dr(jr(t,0))),o=Sr(u,a,s===i),u=0,++s}++u,++r}return e.join("")},Pr=_r,Or=Ur;var kr,xr={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1715\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA82C\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{113CE}-\u{113D0}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}\u{11F41}\u{11F42}\u{1612F}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u0886\u0889-\u088D\u08A0-\u08A9\u08AF\u08B0\u08B3-\u08B8\u08BA-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10EC3}\u{10EC4}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}\u{10FB3}\u{10FB8}\u{10FBB}\u{10FBC}\u{10FBE}\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}\u{10FCB}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0858\u0860\u0862-\u0865\u0867-\u086A\u0870-\u0882\u0886\u0889-\u088E\u08A0-\u08AC\u08AE-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10EC2}-\u{10EC4}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}\u{10FCA}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCEF}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0897-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2429\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E5\u31EF\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CC00}-\u{1CCD5}\u{1CCF0}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B4E-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2429\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E5\u31EF-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6E}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D5}\u{113D7}\u{113D8}\u{113E1}\u{113E2}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F5A}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CC00}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCF9}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u},Tr={STATUS_MAPPING:{mapped:1,valid:2,disallowed:3,deviation:6,ignored:7}},Lr=(kr=Object.freeze({__proto__:null}))&&kr.default||kr;const{STATUS_MAPPING:Nr}=Tr;function qr(t){return/[^\x00-\x7F]/u.test(t)}function Mr(t){let e=0,n=Lr.length-1;for(;e<=n;){const r=Math.floor((e+n)/2),u=Lr[r],o=Array.isArray(u[0])?u[0][0]:u[0],i=Array.isArray(u[0])?u[0][1]:u[0];if(o<=t&&i>=t)return u.slice(1);o>t?n=r-1:e=r+1}return null}function Gr(t,{checkHyphens:e,checkBidi:n,checkJoiners:r,transitionalProcessing:u,useSTD3ASCIIRules:o,isBidi:i}){if(0===t.length)return!0;if(t.normalize("NFC")!==t)return!1;const s=Array.from(t);if(e&&("-"===s[2]&&"-"===s[3]||t.startsWith("-")||t.endsWith("-")))return!1;if(!e&&t.startsWith("xn--"))return!1;if(t.includes("."))return!1;if(xr.combiningMarks.test(s[0]))return!1;for(const t of s){const e=t.codePointAt(0),[n]=Mr(e);if(u){if(n!==Nr.valid)return!1}else if(n!==Nr.valid&&n!==Nr.deviation)return!1;if(o&&e<=127&&!/^(?:[a-z]|[0-9]|-)$/u.test(t))return!1}if(r){let t=0;for(const[e,n]of s.entries())if(""===n||""===n){if(e>0){if(xr.combiningClassVirama.test(s[e-1]))continue;if(""===n){const n=s.indexOf("",e+1),r=n<0?s.slice(t):s.slice(t,n);if(xr.validZWNJ.test(r.join(""))){t=e+1;continue}}}return!1}}if(n&&i){let e;if(xr.bidiS1LTR.test(s[0]))e=!1;else{if(!xr.bidiS1RTL.test(s[0]))return!1;e=!0}if(e){if(!xr.bidiS2.test(t)||!xr.bidiS3.test(t)||xr.bidiS4EN.test(t)&&xr.bidiS4AN.test(t))return!1}else if(!xr.bidiS5.test(t)||!xr.bidiS6.test(t))return!1}return!0}function zr(t,e){let n=function(t,{transitionalProcessing:e}){let n="";for(const r of t){const[t,u]=Mr(r.codePointAt(0));switch(t){case Nr.disallowed:n+=r;break;case Nr.ignored:break;case Nr.mapped:n+=e&&"ẞ"===r?"ss":u;break;case Nr.deviation:n+=e?u:r;break;case Nr.valid:n+=r}}return n}(t,e);n=n.normalize("NFC");const r=n.split("."),u=function(t){const e=t.map(t=>{if(t.startsWith("xn--"))try{return Pr(t.substring(4))}catch{return""}return t}).join(".");return xr.bidiDomain.test(e)}(r);let o=!1;for(const[t,n]of r.entries()){let i=n,s=e.transitionalProcessing;if(i.startsWith("xn--")){if(qr(i)){o=!0;continue}try{i=Pr(i.substring(4))}catch{if(!e.ignoreInvalidPunycode){o=!0;continue}}r[t]=i,""!==i&&qr(i)||(o=!0),s=!1}if(o)continue;Gr(i,{...e,transitionalProcessing:s,isBidi:u})||(o=!0)}return{string:r.join("."),error:o}}var $r={toASCII:function(t,{checkHyphens:e=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:u=!1,verifyDNSLength:o=!1,transitionalProcessing:i=!1,ignoreInvalidPunycode:s=!1}={}){const a=zr(t,{checkHyphens:e,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:u,transitionalProcessing:i,ignoreInvalidPunycode:s});let c=a.string.split(".");if(c=c.map(t=>{if(qr(t))try{return`xn--${Or(t)}`}catch{a.error=!0}return t}),o){const t=c.join(".").length;(t>253||0===t)&&(a.error=!0);for(let t=0;t<c.length;++t)if(c[t].length>63||0===c[t].length){a.error=!0;break}}return a.error?null:c.join(".")},toUnicode:function(t,{checkHyphens:e=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:u=!1,transitionalProcessing:o=!1,ignoreInvalidPunycode:i=!1}={}){const s=zr(t,{checkHyphens:e,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:u,transitionalProcessing:o,ignoreInvalidPunycode:i});return{domain:s.string,error:s.error}}};function Wr(t){return t>=48&&t<=57}function Jr(t){return t>=65&&t<=90||t>=97&&t<=122}var Vr={isASCIIDigit:Wr,isASCIIAlpha:Jr,isASCIIAlphanumeric:function(t){return Jr(t)||Wr(t)},isASCIIHex:function(t){return Wr(t)||t>=65&&t<=70||t>=97&&t<=102}};const Hr=new TextEncoder,Zr=new TextDecoder("utf-8",{ignoreBOM:!0});var Yr={utf8Encode:function(t){return Hr.encode(t)},utf8DecodeWithoutBOM:function(t){return Zr.decode(t)}};const{isASCIIHex:Kr}=Vr,{utf8Encode:Xr}=Yr;function Qr(t){return t.codePointAt(0)}function tu(t){let e=t.toString(16).toUpperCase();return 1===e.length&&(e=`0${e}`),`%${e}`}function eu(t){const e=new Uint8Array(t.byteLength);let n=0;for(let r=0;r<t.byteLength;++r){const u=t[r];if(37!==u)e[n++]=u;else if(37!==u||Kr(t[r+1])&&Kr(t[r+2])){const u=parseInt(String.fromCodePoint(t[r+1],t[r+2]),16);e[n++]=u,r+=2}else e[n++]=u}return e.slice(0,n)}function nu(t){return t<=31||t>126}const ru=new Set([Qr(" "),Qr('"'),Qr("<"),Qr(">"),Qr("`")]);const uu=new Set([Qr(" "),Qr('"'),Qr("#"),Qr("<"),Qr(">")]);function ou(t){return nu(t)||uu.has(t)}const iu=new Set([Qr("?"),Qr("`"),Qr("{"),Qr("}"),Qr("^")]);function su(t){return ou(t)||iu.has(t)}const au=new Set([Qr("/"),Qr(":"),Qr(";"),Qr("="),Qr("@"),Qr("["),Qr("\\"),Qr("]"),Qr("|")]);function cu(t){return su(t)||au.has(t)}const du=new Set([Qr("$"),Qr("%"),Qr("&"),Qr("+"),Qr(",")]);const lu=new Set([Qr("!"),Qr("'"),Qr("("),Qr(")"),Qr("~")]);function hu(t,e){const n=Xr(t);let r="";for(const t of n)e(t)?r+=tu(t):r+=String.fromCharCode(t);return r}var pu={isC0ControlPercentEncode:nu,isFragmentPercentEncode:function(t){return nu(t)||ru.has(t)},isQueryPercentEncode:ou,isSpecialQueryPercentEncode:function(t){return ou(t)||t===Qr("'")},isPathPercentEncode:su,isUserinfoPercentEncode:cu,isURLEncodedPercentEncode:function(t){return function(t){return cu(t)||du.has(t)}(t)||lu.has(t)},percentDecodeString:function(t){return eu(Xr(t))},percentDecodeBytes:eu,utf8PercentEncodeString:function(t,e,n=!1){let r="";for(const u of t)r+=n&&" "===u?"+":hu(u,e);return r},utf8PercentEncodeCodePoint:function(t,e){return hu(String.fromCodePoint(t),e)}},fu=Ar(function(t){const{utf8DecodeWithoutBOM:e}=Yr,{percentDecodeString:n,utf8PercentEncodeCodePoint:r,utf8PercentEncodeString:u,isC0ControlPercentEncode:o,isFragmentPercentEncode:i,isQueryPercentEncode:s,isSpecialQueryPercentEncode:a,isPathPercentEncode:c,isUserinfoPercentEncode:d}=pu;function l(t){return t.codePointAt(0)}const h={ftp:21,file:null,http:80,https:443,ws:80,wss:443},p=Symbol("failure");function f(t){return[...t].length}function m(t,e){const n=t[e];return isNaN(n)?void 0:String.fromCodePoint(n)}function v(t){return"."===t||"%2e"===t.toLowerCase()}function E(t){return 2===t.length&&Vr.isASCIIAlpha(t.codePointAt(0))&&(":"===t[1]||"|"===t[1])}function A(t){return-1!==t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)}function b(t){return void 0!==h[t]}function y(t){return b(t.scheme)}function g(t){return!b(t.scheme)}function C(t){return h[t]}function F(t){if(""===t)return p;let e=10;if(t.length>=2&&"0"===t.charAt(0)&&"x"===t.charAt(1).toLowerCase()?(t=t.substring(2),e=16):t.length>=2&&"0"===t.charAt(0)&&(t=t.substring(1),e=8),""===t)return 0;let n=/[^0-7]/u;return 10===e&&(n=/[^0-9]/u),16===e&&(n=/[^0-9A-Fa-f]/u),n.test(t)?p:parseInt(t,e)}function w(t,r=!1){if("["===t[0])return"]"!==t[t.length-1]?p:function(t){const e=[0,0,0,0,0,0,0,0];let n=0,r=null,u=0;if((t=Array.from(t,t=>t.codePointAt(0)))[u]===l(":")){if(t[u+1]!==l(":"))return p;u+=2,++n,r=n}for(;u<t.length;){if(8===n)return p;if(t[u]===l(":")){if(null!==r)return p;++u,++n,r=n;continue}let o=0,i=0;for(;i<4&&Vr.isASCIIHex(t[u]);)o=16*o+parseInt(m(t,u),16),++u,++i;if(t[u]===l(".")){if(0===i)return p;if(u-=i,n>6)return p;let r=0;for(;void 0!==t[u];){let o=null;if(r>0){if(!(t[u]===l(".")&&r<4))return p;++u}if(!Vr.isASCIIDigit(t[u]))return p;for(;Vr.isASCIIDigit(t[u]);){const e=parseInt(m(t,u));if(null===o)o=e;else{if(0===o)return p;o=10*o+e}if(o>255)return p;++u}e[n]=256*e[n]+o,++r,2!==r&&4!==r||++n}if(4!==r)return p;break}if(t[u]===l(":")){if(++u,void 0===t[u])return p}else if(void 0!==t[u])return p;e[n]=o,++n}if(null!==r){let t=n-r;for(n=7;0!==n&&t>0;){const u=e[r+t-1];e[r+t-1]=e[n],e[n]=u,--n,--t}}else if(null===r&&8!==n)return p;return e}(t.substring(1,t.length-1));if(r)return function(t){if(A(t))return p;return u(t,o)}(t);const i=function(t,e=!1){const n=$r.toASCII(t,{checkHyphens:e,checkBidi:!0,checkJoiners:!0,useSTD3ASCIIRules:e,transitionalProcessing:!1,verifyDNSLength:e,ignoreInvalidPunycode:!1});if(null===n)return p;if(!e){if(""===n)return p;if(A(r=n)||-1!==r.search(/[\u0000-\u001F]|%|\u007F/u))return p}var r;return n}(e(n(t)));return i===p?p:function(t){const e=t.split(".");if(""===e[e.length-1]){if(1===e.length)return!1;e.pop()}const n=e[e.length-1];if(F(n)!==p)return!0;if(/^[0-9]+$/u.test(n))return!0;return!1}(i)?function(t){const e=t.split(".");if(""===e[e.length-1]&&e.length>1&&e.pop(),e.length>4)return p;const n=[];for(const t of e){const e=F(t);if(e===p)return p;n.push(e)}for(let t=0;t<n.length-1;++t)if(n[t]>255)return p;if(n[n.length-1]>=256**(5-n.length))return p;let r=n.pop(),u=0;for(const t of n)r+=t*256**(3-u),++u;return r}(i):i}function D(t){return"number"==typeof t?function(t){let e="",n=t;for(let t=1;t<=4;++t)e=String(n%256)+e,4!==t&&(e=`.${e}`),n=Math.floor(n/256);return e}(t):t instanceof Array?`[${function(t){let e="";const n=function(t){let e=null,n=1,r=null,u=0;for(let o=0;o<t.length;++o)0!==t[o]?(u>n&&(e=r,n=u),r=null,u=0):(null===r&&(r=o),++u);return u>n?r:e}(t);let r=!1;for(let u=0;u<=7;++u)if(!r||0!==t[u]){if(r&&(r=!1),n===u){e+=0===u?"::":":",r=!0;continue}e+=t[u].toString(16),7!==u&&(e+=":")}return e}(t)}]`:t}function B(t){const{path:e}=t;var n;0!==e.length&&("file"===t.scheme&&1===e.length&&(n=e[0],/^[A-Za-z]:$/u.test(n))||e.pop())}function I(t){return""!==t.username||""!==t.password}function R(t){return"string"==typeof t.path}function j(t,e,n,r,u){if(this.pointer=0,this.input=t,this.base=e||null,this.encodingOverride=n||"utf-8",this.stateOverride=u,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const t=function(t){let e=0,n=t.length;for(;e<n&&!(t.charCodeAt(e)>32);++e);for(;n>e&&!(t.charCodeAt(n-1)>32);--n);return t.substring(e,n)}(this.input);t!==this.input&&(this.parseError=!0),this.input=t}const o=function(t){return t.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=u||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,t=>t.codePointAt(0));this.pointer<=this.input.length;++this.pointer){const t=this.input[this.pointer],e=isNaN(t)?void 0:String.fromCodePoint(t),n=this[`parse ${this.state}`](t,e);if(!n)break;if(n===p){this.failure=!0;break}}}j.prototype["parse scheme start"]=function(t,e){if(Vr.isASCIIAlpha(t))this.buffer+=e.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,p;this.state="no scheme",--this.pointer}return!0},j.prototype["parse scheme"]=function(t,e){if(Vr.isASCIIAlphanumeric(t)||t===l("+")||t===l("-")||t===l("."))this.buffer+=e.toLowerCase();else if(t===l(":")){if(this.stateOverride){if(y(this.url)&&!b(this.buffer))return!1;if(!y(this.url)&&b(this.buffer))return!1;if((I(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===C(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===l("/")&&this.input[this.pointer+2]===l("/")||(this.parseError=!0),this.state="file"):y(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":y(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===l("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,p;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},j.prototype["parse no scheme"]=function(t){return null===this.base||R(this.base)&&t!==l("#")?p:(R(this.base)&&t===l("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},j.prototype["parse special relative or authority"]=function(t){return t===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},j.prototype["parse path or authority"]=function(t){return t===l("/")?this.state="authority":(this.state="path",--this.pointer),!0},j.prototype["parse relative"]=function(t){return this.url.scheme=this.base.scheme,t===l("/")?this.state="relative slash":y(this.url)&&t===l("\\")?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,t===l("?")?(this.url.query="",this.state="query"):t===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(t)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},j.prototype["parse relative slash"]=function(t){return!y(this.url)||t!==l("/")&&t!==l("\\")?t===l("/")?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(t===l("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},j.prototype["parse special authority slashes"]=function(t){return t===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},j.prototype["parse special authority ignore slashes"]=function(t){return t!==l("/")&&t!==l("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},j.prototype["parse authority"]=function(t,e){if(t===l("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const t=f(this.buffer);for(let e=0;e<t;++e){const t=this.buffer.codePointAt(e);if(t===l(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const n=r(t,d);this.passwordTokenSeenFlag?this.url.password+=n:this.url.username+=n}this.buffer=""}else if(isNaN(t)||t===l("/")||t===l("?")||t===l("#")||y(this.url)&&t===l("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,p;this.pointer-=f(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=e;return!0},j.prototype["parse hostname"]=j.prototype["parse host"]=function(t,e){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(t!==l(":")||this.arrFlag)if(isNaN(t)||t===l("/")||t===l("?")||t===l("#")||y(this.url)&&t===l("\\")){if(--this.pointer,y(this.url)&&""===this.buffer)return this.parseError=!0,p;if(this.stateOverride&&""===this.buffer&&(I(this.url)||null!==this.url.port))return this.parseError=!0,!1;const t=w(this.buffer,g(this.url));if(t===p)return p;if(this.url.host=t,this.buffer="",this.state="path start",this.stateOverride)return!1}else t===l("[")?this.arrFlag=!0:t===l("]")&&(this.arrFlag=!1),this.buffer+=e;else{if(""===this.buffer)return this.parseError=!0,p;if("hostname"===this.stateOverride)return!1;const t=w(this.buffer,g(this.url));if(t===p)return p;this.url.host=t,this.buffer="",this.state="port"}return!0},j.prototype["parse port"]=function(t,e){if(Vr.isASCIIDigit(t))this.buffer+=e;else{if(!(isNaN(t)||t===l("/")||t===l("?")||t===l("#")||y(this.url)&&t===l("\\")||this.stateOverride))return this.parseError=!0,p;if(""!==this.buffer){const t=parseInt(this.buffer);if(t>65535)return this.parseError=!0,p;this.url.port=t===C(this.url.scheme)?null:t,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const S=new Set([l("/"),l("\\"),l("?"),l("#")]);function _(t,e){const n=t.length-e;return n>=2&&(r=t[e],u=t[e+1],Vr.isASCIIAlpha(r)&&(u===l(":")||u===l("|")))&&(2===n||S.has(t[e+2]));var r,u}function U(t){if(R(t))return t.path;let e="";for(const n of t.path)e+=`/${n}`;return e}j.prototype["parse file"]=function(t){return this.url.scheme="file",this.url.host="",t===l("/")||t===l("\\")?(t===l("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,t===l("?")?(this.url.query="",this.state="query"):t===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(t)||(this.url.query=null,_(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):B(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},j.prototype["parse file slash"]=function(t){var e;return t===l("/")||t===l("\\")?(t===l("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!_(this.input,this.pointer)&&(2===(e=this.base.path[0]).length&&Vr.isASCIIAlpha(e.codePointAt(0))&&":"===e[1])&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},j.prototype["parse file host"]=function(t,e){if(isNaN(t)||t===l("/")||t===l("\\")||t===l("?")||t===l("#"))if(--this.pointer,!this.stateOverride&&E(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let t=w(this.buffer,g(this.url));if(t===p)return p;if("localhost"===t&&(t=""),this.url.host=t,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=e;return!0},j.prototype["parse path start"]=function(t){return y(this.url)?(t===l("\\")&&(this.parseError=!0),this.state="path",t!==l("/")&&t!==l("\\")&&--this.pointer):this.stateOverride||t!==l("?")?this.stateOverride||t!==l("#")?void 0!==t?(this.state="path",t!==l("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},j.prototype["parse path"]=function(t){return isNaN(t)||t===l("/")||y(this.url)&&t===l("\\")||!this.stateOverride&&(t===l("?")||t===l("#"))?(y(this.url)&&t===l("\\")&&(this.parseError=!0),!function(t){return".."===(t=t.toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t}(this.buffer)?!v(this.buffer)||t===l("/")||y(this.url)&&t===l("\\")?v(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&E(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""):(B(this.url),t===l("/")||y(this.url)&&t===l("\\")||this.url.path.push("")),this.buffer="",t===l("?")&&(this.url.query="",this.state="query"),t===l("#")&&(this.url.fragment="",this.state="fragment")):(t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=r(t,c)),!0},j.prototype["parse opaque path"]=function(t){if(t===l("?"))this.url.query="",this.state="query";else if(t===l("#"))this.url.fragment="",this.state="fragment";else if(t===l(" ")){const t=this.input[this.pointer+1];t===l("?")||t===l("#")?this.url.path+="%20":this.url.path+=" "}else isNaN(t)||t===l("%")||(this.parseError=!0),t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(t)||(this.url.path+=r(t,o));return!0},j.prototype["parse query"]=function(t,e){if(y(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&t===l("#")||isNaN(t)){const e=y(this.url)?a:s;this.url.query+=u(this.buffer,e),this.buffer="",t===l("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(t)||(t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=e);return!0},j.prototype["parse fragment"]=function(t){return isNaN(t)||(t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=r(t,i)),!0},t.exports.serializeURL=function(t,e){let n=`${t.scheme}:`;return null!==t.host&&(n+="//",""===t.username&&""===t.password||(n+=t.username,""!==t.password&&(n+=`:${t.password}`),n+="@"),n+=D(t.host),null!==t.port&&(n+=`:${t.port}`)),null===t.host&&!R(t)&&t.path.length>1&&""===t.path[0]&&(n+="/."),n+=U(t),null!==t.query&&(n+=`?${t.query}`),e||null===t.fragment||(n+=`#${t.fragment}`),n},t.exports.serializePath=U,t.exports.serializeURLOrigin=function(e){switch(e.scheme){case"blob":{const n=t.exports.parseURL(U(e));return null===n||"http"!==n.scheme&&"https"!==n.scheme?"null":t.exports.serializeURLOrigin(n)}case"ftp":case"http":case"https":case"ws":case"wss":return function(t){let e=`${t.scheme}://`;return e+=D(t.host),null!==t.port&&(e+=`:${t.port}`),e}({scheme:e.scheme,host:e.host,port:e.port});default:return"null"}},t.exports.basicURLParse=function(t,e){void 0===e&&(e={});const n=new j(t,e.baseURL,e.encodingOverride,e.url,e.stateOverride);return n.failure?null:n.url},t.exports.setTheUsername=function(t,e){t.username=u(e,d)},t.exports.setThePassword=function(t,e){t.password=u(e,d)},t.exports.serializeHost=D,t.exports.cannotHaveAUsernamePasswordPort=function(t){return null===t.host||""===t.host||"file"===t.scheme},t.exports.hasAnOpaquePath=R,t.exports.serializeInteger=function(t){return String(t)},t.exports.parseURL=function(e,n){return void 0===n&&(n={}),t.exports.basicURLParse(e,{baseURL:n.baseURL,encodingOverride:n.encodingOverride})}});fu.serializeURL,fu.serializePath,fu.serializeURLOrigin,fu.basicURLParse,fu.setTheUsername,fu.setThePassword,fu.serializeHost,fu.cannotHaveAUsernamePasswordPort,fu.hasAnOpaquePath,fu.serializeInteger,fu.parseURL;const{utf8Encode:mu,utf8DecodeWithoutBOM:vu}=Yr,{percentDecodeBytes:Eu,utf8PercentEncodeString:Au,isURLEncodedPercentEncode:bu}=pu;function yu(t){return t.codePointAt(0)}function gu(t,e,n){let r=t.indexOf(e);for(;r>=0;)t[r]=n,r=t.indexOf(e,r+1);return t}var Cu={parseUrlencodedString:function(t){return function(t){const e=function(t,e){const n=[];let r=0,u=t.indexOf(e);for(;u>=0;)n.push(t.slice(r,u)),r=u+1,u=t.indexOf(e,r);return r!==t.length&&n.push(t.slice(r)),n}(t,yu("&")),n=[];for(const t of e){if(0===t.length)continue;let e,r;const u=t.indexOf(yu("="));u>=0?(e=t.slice(0,u),r=t.slice(u+1)):(e=t,r=new Uint8Array(0)),e=gu(e,43,32),r=gu(r,43,32);const o=vu(Eu(e)),i=vu(Eu(r));n.push([o,i])}return n}(mu(t))},serializeUrlencoded:function(t){let e="";for(const[n,r]of t.entries()){0!==n&&(e+="&"),e+=`${Au(r[0],bu,!0)}=${Au(r[1],bu,!0)}`}return e}},Fu=(t,e,{context:n="The provided value"}={})=>{if("function"!=typeof e)throw new t.TypeError(n+" is not a function");function r(...r){const u=yr.tryWrapperForImpl(this);let o;for(let t=0;t<r.length;t++)r[t]=yr.tryWrapperForImpl(r[t]);return o=Reflect.apply(e,u,r),o=br.any(o,{context:n,globals:t}),o}return r.construct=(...r)=>{for(let t=0;t<r.length;t++)r[t]=yr.tryWrapperForImpl(r[t]);let u=Reflect.construct(e,r);return u=br.any(u,{context:n,globals:t}),u},r[yr.wrapperSymbol]=e,r.objectReference=e,r},wu=class{constructor(t,e,{doNotStripQMark:n=!1}){let r=e[0];if(this._list=[],this._url=null,n||"string"!=typeof r||"?"!==r[0]||(r=r.slice(1)),Array.isArray(r))for(const t of r){if(2!==t.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([t[0],t[1]])}else if("object"==typeof r&&null===Object.getPrototypeOf(r))for(const t of Object.keys(r)){const e=r[t];this._list.push([t,e])}else this._list=Cu.parseUrlencodedString(r)}_updateSteps(){if(null!==this._url){let t=Cu.serializeUrlencoded(this._list);""===t&&(t=null),this._url._url.query=t}}get size(){return this._list.length}append(t,e){this._list.push([t,e]),this._updateSteps()}delete(t,e){let n=0;for(;n<this._list.length;)this._list[n][0]!==t||void 0!==e&&this._list[n][1]!==e?n++:this._list.splice(n,1);this._updateSteps()}get(t){for(const e of this._list)if(e[0]===t)return e[1];return null}getAll(t){const e=[];for(const n of this._list)n[0]===t&&e.push(n[1]);return e}has(t,e){for(const n of this._list)if(n[0]===t&&(void 0===e||n[1]===e))return!0;return!1}set(t,e){let n=!1,r=0;for(;r<this._list.length;)this._list[r][0]===t?n?this._list.splice(r,1):(n=!0,this._list[r][1]=e,r++):r++;n||this._list.push([t,e]),this._updateSteps()}sort(){this._list.sort((t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return Cu.serializeUrlencoded(this._list)}},Du={implementation:wu},Bu=Ar(function(t,e){const n=yr.newObjectInRealm,r=yr.implSymbol,u=yr.ctorRegistrySymbol,o="URLSearchParams";function i(t,e){let n;return void 0!==e&&(n=e.prototype),yr.isObject(n)||(n=t[u].URLSearchParams.prototype),Object.create(n)}e.is=t=>yr.isObject(t)&&yr.hasOwn(t,r)&&t[r]instanceof Du.implementation,e.isImpl=t=>yr.isObject(t)&&t instanceof Du.implementation,e.convert=(t,n,{context:r="The provided value"}={})=>{if(e.is(n))return yr.implForWrapper(n);throw new t.TypeError(`${r} is not of type 'URLSearchParams'.`)},e.createDefaultIterator=(t,e,n)=>{const r=t[u]["URLSearchParams Iterator"],o=Object.create(r);return Object.defineProperty(o,yr.iterInternalSymbol,{value:{target:e,kind:n,index:0},configurable:!0}),o},e.create=(t,n,r)=>{const u=i(t);return e.setup(u,t,n,r)},e.createImpl=(t,n,r)=>{const u=e.create(t,n,r);return yr.implForWrapper(u)},e._internalSetup=(t,e)=>{},e.setup=(t,n,u=[],o={})=>(o.wrapper=t,e._internalSetup(t,n),Object.defineProperty(t,r,{value:new Du.implementation(n,u,o),configurable:!0}),t[r][yr.wrapperSymbol]=t,Du.init&&Du.init(t[r]),t),e.new=(t,n)=>{const u=i(t,n);return e._internalSetup(u,t),Object.defineProperty(u,r,{value:Object.create(Du.implementation.prototype),configurable:!0}),u[r][yr.wrapperSymbol]=u,Du.init&&Du.init(u[r]),u[r]};const s=new Set(["Window","Worker"]);e.install=(t,u)=>{if(!u.some(t=>s.has(t)))return;const i=yr.initCtorRegistry(t);class a{constructor(){const n=[];{let e=arguments[0];if(void 0!==e)if(yr.isObject(e))if(void 0!==e[Symbol.iterator]){if(!yr.isObject(e))throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const n=[],r=e;for(let e of r){if(!yr.isObject(e))throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const n=[],r=e;for(let e of r)e=br.USVString(e,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:t}),n.push(e);e=n}n.push(e)}e=n}}else{if(!yr.isObject(e))throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const n=Object.create(null);for(const r of Reflect.ownKeys(e)){const u=Object.getOwnPropertyDescriptor(e,r);if(u&&u.enumerable){let u=r;u=br.USVString(u,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:t});let o=e[r];o=br.USVString(o,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:t}),n[u]=o}}e=n}}else e=br.USVString(e,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:t});else e="";n.push(e)}return e.setup(Object.create(new.target.prototype),t,n)}append(n,u){const o=null!=this?this:t;if(!e.is(o))throw new t.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new t.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const i=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:t}),i.push(e)}{let e=arguments[1];e=br.USVString(e,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:t}),i.push(e)}return yr.tryWrapperForImpl(o[r].append(...i))}delete(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:t})),o.push(e)}return yr.tryWrapperForImpl(u[r].delete(...o))}get(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}return u[r].get(...o)}getAll(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}return yr.tryWrapperForImpl(u[r].getAll(...o))}has(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:t})),o.push(e)}return u[r].has(...o)}set(n,u){const o=null!=this?this:t;if(!e.is(o))throw new t.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new t.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const i=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:t}),i.push(e)}{let e=arguments[1];e=br.USVString(e,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:t}),i.push(e)}return yr.tryWrapperForImpl(o[r].set(...i))}sort(){const n=null!=this?this:t;if(!e.is(n))throw new t.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return yr.tryWrapperForImpl(n[r].sort())}toString(){const n=null!=this?this:t;if(!e.is(n))throw new t.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return n[r].toString()}keys(){if(!e.is(this))throw new t.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return e.createDefaultIterator(t,this,"key")}values(){if(!e.is(this))throw new t.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return e.createDefaultIterator(t,this,"value")}entries(){if(!e.is(this))throw new t.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return e.createDefaultIterator(t,this,"key+value")}forEach(n){if(!e.is(this))throw new t.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");n=Fu(t,n,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const u=arguments[1];let o=Array.from(this[r]),i=0;for(;i<o.length;){const[t,e]=o[i].map(yr.tryWrapperForImpl);n.call(u,e,t,this),o=Array.from(this[r]),i++}}get size(){const n=null!=this?this:t;if(!e.is(n))throw new t.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return n[r].size}}Object.defineProperties(a.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},size:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:a.prototype.entries,configurable:!0,writable:!0}}),i[o]=a,i["URLSearchParams Iterator"]=Object.create(i["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),yr.define(i["URLSearchParams Iterator"],{next(){const e=this&&this[yr.iterInternalSymbol];if(!e)throw new t.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:u,kind:o,index:i}=e,s=Array.from(u[r]);if(i>=s.length)return n(t,{value:void 0,done:!0});const a=s[i];return e.index=i+1,n(t,yr.iteratorResult(a.map(yr.tryWrapperForImpl),o))}}),Object.defineProperty(t,o,{configurable:!0,writable:!0,value:a})}});Bu.is,Bu.isImpl,Bu.convert,Bu.createDefaultIterator,Bu.create,Bu.createImpl,Bu._internalSetup,Bu.setup,Bu.install;var Iu={implementation:class t{constructor(t,[e,n]){let r=null;if(void 0!==n&&(r=fu.basicURLParse(n),null===r))throw new TypeError(`Invalid base URL: ${n}`);const u=fu.basicURLParse(e,{baseURL:r});if(null===u)throw new TypeError(`Invalid URL: ${e}`);const o=null!==u.query?u.query:"";this._url=u,this._query=Bu.createImpl(t,[o],{doNotStripQMark:!0}),this._query._url=this}static parse(e,n,r){try{return new t(e,[n,r])}catch{return null}}static canParse(t,e){let n=null;if(void 0!==e&&(n=fu.basicURLParse(e),null===n))return!1;return null!==fu.basicURLParse(t,{baseURL:n})}get href(){return fu.serializeURL(this._url)}set href(t){const e=fu.basicURLParse(t);if(null===e)throw new TypeError(`Invalid URL: ${t}`);this._url=e,this._query._list.splice(0);const{query:n}=e;null!==n&&(this._query._list=Cu.parseUrlencodedString(n))}get origin(){return fu.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(t){fu.basicURLParse(`${t}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(t){fu.cannotHaveAUsernamePasswordPort(this._url)||fu.setTheUsername(this._url,t)}get password(){return this._url.password}set password(t){fu.cannotHaveAUsernamePasswordPort(this._url)||fu.setThePassword(this._url,t)}get host(){const t=this._url;return null===t.host?"":null===t.port?fu.serializeHost(t.host):`${fu.serializeHost(t.host)}:${fu.serializeInteger(t.port)}`}set host(t){fu.hasAnOpaquePath(this._url)||fu.basicURLParse(t,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":fu.serializeHost(this._url.host)}set hostname(t){fu.hasAnOpaquePath(this._url)||fu.basicURLParse(t,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":fu.serializeInteger(this._url.port)}set port(t){fu.cannotHaveAUsernamePasswordPort(this._url)||(""===t?this._url.port=null:fu.basicURLParse(t,{url:this._url,stateOverride:"port"}))}get pathname(){return fu.serializePath(this._url)}set pathname(t){fu.hasAnOpaquePath(this._url)||(this._url.path=[],fu.basicURLParse(t,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(t){const e=this._url;if(""===t)return e.query=null,void(this._query._list=[]);const n="?"===t[0]?t.substring(1):t;e.query="",fu.basicURLParse(n,{url:e,stateOverride:"query"}),this._query._list=Cu.parseUrlencodedString(n)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(t){if(""===t)return void(this._url.fragment=null);const e="#"===t[0]?t.substring(1):t;this._url.fragment="",fu.basicURLParse(e,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},Ru=Ar(function(t,e){const n=yr.implSymbol,r=yr.ctorRegistrySymbol;function u(t,e){let n;return void 0!==e&&(n=e.prototype),yr.isObject(n)||(n=t[r].URL.prototype),Object.create(n)}e.is=t=>yr.isObject(t)&&yr.hasOwn(t,n)&&t[n]instanceof Iu.implementation,e.isImpl=t=>yr.isObject(t)&&t instanceof Iu.implementation,e.convert=(t,n,{context:r="The provided value"}={})=>{if(e.is(n))return yr.implForWrapper(n);throw new t.TypeError(`${r} is not of type 'URL'.`)},e.create=(t,n,r)=>{const o=u(t);return e.setup(o,t,n,r)},e.createImpl=(t,n,r)=>{const u=e.create(t,n,r);return yr.implForWrapper(u)},e._internalSetup=(t,e)=>{},e.setup=(t,r,u=[],o={})=>(o.wrapper=t,e._internalSetup(t,r),Object.defineProperty(t,n,{value:new Iu.implementation(r,u,o),configurable:!0}),t[n][yr.wrapperSymbol]=t,Iu.init&&Iu.init(t[n]),t),e.new=(t,r)=>{const o=u(t,r);return e._internalSetup(o,t),Object.defineProperty(o,n,{value:Object.create(Iu.implementation.prototype),configurable:!0}),o[n][yr.wrapperSymbol]=o,Iu.init&&Iu.init(o[n]),o[n]};const o=new Set(["Window","Worker"]);e.install=(t,r)=>{if(!r.some(t=>o.has(t)))return;const u=yr.initCtorRegistry(t);class i{constructor(n){if(arguments.length<1)throw new t.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const r=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to construct 'URL': parameter 1",globals:t}),r.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to construct 'URL': parameter 2",globals:t})),r.push(e)}return e.setup(Object.create(new.target.prototype),t,r)}toJSON(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[n].toJSON()}get href(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[n].href}set href(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set href' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:t}),u[n].href=r}toString(){if(!e.is(this))throw new t.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[n].href}get origin(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[n].origin}get protocol(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[n].protocol}set protocol(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:t}),u[n].protocol=r}get username(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[n].username}set username(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set username' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:t}),u[n].username=r}get password(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[n].password}set password(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set password' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:t}),u[n].password=r}get host(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[n].host}set host(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set host' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:t}),u[n].host=r}get hostname(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[n].hostname}set hostname(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:t}),u[n].hostname=r}get port(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[n].port}set port(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set port' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:t}),u[n].port=r}get pathname(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[n].pathname}set pathname(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:t}),u[n].pathname=r}get search(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[n].search}set search(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set search' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:t}),u[n].search=r}get searchParams(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return yr.getSameObject(this,"searchParams",()=>yr.tryWrapperForImpl(r[n].searchParams))}get hash(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[n].hash}set hash(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:t}),u[n].hash=r}static parse(e){if(arguments.length<1)throw new t.TypeError(`Failed to execute 'parse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'parse' on 'URL': parameter 1",globals:t}),n.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'parse' on 'URL': parameter 2",globals:t})),n.push(e)}return yr.tryWrapperForImpl(Iu.implementation.parse(t,...n))}static canParse(e){if(arguments.length<1)throw new t.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:t}),n.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:t})),n.push(e)}return Iu.implementation.canParse(...n)}}Object.defineProperties(i.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),Object.defineProperties(i,{parse:{enumerable:!0},canParse:{enumerable:!0}}),u.URL=i,Object.defineProperty(t,"URL",{configurable:!0,writable:!0,value:i}),r.includes("Window")&&Object.defineProperty(t,"webkitURL",{configurable:!0,writable:!0,value:i})}});Ru.is,Ru.isImpl,Ru.convert,Ru.create,Ru.createImpl,Ru._internalSetup,Ru.setup,Ru.install;var ju={URL:Ru,URLSearchParams:Bu};const{URL:Su,URLSearchParams:_u}=ju,Uu={Array:Array,Object:Object,Promise:Promise,String:String,TypeError:TypeError};Su.install(Uu,["Window"]),_u.install(Uu,["Window"]);var Pu={URL:Uu.URL,URLSearchParams:Uu.URLSearchParams,parseURL:fu.parseURL,basicURLParse:fu.basicURLParse,serializeURL:fu.serializeURL,serializePath:fu.serializePath,serializeHost:fu.serializeHost,serializeInteger:fu.serializeInteger,serializeURLOrigin:fu.serializeURLOrigin,setTheUsername:fu.setTheUsername,setThePassword:fu.setThePassword,cannotHaveAUsernamePasswordPort:fu.cannotHaveAUsernamePasswordPort,hasAnOpaquePath:fu.hasAnOpaquePath,percentDecodeString:pu.percentDecodeString,percentDecodeBytes:pu.percentDecodeBytes};const Ou=o.Readable,ku=Symbol("buffer"),xu=Symbol("type");class Tu{constructor(){this[xu]="";const t=arguments[0],e=arguments[1],n=[];let r=0;if(t){const e=t,u=Number(e.length);for(let t=0;t<u;t++){const u=e[t];let o;o=u instanceof Buffer?u:ArrayBuffer.isView(u)?Buffer.from(u.buffer,u.byteOffset,u.byteLength):u instanceof ArrayBuffer?Buffer.from(u):u instanceof Tu?u[ku]:Buffer.from("string"==typeof u?u:String(u)),r+=o.length,n.push(o)}}this[ku]=Buffer.concat(n);let u=e&&void 0!==e.type&&String(e.type).toLowerCase();u&&!/[^\u0020-\u007E]/.test(u)&&(this[xu]=u)}get size(){return this[ku].length}get type(){return this[xu]}text(){return Promise.resolve(this[ku].toString())}arrayBuffer(){const t=this[ku],e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return Promise.resolve(e)}stream(){const t=new Ou;return t._read=function(){},t.push(this[ku]),t.push(null),t}toString(){return"[object Blob]"}slice(){const t=this.size,e=arguments[0],n=arguments[1];let r,u;r=void 0===e?0:e<0?Math.max(t+e,0):Math.min(e,t),u=void 0===n?t:n<0?Math.max(t+n,0):Math.min(n,t);const o=Math.max(u-r,0),i=this[ku].slice(r,r+o),s=new Tu([],{type:arguments[2]});return s[ku]=i,s}}function Lu(t,e,n){Error.call(this,t),this.message=t,this.type=e,n&&(this.code=this.errno=n.code),Error.captureStackTrace(this,this.constructor)}let Nu;Object.defineProperties(Tu.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(Tu.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),Lu.prototype=Object.create(Error.prototype),Lu.prototype.constructor=Lu,Lu.prototype.name="FetchError";try{Nu=require("encoding").convert}catch(t){}const qu=Symbol("Body internals"),Mu=o.PassThrough;function Gu(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.size;let u=void 0===r?0:r;var i=n.timeout;let s=void 0===i?0:i;null==t?t=null:$u(t)?t=Buffer.from(t.toString()):Wu(t)||Buffer.isBuffer(t)||("[object ArrayBuffer]"===Object.prototype.toString.call(t)?t=Buffer.from(t):ArrayBuffer.isView(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof o||(t=Buffer.from(String(t)))),this[qu]={body:t,disturbed:!1,error:null},this.size=u,this.timeout=s,t instanceof o&&t.on("error",function(t){const n="AbortError"===t.name?t:new Lu(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t);e[qu].error=n})}function zu(){var t=this;if(this[qu].disturbed)return Gu.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[qu].disturbed=!0,this[qu].error)return Gu.Promise.reject(this[qu].error);let e=this.body;if(null===e)return Gu.Promise.resolve(Buffer.alloc(0));if(Wu(e)&&(e=e.stream()),Buffer.isBuffer(e))return Gu.Promise.resolve(e);if(!(e instanceof o))return Gu.Promise.resolve(Buffer.alloc(0));let n=[],r=0,u=!1;return new Gu.Promise(function(o,i){let s;t.timeout&&(s=setTimeout(function(){u=!0,i(new Lu(`Response timeout while trying to fetch ${t.url} (over ${t.timeout}ms)`,"body-timeout"))},t.timeout)),e.on("error",function(e){"AbortError"===e.name?(u=!0,i(e)):i(new Lu(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e))}),e.on("data",function(e){if(!u&&null!==e){if(t.size&&r+e.length>t.size)return u=!0,void i(new Lu(`content size at ${t.url} over limit: ${t.size}`,"max-size"));r+=e.length,n.push(e)}}),e.on("end",function(){if(!u){clearTimeout(s);try{o(Buffer.concat(n,r))}catch(e){i(new Lu(`Could not create Buffer from response body for ${t.url}: ${e.message}`,"system",e))}}})})}function $u(t){return"object"==typeof t&&"function"==typeof t.append&&"function"==typeof t.delete&&"function"==typeof t.get&&"function"==typeof t.getAll&&"function"==typeof t.has&&"function"==typeof t.set&&("URLSearchParams"===t.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(t)||"function"==typeof t.sort)}function Wu(t){return"object"==typeof t&&"function"==typeof t.arrayBuffer&&"string"==typeof t.type&&"function"==typeof t.stream&&"function"==typeof t.constructor&&"string"==typeof t.constructor.name&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}function Ju(t){let e,n,r=t.body;if(t.bodyUsed)throw new Error("cannot clone body after it is used");return r instanceof o&&"function"!=typeof r.getBoundary&&(e=new Mu,n=new Mu,r.pipe(e),r.pipe(n),t[qu].body=e,r=n),r}function Vu(t){return null===t?null:"string"==typeof t?"text/plain;charset=UTF-8":$u(t)?"application/x-www-form-urlencoded;charset=UTF-8":Wu(t)?t.type||null:Buffer.isBuffer(t)||"[object ArrayBuffer]"===Object.prototype.toString.call(t)||ArrayBuffer.isView(t)?null:"function"==typeof t.getBoundary?`multipart/form-data;boundary=${t.getBoundary()}`:t instanceof o?null:"text/plain;charset=UTF-8"}function Hu(t){const e=t.body;return null===e?0:Wu(e)?e.size:Buffer.isBuffer(e)?e.length:e&&"function"==typeof e.getLengthSync&&(e._lengthRetrievers&&0==e._lengthRetrievers.length||e.hasKnownLength&&e.hasKnownLength())?e.getLengthSync():null}Gu.prototype={get body(){return this[qu].body},get bodyUsed(){return this[qu].disturbed},arrayBuffer(){return zu.call(this).then(function(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)})},blob(){let t=this.headers&&this.headers.get("content-type")||"";return zu.call(this).then(function(e){return Object.assign(new Tu([],{type:t.toLowerCase()}),{[ku]:e})})},json(){var t=this;return zu.call(this).then(function(e){try{return JSON.parse(e.toString())}catch(e){return Gu.Promise.reject(new Lu(`invalid json response body at ${t.url} reason: ${e.message}`,"invalid-json"))}})},text(){return zu.call(this).then(function(t){return t.toString()})},buffer(){return zu.call(this)},textConverted(){var t=this;return zu.call(this).then(function(e){return function(t,e){if("function"!=typeof Nu)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=e.get("content-type");let r,u,o="utf-8";n&&(r=/charset=([^;]*)/i.exec(n));u=t.slice(0,1024).toString(),!r&&u&&(r=/<meta.+?charset=(['"])(.+?)\1/i.exec(u));!r&&u&&(r=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(u),r||(r=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(u),r&&r.pop()),r&&(r=/charset=(.*)/i.exec(r.pop())));!r&&u&&(r=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(u));r&&(o=r.pop(),"gb2312"!==o&&"gbk"!==o||(o="gb18030"));return Nu(t,"UTF-8",o).toString()}(e,t.headers)})}},Object.defineProperties(Gu.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),Gu.mixIn=function(t){for(const e of Object.getOwnPropertyNames(Gu.prototype))if(!(e in t)){const n=Object.getOwnPropertyDescriptor(Gu.prototype,e);Object.defineProperty(t,e,n)}},Gu.Promise=global.Promise;const Zu=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,Yu=/[^\t\x20-\x7e\x80-\xff]/;function Ku(t){if(t=`${t}`,Zu.test(t)||""===t)throw new TypeError(`${t} is not a legal HTTP header name`)}function Xu(t){if(t=`${t}`,Yu.test(t))throw new TypeError(`${t} is not a legal HTTP header value`)}function Qu(t,e){e=e.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return n}const to=Symbol("map");class eo{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[to]=Object.create(null),t instanceof eo){const e=t.raw(),n=Object.keys(e);for(const t of n)for(const n of e[t])this.append(t,n);return}if(null==t);else{if("object"!=typeof t)throw new TypeError("Provided initializer must be an object");{const e=t[Symbol.iterator];if(null!=e){if("function"!=typeof e)throw new TypeError("Header pairs must be iterable");const n=[];for(const e of t){if("object"!=typeof e||"function"!=typeof e[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(e))}for(const t of n){if(2!==t.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(t[0],t[1])}}else for(const e of Object.keys(t)){const n=t[e];this.append(e,n)}}}}get(t){Ku(t=`${t}`);const e=Qu(this[to],t);return void 0===e?null:this[to][e].join(", ")}forEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=no(this),r=0;for(;r<n.length;){var u=n[r];const o=u[0],i=u[1];t.call(e,i,o,this),n=no(this),r++}}set(t,e){e=`${e}`,Ku(t=`${t}`),Xu(e);const n=Qu(this[to],t);this[to][void 0!==n?n:t]=[e]}append(t,e){e=`${e}`,Ku(t=`${t}`),Xu(e);const n=Qu(this[to],t);void 0!==n?this[to][n].push(e):this[to][t]=[e]}has(t){return Ku(t=`${t}`),void 0!==Qu(this[to],t)}delete(t){Ku(t=`${t}`);const e=Qu(this[to],t);void 0!==e&&delete this[to][e]}raw(){return this[to]}keys(){return uo(this,"key")}values(){return uo(this,"value")}[Symbol.iterator](){return uo(this,"key+value")}}function no(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(t[to]).sort().map("key"===e?function(t){return t.toLowerCase()}:"value"===e?function(e){return t[to][e].join(", ")}:function(e){return[e.toLowerCase(),t[to][e].join(", ")]})}eo.prototype.entries=eo.prototype[Symbol.iterator],Object.defineProperty(eo.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(eo.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const ro=Symbol("internal");function uo(t,e){const n=Object.create(oo);return n[ro]={target:t,kind:e,index:0},n}const oo=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==oo)throw new TypeError("Value of `this` is not a HeadersIterator");var t=this[ro];const e=t.target,n=t.kind,r=t.index,u=no(e,n);return r>=u.length?{value:void 0,done:!0}:(this[ro].index=r+1,{value:u[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function io(t){const e=Object.assign({__proto__:null},t[to]),n=Qu(t[to],"Host");return void 0!==n&&(e[n]=e[n][0]),e}Object.defineProperty(oo,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const so=Symbol("Response internals"),ao=s.STATUS_CODES;class co{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gu.call(this,t,e);const n=e.status||200,r=new eo(e.headers);if(null!=t&&!r.has("Content-Type")){const e=Vu(t);e&&r.append("Content-Type",e)}this[so]={url:e.url,status:n,statusText:e.statusText||ao[n],headers:r,counter:e.counter}}get url(){return this[so].url||""}get status(){return this[so].status}get ok(){return this[so].status>=200&&this[so].status<300}get redirected(){return this[so].counter>0}get statusText(){return this[so].statusText}get headers(){return this[so].headers}clone(){return new co(Ju(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Gu.mixIn(co.prototype),Object.defineProperties(co.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(co.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const lo=Symbol("Request internals"),ho=a.URL||Pu.URL,po=a.parse,fo=a.format;function mo(t){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(t)&&(t=new ho(t).toString()),po(t)}const vo="destroy"in o.Readable.prototype;function Eo(t){return"object"==typeof t&&"object"==typeof t[lo]}class Ao{constructor(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Eo(t)?e=mo(t.url):(e=t&&t.href?mo(t.href):mo(`${t}`),t={});let r=n.method||t.method||"GET";if(r=r.toUpperCase(),(null!=n.body||Eo(t)&&null!==t.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let u=null!=n.body?n.body:Eo(t)&&null!==t.body?Ju(t):null;Gu.call(this,u,{timeout:n.timeout||t.timeout||0,size:n.size||t.size||0});const o=new eo(n.headers||t.headers||{});if(null!=u&&!o.has("Content-Type")){const t=Vu(u);t&&o.append("Content-Type",t)}let i=Eo(t)?t.signal:null;if("signal"in n&&(i=n.signal),null!=i&&!function(t){const e=t&&"object"==typeof t&&Object.getPrototypeOf(t);return!(!e||"AbortSignal"!==e.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[lo]={method:r,redirect:n.redirect||t.redirect||"follow",headers:o,parsedURL:e,signal:i},this.follow=void 0!==n.follow?n.follow:void 0!==t.follow?t.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===t.compress||t.compress,this.counter=n.counter||t.counter||0,this.agent=n.agent||t.agent}get method(){return this[lo].method}get url(){return fo(this[lo].parsedURL)}get headers(){return this[lo].headers}get redirect(){return this[lo].redirect}get signal(){return this[lo].signal}clone(){return new Ao(this)}}function bo(t){Error.call(this,t),this.type="aborted",this.message=t,Error.captureStackTrace(this,this.constructor)}Gu.mixIn(Ao.prototype),Object.defineProperty(Ao.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Ao.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),bo.prototype=Object.create(Error.prototype),bo.prototype.constructor=bo,bo.prototype.name="AbortError";const yo=a.URL||Pu.URL,go=o.PassThrough;function Co(t,e){if(!Co.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Gu.Promise=Co.Promise,new Co.Promise(function(n,r){const u=new Ao(t,e),i=function(t){const e=t[lo].parsedURL,n=new eo(t[lo].headers);if(n.has("Accept")||n.set("Accept","*/*"),!e.protocol||!e.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(e.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(t.signal&&t.body instanceof o.Readable&&!vo)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let r=null;if(null==t.body&&/^(POST|PUT)$/i.test(t.method)&&(r="0"),null!=t.body){const e=Hu(t);"number"==typeof e&&(r=String(e))}r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),t.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let u=t.agent;return"function"==typeof u&&(u=u(e)),n.has("Connection")||u||n.set("Connection","close"),Object.assign({},e,{method:t.method,headers:io(n),agent:u})}(u),a=("https:"===i.protocol?d:s).request,c=u.signal;let l=null;const p=function(){let t=new bo("The user aborted a request.");r(t),u.body&&u.body instanceof o.Readable&&u.body.destroy(t),l&&l.body&&l.body.emit("error",t)};if(c&&c.aborted)return void p();const f=function(){p(),E()},m=a(i);let v;function E(){m.abort(),c&&c.removeEventListener("abort",f),clearTimeout(v)}c&&c.addEventListener("abort",f),u.timeout&&m.once("socket",function(t){v=setTimeout(function(){r(new Lu(`network timeout at: ${u.url}`,"request-timeout")),E()},u.timeout)}),m.on("error",function(t){r(new Lu(`request to ${u.url} failed, reason: ${t.message}`,"system",t)),E()}),m.on("response",function(t){clearTimeout(v);const e=function(t){const e=new eo;for(const n of Object.keys(t))if(!Zu.test(n))if(Array.isArray(t[n]))for(const r of t[n])Yu.test(r)||(void 0===e[to][n]?e[to][n]=[r]:e[to][n].push(r));else Yu.test(t[n])||(e[to][n]=[t[n]]);return e}(t.headers);if(Co.isRedirect(t.statusCode)){const o=e.get("Location");let i=null;try{i=null===o?null:new yo(o,u.url).toString()}catch(t){if("manual"!==u.redirect)return r(new Lu(`uri requested responds with an invalid redirect URL: ${o}`,"invalid-redirect")),void E()}switch(u.redirect){case"error":return r(new Lu(`uri requested responds with a redirect, redirect mode is set to error: ${u.url}`,"no-redirect")),void E();case"manual":if(null!==i)try{e.set("Location",i)}catch(t){r(t)}break;case"follow":if(null===i)break;if(u.counter>=u.follow)return r(new Lu(`maximum redirect reached at: ${u.url}`,"max-redirect")),void E();const o={headers:new eo(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout,size:u.size};if(!function(t,e){const n=new yo(e).hostname,r=new yo(t).hostname;return n===r||"."===n[n.length-r.length-1]&&n.endsWith(r)}(u.url,i))for(const t of["authorization","www-authenticate","cookie","cookie2"])o.headers.delete(t);return 303!==t.statusCode&&u.body&&null===Hu(u)?(r(new Lu("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void E()):(303!==t.statusCode&&(301!==t.statusCode&&302!==t.statusCode||"POST"!==u.method)||(o.method="GET",o.body=void 0,o.headers.delete("content-length")),n(Co(new Ao(i,o))),void E())}}t.once("end",function(){c&&c.removeEventListener("abort",f)});let o=t.pipe(new go);const i={url:u.url,status:t.statusCode,statusText:t.statusMessage,headers:e,size:u.size,timeout:u.timeout,counter:u.counter},s=e.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===s||204===t.statusCode||304===t.statusCode)return l=new co(o,i),void n(l);const a={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};if("gzip"==s||"x-gzip"==s)return o=o.pipe(h.createGunzip(a)),l=new co(o,i),void n(l);if("deflate"==s||"x-deflate"==s){return void t.pipe(new go).once("data",function(t){o=8==(15&t[0])?o.pipe(h.createInflate()):o.pipe(h.createInflateRaw()),l=new co(o,i),n(l)})}if("br"==s&&"function"==typeof h.createBrotliDecompress)return o=o.pipe(h.createBrotliDecompress()),l=new co(o,i),void n(l);l=new co(o,i),n(l)}),function(t,e){const n=e.body;null===n?t.end():Wu(n)?n.stream().pipe(t):Buffer.isBuffer(n)?(t.write(n),t.end()):n.pipe(t)}(m,u)})}Co.isRedirect=function(t){return 301===t||302===t||303===t||307===t||308===t},Co.Promise=global.Promise;var Fo="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,wo=Fo?Co:window.fetch;var Do=function(t){return Array.isArray(t)?t:[t]},Bo=function(t,e){return J(void 0,void 0,void 0,function(){var n;return V(this,function(r){return n=Promise.resolve([]),[2,t.reduce(function(t,n){return t.then(function(t){return e(n).then(function(e){return t.push(e),t})})},n)]})})},Io=function(t){function e(e){void 0===e&&(e=8192);var n=t.call(this)||this;return n.bufferDefaultSize=e,n._size=0,n.buffer=Buffer.alloc(n.bufferDefaultSize),n}return $(e,t),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.getContentsAsString=function(t,e){void 0===t&&(t="utf8");var n=this.buffer.toString(t,0,Math.min(e||this.size,this.size)),r=Buffer.byteLength(n);return r<this.size&&this.buffer.copy(this.buffer,0,r),this._size-=r,n},e.prototype.adaptBuffer=function(t){if(this.buffer.length-this.size<t){var e=Math.ceil((t-(this.buffer.length-this.size))/this.bufferDefaultSize),n=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*e);this.buffer.copy(n,0,0,this.size),this.buffer=n}},e.prototype._write=function(t,e,n){this.adaptBuffer(t.length),t.copy(this.buffer,this.size,0),this._size+=t.length,n()},e}(o.Writable),Ro=function(){function t(t,e){this.contextProvider=t,this.agent=e}return t.prototype.getServiceDetails=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(t,"/services/").concat(e))]})})},t.prototype.getAddonDetails=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(t,"/addons/").concat(e))]})})},t.prototype.fetch=function(t,e){return J(this,void 0,void 0,function(){var n,r,u,o,i,s=this;return V(this,function(a){switch(a.label){case 0:return n="Error while trying to connect, please try again.",r=mr({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},W(W({},e),{agent:this.agent})),[4,Xa(2)(function(){return J(s,void 0,void 0,function(){return V(this,function(e){return[2,wo(t,r)]})})}).catch(function(){throw new Error(n)})];case 1:return(u=a.sent()).ok?[3,3]:[4,u.text()];case 2:o=a.sent(),i=n;try{i=JSON.parse(o)}catch(t){i=null!=o?o:n}finally{throw new Error(JSON.stringify(i))}case 3:return[4,u.json()];case 4:return[2,a.sent()]}})})},t}(),jo=function(t,e,n){return J(void 0,void 0,void 0,function(){var r,u,o,i,s;return V(this,function(a){switch(a.label){case 0:if(r=Uo(e||"127.0.0.1"),(u=Uo(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===p.platform()&&(o=function(t){return J(void 0,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return e="lo0 alias ".concat(t," up"),[4,_o.apply(void 0,e.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,a.label=1;case 1:return i<=u?(s=Po(i),[4,So(t,s)]):[3,6];case 2:return a.sent()?o?[4,o(s)]:[3,4]:[3,5];case 3:a.sent(),a.label=4;case 4:return[2,s];case 5:return i+=1,[3,1];case 6:throw new Error("Not possible to assign port '".concat(t,"' to an IP address on this machine. Please check if there is already a service running with this port which binds to the wildcard host address (0.0.0.0) and stop this service."))}})})},So=function(t,e){return new Promise(function(n){var r=new v,u=!1;r.on("connect",function(){u=!0,r.destroy()}),r.setTimeout(400),r.on("timeout",function(){u=!1,r.destroy()}),r.on("error",function(){u=!1}),r.on("close",function(){n(!u)}),e?r.connect(t,e):r.connect(t)})},_o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return J(void 0,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,Oo("/sbin/ifconfig",t).resultPromise];case 1:return[2,e.sent()]}})})},Uo=function(t){var e=t.split(".").reverse();if(4!==e.length)throw new Error("Invalid ip address: ".concat(t));for(var n=0,r=0;r<4;r+=1){var u=Number.parseInt(e[r],10);if(u<0||u>255)throw new Error("Invalid ip address: ".concat(t));n+=u<<8*r}return n},Po=function(t){if(!Number.isSafeInteger(t))throw new Error("Number is not an integer");if(t<0||t>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");for(var e=[],n=0;n<4;n+=1)e.push(t>>8*n&255);return e.reverse().join(".")},Oo=function(t,e,n){var u=r(t,e,W({windowsHide:!0},n)),o=new Promise(function(r,o){var i="",s="";(null===(null==n?void 0:n.stdio)||void 0===(null==n?void 0:n.stdio))&&(u.stdout&&u.stdout.on("data",function(t){i+=t}),u.stderr&&u.stderr.on("data",function(t){s+=t})),u.on("close",function(n){var u={code:n,stdout:i,stderr:s};if(0!==n){var a="Error during execution of command '".concat(t," ").concat(e.join(" "),"': ").concat(s);o({message:a,result:u})}else r(u)})});return{process:u,resultPromise:o}},ko=function(t,e,n){return J(void 0,void 0,void 0,function(){var r,u;return V(this,function(o){switch(o.label){case 0:return r=xo(t,10),[4,E.promises.writeFile(r,e,n)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,4,,6]),[4,E.promises.rename(r,t)];case 3:return o.sent(),[3,6];case 4:return u=o.sent(),[4,E.promises.unlink(r).catch(function(){})];case 5:throw o.sent(),u;case 6:return[2]}})})},xo=function(t,e){for(var n,r=function(t){return H([],Array(t),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},u=C.dirname(t),o=C.basename(t),i=0;null===(n=i<e)||void 0===n||n;i+=1){var s=r(16),a=".".concat(s,".").concat(o),c=C.join(u,a);if(!E.existsSync(c))return c}throw new Error("Could not write file to file '".concat(t,"'."))},To="win32"===process.platform?"\r\n":"\n",Lo=function(){function t(t,e){this.nodes=t,this.config=e}return t.prototype.add=function(t,e,n){var r=this;if(0===e.length)return this;var u=this.findOrCreateEntry(t,n);return e.forEach(function(t){if(!u.hosts.find(function(e){return e.host===t})){var e=1;0===u.hosts.length&&(e=r.config.indent-"".concat(u.ipPrefixWhitespace).concat(u.ip).length),u.hosts.push({whitespace:" ".repeat(e<1?1:e),host:t})}}),this},t.prototype.remove=function(t,e){var n=this;return this.findEntries(t).forEach(function(t){e.forEach(function(e){var r=t.hosts.findIndex(function(t){return t.host===e});r<0||(0===r&&void 0!==t.hosts[1]&&(t.hosts[1].whitespace=t.hosts[0].whitespace),t.hosts.splice(r,1),0===t.hosts.length&&n.removeEntry(t))})}),this},t.prototype.removeHosts=function(t){var e=this;Wo(this.nodes,"entry").forEach(function(n){e.remove(n.ip,t)})},t.prototype.removeIps=function(t){var e=this;return t.forEach(function(t){e.findEntries(t).forEach(function(t){return e.removeEntry(t)})}),this},t.prototype.resolveHosts=function(t){return cr(this.findEntries(t),function(t){return t.hosts.map(function(t){return t.host})})},t.prototype.resolveIps=function(t){return Wo(this.nodes,"entry").filter(function(e){return e.hosts.some(function(e){return e.host===t})}).map(function(t){return t.ip})},t.prototype.toString=function(){return Go(this.nodes,this.config.eol)},t.prototype.removeEntry=function(t){var e,n="number"==typeof(e=t)||it(e)&&"[object Number]"==ot(e)?t:this.nodes.findIndex(function(e){return e===t});n<0||this.nodes.splice(n,1)},t.prototype.findEntries=function(t){return Wo(this.nodes,"entry").filter(function(e){return e.ip===t})},t.prototype.findOrCreateEntry=function(t,e){var n=this.findEntries(t)[0];if(n)return n;var r=this.makeEntry(t);if(e){var u=Mo(e),o=this.nodes.findIndex(function(t){return"comment"===t.type&&t.line===u});if(o>=0)this.insertAt(o+1,r);else{var i="blank"!==this.nodes[this.nodes.length-1].type?[No(),qo(u),r]:[qo(u),r];this.insertAt.apply(this,H([this.nodes.length],i,!1))}}else this.insertAt(this.nodes.length,r);return r},t.prototype.insertAt=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(e=this.nodes).splice.apply(e,H([t,0],n,!1))},t.prototype.makeEntry=function(t,e){var n=this.config.ipPrefixWhitespace;return W({type:"entry",ip:t,ipPrefixWhitespace:n,hosts:[]},e)},t.fromNodes=function(e,n){var r,u;return new t(e.filter(function(t){return"eol"!==t.type}),{eol:null!==(r=null==n?void 0:n.eol)&&void 0!==r?r:function(){var t,n=Wo(e,"eol").map(function(t){return t.line});return null!==(t=Jo(n))&&void 0!==t?t:To}(),indent:null!==(u=null==n?void 0:n.indent)&&void 0!==u?u:function(){var t,n=cr(Wo(e,"entry"),function(t){var e=t.ipPrefixWhitespace,n=t.ip,r=t.hosts[0];return r?["".concat(e).concat(n).concat(r.whitespace).length]:[]});return null!==(t=Jo(n))&&void 0!==t?t:17}(),ipPrefixWhitespace:""})},t.parse=function(t,e){return this.fromNodes(zo(t),e)},t}(),No=function(){return{type:"blank",line:""}},qo=function(t){return{type:"comment",line:Mo(t)}},Mo=function(t){return t.startsWith("#")?t:"# ".concat(t)},Go=function(t,e){var n=t.map(function(t){switch(t.type){case"entry":var e=t.hosts.map(function(t){var e=t.whitespace,n=t.host;return"".concat(e).concat(n)}).join("");return"".concat(t.ipPrefixWhitespace).concat(t.ip).concat(e);case"blank":case"comment":case"invalid":return t.line;default:return""}});return n.join(null!=e?e:To)},zo=function(t){return t.split(/(\r?\n)/).map(function(t){return function(t){return t.match(/^\s*#.*$/)}(t)?{type:"comment",line:t}:function(t){return t.match(/^(\r?\n)$/)}(t)?{type:"eol",line:t}:function(t){return t.match(/^\s*$/)}(t)?{type:"blank",line:t}:$o(t)})},$o=function(t){var e=t.match(/^(\s*)(\S+)(.+)?$/);if(!e)return{type:"invalid",line:t};var n=e[1],r=e[2],u=e.slice(3),o=!1,i=cr(u.filter(function(t){return void 0!==t}),function(t){var e=t.match(/(\s+)(\S+)/g);return e?e.map(function(t){var e=t.match(/^(\s+)(\S+)$/);e||(o=!0);var n=null!=e?e:[];return{whitespace:n[1],host:n[2]}}):(o=!0,[])});return o?{type:"invalid",line:t}:{type:"entry",ipPrefixWhitespace:n,ip:r,hosts:i}},Wo=function(t,e){return t.filter(function(t){return t.type===e})},Jo=function(t){var e=new Map;t.forEach(function(t){var n;e.set(t,(null!==(n=e.get(t))&&void 0!==n?n:0)+1)});var n=pr(Array.from(e.entries()),function(t){return t[1]});if(n)return n[0]},Vo="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",Ho=function(){function t(t){this.ast=Lo.fromNodes([]);var e={writeMode:"atomic",hostsFile:Vo};this.config=W(W({},e),t)}return t.prototype.add=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!hr(t))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof t,"."));return e.forEach(function(t){if(!hr(t))throw new Error("Expected 'host' to be a string, but got ".concat(typeof t,"."))}),this.ast.add(t,e,this.config.header),this},t.prototype.remove=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!hr(t))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof t,"."));return e.forEach(function(t){if(!hr(t))throw new Error("Expected 'host' to be a string, but got ".concat(typeof t,"."))}),this.ast.remove(t,e),this},t.prototype.removeHosts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.forEach(function(t){if(!hr(t))throw new Error("Expected 'host' to be a string, but got ".concat(typeof t,"."))}),this.ast.removeHosts(t),this},t.prototype.removeIps=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.forEach(function(t){if(!hr(t))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof t,"."))}),this.ast.removeIps(t),this},t.prototype.read=function(){return J(this,void 0,void 0,function(){var t;return V(this,function(e){switch(e.label){case 0:return[4,E.promises.readFile(this.config.hostsFile)];case 1:return t=e.sent(),this.ast=Lo.parse(t.toString(),this.config),[2,this]}})})},t.prototype.write=function(t){return J(this,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){switch(o.label){case 0:switch(e=W(W({},this.config),t),n=e.hostsFile,r=e.writeMode,u=this.ast.toString(),r){case void 0:case"atomic":return[3,1];case"standard":return[3,3];case"disabled":return[3,5]}return[3,5];case 1:return[4,ko(n,u)];case 2:case 4:return o.sent(),[3,6];case 3:return[4,E.promises.writeFile(n,u)];case 5:return[3,6];case 6:return[2,this]}})})},t.prototype.backup=function(t){return J(this,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){switch(o.label){case 0:return E.existsSync(this.config.hostsFile)?(e=C.dirname(this.config.hostsFile),n=C.basename(this.config.hostsFile),r="".concat(n).concat(t.suffix),u=C.resolve(e,r),E.existsSync(u)&&!t.rewrite?[3,2]:[4,E.promises.copyFile(this.config.hostsFile,u)]):[2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},t.load=function(e){return J(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return[4,new t(e).read()];case 1:return[2,n.sent()]}})})},t}(),Zo=function(){function t(){this.previousPromise=Promise.resolve(),this._queueLength=0}return Object.defineProperty(t.prototype,"queueLength",{get:function(){return this._queueLength},enumerable:!1,configurable:!0}),t.prototype.enter=function(t){return J(this,void 0,void 0,function(){var e,n=this;return V(this,function(r){return this._queueLength+=1,e=this.previousPromise.then(function(){return n._queueLength-=1,t()},function(){return n._queueLength-=1,t()}),this.previousPromise=e,[2,e]})})},t}(),Yo=function t(e,n){if(e&&n)return t(e)(n);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),u=t[t.length-1];return"function"==typeof r&&r!==u&&Object.keys(u).forEach(function(t){r[t]=u[t]}),r}};var Ko=Yo(Qo),Xo=Yo(ti);function Qo(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function ti(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}Qo.proto=Qo(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Qo(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ti(this)},configurable:!0})}),Ko.strict=Xo;var ei,ni=function(){},ri=vr.Bare?queueMicrotask:process.nextTick.bind(process),ui=function(t,e,n){if("function"==typeof e)return ui(t,null,e);e||(e={}),n=Ko(n||ni);var r=t._writableState,u=t._readableState,o=e.readable||!1!==e.readable&&t.readable,i=e.writable||!1!==e.writable&&t.writable,s=!1,a=function(){t.writable||c()},c=function(){i=!1,o||n.call(t)},d=function(){o=!1,i||n.call(t)},l=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},h=function(e){n.call(t,e)},p=function(){ri(f)},f=function(){if(!s)return(!o||u&&u.ended&&!u.destroyed)&&(!i||r&&r.ended&&!r.destroyed)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",c)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?i&&!r&&(t.on("end",a),t.on("close",a)):(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",l),t.on("end",d),t.on("finish",c),!1!==e.error&&t.on("error",h),t.on("close",p),function(){s=!0,t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",c),t.removeListener("exit",l),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}},oi=ui;try{ei=E}catch(t){}var ii=function(){},si="undefined"!=typeof process&&/^v?\.0/.test(process.version),ai=function(t){return"function"==typeof t},ci=function(t,e,n,r){r=Ko(r);var u=!1;t.on("close",function(){u=!0}),oi(t,{readable:e,writable:n},function(t){if(t)return r(t);u=!0,r()});var o=!1;return function(e){if(!u&&!o)return o=!0,function(t){return!!si&&!!ei&&(t instanceof(ei.ReadStream||ii)||t instanceof(ei.WriteStream||ii))&&ai(t.close)}(t)?t.close(ii):function(t){return t.setHeader&&ai(t.abort)}(t)?t.abort():ai(t.destroy)?t.destroy():void r(e||new Error("stream was destroyed"))}},di=function(t){t()},li=function(t,e){return t.pipe(e)},hi=function(){var t,e=Array.prototype.slice.call(arguments),n=ai(e[e.length-1]||ii)&&e.pop()||ii;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r=e.map(function(u,o){var i=o<e.length-1;return ci(u,i,o>0,function(e){t||(t=e),e&&r.forEach(di),i||(r.forEach(di),n(t))})});return e.reduce(li)};const pi=["nodebuffer","arraybuffer","fragments"],fi="undefined"!=typeof Blob;fi&&pi.push("blob");var mi={BINARY_TYPES:pi,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:fi,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}},vi="function"==typeof __webpack_require__?__non_webpack_require__:Er,Ei=process.config&&process.config.variables||{},Ai=!!process.env.PREBUILDS_ONLY,bi=process.versions.modules,yi=!(!process.versions||!process.versions.electron)||!!process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",gi=process.env.npm_config_arch||p.arch(),Ci=process.env.npm_config_platform||p.platform(),Fi=process.env.LIBC||(function(t){return"linux"===t&&E.existsSync("/etc/alpine-release")}(Ci)?"musl":"glibc"),wi=process.env.ARM_VERSION||("arm64"===gi?"8":Ei.arm_version)||"",Di=(process.versions.uv||"").split(".")[0],Bi=Ii;function Ii(t){return vi(Ii.resolve(t))}function Ri(t){try{return E.readdirSync(t)}catch(t){return[]}}function ji(t,e){var n=Ri(t).filter(e);return n[0]&&C.join(t,n[0])}function Si(t){return/\.node$/.test(t)}function _i(t){var e=t.split("-");if(2===e.length){var n=e[0],r=e[1].split("+");if(n&&r.length&&r.every(Boolean))return{name:t,platform:n,architectures:r}}}function Ui(t,e){return function(n){return null!=n&&(n.platform===t&&n.architectures.includes(e))}}function Pi(t,e){return t.architectures.length-e.architectures.length}function Oi(t){var e=t.split("."),n={file:t,specificity:0};if("node"===e.pop()){for(var r=0;r<e.length;r++){var u=e[r];if("node"===u||"electron"===u||"node-webkit"===u)n.runtime=u;else if("napi"===u)n.napi=!0;else if("abi"===u.slice(0,3))n.abi=u.slice(3);else if("uv"===u.slice(0,2))n.uv=u.slice(2);else if("armv"===u.slice(0,4))n.armv=u.slice(4);else{if("glibc"!==u&&"musl"!==u)continue;n.libc=u}n.specificity++}return n}}function ki(t,e){return function(n){return null!=n&&(!(n.runtime&&n.runtime!==t&&!function(t){return"node"===t.runtime&&t.napi}(n))&&(!(n.abi&&n.abi!==e&&!n.napi)&&((!n.uv||n.uv===Di)&&((!n.armv||n.armv===wi)&&(!n.libc||n.libc===Fi)))))}}function xi(t){return function(e,n){return e.runtime!==n.runtime?e.runtime===t?-1:1:e.abi!==n.abi?e.abi?-1:1:e.specificity!==n.specificity?e.specificity>n.specificity?-1:1:0}}Ii.resolve=Ii.path=function(t){t=C.resolve(t||".");try{var e=vi(C.join(t,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(t=process.env[e+"_PREBUILD"])}catch(t){}if(!Ai){var n=ji(C.join(t,"build/Release"),Si);if(n)return n;var r=ji(C.join(t,"build/Debug"),Si);if(r)return r}var u=s(t);if(u)return u;var o=s(C.dirname(process.execPath));if(o)return o;var i=["platform="+Ci,"arch="+gi,"runtime="+yi,"abi="+bi,"uv="+Di,wi?"armv="+wi:"","libc="+Fi,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+i+"\n loaded from: "+t+"\n");function s(t){var e=Ri(C.join(t,"prebuilds")).map(_i).filter(Ui(Ci,gi)).sort(Pi)[0];if(e){var n=C.join(t,"prebuilds",e.name),r=Ri(n).map(Oi).filter(ki(yi,bi)).sort(xi(yi))[0];return r?C.join(n,r.file):void 0}}},Ii.parseTags=Oi,Ii.matchTags=ki,Ii.compareTags=xi,Ii.parseTuple=_i,Ii.matchTuple=Ui,Ii.compareTuples=Pi;var Ti=Ar(function(t){const e="function"==typeof __webpack_require__?__non_webpack_require__:Er;"function"==typeof e.addon?t.exports=e.addon.bind(e):t.exports=Bi});var Li={mask:(t,e,n,r,u)=>{for(var o=0;o<u;o++)n[r+o]=t[o]^e[3&o]},unmask:(t,e)=>{const n=t.length;for(var r=0;r<n;r++)t[r]^=e[3&r]}},Ni=Ar(function(t){try{t.exports=Ti(__dirname)}catch(e){t.exports=Li}}),qi=Ar(function(t){const{EMPTY_BUFFER:e}=mi,n=Buffer[Symbol.species];function r(t,e,n,r,u){for(let o=0;o<u;o++)n[r+o]=t[o]^e[3&o]}function u(t,e){for(let n=0;n<t.length;n++)t[n]^=e[3&n]}if(t.exports={concat:function(t,r){if(0===t.length)return e;if(1===t.length)return t[0];const u=Buffer.allocUnsafe(r);let o=0;for(let e=0;e<t.length;e++){const n=t[e];u.set(n,o),o+=n.length}return o<r?new n(u.buffer,u.byteOffset,o):u},mask:r,toArrayBuffer:function(t){return t.length===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.length)},toBuffer:function t(e){if(t.readOnly=!0,Buffer.isBuffer(e))return e;let r;return e instanceof ArrayBuffer?r=new n(e):ArrayBuffer.isView(e)?r=new n(e.buffer,e.byteOffset,e.byteLength):(r=Buffer.from(e),t.readOnly=!1),r},unmask:u},!process.env.WS_NO_BUFFER_UTIL)try{const e=Ni;t.exports.mask=function(t,n,u,o,i){i<48?r(t,n,u,o,i):e.mask(t,n,u,o,i)},t.exports.unmask=function(t,n){t.length<32?u(t,n):e.unmask(t,n)}}catch(t){}});qi.concat,qi.mask,qi.toArrayBuffer,qi.toBuffer,qi.unmask;const Mi=Symbol("kDone"),Gi=Symbol("kRun");var zi=class{constructor(t){this[Mi]=()=>{this.pending--,this[Gi]()},this.concurrency=t||1/0,this.jobs=[],this.pending=0}add(t){this.jobs.push(t),this[Gi]()}[Gi](){if(this.pending!==this.concurrency&&this.jobs.length){const t=this.jobs.shift();this.pending++,t(this[Mi])}}};const{kStatusCode:$i}=mi,Wi=Buffer[Symbol.species],Ji=Buffer.from([0,0,255,255]),Vi=Symbol("permessage-deflate"),Hi=Symbol("total-length"),Zi=Symbol("callback"),Yi=Symbol("buffers"),Ki=Symbol("error");let Xi;var Qi=class{constructor(t,e,n){if(this._maxPayload=0|n,this._options=t||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!e,this._deflate=null,this._inflate=null,this.params=null,!Xi){const t=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;Xi=new zi(t)}}static get extensionName(){return"permessage-deflate"}offer(){const t={};return this._options.serverNoContextTakeover&&(t.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(t.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(t.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?t.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(t.client_max_window_bits=!0),t}accept(t){return t=this.normalizeParams(t),this.params=this._isServer?this.acceptAsServer(t):this.acceptAsClient(t),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const t=this._deflate[Zi];this._deflate.close(),this._deflate=null,t&&t(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(t){const e=this._options,n=t.find(t=>!(!1===e.serverNoContextTakeover&&t.server_no_context_takeover||t.server_max_window_bits&&(!1===e.serverMaxWindowBits||"number"==typeof e.serverMaxWindowBits&&e.serverMaxWindowBits>t.server_max_window_bits)||"number"==typeof e.clientMaxWindowBits&&!t.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return e.serverNoContextTakeover&&(n.server_no_context_takeover=!0),e.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof e.serverMaxWindowBits&&(n.server_max_window_bits=e.serverMaxWindowBits),"number"==typeof e.clientMaxWindowBits?n.client_max_window_bits=e.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==e.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(t){const e=t[0];if(!1===this._options.clientNoContextTakeover&&e.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(e.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&e.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(e.client_max_window_bits=this._options.clientMaxWindowBits);return e}normalizeParams(t){return t.forEach(t=>{Object.keys(t).forEach(e=>{let n=t[e];if(n.length>1)throw new Error(`Parameter "${e}" must have only a single value`);if(n=n[0],"client_max_window_bits"===e){if(!0!==n){const t=+n;if(!Number.isInteger(t)||t<8||t>15)throw new TypeError(`Invalid value for parameter "${e}": ${n}`);n=t}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${e}": ${n}`)}else if("server_max_window_bits"===e){const t=+n;if(!Number.isInteger(t)||t<8||t>15)throw new TypeError(`Invalid value for parameter "${e}": ${n}`);n=t}else{if("client_no_context_takeover"!==e&&"server_no_context_takeover"!==e)throw new Error(`Unknown parameter "${e}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${e}": ${n}`)}t[e]=n})}),t}decompress(t,e,n){Xi.add(r=>{this._decompress(t,e,(t,e)=>{r(),n(t,e)})})}compress(t,e,n){Xi.add(r=>{this._compress(t,e,(t,e)=>{r(),n(t,e)})})}_decompress(t,e,n){const r=this._isServer?"client":"server";if(!this._inflate){const t=`${r}_max_window_bits`,e="number"!=typeof this.params[t]?h.Z_DEFAULT_WINDOWBITS:this.params[t];this._inflate=h.createInflateRaw({...this._options.zlibInflateOptions,windowBits:e}),this._inflate[Vi]=this,this._inflate[Hi]=0,this._inflate[Yi]=[],this._inflate.on("error",ns),this._inflate.on("data",es)}this._inflate[Zi]=n,this._inflate.write(t),e&&this._inflate.write(Ji),this._inflate.flush(()=>{const t=this._inflate[Ki];if(t)return this._inflate.close(),this._inflate=null,void n(t);const u=qi.concat(this._inflate[Yi],this._inflate[Hi]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Hi]=0,this._inflate[Yi]=[],e&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),n(null,u)})}_compress(t,e,n){const r=this._isServer?"server":"client";if(!this._deflate){const t=`${r}_max_window_bits`,e="number"!=typeof this.params[t]?h.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=h.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:e}),this._deflate[Hi]=0,this._deflate[Yi]=[],this._deflate.on("data",ts)}this._deflate[Zi]=n,this._deflate.write(t),this._deflate.flush(h.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let t=qi.concat(this._deflate[Yi],this._deflate[Hi]);e&&(t=new Wi(t.buffer,t.byteOffset,t.length-4)),this._deflate[Zi]=null,this._deflate[Hi]=0,this._deflate[Yi]=[],e&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),n(null,t)})}};function ts(t){this[Yi].push(t),this[Hi]+=t.length}function es(t){this[Hi]+=t.length,this[Vi]._maxPayload<1||this[Hi]<=this[Vi]._maxPayload?this[Yi].push(t):(this[Ki]=new RangeError("Max payload size exceeded"),this[Ki].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Ki][$i]=1009,this.removeListener("data",es),this.reset())}function ns(t){this[Vi]._inflate=null,this[Ki]?this[Zi](this[Ki]):(t[$i]=1007,this[Zi](t))}var rs=function(t){const e=t.length;let n=0;for(;n<e;)if(128&t[n])if(192==(224&t[n])){if(n+1===e||128!=(192&t[n+1])||192==(254&t[n]))return!1;n+=2}else if(224==(240&t[n])){if(n+2>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||224===t[n]&&128==(224&t[n+1])||237===t[n]&&160==(224&t[n+1]))return!1;n+=3}else{if(240!=(248&t[n]))return!1;if(n+3>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||128!=(192&t[n+3])||240===t[n]&&128==(240&t[n+1])||244===t[n]&&t[n+1]>143||t[n]>244)return!1;n+=4}else n++;return!0},us=Ar(function(t){try{t.exports=Ti(__dirname)}catch(e){t.exports=rs}}),os=Ar(function(t){const{isUtf8:e}=R,{hasBlob:n}=mi;function r(t){const e=t.length;let n=0;for(;n<e;)if(128&t[n])if(192==(224&t[n])){if(n+1===e||128!=(192&t[n+1])||192==(254&t[n]))return!1;n+=2}else if(224==(240&t[n])){if(n+2>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||224===t[n]&&128==(224&t[n+1])||237===t[n]&&160==(224&t[n+1]))return!1;n+=3}else{if(240!=(248&t[n]))return!1;if(n+3>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||128!=(192&t[n+3])||240===t[n]&&128==(240&t[n+1])||244===t[n]&&t[n+1]>143||t[n]>244)return!1;n+=4}else n++;return!0}if(t.exports={isBlob:function(t){return n&&"object"==typeof t&&"function"==typeof t.arrayBuffer&&"string"==typeof t.type&&"function"==typeof t.stream&&("Blob"===t[Symbol.toStringTag]||"File"===t[Symbol.toStringTag])},isValidStatusCode:function(t){return t>=1e3&&t<=1014&&1004!==t&&1005!==t&&1006!==t||t>=3e3&&t<=4999},isValidUTF8:r,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},e)t.exports.isValidUTF8=function(t){return t.length<24?r(t):e(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const e=us;t.exports.isValidUTF8=function(t){return t.length<32?r(t):e(t)}}catch(t){}});os.isBlob,os.isValidStatusCode,os.isValidUTF8,os.tokenChars;const{Writable:is}=o,{BINARY_TYPES:ss,EMPTY_BUFFER:as,kStatusCode:cs,kWebSocket:ds}=mi,{concat:ls,toArrayBuffer:hs,unmask:ps}=qi,{isValidStatusCode:fs,isValidUTF8:ms}=os,vs=Buffer[Symbol.species];var Es=class extends is{constructor(t={}){super(),this._allowSynchronousEvents=void 0===t.allowSynchronousEvents||t.allowSynchronousEvents,this._binaryType=t.binaryType||ss[0],this._extensions=t.extensions||{},this._isServer=!!t.isServer,this._maxPayload=0|t.maxPayload,this._skipUTF8Validation=!!t.skipUTF8Validation,this[ds]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(t,e,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=t.length,this._buffers.push(t),this.startLoop(n)}consume(t){if(this._bufferedBytes-=t,t===this._buffers[0].length)return this._buffers.shift();if(t<this._buffers[0].length){const e=this._buffers[0];return this._buffers[0]=new vs(e.buffer,e.byteOffset+t,e.length-t),new vs(e.buffer,e.byteOffset,t)}const e=Buffer.allocUnsafe(t);do{const n=this._buffers[0],r=e.length-t;t>=n.length?e.set(this._buffers.shift(),r):(e.set(new Uint8Array(n.buffer,n.byteOffset,t),r),this._buffers[0]=new vs(n.buffer,n.byteOffset+t,n.length-t)),t-=n.length}while(t>0);return e}startLoop(t){this._loop=!0;do{switch(this._state){case 0:this.getInfo(t);break;case 1:this.getPayloadLength16(t);break;case 2:this.getPayloadLength64(t);break;case 3:this.getMask();break;case 4:this.getData(t);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||t()}getInfo(t){if(this._bufferedBytes<2)return void(this._loop=!1);const e=this.consume(2);if(48&e[0]){return void t(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const n=!(64&~e[0]);if(n&&!this._extensions[Qi.extensionName]){return void t(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._fin=!(128&~e[0]),this._opcode=15&e[0],this._payloadLength=127&e[1],0===this._opcode){if(n){return void t(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void t(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void t(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=n}else{if(!(this._opcode>7&&this._opcode<11)){return void t(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void t(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(n){return void t(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void t(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~e[1]),this._isServer){if(!this._masked){return void t(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void t(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(t)}getPayloadLength16(t){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(t))}getPayloadLength64(t){if(this._bufferedBytes<8)return void(this._loop=!1);const e=this.consume(8),n=e.readUInt32BE(0);if(n>Math.pow(2,21)-1){return void t(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}this._payloadLength=n*Math.pow(2,32)+e.readUInt32BE(4),this.haveLength(t)}haveLength(t){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){return void t(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(t){let e=as;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);e=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&ps(e,this._mask)}if(this._opcode>7)this.controlMessage(e,t);else{if(this._compressed)return this._state=5,void this.decompress(e,t);e.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(e)),this.dataMessage(t)}}decompress(t,e){this._extensions[Qi.extensionName].decompress(t,this._fin,(t,n)=>{if(t)return e(t);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void e(t)}this._fragments.push(n)}this.dataMessage(e),0===this._state&&this.startLoop(e)})}dataMessage(t){if(!this._fin)return void(this._state=0);const e=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?ls(n,e):"arraybuffer"===this._binaryType?hs(ls(n,e)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!0),this._state=0,this.startLoop(t)}))}else{const r=ls(n,e);if(!this._skipUTF8Validation&&!ms(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(t)}))}}controlMessage(t,e){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",t),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",t),this._state=0,this.startLoop(e)}));else{if(0===t.length)this._loop=!1,this.emit("conclude",1005,as),this.end();else{const n=t.readUInt16BE(0);if(!fs(n)){const t=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void e(t)}const r=new vs(t.buffer,t.byteOffset+2,t.length-2);if(!this._skipUTF8Validation&&!ms(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(t,e,n,r,u){this._loop=!1,this._errored=!0;const o=new t(n?`Invalid WebSocket frame: ${e}`:e);return Error.captureStackTrace(o,this.createError),o.code=u,o[cs]=r,o}};const{randomFillSync:As}=I,{EMPTY_BUFFER:bs,kWebSocket:ys,NOOP:gs}=mi,{isBlob:Cs,isValidStatusCode:Fs}=os,{mask:ws,toBuffer:Ds}=qi,Bs=Symbol("kByteLength"),Is=Buffer.alloc(4),Rs=8192;let js,Ss=Rs;class _s{constructor(t,e,n){this._extensions=e||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=t,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=gs,this[ys]=void 0}static frame(t,e){let n,r,u=!1,o=2,i=!1;e.mask&&(n=e.maskBuffer||Is,e.generateMask?e.generateMask(n):(Ss===Rs&&(void 0===js&&(js=Buffer.alloc(Rs)),As(js,0,Rs),Ss=0),n[0]=js[Ss++],n[1]=js[Ss++],n[2]=js[Ss++],n[3]=js[Ss++]),i=0===(n[0]|n[1]|n[2]|n[3]),o=6),"string"==typeof t?r=e.mask&&!i||void 0===e[Bs]?(t=Buffer.from(t)).length:e[Bs]:(r=t.length,u=e.mask&&e.readOnly&&!i);let s=r;r>=65536?(o+=8,s=127):r>125&&(o+=2,s=126);const a=Buffer.allocUnsafe(u?r+o:o);return a[0]=e.fin?128|e.opcode:e.opcode,e.rsv1&&(a[0]|=64),a[1]=s,126===s?a.writeUInt16BE(r,2):127===s&&(a[2]=a[3]=0,a.writeUIntBE(r,4,6)),e.mask?(a[1]|=128,a[o-4]=n[0],a[o-3]=n[1],a[o-2]=n[2],a[o-1]=n[3],i?[a,t]:u?(ws(t,n,a,o,r),[a]):(ws(t,n,t,0,r),[a,t])):[a,t]}close(t,e,n,r){let u;if(void 0===t)u=bs;else{if("number"!=typeof t||!Fs(t))throw new TypeError("First argument must be a valid error code number");if(void 0!==e&&e.length){const n=Buffer.byteLength(e);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");u=Buffer.allocUnsafe(2+n),u.writeUInt16BE(t,0),"string"==typeof e?u.write(e,2):u.set(e,2)}else u=Buffer.allocUnsafe(2),u.writeUInt16BE(t,0)}const o={[Bs]:u.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,u,!1,o,r]):this.sendFrame(_s.frame(u,o),r)}ping(t,e,n){let r,u;if("string"==typeof t?(r=Buffer.byteLength(t),u=!1):Cs(t)?(r=t.size,u=!1):(r=(t=Ds(t)).length,u=Ds.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[Bs]:r,fin:!0,generateMask:this._generateMask,mask:e,maskBuffer:this._maskBuffer,opcode:9,readOnly:u,rsv1:!1};Cs(t)?0!==this._state?this.enqueue([this.getBlobData,t,!1,o,n]):this.getBlobData(t,!1,o,n):0!==this._state?this.enqueue([this.dispatch,t,!1,o,n]):this.sendFrame(_s.frame(t,o),n)}pong(t,e,n){let r,u;if("string"==typeof t?(r=Buffer.byteLength(t),u=!1):Cs(t)?(r=t.size,u=!1):(r=(t=Ds(t)).length,u=Ds.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[Bs]:r,fin:!0,generateMask:this._generateMask,mask:e,maskBuffer:this._maskBuffer,opcode:10,readOnly:u,rsv1:!1};Cs(t)?0!==this._state?this.enqueue([this.getBlobData,t,!1,o,n]):this.getBlobData(t,!1,o,n):0!==this._state?this.enqueue([this.dispatch,t,!1,o,n]):this.sendFrame(_s.frame(t,o),n)}send(t,e,n){const r=this._extensions[Qi.extensionName];let u,o,i=e.binary?2:1,s=e.compress;"string"==typeof t?(u=Buffer.byteLength(t),o=!1):Cs(t)?(u=t.size,o=!1):(u=(t=Ds(t)).length,o=Ds.readOnly),this._firstFragment?(this._firstFragment=!1,s&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(s=u>=r._threshold),this._compress=s):(s=!1,i=0),e.fin&&(this._firstFragment=!0);const a={[Bs]:u,fin:e.fin,generateMask:this._generateMask,mask:e.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:o,rsv1:s};Cs(t)?0!==this._state?this.enqueue([this.getBlobData,t,this._compress,a,n]):this.getBlobData(t,this._compress,a,n):0!==this._state?this.enqueue([this.dispatch,t,this._compress,a,n]):this.dispatch(t,this._compress,a,n)}getBlobData(t,e,n,r){this._bufferedBytes+=n[Bs],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){const t=new Error("The socket was closed while the blob was being read");return void process.nextTick(Ps,this,t,r)}this._bufferedBytes-=n[Bs];const u=Ds(t);e?this.dispatch(u,e,n,r):(this._state=0,this.sendFrame(_s.frame(u,n),r),this.dequeue())}).catch(t=>{process.nextTick(Os,this,t,r)})}dispatch(t,e,n,r){if(!e)return void this.sendFrame(_s.frame(t,n),r);const u=this._extensions[Qi.extensionName];this._bufferedBytes+=n[Bs],this._state=1,u.compress(t,n.fin,(t,e)=>{if(this._socket.destroyed){return void Ps(this,new Error("The socket was closed while data was being compressed"),r)}this._bufferedBytes-=n[Bs],this._state=0,n.readOnly=!1,this.sendFrame(_s.frame(e,n),r),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){const t=this._queue.shift();this._bufferedBytes-=t[3][Bs],Reflect.apply(t[0],this,t.slice(1))}}enqueue(t){this._bufferedBytes+=t[3][Bs],this._queue.push(t)}sendFrame(t,e){2===t.length?(this._socket.cork(),this._socket.write(t[0]),this._socket.write(t[1],e),this._socket.uncork()):this._socket.write(t[0],e)}}var Us=_s;function Ps(t,e,n){"function"==typeof n&&n(e);for(let n=0;n<t._queue.length;n++){const r=t._queue[n],u=r[r.length-1];"function"==typeof u&&u(e)}}function Os(t,e,n){Ps(t,e,n),t.onerror(e)}const{kForOnEventAttribute:ks,kListener:xs}=mi,Ts=Symbol("kCode"),Ls=Symbol("kData"),Ns=Symbol("kError"),qs=Symbol("kMessage"),Ms=Symbol("kReason"),Gs=Symbol("kTarget"),zs=Symbol("kType"),$s=Symbol("kWasClean");class Ws{constructor(t){this[Gs]=null,this[zs]=t}get target(){return this[Gs]}get type(){return this[zs]}}Object.defineProperty(Ws.prototype,"target",{enumerable:!0}),Object.defineProperty(Ws.prototype,"type",{enumerable:!0});class Js extends Ws{constructor(t,e={}){super(t),this[Ts]=void 0===e.code?0:e.code,this[Ms]=void 0===e.reason?"":e.reason,this[$s]=void 0!==e.wasClean&&e.wasClean}get code(){return this[Ts]}get reason(){return this[Ms]}get wasClean(){return this[$s]}}Object.defineProperty(Js.prototype,"code",{enumerable:!0}),Object.defineProperty(Js.prototype,"reason",{enumerable:!0}),Object.defineProperty(Js.prototype,"wasClean",{enumerable:!0});class Vs extends Ws{constructor(t,e={}){super(t),this[Ns]=void 0===e.error?null:e.error,this[qs]=void 0===e.message?"":e.message}get error(){return this[Ns]}get message(){return this[qs]}}Object.defineProperty(Vs.prototype,"error",{enumerable:!0}),Object.defineProperty(Vs.prototype,"message",{enumerable:!0});class Hs extends Ws{constructor(t,e={}){super(t),this[Ls]=void 0===e.data?null:e.data}get data(){return this[Ls]}}Object.defineProperty(Hs.prototype,"data",{enumerable:!0});const Zs={addEventListener(t,e,n={}){for(const r of this.listeners(t))if(!n[ks]&&r[xs]===e&&!r[ks])return;let r;if("message"===t)r=function(t,n){const r=new Hs("message",{data:n?t:t.toString()});r[Gs]=this,Ks(e,this,r)};else if("close"===t)r=function(t,n){const r=new Js("close",{code:t,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[Gs]=this,Ks(e,this,r)};else if("error"===t)r=function(t){const n=new Vs("error",{error:t,message:t.message});n[Gs]=this,Ks(e,this,n)};else{if("open"!==t)return;r=function(){const t=new Ws("open");t[Gs]=this,Ks(e,this,t)}}r[ks]=!!n[ks],r[xs]=e,n.once?this.once(t,r):this.on(t,r)},removeEventListener(t,e){for(const n of this.listeners(t))if(n[xs]===e&&!n[ks]){this.removeListener(t,n);break}}};var Ys={CloseEvent:Js,ErrorEvent:Vs,Event:Ws,EventTarget:Zs,MessageEvent:Hs};function Ks(t,e,n){"object"==typeof t&&t.handleEvent?t.handleEvent.call(t,n):t.call(e,n)}const{tokenChars:Xs}=os;function Qs(t,e,n){void 0===t[e]?t[e]=[n]:t[e].push(n)}var ta={format:function(t){return Object.keys(t).map(e=>{let n=t[e];return Array.isArray(n)||(n=[n]),n.map(t=>[e].concat(Object.keys(t).map(e=>{let n=t[e];return Array.isArray(n)||(n=[n]),n.map(t=>!0===t?e:`${e}=${t}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(t){const e=Object.create(null);let n,r,u=Object.create(null),o=!1,i=!1,s=!1,a=-1,c=-1,d=-1,l=0;for(;l<t.length;l++)if(c=t.charCodeAt(l),void 0===n)if(-1===d&&1===Xs[c])-1===a&&(a=l);else if(0===l||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);const r=t.slice(a,d);44===c?(Qs(e,r,u),u=Object.create(null)):n=r,a=d=-1}}else-1===d&&-1!==a&&(d=l);else if(void 0===r)if(-1===d&&1===Xs[c])-1===a&&(a=l);else if(32===c||9===c)-1===d&&-1!==a&&(d=l);else if(59===c||44===c){if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l),Qs(u,t.slice(a,d),!0),44===c&&(Qs(e,n,u),u=Object.create(null),n=void 0),a=d=-1}else{if(61!==c||-1===a||-1!==d)throw new SyntaxError(`Unexpected character at index ${l}`);r=t.slice(a,l),a=d=-1}else if(i){if(1!==Xs[c])throw new SyntaxError(`Unexpected character at index ${l}`);-1===a?a=l:o||(o=!0),i=!1}else if(s)if(1===Xs[c])-1===a&&(a=l);else if(34===c&&-1!==a)s=!1,d=l;else{if(92!==c)throw new SyntaxError(`Unexpected character at index ${l}`);i=!0}else if(34===c&&61===t.charCodeAt(l-1))s=!0;else if(-1===d&&1===Xs[c])-1===a&&(a=l);else if(-1===a||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);let i=t.slice(a,d);o&&(i=i.replace(/\\/g,""),o=!1),Qs(u,r,i),44===c&&(Qs(e,n,u),u=Object.create(null),n=void 0),r=void 0,a=d=-1}}else-1===d&&(d=l);if(-1===a||s||32===c||9===c)throw new SyntaxError("Unexpected end of input");-1===d&&(d=l);const h=t.slice(a,d);return void 0===n?Qs(e,h,u):(void 0===r?Qs(u,h,!0):Qs(u,r,o?h.replace(/\\/g,""):h),Qs(e,n,u)),e}};const{randomBytes:ea,createHash:na}=I,{URL:ra}=a,{isBlob:ua}=os,{BINARY_TYPES:oa,EMPTY_BUFFER:ia,GUID:sa,kForOnEventAttribute:aa,kListener:ca,kStatusCode:da,kWebSocket:la,NOOP:ha}=mi,{EventTarget:{addEventListener:pa,removeEventListener:fa}}=Ys,{format:ma,parse:va}=ta,{toBuffer:Ea}=qi,Aa=Symbol("kAborted"),ba=[8,13],ya=["CONNECTING","OPEN","CLOSING","CLOSED"],ga=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class Ca extends t{constructor(t,e,n){super(),this._binaryType=oa[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=ia,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=Ca.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==t?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===e?e=[]:Array.isArray(e)||("object"==typeof e&&null!==e?(n=e,e=[]):e=[e]),wa(this,t,e,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(t){oa.includes(t)&&(this._binaryType=t,this._receiver&&(this._receiver._binaryType=t))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,e,n){const r=new Es({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),u=new Us(t,this._extensions,n.generateMask);this._receiver=r,this._sender=u,this._socket=t,r[la]=this,u[la]=this,t[la]=this,r.on("conclude",Sa),r.on("drain",_a),r.on("error",Ua),r.on("message",Oa),r.on("ping",ka),r.on("pong",xa),u.onerror=La,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),e.length>0&&t.unshift(e),t.on("close",qa),t.on("data",Ma),t.on("end",Ga),t.on("error",za),this._readyState=Ca.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=Ca.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[Qi.extensionName]&&this._extensions[Qi.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=Ca.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(t,e){if(this.readyState!==Ca.CLOSED){if(this.readyState===Ca.CONNECTING){const t="WebSocket was closed before the connection was established";return void Ra(this,this._req,t)}this.readyState!==Ca.CLOSING?(this._readyState=Ca.CLOSING,this._sender.close(t,e,!this._isServer,t=>{t||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),Na(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==Ca.CONNECTING&&this.readyState!==Ca.CLOSED&&(this._paused=!0,this._socket.pause())}ping(t,e,n){if(this.readyState===Ca.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof t?(n=t,t=e=void 0):"function"==typeof e&&(n=e,e=void 0),"number"==typeof t&&(t=t.toString()),this.readyState===Ca.OPEN?(void 0===e&&(e=!this._isServer),this._sender.ping(t||ia,e,n)):ja(this,t,n)}pong(t,e,n){if(this.readyState===Ca.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof t?(n=t,t=e=void 0):"function"==typeof e&&(n=e,e=void 0),"number"==typeof t&&(t=t.toString()),this.readyState===Ca.OPEN?(void 0===e&&(e=!this._isServer),this._sender.pong(t||ia,e,n)):ja(this,t,n)}resume(){this.readyState!==Ca.CONNECTING&&this.readyState!==Ca.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,e,n){if(this.readyState===Ca.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof e&&(n=e,e={}),"number"==typeof t&&(t=t.toString()),this.readyState!==Ca.OPEN)return void ja(this,t,n);const r={binary:"string"!=typeof t,mask:!this._isServer,compress:!0,fin:!0,...e};this._extensions[Qi.extensionName]||(r.compress=!1),this._sender.send(t||ia,r,n)}terminate(){if(this.readyState!==Ca.CLOSED){if(this.readyState===Ca.CONNECTING){const t="WebSocket was closed before the connection was established";return void Ra(this,this._req,t)}this._socket&&(this._readyState=Ca.CLOSING,this._socket.destroy())}}}Object.defineProperty(Ca,"CONNECTING",{enumerable:!0,value:ya.indexOf("CONNECTING")}),Object.defineProperty(Ca.prototype,"CONNECTING",{enumerable:!0,value:ya.indexOf("CONNECTING")}),Object.defineProperty(Ca,"OPEN",{enumerable:!0,value:ya.indexOf("OPEN")}),Object.defineProperty(Ca.prototype,"OPEN",{enumerable:!0,value:ya.indexOf("OPEN")}),Object.defineProperty(Ca,"CLOSING",{enumerable:!0,value:ya.indexOf("CLOSING")}),Object.defineProperty(Ca.prototype,"CLOSING",{enumerable:!0,value:ya.indexOf("CLOSING")}),Object.defineProperty(Ca,"CLOSED",{enumerable:!0,value:ya.indexOf("CLOSED")}),Object.defineProperty(Ca.prototype,"CLOSED",{enumerable:!0,value:ya.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(t=>{Object.defineProperty(Ca.prototype,t,{enumerable:!0})}),["open","error","close","message"].forEach(t=>{Object.defineProperty(Ca.prototype,`on${t}`,{enumerable:!0,get(){for(const e of this.listeners(t))if(e[aa])return e[ca];return null},set(e){for(const e of this.listeners(t))if(e[aa]){this.removeListener(t,e);break}"function"==typeof e&&this.addEventListener(t,e,{[aa]:!0})}})}),Ca.prototype.addEventListener=pa,Ca.prototype.removeEventListener=fa;var Fa=Ca;function wa(t,e,n,r){const u={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:ba[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=u.autoPong,!ba.includes(u.protocolVersion))throw new RangeError(`Unsupported protocol version: ${u.protocolVersion} (supported versions: ${ba.join(", ")})`);let o;if(e instanceof ra)o=e;else try{o=new ra(e)}catch(t){throw new SyntaxError(`Invalid URL: ${e}`)}"http:"===o.protocol?o.protocol="ws:":"https:"===o.protocol&&(o.protocol="wss:"),t._url=o.href;const i="wss:"===o.protocol,a="ws+unix:"===o.protocol;let c;if("ws:"===o.protocol||i||a?a&&!o.pathname?c="The URL's pathname is empty":o.hash&&(c="The URL contains a fragment identifier"):c='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',c){const e=new SyntaxError(c);if(0===t._redirects)throw e;return void Da(t,e)}const l=i?443:80,h=ea(16).toString("base64"),p=i?d.request:s.request,f=new Set;let m,v;if(u.createConnection=u.createConnection||(i?Ia:Ba),u.defaultPort=u.defaultPort||l,u.port=o.port||l,u.host=o.hostname.startsWith("[")?o.hostname.slice(1,-1):o.hostname,u.headers={...u.headers,"Sec-WebSocket-Version":u.protocolVersion,"Sec-WebSocket-Key":h,Connection:"Upgrade",Upgrade:"websocket"},u.path=o.pathname+o.search,u.timeout=u.handshakeTimeout,u.perMessageDeflate&&(m=new Qi(!0!==u.perMessageDeflate?u.perMessageDeflate:{},!1,u.maxPayload),u.headers["Sec-WebSocket-Extensions"]=ma({[Qi.extensionName]:m.offer()})),n.length){for(const t of n){if("string"!=typeof t||!ga.test(t)||f.has(t))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(t)}u.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(u.origin&&(u.protocolVersion<13?u.headers["Sec-WebSocket-Origin"]=u.origin:u.headers.Origin=u.origin),(o.username||o.password)&&(u.auth=`${o.username}:${o.password}`),a){const t=u.path.split(":");u.socketPath=t[0],u.path=t[1]}if(u.followRedirects){if(0===t._redirects){t._originalIpc=a,t._originalSecure=i,t._originalHostOrSocketPath=a?u.socketPath:o.host;const e=r&&r.headers;if(r={...r,headers:{}},e)for(const[t,n]of Object.entries(e))r.headers[t.toLowerCase()]=n}else if(0===t.listenerCount("redirect")){const e=a?!!t._originalIpc&&u.socketPath===t._originalHostOrSocketPath:!t._originalIpc&&o.host===t._originalHostOrSocketPath;(!e||t._originalSecure&&!i)&&(delete u.headers.authorization,delete u.headers.cookie,e||delete u.headers.host,u.auth=void 0)}u.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(u.auth).toString("base64")),v=t._req=p(u),t._redirects&&t.emit("redirect",t.url,v)}else v=t._req=p(u);u.timeout&&v.on("timeout",()=>{Ra(t,v,"Opening handshake has timed out")}),v.on("error",e=>{null===v||v[Aa]||(v=t._req=null,Da(t,e))}),v.on("response",o=>{const i=o.headers.location,s=o.statusCode;if(i&&u.followRedirects&&s>=300&&s<400){if(++t._redirects>u.maxRedirects)return void Ra(t,v,"Maximum redirects exceeded");let o;v.abort();try{o=new ra(i,e)}catch(e){const n=new SyntaxError(`Invalid URL: ${i}`);return void Da(t,n)}wa(t,o,n,r)}else t.emit("unexpected-response",v,o)||Ra(t,v,`Unexpected server response: ${o.statusCode}`)}),v.on("upgrade",(e,n,r)=>{if(t.emit("upgrade",e),t.readyState!==Ca.CONNECTING)return;v=t._req=null;const o=e.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void Ra(t,n,"Invalid Upgrade header");const i=na("sha1").update(h+sa).digest("base64");if(e.headers["sec-websocket-accept"]!==i)return void Ra(t,n,"Invalid Sec-WebSocket-Accept header");const s=e.headers["sec-websocket-protocol"];let a;if(void 0!==s?f.size?f.has(s)||(a="Server sent an invalid subprotocol"):a="Server sent a subprotocol but none was requested":f.size&&(a="Server sent no subprotocol"),a)return void Ra(t,n,a);s&&(t._protocol=s);const c=e.headers["sec-websocket-extensions"];if(void 0!==c){if(!m){return void Ra(t,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let e;try{e=va(c)}catch(e){return void Ra(t,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(e);if(1!==r.length||r[0]!==Qi.extensionName){return void Ra(t,n,"Server indicated an extension that was not requested")}try{m.accept(e[Qi.extensionName])}catch(e){return void Ra(t,n,"Invalid Sec-WebSocket-Extensions header")}t._extensions[Qi.extensionName]=m}t.setSocket(n,r,{allowSynchronousEvents:u.allowSynchronousEvents,generateMask:u.generateMask,maxPayload:u.maxPayload,skipUTF8Validation:u.skipUTF8Validation})}),u.finishRequest?u.finishRequest(v,t):v.end()}function Da(t,e){t._readyState=Ca.CLOSING,t._errorEmitted=!0,t.emit("error",e),t.emitClose()}function Ba(t){return t.path=t.socketPath,m.connect(t)}function Ia(t){return t.path=void 0,t.servername||""===t.servername||(t.servername=m.isIP(t.host)?"":t.host),B.connect(t)}function Ra(t,e,n){t._readyState=Ca.CLOSING;const r=new Error(n);Error.captureStackTrace(r,Ra),e.setHeader?(e[Aa]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(Da,t,r)):(e.destroy(r),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function ja(t,e,n){if(e){const n=ua(e)?e.size:Ea(e).length;t._socket?t._sender._bufferedBytes+=n:t._bufferedAmount+=n}if(n){const e=new Error(`WebSocket is not open: readyState ${t.readyState} (${ya[t.readyState]})`);process.nextTick(n,e)}}function Sa(t,e){const n=this[la];n._closeFrameReceived=!0,n._closeMessage=e,n._closeCode=t,void 0!==n._socket[la]&&(n._socket.removeListener("data",Ma),process.nextTick(Ta,n._socket),1005===t?n.close():n.close(t,e))}function _a(){const t=this[la];t.isPaused||t._socket.resume()}function Ua(t){const e=this[la];void 0!==e._socket[la]&&(e._socket.removeListener("data",Ma),process.nextTick(Ta,e._socket),e.close(t[da])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t))}function Pa(){this[la].emitClose()}function Oa(t,e){this[la].emit("message",t,e)}function ka(t){const e=this[la];e._autoPong&&e.pong(t,!this._isServer,ha),e.emit("ping",t)}function xa(t){this[la].emit("pong",t)}function Ta(t){t.resume()}function La(t){const e=this[la];e.readyState!==Ca.CLOSED&&(e.readyState===Ca.OPEN&&(e._readyState=Ca.CLOSING,Na(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t)))}function Na(t){t._closeTimer=setTimeout(t._socket.destroy.bind(t._socket),3e4)}function qa(){const t=this[la];let e;this.removeListener("close",qa),this.removeListener("data",Ma),this.removeListener("end",Ga),t._readyState=Ca.CLOSING,this._readableState.endEmitted||t._closeFrameReceived||t._receiver._writableState.errorEmitted||null===(e=t._socket.read())||t._receiver.write(e),t._receiver.end(),this[la]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",Pa),t._receiver.on("finish",Pa))}function Ma(t){this[la]._receiver.write(t)||this.pause()}function Ga(){const t=this[la];t._readyState=Ca.CLOSING,t._receiver.end(),this.end()}function za(){const t=this[la];this.removeListener("error",za),this.on("error",ha),t&&(t._readyState=Ca.CLOSING,this.destroy())}const{Duplex:$a}=o;function Wa(t){t.emit("close")}function Ja(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Va(t){this.removeListener("error",Va),this.destroy(),0===this.listenerCount("error")&&this.emit("error",t)}var Ha=function(t,e){let n=!0;const r=new $a({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(e,n){const u=!n&&r._readableState.objectMode?e.toString():e;r.push(u)||t.pause()}),t.once("error",function(t){r.destroyed||(n=!1,r.destroy(t))}),t.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(e,u){if(t.readyState===t.CLOSED)return u(e),void process.nextTick(Wa,r);let o=!1;t.once("error",function(t){o=!0,u(t)}),t.once("close",function(){o||u(e),process.nextTick(Wa,r)}),n&&t.terminate()},r._final=function(e){t.readyState!==t.CONNECTING?null!==t._socket&&(t._socket._writableState.finished?(e(),r._readableState.endEmitted&&r.destroy()):(t._socket.once("finish",function(){e()}),t.close())):t.once("open",function(){r._final(e)})},r._read=function(){t.isPaused&&t.resume()},r._write=function(e,n,u){t.readyState!==t.CONNECTING?t.send(e,u):t.once("open",function(){r._write(e,n,u)})},r.on("end",Ja),r.on("error",Va),r},Za=function(t){function e(e,n,r,u,o,i){void 0===i&&(i=5e3);var s=t.call(this)||this;s.endpoint=e,s.headers=n,s.rewriteHostHeader=r,s.bindToAssign=u,s.agent=o,s.closeTimeout=i,s.protocol="TCP",s.openConnections=new Set,s.tcpServer=f.createServer(s.handleConnection.bind(s));var a=null==r?void 0:r.altHostnames.map(function(t){return(e=Ge(e=t))&&sr.test(e)?e.replace(ir,"\\$&"):e;var e}).join("|");return s.hostRegex=new RegExp("Host: (?:".concat(a,")(:.*$|$)"),"im"),s}return $(e,t),Object.defineProperty(e.prototype,"bindTo",{get:function(){var t;return null!==(t=this.boundTo)&&void 0!==t?t:this.bindToAssign},enumerable:!1,configurable:!0}),e.prototype.open=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){return[2,new Promise(function(e){if(t.bindToAssign){var n=t.bindToAssign,r=n.port,u=n.address;t.tcpServer.listen(r,u,function(){t.emit("tunnel-open",{address:u,port:r}),e({address:u,port:r})})}else t.tcpServer.listen(0,function(){var n=t.tcpServer.address(),r=n.address,u=n.port,o="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:o,port:u},t.emit("tunnel-open",t.boundTo),e(t.boundTo)})})]})})},e.prototype.close=function(){return J(this,void 0,void 0,function(){var t,e=this;return V(this,function(n){switch(n.label){case 0:return t=!1,[4,Promise.race([new Promise(function(n){e.tcpServer.close(function(){t=!0,e.emit("tunnel-close"),n()})}),new Promise(function(n){new Promise(function(t){return setTimeout(t,e.closeTimeout)}).then(function(){t||(e.openConnections.forEach(function(t){t.destroy(),e.openConnections.delete(t)}),n())})})])];case 1:return n.sent(),[2]}})})},e.prototype.handleConnection=function(t){var e=this;this.openConnections.add(t);var n=this.endpoint.replace("https:","wss:"),r=new Fa(n,{headers:this.headers,agent:this.agent}),u=Ha(r),o=this.getHeaderTransform();this.rewriteHostHeader&&o?hi(t,o,u):hi(t,u),hi(u,t),r.on("close",function(t,n,r){e.emit("connection-close",t,n,r)}),u.on("error",function(t){e.emit("connection-error",t)}),t.on("error",function(t){e.emit("connection-error",t)}),this.emit("connection-accept")},e.prototype.getHeaderTransform=function(){var t=function(t,e,n){var r=Buffer.from(n),u=Buffer.from(t);return e.forEach(function(t){u=function(t,e,n){var r=Buffer.from(e),u=t.indexOf(r);if(-1===u)return t;var o=t.subarray(0,u),i=t.subarray(u+r.length);return Buffer.concat([o,n,i])}(u,t,r)}),u};if(this.rewriteHostHeader){var e=this.rewriteHostHeader,n=e.targetHostname,r=e.altHostnames,u=this.hostRegex;return new i({transform:function(e,o,i){var s=e.toString();if(s.split("\n",1)[0].includes("HTTP")&&u.test(s)){var a=r.map(function(t){return"Host: ".concat(t)});i(null,t(e,a,"Host: ".concat(n)))}else i(null,e)}})}},e}(e),Ya=function(t){function e(e,n,r,u){var o=t.call(this)||this;return o.endpoint=e,o.headers=n,o.bindToAssign=r,o.agent=u,o.protocol="UDP",o.udpSocket=S.createSocket("udp4"),o.handleConnection(),o}return $(e,t),Object.defineProperty(e.prototype,"bindTo",{get:function(){var t;return null!==(t=this.boundTo)&&void 0!==t?t:this.bindToAssign},enumerable:!1,configurable:!0}),e.prototype.open=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){return[2,new Promise(function(e){if(t.bindToAssign){var n=t.bindToAssign,r=n.port,u=n.address;t.udpSocket.bind(r,u,function(){t.emit("tunnel-open",{address:u,port:r}),e({address:u,port:r})})}else t.udpSocket.bind(0,function(){var n=t.udpSocket.address(),r=n.address,u=n.port,o="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:o,port:u},t.emit("tunnel-open",t.boundTo),e(t.boundTo)})})]})})},e.prototype.close=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e){t.udpSocket.close(function(){t.emit("tunnel-close"),e()})})];case 1:return e.sent(),[2]}})})},e.prototype.handleConnection=function(){var t,e=this,n=this.endpoint.replace("https:","wss:"),r=new Fa(n,{headers:this.headers,agent:this.agent}),u=Ha(r);this.udpSocket.on("message",function(e,n){t=n,u.write(e)}),u.on("data",function(n){t&&e.udpSocket.send(n,t.port,t.address,function(t){t&&e.emit("connection-error",t)})}),this.udpSocket.on("error",function(t){e.emit("connection-error",t)}),u.on("error",function(t){e.emit("connection-error",t)}),r.on("connection-close",function(t,n,r){e.emit("connection-close",t,n,r)}),r.on("connection-error",function(t){e.emit("connection-error",t)}),this.emit("connection-accept")},e}(e),Ka=function(t){function e(e,r,u,o){var i=t.call(this)||this;return i.contextProvider=e,i.listServices=r,i.listAddons=u,i.agent=o,i.connections=[],i.hostsFileMutex=new Zo,i.ipAllocationMutex=new Zo,i.stopForwarding=function(t){return J(i,void 0,void 0,function(){var e,n,r,u,o,i,s;return V(this,function(a){switch(a.label){case 0:return[4,t.tunnel.close()];case 1:return a.sent(),e=t.forwardingContext,n=e.projectId,r=e.type,u=e.id,o=e.hostnames,i=e.ipOnly,o.length>0&&!i?[4,this.unregisterHostnames(null===(s=t.tunnel.bindTo)||void 0===s?void 0:s.address,o)]:[3,3];case 2:a.sent(),a.label=3;case 3:return this.connections.splice(this.connections.findIndex(function(t){var e=t.forwardingContext,o=e.type,i=e.id,s=e.projectId;return i===u&&s===n&&o===r}),1),[2]}})})},i.canExecuteWithHostnames=function(){return"win32"!==process.platform?process.getuid&&0!==process.getuid()?{error:!0,message:"You are not running this command with sufficient privileges (uid=".concat(null===(t=null===process||void 0===process?void 0:process.getuid)||void 0===t?void 0:t.call(process),"). Try running with 'sudo -E'.")}:{error:!1,type:"unix-admin"}:function(){try{return n("fsutil dirty query %systemdrive%"),!0}catch(t){if("ENOENT"===t.code)try{return n("fltmc"),!0}catch(t){return!1}return!1}}()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."};var t},i.assertStartedWithNodejs=function(){if(!Fo)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new Ro(e,o),i}return $(e,t),e.prototype.withProjectForwarding=function(t,e,n){return void 0===n&&(n=!0),J(this,void 0,void 0,function(){var r;return V(this,function(u){switch(u.label){case 0:return[4,this.forwardProject(t,n)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,,4,6]),[4,e(r)];case 3:return[2,u.sent()];case 4:return[4,this.stopProjectForwarding(t)];case 5:return u.sent(),[7];case 6:return[2]}})})},e.prototype.forwardProject=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u,o,i,s=this;return V(this,function(a){switch(a.label){case 0:return this.assertStartedWithNodejs(),n=t.projectId,[4,this.listServices.all({parameters:{projectId:n}})];case 1:return r=a.sent(),[4,this.listAddons.all({parameters:{projectId:n}})];case 2:return u=a.sent(),[4,Promise.all(r.data.services.map(function(t){return J(s,void 0,void 0,function(){return V(this,function(r){return[2,this.forwardService({projectId:n,serviceId:t.id},e)]})})}))];case 3:return o=a.sent(),[4,Promise.all(u.data.addons.map(function(t){return J(s,void 0,void 0,function(){return V(this,function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:t.id},e)];case 1:return[2,r.sent()]}})})}))];case 4:return i=a.sent(),[2,{services:o,addons:i}]}})})},e.prototype.withServiceForwarding=function(t,e,n){return void 0===n&&(n=!0),J(this,void 0,void 0,function(){var r;return V(this,function(u){switch(u.label){case 0:return[4,this.forwardService(t,n)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,,4,6]),[4,e(r)];case 3:return[2,u.sent()];case 4:return[4,this.stopServiceForwarding(t)];case 5:return u.sent(),[7];case 6:return[2]}})})},e.prototype.forwardService=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u,o,i,s,a,c=this;return V(this,function(d){switch(d.label){case 0:return this.assertStartedWithNodejs(),n=t.projectId,r=t.serviceId,[4,this.proxyApiClient.getServiceDetails(n,r)];case 1:return u=d.sent(),o=u.namespace,i=u.targetDomain,s=u.instances,a=u.ports,0===s.length?[2,[]]:[4,Bo(a,function(t){var u,a="https://".concat(i,"/tunnel/projects/").concat(n,"/services/").concat(r,"/instance/").concat(s[0].podName,"/port/").concat(t.internalPort),d="".concat(r,".").concat(o,".svc.cluster.local"),l=["".concat(r)];t.name&&l.push("".concat(t.name,".").concat(r)),"HTTP"===t.protocol&&(u={altHostnames:l,targetHostname:d});var h=H([d],l,!0);return c.forwardPort(a,t,h,"service",r,n,e,u)})];case 2:return[2,d.sent()]}})})},e.prototype.withAddonForwarding=function(t,e,n){return void 0===n&&(n=!0),J(this,void 0,void 0,function(){var r;return V(this,function(u){switch(u.label){case 0:return[4,this.forwardAddon(t,n)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,,4,6]),[4,e(r)];case 3:return[2,u.sent()];case 4:return[4,this.stopAddonForwarding(t)];case 5:return u.sent(),[7];case 6:return[2]}})})},e.prototype.forwardAddon=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u,o,i=this;return V(this,function(s){switch(s.label){case 0:return this.assertStartedWithNodejs(),n=t.addonId,r=t.projectId,[4,this.proxyApiClient.getAddonDetails(r,n)];case 1:return u=s.sent(),o=u.instances.map(function(t){var e=t.podName,n=t.internalHostname;return t.ports.map(function(t){return{podName:e,internalHostname:n,port:t}})}),[4,Bo((a=o,null!=a&&a.length?Ze(a,dr):[]),function(t){var o=t.podName,s=t.internalHostname,a=t.port;return J(i,void 0,void 0,function(){var t;return V(this,function(i){return t="https://".concat(u.targetDomain,"/tunnel/projects/").concat(r,"/addons/").concat(n,"/instance/").concat(o,"/port/").concat(a.internalPort),[2,this.forwardPort(t,a,[s],"addon",n,r,e)]})})})];case 2:return[2,s.sent()]}var a})})},e.prototype.allocateIpAddress=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){switch(i.label){case 0:return e="127.24.1.1",n="127.24.255.255",r=null!==(o=this.nextIpAddress)&&void 0!==o?o:e,[4,jo(t,r,n)];case 1:return u=i.sent(),this.nextIpAddress=Po(Uo(u)+1),Uo(this.nextIpAddress)>Uo(n)&&(this.nextIpAddress=e),[2,u]}})})})]})})},e.prototype.forwardPort=function(t,e,n,r,u,o,i,s){var a;return void 0===i&&(i=!0),J(this,void 0,void 0,function(){var c,d,l,h,p,f,m=this;return V(this,function(v){switch(v.label){case 0:if(c={Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken())},!i&&(d=this.canExecuteWithHostnames()).error)throw new Error("".concat(d.message," Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))"));return[4,this.determineSocketAddress(o,u,n,r,e,i)];case 1:return l=v.sent(),h="UDP"===e.protocol?new Ya(t,c,l,this.agent):new Za(t,c,s,l,this.agent),i?[3,3]:[4,this.registerHostnames(null===(a=h.bindTo)||void 0===a?void 0:a.address,n)];case 2:v.sent(),v.label=3;case 3:return h.on("connection-accept",function(){return m.emit("connection-accept",h)}),h.on("connection-close",function(){return J(m,void 0,void 0,function(){return V(this,function(t){return[2,this.emit("connection-close",h)]})})}),[4,h.open()];case 4:return p=v.sent(),f={projectId:o,id:u,type:r,hostnames:n,ipOnly:i,port:p.port,address:p.address,protocol:e.protocol,portName:e.name},this.emit("tunnel-open",h,f),h.on("connection-error",function(t){return m.emit("connection-error",h,f,t)}),h.on("tunnel-close",function(){return m.emit("tunnel-close",h,f)}),this.connections.push({tunnel:h,forwardingContext:f}),[2,{data:f}]}})})},e.prototype.determineSocketAddress=function(t,e,n,r,u,o){return J(this,void 0,void 0,function(){var i,s,a;return V(this,function(c){switch(c.label){case 0:return o&&"darwin"===p.platform()?[2,void 0]:(i=this.connections.filter(function(n){return n.forwardingContext.projectId===t&&n.forwardingContext.id===e&&n.forwardingContext.type===r}),(s=null==i?void 0:i.find(function(t){return n.find(function(e){return t.forwardingContext.hostnames.includes(e)})}))?[2,{address:null==s?void 0:s.forwardingContext.address,port:u.internalPort}]:(a={},[4,this.allocateIpAddress(u.internalPort)]));case 1:return[2,(a.address=c.sent(),a.port=u.internalPort,a)]}})})},e.prototype.registerHostnames=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,e),n.add.apply(n,H([t],e,!1))})];case 1:return n.sent(),[2]}})})},e.prototype.unregisterHostnames=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,H([t],e,!1))})];case 1:return n.sent(),[2]}})})},e.prototype.modifyHostsFile=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return J(e,void 0,void 0,function(){var e,n=this;return V(this,function(r){switch(r.label){case 0:return[4,Ho.load({header:"Northflank Proxy"})];case 1:return e=r.sent(),t(e),[4,e.backup({suffix:".backup-pre-northflank"})];case 2:r.sent(),r.label=3;case 3:return r.trys.push([3,5,,7]),[4,Xa(5)(function(){return J(n,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,e.write({writeMode:"atomic"})];case 1:return t.sent(),[2]}})})})];case 4:return r.sent(),[3,7];case 5:return r.sent(),[4,Xa(5)(function(){return J(n,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,e.write({writeMode:"standard"})];case 1:return t.sent(),[2]}})})})];case 6:return r.sent(),[3,7];case 7:return[2]}})})})];case 1:return n.sent(),[2]}})})},e.prototype.stopProjectForwarding=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(e){return e.forwardingContext.projectId===t.projectId}).map(function(t){return e.stopForwarding(t)}))];case 1:return n.sent(),[2]}})})},e.prototype.stopServiceForwarding=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(e){return"service"===e.forwardingContext.type&&e.forwardingContext.projectId===t.projectId&&e.forwardingContext.id===t.serviceId}).map(function(t){return e.stopForwarding(t)}))];case 1:return n.sent(),[2]}})})},e.prototype.stopAddonForwarding=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(e){return"addon"===e.forwardingContext.type&&e.forwardingContext.projectId===t.projectId&&e.forwardingContext.id===t.addonId}).map(function(t){return e.stopForwarding(t)}))];case 1:return n.sent(),[2]}})})},e.prototype.stop=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){switch(e.label){case 0:return[4,Promise.all(this.connections.map(function(e){return J(t,void 0,void 0,function(){return V(this,function(t){return[2,this.stopForwarding(e)]})})}))];case 1:return e.sent(),[2]}})})},e}(e),Xa=function(t,e){return void 0===e&&(e=50),function(n){var r=t,u=function(){return J(void 0,void 0,void 0,function(){var t;return V(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,4]),[4,n()];case 1:return[2,o.sent()];case 2:if(t=o.sent(),r<=0)throw t;return r-=1,[4,new Promise(function(t){return setTimeout(function(){return t()},e)})];case 3:return o.sent(),[2,u()];case 4:return[2]}})})};return u()}},Qa=function(t){function e(e,n,r,o,i,s,a){void 0===i&&(i=new u.PassThrough),void 0===s&&(s=new u.PassThrough),void 0===a&&(a=new u.PassThrough);var c=t.call(this)||this;return c.baseUrl=e,c.execConfig=n,c.token=r,c.agent=o,c.stdOut=i,c.stdErr=s,c.stdIn=a,c.waitForCommandResult=function(){return J(c,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:if(void 0===this.currentCommand)throw new Error("No command is running");return[4,this.currentCommand];case 1:return[2,t.sent()]}})})},c.sendInputToCurrentCommand=function(t){return J(c,void 0,void 0,function(){var e;return V(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running");return null===(e=this.duplex)||void 0===e||e.write(this.constructPayloadPacket(t)),[2]})})},c.resizeTerminal=function(t){return J(c,void 0,void 0,function(){var e;return V(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running, can't resize terminal");return null===(e=this.duplex)||void 0===e||e.write(JSON.stringify({type:"resize",data:{ttyRows:null==t?void 0:t.rows,ttyColumns:null==t?void 0:t.columns}})),[2]})})},c.constructPayloadPacket=function(t){return JSON.stringify({type:"payload",data:t.toString()})},c.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),c}return $(e,t),Object.defineProperty(e.prototype,"execEndpoint",{get:function(){var t=this.execConfig,e=t.entityId,n=t.entityType,r=t.projectId,u="".concat(this.baseUrl,"/v1/command-exec/projects/").concat(r,"/");return"".concat(u).concat(function(){switch(n){case"service":return"services/".concat(e);case"job":return"jobs/".concat(e);case"addon":return"addons/".concat(e);case"build":return"builds/".concat(e);default:throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}}())},enumerable:!1,configurable:!0}),e.prototype.start=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){if(void 0!==this.currentCommand)throw new Error("Command is already running");return this.currentCommand=new Promise(function(e,n){var r,u,o;void 0!==t.remote&&n(Error("Command is already running"));var i,s=t.execEndpoint.replace("https:","wss:").replace("http:","ws:");t.remote=new Fa(s,{agent:t.agent});try{t.duplex=Ha(t.remote)}catch(t){throw new Error("Failed to establish connection to command execution proxy: ".concat(t.message))}t.initialAuth(),t.stdIn.on("data",function(e){var n,r;(null===(n=t.duplex)||void 0===n?void 0:n.writable)&&(null===(r=t.duplex)||void 0===r||r.write(t.constructPayloadPacket(e)))}),t.stdIn.on("end",function(){var e,n;(null===(e=t.duplex)||void 0===e?void 0:e.writable)&&(null===(n=t.duplex)||void 0===n||n.write(t.stdInEndPacket))}),null===(r=t.duplex)||void 0===r||r.on("data",function(e){var n,r,u,o,s,c=JSON.parse(e.toString());switch(null==c?void 0:c.type){case"init":var d=c.data;"successful"!==d.auth?a("Command initialization failed: ".concat(null!==(n=null==d?void 0:d.message)&&void 0!==n?n:"Reason unknown")):t.emit("auth-success",d);break;case"completion":i=c.data,t.emit("command-result",i),null===(r=t.duplex)||void 0===r||r.end();break;case"stdOut":t.emit("std-out-data",c.data),t.stdOut.write(c.data,null===(u=t.execConfig)||void 0===u?void 0:u.encoding);break;case"stdErr":t.emit("std-err-data",c.data),t.stdErr.write(c.data,null===(o=t.execConfig)||void 0===o?void 0:o.encoding);break;case"error":a(null===(s=c.data)||void 0===s?void 0:s.message);break;default:var l="unable to parse message: ".concat(JSON.stringify(c));a(l)}}),null===(u=t.duplex)||void 0===u||u.on("end",function(){t.emit("command-completed"),t.reset(),e(i)}),null===(o=t.duplex)||void 0===o||o.on("error",function(n){t.emit("error",n),t.emit("command-completed"),t.reset(),e(i)});var a=function(e){t.emit("error",e),t.reset(),n(new Error(e))};t.emit("command-started")}),[2,this.currentCommand]})})},e.prototype.initialAuth=function(){var t,e=this.execConfig,n=e.command,r=e.containerName,u=e.instanceName,o=e.shell,i=e.user,s=this.execConfig,a=s.group,c=s.encoding,d=s.tty,l=s.ttyColumns,h=s.ttyRows,p={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:u,containerName:r,command:n,shell:o,user:i,group:a,encoding:c,tty:d,ttyColumns:l,ttyRows:h}}};null===(t=this.duplex)||void 0===t||t.write(JSON.stringify(p))},e.prototype.reset=function(){var t;this.remote=void 0,this.currentCommand=void 0,null===(t=this.duplex)||void 0===t||t.destroy(),this.duplex=void 0},e}(e),tc=function(){function t(t,e){this.contextProvider=t,this.agent=e,this.assertStartedWithNodejs=function(){if(!Fo)throw new Error("Command exec only possible when started with nodejs")}}return t.prototype.execServiceCommand=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){return n=t.serviceId,r=t.projectId,u=W({projectId:r,entityId:n,entityType:"service"},e),[2,this.execCommand(u)]})})},t.prototype.execServiceSession=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o;return V(this,function(i){switch(i.label){case 0:return r=t.serviceId,u=t.projectId,o=W({projectId:u,entityId:r,entityType:"service"},e),[4,this.shellSession(o,n)];case 1:return[2,i.sent()]}})})},t.prototype.execJobCommand=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){return n=t.jobId,r=t.projectId,u=W({projectId:r,entityId:n,entityType:"job"},e),[2,this.execCommand(u)]})})},t.prototype.execJobSession=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o;return V(this,function(i){switch(i.label){case 0:return r=t.jobId,u=t.projectId,o=W({projectId:u,entityId:r,entityType:"job"},e),[4,this.shellSession(o,n)];case 1:return[2,i.sent()]}})})},t.prototype.execAddonCommand=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){return n=t.addonId,r=t.projectId,u=W({projectId:r,entityId:n,entityType:"addon"},e),[2,this.execCommand(u)]})})},t.prototype.execAddonSession=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o;return V(this,function(i){switch(i.label){case 0:return r=t.addonId,u=t.projectId,o=W({projectId:u,entityId:r,entityType:"addon"},e),[4,this.shellSession(o,n)];case 1:return[2,i.sent()]}})})},t.prototype.execCommand=function(t){return J(this,void 0,void 0,function(){var e,n,r;return V(this,function(u){switch(u.label){case 0:return this.assertStartedWithNodejs(),e=this.getCommandRunner(W({shell:"none"},t)),n=new Io,r=new Io,e.stdOut.pipe(n),e.stdErr.pipe(r),e.on("error",function(t){throw new Error(t)}),[4,e.start()];case 1:return[2,{commandResult:u.sent(),stdOut:n.getContentsAsString(),stdErr:r.getContentsAsString()}]}})})},t.prototype.shellSession=function(t,e){return J(this,void 0,void 0,function(){var n,r;return V(this,function(u){switch(u.label){case 0:return this.assertStartedWithNodejs(),n=this.getCommandRunner(t),r=new Promise(function(t){n.on("auth-success",function(n){null==e||e(null==n?void 0:n.context),t()})}),n.start(),[4,r];case 1:return u.sent(),[2,n]}})})},t.prototype.getCommandRunner=function(t){var e=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new Qa(e,t,n,this.agent)},t}();const ec="object"==typeof process&&process?process:{stdout:null,stderr:null},nc=t=>!!t&&"object"==typeof t&&(t instanceof qc||t instanceof U||rc(t)||uc(t)),rc=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.pipe&&t.pipe!==U.Writable.prototype.pipe,uc=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.write&&"function"==typeof t.end,oc=Symbol("EOF"),ic=Symbol("maybeEmitEnd"),sc=Symbol("emittedEnd"),ac=Symbol("emittingEnd"),cc=Symbol("emittedError"),dc=Symbol("closed"),lc=Symbol("read"),hc=Symbol("flush"),pc=Symbol("flushChunk"),fc=Symbol("encoding"),mc=Symbol("decoder"),vc=Symbol("flowing"),Ec=Symbol("paused"),Ac=Symbol("resume"),bc=Symbol("buffer"),yc=Symbol("pipes"),gc=Symbol("bufferLength"),Cc=Symbol("bufferPush"),Fc=Symbol("bufferShift"),wc=Symbol("objectMode"),Dc=Symbol("destroyed"),Bc=Symbol("error"),Ic=Symbol("emitData"),Rc=Symbol("emitEnd"),jc=Symbol("emitEnd2"),Sc=Symbol("async"),_c=Symbol("abort"),Uc=Symbol("aborted"),Pc=Symbol("signal"),Oc=Symbol("dataListeners"),kc=Symbol("discarded"),xc=t=>Promise.resolve().then(t),Tc=t=>t();class Lc{src;dest;opts;ondrain;constructor(t,e,n){this.src=t,this.dest=e,this.opts=n,this.ondrain=()=>t[Ac](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class Nc extends Lc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,n){super(t,e,n),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class qc extends _{[vc]=!1;[Ec]=!1;[yc]=[];[bc]=[];[wc];[fc];[Sc];[mc];[oc]=!1;[sc]=!1;[ac]=!1;[dc]=!1;[cc]=null;[gc]=0;[Dc]=!1;[Pc];[Uc]=!1;[Oc]=0;[kc]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[wc]=!0,this[fc]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[fc]=e.encoding,this[wc]=!1):(this[wc]=!1,this[fc]=null),this[Sc]=!!e.async,this[mc]=this[fc]?new P(this[fc]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[bc]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[yc]});const{signal:n}=e;n&&(this[Pc]=n,n.aborted?this[_c]():n.addEventListener("abort",()=>this[_c]()))}get bufferLength(){return this[gc]}get encoding(){return this[fc]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[wc]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Sc]}set async(t){this[Sc]=this[Sc]||!!t}[_c](){this[Uc]=!0,this.emit("abort",this[Pc]?.reason),this.destroy(this[Pc]?.reason)}get aborted(){return this[Uc]}set aborted(t){}write(t,e,n){if(this[Uc])return!1;if(this[oc])throw new Error("write after end");if(this[Dc])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(n=e,e="utf8"),e||(e="utf8");const r=this[Sc]?xc:Tc;if(!this[wc]&&!Buffer.isBuffer(t))if(u=t,!Buffer.isBuffer(u)&&ArrayBuffer.isView(u))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var u;return this[wc]?(this[vc]&&0!==this[gc]&&this[hc](!0),this[vc]?this.emit("data",t):this[Cc](t),0!==this[gc]&&this.emit("readable"),n&&r(n),this[vc]):t.length?("string"!=typeof t||e===this[fc]&&!this[mc]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[fc]&&(t=this[mc].write(t)),this[vc]&&0!==this[gc]&&this[hc](!0),this[vc]?this.emit("data",t):this[Cc](t),0!==this[gc]&&this.emit("readable"),n&&r(n),this[vc]):(0!==this[gc]&&this.emit("readable"),n&&r(n),this[vc])}read(t){if(this[Dc])return null;if(this[kc]=!1,0===this[gc]||0===t||t&&t>this[gc])return this[ic](),null;this[wc]&&(t=null),this[bc].length>1&&!this[wc]&&(this[bc]=[this[fc]?this[bc].join(""):Buffer.concat(this[bc],this[gc])]);const e=this[lc](t||null,this[bc][0]);return this[ic](),e}[lc](t,e){if(this[wc])this[Fc]();else{const n=e;t===n.length||null===t?this[Fc]():"string"==typeof n?(this[bc][0]=n.slice(t),e=n.slice(0,t),this[gc]-=t):(this[bc][0]=n.subarray(t),e=n.subarray(0,t),this[gc]-=t)}return this.emit("data",e),this[bc].length||this[oc]||this.emit("drain"),e}end(t,e,n){return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e="utf8"),void 0!==t&&this.write(t,e),n&&this.once("end",n),this[oc]=!0,this.writable=!1,!this[vc]&&this[Ec]||this[ic](),this}[Ac](){this[Dc]||(this[Oc]||this[yc].length||(this[kc]=!0),this[Ec]=!1,this[vc]=!0,this.emit("resume"),this[bc].length?this[hc]():this[oc]?this[ic]():this.emit("drain"))}resume(){return this[Ac]()}pause(){this[vc]=!1,this[Ec]=!0,this[kc]=!1}get destroyed(){return this[Dc]}get flowing(){return this[vc]}get paused(){return this[Ec]}[Cc](t){this[wc]?this[gc]+=1:this[gc]+=t.length,this[bc].push(t)}[Fc](){return this[wc]?this[gc]-=1:this[gc]-=this[bc][0].length,this[bc].shift()}[hc](t=!1){do{}while(this[pc](this[Fc]())&&this[bc].length);t||this[bc].length||this[oc]||this.emit("drain")}[pc](t){return this.emit("data",t),this[vc]}pipe(t,e){if(this[Dc])return t;this[kc]=!1;const n=this[sc];return e=e||{},t===ec.stdout||t===ec.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,n?e.end&&t.end():(this[yc].push(e.proxyErrors?new Nc(this,t,e):new Lc(this,t,e)),this[Sc]?xc(()=>this[Ac]()):this[Ac]()),t}unpipe(t){const e=this[yc].find(e=>e.dest===t);e&&(1===this[yc].length?(this[vc]&&0===this[Oc]&&(this[vc]=!1),this[yc]=[]):this[yc].splice(this[yc].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const n=super.on(t,e);if("data"===t)this[kc]=!1,this[Oc]++,this[yc].length||this[vc]||this[Ac]();else if("readable"===t&&0!==this[gc])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[sc])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[cc]){const t=e;this[Sc]?xc(()=>t.call(this,this[cc])):t.call(this,this[cc])}return n}removeListener(t,e){return this.off(t,e)}off(t,e){const n=super.off(t,e);return"data"===t&&(this[Oc]=this.listeners("data").length,0!==this[Oc]||this[kc]||this[yc].length||(this[vc]=!1)),n}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[Oc]=0,this[kc]||this[yc].length||(this[vc]=!1)),e}get emittedEnd(){return this[sc]}[ic](){this[ac]||this[sc]||this[Dc]||0!==this[bc].length||!this[oc]||(this[ac]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[dc]&&this.emit("close"),this[ac]=!1)}emit(t,...e){const n=e[0];if("error"!==t&&"close"!==t&&t!==Dc&&this[Dc])return!1;if("data"===t)return!(!this[wc]&&!n)&&(this[Sc]?(xc(()=>this[Ic](n)),!0):this[Ic](n));if("end"===t)return this[Rc]();if("close"===t){if(this[dc]=!0,!this[sc]&&!this[Dc])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[cc]=n,super.emit(Bc,n);const t=!(this[Pc]&&!this.listeners("error").length)&&super.emit("error",n);return this[ic](),t}if("resume"===t){const t=super.emit("resume");return this[ic](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const r=super.emit(t,...e);return this[ic](),r}[Ic](t){for(const e of this[yc])!1===e.dest.write(t)&&this.pause();const e=!this[kc]&&super.emit("data",t);return this[ic](),e}[Rc](){return!this[sc]&&(this[sc]=!0,this.readable=!1,this[Sc]?(xc(()=>this[jc]()),!0):this[jc]())}[jc](){if(this[mc]){const t=this[mc].end();if(t){for(const e of this[yc])e.dest.write(t);this[kc]||super.emit("data",t)}}for(const t of this[yc])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[wc]||(t.dataLength=0);const e=this.promise();return this.on("data",e=>{t.push(e),this[wc]||(t.dataLength+=e.length)}),await e,t}async concat(){if(this[wc])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[fc]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,e)=>{this.on(Dc,()=>e(new Error("stream destroyed"))),this.on("error",t=>e(t)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[kc]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[oc])return e();let r,u;const o=t=>{this.off("data",i),this.off("end",s),this.off(Dc,a),e(),u(t)},i=t=>{this.off("error",o),this.off("end",s),this.off(Dc,a),this.pause(),r({value:t,done:!!this[oc]})},s=()=>{this.off("error",o),this.off("data",i),this.off(Dc,a),e(),r({done:!0,value:void 0})},a=()=>o(new Error("stream destroyed"));return new Promise((t,e)=>{u=e,r=t,this.once(Dc,a),this.once("error",o),this.once("end",s),this.once("data",i)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[kc]=!1;let t=!1;const e=()=>(this.pause(),this.off(Bc,e),this.off(Dc,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Bc,e),this.once(Dc,e),{next:()=>{if(t)return e();const n=this.read();return null===n?e():{done:!1,value:n}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[Dc])return t?this.emit("error",t):this.emit(Dc),this;this[Dc]=!0,this[kc]=!0,this[bc].length=0,this[gc]=0;return"function"!=typeof this.close||this[dc]||this.close(),t?this.emit("error",t):this.emit(Dc),this}static get isStream(){return nc}}const Mc=E.writev,Gc=Symbol("_autoClose"),zc=Symbol("_close"),$c=Symbol("_ended"),Wc=Symbol("_fd"),Jc=Symbol("_finished"),Vc=Symbol("_flags"),Hc=Symbol("_flush"),Zc=Symbol("_handleChunk"),Yc=Symbol("_makeBuf"),Kc=Symbol("_mode"),Xc=Symbol("_needDrain"),Qc=Symbol("_onerror"),td=Symbol("_onopen"),ed=Symbol("_onread"),nd=Symbol("_onwrite"),rd=Symbol("_open"),ud=Symbol("_path"),od=Symbol("_pos"),id=Symbol("_queue"),sd=Symbol("_read"),ad=Symbol("_readSize"),cd=Symbol("_reading"),dd=Symbol("_remain"),ld=Symbol("_size"),hd=Symbol("_write"),pd=Symbol("_writing"),fd=Symbol("_defaultFlag"),md=Symbol("_errored");class vd extends qc{[md]=!1;[Wc];[ud];[ad];[cd]=!1;[ld];[dd];[Gc];constructor(t,e){if(super(e=e||{}),this.readable=!0,this.writable=!1,"string"!=typeof t)throw new TypeError("path must be a string");this[md]=!1,this[Wc]="number"==typeof e.fd?e.fd:void 0,this[ud]=t,this[ad]=e.readSize||16777216,this[cd]=!1,this[ld]="number"==typeof e.size?e.size:1/0,this[dd]=this[ld],this[Gc]="boolean"!=typeof e.autoClose||e.autoClose,"number"==typeof this[Wc]?this[sd]():this[rd]()}get fd(){return this[Wc]}get path(){return this[ud]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[rd](){E.open(this[ud],"r",(t,e)=>this[td](t,e))}[td](t,e){t?this[Qc](t):(this[Wc]=e,this.emit("open",e),this[sd]())}[Yc](){return Buffer.allocUnsafe(Math.min(this[ad],this[dd]))}[sd](){if(!this[cd]){this[cd]=!0;const t=this[Yc]();if(0===t.length)return process.nextTick(()=>this[ed](null,0,t));E.read(this[Wc],t,0,t.length,null,(t,e,n)=>this[ed](t,e,n))}}[ed](t,e,n){this[cd]=!1,t?this[Qc](t):this[Zc](e,n)&&this[sd]()}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.close(t,t=>t?this.emit("error",t):this.emit("close"))}}[Qc](t){this[cd]=!0,this[zc](),this.emit("error",t)}[Zc](t,e){let n=!1;return this[dd]-=t,t>0&&(n=super.write(t<e.length?e.subarray(0,t):e)),(0===t||this[dd]<=0)&&(n=!1,this[zc](),super.end()),n}emit(t,...e){switch(t){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[Wc]&&this[sd](),!1;case"error":return!this[md]&&(this[md]=!0,super.emit(t,...e));default:return super.emit(t,...e)}}}class Ed extends vd{[rd](){let t=!0;try{this[td](null,E.openSync(this[ud],"r")),t=!1}finally{t&&this[zc]()}}[sd](){let t=!0;try{if(!this[cd]){for(this[cd]=!0;;){const t=this[Yc](),e=0===t.length?0:E.readSync(this[Wc],t,0,t.length,null);if(!this[Zc](e,t))break}this[cd]=!1}t=!1}finally{t&&this[zc]()}}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.closeSync(t),this.emit("close")}}}class Ad extends t{readable=!1;writable=!0;[md]=!1;[pd]=!1;[$c]=!1;[id]=[];[Xc]=!1;[ud];[Kc];[Gc];[Wc];[fd];[Vc];[Jc]=!1;[od];constructor(t,e){super(e=e||{}),this[ud]=t,this[Wc]="number"==typeof e.fd?e.fd:void 0,this[Kc]=void 0===e.mode?438:e.mode,this[od]="number"==typeof e.start?e.start:void 0,this[Gc]="boolean"!=typeof e.autoClose||e.autoClose;const n=void 0!==this[od]?"r+":"w";this[fd]=void 0===e.flags,this[Vc]=void 0===e.flags?n:e.flags,void 0===this[Wc]&&this[rd]()}emit(t,...e){if("error"===t){if(this[md])return!1;this[md]=!0}return super.emit(t,...e)}get fd(){return this[Wc]}get path(){return this[ud]}[Qc](t){this[zc](),this[pd]=!0,this.emit("error",t)}[rd](){E.open(this[ud],this[Vc],this[Kc],(t,e)=>this[td](t,e))}[td](t,e){this[fd]&&"r+"===this[Vc]&&t&&"ENOENT"===t.code?(this[Vc]="w",this[rd]()):t?this[Qc](t):(this[Wc]=e,this.emit("open",e),this[pd]||this[Hc]())}end(t,e){return t&&this.write(t,e),this[$c]=!0,this[pd]||this[id].length||"number"!=typeof this[Wc]||this[nd](null,0),this}write(t,e){return"string"==typeof t&&(t=Buffer.from(t,e)),this[$c]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[Wc]||this[pd]||this[id].length?(this[id].push(t),this[Xc]=!0,!1):(this[pd]=!0,this[hd](t),!0)}[hd](t){E.write(this[Wc],t,0,t.length,this[od],(t,e)=>this[nd](t,e))}[nd](t,e){t?this[Qc](t):(void 0!==this[od]&&"number"==typeof e&&(this[od]+=e),this[id].length?this[Hc]():(this[pd]=!1,this[$c]&&!this[Jc]?(this[Jc]=!0,this[zc](),this.emit("finish")):this[Xc]&&(this[Xc]=!1,this.emit("drain"))))}[Hc](){if(0===this[id].length)this[$c]&&this[nd](null,0);else if(1===this[id].length)this[hd](this[id].pop());else{const t=this[id];this[id]=[],Mc(this[Wc],t,this[od],(t,e)=>this[nd](t,e))}}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.close(t,t=>t?this.emit("error",t):this.emit("close"))}}}class bd extends Ad{[rd](){let t;if(this[fd]&&"r+"===this[Vc])try{t=E.openSync(this[ud],this[Vc],this[Kc])}catch(t){if("ENOENT"===t?.code)return this[Vc]="w",this[rd]();throw t}else t=E.openSync(this[ud],this[Vc],this[Kc]);this[td](null,t)}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.closeSync(t),this.emit("close")}}[hd](t){let e=!0;try{this[nd](null,E.writeSync(this[Wc],t,0,t.length,this[od])),e=!1}finally{if(e)try{this[zc]()}catch{}}}}const yd=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),gd=t=>{const e=yd.get(t);return e||t},Cd=(t={})=>{if(!t)return{};const e={};for(const[n,r]of Object.entries(t)){e[gd(n)]=r}return void 0===e.chmod&&!1===e.noChmod&&(e.chmod=!0),delete e.noChmod,e},Fd=(t,e,n,r,u)=>Object.assign((o=[],i,s)=>{Array.isArray(o)&&(i=o,o={}),"function"==typeof i&&(s=i,i=void 0),i=i?Array.from(i):[];const a=Cd(o);if(u?.(a,i),(c=a).sync&&c.file){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return t(a,i)}if((t=>!t.sync&&!!t.file)(a)){const t=e(a,i),n=s||void 0;return n?t.then(()=>n(),n):t}if((t=>!!t.sync&&!t.file)(a)){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return n(a,i)}if((t=>!t.sync&&!t.file)(a)){if("function"==typeof s)throw new TypeError("callback only supported with file option");return r(a,i)}throw new Error("impossible options??");var c},{syncFile:t,asyncFile:e,syncNoFile:n,asyncNoFile:r,validate:u}),wd="object"==typeof process&&process?process:{stdout:null,stderr:null},Dd=t=>!!t&&"object"==typeof t&&(t instanceof cl||t instanceof U||Bd(t)||Id(t)),Bd=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.pipe&&t.pipe!==U.Writable.prototype.pipe,Id=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.write&&"function"==typeof t.end,Rd=Symbol("EOF"),jd=Symbol("maybeEmitEnd"),Sd=Symbol("emittedEnd"),_d=Symbol("emittingEnd"),Ud=Symbol("emittedError"),Pd=Symbol("closed"),Od=Symbol("read"),kd=Symbol("flush"),xd=Symbol("flushChunk"),Td=Symbol("encoding"),Ld=Symbol("decoder"),Nd=Symbol("flowing"),qd=Symbol("paused"),Md=Symbol("resume"),Gd=Symbol("buffer"),zd=Symbol("pipes"),$d=Symbol("bufferLength"),Wd=Symbol("bufferPush"),Jd=Symbol("bufferShift"),Vd=Symbol("objectMode"),Hd=Symbol("destroyed"),Zd=Symbol("error"),Yd=Symbol("emitData"),Kd=Symbol("emitEnd"),Xd=Symbol("emitEnd2"),Qd=Symbol("async"),tl=Symbol("abort"),el=Symbol("aborted"),nl=Symbol("signal"),rl=Symbol("dataListeners"),ul=Symbol("discarded"),ol=t=>Promise.resolve().then(t),il=t=>t();class sl{src;dest;opts;ondrain;constructor(t,e,n){this.src=t,this.dest=e,this.opts=n,this.ondrain=()=>t[Md](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class al extends sl{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,n){super(t,e,n),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class cl extends _{[Nd]=!1;[qd]=!1;[zd]=[];[Gd]=[];[Vd];[Td];[Qd];[Ld];[Rd]=!1;[Sd]=!1;[_d]=!1;[Pd]=!1;[Ud]=null;[$d]=0;[Hd]=!1;[nl];[el]=!1;[rl]=0;[ul]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[Vd]=!0,this[Td]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[Td]=e.encoding,this[Vd]=!1):(this[Vd]=!1,this[Td]=null),this[Qd]=!!e.async,this[Ld]=this[Td]?new P(this[Td]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Gd]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[zd]});const{signal:n}=e;n&&(this[nl]=n,n.aborted?this[tl]():n.addEventListener("abort",()=>this[tl]()))}get bufferLength(){return this[$d]}get encoding(){return this[Td]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Vd]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Qd]}set async(t){this[Qd]=this[Qd]||!!t}[tl](){this[el]=!0,this.emit("abort",this[nl]?.reason),this.destroy(this[nl]?.reason)}get aborted(){return this[el]}set aborted(t){}write(t,e,n){if(this[el])return!1;if(this[Rd])throw new Error("write after end");if(this[Hd])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(n=e,e="utf8"),e||(e="utf8");const r=this[Qd]?ol:il;if(!this[Vd]&&!Buffer.isBuffer(t))if(u=t,!Buffer.isBuffer(u)&&ArrayBuffer.isView(u))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var u;return this[Vd]?(this[Nd]&&0!==this[$d]&&this[kd](!0),this[Nd]?this.emit("data",t):this[Wd](t),0!==this[$d]&&this.emit("readable"),n&&r(n),this[Nd]):t.length?("string"!=typeof t||e===this[Td]&&!this[Ld]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[Td]&&(t=this[Ld].write(t)),this[Nd]&&0!==this[$d]&&this[kd](!0),this[Nd]?this.emit("data",t):this[Wd](t),0!==this[$d]&&this.emit("readable"),n&&r(n),this[Nd]):(0!==this[$d]&&this.emit("readable"),n&&r(n),this[Nd])}read(t){if(this[Hd])return null;if(this[ul]=!1,0===this[$d]||0===t||t&&t>this[$d])return this[jd](),null;this[Vd]&&(t=null),this[Gd].length>1&&!this[Vd]&&(this[Gd]=[this[Td]?this[Gd].join(""):Buffer.concat(this[Gd],this[$d])]);const e=this[Od](t||null,this[Gd][0]);return this[jd](),e}[Od](t,e){if(this[Vd])this[Jd]();else{const n=e;t===n.length||null===t?this[Jd]():"string"==typeof n?(this[Gd][0]=n.slice(t),e=n.slice(0,t),this[$d]-=t):(this[Gd][0]=n.subarray(t),e=n.subarray(0,t),this[$d]-=t)}return this.emit("data",e),this[Gd].length||this[Rd]||this.emit("drain"),e}end(t,e,n){return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e="utf8"),void 0!==t&&this.write(t,e),n&&this.once("end",n),this[Rd]=!0,this.writable=!1,!this[Nd]&&this[qd]||this[jd](),this}[Md](){this[Hd]||(this[rl]||this[zd].length||(this[ul]=!0),this[qd]=!1,this[Nd]=!0,this.emit("resume"),this[Gd].length?this[kd]():this[Rd]?this[jd]():this.emit("drain"))}resume(){return this[Md]()}pause(){this[Nd]=!1,this[qd]=!0,this[ul]=!1}get destroyed(){return this[Hd]}get flowing(){return this[Nd]}get paused(){return this[qd]}[Wd](t){this[Vd]?this[$d]+=1:this[$d]+=t.length,this[Gd].push(t)}[Jd](){return this[Vd]?this[$d]-=1:this[$d]-=this[Gd][0].length,this[Gd].shift()}[kd](t=!1){do{}while(this[xd](this[Jd]())&&this[Gd].length);t||this[Gd].length||this[Rd]||this.emit("drain")}[xd](t){return this.emit("data",t),this[Nd]}pipe(t,e){if(this[Hd])return t;this[ul]=!1;const n=this[Sd];return e=e||{},t===wd.stdout||t===wd.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,n?e.end&&t.end():(this[zd].push(e.proxyErrors?new al(this,t,e):new sl(this,t,e)),this[Qd]?ol(()=>this[Md]()):this[Md]()),t}unpipe(t){const e=this[zd].find(e=>e.dest===t);e&&(1===this[zd].length?(this[Nd]&&0===this[rl]&&(this[Nd]=!1),this[zd]=[]):this[zd].splice(this[zd].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const n=super.on(t,e);if("data"===t)this[ul]=!1,this[rl]++,this[zd].length||this[Nd]||this[Md]();else if("readable"===t&&0!==this[$d])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[Sd])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Ud]){const t=e;this[Qd]?ol(()=>t.call(this,this[Ud])):t.call(this,this[Ud])}return n}removeListener(t,e){return this.off(t,e)}off(t,e){const n=super.off(t,e);return"data"===t&&(this[rl]=this.listeners("data").length,0!==this[rl]||this[ul]||this[zd].length||(this[Nd]=!1)),n}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[rl]=0,this[ul]||this[zd].length||(this[Nd]=!1)),e}get emittedEnd(){return this[Sd]}[jd](){this[_d]||this[Sd]||this[Hd]||0!==this[Gd].length||!this[Rd]||(this[_d]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Pd]&&this.emit("close"),this[_d]=!1)}emit(t,...e){const n=e[0];if("error"!==t&&"close"!==t&&t!==Hd&&this[Hd])return!1;if("data"===t)return!(!this[Vd]&&!n)&&(this[Qd]?(ol(()=>this[Yd](n)),!0):this[Yd](n));if("end"===t)return this[Kd]();if("close"===t){if(this[Pd]=!0,!this[Sd]&&!this[Hd])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Ud]=n,super.emit(Zd,n);const t=!(this[nl]&&!this.listeners("error").length)&&super.emit("error",n);return this[jd](),t}if("resume"===t){const t=super.emit("resume");return this[jd](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const r=super.emit(t,...e);return this[jd](),r}[Yd](t){for(const e of this[zd])!1===e.dest.write(t)&&this.pause();const e=!this[ul]&&super.emit("data",t);return this[jd](),e}[Kd](){return!this[Sd]&&(this[Sd]=!0,this.readable=!1,this[Qd]?(ol(()=>this[Xd]()),!0):this[Xd]())}[Xd](){if(this[Ld]){const t=this[Ld].end();if(t){for(const e of this[zd])e.dest.write(t);this[ul]||super.emit("data",t)}}for(const t of this[zd])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[Vd]||(t.dataLength=0);const e=this.promise();return this.on("data",e=>{t.push(e),this[Vd]||(t.dataLength+=e.length)}),await e,t}async concat(){if(this[Vd])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[Td]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,e)=>{this.on(Hd,()=>e(new Error("stream destroyed"))),this.on("error",t=>e(t)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[ul]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[Rd])return e();let r,u;const o=t=>{this.off("data",i),this.off("end",s),this.off(Hd,a),e(),u(t)},i=t=>{this.off("error",o),this.off("end",s),this.off(Hd,a),this.pause(),r({value:t,done:!!this[Rd]})},s=()=>{this.off("error",o),this.off("data",i),this.off(Hd,a),e(),r({done:!0,value:void 0})},a=()=>o(new Error("stream destroyed"));return new Promise((t,e)=>{u=e,r=t,this.once(Hd,a),this.once("error",o),this.once("end",s),this.once("data",i)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ul]=!1;let t=!1;const e=()=>(this.pause(),this.off(Zd,e),this.off(Hd,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Zd,e),this.once(Hd,e),{next:()=>{if(t)return e();const n=this.read();return null===n?e():{done:!1,value:n}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[Hd])return t?this.emit("error",t):this.emit(Hd),this;this[Hd]=!0,this[ul]=!0,this[Gd].length=0,this[$d]=0;return"function"!=typeof this.close||this[Pd]||this.close(),t?this.emit("error",t):this.emit(Hd),this}static get isStream(){return Dd}}const dl=h.constants||{ZLIB_VERNUM:4736},ll=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},dl)),hl=j.concat,pl=Object.getOwnPropertyDescriptor(j,"concat"),fl=t=>t,ml=!0===pl?.writable||void 0!==pl?.set?t=>{j.concat=t?fl:hl}:t=>{},vl=Symbol("_superWrite");class El extends Error{code;errno;constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const Al=Symbol("flushFlag");class bl extends cl{#t=!1;#e=!1;#n;#r;#u;#o;#i;get sawError(){return this.#t}get handle(){return this.#o}get flushFlag(){return this.#n}constructor(t,e){if(!t||"object"!=typeof t)throw new TypeError("invalid options for ZlibBase constructor");super(t),this.#n=t.flush??0,this.#r=t.finishFlush??0,this.#u=t.fullFlushFlag??0;try{this.#o=new l[e](t)}catch(t){throw new El(t)}this.#i=t=>{this.#t||(this.#t=!0,this.close(),this.emit("error",t))},this.#o?.on("error",t=>this.#i(new El(t))),this.once("end",()=>this.close)}close(){this.#o&&(this.#o.close(),this.#o=void 0,this.emit("close"))}reset(){if(!this.#t)return q(this.#o,"zlib binding closed"),this.#o.reset?.()}flush(t){this.ended||("number"!=typeof t&&(t=this.#u),this.write(Object.assign(j.alloc(0),{[Al]:t})))}end(t,e,n){return"function"==typeof t&&(n=t,e=void 0,t=void 0),"function"==typeof e&&(n=e,e=void 0),t&&(e?this.write(t,e):this.write(t)),this.flush(this.#r),this.#e=!0,super.end(n)}get ended(){return this.#e}[vl](t){return super.write(t)}write(t,e,n){if("function"==typeof e&&(n=e,e="utf8"),"string"==typeof t&&(t=j.from(t,e)),this.#t)return;q(this.#o,"zlib binding closed");const r=this.#o._handle,u=r.close;r.close=()=>{};const o=this.#o.close;let i,s;this.#o.close=()=>{},ml(!0);try{const e="number"==typeof t[Al]?t[Al]:this.#n;i=this.#o._processChunk(t,e),ml(!1)}catch(t){ml(!1),this.#i(new El(t))}finally{this.#o&&(this.#o._handle=r,r.close=u,this.#o.close=o,this.#o.removeAllListeners("error"))}if(this.#o&&this.#o.on("error",t=>this.#i(new El(t))),i)if(Array.isArray(i)&&i.length>0){const t=i[0];s=this[vl](j.from(t));for(let t=1;t<i.length;t++)s=this[vl](i[t])}else s=this[vl](j.from(i));return n&&n(),s}}class yl extends bl{#s;#a;constructor(t,e){(t=t||{}).flush=t.flush||ll.Z_NO_FLUSH,t.finishFlush=t.finishFlush||ll.Z_FINISH,t.fullFlushFlag=ll.Z_FULL_FLUSH,super(t,e),this.#s=t.level,this.#a=t.strategy}params(t,e){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#s!==t||this.#a!==e){this.flush(ll.Z_SYNC_FLUSH),q(this.handle,"zlib binding closed");const n=this.handle.flush;this.handle.flush=(t,e)=>{"function"==typeof t&&(e=t,t=this.flushFlag),this.flush(t),e?.()};try{this.handle.params(t,e)}finally{this.handle.flush=n}this.handle&&(this.#s=t,this.#a=e)}}}}class gl extends yl{#c;constructor(t){super(t,"Gzip"),this.#c=t&&!!t.portable}[vl](t){return this.#c?(this.#c=!1,t[9]=255,super[vl](t)):super[vl](t)}}class Cl extends yl{constructor(t){super(t,"Unzip")}}class Fl extends bl{constructor(t,e){(t=t||{}).flush=t.flush||ll.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||ll.BROTLI_OPERATION_FINISH,t.fullFlushFlag=ll.BROTLI_OPERATION_FLUSH,super(t,e)}}class wl extends Fl{constructor(t){super(t,"BrotliCompress")}}class Dl extends Fl{constructor(t){super(t,"BrotliDecompress")}}class Bl{tail;head;length=0;static create(t=[]){return new Bl(t)}constructor(t=[]){for(const e of t)this.push(e)}*[Symbol.iterator](){for(let t=this.head;t;t=t.next)yield t.value}removeNode(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");const e=t.next,n=t.prev;return e&&(e.prev=n),n&&(n.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=n),this.length--,t.next=void 0,t.prev=void 0,t.list=void 0,e}unshiftNode(t){if(t===this.head)return;t.list&&t.list.removeNode(t);const e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}pushNode(t){if(t===this.tail)return;t.list&&t.list.removeNode(t);const e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}push(...t){for(let e=0,n=t.length;e<n;e++)Rl(this,t[e]);return this.length}unshift(...t){for(var e=0,n=t.length;e<n;e++)jl(this,t[e]);return this.length}pop(){if(!this.tail)return;const t=this.tail.value,e=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,e.list=void 0,this.length--,t}shift(){if(!this.head)return;const t=this.head.value,e=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,e.list=void 0,this.length--,t}forEach(t,e){e=e||this;for(let n=this.head,r=0;n;r++)t.call(e,n.value,r,this),n=n.next}forEachReverse(t,e){e=e||this;for(let n=this.tail,r=this.length-1;n;r--)t.call(e,n.value,r,this),n=n.prev}get(t){let e=0,n=this.head;for(;n&&e<t;e++)n=n.next;if(e===t&&n)return n.value}getReverse(t){let e=0,n=this.tail;for(;n&&e<t;e++)n=n.prev;if(e===t&&n)return n.value}map(t,e){e=e||this;const n=new Bl;for(let r=this.head;r;)n.push(t.call(e,r.value,this)),r=r.next;return n}mapReverse(t,e){e=e||this;var n=new Bl;for(let r=this.tail;r;)n.push(t.call(e,r.value,this)),r=r.prev;return n}reduce(t,e){let n,r=this.head;if(arguments.length>1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var u=0;r;u++)n=t(n,r.value,u),r=r.next;return n}reduceReverse(t,e){let n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(let e=this.length-1;r;e--)n=t(n,r.value,e),r=r.prev;return n}toArray(){const t=new Array(this.length);for(let e=0,n=this.head;n;e++)t[e]=n.value,n=n.next;return t}toArrayReverse(){const t=new Array(this.length);for(let e=0,n=this.tail;n;e++)t[e]=n.value,n=n.prev;return t}slice(t=0,e=this.length){e<0&&(e+=this.length),t<0&&(t+=this.length);const n=new Bl;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);let r=this.head,u=0;for(u=0;r&&u<t;u++)r=r.next;for(;r&&u<e;u++,r=r.next)n.push(r.value);return n}sliceReverse(t=0,e=this.length){e<0&&(e+=this.length),t<0&&(t+=this.length);const n=new Bl;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);let r=this.length,u=this.tail;for(;u&&r>e;r--)u=u.prev;for(;u&&r>t;r--,u=u.prev)n.push(u.value);return n}splice(t,e=0,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);let r=this.head;for(let e=0;r&&e<t;e++)r=r.next;const u=[];for(let t=0;r&&t<e;t++)u.push(r.value),r=this.removeNode(r);r?r!==this.tail&&(r=r.prev):r=this.tail;for(const t of n)r=Il(this,r,t);return u}reverse(){const t=this.head,e=this.tail;for(let e=t;e;e=e.prev){const t=e.prev;e.prev=e.next,e.next=t}return this.head=e,this.tail=t,this}}function Il(t,e,n){const r=e,u=e?e.next:t.head,o=new Sl(n,r,u,t);return void 0===o.next&&(t.tail=o),void 0===o.prev&&(t.head=o),t.length++,o}function Rl(t,e){t.tail=new Sl(e,t.tail,void 0,t),t.head||(t.head=t.tail),t.length++}function jl(t,e){t.head=new Sl(e,void 0,t.head,t),t.tail||(t.tail=t.head),t.length++}class Sl{list;next;prev;value;constructor(t,e,n,r){this.list=r,this.value=t,e?(e.next=this,this.prev=e):this.prev=void 0,n?(n.prev=this,this.next=n):this.next=void 0}}const _l=(t,e)=>{e[0]=128;for(var n=e.length;n>1;n--)e[n-1]=255&t,t=Math.floor(t/256)},Ul=(t,e)=>{e[0]=255;var n=!1;t*=-1;for(var r=e.length;r>1;r--){var u=255&t;t=Math.floor(t/256),n?e[r-1]=kl(u):0===u?e[r-1]=0:(n=!0,e[r-1]=xl(u))}},Pl=t=>{for(var e=t.length,n=0,r=!1,u=e-1;u>-1;u--){var o,i=Number(t[u]);r?o=kl(i):0===i?o=i:(r=!0,o=xl(i)),0!==o&&(n-=o*Math.pow(256,e-u-1))}return n},Ol=t=>{for(var e=t.length,n=0,r=e-1;r>-1;r--){var u=Number(t[r]);0!==u&&(n+=u*Math.pow(256,e-r-1))}return n},kl=t=>255&(255^t),xl=t=>1+(255^t)&255,Tl=t=>Ll.has(t),Ll=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),Nl=new Map(Array.from(Ll).map(t=>[t[1],t[0]]));class ql{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#d="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(t,e=0,n,r){Buffer.isBuffer(t)?this.decode(t,e||0,n,r):t&&this.#l(t)}decode(t,e,n,r){if(e||(e=0),!(t&&t.length>=e+512))throw new Error("need 512 bytes for header");this.path=Gl(t,e,100),this.mode=Wl(t,e+100,8),this.uid=Wl(t,e+108,8),this.gid=Wl(t,e+116,8),this.size=Wl(t,e+124,12),this.mtime=zl(t,e+136,12),this.cksum=Wl(t,e+148,12),r&&this.#l(r,!0),n&&this.#l(n);const u=Gl(t,e+156,1);if(Tl(u)&&(this.#d=u||"0"),"0"===this.#d&&"/"===this.path.slice(-1)&&(this.#d="5"),"5"===this.#d&&(this.size=0),this.linkpath=Gl(t,e+157,100),"ustar\x0000"===t.subarray(e+257,e+265).toString())if(this.uname=Gl(t,e+265,32),this.gname=Gl(t,e+297,32),this.devmaj=Wl(t,e+329,8)??0,this.devmin=Wl(t,e+337,8)??0,0!==t[e+475]){const n=Gl(t,e+345,155);this.path=n+"/"+this.path}else{const n=Gl(t,e+345,130);n&&(this.path=n+"/"+this.path),this.atime=zl(t,e+476,12),this.ctime=zl(t,e+488,12)}let o=256;for(let n=e;n<e+148;n++)o+=t[n];for(let n=e+156;n<e+512;n++)o+=t[n];this.cksumValid=o===this.cksum,void 0===this.cksum&&256===o&&(this.nullBlock=!0)}#l(t,e=!1){Object.assign(this,Object.fromEntries(Object.entries(t).filter(([t,n])=>!(null==n||"path"===t&&e||"linkpath"===t&&e||"global"===t))))}encode(t,e=0){if(t||(t=this.block=Buffer.alloc(512)),"Unsupported"===this.#d&&(this.#d="0"),!(t.length>=e+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155,r=Ml(this.path||"",n),u=r[0],o=r[1];this.needPax=!!r[2],this.needPax=th(t,e,100,u)||this.needPax,this.needPax=Hl(t,e+100,8,this.mode)||this.needPax,this.needPax=Hl(t,e+108,8,this.uid)||this.needPax,this.needPax=Hl(t,e+116,8,this.gid)||this.needPax,this.needPax=Hl(t,e+124,12,this.size)||this.needPax,this.needPax=Xl(t,e+136,12,this.mtime)||this.needPax,t[e+156]=this.#d.charCodeAt(0),this.needPax=th(t,e+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",e+257,8),this.needPax=th(t,e+265,32,this.uname)||this.needPax,this.needPax=th(t,e+297,32,this.gname)||this.needPax,this.needPax=Hl(t,e+329,8,this.devmaj)||this.needPax,this.needPax=Hl(t,e+337,8,this.devmin)||this.needPax,this.needPax=th(t,e+345,n,o)||this.needPax,0!==t[e+475]?this.needPax=th(t,e+345,155,o)||this.needPax:(this.needPax=th(t,e+345,130,o)||this.needPax,this.needPax=Xl(t,e+476,12,this.atime)||this.needPax,this.needPax=Xl(t,e+488,12,this.ctime)||this.needPax);let i=256;for(let n=e;n<e+148;n++)i+=t[n];for(let n=e+156;n<e+512;n++)i+=t[n];return this.cksum=i,Hl(t,e+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#d?this.#d:Ll.get(this.#d)}get typeKey(){return this.#d}set type(t){const e=String(Nl.get(t));if(Tl(e)||"Unsupported"===e)this.#d=e;else{if(!Tl(t))throw new TypeError("invalid entry type: "+t);this.#d=t}}}const Ml=(t,e)=>{const n=100;let r,u=t,o="";const i=k.parse(t).root||".";if(Buffer.byteLength(u)<n)r=[u,o,!1];else{o=k.dirname(u),u=k.basename(u);do{Buffer.byteLength(u)<=n&&Buffer.byteLength(o)<=e?r=[u,o,!1]:Buffer.byteLength(u)>n&&Buffer.byteLength(o)<=e?r=[u.slice(0,99),o,!0]:(u=k.join(k.basename(o),u),o=k.dirname(o))}while(o!==i&&void 0===r);r||(r=[t.slice(0,99),"",!0])}return r},Gl=(t,e,n)=>t.subarray(e,e+n).toString("utf8").replace(/\0.*/,""),zl=(t,e,n)=>$l(Wl(t,e,n)),$l=t=>void 0===t?void 0:new Date(1e3*t),Wl=(t,e,n)=>128&Number(t[e])?(t=>{const e=t[0],n=128===e?Ol(t.subarray(1,t.length)):255===e?Pl(t):null;if(null===n)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n})(t.subarray(e,e+n)):Jl(t,e,n),Jl=(t,e,n)=>{return r=parseInt(t.subarray(e,e+n).toString("utf8").replace(/\0.*$/,"").trim(),8),isNaN(r)?void 0:r;var r},Vl={12:8589934591,8:2097151},Hl=(t,e,n,r)=>void 0!==r&&(r>Vl[n]||r<0?(((t,e)=>{if(!Number.isSafeInteger(t))throw Error("cannot encode number outside of javascript safe integer range");t<0?Ul(t,e):_l(t,e)})(r,t.subarray(e,e+n)),!0):(Zl(t,e,n,r),!1)),Zl=(t,e,n,r)=>t.write(Yl(r,n),e,n,"ascii"),Yl=(t,e)=>Kl(Math.floor(t).toString(8),e),Kl=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Xl=(t,e,n,r)=>void 0!==r&&Hl(t,e,n,r.getTime()/1e3),Ql=new Array(156).join("\0"),th=(t,e,n,r)=>void 0!==r&&(t.write(r+Ql,e,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);class eh{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(t,e=!1){this.atime=t.atime,this.charset=t.charset,this.comment=t.comment,this.ctime=t.ctime,this.dev=t.dev,this.gid=t.gid,this.global=e,this.gname=t.gname,this.ino=t.ino,this.linkpath=t.linkpath,this.mtime=t.mtime,this.nlink=t.nlink,this.path=t.path,this.size=t.size,this.uid=t.uid,this.uname=t.uname}encode(){const t=this.encodeBody();if(""===t)return Buffer.allocUnsafe(0);const e=Buffer.byteLength(t),n=512*Math.ceil(1+e/512),r=Buffer.allocUnsafe(n);for(let t=0;t<512;t++)r[t]=0;new ql({path:("PaxHeader/"+x(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:e,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(r),r.write(t,512,e,"utf8");for(let t=e+512;t<r.length;t++)r[t]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(void 0===this[t])return"";const e=this[t],n=" "+("dev"===t||"ino"===t||"nlink"===t?"SCHILY.":"")+t+"="+(e instanceof Date?e.getTime()/1e3:e)+"\n",r=Buffer.byteLength(n);let u=Math.floor(Math.log(r)/Math.log(10))+1;r+u>=Math.pow(10,u)&&(u+=1);return u+r+n}static parse(t,e,n=!1){return new eh(nh(rh(t),e),n)}}const nh=(t,e)=>e?Object.assign({},e,t):t,rh=t=>t.replace(/\n$/,"").split("\n").reduce(uh,Object.create(null)),uh=(t,e)=>{const n=parseInt(e,10);if(n!==Buffer.byteLength(e)+1)return t;const r=(e=e.slice((n+" ").length)).split("="),u=r.shift();if(!u)return t;const o=u.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),i=r.join("=");return t[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(1e3*Number(i)):/^[0-9]+$/.test(i)?+i:i,t},oh="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?t=>t:t=>t&&t.replace(/\\/g,"/");class ih extends cl{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(t,e,n){switch(super({}),this.pause(),this.extended=e,this.globalExtended=n,this.header=t,this.remain=t.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),this.blockRemain=this.startBlockSize,this.type=t.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!t.path)throw new Error("no path provided for tar.ReadEntry");this.path=oh(t.path),this.mode=t.mode,this.mode&&(this.mode=4095&this.mode),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=this.remain,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=t.linkpath?oh(t.linkpath):void 0,this.uname=t.uname,this.gname=t.gname,e&&this.#l(e),n&&this.#l(n,!0)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain,r=this.blockRemain;return this.remain=Math.max(0,n-e),this.blockRemain=Math.max(0,r-e),!!this.ignore||(n>=e?super.write(t):super.write(t.subarray(0,n)))}#l(t,e=!1){t.path&&(t.path=oh(t.path)),t.linkpath&&(t.linkpath=oh(t.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(t).filter(([t,n])=>!(null==n||"path"===t&&e))))}}const sh=(t,e,n,r={})=>{t.file&&(r.file=t.file),t.cwd&&(r.cwd=t.cwd),r.code=n instanceof Error&&n.code||e,r.tarCode=e,t.strict||!1===r.recoverable?n instanceof Error?t.emit("error",Object.assign(n,r)):t.emit("error",Object.assign(new Error(`${e}: ${n}`),r)):(n instanceof Error&&(r=Object.assign(n,r),n=n.message),t.emit("warn",e,n,r))},ah=Buffer.from([31,139]),ch=Symbol("state"),dh=Symbol("writeEntry"),lh=Symbol("readEntry"),hh=Symbol("nextEntry"),ph=Symbol("processEntry"),fh=Symbol("extendedHeader"),mh=Symbol("globalExtendedHeader"),vh=Symbol("meta"),Eh=Symbol("emitMeta"),Ah=Symbol("buffer"),bh=Symbol("queue"),yh=Symbol("ended"),gh=Symbol("emittedEnd"),Ch=Symbol("emit"),Fh=Symbol("unzip"),wh=Symbol("consumeChunk"),Dh=Symbol("consumeChunkSub"),Bh=Symbol("consumeBody"),Ih=Symbol("consumeMeta"),Rh=Symbol("consumeHeader"),jh=Symbol("consuming"),Sh=Symbol("bufferConcat"),_h=Symbol("maybeEnd"),Uh=Symbol("writing"),Ph=Symbol("aborted"),Oh=Symbol("onDone"),kh=Symbol("sawValidEntry"),xh=Symbol("sawNullBlock"),Th=Symbol("sawEOF"),Lh=Symbol("closeStream"),Nh=()=>!0;class qh extends e{file;strict;maxMetaEntrySize;filter;brotli;writable=!0;readable=!1;[bh]=new Bl;[Ah];[lh];[dh];[ch]="begin";[vh]="";[fh];[mh];[yh]=!1;[Fh];[Ph]=!1;[kh];[xh]=!1;[Th]=!1;[Uh]=!1;[jh]=!1;[gh]=!1;constructor(t={}){super(),this.file=t.file||"",this.on(Oh,()=>{"begin"!==this[ch]&&!1!==this[kh]||this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Oh,t.ondone):this.on(Oh,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||1048576,this.filter="function"==typeof t.filter?t.filter:Nh;const e=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=t.gzip||void 0===t.brotli?!!e&&void 0:t.brotli,this.on("end",()=>this[Lh]()),"function"==typeof t.onwarn&&this.on("warn",t.onwarn),"function"==typeof t.onReadEntry&&this.on("entry",t.onReadEntry)}warn(t,e,n={}){sh(this,t,e,n)}[Rh](t,e){let n;void 0===this[kh]&&(this[kh]=!1);try{n=new ql(t,e,this[fh],this[mh])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(n.nullBlock)this[xh]?(this[Th]=!0,"begin"===this[ch]&&(this[ch]="header"),this[Ch]("eof")):(this[xh]=!0,this[Ch]("nullBlock"));else if(this[xh]=!1,n.cksumValid)if(n.path){const t=n.type;if(/^(Symbolic)?Link$/.test(t)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(/^(Symbolic)?Link$/.test(t)||/^(Global)?ExtendedHeader$/.test(t)||!n.linkpath){const t=this[dh]=new ih(n,this[fh],this[mh]);if(!this[kh])if(t.remain){const e=()=>{t.invalid||(this[kh]=!0)};t.on("end",e)}else this[kh]=!0;t.meta?t.size>this.maxMetaEntrySize?(t.ignore=!0,this[Ch]("ignoredEntry",t),this[ch]="ignore",t.resume()):t.size>0&&(this[vh]="",t.on("data",t=>this[vh]+=t),this[ch]="meta"):(this[fh]=void 0,t.ignore=t.ignore||!this.filter(t.path,t),t.ignore?(this[Ch]("ignoredEntry",t),this[ch]=t.remain?"ignore":"header",t.resume()):(t.remain?this[ch]="body":(this[ch]="header",t.end()),this[lh]?this[bh].push(t):(this[bh].push(t),this[hh]())))}else this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n})}else this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n})}[Lh](){queueMicrotask(()=>this.emit("close"))}[ph](t){let e=!0;if(t)if(Array.isArray(t)){const[e,...n]=t;this.emit(e,...n)}else this[lh]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",()=>this[hh]()),e=!1);else this[lh]=void 0,e=!1;return e}[hh](){do{}while(this[ph](this[bh].shift()));if(!this[bh].length){const t=this[lh];!t||t.flowing||t.size===t.remain?this[Uh]||this.emit("drain"):t.once("drain",()=>this.emit("drain"))}}[Bh](t,e){const n=this[dh];if(!n)throw new Error("attempt to consume body without entry??");const r=n.blockRemain??0,u=r>=t.length&&0===e?t:t.subarray(e,e+r);return n.write(u),n.blockRemain||(this[ch]="header",this[dh]=void 0,n.end()),u.length}[Ih](t,e){const n=this[dh],r=this[Bh](t,e);return!this[dh]&&n&&this[Eh](n),r}[Ch](t,e,n){this[bh].length||this[lh]?this[bh].push([t,e,n]):this.emit(t,e,n)}[Eh](t){switch(this[Ch]("meta",this[vh]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[fh]=eh.parse(this[vh],this[fh],!1);break;case"GlobalExtendedHeader":this[mh]=eh.parse(this[vh],this[mh],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{const t=this[fh]??Object.create(null);this[fh]=t,t.path=this[vh].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{const t=this[fh]||Object.create(null);this[fh]=t,t.linkpath=this[vh].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Ph]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t,e,n){if("function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,"string"==typeof e?e:"utf8")),this[Ph])return n?.(),!1;if((void 0===this[Fh]||void 0===this.brotli&&!1===this[Fh])&&t){if(this[Ah]&&(t=Buffer.concat([this[Ah],t]),this[Ah]=void 0),t.length<ah.length)return this[Ah]=t,n?.(),!0;for(let e=0;void 0===this[Fh]&&e<ah.length;e++)t[e]!==ah[e]&&(this[Fh]=!1);const e=void 0===this.brotli;if(!1===this[Fh]&&e)if(t.length<512){if(!this[yh])return this[Ah]=t,n?.(),!0;this.brotli=!0}else try{new ql(t.subarray(0,512)),this.brotli=!1}catch(t){this.brotli=!0}if(void 0===this[Fh]||!1===this[Fh]&&this.brotli){const e=this[yh];this[yh]=!1,this[Fh]=void 0===this[Fh]?new Cl({}):new Dl({}),this[Fh].on("data",t=>this[wh](t)),this[Fh].on("error",t=>this.abort(t)),this[Fh].on("end",()=>{this[yh]=!0,this[wh]()}),this[Uh]=!0;const r=!!this[Fh][e?"end":"write"](t);return this[Uh]=!1,n?.(),r}}this[Uh]=!0,this[Fh]?this[Fh].write(t):this[wh](t),this[Uh]=!1;const r=!this[bh].length&&(!this[lh]||this[lh].flowing);return r||this[bh].length||this[lh]?.once("drain",()=>this.emit("drain")),n?.(),r}[Sh](t){t&&!this[Ph]&&(this[Ah]=this[Ah]?Buffer.concat([this[Ah],t]):t)}[_h](){if(this[yh]&&!this[gh]&&!this[Ph]&&!this[jh]){this[gh]=!0;const t=this[dh];if(t&&t.blockRemain){const e=this[Ah]?this[Ah].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`,{entry:t}),this[Ah]&&t.write(this[Ah]),t.end()}this[Ch](Oh)}}[wh](t){if(this[jh]&&t)this[Sh](t);else if(t||this[Ah]){if(t){if(this[jh]=!0,this[Ah]){this[Sh](t);const e=this[Ah];this[Ah]=void 0,this[Dh](e)}else this[Dh](t);for(;this[Ah]&&this[Ah]?.length>=512&&!this[Ph]&&!this[Th];){const t=this[Ah];this[Ah]=void 0,this[Dh](t)}this[jh]=!1}}else this[_h]();this[Ah]&&!this[yh]||this[_h]()}[Dh](t){let e=0;const n=t.length;for(;e+512<=n&&!this[Ph]&&!this[Th];)switch(this[ch]){case"begin":case"header":this[Rh](t,e),e+=512;break;case"ignore":case"body":e+=this[Bh](t,e);break;case"meta":e+=this[Ih](t,e);break;default:throw new Error("invalid state: "+this[ch])}e<n&&(this[Ah]?this[Ah]=Buffer.concat([t.subarray(e),this[Ah]]):this[Ah]=t.subarray(e))}end(t,e,n){return"function"==typeof t&&(n=t,e=void 0,t=void 0),"function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,e)),n&&this.once("finish",n),this[Ph]||(this[Fh]?(t&&this[Fh].write(t),this[Fh].end()):(this[yh]=!0,void 0===this.brotli&&(t=t||Buffer.alloc(0)),t&&this.write(t),this[_h]())),this}}const Mh=t=>{let e=t.length-1,n=-1;for(;e>-1&&"/"===t.charAt(e);)n=e,e--;return-1===n?t:t.slice(0,n)},Gh=(t,e)=>{const n=new Map(e.map(t=>[Mh(t),!0])),r=t.filter,u=(t,e="")=>{const r=e||F(t).root||".";let o;if(t===r)o=!1;else{const e=n.get(t);o=void 0!==e?e:u(w(t),r)}return n.set(t,o),o};t.filter=r?(t,e)=>r(t,e)&&u(Mh(t)):t=>u(Mh(t))},zh=Fd(t=>{const e=new qh(t),n=t.file;let r;try{const u=N.statSync(n),o=t.maxReadSize||16777216;if(u.size<o)e.end(N.readFileSync(n));else{let t=0;const i=Buffer.allocUnsafe(o);for(r=N.openSync(n,"r");t<u.size;){const n=N.readSync(r,i,0,o,t);t+=n,e.write(i.subarray(0,n))}e.end()}}finally{if("number"==typeof r)try{N.closeSync(r)}catch(t){}}},(t,e)=>{const n=new qh(t),r=t.maxReadSize||16777216,u=t.file,o=new Promise((t,e)=>{n.on("error",e),n.on("end",t),N.stat(u,(t,o)=>{if(t)e(t);else{const t=new vd(u,{readSize:r,size:o.size});t.on("error",e),t.pipe(n)}})});return o},t=>new qh(t),t=>new qh(t),(t,e)=>{e?.length&&Gh(t,e),t.noResume||(t=>{const e=t.onReadEntry;t.onReadEntry=e?t=>{e(t),t.resume()}:t=>t.resume()})(t)}),$h=(t,e,n)=>(t&=4095,n&&(t=-19&t|384),e&&(256&t&&(t|=64),32&t&&(t|=8),4&t&&(t|=1)),t),{isAbsolute:Wh,parse:Jh}=T,Vh=t=>{let e="",n=Jh(t);for(;Wh(t)||n.root;){const r="/"===t.charAt(0)&&"//?/"!==t.slice(0,4)?"/":n.root;t=t.slice(r.length),e+=r,n=Jh(t)}return[e,t]},Hh=["|","<",">","?",":"],Zh=Hh.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),Yh=new Map(Hh.map((t,e)=>[t,Zh[e]])),Kh=new Map(Zh.map((t,e)=>[t,Hh[e]])),Xh=t=>Hh.reduce((t,e)=>t.split(e).join(Yh.get(e)),t),Qh=(t,e)=>e?(t=oh(t).replace(/^\.(\/|$)/,""),Mh(e)+"/"+t):oh(t),tp=Symbol("process"),ep=Symbol("file"),np=Symbol("directory"),rp=Symbol("symlink"),up=Symbol("hardlink"),op=Symbol("header"),ip=Symbol("read"),sp=Symbol("lstat"),ap=Symbol("onlstat"),cp=Symbol("onread"),dp=Symbol("onreadlink"),lp=Symbol("openfile"),hp=Symbol("onopenfile"),pp=Symbol("close"),fp=Symbol("mode"),mp=Symbol("awaitDrain"),vp=Symbol("ondrain"),Ep=Symbol("prefix");class Ap extends cl{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#h=!1;constructor(t,e={}){const n=Cd(e);super(),this.path=oh(t),this.portable=!!n.portable,this.maxReadSize=n.maxReadSize||16777216,this.linkCache=n.linkCache||new Map,this.statCache=n.statCache||new Map,this.preservePaths=!!n.preservePaths,this.cwd=oh(n.cwd||process.cwd()),this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?oh(n.prefix):void 0,this.onWriteEntry=n.onWriteEntry,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let r=!1;if(!this.preservePaths){const[t,e]=Vh(this.path);t&&"string"==typeof e&&(this.path=e,r=t)}var u;this.win32=!!n.win32||"win32"===process.platform,this.win32&&(this.path=(u=this.path.replace(/\\/g,"/"),Zh.reduce((t,e)=>t.split(e).join(Kh.get(e)),u)),t=t.replace(/\\/g,"/")),this.absolute=oh(n.absolute||C.resolve(this.cwd,t)),""===this.path&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path});const o=this.statCache.get(this.absolute);o?this[ap](o):this[sp]()}warn(t,e,n={}){return sh(this,t,e,n)}emit(t,...e){return"error"===t&&(this.#h=!0),super.emit(t,...e)}[sp](){E.lstat(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[ap](e)})}[ap](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=gp(t),this.emit("stat",t),this[tp]()}[tp](){switch(this.type){case"File":return this[ep]();case"Directory":return this[np]();case"SymbolicLink":return this[rp]();default:return this.end()}}[fp](t){return $h(t,"Directory"===this.type,this.portable)}[Ep](t){return Qh(t,this.prefix)}[op](){if(!this.stat)throw new Error("cannot write header before stat");"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new ql({path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,mode:this[fp](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:"Unsupported"===this.type?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new eh({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());const t=this.header?.block;if(!t)throw new Error("failed to encode header");super.write(t)}[np](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[op](),this.end()}[rp](){E.readlink(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[dp](e)})}[dp](t){this.linkpath=oh(t),this[op](),this.end()}[up](t){if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=oh(C.relative(this.cwd,t)),this.stat.size=0,this[op](),this.end()}[ep](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){const t=`${this.stat.dev}:${this.stat.ino}`,e=this.linkCache.get(t);if(0===e?.indexOf(this.cwd))return this[up](e);this.linkCache.set(t,this.absolute)}if(this[op](),0===this.stat.size)return this.end();this[lp]()}[lp](){E.open(this.absolute,"r",(t,e)=>{if(t)return this.emit("error",t);this[hp](e)})}[hp](t){if(this.fd=t,this.#h)return this[pp]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;const e=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(e),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[ip]()}[ip](){const{fd:t,buf:e,offset:n,length:r,pos:u}=this;if(void 0===t||void 0===e)throw new Error("cannot read file without first opening");E.read(t,e,n,r,u,(t,e)=>{if(t)return this[pp](()=>this.emit("error",t));this[cp](e)})}[pp](t=()=>{}){void 0!==this.fd&&E.close(this.fd,t)}[cp](t){if(t<=0&&this.remain>0){const t=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[pp](()=>this.emit("error",t))}if(t>this.remain){const t=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[pp](()=>this.emit("error",t))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(t===this.remain)for(let e=t;e<this.length&&t<this.blockRemain;e++)this.buf[e+this.offset]=0,t++,this.remain++;const e=0===this.offset&&t===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+t);this.write(e)?this[vp]():this[mp](()=>this[vp]())}[mp](t){this.once("drain",t)}write(t,e,n){if("function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,"string"==typeof e?e:"utf8")),this.blockRemain<t.length){const t=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",t)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t,null,n)}[vp](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[pp](t=>t?this.emit("error",t):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[ip]()}}class bp extends Ap{sync=!0;[sp](){this[ap](E.lstatSync(this.absolute))}[rp](){this[dp](E.readlinkSync(this.absolute))}[lp](){this[hp](E.openSync(this.absolute,"r"))}[ip](){let t=!0;try{const{fd:e,buf:n,offset:r,length:u,pos:o}=this;if(void 0===e||void 0===n)throw new Error("fd and buf must be set in READ method");const i=E.readSync(e,n,r,u,o);this[cp](i),t=!1}finally{if(t)try{this[pp](()=>{})}catch(t){}}}[mp](t){t()}[pp](t=()=>{}){void 0!==this.fd&&E.closeSync(this.fd),t()}}class yp extends cl{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(t,e,n={}){return sh(this,t,e,n)}constructor(t,e={}){const n=Cd(e);super(),this.preservePaths=!!n.preservePaths,this.portable=!!n.portable,this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.onWriteEntry=n.onWriteEntry,this.readEntry=t;const{type:r}=t;if("Unsupported"===r)throw new Error("writing entry that should be ignored");this.type=r,"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.prefix=n.prefix,this.path=oh(t.path),this.mode=void 0!==t.mode?this[fp](t.mode):void 0,this.uid=this.portable?void 0:t.uid,this.gid=this.portable?void 0:t.gid,this.uname=this.portable?void 0:t.uname,this.gname=this.portable?void 0:t.gname,this.size=t.size,this.mtime=this.noMtime?void 0:n.mtime||t.mtime,this.atime=this.portable?void 0:t.atime,this.ctime=this.portable?void 0:t.ctime,this.linkpath=void 0!==t.linkpath?oh(t.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let u=!1;if(!this.preservePaths){const[t,e]=Vh(this.path);t&&"string"==typeof e&&(this.path=e,u=t)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.onWriteEntry?.(this),this.header=new ql({path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),u&&this.warn("TAR_ENTRY_INFO",`stripping ${u} from absolute path`,{entry:this,path:u+this.path}),this.header.encode()&&!this.noPax&&super.write(new eh({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());const o=this.header?.block;if(!o)throw new Error("failed to encode header");super.write(o),t.pipe(this)}[Ep](t){return Qh(t,this.prefix)}[fp](t){return $h(t,"Directory"===this.type,this.portable)}write(t,e,n){"function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,"string"==typeof e?e:"utf8"));const r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t,n)}end(t,e,n){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),"function"==typeof t&&(n=t,e=void 0,t=void 0),"function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,e??"utf8")),n&&this.once("finish",n),t?super.end(t,n):super.end(n),this}}const gp=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";class Cp{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(t,e){this.path=t||"./",this.absolute=e}}const Fp=Buffer.alloc(1024),wp=Symbol("onStat"),Dp=Symbol("ended"),Bp=Symbol("queue"),Ip=Symbol("current"),Rp=Symbol("process"),jp=Symbol("processing"),Sp=Symbol("processJob"),_p=Symbol("jobs"),Up=Symbol("jobDone"),Pp=Symbol("addFSEntry"),Op=Symbol("addTarEntry"),kp=Symbol("stat"),xp=Symbol("readdir"),Tp=Symbol("onreaddir"),Lp=Symbol("pipe"),Np=Symbol("entry"),qp=Symbol("entryOpt"),Mp=Symbol("writeEntryClass"),Gp=Symbol("write"),zp=Symbol("ondrain");class $p extends cl{opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[Mp];onWriteEntry;[Bp];[_p]=0;[jp]=!1;[Dp]=!1;constructor(t={}){if(super(),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=oh(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this.onWriteEntry=t.onWriteEntry,this[Mp]=Ap,"function"==typeof t.onwarn&&this.on("warn",t.onwarn),this.portable=!!t.portable,t.gzip||t.brotli){if(t.gzip&&t.brotli)throw new TypeError("gzip and brotli are mutually exclusive");if(t.gzip&&("object"!=typeof t.gzip&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new gl(t.gzip)),t.brotli&&("object"!=typeof t.brotli&&(t.brotli={}),this.zip=new wl(t.brotli)),!this.zip)throw new Error("impossible");const e=this.zip;e.on("data",t=>super.write(t)),e.on("end",()=>super.end()),e.on("drain",()=>this[zp]()),this.on("resume",()=>e.resume())}else this.on("drain",this[zp]);this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,t.mtime&&(this.mtime=t.mtime),this.filter="function"==typeof t.filter?t.filter:()=>!0,this[Bp]=new Bl,this[_p]=0,this.jobs=Number(t.jobs)||4,this[jp]=!1,this[Dp]=!1}[Gp](t){return super.write(t)}add(t){return this.write(t),this}end(t,e,n){return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t&&this.add(t),this[Dp]=!0,this[Rp](),n&&n(),this}write(t){if(this[Dp])throw new Error("write after end");return t instanceof ih?this[Op](t):this[Pp](t),this.flowing}[Op](t){const e=oh(C.resolve(this.cwd,t.path));if(this.filter(t.path,t)){const n=new Cp(t.path,e);n.entry=new yp(t,this[qp](n)),n.entry.on("end",()=>this[Up](n)),this[_p]+=1,this[Bp].push(n)}else t.resume();this[Rp]()}[Pp](t){const e=oh(C.resolve(this.cwd,t));this[Bp].push(new Cp(t,e)),this[Rp]()}[kp](t){t.pending=!0,this[_p]+=1;const e=this.follow?"stat":"lstat";E[e](t.absolute,(e,n)=>{t.pending=!1,this[_p]-=1,e?this.emit("error",e):this[wp](t,n)})}[wp](t,e){this.statCache.set(t.absolute,e),t.stat=e,this.filter(t.path,e)||(t.ignore=!0),this[Rp]()}[xp](t){t.pending=!0,this[_p]+=1,E.readdir(t.absolute,(e,n)=>{if(t.pending=!1,this[_p]-=1,e)return this.emit("error",e);this[Tp](t,n)})}[Tp](t,e){this.readdirCache.set(t.absolute,e),t.readdir=e,this[Rp]()}[Rp](){if(!this[jp]){this[jp]=!0;for(let t=this[Bp].head;t&&this[_p]<this.jobs;t=t.next)if(this[Sp](t.value),t.value.ignore){const e=t.next;this[Bp].removeNode(t),t.next=e}this[jp]=!1,this[Dp]&&!this[Bp].length&&0===this[_p]&&(this.zip?this.zip.end(Fp):(super.write(Fp),super.end()))}}get[Ip](){return this[Bp]&&this[Bp].head&&this[Bp].head.value}[Up](t){this[Bp].shift(),this[_p]-=1,this[Rp]()}[Sp](t){if(!t.pending)if(t.entry)t!==this[Ip]||t.piped||this[Lp](t);else{if(!t.stat){const e=this.statCache.get(t.absolute);e?this[wp](t,e):this[kp](t)}if(t.stat&&!t.ignore){if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){const e=this.readdirCache.get(t.absolute);if(e?this[Tp](t,e):this[xp](t),!t.readdir)return}t.entry=this[Np](t),t.entry?t!==this[Ip]||t.piped||this[Lp](t):t.ignore=!0}}}[qp](t){return{onwarn:(t,e,n)=>this.warn(t,e,n),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[Np](t){this[_p]+=1;try{return new this[Mp](t.path,this[qp](t)).on("end",()=>this[Up](t)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[zp](){this[Ip]&&this[Ip].entry&&this[Ip].entry.resume()}[Lp](t){t.piped=!0,t.readdir&&t.readdir.forEach(e=>{const n=t.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Pp](r+e)});const e=t.entry,n=this.zip;if(!e)throw new Error("cannot pipe without source");n?e.on("data",t=>{n.write(t)||e.pause()}):e.on("data",t=>{super.write(t)||e.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(t,e,n={}){sh(this,t,e,n)}}class Wp extends $p{sync=!0;constructor(t){super(t),this[Mp]=bp}pause(){}resume(){}[kp](t){const e=this.follow?"statSync":"lstatSync";this[wp](t,E[e](t.absolute))}[xp](t){this[Tp](t,E.readdirSync(t.absolute))}[Lp](t){const e=t.entry,n=this.zip;if(t.readdir&&t.readdir.forEach(e=>{const n=t.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Pp](r+e)}),!e)throw new Error("Cannot pipe without source");n?e.on("data",t=>{n.write(t)}):e.on("data",t=>{super[Gp](t)})}}const Jp=(t,e)=>{e.forEach(e=>{"@"===e.charAt(0)?zh({file:O.resolve(t.cwd,e.slice(1)),sync:!0,noResume:!0,onReadEntry:e=>t.add(e)}):t.add(e)}),t.end()},Vp=async(t,e)=>{for(let n=0;n<e.length;n++){const r=String(e[n]);"@"===r.charAt(0)?await zh({file:O.resolve(String(t.cwd),r.slice(1)),noResume:!0,onReadEntry:e=>{t.add(e)}}):t.add(r)}t.end()},Hp=Fd((t,e)=>{const n=new Wp(t),r=new bd(t.file,{mode:t.mode||438});n.pipe(r),Jp(n,e)},(t,e)=>{const n=new $p(t),r=new Ad(t.file,{mode:t.mode||438});n.pipe(r);const u=new Promise((t,e)=>{r.on("error",e),r.on("close",t),n.on("error",e)});return Vp(n,e),u},(t,e)=>{const n=new Wp(t);return Jp(n,e),n},(t,e)=>{const n=new $p(t);return Vp(n,e),n},(t,e)=>{if(!e?.length)throw new TypeError("no paths specified to add to archive")}),Zp="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:Yp,O_TRUNC:Kp,O_WRONLY:Xp}=E.constants,Qp=Number(process.env.__FAKE_FS_O_FILENAME__)||E.constants.UV_FS_O_FILEMAP||0,tf=Qp|Kp|Yp|Xp,ef=Zp&&!!Qp?t=>t<524288?tf:"w":()=>"w",nf=(t,e,n)=>{try{return N.lchownSync(t,e,n)}catch(t){if("ENOENT"!==t?.code)throw t}},rf=(t,e,n,r)=>{N.lchown(t,e,n,t=>{r(t&&"ENOENT"!==t?.code?t:null)})},uf=(t,e,n,r,u)=>{if(e.isDirectory())of(O.resolve(t,e.name),n,r,o=>{if(o)return u(o);const i=O.resolve(t,e.name);rf(i,n,r,u)});else{const o=O.resolve(t,e.name);rf(o,n,r,u)}},of=(t,e,n,r)=>{N.readdir(t,{withFileTypes:!0},(u,o)=>{if(u){if("ENOENT"===u.code)return r();if("ENOTDIR"!==u.code&&"ENOTSUP"!==u.code)return r(u)}if(u||!o.length)return rf(t,e,n,r);let i=o.length,s=null;const a=u=>{if(!s)return u?r(s=u):0===--i?rf(t,e,n,r):void 0};for(const r of o)uf(t,r,e,n,a)})},sf=(t,e,n,r)=>{e.isDirectory()&&af(O.resolve(t,e.name),n,r),nf(O.resolve(t,e.name),n,r)},af=(t,e,n)=>{let r;try{r=N.readdirSync(t,{withFileTypes:!0})}catch(r){const u=r;if("ENOENT"===u?.code)return;if("ENOTDIR"===u?.code||"ENOTSUP"===u?.code)return nf(t,e,n);throw u}for(const u of r)sf(t,u,e,n);return nf(t,e,n)},cf=t=>{if(t)if("object"==typeof t)t={mode:511,...t};else if("number"==typeof t)t={mode:t};else{if("string"!=typeof t)throw new TypeError("invalid options argument");t={mode:parseInt(t,8)}}else t={mode:511};const e=t,n=t.fs||{};return t.mkdir=t.mkdir||n.mkdir||A,t.mkdirAsync=t.mkdirAsync?t.mkdirAsync:async(t,n)=>new Promise((r,u)=>e.mkdir(t,n,(t,e)=>t?u(t):r(e))),t.stat=t.stat||n.stat||b,t.statAsync=t.statAsync?t.statAsync:async t=>new Promise((n,r)=>e.stat(t,(t,e)=>t?r(t):n(e))),t.statSync=t.statSync||n.statSync||y,t.mkdirSync=t.mkdirSync||n.mkdirSync||g,e},df=(t,e,n)=>{const r=w(t),u={...cf(e),recursive:!1};if(r===t)try{return u.mkdirSync(t,u)}catch(t){if(t&&"EISDIR"!==t.code)throw t;return}try{return u.mkdirSync(t,u),n||t}catch(e){const o=e;if(o&&"ENOENT"===o.code)return df(t,u,df(r,u,n));if(o&&"EEXIST"!==o.code&&o&&"EROFS"!==o.code)throw e;try{if(!u.statSync(t).isDirectory())throw e}catch(t){throw e}}},lf=Object.assign(async(t,e,n)=>{const r=cf(e);r.recursive=!1;const u=w(t);return u===t?r.mkdirAsync(t,r).catch(t=>{if(t&&"EISDIR"!==t.code)throw t}):r.mkdirAsync(t,r).then(()=>n||t,async e=>{const o=e;if(o&&"ENOENT"===o.code)return lf(u,r).then(e=>lf(t,r,e));if(o&&"EEXIST"!==o.code&&"EROFS"!==o.code)throw e;return r.statAsync(t).then(t=>{if(t.isDirectory())return n;throw e},()=>{throw e})})},{sync:df}),hf=async(t,e,n)=>{if(n!==e)return t.statAsync(e).then(t=>t.isDirectory()?n:void 0,n=>n&&"ENOENT"===n.code?hf(t,w(e),e):void 0)},pf=(t,e,n)=>{if(n!==e)try{return t.statSync(e).isDirectory()?n:void 0}catch(n){return n&&"ENOENT"===n.code?pf(t,w(e),e):void 0}},ff=(t,e)=>{const n=cf(e);n.recursive=!0;if(w(t)===t)return n.mkdirSync(t,n);const r=pf(n,t);try{return n.mkdirSync(t,n),r}catch(e){if(e&&"ENOENT"===e.code)return df(t,n);throw e}},mf=Object.assign(async(t,e)=>{const n={...cf(e),recursive:!0};return w(t)===t?await n.mkdirAsync(t,n):hf(n,t).then(e=>n.mkdirAsync(t,n).then(t=>e||t).catch(e=>{if(e&&"ENOENT"===e.code)return lf(t,n);throw e}))},{sync:ff}),vf=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,Ef=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=D(t),"win32"===vf){const e=/[*|"<>?:]/,{root:n}=F(t);if(e.test(t.substring(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t},Af=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),bf=+Af[0]>10||10===+Af[0]&&+Af[1]>=12,yf=bf?t=>cf(t).mkdirSync===g:()=>!1,gf=Object.assign(bf?t=>cf(t).mkdir===A:()=>!1,{sync:yf}),Cf=(t,e)=>{t=Ef(t);const n=cf(e);return yf(n)?ff(t,n):df(t,n)},Ff=Object.assign(async(t,e)=>{t=Ef(t);const n=cf(e);return gf(n)?mf(t,n):lf(t,n)},{mkdirpSync:Cf,mkdirpNative:mf,mkdirpNativeSync:ff,mkdirpManual:lf,mkdirpManualSync:df,sync:Cf,native:mf,nativeSync:ff,manual:lf,manualSync:df,useNative:gf,useNativeSync:yf});class wf extends Error{path;code;syscall="chdir";constructor(t,e){super(`${e}: Cannot cd into '${t}'`),this.path=t,this.code=e}get name(){return"CwdError"}}class Df extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(t,e){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=t,this.path=e}get name(){return"SymlinkError"}}const Bf=(t,e)=>t.get(oh(e)),If=(t,e,n)=>t.set(oh(e),n),Rf=(t,e,n)=>{t=oh(t);const r=e.umask??18,u=448|e.mode,o=0!==(u&r),i=e.uid,s=e.gid,a="number"==typeof i&&"number"==typeof s&&(i!==e.processUid||s!==e.processGid),c=e.preserve,d=e.unlink,l=e.cache,h=oh(e.cwd),p=(e,r)=>{e?n(e):(If(l,t,!0),r&&a?of(r,i,s,t=>p(t)):o?E.chmod(t,u,n):n())};if(l&&!0===Bf(l,t))return p();if(t===h)return((t,e)=>{E.stat(t,(n,r)=>{!n&&r.isDirectory()||(n=new wf(t,n?.code||"ENOTDIR")),e(n)})})(t,p);if(c)return Ff(t,{mode:u}).then(t=>p(null,t??void 0),p);const f=oh(O.relative(h,t)).split("/");jf(h,f,u,l,d,h,void 0,p)},jf=(t,e,n,r,u,o,i,s)=>{if(!e.length)return s(null,i);const a=e.shift(),c=oh(O.resolve(t+"/"+a));if(Bf(r,c))return jf(c,e,n,r,u,o,i,s);E.mkdir(c,n,Sf(c,e,n,r,u,o,i,s))},Sf=(t,e,n,r,u,o,i,s)=>a=>{a?E.lstat(t,(c,d)=>{if(c)c.path=c.path&&oh(c.path),s(c);else if(d.isDirectory())jf(t,e,n,r,u,o,i,s);else if(u)E.unlink(t,a=>{if(a)return s(a);E.mkdir(t,n,Sf(t,e,n,r,u,o,i,s))});else{if(d.isSymbolicLink())return s(new Df(t,t+"/"+e.join("/")));s(a)}}):jf(t,e,n,r,u,o,i=i||t,s)},_f=(t,e)=>{t=oh(t);const n=e.umask??18,r=448|e.mode,u=0!==(r&n),o=e.uid,i=e.gid,s="number"==typeof o&&"number"==typeof i&&(o!==e.processUid||i!==e.processGid),a=e.preserve,c=e.unlink,d=e.cache,l=oh(e.cwd),h=e=>{If(d,t,!0),e&&s&&af(e,o,i),u&&E.chmodSync(t,r)};if(d&&!0===Bf(d,t))return h();if(t===l)return(t=>{let e,n=!1;try{n=E.statSync(t).isDirectory()}catch(t){e=t?.code}finally{if(!n)throw new wf(t,e??"ENOTDIR")}})(l),h();if(a)return h(Cf(t,r)??void 0);const p=oh(O.relative(l,t)).split("/");let f;for(let t=p.shift(),e=l;t&&(e+="/"+t);t=p.shift())if(e=oh(O.resolve(e)),!Bf(d,e))try{E.mkdirSync(e,r),f=f||e,If(d,e,!0)}catch(t){const n=E.lstatSync(e);if(n.isDirectory()){If(d,e,!0);continue}if(c){E.unlinkSync(e),E.mkdirSync(e,r),f=f||e,If(d,e,!0);continue}if(n.isSymbolicLink())return new Df(e,e+"/"+p.join("/"))}return h(f)},Uf=Object.create(null),{hasOwnProperty:Pf}=Object.prototype,Of=t=>(Pf.call(Uf,t)||(Uf[t]=t.normalize("NFD")),Uf[t]),kf="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform);class xf{#p=new Map;#f=new Map;#m=new Set;reserve(t,e){t=kf?["win32 parallelization disabled"]:t.map(t=>Mh(L(Of(t))).toLowerCase());const n=new Set(t.map(t=>(t=>{const e=t.split("/").slice(0,-1).reduce((t,e)=>{const n=t[t.length-1];return void 0!==n&&(e=L(n,e)),t.push(e||"/"),t},[]);return e})(t)).reduce((t,e)=>t.concat(e)));this.#f.set(e,{dirs:n,paths:t});for(const n of t){const t=this.#p.get(n);t?t.push(e):this.#p.set(n,[e])}for(const t of n){const n=this.#p.get(t);if(n){const t=n[n.length-1];t instanceof Set?t.add(e):n.push(new Set([e]))}else this.#p.set(t,[new Set([e])])}return this.#v(e)}#E(t){const e=this.#f.get(t);if(!e)throw new Error("function does not have any path reservations");return{paths:e.paths.map(t=>this.#p.get(t)),dirs:[...e.dirs].map(t=>this.#p.get(t))}}check(t){const{paths:e,dirs:n}=this.#E(t);return e.every(e=>e&&e[0]===t)&&n.every(e=>e&&e[0]instanceof Set&&e[0].has(t))}#v(t){return!(this.#m.has(t)||!this.check(t))&&(this.#m.add(t),t(()=>this.#A(t)),!0)}#A(t){if(!this.#m.has(t))return!1;const e=this.#f.get(t);if(!e)throw new Error("invalid reservation");const{paths:n,dirs:r}=e,u=new Set;for(const e of n){const n=this.#p.get(e);if(!n||n?.[0]!==t)continue;const r=n[1];if(r)if(n.shift(),"function"==typeof r)u.add(r);else for(const t of r)u.add(t);else this.#p.delete(e)}for(const e of r){const n=this.#p.get(e),r=n?.[0];if(n&&r instanceof Set)if(1!==r.size||1!==n.length)if(1===r.size){n.shift();const t=n[0];"function"==typeof t&&u.add(t)}else r.delete(t);else this.#p.delete(e)}return this.#m.delete(t),u.forEach(t=>this.#v(t)),!0}}const Tf=Symbol("onEntry"),Lf=Symbol("checkFs"),Nf=Symbol("checkFs2"),qf=Symbol("pruneCache"),Mf=Symbol("isReusable"),Gf=Symbol("makeFs"),zf=Symbol("file"),$f=Symbol("directory"),Wf=Symbol("link"),Jf=Symbol("symlink"),Vf=Symbol("hardlink"),Hf=Symbol("unsupported"),Zf=Symbol("checkPath"),Yf=Symbol("mkdir"),Kf=Symbol("onError"),Xf=Symbol("pending"),Qf=Symbol("pend"),tm=Symbol("unpend"),em=Symbol("ended"),nm=Symbol("maybeClose"),rm=Symbol("skip"),um=Symbol("doChown"),om=Symbol("uid"),im=Symbol("gid"),sm=Symbol("checkedCwd"),am="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),cm=(t,e,n)=>void 0!==t&&t===t>>>0?t:void 0!==e&&e===e>>>0?e:n,dm=t=>Mh(oh(Of(t))).toLowerCase();class lm extends qh{[em]=!1;[sm]=!1;[Xf]=0;reservations=new xf;transform;writable=!0;readable=!1;dirCache;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(t={}){if(t.ondone=()=>{this[em]=!0,this[nm]()},super(t),this.transform=t.transform,this.dirCache=t.dirCache||new Map,this.chmod=!!t.chmod,"number"==typeof t.uid||"number"==typeof t.gid){if("number"!=typeof t.uid||"number"!=typeof t.gid)throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;void 0===t.preserveOwner&&"number"!=typeof t.uid?this.preserveOwner=!(!process.getuid||0!==process.getuid()):this.preserveOwner=!!t.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1024,this.forceChown=!0===t.forceChown,this.win32=!!t.win32||am,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=oh(O.resolve(t.cwd||process.cwd())),this.strip=Number(t.strip)||0,this.processUmask=this.chmod?"number"==typeof t.processUmask?t.processUmask:process.umask():0,this.umask="number"==typeof t.umask?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",t=>this[Tf](t))}warn(t,e,n={}){return"TAR_BAD_ARCHIVE"!==t&&"TAR_ABORT"!==t||(n.recoverable=!1),super.warn(t,e,n)}[nm](){this[em]&&0===this[Xf]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Zf](t){const e=oh(t.path),n=e.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===t.type){const e=oh(String(t.linkpath)).split("/");if(!(e.length>=this.strip))return!1;t.linkpath=e.slice(this.strip).join("/")}n.splice(0,this.strip),t.path=n.join("/")}if(isFinite(this.maxDepth)&&n.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:e,depth:n.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(n.includes("..")||am&&/^[a-z]:\.\.$/i.test(n[0]??""))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:e}),!1;const[r,u]=Vh(e);r&&(t.path=String(u),this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:t,path:e}))}if(O.isAbsolute(t.path)?t.absolute=oh(O.resolve(t.path)):t.absolute=oh(O.resolve(this.cwd,t.path)),!this.preservePaths&&"string"==typeof t.absolute&&0!==t.absolute.indexOf(this.cwd+"/")&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:oh(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&"Directory"!==t.type&&"GNUDumpDir"!==t.type)return!1;if(this.win32){const{root:e}=O.win32.parse(String(t.absolute));t.absolute=e+Xh(String(t.absolute).slice(e.length));const{root:n}=O.win32.parse(t.path);t.path=n+Xh(t.path.slice(n.length))}return!0}[Tf](t){if(!this[Zf](t))return t.resume();switch(M.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=448|t.mode);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Lf](t);default:return this[Hf](t)}}[Kf](t,e){"CwdError"===t.name?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:e}),this[tm](),e.resume())}[Yf](t,e,n){Rf(oh(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:e},n)}[um](t){return this.forceChown||this.preserveOwner&&("number"==typeof t.uid&&t.uid!==this.processUid||"number"==typeof t.gid&&t.gid!==this.processGid)||"number"==typeof this.uid&&this.uid!==this.processUid||"number"==typeof this.gid&&this.gid!==this.processGid}[om](t){return cm(this.uid,t.uid,this.processUid)}[im](t){return cm(this.gid,t.gid,this.processGid)}[zf](t,e){const n="number"==typeof t.mode?4095&t.mode:this.fmode,r=new Ad(String(t.absolute),{flags:ef(t.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&N.close(r.fd,()=>{}),r.write=()=>!0,this[Kf](n,t),e()});let u=1;const o=n=>{if(n)return r.fd&&N.close(r.fd,()=>{}),this[Kf](n,t),void e();0===--u&&void 0!==r.fd&&N.close(r.fd,n=>{n?this[Kf](n,t):this[tm](),e()})};r.on("finish",()=>{const e=String(t.absolute),n=r.fd;if("number"==typeof n&&t.mtime&&!this.noMtime){u++;const r=t.atime||new Date,i=t.mtime;N.futimes(n,r,i,t=>t?N.utimes(e,r,i,e=>o(e&&t)):o())}if("number"==typeof n&&this[um](t)){u++;const r=this[om](t),i=this[im](t);"number"==typeof r&&"number"==typeof i&&N.fchown(n,r,i,t=>t?N.chown(e,r,i,e=>o(e&&t)):o())}o()});const i=this.transform&&this.transform(t)||t;i!==t&&(i.on("error",n=>{this[Kf](n,t),e()}),t.pipe(i)),i.pipe(r)}[$f](t,e){const n="number"==typeof t.mode?4095&t.mode:this.dmode;this[Yf](String(t.absolute),n,n=>{if(n)return this[Kf](n,t),void e();let r=1;const u=()=>{0===--r&&(e(),this[tm](),t.resume())};t.mtime&&!this.noMtime&&(r++,N.utimes(String(t.absolute),t.atime||new Date,t.mtime,u)),this[um](t)&&(r++,N.chown(String(t.absolute),Number(this[om](t)),Number(this[im](t)),u)),u()})}[Hf](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[Jf](t,e){this[Wf](t,String(t.linkpath),"symlink",e)}[Vf](t,e){const n=oh(O.resolve(this.cwd,String(t.linkpath)));this[Wf](t,n,"link",e)}[Qf](){this[Xf]++}[tm](){this[Xf]--,this[nm]()}[rm](t){this[tm](),t.resume()}[Mf](t,e){return"File"===t.type&&!this.unlink&&e.isFile()&&e.nlink<=1&&!am}[Lf](t){this[Qf]();const e=[t.path];t.linkpath&&e.push(t.linkpath),this.reservations.reserve(e,e=>this[Nf](t,e))}[qf](t){"SymbolicLink"===t.type?(t=>{for(const e of t.keys())t.delete(e)})(this.dirCache):"Directory"!==t.type&&((t,e)=>{e=dm(e);for(const n of t.keys()){const r=dm(n);r!==e&&0!==r.indexOf(e+"/")||t.delete(n)}})(this.dirCache,String(t.absolute))}[Nf](t,e){this[qf](t);const n=n=>{this[qf](t),e(n)},r=()=>{this[Yf](this.cwd,this.dmode,e=>{if(e)return this[Kf](e,t),void n();this[sm]=!0,u()})},u=()=>{if(t.absolute!==this.cwd){const e=oh(O.dirname(String(t.absolute)));if(e!==this.cwd)return this[Yf](e,this.dmode,e=>{if(e)return this[Kf](e,t),void n();o()})}o()},o=()=>{N.lstat(String(t.absolute),(e,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(t.mtime??r.mtime)))return this[rm](t),void n();if(e||this[Mf](t,r))return this[Gf](null,t,n);if(r.isDirectory()){if("Directory"===t.type){const e=e=>this[Gf](e??null,t,n);return this.chmod&&t.mode&&(4095&r.mode)!==t.mode?N.chmod(String(t.absolute),Number(t.mode),e):e()}if(t.absolute!==this.cwd)return N.rmdir(String(t.absolute),e=>this[Gf](e??null,t,n))}if(t.absolute===this.cwd)return this[Gf](null,t,n);((t,e)=>{if(!am)return N.unlink(t,e);const n=t+".DELETE."+G(16).toString("hex");N.rename(t,n,t=>{if(t)return e(t);N.unlink(n,e)})})(String(t.absolute),e=>this[Gf](e??null,t,n))})};this[sm]?u():r()}[Gf](t,e,n){if(t)return this[Kf](t,e),void n();switch(e.type){case"File":case"OldFile":case"ContiguousFile":return this[zf](e,n);case"Link":return this[Vf](e,n);case"SymbolicLink":return this[Jf](e,n);case"Directory":case"GNUDumpDir":return this[$f](e,n)}}[Wf](t,e,n,r){N[n](e,String(t.absolute),e=>{e?this[Kf](e,t):(this[tm](),t.resume()),r()})}}const hm=t=>{try{return[null,t()]}catch(t){return[t,null]}};class pm extends lm{sync=!0;[Gf](t,e){return super[Gf](t,e,()=>{})}[Lf](t){if(this[qf](t),!this[sm]){const e=this[Yf](this.cwd,this.dmode);if(e)return this[Kf](e,t);this[sm]=!0}if(t.absolute!==this.cwd){const e=oh(O.dirname(String(t.absolute)));if(e!==this.cwd){const n=this[Yf](e,this.dmode);if(n)return this[Kf](n,t)}}const[e,n]=hm(()=>N.lstatSync(String(t.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(t.mtime??n.mtime)))return this[rm](t);if(e||this[Mf](t,n))return this[Gf](null,t);if(n.isDirectory()){if("Directory"===t.type){const e=this.chmod&&t.mode&&(4095&n.mode)!==t.mode,[r]=e?hm(()=>{N.chmodSync(String(t.absolute),Number(t.mode))}):[];return this[Gf](r,t)}const[e]=hm(()=>N.rmdirSync(String(t.absolute)));this[Gf](e,t)}const[r]=t.absolute===this.cwd?[]:hm(()=>(t=>{if(!am)return N.unlinkSync(t);const e=t+".DELETE."+G(16).toString("hex");N.renameSync(t,e),N.unlinkSync(e)})(String(t.absolute)));this[Gf](r,t)}[zf](t,e){const n="number"==typeof t.mode?4095&t.mode:this.fmode,r=n=>{let r;try{N.closeSync(u)}catch(t){r=t}(n||r)&&this[Kf](n||r,t),e()};let u;try{u=N.openSync(String(t.absolute),ef(t.size),n)}catch(t){return r(t)}const o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",e=>this[Kf](e,t)),t.pipe(o)),o.on("data",t=>{try{N.writeSync(u,t,0,t.length)}catch(t){r(t)}}),o.on("end",()=>{let e=null;if(t.mtime&&!this.noMtime){const n=t.atime||new Date,r=t.mtime;try{N.futimesSync(u,n,r)}catch(u){try{N.utimesSync(String(t.absolute),n,r)}catch(t){e=u}}}if(this[um](t)){const n=this[om](t),r=this[im](t);try{N.fchownSync(u,Number(n),Number(r))}catch(u){try{N.chownSync(String(t.absolute),Number(n),Number(r))}catch(t){e=e||u}}}r(e)})}[$f](t,e){const n="number"==typeof t.mode?4095&t.mode:this.dmode,r=this[Yf](String(t.absolute),n);if(r)return this[Kf](r,t),void e();if(t.mtime&&!this.noMtime)try{N.utimesSync(String(t.absolute),t.atime||new Date,t.mtime)}catch(r){}if(this[um](t))try{N.chownSync(String(t.absolute),Number(this[om](t)),Number(this[im](t)))}catch(r){}e(),t.resume()}[Yf](t,e){try{return _f(oh(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:e})}catch(t){return t}}[Wf](t,e,n,r){const u=`${n}Sync`;try{N[u](e,String(t.absolute)),r(),t.resume()}catch(e){return this[Kf](e,t)}}}const fm=Fd(t=>{const e=new pm(t),n=t.file,r=N.statSync(n),u=t.maxReadSize||16777216;new Ed(n,{readSize:u,size:r.size}).pipe(e)},(t,e)=>{const n=new lm(t),r=t.maxReadSize||16777216,u=t.file,o=new Promise((t,e)=>{n.on("error",e),n.on("close",t),N.stat(u,(t,o)=>{if(t)e(t);else{const t=new vd(u,{readSize:r,size:o.size});t.on("error",e),t.pipe(n)}})});return o},t=>new pm(t),t=>new lm(t),(t,e)=>{e?.length&&Gh(t,e)}),mm=(t,e,n,r,u)=>{const o=new bd(t.file,{fd:r,start:n});e.pipe(o),vm(e,u)},vm=(t,e)=>{e.forEach(e=>{"@"===e.charAt(0)?zh({file:O.resolve(t.cwd,e.slice(1)),sync:!0,noResume:!0,onReadEntry:e=>t.add(e)}):t.add(e)}),t.end()},Em=async(t,e)=>{for(let n=0;n<e.length;n++){const r=String(e[n]);"@"===r.charAt(0)?await zh({file:O.resolve(String(t.cwd),r.slice(1)),noResume:!0,onReadEntry:e=>t.add(e)}):t.add(r)}t.end()},Am=Fd((t,e)=>{const n=new Wp(t);let r,u,o=!0;try{try{r=N.openSync(t.file,"r+")}catch(e){if("ENOENT"!==e?.code)throw e;r=N.openSync(t.file,"w+")}const i=N.fstatSync(r),s=Buffer.alloc(512);t:for(u=0;u<i.size;u+=512){for(let t=0,e=0;t<512;t+=e){if(e=N.readSync(r,s,t,s.length-t,u+t),0===u&&31===s[0]&&139===s[1])throw new Error("cannot append to compressed archives");if(!e)break t}const e=new ql(s);if(!e.cksumValid)break;const n=512*Math.ceil((e.size||0)/512);if(u+n+512>i.size)break;u+=n,t.mtimeCache&&e.mtime&&t.mtimeCache.set(String(e.path),e.mtime)}o=!1,mm(t,n,u,r,e)}finally{if(o)try{N.closeSync(r)}catch(t){}}},(t,e)=>{e=Array.from(e);const n=new $p(t),r=new Promise((r,u)=>{n.on("error",u);let o="r+";const i=(s,a)=>s&&"ENOENT"===s.code&&"r+"===o?(o="w+",N.open(t.file,o,i)):s||!a?u(s):void N.fstat(a,(o,i)=>{if(o)return N.close(a,()=>u(o));((e,n,r)=>{const u=(t,n)=>{t?N.close(e,e=>r(t)):r(null,n)};let o=0;if(0===n)return u(null,0);let i=0;const s=Buffer.alloc(512),a=(r,c)=>{if(r||void 0===c)return u(r);if(i+=c,i<512&&c)return N.read(e,s,i,s.length-i,o+i,a);if(0===o&&31===s[0]&&139===s[1])return u(new Error("cannot append to compressed archives"));if(i<512)return u(null,o);const d=new ql(s);if(!d.cksumValid)return u(null,o);const l=512*Math.ceil((d.size??0)/512);return o+l+512>n?u(null,o):(o+=l+512,o>=n?u(null,o):(t.mtimeCache&&d.mtime&&t.mtimeCache.set(String(d.path),d.mtime),i=0,void N.read(e,s,0,512,o,a)))};N.read(e,s,0,512,o,a)})(a,i.size,(o,i)=>{if(o)return u(o);const s=new Ad(t.file,{fd:a,start:i});n.pipe(s),s.on("error",u),s.on("close",r),Em(n,e)})});N.open(t.file,o,i)});return r},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(t,e)=>{if(!t.file)throw new TypeError("file is required");if(t.gzip||t.brotli||t.file.endsWith(".br")||t.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e?.length)throw new TypeError("no paths specified to add/replace")});Fd(Am.syncFile,Am.asyncFile,Am.syncNoFile,Am.asyncNoFile,(t,e=[])=>{Am.validate?.(t,e),bm(t)});const bm=t=>{const e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(n,r)=>e(n,r)&&!((t.mtimeCache?.get(n)??r.mtime??0)>(r.mtime??0)):(e,n)=>!((t.mtimeCache?.get(e)??n.mtime??0)>(n.mtime??0))};function ym(t){return Array.isArray(t)?t:[t]}const gm=/^\s+$/,Cm=/(?:[^\\]|^)\\$/,Fm=/^\\!/,wm=/^\\#/,Dm=/\r?\n/g,Bm=/^\.*\/|^\.+$/;let Im="node-ignore";"undefined"!=typeof Symbol&&(Im=Symbol.for("node-ignore"));const Rm=Im,jm=/([0-z])-([0-z])/g,Sm=()=>!1,_m=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,n)=>e+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{const{length:n}=e;return e.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,n)=>e+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,n)=>e+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,n,r,u)=>"\\"===e?`\\[${n}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(r)}${u}`:"]"===u&&r.length%2==0?`[${(t=>t.replace(jm,(t,e,n)=>e.charCodeAt(0)<=n.charCodeAt(0)?t:""))(n)}${r}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Um=Object.create(null),Pm=t=>"string"==typeof t;class Om{constructor(t,e,n,r){this.origin=t,this.pattern=e,this.negative=n,this.regex=r}}const km=(t,e)=>{const n=t;let r=!1;0===t.indexOf("!")&&(r=!0,t=t.substr(1));const u=((t,e)=>{let n=Um[t];return n||(n=_m.reduce((e,[n,r])=>e.replace(n,r.bind(t)),t),Um[t]=n),e?new RegExp(n,"i"):new RegExp(n)})(t=t.replace(Fm,"!").replace(wm,"#"),e);return new Om(n,t,r,u)},xm=(t,e)=>{throw new e(t)},Tm=(t,e,n)=>{if(!Pm(t))return n(`path must be a string, but got \`${e}\``,TypeError);if(!t)return n("path must not be empty",TypeError);if(Tm.isNotRelative(t)){return n(`path should be a ${"`path.relative()`d"} string, but got "${e}"`,RangeError)}return!0},Lm=t=>Bm.test(t);Tm.isNotRelative=Lm,Tm.convert=t=>t;class Nm{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:n=!1}={}){var r,u,o;r=this,u=Rm,o=!0,Object.defineProperty(r,u,{value:o}),this._rules=[],this._ignoreCase=e,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[Rm])return this._rules=this._rules.concat(t._rules),void(this._added=!0);if((t=>t&&Pm(t)&&!gm.test(t)&&!Cm.test(t)&&0!==t.indexOf("#"))(t)){const e=km(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,ym(Pm(t)?(t=>t.split(Dm))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,e){let n=!1,r=!1;return this._rules.forEach(u=>{const{negative:o}=u;if(r===o&&n!==r||o&&!n&&!r&&!e)return;u.regex.test(t)&&(n=!o,r=o)}),{ignored:n,unignored:r}}_test(t,e,n,r){const u=t&&Tm.convert(t);return Tm(u,t,this._allowRelativePaths?Sm:xm),this._t(u,e,n,r)}_t(t,e,n,r){if(t in e)return e[t];if(r||(r=t.split("/")),r.pop(),!r.length)return e[t]=this._testOne(t,n);const u=this._t(r.join("/")+"/",e,n,r);return e[t]=u.ignored?u:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return ym(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const qm=t=>new Nm(t);qm.isPathValid=t=>Tm(t&&Tm.convert(t),t,Sm),qm.default=qm;var Mm=qm;if("undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");Tm.convert=t;const e=/^[a-z]:\//i;Tm.isNotRelative=t=>e.test(t)||Lm(t)}var Gm,zm=function(){function t(t,e){var n=this;if(this.exec=t,this.parameters=e,this.defaultEncoding="base64",this.getFileIgnoreFilter=function(t){if(void 0!==t){var e=Mm({allowRelativePaths:!0}).add(t);return function(t){return!e.ignores(t)}}},this.getTarTransformFn=function(t,e){return function(n){n.path=n.path.replace(t,e)}},this.ensureDirRemote=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){switch(u.label){case 0:return e=["mkdir","-p",t],[4,this.runCommand(e)];case 1:if(n=u.sent(),"Success"!==(null===(r=null==n?void 0:n.commandResult)||void 0===r?void 0:r.status))throw new Error("Failed creating remote directory.");return[2]}})})},this.ensureTarCmd=function(){return J(n,void 0,void 0,function(){var t,e,n;return V(this,function(r){switch(r.label){case 0:return t=["tar","--version"],[4,this.runCommand(t)];case 1:if(e=r.sent(),"Success"!==(null===(n=null==e?void 0:e.commandResult)||void 0===n?void 0:n.status))throw new Error("Tar command not found on remote container. Required for file copy.");return[2]}})})},this.pathExistsRemote=function(t){return J(n,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return e=["test","-e",t],[4,this.runCommand(e)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.checkIsDirRemote=function(t){return J(n,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return e=["test","-d",t],[4,this.runCommand(e)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.runCommand=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o,i,s,a,c;return V(this,function(d){switch(d.label){case 0:return n=(e=this).exec,r=e.parameters,u=r.projectId,o=r.resourceId,i=r.resourceType,s=r.containerName,a={command:t,shell:"none",containerName:s},"service"!==i?[3,2]:[4,n.execServiceCommand({projectId:u,serviceId:o},a)];case 1:return c=d.sent(),[3,4];case 2:return[4,n.execJobCommand({projectId:u,jobId:o},a)];case 3:c=d.sent(),d.label=4;case 4:return[2,c]}})})},this.runSession=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o,i,s,a,c;return V(this,function(d){switch(d.label){case 0:return n=(e=this).exec,r=e.parameters,u=r.projectId,o=r.resourceId,i=r.resourceType,s=r.containerName,a={command:t,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:s},"service"!==i?[3,2]:[4,n.execServiceSession({projectId:u,serviceId:o},a)];case 1:return c=d.sent(),[3,4];case 2:return[4,n.execJobSession({projectId:u,jobId:o},a)];case 3:c=d.sent(),d.label=4;case 4:return[2,c]}})})},!["service","job"].includes(e.resourceType))throw new Error("Invalid resource type: ".concat(e.resourceType,", only 'service' and 'job' supported"))}return t.prototype.uploadFiles=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o,i,s,a,c,d,l,h,p,f;return V(this,function(m){switch(m.label){case 0:if(void 0===t||!E.existsSync(t))throw new Error("Local path '".concat(t,"' does not exists but is required for uploads."));return r=E.lstatSync(t).isFile(),u=r?C.dirname(t):t,o=r?C.basename(t):".",i=r&&void 0!==e&&""!==C.extname(e),s=i?C.dirname(e):null!=e?e:u,a=void 0!==e?C.basename(e):o,c=Hp({gzip:{encoding:this.defaultEncoding},cwd:u,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(o,a):void 0},Do(o)),[4,this.ensureTarCmd()];case 1:return m.sent(),[4,this.ensureDirRemote(s)];case 2:return m.sent(),d=H(H(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",s],!1),[4,this.runSession(d)];case 3:return l=m.sent(),h=new Io,p=new Io,l.stdErr.pipe(h),l.stdOut.pipe(p),c.pipe(l.stdIn),[4,l.waitForCommandResult()];case 4:if("Success"!==(null==(f=m.sent())?void 0:f.status))throw new Error("Failed to upload file to container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString(),"; ").concat(p.getContentsAsString()));return r?[2,{type:Gm.FILE_UPLOAD,sourceDirectory:u,sourceFile:o,targetDirectory:s,targetFile:a}]:[2,{type:Gm.DIRECTORY_UPLOAD,sourceDirectory:u,targetDirectory:s}]}})})},t.prototype.downloadFiles=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o,i,s,a,c,d,l,h,p,f,m,v;return V(this,function(A){switch(A.label){case 0:return(r=void 0===t)?[3,2]:[4,this.pathExistsRemote(t)];case 1:r=!A.sent(),A.label=2;case 2:if(r)throw new Error("Remote path '".concat(t,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(t)];case 3:return u=A.sent(),o=u?t:C.dirname(t),i=u?".":C.basename(t),s=void 0!==e&&""!==C.extname(e),a=!u&&s?C.basename(e):i,(c=void 0!==e?s?C.dirname(e):e:".")&&E.mkdirSync(c,{recursive:!0}),d=Do(null!=n?n:[]).map(function(t){return"--exclude=".concat(t)}),l=H(H(["tar","-zcf","-"],["--no-same-owner"],!0),d,!0),h=H(H([],l,!0),["-C",o,i],!1),[4,this.runSession(h)];case 4:return p=A.sent(),f=fm({cwd:c,gzip:{encoding:this.defaultEncoding},onReadEntry:a?this.getTarTransformFn(i,a):void 0}),m=new Io,p.stdErr.pipe(m),p.stdOut.pipe(f),[4,p.waitForCommandResult()];case 5:if("Success"!==(null==(v=A.sent())?void 0:v.status))throw new Error("Failed to download file from container: ".concat(null==v?void 0:v.message,", error details: ").concat(m.getContentsAsString()));return u?[2,{type:Gm.DIRECTORY_DOWNLOAD,sourceDirectory:o,targetDirectory:c}]:[2,{type:Gm.FILE_DOWNLOAD,sourceDirectory:o,sourceFile:i,targetDirectory:c,targetFile:a}]}})})},t}();!function(t){t.DIRECTORY_UPLOAD="directory-upload",t.FILE_UPLOAD="file-upload",t.DIRECTORY_DOWNLOAD="directory-download",t.FILE_DOWNLOAD="file-download"}(Gm||(Gm={}));var $m,Wm=function(){function t(t,e){this.exec=t,this.stdIgnoreList=["*.*~"],e&&(this.stdIgnoreList=e)}return t.prototype.downloadServiceFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.serviceId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(u,e,"download")];case 1:return[2,o.sent()]}})})},t.prototype.uploadServiceFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.serviceId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(u,e,"upload")];case 1:return[2,o.sent()]}})})},t.prototype.downloadJobFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.jobId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(u,e,"download")];case 1:return[2,o.sent()]}})})},t.prototype.uploadJobFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.jobId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(u,e,"upload")];case 1:return[2,o.sent()]}})})},t.prototype.copy=function(t,e,n){var r;return J(this,void 0,void 0,function(){var u,o;return V(this,function(i){switch(i.label){case 0:switch(u=new zm(this.exec,W(W({},t),{containerName:e.containerName})),o=H(H([],null!==(r=e.ignoreList)&&void 0!==r?r:[],!0),this.stdIgnoreList,!0),n){case"download":return[3,1];case"upload":return[3,3]}return[3,5];case 1:return[4,u.downloadFiles(e.remotePath,e.localPath,o)];case 2:case 4:return[2,i.sent()];case 3:return[4,u.uploadFiles(e.localPath,e.remotePath,o)];case 5:return[2]}})})},t}(),Jm=function(t){function e(e){var n=this.constructor,r=t.call(this,e.message)||this;r.name="NorthflankApiCallError",r.message=e.message,r.status=e.status,r.id=e.id,r.details=e.details;var u=n.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u,r}return $(e,t),e}(Error),Vm=function(t){function e(e,n,r,u){var o=t.call(this)||this;return o.baseUrl=e,o.logsConfig=n,o.token=r,o.agent=u,o.stop=function(){return J(o,void 0,void 0,function(){var t;return V(this,function(e){if(void 0===this.logSession)throw new Error("No command is running");return null===(t=this.remote)||void 0===t||t.close(),[2]})})},o}return $(e,t),e.getLogsEndpoint=function(t){var e=t.containerName,n=t.types,r=t.entityId,u=t.entityType,o=t.buildId,i=t.runId,s=t.backupId,a=t.restoreId,c=t.deploymentId,d=t.isBuild,l=t.lineLimit,h=t.projectId,p=t.queryType,f=t.startTime,m=t.endTime,v=t.duration,E=t.direction,A=t.textIncludes,b=t.textNotIncludes,y=t.regexIncludes,g=t.regexNotIncludes,C="/v1/projects/".concat(h,"/"),F=new URLSearchParams;return F.append("queryType",p),void 0!==f&&F.append("startTime",f.toISOString()),void 0!==m&&F.append("endTime",m.toISOString()),void 0!==l&&F.append("lineLimit",l.toString()),void 0!==e&&F.append("containerName",e),void 0!==c&&F.append("deploymentId",c),void 0!==i&&F.append("runId",i),void 0!==o&&F.append("buildId",o),void 0!==A&&F.append("textIncludes",A),void 0!==b&&F.append("textNotIncludes",b),void 0!==y&&F.append("regexIncludes",y),void 0!==g&&F.append("regexNotIncludes",g),void 0!==E&&F.append("direction",E),void 0!==v&&F.append("duration",v.toString()),void 0!==n&&n.forEach(function(t){return F.append("type",t)}),"".concat(C).concat(function(){var t=d?"/build-logs":"/logs";switch(u){case"service":return"services/".concat(r).concat(t);case"job":return"jobs/".concat(r).concat(t);case"addon":return"addons/".concat(r).concat(t);case"addonBackup":return"addons/".concat(r,"/backups/").concat(s).concat(t);case"addonRestore":return"addons/".concat(r,"/backups/").concat(s,"/restores/").concat(a).concat(t);default:throw new Error("Unexpected Northflank entity type received in logs endpoint generation: ".concat(u))}}(),"?").concat(F.toString())},Object.defineProperty(e.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(e.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),e.prototype.start=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){switch(e.label){case 0:if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise(function(e,n){var r,u,o,i;void 0!==t.remote&&n(Error("Command is already running"));var s=t.logsEndpoint.replace("https:","wss:").replace("http:","ws:");t.remote=new Fa(s,{agent:t.agent}),null===(r=t.remote)||void 0===r||r.on("message",function(e){var n,r,u=JSON.parse(e.toString());switch(null==u?void 0:u.type){case"init":var o=u.data;"successful"!==o.auth&&a("Log tail initialization failed: ".concat(null!==(n=null==o?void 0:o.message)&&void 0!==n?n:"Reason unknown"));break;case"log-lines":var i=u.data;t.emit("logs-received",i.map(iv));break;case"error":a(null===(r=u.data)||void 0===r?void 0:r.message);break;default:var s="unable to parse message: ".concat(JSON.stringify(u));a(s)}}),null===(u=t.remote)||void 0===u||u.on("close",function(){t.emit("close"),t.reset(),e()}),null===(o=t.remote)||void 0===o||o.on("open",function(){t.emit("open")}),null===(i=t.remote)||void 0===i||i.on("error",function(n){t.emit("error",n),t.reset(),e()});var a=function(e){t.emit("error",{message:e}),t.reset(),n(new Error(e))}}),[4,new Promise(function(e){var n;t.remote.on("open",function(){return e()}),null===(n=t.remote)||void 0===n||n.on("error",function(){e()})})];case 1:return e.sent(),this.initialAuth(),[2,this.logSession]}})})},e.prototype.initialAuth=function(){var t,e={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};null===(t=this.remote)||void 0===t||t.send(JSON.stringify(e))},e.prototype.reset=function(){this.remote=void 0,this.logSession=void 0},e}(e),Hm=function(){if(Fo)try{return JSON.parse(E.readFileSync(C.join(C.dirname(c(import.meta.url)),"../../package.json")).toString())}catch(t){return{}}return{}},Zm=function(){function t(t,e){var n=this;this.opts=e,this.call=function(t){return J(n,void 0,void 0,function(){return V(this,function(e){return[2,this.executeCall(t)]})})},this.contextProvider=t}return t.prototype.getDefaultHeaders=function(){var t,e,n=this.contextProvider.getCurrentToken(),r=(null===(t=this.opts)||void 0===t?void 0:t.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(e=Hm())||void 0===e?void 0:e.version).concat(r)}},t.prototype.executeCall=function(t){var e;return J(this,void 0,void 0,function(){var n,r,u,o,i,s,a,c,d,l,h,p,f=this;return V(this,function(m){switch(m.label){case 0:if(n=this.method,r=this.opts.agent,u={method:n,headers:this.getDefaultHeaders(),agent:r},!(o=null===(e=this.contextProvider)||void 0===e?void 0:e.getCurrentBaseUrl()))throw new Error("Api client context not correctly initialized, please provide a url to the context.");return i="".concat(o).concat(this.endpointUrl(t)),s=this.body(t),a=W(W({url:i},u),{body:s}),[4,rv(i,W(W({},u),{body:s}))];case 1:return[4,(c=m.sent()).text()];case 2:return d=m.sent(),l=function(){if(200!==c.status){var t=null==h?void 0:h.error,e=(null==t?void 0:t.message)||"",n={status:c.status,message:e,id:null==t?void 0:t.id,details:null==t?void 0:t.details};if(f.opts.throwErrorOnHttpErrorCode)throw new Jm(n);return n}},h=function(){try{return JSON.parse(d)}catch(t){throw Error("Failed reading api request result: \n\tStatus: ".concat(c.statusText," (").concat(c.status,")\n\tMessage: ").concat(d))}}(),p=l(),[2,{data:null==h?void 0:h.data,rawResponse:c,request:a,error:p,pagination:null==h?void 0:h.pagination}]}})})},t}(),Ym=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="get",e.body=function(){},e}return $(e,t),e}(Zm),Km=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.all=function(t){return J(e,void 0,void 0,function(){return V(this,function(e){return[2,new nv(this,t).getAll()]})})},e.call=function(n){return J(e,void 0,void 0,function(){var e,r=this;return V(this,function(u){switch(u.label){case 0:return[4,t.prototype.executeCall.call(this,n)];case 1:return e=u.sent(),[2,W(W({},e),{pagination:W(W({},e.pagination),{getNextPage:function(){return J(r,void 0,void 0,function(){var t,r,u,o,i,s,a,c=this;return V(this,function(d){return void 0===(null===(s=e.pagination)||void 0===s?void 0:s.cursor)?(t=Object.keys(e.data),r=1===t.length?((i={})[t[0]]=[],i):{},u=W(W({},e),{pagination:W(W({},e.pagination),{count:0}),data:r}),[2,(o=function(t){return W(W({},t),{pagination:W(W({},t.pagination),{getNextPage:function(){return J(c,void 0,void 0,function(){return V(this,function(e){return[2,o(t)]})})}})})})(u)]):[2,new nv(this,n,null===(a=e.pagination)||void 0===a?void 0:a.cursor).getNext()]})})}})})]}})})},e}return $(e,t),e}(Ym),Xm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="post",e}return $(e,t),e}(Zm),Qm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="delete",e.body=function(){},e}return $(e,t),e}(Zm),tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="put",e}return $(e,t),e}(Zm),ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="patch",e}return $(e,t),e}(Zm),nv=function(){function t(t,e,n){void 0===n&&(n=null);var r=this;this.endpoint=t,this.opts=e,this._currentOffset=0,this.hasNext=function(){return void 0!==r.cursor},this.cursor=n}return Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),t.prototype.getNext=function(){var t,e,n;return J(this,void 0,void 0,function(){var r,u,o,i,s,a;return V(this,function(c){switch(c.label){case 0:return[4,this.endpoint.call(W(W({},this.opts),{options:W(W({},null===(t=this.opts)||void 0===t?void 0:t.options),{cursor:null!==(e=this.cursor)&&void 0!==e?e:void 0})}))];case 1:return r=c.sent(),u=r.data,o=r.request,i=r.error,s=r.pagination,a=r.rawResponse,this.cursor=null==s?void 0:s.cursor,this._currentOffset+=null!==(n=null==s?void 0:s.count)&&void 0!==n?n:0,[2,{data:u,request:o,error:i,pagination:s,rawResponse:a}]}})})},t.prototype.getAll=function(){var t,e;return J(this,void 0,void 0,function(){var n,r,u,o,i;return V(this,function(s){switch(s.label){case 0:n=[],s.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(r=s.sent()).error?[2,r]:(n.push(r),[3,1]);case 3:return o=n.flatMap(function(t){var e=Object.keys(t.data);return 1===e.length?(u=e[0],t.data[e[0]]):t.data}),[2,{data:void 0===u?o:(i={},i[u]=o,i),request:null===(t=n[0])||void 0===t?void 0:t.request,rawResponse:null===(e=n[0])||void 0===e?void 0:e.rawResponse}]}})})},t}(),rv=function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n=3),void 0===r&&(r=500),new Promise(function(u,o){var i=function(n){return wo(t,e).then(function(t){u(t)}).catch(function(t){return J(void 0,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return n>0?[4,(u=r,new Promise(function(t){setTimeout(function(){t()},u)}))]:[3,2];case 1:return e.sent(),[2,i(n-1)];case 2:return[2,o(t)]}var u})})})};return i(n)})},uv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Fetch log lines over a specific time span",e.withAuth=!0,e.requiredPermissions="Account > Service | Job | Addon > General > Read",e.endpointUrl=function(t){return Vm.getLogsEndpoint(t)},e.body=function(){},e}return $(e,t),e}(Ym);!function(t){t.CDN="cdn",t.Mesh="mesh",t.Ingress="ingress",t.Runtime="runtime"}($m||($m={}));var ov,iv=function(t){return{containerId:t.containerId,log:t.log,ts:new Date(t.ts)}},sv=function(t,e){void 0===e&&(e={});var n=this;this.contextProvider=t,this.clientOpts=e,this.getServiceLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.logRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.serviceId,o={entityId:u,projectId:r},[2,this.logRange(o,W(W({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.logRange(r,null!=n?n:{},"job")]})})},this.getJobBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.jobId,o={entityId:u,projectId:r},[2,this.logRange(o,W(W({},n),{isBuild:!0}),"job")]})})},this.getAddonLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logRange(r,null!=n?n:{},"addon")]})})},this.getAddonBackupLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logRange(r,W(W({},n),{backupId:e.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},u={backupId:e.backupId,restoreId:e.restoreId},[2,this.logRange(r,W(W({},n),u),"addonRestore")]})})},this.logRange=function(t,e,r){return J(n,void 0,void 0,function(){var n,u,o,i,s;return V(this,function(a){switch(a.label){case 0:return n=t.entityId,u=t.projectId,o=W(W({projectId:u,entityId:n,entityType:r},e),{queryType:"range"}),[4,new uv(this.contextProvider,this.clientOpts).call(o)];case 1:return(i=a.sent()).error?[2,i]:[2,W(W({},i),{data:null===(s=null==i?void 0:i.data)||void 0===s?void 0:s.map(iv)})]}})})},this.tailServiceLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.logTail(r,null!=n?n:{},"service")]})})},this.tailServiceBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.serviceId,u=e.projectId,o={entityId:r,projectId:u},[2,this.logTail(o,W(W({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.logTail(r,null!=n?n:{},"job")]})})},this.tailJobBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.jobId,o={entityId:u,projectId:r},[2,this.logTail(o,W(W({},n),{isBuild:!0}),"job")]})})},this.tailAddonLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logTail(r,null!=n?n:{},"addon")]})})},this.tailAddonBackupLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logTail(r,W(W({},n),{backupId:e.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},u={backupId:e.backupId,restoreId:e.restoreId},[2,this.logTail(r,W(W({},n),u),"addonRestore")]})})},this.logTail=function(t,e,r){return J(n,void 0,void 0,function(){var n,u,o,i,s;return V(this,function(a){if(n=t.entityId,u=t.projectId,o=W({queryType:"tail",projectId:u,entityId:n,entityType:r},e),this.assertStartedWithNodejs(),i=this.contextProvider.getCurrentBaseUrl(!0),!(s=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new Vm(i,o,s,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!Fo)throw new Error("Command exec only possible when started with nodejs")}},av=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Fetch metrics entries over a specific time span",e.withAuth=!0,e.requiredPermissions="Account > Service | Job | Addon > General > Read",e.endpointUrl=function(t){var e=t.projectId,n=t.entityId,r=t.entityType,u=t.deploymentId,o=t.runId,i=t.buildId,s=t.isBuild,a=t.queryType,c=t.metricTypes,d=t.startTime,l=t.endTime,h=t.duration,p=t.containerName,f=t.timestamp,m="/v1/projects/".concat(e,"/");var v=new URLSearchParams;return v.append("queryType",a),void 0!==d&&v.append("startTime",d.toISOString()),void 0!==l&&v.append("endTime",l.toISOString()),void 0!==p&&v.append("containerName",p),void 0!==u&&v.append("deploymentId",u),void 0!==o&&v.append("runId",o),void 0!==i&&v.append("buildId",i),void 0!==f&&v.append("timestamp",f.toISOString()),void 0!==h&&v.append("duration",h.toString()),void 0!==c&&c.forEach(function(t){return v.append("metricTypes",t)}),"".concat(m).concat(function(){var t=s?"/build-metrics":"/metrics";switch(r){case"service":return"services/".concat(n).concat(t);case"job":return"jobs/".concat(n).concat(t);case"addon":return"addons/".concat(n).concat(t);default:throw new Error("Unexpected Northflank entity type received in metrics endpoint generation: ".concat(r))}}(),"?").concat(v.toString())},e.body=function(){},e}return $(e,t),e}(Ym),cv=function(t){return{metadata:t.metadata,data:t.data.map(function(t){return{value:t.value,ts:new Date(t.ts)}})}};!function(t){t.Cpu="cpu",t.Memory="memory",t.NetworkIngress="networkIngress",t.NetworkEgress="networkEgress",t.TcpConnectionOpen="tcpConnectionsOpen",t.PvcUsage="diskUsage",t.Requests="requests",t.Http4xxResponses="http4xxResponses",t.Http5xxResponses="http5xxResponses",t.Bandwidth="bandwidth",t.BandwidthVolume="bandwidthVolume"}(ov||(ov={}));var dv=function(t){var e=this;this.contextProvider=t,this.getServiceMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.metricsSingle(r,null!=n?n:{},"service")]})})},this.getServiceBuildMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.serviceId,u=e.projectId,o={entityId:r,projectId:u},[2,this.metricsSingle(o,W(W({},n),{isBuild:!0}),"service")]})})},this.getJobMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.metricsSingle(r,null!=n?n:{},"job")]})})},this.getJobBuildMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.jobId,u=e.projectId,o={entityId:r,projectId:u},[2,this.metricsSingle(o,W(W({},n),{isBuild:!0}),"job")]})})},this.getAddonMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.metricsSingle(r,null!=n?n:{},"addon")]})})},this.metricsSingle=function(t,n,r){return J(e,void 0,void 0,function(){var e,u,o;return V(this,function(i){return e=t.entityId,u=t.projectId,o=W(W({projectId:u,entityId:e,entityType:r},n),{queryType:"single"}),[2,this.getMetrics(o)]})})},this.getServiceMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.metricsRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.serviceId,o={entityId:u,projectId:r},[2,this.metricsRange(o,W(W({},n),{isBuild:!0}),"service")]})})},this.getJobMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.metricsRange(r,null!=n?n:{},"job")]})})},this.getJobBuildMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.jobId,o={entityId:u,projectId:r},[2,this.metricsRange(o,W(W({},n),{isBuild:!0}),"job")]})})},this.getAddonMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.metricsRange(r,null!=n?n:{},"addon")]})})},this.metricsRange=function(t,n,r){return J(e,void 0,void 0,function(){var e,u,o;return V(this,function(i){return e=t.entityId,u=t.projectId,o=W(W({projectId:u,entityId:e,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(o)]})})},this.getMetrics=function(t){return J(e,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return[4,new av(this.contextProvider,{}).call(t)];case 1:return(e=n.sent()).error?[2,e]:[2,W(W({},e),{data:Object.fromEntries(Object.entries(e.data).map(function(t){var e=t[0],n=t[1];return[e,W(W({},n),{values:n.values.map(cv)})]}))})]}})})}},lv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the available addon types",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/addon-types"},e.body=function(){},e}return $(e,t),e}(Ym),hv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the backup destinations saved to this account. Does not display secrets.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/backup-destinations".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),pv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new backup destination to this account.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Create",e.endpointUrl=function(t){return"/v1/backup-destinations"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),fv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View a backup destination, including secrets.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Read",e.endpointUrl=function(t){return["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId))},e.body=function(){},e}return $(e,t),e}(Ym),mv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a backup destination.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Update",e.endpointUrl=function(t){return["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),vv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a backup destination.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Delete",e.endpointUrl=function(t){return["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId))},e.body=function(){},e}return $(e,t),e}(Qm),Ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the backups associated with a backup destinations.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Read",e.endpointUrl=function(t){var e;["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId),"/backups").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Av=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of past invoices",e.withAuth=!0,e.requiredPermissions="Account > Billing > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/billing/invoices".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),bv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.",e.withAuth=!0,e.requiredPermissions="Account > Billing > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/billing/invoices/details".concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists supported cloud providers",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/cloud-providers"},e.body=function(){},e}return $(e,t),e}(Ym),gv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists clusters for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/clusters".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Cv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new cluster.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Create",e.endpointUrl=function(t){return"/v1/cloud-providers/clusters"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Fv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or update a cluster.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Create",e.endpointUrl=function(t){return"/v1/cloud-providers/clusters"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),wv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given cluster",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Read",e.endpointUrl=function(t){return["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId))},e.body=function(){},e}return $(e,t),e}(Ym),Dv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a cluster.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Bv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete the given cluster. Fails if the cluster has associated projects.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Delete",e.endpointUrl=function(t){return["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId))},e.body=function(){},e}return $(e,t),e}(Qm),Iv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of nodes for the given cluster",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Read",e.endpointUrl=function(t){var e;["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Rv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Cordon a node on the cluster to prevent new pods from scheduling on it.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId","nodeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes/").concat(encodeURIComponent(t.parameters.nodeId),"/cordon")},e.body=function(){},e}return $(e,t),e}(Xm),jv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Drain a node by evicting all running pods.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId","nodeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes/").concat(encodeURIComponent(t.parameters.nodeId),"/drain")},e.body=function(){},e}return $(e,t),e}(Xm),Sv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Uncordon a node on the cluster if it was previously cordoned.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId","nodeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes/").concat(encodeURIComponent(t.parameters.nodeId),"/uncordon")},e.body=function(){},e}return $(e,t),e}(Xm),_v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists integrations for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/integrations".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Uv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new integration.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Create",e.endpointUrl=function(t){return"/v1/cloud-providers/integrations"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Pv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a integration.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Create",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),Ov=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given integration",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Read",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(t.parameters.integrationId))},e.body=function(){},e}return $(e,t),e}(Ym),kv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a integration.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Update",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(t.parameters.integrationId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),xv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete the given integration. Fails if the integration is associated with existing clusters.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Delete",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(t.parameters.integrationId))},e.body=function(){},e}return $(e,t),e}(Qm),Tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists supported cloud provider node types",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Lv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists supported cloud provider regions",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/regions".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Nv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns the partially random string used when generating host names for the authenticated account.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Read",e.endpointUrl=function(t){return"/v1/dns-id"},e.body=function(){},e}return $(e,t),e}(Ym),qv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists available domains",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/domains".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Mv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Registers a new domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Create",e.endpointUrl=function(t){return"/v1/domains"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Gv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Read",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain))},e.body=function(){},e}return $(e,t),e}(Ym),zv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a domain and each of its registered subdomains.",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Delete",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain))},e.body=function(){},e}return $(e,t),e}(Qm),$v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Retrieve certificate data for a domain to verify its contents.",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Read",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/certificate")},e.body=function(){},e}return $(e,t),e}(Ym),Wv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Import a certificate for the domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Update",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/import")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Jv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new subdomain to the domain.",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Vv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Read",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain))},e.body=function(){},e}return $(e,t),e}(Ym),Hv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Removes a subdomain from a domain.",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain))},e.body=function(){},e}return $(e,t),e}(Qm),Zv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Assigns a service port to the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/assign")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Removes a subdomain from its assigned service",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){var e;["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/assign").concat(r)},e.body=function(){},e}return $(e,t),e}(Qm),Kv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Removes the CDN integration from the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/cdn/disable")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Xv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Enables a CDN integration on the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/cdn/enable")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Qv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new path to the subdomain.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Create",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),tE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="List paths for a given subdomain.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Read",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths")},e.body=function(){},e}return $(e,t),e}(Ym),eE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get subdomain path details.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Read",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath))},e.body=function(){},e}return $(e,t),e}(Ym),nE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a path.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath))},e.body=function(){},e}return $(e,t),e}(Qm),rE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a subdomain path.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),uE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Assign a subdomain path to a port.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath),"/assign")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),oE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Unassign a subdomain path to a port.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath),"/assign")},e.body=function(){},e}return $(e,t),e}(Qm),iE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/verify")},e.body=function(){},e}return $(e,t),e}(Xm),sE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Attempts to verify the domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Create",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/verify")},e.body=function(){},e}return $(e,t),e}(Xm),aE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of log sinks added to this account.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/log-sinks".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),cE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Create",e.endpointUrl=function(t){return"/v1/integrations/log-sinks"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),dE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about a given log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Read",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId))},e.body=function(){},e}return $(e,t),e}(Ym),lE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Delete",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId))},e.body=function(){},e}return $(e,t),e}(Qm),hE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pauses a given log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Update",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),pE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resumes a paused log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Update",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId),"/resume")},e.body=function(){},e}return $(e,t),e}(Xm),fE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the settings for a log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Update",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId),"/settings")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),mE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists notification integrations for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/notifications".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),vE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Create a new notification integration.",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Manage",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),EE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about a notification integration.",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Read",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(t.parameters.notificationId))},e.body=function(){},e}return $(e,t),e}(Ym),AE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a notification integration",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Manage",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(t.parameters.notificationId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),bE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a notification integration",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Manage",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(t.parameters.notificationId))},e.body=function(){},e}return $(e,t),e}(Qm),yE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the container registry credentials saved to this account. Does not display secrets.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/registries".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),gE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new set of container registry credentials to this account.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Create",e.endpointUrl=function(t){return"/v1/integrations/registries"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),CE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Views a set of registry credential data.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Read Encrypted",e.endpointUrl=function(t){return["credentialId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(t.parameters.credentialId))},e.body=function(){},e}return $(e,t),e}(Ym),FE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a set of registry credential data.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Update",e.endpointUrl=function(t){return["credentialId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(t.parameters.credentialId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),wE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a set of registry credential data.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Delete",e.endpointUrl=function(t){return["credentialId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(t.parameters.credentialId))},e.body=function(){},e}return $(e,t),e}(Qm),DE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists linked version control providers",e.withAuth=!0,e.requiredPermissions="Account > Git > General > Read",e.endpointUrl=function(t){return"/v1/integrations/vcs"},e.body=function(){},e}return $(e,t),e}(Ym),BE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Generate a token for a specific VCS link.",e.withAuth=!0,e.requiredPermissions="Account > Git > Tokens > Read",e.endpointUrl=function(t){var e;["customVCSId","vcsLinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/vcs/custom/".concat(encodeURIComponent(t.parameters.customVCSId),"/token/").concat(encodeURIComponent(t.parameters.vcsLinkId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Xm),IE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of repositories accessible to this account",e.withAuth=!0,e.requiredPermissions="Account > Git > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/vcs/repos".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),RE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of branches for the repo",e.withAuth=!0,e.requiredPermissions="Account > Git > General > Read",e.endpointUrl=function(t){var e;["vcsService","repositoryOwner","repositoryName"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/vcs/repos/".concat(encodeURIComponent(t.parameters.vcsService),"/").concat(encodeURIComponent(t.parameters.repositoryOwner),"/").concat(encodeURIComponent(t.parameters.repositoryName),"/branches").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),jE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists available billing plans",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/plans"},e.body=function(){},e}return $(e,t),e}(Ym),SE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists projects for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),_E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new project.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Create",e.endpointUrl=function(t){return"/v1/projects"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),UE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a project.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Create",e.endpointUrl=function(t){return"/v1/projects"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),PE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a project.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Update",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),OE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given project",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Read",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId))},e.body=function(){},e}return $(e,t),e}(Ym),kE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete the given project. Fails if the project isn't empty.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Delete",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Qm),xE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of addons belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),TE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),LE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates an addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),NE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the given addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Ym),qE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates an addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),ME=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Delete",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Qm),GE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about an addon's backup schedules",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backup-schedules").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),zE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Create a new backup schedule for an addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backup-schedules")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),$E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a backup schedule for an addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","scheduleId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(t.parameters.scheduleId))},e.body=function(){},e}return $(e,t),e}(Qm),WE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns a list of backups for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),JE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Initiates a backup for the given addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),VE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about a given backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId))},e.body=function(){},e}return $(e,t),e}(Ym),HE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a given backup",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId))},e.body=function(){},e}return $(e,t),e}(Qm),ZE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the in progress backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/abort")},e.body=function(){},e}return $(e,t),e}(Xm),YE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts an in-progress backup restore.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){var e;["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/abort-restore").concat(r)},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),KE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Generates a temporary download link for downloading the given backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/download-link")},e.body=function(){},e}return $(e,t),e}(Ym),XE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Restores the given addon to the given backup state.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){var e;["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/restore").concat(r)},e.body=function(){},e}return $(e,t),e}(Xm),QE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of restores for the given backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/restores").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),tA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/retain")},e.body=function(){},e}return $(e,t),e}(Xm),eA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of containers for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > Deployment > View Instances",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/containers").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),nA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns the credentials for connecting to the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/credentials")},e.body=function(){},e}return $(e,t),e}(Ym),rA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Imports a database from an external archive or existing live database.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/import")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),uA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the network settings for the addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/network-settings")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),oA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pause the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),iA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Reset the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Delete",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/reset")},e.body=function(){},e}return $(e,t),e}(Xm),sA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Restart the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/restart")},e.body=function(){},e}return $(e,t),e}(Xm),aA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns a list of restores for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/restores").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),cA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resume the given addon if it is paused.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/resume")},e.body=function(){},e}return $(e,t),e}(Xm),dA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modifies the allocated resources for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/scale")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),lA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the security rules for the addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/security")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),hA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about the current addon version including available upgrades and upgrade history.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/version")},e.body=function(){},e}return $(e,t),e}(Ym),pA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Upgrades the addon to a new version.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/version")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),fA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of jobs belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),mA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new cron job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/cron")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),vA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a cron job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/cron")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),EA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a cron job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),AA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/manual")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),bA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/manual")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),yA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),gA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the given job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(){},e}return $(e,t),e}(Ym),CA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Delete",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(){},e}return $(e,t),e}(Qm),FA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the branches of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/branches").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),wA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists builds for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),DA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Start a new build for the given job. Given a commit sha, it will build that commit.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),BA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-arguments").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),IA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets build arguments for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-arguments")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),RA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-arguments/details")},e.body=function(){},e}return $(e,t),e}(Ym),jA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the build options for a given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-options")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),SA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the version control source for a given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-source")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),_A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about a build for the job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Ym),UA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the given job build",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Qm),PA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of containers for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > View Instance Logs",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/containers").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the deployment of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/deployment")},e.body=function(){},e}return $(e,t),e}(Ym),kA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the deployment settings of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Update Deployment",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),xA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the health checks for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/health-checks")},e.body=function(){},e}return $(e,t),e}(Ym),TA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates health checks for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/health-checks")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),LA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pause the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),NA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the pull-requests of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/pull-requests").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),qA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resumes the given job. Optionally takes several arguments to override resumed settings.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/resume")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),MA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Fetches run history for the given job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),GA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Starts a new job run for the given job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),zA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns data about the given job run",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs/").concat(encodeURIComponent(t.parameters.runId))},e.body=function(){},e}return $(e,t),e}(Ym),$A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the given job run",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs/").concat(encodeURIComponent(t.parameters.runId))},e.body=function(){},e}return $(e,t),e}(Qm),WA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns the runtime environment for the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runtime-environment").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),JA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets the runtime environment for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runtime-environment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),VA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runtime-environment/details")},e.body=function(){},e}return $(e,t),e}(Ym),HA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modifies the scaling settings for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Scale Job",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/scale")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ZA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates settings for the job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/settings")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),YA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modify cron job to toggle suspending of its schedule.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/suspend")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),KA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists all pipelines for a project",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),XA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about a pipeline",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId))},e.body=function(){},e}return $(e,t),e}(Ym),QA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given preview template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a given preview template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Create",e.endpointUrl=function(t){return["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),eb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of active preview environments for a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/previews").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),nb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a preview environment generated by a preview template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Delete",e.endpointUrl=function(t){return["projectId","pipelineId","previewId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(t.parameters.previewId))},e.body=function(){},e}return $(e,t),e}(Qm),rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of preview template runs",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),ub=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given preview template run.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId","templateRunId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(t.parameters.templateRunId))},e.body=function(){},e}return $(e,t),e}(Ym),ob=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about a release flow",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage))},e.body=function(){},e}return $(e,t),e}(Ym),ib=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a release flow",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Update",e.endpointUrl=function(t){return["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),sb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Runs a given release flow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Update",e.endpointUrl=function(t){return["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ab=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists runs of a release flow",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),cb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given release flow run",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId","stage","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs/").concat(encodeURIComponent(t.parameters.runId))},e.body=function(){},e}return $(e,t),e}(Ym),db=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Abort the given release flow run",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Update",e.endpointUrl=function(t){return["projectId","pipelineId","stage","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs/").concat(encodeURIComponent(t.parameters.runId),"/abort")},e.body=function(){},e}return $(e,t),e}(Xm),lb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of secrets belonging to the project",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),hb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a secret with the specified payload",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),pb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a secret with the specified payload",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),fb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a secret with the specified payload",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),mb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View a secret including its contents",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e;["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),vb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a secret",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId))},e.body=function(){},e}return $(e,t),e}(Qm),Eb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a secret",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Ab=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Link an addon to the secret group or edit the settings of the linked addon.",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),bb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about a given addon link.",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Ym),yb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Unlinks an addon from the secret group.",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Qm),gb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View a secret with details about its linked addons",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/details")},e.body=function(){},e}return $(e,t),e}(Ym),Cb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of services belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Fb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new build service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),wb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a build service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),Db=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a build service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/build/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Bb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/combined")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Ib=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/combined")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),Rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/combined/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),jb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new deployment service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Sb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a deployment service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),_b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a deployment service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Ub=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(){},e}return $(e,t),e}(Ym),Pb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Delete",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Qm),Ob=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the branches of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/branches").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),kb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the builds for the service",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),xb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Start a new build for the given combined or build service. If given a commit sha, it will build that commit. Otherwise, the most recent relevant commit will be built. If the service provided is a build service, a branch name or pull request to build from is required.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets the build arguments of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-arguments").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),Lb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets the build arguments for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-arguments")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Nb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-arguments/details")},e.body=function(){},e}return $(e,t),e}(Ym),qb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the build options for a given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-options")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Mb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the version control source for a given build or combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-source")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Gb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about a build for the service",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Ym),zb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the given service build",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","serviceId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Qm),$b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of containers for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > View Instances",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/containers").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Wb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the deployment of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > View Instances",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/deployment")},e.body=function(){},e}return $(e,t),e}(Ym),Jb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the deployment settings of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Update Deployment",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Vb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the health checks for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/health-checks")},e.body=function(){},e}return $(e,t),e}(Ym),Hb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates health checks for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/health-checks")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Zb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pause the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),Yb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the ports for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/ports")},e.body=function(){},e}return $(e,t),e}(Ym),Kb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the list of ports for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/ports")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Xb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the pull-requests of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/pull-requests").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Qb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Restarts the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/restart")},e.body=function(){},e}return $(e,t),e}(Xm),ty=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resumes the given service. Optionally takes several arguments to override resumed settings.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/resume")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ey=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets the runtime environment of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/runtime-environment").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),ny=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets the runtime environment for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/runtime-environment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ry=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/runtime-environment/details")},e.body=function(){},e}return $(e,t),e}(Ym),uy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modifies the scaling settings for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Scale Service",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/scale")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),oy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of volumes belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Read",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes")},e.body=function(){},e}return $(e,t),e}(Ym),iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a volume with the specified payload",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Retrieve a volume",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Read",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId))},e.body=function(){},e}return $(e,t),e}(Ym),ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update volume mounts and storage size",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Update",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes this volume and its associated data.",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Delete",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId))},e.body=function(){},e}return $(e,t),e}(Qm),dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Attach a volume",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Update",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId),"/attach")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ly=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Detach a volume",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Update",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId),"/detach")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),hy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists available project regions",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/regions"},e.body=function(){},e}return $(e,t),e}(Ym),py=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="List the resource tags for this entity.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/tags".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Add a new resource tag for this entity.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Create",e.endpointUrl=function(t){return"/v1/tags"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),my=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update or create a resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Update",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),vy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View details for a given resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Read",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags/".concat(encodeURIComponent(t.parameters.resourceTagId))},e.body=function(){},e}return $(e,t),e}(Ym),Ey=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Patch a resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Update",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags/".concat(encodeURIComponent(t.parameters.resourceTagId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Delete",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags/".concat(encodeURIComponent(t.parameters.resourceTagId))},e.body=function(){},e}return $(e,t),e}(Qm),by=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of templates",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/templates".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),yy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Create a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Create",e.endpointUrl=function(t){return"/v1/templates"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),gy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Update",e.endpointUrl=function(t){return["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Delete",e.endpointUrl=function(t){return["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId))},e.body=function(){},e}return $(e,t),e}(Qm),wy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Run a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Run",e.endpointUrl=function(t){return["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of template runs",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),By=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given template run.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){return["templateId","templateRunId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs/").concat(encodeURIComponent(t.parameters.templateRunId))},e.body=function(){},e}return $(e,t),e}(Ym),Iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Abort the given template run.",e.withAuth=!0,e.requiredPermissions="Account > Templates > Runs > Abort",e.endpointUrl=function(t){return["templateId","templateRunId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs/").concat(encodeURIComponent(t.parameters.templateRunId),"/abort")},e.body=function(){},e}return $(e,t),e}(Xm),Ry=function(){function t(){this.loadContext()}return t.prototype.loadContext=function(){this.contextWrapper=this.loadContextWrapper()},t.prototype.getInfo=function(){return""},t.prototype.storeContext=function(t){return J(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,this.writeContext(t)];case 1:return e.sent(),this.contextWrapper=t,[2]}})})},t.prototype.addContext=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:if(e||void 0===this.findContext(t.name))return[3,1];throw new Error("Context with name ".concat(t.name," already exists"));case 1:return[4,this.removeContext(t.name)];case 2:o.sent(),o.label=3;case 3:return n=W({host:"https://api.northflank.com"},t),r=this.contextWrapper,u={current:n.name,contexts:H(H([],r.contexts,!0),[n],!1),lastUpdateCheck:r.lastUpdateCheck},[4,this.storeContext(u)];case 4:return o.sent(),[2]}})})},t.prototype.removeContext=function(t){return J(this,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){switch(o.label){case 0:return e=this.contextWrapper,n=e.contexts.filter(function(e){return e.name!==t}),r=e.current===t?void 0:e.current,u={current:r,contexts:H([],n,!0),lastUpdateCheck:e.lastUpdateCheck},[4,this.storeContext(u)];case 1:return o.sent(),[2]}})})},t.prototype.getCurrentContext=function(){var t=this.contextWrapper.current;return void 0===t?t:this.findContext(t)},t.prototype.findContext=function(t){return this.contextWrapper.contexts.find(function(e){return e.name===t})},t.prototype.getCurrentBaseUrl=function(t){var e=this.getCurrentContext();if(!0===t&&!(null==e?void 0:e.host))throw new Error("Context (".concat(null==e?void 0:e.name,") doesn't have a target API host. Please login again."));return null==e?void 0:e.host},t.prototype.getCurrentProjectName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.project},t.prototype.getCurrentName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.name},t.prototype.getCurrentToken=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.token},t.prototype.getCurrentServiceName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.service},t.prototype.getCurrentJobName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.job},t.prototype.getCurrentPlanId=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.plan},t.prototype.getCurrentRegion=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.region},t.prototype.useContext=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(!this.findContext(t))throw new Error("Context with name ".concat(t," doesn't exist"));return e=this.contextWrapper,n=W(W({},e),{current:t}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.updateToken=function(t,e){return J(this,void 0,void 0,function(){var n,r,u,o,i;return V(this,function(s){switch(s.label){case 0:if(n=null!=e?e:this.getCurrentName(),!(r=this.findContext(n)))throw new Error("Context with name ".concat(e," doesn't exist"));return u=this.contextWrapper,o=u.contexts.map(function(e){return e.name===n?W(W({},r),{token:t}):e}),i=W(W({},u),{contexts:o}),[4,this.storeContext(i)];case 1:return s.sent(),[2]}})})},t.prototype.useProjectId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set project id to current context, current context not defined");return n=W(W({},e),{project:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.useServiceId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set service id to current context, current context not defined");return n=W(W({},e),{service:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.useJobId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set job id to current context, current context not defined");return n=W(W({},e),{job:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.usePlanId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set plan id to current context, current context not defined");return n=W(W({},e),{plan:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.useRegion=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set region id to current context, current context not defined");return n=W(W({},e),{region:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},t.prototype.setLastUpdateCheck=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:return e=this.contextWrapper,n=W(W({},e),{lastUpdateCheck:t}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}})})},t}(),jy=function(t){function e(e){var n=t.call(this)||this;return n.assertDir=function(t){return J(n,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),E.existsSync(t)?[3,2]:[4,E.promises.mkdir(t,{recursive:!0})];case 1:n.sent(),n.label=2;case 2:return[3,4];case 3:throw e=n.sent(),console.log("Failed to login, local files could not be created: ".concat(t,", error: ").concat(e.message)),e;case 4:return[2]}})})},n.configPath=e||"".concat(p.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return $(e,t),e.prototype.loadContextWrapper=function(){try{return JSON.parse(E.readFileSync(this.configFile,"utf8"))}catch(t){return{contexts:[],lastUpdateCheck:new Date(0)}}},e.prototype.writeContext=function(t){return J(this,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return[4,this.assertConfigDir()];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,E.promises.writeFile(this.configFile,JSON.stringify(t,null,"\t"),{mode:416})];case 3:return n.sent(),[3,5];case 4:throw e=n.sent(),console.log("Failed to persist api context, local files could not be created, error: ".concat(e.message)),e;case 5:return[2]}})})},e.prototype.assertConfigDir=function(){return J(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,this.assertDir(this.configPath)];case 1:return t.sent(),[2]}})})},e.prototype.getInfo=function(){return"Cli config stored in: ".concat(this.configPath)},e}(Ry),Sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},e}return $(e,t),e.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},e.prototype.writeContext=function(t){return J(this,void 0,void 0,function(){return V(this,function(e){return this.inMemoryContextWrapper=t,[2]})})},e}(Ry),_y=function(t,e){void 0===e&&(e={});var n,r,u,o=this;this.baseUrl=function(){return o.contextProvider.getCurrentBaseUrl()},this.contextProvider=t,this.forwarding=new Ka(t,new Cb(t,e),new xE(t,e),e.agent),this.exec=new tc(t,e.agent),this.logs=new sv(t,e),this.metrics=new dv(t),this.fileCopy=new Wm(this.exec),this.endpoints={get:(u={},u.addon=((r=new NE(t,e)).types=new lv(t,e),r.backupSchedules=new GE(t,e),r.backups=new WE(t,e),r.backup=((n=new VE(t,e)).download=new KE(t,e),n.restores=new QE(t,e),n),r.containers=new eA(t,e),r.credentials=new nA(t,e),r.restores=new aA(t,e),r.version=new hA(t,e),r),u.backupDestination=new fv(t,e),u.invoice=function(){var n={};return n.details=new bv(t,e),n}(),u.cloud=function(){var n={};return n.cluster=new wv(t,e),n.integration=new Ov(t,e),n}(),u.dnsId=new Nv(t,e),u.domain=new Gv(t,e),u.domainCertificate=new $v(t,e),u.subdomain=function(){var n=new Vv(t,e);return n.path=new eE(t,e),n}(),u.logSink=new dE(t,e),u.notification=new EE(t,e),u.registryCredentials=new CE(t,e),u.project=new OE(t,e),u.job=function(){var n=new gA(t,e);return n.branches=new FA(t,e),n.builds=new wA(t,e),n.buildArguments=new BA(t,e),n.buildArgumentDetails=new RA(t,e),n.build=new _A(t,e),n.containers=new PA(t,e),n.deployment=new OA(t,e),n.healthChecks=new xA(t,e),n.pullRequests=new NA(t,e),n.runs=new MA(t,e),n.run=new zA(t,e),n.runtimeEnvironment=new WA(t,e),n.runtimeEnvironmentDetails=new VA(t,e),n}(),u.pipeline=new XA(t,e),u.previewTemplate=new QA(t,e),u.previewTemplateRun=new ub(t,e),u.releaseFlow=new ob(t,e),u.releaseFlowRun=new cb(t,e),u.secret=new mb(t,e),u.secretLink=new bb(t,e),u.secretDetails=new gb(t,e),u.service=function(){var n=new Ub(t,e);return n.branches=new Ob(t,e),n.builds=new kb(t,e),n.buildArguments=new Tb(t,e),n.buildArgumentDetails=new Nb(t,e),n.build=new Gb(t,e),n.containers=new $b(t,e),n.deployment=new Wb(t,e),n.healthChecks=new Vb(t,e),n.ports=new Yb(t,e),n.pullRequests=new Xb(t,e),n.runtimeEnvironment=new ey(t,e),n.runtimeEnvironmentDetails=new ry(t,e),n}(),u.volume=new sy(t,e),u.tag=new vy(t,e),u.template=new gy(t,e),u.templateRun=new By(t,e),u),list:function(){var n={};return n.backupDestinations=new hv(t,e),n.backupDestinationsBackups=new Ev(t,e),n.invoices=new Av(t,e),n.cloud=function(){var n={};return n.providers=new yv(t,e),n.clusters=new gv(t,e),n.cluster=function(){var n={};return n.nodes=new Iv(t,e),n}(),n.integrations=new _v(t,e),n.nodeTypes=new Tv(t,e),n.regions=new Lv(t,e),n}(),n.domains=new qv(t,e),n.subdomain=function(){var n={};return n.path=new tE(t,e),n}(),n.logSinks=new aE(t,e),n.notifications=new mE(t,e),n.registryCredentials=new yE(t,e),n.vcs=new DE(t,e),n.repos=new IE(t,e),n.branches=new RE(t,e),n.plans=new jE(t,e),n.projects=new SE(t,e),n.addons=new xE(t,e),n.jobs=new fA(t,e),n.pipelines=new KA(t,e),n.previewTemplatePreviews=new eb(t,e),n.previewTemplateRuns=new rb(t,e),n.releaseFlowRuns=new ab(t,e),n.secrets=new lb(t,e),n.services=new Cb(t,e),n.volumes=new oy(t,e),n.regions=new hy(t,e),n.tags=new py(t,e),n.templates=new by(t,e),n.templateRuns=new Dy(t,e),n}(),add:function(){var n={};return n.backupDestination=new pv(t,e),n.domain=function(){var n={};return n.subdomain=new Jv(t,e),n}(),n.subdomain=function(){var n={};return n.path=new Qv(t,e),n}(),n.registryCredentials=new gE(t,e),n.tag=new fy(t,e),n}(),patch:function(){var n={};return n.backupDestination=new mv(t,e),n.cloud=function(){var n={};return n.cluster=new Dv(t,e),n.integration=new kv(t,e),n}(),n.project=new PE(t,e),n.addon=new qE(t,e),n.job=function(){var n={};return n.cron=new EA(t,e),n.manual=new yA(t,e),n}(),n.secret=new fb(t,e),n.service=function(){var n={};return n.build=new Db(t,e),n.combined=new Rb(t,e),n.deployment=new _b(t,e),n}(),n.tag=new Ey(t,e),n}(),delete:function(){var n={};return n.backupDestination=new vv(t,e),n.cloud=function(){var n={};return n.cluster=new Bv(t,e),n.integration=new xv(t,e),n}(),n.domain=new zv(t,e),n.subdomain=function(){var n=new Hv(t,e);return n.path=new nE(t,e),n}(),n.logSink=new lE(t,e),n.notification=new bE(t,e),n.registryCredentials=new wE(t,e),n.project=new kE(t,e),n.addon=function(){var n=new ME(t,e);return n.backupSchedule=new $E(t,e),n}(),n.backup=new HE(t,e),n.job=new CA(t,e),n.previewTemplatePreview=new nb(t,e),n.secret=new vb(t,e),n.secretLink=new yb(t,e),n.service=new Pb(t,e),n.volume=new cy(t,e),n.tag=new Ay(t,e),n.template=new Fy(t,e),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new Cv(t,e),n.integration=new Uv(t,e),n}(),n.domain=new Mv(t,e),n.logSink=new cE(t,e),n.notification=new vE(t,e),n.customVcs=function(){var n={};return n.token=new BE(t,e),n}(),n.project=new _E(t,e),n.addon=function(){var n=new TE(t,e);return n.backupSchedule=new zE(t,e),n}(),n.job=function(){var n={};return n.cron=new mA(t,e),n.manual=new AA(t,e),n}(),n.secret=new hb(t,e),n.service=function(){var n={};return n.build=new Fb(t,e),n.combined=new Bb(t,e),n.deployment=new jb(t,e),n}(),n.volume=new iy(t,e),n.template=new yy(t,e),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new Fv(t,e),n.integration=new Pv(t,e),n}(),n.project=new UE(t,e),n.addon=new LE(t,e),n.job=function(){var n={};return n.cron=new vA(t,e),n.manual=new bA(t,e),n}(),n.secret=new pb(t,e),n.service=function(){var n={};return n.build=new wb(t,e),n.combined=new Ib(t,e),n.deployment=new Sb(t,e),n}(),n.tag=new my(t,e),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Rv(t,e),n}(),n}(),n}(),drain:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new jv(t,e),n}(),n}(),n}(),uncordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Sv(t,e),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new Wv(t,e),n.addon=function(){var n={};return n.backup=new rA(t,e),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Zv(t,e),n.path=new uE(t,e),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Yv(t,e);return n.path=new oE(t,e),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Kv(t,e),n}(),n}(),enable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Xv(t,e),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new rE(t,e),n}(),n.logSink=new fE(t,e),n.notification=new AE(t,e),n.registryCredentials=new FE(t,e),n.addon=function(){var n={};return n.networkSettings=new uA(t,e),n.security=new lA(t,e),n.version=new pA(t,e),n}(),n.job=function(){var n={};return n.buildArguments=new IA(t,e),n.buildOptions=new jA(t,e),n.buildSource=new SA(t,e),n.deployment=new kA(t,e),n.healthChecks=new TA(t,e),n.runtimeEnvironment=new JA(t,e),n.settings=new ZA(t,e),n}(),n.previewTemplate=new tb(t,e),n.releaseFlow=new ib(t,e),n.secret=new Eb(t,e),n.secretLink=new Ab(t,e),n.service=function(){var n={};return n.buildArguments=new Lb(t,e),n.buildOptions=new qb(t,e),n.buildSource=new Mb(t,e),n.deployment=new Jb(t,e),n.healthChecks=new Hb(t,e),n.ports=new Kb(t,e),n.runtimeEnvironment=new ny(t,e),n}(),n.volume=new ay(t,e),n.template=new Cy(t,e),n}(),verify:function(){var n={};return n.subdomain=new iE(t,e),n.domain=new sE(t,e),n}(),pause:function(){var n={};return n.logSink=new hE(t,e),n.addon=new oA(t,e),n.job=new LA(t,e),n.service=new Zb(t,e),n}(),resume:function(){var n={};return n.logSink=new pE(t,e),n.addon=new cA(t,e),n.job=new qA(t,e),n.service=new ty(t,e),n}(),backup:function(){var n={};return n.addon=new JE(t,e),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new ZE(t,e),n.restore=new YE(t,e),n}(),n.job=function(){var n={};return n.build=new UA(t,e),n.run=new $A(t,e),n}(),n.releaseFlowRun=new db(t,e),n.service=function(){var n={};return n.build=new zb(t,e),n}(),n.templateRun=new Iy(t,e),n}(),restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new XE(t,e),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new tA(t,e),n}(),n}(),reset:function(){var n={};return n.addon=new iA(t,e),n}(),restart:function(){var n={};return n.addon=new sA(t,e),n.service=new Qb(t,e),n}(),scale:function(){var n={};return n.addon=new dA(t,e),n.job=new HA(t,e),n.service=new uy(t,e),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new DA(t,e),n.run=new GA(t,e),n}(),n.service=function(){var n={};return n.build=new xb(t,e),n}(),n}(),suspend:function(){var n={};return n.job=new YA(t,e),n}(),run:function(){var n={};return n.releaseFlow=new sb(t,e),n.template=new wy(t,e),n}(),attach:function(){var n={};return n.volume=new dy(t,e),n}(),detach:function(){var n={};return n.volume=new ly(t,e),n}(),download:function(){var t={};return t.service=function(){var t={};return t.files=o.fileCopy.downloadServiceFiles.bind(o.fileCopy),t}(),t.job=function(){var t={};return t.files=o.fileCopy.downloadJobFiles.bind(o.fileCopy),t}(),t}(),upload:function(){var t={};return t.service=function(){var t={};return t.files=o.fileCopy.uploadServiceFiles.bind(o.fileCopy),t}(),t.job=function(){var t={};return t.files=o.fileCopy.uploadJobFiles.bind(o.fileCopy),t}(),t}()},this.download=function(){var t={};return t.service=function(){var t={};return t.files=o.endpoints.download.service.files,t}(),t.job=function(){var t={};return t.files=o.endpoints.download.job.files,t}(),t}(),this.upload=function(){var t={};return t.service=function(){var t={};return t.files=o.endpoints.upload.service.files,t}(),t.job=function(){var t={};return t.files=o.endpoints.upload.job.files,t}(),t}(),this.get=function(){var t={};return t.addon=function(){var t=o.endpoints.get.addon.call;return t.types=o.endpoints.get.addon.types.call,t.backupSchedules=function(){var t=o.endpoints.get.addon.backupSchedules.call;return t.all=o.endpoints.get.addon.backupSchedules.all,t}(),t.backups=function(){var t=o.endpoints.get.addon.backups.call;return t.all=o.endpoints.get.addon.backups.all,t}(),t.backup=function(){var t=o.endpoints.get.addon.backup.call;return t.download=o.endpoints.get.addon.backup.download.call,t.restores=function(){var t=o.endpoints.get.addon.backup.restores.call;return t.all=o.endpoints.get.addon.backup.restores.all,t}(),t.logs=o.logs.getAddonBackupLogs,t.logTail=o.logs.tailAddonBackupLogs,t}(),t.containers=function(){var t=o.endpoints.get.addon.containers.call;return t.all=o.endpoints.get.addon.containers.all,t}(),t.credentials=o.endpoints.get.addon.credentials.call,t.restores=function(){var t=function(){var t=o.endpoints.get.addon.restores.call;return t.all=o.endpoints.get.addon.restores.all,t}();return t.logs=o.logs.getAddonRestoresLogs,t.logTail=o.logs.tailAddonRestoresLogs,t}(),t.version=o.endpoints.get.addon.version.call,t.logs=o.logs.getAddonLogs,t.logTail=o.logs.tailAddonLogs,t.metrics=o.metrics.getAddonMetrics,t.metricsRange=o.metrics.getAddonMetricsRange,t}(),t.backupDestination=o.endpoints.get.backupDestination.call,t.invoice=function(){var t={};return t.details=o.endpoints.get.invoice.details.call,t}(),t.cloud=function(){var t={};return t.cluster=o.endpoints.get.cloud.cluster.call,t.integration=o.endpoints.get.cloud.integration.call,t}(),t.dnsId=o.endpoints.get.dnsId.call,t.domain=o.endpoints.get.domain.call,t.domainCertificate=o.endpoints.get.domainCertificate.call,t.subdomain=function(){var t=o.endpoints.get.subdomain.call;return t.path=o.endpoints.get.subdomain.path.call,t}(),t.logSink=o.endpoints.get.logSink.call,t.notification=o.endpoints.get.notification.call,t.registryCredentials=o.endpoints.get.registryCredentials.call,t.project=o.endpoints.get.project.call,t.job=function(){var t=o.endpoints.get.job.call;return t.branches=function(){var t=o.endpoints.get.job.branches.call;return t.all=o.endpoints.get.job.branches.all,t}(),t.builds=function(){var t=o.endpoints.get.job.builds.call;return t.all=o.endpoints.get.job.builds.all,t}(),t.buildArguments=o.endpoints.get.job.buildArguments.call,t.buildArgumentDetails=o.endpoints.get.job.buildArgumentDetails.call,t.build=o.endpoints.get.job.build.call,t.containers=function(){var t=o.endpoints.get.job.containers.call;return t.all=o.endpoints.get.job.containers.all,t}(),t.deployment=o.endpoints.get.job.deployment.call,t.healthChecks=o.endpoints.get.job.healthChecks.call,t.pullRequests=function(){var t=o.endpoints.get.job.pullRequests.call;return t.all=o.endpoints.get.job.pullRequests.all,t}(),t.runs=function(){var t=o.endpoints.get.job.runs.call;return t.all=o.endpoints.get.job.runs.all,t}(),t.run=o.endpoints.get.job.run.call,t.runtimeEnvironment=o.endpoints.get.job.runtimeEnvironment.call,t.runtimeEnvironmentDetails=o.endpoints.get.job.runtimeEnvironmentDetails.call,t.logs=o.logs.getJobLogs,t.buildLogs=o.logs.getJobBuildLogs,t.logTail=o.logs.tailJobLogs,t.buildLogTail=o.logs.tailJobBuildLogs,t.metrics=o.metrics.getJobMetrics,t.buildMetrics=o.metrics.getJobBuildMetrics,t.metricsRange=o.metrics.getJobMetricsRange,t.buildMetricsRange=o.metrics.getJobBuildMetricsRange,t}(),t.pipeline=o.endpoints.get.pipeline.call,t.previewTemplate=function(){var t=o.endpoints.get.previewTemplate.call;return t.all=o.endpoints.get.previewTemplate.all,t}(),t.previewTemplateRun=o.endpoints.get.previewTemplateRun.call,t.releaseFlow=o.endpoints.get.releaseFlow.call,t.releaseFlowRun=o.endpoints.get.releaseFlowRun.call,t.secret=o.endpoints.get.secret.call,t.secretLink=o.endpoints.get.secretLink.call,t.secretDetails=o.endpoints.get.secretDetails.call,t.service=function(){var t=o.endpoints.get.service.call;return t.branches=function(){var t=o.endpoints.get.service.branches.call;return t.all=o.endpoints.get.service.branches.all,t}(),t.builds=function(){var t=o.endpoints.get.service.builds.call;return t.all=o.endpoints.get.service.builds.all,t}(),t.buildArguments=o.endpoints.get.service.buildArguments.call,t.buildArgumentDetails=o.endpoints.get.service.buildArgumentDetails.call,t.build=o.endpoints.get.service.build.call,t.containers=function(){var t=o.endpoints.get.service.containers.call;return t.all=o.endpoints.get.service.containers.all,t}(),t.deployment=o.endpoints.get.service.deployment.call,t.healthChecks=o.endpoints.get.service.healthChecks.call,t.ports=o.endpoints.get.service.ports.call,t.pullRequests=function(){var t=o.endpoints.get.service.pullRequests.call;return t.all=o.endpoints.get.service.pullRequests.all,t}(),t.runtimeEnvironment=o.endpoints.get.service.runtimeEnvironment.call,t.runtimeEnvironmentDetails=o.endpoints.get.service.runtimeEnvironmentDetails.call,t.logs=o.logs.getServiceLogs,t.buildLogs=o.logs.getServiceBuildLogs,t.logTail=o.logs.tailServiceLogs,t.buildLogTail=o.logs.tailServiceBuildLogs,t.metrics=o.metrics.getServiceMetrics,t.buildMetrics=o.metrics.getServiceBuildMetrics,t.metricsRange=o.metrics.getServiceMetricsRange,t.buildMetricsRange=o.metrics.getServiceBuildMetricsRange,t}(),t.volume=o.endpoints.get.volume.call,t.tag=o.endpoints.get.tag.call,t.template=function(){var t=o.endpoints.get.template.call;return t.all=o.endpoints.get.template.all,t}(),t.templateRun=o.endpoints.get.templateRun.call,t}(),this.list=function(){var t={};return t.backupDestinations=function(){var t=o.endpoints.list.backupDestinations.call;return t.all=o.endpoints.list.backupDestinations.all,t}(),t.backupDestinationsBackups=function(){var t=o.endpoints.list.backupDestinationsBackups.call;return t.all=o.endpoints.list.backupDestinationsBackups.all,t}(),t.invoices=function(){var t=o.endpoints.list.invoices.call;return t.all=o.endpoints.list.invoices.all,t}(),t.cloud=function(){var t={};return t.providers=o.endpoints.list.cloud.providers.call,t.clusters=function(){var t=o.endpoints.list.cloud.clusters.call;return t.all=o.endpoints.list.cloud.clusters.all,t}(),t.cluster=function(){var t={};return t.nodes=function(){var t=o.endpoints.list.cloud.cluster.nodes.call;return t.all=o.endpoints.list.cloud.cluster.nodes.all,t}(),t}(),t.integrations=function(){var t=o.endpoints.list.cloud.integrations.call;return t.all=o.endpoints.list.cloud.integrations.all,t}(),t.nodeTypes=function(){var t=o.endpoints.list.cloud.nodeTypes.call;return t.all=o.endpoints.list.cloud.nodeTypes.all,t}(),t.regions=function(){var t=o.endpoints.list.cloud.regions.call;return t.all=o.endpoints.list.cloud.regions.all,t}(),t}(),t.domains=function(){var t=o.endpoints.list.domains.call;return t.all=o.endpoints.list.domains.all,t}(),t.subdomain=function(){var t={};return t.path=o.endpoints.list.subdomain.path.call,t}(),t.logSinks=function(){var t=o.endpoints.list.logSinks.call;return t.all=o.endpoints.list.logSinks.all,t}(),t.notifications=function(){var t=o.endpoints.list.notifications.call;return t.all=o.endpoints.list.notifications.all,t}(),t.registryCredentials=function(){var t=o.endpoints.list.registryCredentials.call;return t.all=o.endpoints.list.registryCredentials.all,t}(),t.vcs=o.endpoints.list.vcs.call,t.repos=function(){var t=o.endpoints.list.repos.call;return t.all=o.endpoints.list.repos.all,t}(),t.branches=function(){var t=o.endpoints.list.branches.call;return t.all=o.endpoints.list.branches.all,t}(),t.plans=o.endpoints.list.plans.call,t.projects=function(){var t=o.endpoints.list.projects.call;return t.all=o.endpoints.list.projects.all,t}(),t.addons=function(){var t=o.endpoints.list.addons.call;return t.all=o.endpoints.list.addons.all,t}(),t.jobs=function(){var t=o.endpoints.list.jobs.call;return t.all=o.endpoints.list.jobs.all,t}(),t.pipelines=function(){var t=o.endpoints.list.pipelines.call;return t.all=o.endpoints.list.pipelines.all,t}(),t.previewTemplatePreviews=function(){var t=o.endpoints.list.previewTemplatePreviews.call;return t.all=o.endpoints.list.previewTemplatePreviews.all,t}(),t.previewTemplateRuns=function(){var t=o.endpoints.list.previewTemplateRuns.call;return t.all=o.endpoints.list.previewTemplateRuns.all,t}(),t.releaseFlowRuns=function(){var t=o.endpoints.list.releaseFlowRuns.call;return t.all=o.endpoints.list.releaseFlowRuns.all,t}(),t.secrets=function(){var t=o.endpoints.list.secrets.call;return t.all=o.endpoints.list.secrets.all,t}(),t.services=function(){var t=o.endpoints.list.services.call;return t.all=o.endpoints.list.services.all,t}(),t.volumes=o.endpoints.list.volumes.call,t.regions=o.endpoints.list.regions.call,t.tags=function(){var t=o.endpoints.list.tags.call;return t.all=o.endpoints.list.tags.all,t}(),t.templates=function(){var t=o.endpoints.list.templates.call;return t.all=o.endpoints.list.templates.all,t}(),t.templateRuns=function(){var t=o.endpoints.list.templateRuns.call;return t.all=o.endpoints.list.templateRuns.all,t}(),t}(),this.add=function(){var t={};return t.backupDestination=o.endpoints.add.backupDestination.call,t.domain=function(){var t={};return t.subdomain=o.endpoints.add.domain.subdomain.call,t}(),t.subdomain=function(){var t={};return t.path=o.endpoints.add.subdomain.path.call,t}(),t.registryCredentials=o.endpoints.add.registryCredentials.call,t.tag=o.endpoints.add.tag.call,t}(),this.patch=function(){var t={};return t.backupDestination=o.endpoints.patch.backupDestination.call,t.cloud=function(){var t={};return t.cluster=o.endpoints.patch.cloud.cluster.call,t.integration=o.endpoints.patch.cloud.integration.call,t}(),t.project=o.endpoints.patch.project.call,t.addon=o.endpoints.patch.addon.call,t.job=function(){var t={};return t.cron=o.endpoints.patch.job.cron.call,t.manual=o.endpoints.patch.job.manual.call,t}(),t.secret=o.endpoints.patch.secret.call,t.service=function(){var t={};return t.build=o.endpoints.patch.service.build.call,t.combined=o.endpoints.patch.service.combined.call,t.deployment=o.endpoints.patch.service.deployment.call,t}(),t.tag=o.endpoints.patch.tag.call,t}(),this.delete=function(){var t={};return t.backupDestination=o.endpoints.delete.backupDestination.call,t.cloud=function(){var t={};return t.cluster=o.endpoints.delete.cloud.cluster.call,t.integration=o.endpoints.delete.cloud.integration.call,t}(),t.domain=o.endpoints.delete.domain.call,t.subdomain=function(){var t=o.endpoints.delete.subdomain.call;return t.path=o.endpoints.delete.subdomain.path.call,t}(),t.logSink=o.endpoints.delete.logSink.call,t.notification=o.endpoints.delete.notification.call,t.registryCredentials=o.endpoints.delete.registryCredentials.call,t.project=o.endpoints.delete.project.call,t.addon=function(){var t=o.endpoints.delete.addon.call;return t.backupSchedule=o.endpoints.delete.addon.backupSchedule.call,t}(),t.backup=o.endpoints.delete.backup.call,t.job=o.endpoints.delete.job.call,t.previewTemplatePreview=o.endpoints.delete.previewTemplatePreview.call,t.secret=o.endpoints.delete.secret.call,t.secretLink=o.endpoints.delete.secretLink.call,t.service=o.endpoints.delete.service.call,t.volume=o.endpoints.delete.volume.call,t.tag=o.endpoints.delete.tag.call,t.template=o.endpoints.delete.template.call,t}(),this.create=function(){var t={};return t.cloud=function(){var t={};return t.cluster=o.endpoints.create.cloud.cluster.call,t.integration=o.endpoints.create.cloud.integration.call,t}(),t.domain=o.endpoints.create.domain.call,t.logSink=o.endpoints.create.logSink.call,t.notification=o.endpoints.create.notification.call,t.customVcs=function(){var t={};return t.token=o.endpoints.create.customVcs.token.call,t}(),t.project=o.endpoints.create.project.call,t.addon=function(){var t=o.endpoints.create.addon.call;return t.backupSchedule=o.endpoints.create.addon.backupSchedule.call,t}(),t.job=function(){var t={};return t.cron=o.endpoints.create.job.cron.call,t.manual=o.endpoints.create.job.manual.call,t}(),t.secret=o.endpoints.create.secret.call,t.service=function(){var t={};return t.build=o.endpoints.create.service.build.call,t.combined=o.endpoints.create.service.combined.call,t.deployment=o.endpoints.create.service.deployment.call,t}(),t.volume=o.endpoints.create.volume.call,t.template=o.endpoints.create.template.call,t}(),this.put=function(){var t={};return t.cloud=function(){var t={};return t.cluster=o.endpoints.put.cloud.cluster.call,t.integration=o.endpoints.put.cloud.integration.call,t}(),t.project=o.endpoints.put.project.call,t.addon=o.endpoints.put.addon.call,t.job=function(){var t={};return t.cron=o.endpoints.put.job.cron.call,t.manual=o.endpoints.put.job.manual.call,t}(),t.secret=o.endpoints.put.secret.call,t.service=function(){var t={};return t.build=o.endpoints.put.service.build.call,t.combined=o.endpoints.put.service.combined.call,t.deployment=o.endpoints.put.service.deployment.call,t}(),t.tag=o.endpoints.put.tag.call,t}(),this.cordon=function(){var t={};return t.cloud=function(){var t={};return t.cluster=function(){var t={};return t.node=o.endpoints.cordon.cloud.cluster.node.call,t}(),t}(),t}(),this.drain=function(){var t={};return t.cloud=function(){var t={};return t.cluster=function(){var t={};return t.node=o.endpoints.drain.cloud.cluster.node.call,t}(),t}(),t}(),this.uncordon=function(){var t={};return t.cloud=function(){var t={};return t.cluster=function(){var t={};return t.node=o.endpoints.uncordon.cloud.cluster.node.call,t}(),t}(),t}(),this.import=function(){var t={};return t.domainCertificate=o.endpoints.import.domainCertificate.call,t.addon=function(){var t={};return t.backup=o.endpoints.import.addon.backup.call,t}(),t}(),this.assign=function(){var t={};return t.subdomain=function(){var t={};return t.service=o.endpoints.assign.subdomain.service.call,t.path=o.endpoints.assign.subdomain.path.call,t}(),t}(),this.unassign=function(){var t={};return t.subdomain=function(){var t=o.endpoints.unassign.subdomain.call;return t.path=o.endpoints.unassign.subdomain.path.call,t}(),t}(),this.disable=function(){var t={};return t.subdomain=function(){var t={};return t.cdn=o.endpoints.disable.subdomain.cdn.call,t}(),t}(),this.enable=function(){var t={};return t.subdomain=function(){var t={};return t.cdn=o.endpoints.enable.subdomain.cdn.call,t}(),t}(),this.update=function(){var t={};return t.subdomain=function(){var t={};return t.path=o.endpoints.update.subdomain.path.call,t}(),t.logSink=o.endpoints.update.logSink.call,t.notification=o.endpoints.update.notification.call,t.registryCredentials=o.endpoints.update.registryCredentials.call,t.addon=function(){var t={};return t.networkSettings=o.endpoints.update.addon.networkSettings.call,t.security=o.endpoints.update.addon.security.call,t.version=o.endpoints.update.addon.version.call,t}(),t.job=function(){var t={};return t.buildArguments=o.endpoints.update.job.buildArguments.call,t.buildOptions=o.endpoints.update.job.buildOptions.call,t.buildSource=o.endpoints.update.job.buildSource.call,t.deployment=o.endpoints.update.job.deployment.call,t.healthChecks=o.endpoints.update.job.healthChecks.call,t.runtimeEnvironment=o.endpoints.update.job.runtimeEnvironment.call,t.settings=o.endpoints.update.job.settings.call,t}(),t.previewTemplate=o.endpoints.update.previewTemplate.call,t.releaseFlow=o.endpoints.update.releaseFlow.call,t.secret=o.endpoints.update.secret.call,t.secretLink=o.endpoints.update.secretLink.call,t.service=function(){var t={};return t.buildArguments=o.endpoints.update.service.buildArguments.call,t.buildOptions=o.endpoints.update.service.buildOptions.call,t.buildSource=o.endpoints.update.service.buildSource.call,t.deployment=o.endpoints.update.service.deployment.call,t.healthChecks=o.endpoints.update.service.healthChecks.call,t.ports=o.endpoints.update.service.ports.call,t.runtimeEnvironment=o.endpoints.update.service.runtimeEnvironment.call,t}(),t.volume=o.endpoints.update.volume.call,t.template=o.endpoints.update.template.call,t}(),this.verify=function(){var t={};return t.subdomain=o.endpoints.verify.subdomain.call,t.domain=o.endpoints.verify.domain.call,t}(),this.pause=function(){var t={};return t.logSink=o.endpoints.pause.logSink.call,t.addon=o.endpoints.pause.addon.call,t.job=o.endpoints.pause.job.call,t.service=o.endpoints.pause.service.call,t}(),this.resume=function(){var t={};return t.logSink=o.endpoints.resume.logSink.call,t.addon=o.endpoints.resume.addon.call,t.job=o.endpoints.resume.job.call,t.service=o.endpoints.resume.service.call,t}(),this.backup=function(){var t={};return t.addon=o.endpoints.backup.addon.call,t}(),this.abort=function(){var t={};return t.addon=function(){var t={};return t.backup=o.endpoints.abort.addon.backup.call,t.restore=o.endpoints.abort.addon.restore.call,t}(),t.job=function(){var t={};return t.build=o.endpoints.abort.job.build.call,t.run=o.endpoints.abort.job.run.call,t}(),t.releaseFlowRun=o.endpoints.abort.releaseFlowRun.call,t.service=function(){var t={};return t.build=o.endpoints.abort.service.build.call,t}(),t.templateRun=o.endpoints.abort.templateRun.call,t}(),this.restore=function(){var t={};return t.addon=function(){var t={};return t.backup=o.endpoints.restore.addon.backup.call,t}(),t}(),this.retain=function(){var t={};return t.addon=function(){var t={};return t.backup=o.endpoints.retain.addon.backup.call,t}(),t}(),this.reset=function(){var t={};return t.addon=o.endpoints.reset.addon.call,t}(),this.restart=function(){var t={};return t.addon=o.endpoints.restart.addon.call,t.service=o.endpoints.restart.service.call,t}(),this.scale=function(){var t={};return t.addon=o.endpoints.scale.addon.call,t.job=o.endpoints.scale.job.call,t.service=o.endpoints.scale.service.call,t}(),this.start=function(){var t={};return t.job=function(){var t={};return t.build=o.endpoints.start.job.build.call,t.run=o.endpoints.start.job.run.call,t}(),t.service=function(){var t={};return t.build=o.endpoints.start.service.build.call,t}(),t}(),this.suspend=function(){var t={};return t.job=o.endpoints.suspend.job.call,t}(),this.run=function(){var t={};return t.releaseFlow=o.endpoints.run.releaseFlow.call,t.template=o.endpoints.run.template.call,t}(),this.attach=function(){var t={};return t.volume=o.endpoints.attach.volume.call,t}(),this.detach=function(){var t={};return t.volume=o.endpoints.detach.volume.call,t}()};export{ZE as AbortAddonBackupEndpoint,YE as AbortAddonRestoreEndpoint,UA as AbortJobBuildEndpoint,$A as AbortJobRunEndpoint,db as AbortReleaseflowrunEndpoint,zb as AbortServiceBuildEndpoint,Iy as AbortTemplaterunEndpoint,pv as AddBackupdestinationEndpoint,Jv as AddDomainSubdomainEndpoint,gE as AddRegistrycredentialsEndpoint,Qv as AddSubdomainPathEndpoint,fy as AddTagEndpoint,_y as ApiClient,Ry as ApiClientContextProvider,jy as ApiClientFileContextProvider,Sy as ApiClientInMemoryContextProvider,Zm as ApiEndpoint,uE as AssignSubdomainPathEndpoint,Zv as AssignSubdomainServiceEndpoint,dy as AttachVolumeEndpoint,JE as BackupAddonEndpoint,Gm as CopyType,Rv as CordonCloudClusterNodeEndpoint,zE as CreateAddonBackupscheduleEndpoint,TE as CreateAddonEndpoint,Cv as CreateCloudClusterEndpoint,Uv as CreateCloudIntegrationEndpoint,BE as CreateCustomvcsTokenEndpoint,Mv as CreateDomainEndpoint,mA as CreateJobCronEndpoint,AA as CreateJobManualEndpoint,cE as CreateLogsinkEndpoint,vE as CreateNotificationEndpoint,_E as CreateProjectEndpoint,hb as CreateSecretEndpoint,Fb as CreateServiceBuildEndpoint,Bb as CreateServiceCombinedEndpoint,jb as CreateServiceDeploymentEndpoint,yy as CreateTemplateEndpoint,iy as CreateVolumeEndpoint,$E as DeleteAddonBackupscheduleEndpoint,ME as DeleteAddonEndpoint,Qm as DeleteApiEndpoint,HE as DeleteBackupEndpoint,vv as DeleteBackupdestinationEndpoint,Bv as DeleteCloudClusterEndpoint,xv as DeleteCloudIntegrationEndpoint,zv as DeleteDomainEndpoint,CA as DeleteJobEndpoint,lE as DeleteLogsinkEndpoint,bE as DeleteNotificationEndpoint,nb as DeletePreviewtemplatepreviewEndpoint,kE as DeleteProjectEndpoint,wE as DeleteRegistrycredentialsEndpoint,vb as DeleteSecretEndpoint,yb as DeleteSecretlinkEndpoint,Pb as DeleteServiceEndpoint,Hv as DeleteSubdomainEndpoint,nE as DeleteSubdomainPathEndpoint,Ay as DeleteTagEndpoint,Fy as DeleteTemplateEndpoint,cy as DeleteVolumeEndpoint,ly as DetachVolumeEndpoint,Kv as DisableSubdomainCdnEndpoint,jv as DrainCloudClusterNodeEndpoint,Xv as EnableSubdomainCdnEndpoint,Qa as ExecCommandStandard,KE as GetAddonBackupDownloadEndpoint,VE as GetAddonBackupEndpoint,QE as GetAddonBackupRestoresEndpoint,WE as GetAddonBackupsEndpoint,GE as GetAddonBackupschedulesEndpoint,eA as GetAddonContainersEndpoint,nA as GetAddonCredentialsEndpoint,NE as GetAddonEndpoint,aA as GetAddonRestoresEndpoint,lv as GetAddonTypesEndpoint,hA as GetAddonVersionEndpoint,Ym as GetApiEndpoint,Km as GetApiEndpointPaginated,fv as GetBackupdestinationEndpoint,wv as GetCloudClusterEndpoint,Ov as GetCloudIntegrationEndpoint,Nv as GetDnsidEndpoint,Gv as GetDomainEndpoint,$v as GetDomaincertificateEndpoint,bv as GetInvoiceDetailsEndpoint,FA as GetJobBranchesEndpoint,_A as GetJobBuildEndpoint,RA as GetJobBuildargumentdetailsEndpoint,BA as GetJobBuildargumentsEndpoint,wA as GetJobBuildsEndpoint,PA as GetJobContainersEndpoint,OA as GetJobDeploymentEndpoint,gA as GetJobEndpoint,xA as GetJobHealthchecksEndpoint,NA as GetJobPullrequestsEndpoint,zA as GetJobRunEndpoint,MA as GetJobRunsEndpoint,WA as GetJobRuntimeenvironmentEndpoint,VA as GetJobRuntimeenvironmentdetailsEndpoint,dE as GetLogsinkEndpoint,EE as GetNotificationEndpoint,XA as GetPipelineEndpoint,QA as GetPreviewtemplateEndpoint,ub as GetPreviewtemplaterunEndpoint,OE as GetProjectEndpoint,CE as GetRegistrycredentialsEndpoint,ob as GetReleaseflowEndpoint,cb as GetReleaseflowrunEndpoint,mb as GetSecretEndpoint,gb as GetSecretdetailsEndpoint,bb as GetSecretlinkEndpoint,Ob as GetServiceBranchesEndpoint,Gb as GetServiceBuildEndpoint,Nb as GetServiceBuildargumentdetailsEndpoint,Tb as GetServiceBuildargumentsEndpoint,kb as GetServiceBuildsEndpoint,$b as GetServiceContainersEndpoint,Wb as GetServiceDeploymentEndpoint,Ub as GetServiceEndpoint,Vb as GetServiceHealthchecksEndpoint,Yb as GetServicePortsEndpoint,Xb as GetServicePullrequestsEndpoint,ey as GetServiceRuntimeenvironmentEndpoint,ry as GetServiceRuntimeenvironmentdetailsEndpoint,Vv as GetSubdomainEndpoint,eE as GetSubdomainPathEndpoint,vy as GetTagEndpoint,gy as GetTemplateEndpoint,By as GetTemplaterunEndpoint,sy as GetVolumeEndpoint,rA as ImportAddonBackupEndpoint,Wv as ImportDomaincertificateEndpoint,xE as ListAddonsEndpoint,hv as ListBackupdestinationsEndpoint,Ev as ListBackupdestinationsbackupsEndpoint,RE as ListBranchesEndpoint,Iv as ListCloudClusterNodesEndpoint,gv as ListCloudClustersEndpoint,_v as ListCloudIntegrationsEndpoint,Tv as ListCloudNodetypesEndpoint,yv as ListCloudProvidersEndpoint,Lv as ListCloudRegionsEndpoint,qv as ListDomainsEndpoint,Av as ListInvoicesEndpoint,fA as ListJobsEndpoint,aE as ListLogsinksEndpoint,mE as ListNotificationsEndpoint,KA as ListPipelinesEndpoint,jE as ListPlansEndpoint,eb as ListPreviewtemplatepreviewsEndpoint,rb as ListPreviewtemplaterunsEndpoint,SE as ListProjectsEndpoint,hy as ListRegionsEndpoint,yE as ListRegistrycredentialsEndpoint,ab as ListReleaseflowrunsEndpoint,IE as ListReposEndpoint,lb as ListSecretsEndpoint,Cb as ListServicesEndpoint,tE as ListSubdomainPathEndpoint,py as ListTagsEndpoint,Dy as ListTemplaterunsEndpoint,by as ListTemplatesEndpoint,DE as ListVcsEndpoint,oy as ListVolumesEndpoint,$m as LogType,ov as MetricType,Jm as NorthflankApiCallError,tc as NorthflankExecCommand,Wm as NorthflankFileCopy,sv as NorthflankLogFetch,dv as NorthflankMetricFetch,Ka as NorthflankPortForwarder,qE as PatchAddonEndpoint,ev as PatchApiEndpoint,mv as PatchBackupdestinationEndpoint,Dv as PatchCloudClusterEndpoint,kv as PatchCloudIntegrationEndpoint,EA as PatchJobCronEndpoint,yA as PatchJobManualEndpoint,PE as PatchProjectEndpoint,fb as PatchSecretEndpoint,Db as PatchServiceBuildEndpoint,Rb as PatchServiceCombinedEndpoint,_b as PatchServiceDeploymentEndpoint,Ey as PatchTagEndpoint,oA as PauseAddonEndpoint,LA as PauseJobEndpoint,hE as PauseLogsinkEndpoint,Zb as PauseServiceEndpoint,Xm as PostApiEndpoint,LE as PutAddonEndpoint,tv as PutApiEndpoint,Fv as PutCloudClusterEndpoint,Pv as PutCloudIntegrationEndpoint,vA as PutJobCronEndpoint,bA as PutJobManualEndpoint,UE as PutProjectEndpoint,pb as PutSecretEndpoint,wb as PutServiceBuildEndpoint,Ib as PutServiceCombinedEndpoint,Sb as PutServiceDeploymentEndpoint,my as PutTagEndpoint,iA as ResetAddonEndpoint,sA as RestartAddonEndpoint,Qb as RestartServiceEndpoint,XE as RestoreAddonBackupEndpoint,cA as ResumeAddonEndpoint,qA as ResumeJobEndpoint,pE as ResumeLogsinkEndpoint,ty as ResumeServiceEndpoint,tA as RetainAddonBackupEndpoint,sb as RunReleaseflowEndpoint,wy as RunTemplateEndpoint,dA as ScaleAddonEndpoint,HA as ScaleJobEndpoint,uy as ScaleServiceEndpoint,DA as StartJobBuildEndpoint,GA as StartJobRunEndpoint,xb as StartServiceBuildEndpoint,YA as SuspendJobEndpoint,Yv as UnassignSubdomainEndpoint,oE as UnassignSubdomainPathEndpoint,Sv as UncordonCloudClusterNodeEndpoint,uA as UpdateAddonNetworksettingsEndpoint,lA as UpdateAddonSecurityEndpoint,pA as UpdateAddonVersionEndpoint,IA as UpdateJobBuildargumentsEndpoint,jA as UpdateJobBuildoptionsEndpoint,SA as UpdateJobBuildsourceEndpoint,kA as UpdateJobDeploymentEndpoint,TA as UpdateJobHealthchecksEndpoint,JA as UpdateJobRuntimeenvironmentEndpoint,ZA as UpdateJobSettingsEndpoint,fE as UpdateLogsinkEndpoint,AE as UpdateNotificationEndpoint,tb as UpdatePreviewtemplateEndpoint,FE as UpdateRegistrycredentialsEndpoint,ib as UpdateReleaseflowEndpoint,Eb as UpdateSecretEndpoint,Ab as UpdateSecretlinkEndpoint,Lb as UpdateServiceBuildargumentsEndpoint,qb as UpdateServiceBuildoptionsEndpoint,Mb as UpdateServiceBuildsourceEndpoint,Jb as UpdateServiceDeploymentEndpoint,Hb as UpdateServiceHealthchecksEndpoint,Kb as UpdateServicePortsEndpoint,ny as UpdateServiceRuntimeenvironmentEndpoint,rE as UpdateSubdomainPathEndpoint,Cy as UpdateTemplateEndpoint,ay as UpdateVolumeEndpoint,sE as VerifyDomainEndpoint,iE as VerifySubdomainEndpoint};
|
|
1
|
+
import e,{EventEmitter as t}from"events";import{execSync as n,spawn as r}from"child_process";import*as o from"node:stream";import u,{Transform as i,Readable as s}from"node:stream";import a from"stream";import c from"http";import d,{fileURLToPath as l}from"url";import h from"https";import*as p from"zlib";import f from"zlib";import m from"os";import*as v from"net";import E,{Socket as A}from"net";import b,{mkdir as y,stat as g,statSync as C,mkdirSync as w}from"fs";import F,{parse as D,dirname as B,resolve as I}from"path";import S from"tls";import R from"crypto";import j,{Buffer as _}from"buffer";import U from"dgram";import{EventEmitter as P}from"node:events";import{StringDecoder as O}from"node:string_decoder";import k,{posix as x,basename as T,win32 as L,join as N}from"node:path";import q from"node:fs";import M from"assert";import G from"node:assert";import{randomBytes as z}from"node:crypto";var $=function(e,t){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$(e,t)};function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J.apply(this,arguments)};function V(e,t,n,r){return new(n||(n=Promise))(function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}a((r=r.apply(e,t||[])).next())})}function H(e,t){var n,r,o,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return u.label++,{value:s[1],done:!1};case 5:u.label++,r=s[1],s=[0];continue;case 7:s=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){u=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){u.label=s[1];break}if(6===s[0]&&u.label<o[1]){u.label=o[1],o=s;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(s);break}o[2]&&u.ops.pop(),u.trys.pop();continue}s=t.call(e,u)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function Z(e,t,n){if(n||2===arguments.length)for(var r,o=0,u=t.length;o<u;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Y="object"==typeof global&&global&&global.Object===Object&&global,K="object"==typeof self&&self&&self.Object===Object&&self,X=Y||K||Function("return this")(),Q=X.Symbol,ee=Object.prototype,te=ee.hasOwnProperty,ne=ee.toString,re=Q?Q.toStringTag:void 0;var oe=Object.prototype.toString;var ue=Q?Q.toStringTag:void 0;function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ue&&ue in Object(e)?function(e){var t=te.call(e,re),n=e[re];try{e[re]=void 0;var r=!0}catch(e){}var o=ne.call(e);return r&&(t?e[re]=n:delete e[re]),o}(e):function(e){return oe.call(e)}(e)}function se(e){return null!=e&&"object"==typeof e}function ae(e){return"symbol"==typeof e||se(e)&&"[object Symbol]"==ie(e)}function ce(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var de=Array.isArray,le=Q?Q.prototype:void 0,he=le?le.toString:void 0;function pe(e){if("string"==typeof e)return e;if(de(e))return ce(e,pe)+"";if(ae(e))return he?he.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function me(e){return e}function ve(e){if(!fe(e))return!1;var t=ie(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Ee,Ae=X["__core-js_shared__"],be=(Ee=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+Ee:"";var ye=Function.prototype.toString;function ge(e){if(null!=e){try{return ye.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ce=/^\[object .+?Constructor\]$/,we=Function.prototype,Fe=Object.prototype,De=we.toString,Be=Fe.hasOwnProperty,Ie=RegExp("^"+De.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Se(e){return!(!fe(e)||(t=e,be&&be in t))&&(ve(e)?Ie:Ce).test(ge(e));var t}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Se(n)?n:void 0}var je=Re(X,"WeakMap"),_e=Object.create,Ue=function(){function e(){}return function(t){if(!fe(t))return{};if(_e)return _e(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Pe=Date.now;var Oe,ke,xe,Te=function(){try{var e=Re(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Le=Te,Ne=Le?function(e,t){return Le(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:me,qe=(Oe=Ne,ke=0,xe=0,function(){var e=Pe(),t=16-(e-xe);if(xe=e,t>0){if(++ke>=800)return arguments[0]}else ke=0;return Oe.apply(void 0,arguments)}),Me=/^(?:0|[1-9]\d*)$/;function Ge(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Me.test(e))&&e>-1&&e%1==0&&e<t}function ze(e,t,n){"__proto__"==t&&Le?Le(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $e(e,t){return e===t||e!=e&&t!=t}var We=Object.prototype.hasOwnProperty;function Je(e,t,n){var r=e[t];We.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||ze(e,t,n)}var Ve=Math.max;function He(e,t){return qe(function(e,t,n){return t=Ve(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=Ve(r.length-t,0),i=Array(u);++o<u;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,me),e+"")}function Ze(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ye(e){return null!=e&&Ze(e.length)&&!ve(e)}var Ke=Object.prototype;function Xe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ke)}function Qe(e){return se(e)&&"[object Arguments]"==ie(e)}var et=Object.prototype,tt=et.hasOwnProperty,nt=et.propertyIsEnumerable,rt=Qe(function(){return arguments}())?Qe:function(e){return se(e)&&tt.call(e,"callee")&&!nt.call(e,"callee")};var ot="object"==typeof exports&&exports&&!exports.nodeType&&exports,ut=ot&&"object"==typeof module&&module&&!module.nodeType&&module,it=ut&&ut.exports===ot?X.Buffer:void 0,st=(it?it.isBuffer:void 0)||function(){return!1},at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1;var ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,dt=ct&&"object"==typeof module&&module&&!module.nodeType&&module,lt=dt&&dt.exports===ct&&Y.process,ht=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||lt&<.binding&<.binding("util")}catch(e){}}(),pt=ht&&ht.isTypedArray,ft=pt?function(e){return function(t){return e(t)}}(pt):function(e){return se(e)&&Ze(e.length)&&!!at[ie(e)]},mt=ft,vt=Object.prototype.hasOwnProperty;function Et(e,t){var n=de(e),r=!n&&rt(e),o=!n&&!r&&st(e),u=!n&&!r&&!o&&mt(e),i=n||r||o||u,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=s.length;for(var c in e)!t&&!vt.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||u&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ge(c,a))||s.push(c);return s}function At(e,t){return function(n){return e(t(n))}}var bt=At(Object.keys,Object),yt=Object.prototype.hasOwnProperty;function gt(e){return Ye(e)?Et(e):function(e){if(!Xe(e))return bt(e);var t=[];for(var n in Object(e))yt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Ct=Object.prototype.hasOwnProperty;function wt(e){if(!fe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Xe(e),n=[];for(var r in e)("constructor"!=r||!t&&Ct.call(e,r))&&n.push(r);return n}function Ft(e){return Ye(e)?Et(e,!0):wt(e)}var Dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/;function It(e,t){if(de(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ae(e))||(Bt.test(e)||!Dt.test(e)||null!=t&&e in Object(t))}var St=Re(Object,"create");var Rt=Object.prototype.hasOwnProperty;var jt=Object.prototype.hasOwnProperty;function _t(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ut(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}_t.prototype.clear=function(){this.__data__=St?St(null):{},this.size=0},_t.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_t.prototype.get=function(e){var t=this.__data__;if(St){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Rt.call(t,e)?t[e]:void 0},_t.prototype.has=function(e){var t=this.__data__;return St?void 0!==t[e]:jt.call(t,e)},_t.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=St&&void 0===t?"__lodash_hash_undefined__":t,this};var Pt=Array.prototype.splice;function Ot(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ot.prototype.clear=function(){this.__data__=[],this.size=0},Ot.prototype.delete=function(e){var t=this.__data__,n=Ut(t,e);return!(n<0)&&(n==t.length-1?t.pop():Pt.call(t,n,1),--this.size,!0)},Ot.prototype.get=function(e){var t=this.__data__,n=Ut(t,e);return n<0?void 0:t[n][1]},Ot.prototype.has=function(e){return Ut(this.__data__,e)>-1},Ot.prototype.set=function(e,t){var n=this.__data__,r=Ut(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var kt=Re(X,"Map");function xt(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tt.prototype.clear=function(){this.size=0,this.__data__={hash:new _t,map:new(kt||Ot),string:new _t}},Tt.prototype.delete=function(e){var t=xt(this,e).delete(e);return this.size-=t?1:0,t},Tt.prototype.get=function(e){return xt(this,e).get(e)},Tt.prototype.has=function(e){return xt(this,e).has(e)},Tt.prototype.set=function(e,t){var n=xt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Lt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var i=e.apply(this,r);return n.cache=u.set(o,i)||u,i};return n.cache=new(Lt.Cache||Tt),n}Lt.Cache=Tt;var Nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/\\(\\)?/g,Mt=function(e){var t=Lt(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Nt,function(e,n,r,o){t.push(r?o.replace(qt,"$1"):n||e)}),t}),Gt=Mt;function zt(e){return null==e?"":pe(e)}function $t(e,t){return de(e)?e:It(e,t)?[e]:Gt(zt(e))}function Wt(e){if("string"==typeof e||ae(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Jt(e,t){for(var n=0,r=(t=$t(t,e)).length;null!=e&&n<r;)e=e[Wt(t[n++])];return n&&n==r?e:void 0}function Vt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ht=Q?Q.isConcatSpreadable:void 0;function Zt(e){return de(e)||rt(e)||!!(Ht&&e&&e[Ht])}function Yt(e,t,n,r,o){var u=-1,i=e.length;for(n||(n=Zt),o||(o=[]);++u<i;){var s=e[u];t>0&&n(s)?t>1?Yt(s,t-1,n,r,o):Vt(o,s):r||(o[o.length]=s)}return o}var Kt=At(Object.getPrototypeOf,Object),Xt=Function.prototype,Qt=Object.prototype,en=Xt.toString,tn=Qt.hasOwnProperty,nn=en.call(Object);function rn(e){var t=this.__data__=new Ot(e);this.size=t.size}rn.prototype.clear=function(){this.__data__=new Ot,this.size=0},rn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},rn.prototype.get=function(e){return this.__data__.get(e)},rn.prototype.has=function(e){return this.__data__.has(e)},rn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ot){var r=n.__data__;if(!kt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tt(r)}return n.set(e,t),this.size=n.size,this};var on="object"==typeof exports&&exports&&!exports.nodeType&&exports,un=on&&"object"==typeof module&&module&&!module.nodeType&&module,sn=un&&un.exports===on?X.Buffer:void 0,an=sn?sn.allocUnsafe:void 0;var cn=Object.prototype.propertyIsEnumerable,dn=Object.getOwnPropertySymbols,ln=dn?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,u=[];++n<r;){var i=e[n];t(i,n,e)&&(u[o++]=i)}return u}(dn(e),function(t){return cn.call(e,t)}))}:function(){return[]};function hn(e){return function(e,t,n){var r=t(e);return de(e)?r:Vt(r,n(e))}(e,gt,ln)}var pn=Re(X,"DataView"),fn=Re(X,"Promise"),mn=Re(X,"Set"),vn="[object Map]",En="[object Promise]",An="[object Set]",bn="[object WeakMap]",yn="[object DataView]",gn=ge(pn),Cn=ge(kt),wn=ge(fn),Fn=ge(mn),Dn=ge(je),Bn=ie;(pn&&Bn(new pn(new ArrayBuffer(1)))!=yn||kt&&Bn(new kt)!=vn||fn&&Bn(fn.resolve())!=En||mn&&Bn(new mn)!=An||je&&Bn(new je)!=bn)&&(Bn=function(e){var t=ie(e),n="[object Object]"==t?e.constructor:void 0,r=n?ge(n):"";if(r)switch(r){case gn:return yn;case Cn:return vn;case wn:return En;case Fn:return An;case Dn:return bn}return t});var In=Bn,Sn=X.Uint8Array;function Rn(e,t){var n,r,o=t?(n=e.buffer,r=new n.constructor(n.byteLength),new Sn(r).set(new Sn(n)),r):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function jn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Tt;++t<n;)this.add(e[t])}function _n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}jn.prototype.add=jn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jn.prototype.has=function(e){return this.__data__.has(e)};function Un(e,t,n,r,o,u){var i=1&n,s=e.length,a=t.length;if(s!=a&&!(i&&a>s))return!1;var c=u.get(e),d=u.get(t);if(c&&d)return c==t&&d==e;var l=-1,h=!0,p=2&n?new jn:void 0;for(u.set(e,t),u.set(t,e);++l<s;){var f=e[l],m=t[l];if(r)var v=i?r(m,f,l,t,e,u):r(f,m,l,e,t,u);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!_n(t,function(e,t){if(i=t,!p.has(i)&&(f===e||o(f,e,n,r,u)))return p.push(t);var i})){h=!1;break}}else if(f!==m&&!o(f,m,n,r,u)){h=!1;break}}return u.delete(e),u.delete(t),h}function Pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function On(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var kn=Q?Q.prototype:void 0,xn=kn?kn.valueOf:void 0;var Tn=Object.prototype.hasOwnProperty;var Ln="[object Arguments]",Nn="[object Array]",qn="[object Object]",Mn=Object.prototype.hasOwnProperty;function Gn(e,t,n,r,o,u){var i=de(e),s=de(t),a=i?Nn:In(e),c=s?Nn:In(t),d=(a=a==Ln?qn:a)==qn,l=(c=c==Ln?qn:c)==qn,h=a==c;if(h&&st(e)){if(!st(t))return!1;i=!0,d=!1}if(h&&!d)return u||(u=new rn),i||mt(e)?Un(e,t,n,r,o,u):function(e,t,n,r,o,u,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new Sn(e),new Sn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $e(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Pn;case"[object Set]":var a=1&r;if(s||(s=On),e.size!=t.size&&!a)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var d=Un(s(e),s(t),r,o,u,i);return i.delete(e),d;case"[object Symbol]":if(xn)return xn.call(e)==xn.call(t)}return!1}(e,t,a,n,r,o,u);if(!(1&n)){var p=d&&Mn.call(e,"__wrapped__"),f=l&&Mn.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return u||(u=new rn),o(m,v,n,r,u)}}return!!h&&(u||(u=new rn),function(e,t,n,r,o,u){var i=1&n,s=hn(e),a=s.length;if(a!=hn(t).length&&!i)return!1;for(var c=a;c--;){var d=s[c];if(!(i?d in t:Tn.call(t,d)))return!1}var l=u.get(e),h=u.get(t);if(l&&h)return l==t&&h==e;var p=!0;u.set(e,t),u.set(t,e);for(var f=i;++c<a;){var m=e[d=s[c]],v=t[d];if(r)var E=i?r(v,m,d,t,e,u):r(m,v,d,e,t,u);if(!(void 0===E?m===v||o(m,v,n,r,u):E)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var A=e.constructor,b=t.constructor;A==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(p=!1)}return u.delete(e),u.delete(t),p}(e,t,n,r,o,u))}function zn(e,t,n,r,o){return e===t||(null==e||null==t||!se(e)&&!se(t)?e!=e&&t!=t:Gn(e,t,n,r,zn,o))}function $n(e){return e==e&&!fe(e)}function Wn(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Jn(e){var t=function(e){for(var t=gt(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,$n(o)]}return t}(e);return 1==t.length&&t[0][2]?Wn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,u=o,i=!r;if(null==e)return!u;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<u;){var a=(s=n[o])[0],c=e[a],d=s[1];if(i&&s[2]){if(void 0===c&&!(a in e))return!1}else{var l=new rn;if(r)var h=r(c,d,a,e,t,l);if(!(void 0===h?zn(d,c,3,r,l):h))return!1}}return!0}(n,e,t)}}function Vn(e,t){return null!=e&&t in Object(e)}function Hn(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=$t(t,e)).length,u=!1;++r<o;){var i=Wt(t[r]);if(!(u=null!=e&&n(e,i)))break;e=e[i]}return u||++r!=o?u:!!(o=null==e?0:e.length)&&Ze(o)&&Ge(i,o)&&(de(e)||rt(e))}(e,t,Vn)}function Zn(e,t){return It(e)&&$n(t)?Wn(Wt(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Jt(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Hn(n,e):zn(t,r,3)}}function Yn(e){return It(e)?(t=Wt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Jt(t,e)}}(e);var t}function Kn(e){return"function"==typeof e?e:null==e?me:"object"==typeof e?de(e)?Zn(e[0],e[1]):Jn(e):Yn(e)}var Xn,Qn=function(e,t,n){for(var r=-1,o=Object(e),u=n(e),i=u.length;i--;){var s=u[Xn?i:++r];if(!1===t(o[s],s,o))break}return e};var er=function(e,t){return function(n,r){if(null==n)return n;if(!Ye(n))return e(n,r);for(var o=n.length,u=t?o:-1,i=Object(n);(t?u--:++u<o)&&!1!==r(i[u],u,i););return n}}(function(e,t){return e&&Qn(e,t,gt)}),tr=er;function nr(e,t,n){(void 0!==n&&!$e(e[t],n)||void 0===n&&!(t in e))&&ze(e,t,n)}function rr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function or(e){return function(e,t,n,r){var o=!n;n||(n={});for(var u=-1,i=t.length;++u<i;){var s=t[u],a=r?r(n[s],e[s],s,n,e):void 0;void 0===a&&(a=e[s]),o?ze(n,s,a):Je(n,s,a)}return n}(e,Ft(e))}function ur(e,t,n,r,o,u,i){var s=rr(e,n),a=rr(t,n),c=i.get(a);if(c)nr(e,n,c);else{var d,l=u?u(s,a,n+"",e,t,i):void 0,h=void 0===l;if(h){var p=de(a),f=!p&&st(a),m=!p&&!f&&mt(a);l=a,p||f||m?de(s)?l=s:se(d=s)&&Ye(d)?l=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):f?(h=!1,l=function(e,t){if(t)return e.slice();var n=e.length,r=an?an(n):new e.constructor(n);return e.copy(r),r}(a,!0)):m?(h=!1,l=Rn(a,!0)):l=[]:function(e){if(!se(e)||"[object Object]"!=ie(e))return!1;var t=Kt(e);if(null===t)return!0;var n=tn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&en.call(n)==nn}(a)||rt(a)?(l=s,rt(s)?l=or(s):fe(s)&&!ve(s)||(l=function(e){return"function"!=typeof e.constructor||Xe(e)?{}:Ue(Kt(e))}(a))):h=!1}h&&(i.set(a,l),o(l,a,r,u,i),i.delete(a)),nr(e,n,l)}}function ir(e,t,n,r,o){e!==t&&Qn(t,function(u,i){if(o||(o=new rn),fe(u))ur(e,t,i,n,ir,r,o);else{var s=r?r(rr(e,i),u,i+"",e,t,o):void 0;void 0===s&&(s=u),nr(e,i,s)}},Ft)}var sr=/[\\^$.*+?()[\]{}|]/g,ar=RegExp(sr.source);function cr(e,t){var n=-1,r=Ye(e)?Array(e.length):[];return tr(e,function(e,o,u){r[++n]=t(e,o,u)}),r}function dr(e,t){return Yt(function(e,t){return(de(e)?ce:cr)(e,Kn(t))}(e,t),1)}var lr=1/0;function hr(e,t){return e>t}function pr(e){return"string"==typeof e||!de(e)&&se(e)&&"[object String]"==ie(e)}function fr(e,t){return e&&e.length?function(e,t,n){for(var r=-1,o=e.length;++r<o;){var u=e[r],i=t(u);if(null!=i&&(void 0===s?i==i&&!ae(i):n(i,s)))var s=i,a=u}return a}(e,Kn(t),hr):void 0}var mr,vr=(mr=function(e,t,n){ir(e,t,n)},He(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,u=r>2?t[2]:void 0;for(o=mr.length>3&&"function"==typeof o?(r--,o):void 0,u&&function(e,t,n){if(!fe(n))return!1;var r=typeof t;return!!("number"==r?Ye(n)&&Ge(t,n.length):"string"==r&&t in n)&&$e(n[t],e)}(t[0],t[1],u)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&mr(e,i,n,o)}return e})),Er="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ar(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function br(e,t){return e(t={exports:{}},t.exports),t.exports}var yr=br(function(e,t){function n(e,t,n){return n.globals&&(e=n.globals[e.name]),new e(`${n.context?n.context:"Value"} ${t}.`)}function r(e,t){if("bigint"==typeof e)throw n(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function o(e){return s(e>0&&e%1==.5&&!(1&e)||e<0&&e%1==-.5&&!(1&~e)?Math.floor(e):Math.round(e))}function u(e){return s(Math.trunc(e))}function i(e){return e<0?-1:1}function s(e){return 0===e?0:e}function a(e,{unsigned:t}){let a,c;t?(a=0,c=2**e-1):(a=-(2**(e-1)),c=2**(e-1)-1);const d=2**e,l=2**(e-1);return(e,h={})=>{let p=r(e,h);if(p=s(p),h.enforceRange){if(!Number.isFinite(p))throw n(TypeError,"is not a finite number",h);if(p=u(p),p<a||p>c)throw n(TypeError,`is outside the accepted range of ${a} to ${c}, inclusive`,h);return p}return!Number.isNaN(p)&&h.clamp?(p=Math.min(Math.max(p,a),c),p=o(p),p):Number.isFinite(p)&&0!==p?(p=u(p),p>=a&&p<=c?p:(p=function(e,t){const n=e%t;return i(t)!==i(n)?n+t:n}(p,d),!t&&p>=l?p-d:p)):0}}function c(e,{unsigned:t}){const i=Number.MAX_SAFE_INTEGER,a=t?0:Number.MIN_SAFE_INTEGER,c=t?BigInt.asUintN:BigInt.asIntN;return(t,d={})=>{let l=r(t,d);if(l=s(l),d.enforceRange){if(!Number.isFinite(l))throw n(TypeError,"is not a finite number",d);if(l=u(l),l<a||l>i)throw n(TypeError,`is outside the accepted range of ${a} to ${i}, inclusive`,d);return l}if(!Number.isNaN(l)&&d.clamp)return l=Math.min(Math.max(l,a),i),l=o(l),l;if(!Number.isFinite(l)||0===l)return 0;let h=BigInt(u(l));return h=c(e,h),Number(h)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=a(8,{unsigned:!1}),t.octet=a(8,{unsigned:!0}),t.short=a(16,{unsigned:!1}),t["unsigned short"]=a(16,{unsigned:!0}),t.long=a(32,{unsigned:!1}),t["unsigned long"]=a(32,{unsigned:!0}),t["long long"]=c(64,{unsigned:!1}),t["unsigned long long"]=c(64,{unsigned:!0}),t.double=(e,t={})=>{const o=r(e,t);if(!Number.isFinite(o))throw n(TypeError,"is not a finite floating-point value",t);return o},t["unrestricted double"]=(e,t={})=>r(e,t),t.float=(e,t={})=>{const o=r(e,t);if(!Number.isFinite(o))throw n(TypeError,"is not a finite floating-point value",t);if(Object.is(o,-0))return o;const u=Math.fround(o);if(!Number.isFinite(u))throw n(TypeError,"is outside the range of a single-precision floating-point value",t);return u},t["unrestricted float"]=(e,t={})=>{const n=r(e,t);return isNaN(n)||Object.is(n,-0)?n:Math.fround(n)},t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"==typeof e)throw n(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=(e,r={})=>{const o=t.DOMString(e,r);let u;for(let e=0;void 0!==(u=o.codePointAt(e));++e)if(u>255)throw n(TypeError,"is not a valid ByteString",r);return o},t.USVString=(e,n={})=>{const r=t.DOMString(e,n),o=r.length,u=[];for(let e=0;e<o;++e){const t=r.charCodeAt(e);if(t<55296||t>57343)u.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)u.push(String.fromCodePoint(65533));else if(e===o-1)u.push(String.fromCodePoint(65533));else{const n=r.charCodeAt(e+1);if(56320<=n&&n<=57343){const r=1023&t,o=1023&n;u.push(String.fromCodePoint(65536+1024*r+o)),++e}else u.push(String.fromCodePoint(65533))}}return u.join("")},t.object=(e,t={})=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)throw n(TypeError,"is not an object",t);return e};const d=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,l="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(e){try{return d.call(e),!0}catch{return!1}}function p(e){try{return l.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=(e,t={})=>{if(!h(e)){if(t.allowShared&&!p(e))throw n(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw n(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{m.call(e)}catch(e){throw n(TypeError,"is not a DataView",t)}if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is backed by a detached ArrayBuffer",t);return e};const v=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach(e=>{const{name:r}=e,o=/^[AEIOU]/u.test(r)?"an":"a";t[r]=(e,t={})=>{if(!ArrayBuffer.isView(e)||v.call(e)!==r)throw n(TypeError,`is not ${o} ${r} object`,t);if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}}),t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e))throw n(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!h(e))throw n(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!p(e)&&!h(e))throw n(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]});yr.any,yr.undefined,yr.octet,yr.DOMString,yr.ByteString,yr.USVString,yr.object,yr.ArrayBuffer,yr.DataView,yr.ArrayBufferView,yr.BufferSource,yr.DOMTimeStamp;var gr=br(function(e,t){const n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);const r=Symbol("wrapper"),o=Symbol("impl"),u=Symbol("SameObject caches"),i=Symbol.for("[webidl2js] constructor registry"),s=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);function a(e){if(n(e,i))return e[i];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=s}return e[i]=t,t}function c(e){return e?e[r]:null}function d(e){return e?e[o]:null}const l=Symbol("internal");const h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;const p=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),v=Symbol("supported property names"),E=Symbol("indexed property get"),A=Symbol("indexed property set new"),b=Symbol("indexed property set existing"),y=Symbol("named property get"),g=Symbol("named property set new"),C=Symbol("named property set existing"),w=Symbol("named property delete"),F=Symbol("async iterator get the next iteration result"),D=Symbol("async iterator return steps"),B=Symbol("async iterator initialization steps"),I=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:n,define:function(e,t){for(const n of Reflect.ownKeys(t)){const r=Reflect.getOwnPropertyDescriptor(t,n);if(r&&!Reflect.defineProperty(e,n,r))throw new TypeError(`Cannot redefine property: ${String(n)}`)}},newObjectInRealm:function(e,t){const n=a(e);return Object.defineProperties(Object.create(n["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:r,implSymbol:o,getSameObject:function(e,t,n){return e[u]||(e[u]=Object.create(null)),t in e[u]||(e[u][t]=n()),e[u][t]},ctorRegistrySymbol:i,initCtorRegistry:a,wrapperForImpl:c,implForWrapper:d,tryWrapperForImpl:function(e){const t=c(e);return t||e},tryImplForWrapper:function(e){const t=d(e);return t||e},iterInternalSymbol:l,isArrayBuffer:function(e){try{return h.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e===`${t}`},supportsPropertyIndex:p,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:v,indexedGet:E,indexedSetNew:A,indexedSetExisting:b,namedGet:y,namedSetNew:g,namedSetExisting:C,namedDelete:w,asyncIteratorNext:F,asyncIteratorReturn:D,asyncIteratorInit:B,asyncIteratorEOI:I,iteratorResult:function([e,t],n){let r;switch(n){case"key":r=e;break;case"value":r=t;break;case"key+value":r=[e,t]}return{value:r,done:!1}}}});const Cr=2147483647,wr=36,Fr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Dr=Math.floor,Br=String.fromCharCode;function Ir(e){throw new RangeError(Fr[e])}function Sr(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const Rr=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:wr},jr=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},_r=function(e,t,n){let r=0;for(e=n?Dr(e/700):e>>1,e+=Dr(e/t);e>455;r+=wr)e=Dr(e/35);return Dr(r+36*e/(e+38))},Ur=function(e){const t=[],n=e.length;let r=0,o=128,u=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let n=0;n<i;++n)e.charCodeAt(n)>=128&&Ir("not-basic"),t.push(e.charCodeAt(n));for(let s=i>0?i+1:0;s<n;){const i=r;for(let t=1,o=wr;;o+=wr){s>=n&&Ir("invalid-input");const i=Rr(e.charCodeAt(s++));i>=wr&&Ir("invalid-input"),i>Dr((Cr-r)/t)&&Ir("overflow"),r+=i*t;const a=o<=u?1:o>=u+26?26:o-u;if(i<a)break;const c=wr-a;t>Dr(Cr/c)&&Ir("overflow"),t*=c}const a=t.length+1;u=_r(r-i,a,0==i),Dr(r/a)>Cr-o&&Ir("overflow"),o+=Dr(r/a),r%=a,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Pr=function(e){const t=[],n=(e=Sr(e)).length;let r=128,o=0,u=72;for(const n of e)n<128&&t.push(Br(n));const i=t.length;let s=i;for(i&&t.push("-");s<n;){let n=Cr;for(const t of e)t>=r&&t<n&&(n=t);const a=s+1;n-r>Dr((Cr-o)/a)&&Ir("overflow"),o+=(n-r)*a,r=n;for(const n of e)if(n<r&&++o>Cr&&Ir("overflow"),n===r){let e=o;for(let n=wr;;n+=wr){const r=n<=u?1:n>=u+26?26:n-u;if(e<r)break;const o=e-r,i=wr-r;t.push(Br(jr(r+o%i,0))),e=Dr(o/i)}t.push(Br(jr(e,0))),u=_r(o,a,s===i),o=0,++s}++o,++r}return t.join("")},Or=Ur,kr=Pr;var xr,Tr={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1715\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA82C\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{113CE}-\u{113D0}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}\u{11F41}\u{11F42}\u{1612F}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u0886\u0889-\u088D\u08A0-\u08A9\u08AF\u08B0\u08B3-\u08B8\u08BA-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10EC3}\u{10EC4}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}\u{10FB3}\u{10FB8}\u{10FBB}\u{10FBC}\u{10FBE}\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}\u{10FCB}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0858\u0860\u0862-\u0865\u0867-\u086A\u0870-\u0882\u0886\u0889-\u088E\u08A0-\u08AC\u08AE-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10EC2}-\u{10EC4}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}\u{10FCA}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCEF}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0897-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2429\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E5\u31EF\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CC00}-\u{1CCD5}\u{1CCF0}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B4E-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2429\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E5\u31EF-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6E}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D5}\u{113D7}\u{113D8}\u{113E1}\u{113E2}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F5A}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CC00}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCF9}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u},Lr={STATUS_MAPPING:{mapped:1,valid:2,disallowed:3,deviation:6,ignored:7}},Nr=(xr=Object.freeze({__proto__:null}))&&xr.default||xr;const{STATUS_MAPPING:qr}=Lr;function Mr(e){return/[^\x00-\x7F]/u.test(e)}function Gr(e){let t=0,n=Nr.length-1;for(;t<=n;){const r=Math.floor((t+n)/2),o=Nr[r],u=Array.isArray(o[0])?o[0][0]:o[0],i=Array.isArray(o[0])?o[0][1]:o[0];if(u<=e&&i>=e)return o.slice(1);u>e?n=r-1:t=r+1}return null}function zr(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,transitionalProcessing:o,useSTD3ASCIIRules:u,isBidi:i}){if(0===e.length)return!0;if(e.normalize("NFC")!==e)return!1;const s=Array.from(e);if(t&&("-"===s[2]&&"-"===s[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(!t&&e.startsWith("xn--"))return!1;if(e.includes("."))return!1;if(Tr.combiningMarks.test(s[0]))return!1;for(const e of s){const t=e.codePointAt(0),[n]=Gr(t);if(o){if(n!==qr.valid)return!1}else if(n!==qr.valid&&n!==qr.deviation)return!1;if(u&&t<=127&&!/^(?:[a-z]|[0-9]|-)$/u.test(e))return!1}if(r){let e=0;for(const[t,n]of s.entries())if(""===n||""===n){if(t>0){if(Tr.combiningClassVirama.test(s[t-1]))continue;if(""===n){const n=s.indexOf("",t+1),r=n<0?s.slice(e):s.slice(e,n);if(Tr.validZWNJ.test(r.join(""))){e=t+1;continue}}}return!1}}if(n&&i){let t;if(Tr.bidiS1LTR.test(s[0]))t=!1;else{if(!Tr.bidiS1RTL.test(s[0]))return!1;t=!0}if(t){if(!Tr.bidiS2.test(e)||!Tr.bidiS3.test(e)||Tr.bidiS4EN.test(e)&&Tr.bidiS4AN.test(e))return!1}else if(!Tr.bidiS5.test(e)||!Tr.bidiS6.test(e))return!1}return!0}function $r(e,t){let n=function(e,{transitionalProcessing:t}){let n="";for(const r of e){const[e,o]=Gr(r.codePointAt(0));switch(e){case qr.disallowed:n+=r;break;case qr.ignored:break;case qr.mapped:n+=t&&"ẞ"===r?"ss":o;break;case qr.deviation:n+=t?o:r;break;case qr.valid:n+=r}}return n}(e,t);n=n.normalize("NFC");const r=n.split("."),o=function(e){const t=e.map(e=>{if(e.startsWith("xn--"))try{return Or(e.substring(4))}catch{return""}return e}).join(".");return Tr.bidiDomain.test(t)}(r);let u=!1;for(const[e,n]of r.entries()){let i=n,s=t.transitionalProcessing;if(i.startsWith("xn--")){if(Mr(i)){u=!0;continue}try{i=Or(i.substring(4))}catch{if(!t.ignoreInvalidPunycode){u=!0;continue}}r[e]=i,""!==i&&Mr(i)||(u=!0),s=!1}if(u)continue;zr(i,{...t,transitionalProcessing:s,isBidi:o})||(u=!0)}return{string:r.join("."),error:u}}var Wr={toASCII:function(e,{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:o=!1,verifyDNSLength:u=!1,transitionalProcessing:i=!1,ignoreInvalidPunycode:s=!1}={}){const a=$r(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:o,transitionalProcessing:i,ignoreInvalidPunycode:s});let c=a.string.split(".");if(c=c.map(e=>{if(Mr(e))try{return`xn--${kr(e)}`}catch{a.error=!0}return e}),u){const e=c.join(".").length;(e>253||0===e)&&(a.error=!0);for(let e=0;e<c.length;++e)if(c[e].length>63||0===c[e].length){a.error=!0;break}}return a.error?null:c.join(".")},toUnicode:function(e,{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:o=!1,transitionalProcessing:u=!1,ignoreInvalidPunycode:i=!1}={}){const s=$r(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:o,transitionalProcessing:u,ignoreInvalidPunycode:i});return{domain:s.string,error:s.error}}};function Jr(e){return e>=48&&e<=57}function Vr(e){return e>=65&&e<=90||e>=97&&e<=122}var Hr={isASCIIDigit:Jr,isASCIIAlpha:Vr,isASCIIAlphanumeric:function(e){return Vr(e)||Jr(e)},isASCIIHex:function(e){return Jr(e)||e>=65&&e<=70||e>=97&&e<=102}};const Zr=new TextEncoder,Yr=new TextDecoder("utf-8",{ignoreBOM:!0});var Kr={utf8Encode:function(e){return Zr.encode(e)},utf8DecodeWithoutBOM:function(e){return Yr.decode(e)}};const{isASCIIHex:Xr}=Hr,{utf8Encode:Qr}=Kr;function eo(e){return e.codePointAt(0)}function to(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),`%${t}`}function no(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;++r){const o=e[r];if(37!==o)t[n++]=o;else if(37!==o||Xr(e[r+1])&&Xr(e[r+2])){const o=parseInt(String.fromCodePoint(e[r+1],e[r+2]),16);t[n++]=o,r+=2}else t[n++]=o}return t.slice(0,n)}function ro(e){return e<=31||e>126}const oo=new Set([eo(" "),eo('"'),eo("<"),eo(">"),eo("`")]);const uo=new Set([eo(" "),eo('"'),eo("#"),eo("<"),eo(">")]);function io(e){return ro(e)||uo.has(e)}const so=new Set([eo("?"),eo("`"),eo("{"),eo("}"),eo("^")]);function ao(e){return io(e)||so.has(e)}const co=new Set([eo("/"),eo(":"),eo(";"),eo("="),eo("@"),eo("["),eo("\\"),eo("]"),eo("|")]);function lo(e){return ao(e)||co.has(e)}const ho=new Set([eo("$"),eo("%"),eo("&"),eo("+"),eo(",")]);const po=new Set([eo("!"),eo("'"),eo("("),eo(")"),eo("~")]);function fo(e,t){const n=Qr(e);let r="";for(const e of n)t(e)?r+=to(e):r+=String.fromCharCode(e);return r}var mo={isC0ControlPercentEncode:ro,isFragmentPercentEncode:function(e){return ro(e)||oo.has(e)},isQueryPercentEncode:io,isSpecialQueryPercentEncode:function(e){return io(e)||e===eo("'")},isPathPercentEncode:ao,isUserinfoPercentEncode:lo,isURLEncodedPercentEncode:function(e){return function(e){return lo(e)||ho.has(e)}(e)||po.has(e)},percentDecodeString:function(e){return no(Qr(e))},percentDecodeBytes:no,utf8PercentEncodeString:function(e,t,n=!1){let r="";for(const o of e)r+=n&&" "===o?"+":fo(o,t);return r},utf8PercentEncodeCodePoint:function(e,t){return fo(String.fromCodePoint(e),t)}},vo=br(function(e){const{utf8DecodeWithoutBOM:t}=Kr,{percentDecodeString:n,utf8PercentEncodeCodePoint:r,utf8PercentEncodeString:o,isC0ControlPercentEncode:u,isFragmentPercentEncode:i,isQueryPercentEncode:s,isSpecialQueryPercentEncode:a,isPathPercentEncode:c,isUserinfoPercentEncode:d}=mo;function l(e){return e.codePointAt(0)}const h={ftp:21,file:null,http:80,https:443,ws:80,wss:443},p=Symbol("failure");function f(e){return[...e].length}function m(e,t){const n=e[t];return isNaN(n)?void 0:String.fromCodePoint(n)}function v(e){return"."===e||"%2e"===e.toLowerCase()}function E(e){return 2===e.length&&Hr.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function A(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)}function b(e){return void 0!==h[e]}function y(e){return b(e.scheme)}function g(e){return!b(e.scheme)}function C(e){return h[e]}function w(e){if(""===e)return p;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let n=/[^0-7]/u;return 10===t&&(n=/[^0-9]/u),16===t&&(n=/[^0-9A-Fa-f]/u),n.test(e)?p:parseInt(e,t)}function F(e,r=!1){if("["===e[0])return"]"!==e[e.length-1]?p:function(e){const t=[0,0,0,0,0,0,0,0];let n=0,r=null,o=0;if((e=Array.from(e,e=>e.codePointAt(0)))[o]===l(":")){if(e[o+1]!==l(":"))return p;o+=2,++n,r=n}for(;o<e.length;){if(8===n)return p;if(e[o]===l(":")){if(null!==r)return p;++o,++n,r=n;continue}let u=0,i=0;for(;i<4&&Hr.isASCIIHex(e[o]);)u=16*u+parseInt(m(e,o),16),++o,++i;if(e[o]===l(".")){if(0===i)return p;if(o-=i,n>6)return p;let r=0;for(;void 0!==e[o];){let u=null;if(r>0){if(!(e[o]===l(".")&&r<4))return p;++o}if(!Hr.isASCIIDigit(e[o]))return p;for(;Hr.isASCIIDigit(e[o]);){const t=parseInt(m(e,o));if(null===u)u=t;else{if(0===u)return p;u=10*u+t}if(u>255)return p;++o}t[n]=256*t[n]+u,++r,2!==r&&4!==r||++n}if(4!==r)return p;break}if(e[o]===l(":")){if(++o,void 0===e[o])return p}else if(void 0!==e[o])return p;t[n]=u,++n}if(null!==r){let e=n-r;for(n=7;0!==n&&e>0;){const o=t[r+e-1];t[r+e-1]=t[n],t[n]=o,--n,--e}}else if(null===r&&8!==n)return p;return t}(e.substring(1,e.length-1));if(r)return function(e){if(A(e))return p;return o(e,u)}(e);const i=function(e,t=!1){const n=Wr.toASCII(e,{checkHyphens:t,checkBidi:!0,checkJoiners:!0,useSTD3ASCIIRules:t,transitionalProcessing:!1,verifyDNSLength:t,ignoreInvalidPunycode:!1});if(null===n)return p;if(!t){if(""===n)return p;if(A(r=n)||-1!==r.search(/[\u0000-\u001F]|%|\u007F/u))return p}var r;return n}(t(n(e)));return i===p?p:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const n=t[t.length-1];if(w(n)!==p)return!0;if(/^[0-9]+$/u.test(n))return!0;return!1}(i)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return p;const n=[];for(const e of t){const t=w(e);if(t===p)return p;n.push(t)}for(let e=0;e<n.length-1;++e)if(n[e]>255)return p;if(n[n.length-1]>=256**(5-n.length))return p;let r=n.pop(),o=0;for(const e of n)r+=e*256**(3-o),++o;return r}(i):i}function D(e){return"number"==typeof e?function(e){let t="",n=e;for(let e=1;e<=4;++e)t=String(n%256)+t,4!==e&&(t=`.${t}`),n=Math.floor(n/256);return t}(e):e instanceof Array?`[${function(e){let t="";const n=function(e){let t=null,n=1,r=null,o=0;for(let u=0;u<e.length;++u)0!==e[u]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=u),++o);return o>n?r:t}(e);let r=!1;for(let o=0;o<=7;++o)if(!r||0!==e[o]){if(r&&(r=!1),n===o){t+=0===o?"::":":",r=!0;continue}t+=e[o].toString(16),7!==o&&(t+=":")}return t}(e)}]`:e}function B(e){const{path:t}=e;var n;0!==t.length&&("file"===e.scheme&&1===t.length&&(n=t[0],/^[A-Za-z]:$/u.test(n))||t.pop())}function I(e){return""!==e.username||""!==e.password}function S(e){return"string"==typeof e.path}function R(e,t,n,r,o){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=n||"utf-8",this.stateOverride=o,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){let t=0,n=e.length;for(;t<n&&!(e.charCodeAt(t)>32);++t);for(;n>t&&!(e.charCodeAt(n-1)>32);--n);return e.substring(t,n)}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const u=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(u!==this.input&&(this.parseError=!0),this.input=u,this.state=o||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,e=>e.codePointAt(0));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),n=this[`parse ${this.state}`](e,t);if(!n)break;if(n===p){this.failure=!0;break}}}R.prototype["parse scheme start"]=function(e,t){if(Hr.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,p;this.state="no scheme",--this.pointer}return!0},R.prototype["parse scheme"]=function(e,t){if(Hr.isASCIIAlphanumeric(e)||e===l("+")||e===l("-")||e===l("."))this.buffer+=t.toLowerCase();else if(e===l(":")){if(this.stateOverride){if(y(this.url)&&!b(this.buffer))return!1;if(!y(this.url)&&b(this.buffer))return!1;if((I(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===C(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===l("/")&&this.input[this.pointer+2]===l("/")||(this.parseError=!0),this.state="file"):y(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":y(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===l("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,p;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},R.prototype["parse no scheme"]=function(e){return null===this.base||S(this.base)&&e!==l("#")?p:(S(this.base)&&e===l("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},R.prototype["parse special relative or authority"]=function(e){return e===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},R.prototype["parse path or authority"]=function(e){return e===l("/")?this.state="authority":(this.state="path",--this.pointer),!0},R.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===l("/")?this.state="relative slash":y(this.url)&&e===l("\\")?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===l("?")?(this.url.query="",this.state="query"):e===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},R.prototype["parse relative slash"]=function(e){return!y(this.url)||e!==l("/")&&e!==l("\\")?e===l("/")?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(e===l("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},R.prototype["parse special authority slashes"]=function(e){return e===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},R.prototype["parse special authority ignore slashes"]=function(e){return e!==l("/")&&e!==l("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},R.prototype["parse authority"]=function(e,t){if(e===l("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const e=f(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===l(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const n=r(e,d);this.passwordTokenSeenFlag?this.url.password+=n:this.url.username+=n}this.buffer=""}else if(isNaN(e)||e===l("/")||e===l("?")||e===l("#")||y(this.url)&&e===l("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,p;this.pointer-=f(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},R.prototype["parse hostname"]=R.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==l(":")||this.arrFlag)if(isNaN(e)||e===l("/")||e===l("?")||e===l("#")||y(this.url)&&e===l("\\")){if(--this.pointer,y(this.url)&&""===this.buffer)return this.parseError=!0,p;if(this.stateOverride&&""===this.buffer&&(I(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=F(this.buffer,g(this.url));if(e===p)return p;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===l("[")?this.arrFlag=!0:e===l("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,p;if("hostname"===this.stateOverride)return!1;const e=F(this.buffer,g(this.url));if(e===p)return p;this.url.host=e,this.buffer="",this.state="port"}return!0},R.prototype["parse port"]=function(e,t){if(Hr.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===l("/")||e===l("?")||e===l("#")||y(this.url)&&e===l("\\")||this.stateOverride))return this.parseError=!0,p;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,p;this.url.port=e===C(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const j=new Set([l("/"),l("\\"),l("?"),l("#")]);function _(e,t){const n=e.length-t;return n>=2&&(r=e[t],o=e[t+1],Hr.isASCIIAlpha(r)&&(o===l(":")||o===l("|")))&&(2===n||j.has(e[t+2]));var r,o}function U(e){if(S(e))return e.path;let t="";for(const n of e.path)t+=`/${n}`;return t}R.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===l("/")||e===l("\\")?(e===l("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===l("?")?(this.url.query="",this.state="query"):e===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,_(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):B(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},R.prototype["parse file slash"]=function(e){var t;return e===l("/")||e===l("\\")?(e===l("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!_(this.input,this.pointer)&&(2===(t=this.base.path[0]).length&&Hr.isASCIIAlpha(t.codePointAt(0))&&":"===t[1])&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},R.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===l("/")||e===l("\\")||e===l("?")||e===l("#"))if(--this.pointer,!this.stateOverride&&E(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=F(this.buffer,g(this.url));if(e===p)return p;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},R.prototype["parse path start"]=function(e){return y(this.url)?(e===l("\\")&&(this.parseError=!0),this.state="path",e!==l("/")&&e!==l("\\")&&--this.pointer):this.stateOverride||e!==l("?")?this.stateOverride||e!==l("#")?void 0!==e?(this.state="path",e!==l("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},R.prototype["parse path"]=function(e){return isNaN(e)||e===l("/")||y(this.url)&&e===l("\\")||!this.stateOverride&&(e===l("?")||e===l("#"))?(y(this.url)&&e===l("\\")&&(this.parseError=!0),!function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e}(this.buffer)?!v(this.buffer)||e===l("/")||y(this.url)&&e===l("\\")?v(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&E(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""):(B(this.url),e===l("/")||y(this.url)&&e===l("\\")||this.url.path.push("")),this.buffer="",e===l("?")&&(this.url.query="",this.state="query"),e===l("#")&&(this.url.fragment="",this.state="fragment")):(e!==l("%")||Hr.isASCIIHex(this.input[this.pointer+1])&&Hr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=r(e,c)),!0},R.prototype["parse opaque path"]=function(e){if(e===l("?"))this.url.query="",this.state="query";else if(e===l("#"))this.url.fragment="",this.state="fragment";else if(e===l(" ")){const e=this.input[this.pointer+1];e===l("?")||e===l("#")?this.url.path+="%20":this.url.path+=" "}else isNaN(e)||e===l("%")||(this.parseError=!0),e!==l("%")||Hr.isASCIIHex(this.input[this.pointer+1])&&Hr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=r(e,u));return!0},R.prototype["parse query"]=function(e,t){if(y(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===l("#")||isNaN(e)){const t=y(this.url)?a:s;this.url.query+=o(this.buffer,t),this.buffer="",e===l("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==l("%")||Hr.isASCIIHex(this.input[this.pointer+1])&&Hr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},R.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==l("%")||Hr.isASCIIHex(this.input[this.pointer+1])&&Hr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=r(e,i)),!0},e.exports.serializeURL=function(e,t){let n=`${e.scheme}:`;return null!==e.host&&(n+="//",""===e.username&&""===e.password||(n+=e.username,""!==e.password&&(n+=`:${e.password}`),n+="@"),n+=D(e.host),null!==e.port&&(n+=`:${e.port}`)),null===e.host&&!S(e)&&e.path.length>1&&""===e.path[0]&&(n+="/."),n+=U(e),null!==e.query&&(n+=`?${e.query}`),t||null===e.fragment||(n+=`#${e.fragment}`),n},e.exports.serializePath=U,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":{const n=e.exports.parseURL(U(t));return null===n||"http"!==n.scheme&&"https"!==n.scheme?"null":e.exports.serializeURLOrigin(n)}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t=`${e.scheme}://`;return t+=D(e.host),null!==e.port&&(t+=`:${e.port}`),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const n=new R(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return n.failure?null:n.url},e.exports.setTheUsername=function(e,t){e.username=o(t,d)},e.exports.setThePassword=function(e,t){e.password=o(t,d)},e.exports.serializeHost=D,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||"file"===e.scheme},e.exports.hasAnOpaquePath=S,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,n){return void 0===n&&(n={}),e.exports.basicURLParse(t,{baseURL:n.baseURL,encodingOverride:n.encodingOverride})}});vo.serializeURL,vo.serializePath,vo.serializeURLOrigin,vo.basicURLParse,vo.setTheUsername,vo.setThePassword,vo.serializeHost,vo.cannotHaveAUsernamePasswordPort,vo.hasAnOpaquePath,vo.serializeInteger,vo.parseURL;const{utf8Encode:Eo,utf8DecodeWithoutBOM:Ao}=Kr,{percentDecodeBytes:bo,utf8PercentEncodeString:yo,isURLEncodedPercentEncode:go}=mo;function Co(e){return e.codePointAt(0)}function wo(e,t,n){let r=e.indexOf(t);for(;r>=0;)e[r]=n,r=e.indexOf(t,r+1);return e}var Fo={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const n=[];let r=0,o=e.indexOf(t);for(;o>=0;)n.push(e.slice(r,o)),r=o+1,o=e.indexOf(t,r);return r!==e.length&&n.push(e.slice(r)),n}(e,Co("&")),n=[];for(const e of t){if(0===e.length)continue;let t,r;const o=e.indexOf(Co("="));o>=0?(t=e.slice(0,o),r=e.slice(o+1)):(t=e,r=new Uint8Array(0)),t=wo(t,43,32),r=wo(r,43,32);const u=Ao(bo(t)),i=Ao(bo(r));n.push([u,i])}return n}(Eo(e))},serializeUrlencoded:function(e){let t="";for(const[n,r]of e.entries()){0!==n&&(t+="&"),t+=`${yo(r[0],go,!0)}=${yo(r[1],go,!0)}`}return t}},Do=(e,t,{context:n="The provided value"}={})=>{if("function"!=typeof t)throw new e.TypeError(n+" is not a function");function r(...r){const o=gr.tryWrapperForImpl(this);let u;for(let e=0;e<r.length;e++)r[e]=gr.tryWrapperForImpl(r[e]);return u=Reflect.apply(t,o,r),u=yr.any(u,{context:n,globals:e}),u}return r.construct=(...r)=>{for(let e=0;e<r.length;e++)r[e]=gr.tryWrapperForImpl(r[e]);let o=Reflect.construct(t,r);return o=yr.any(o,{context:n,globals:e}),o},r[gr.wrapperSymbol]=t,r.objectReference=t,r},Bo=class{constructor(e,t,{doNotStripQMark:n=!1}){let r=t[0];if(this._list=[],this._url=null,n||"string"!=typeof r||"?"!==r[0]||(r=r.slice(1)),Array.isArray(r))for(const e of r){if(2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([e[0],e[1]])}else if("object"==typeof r&&null===Object.getPrototypeOf(r))for(const e of Object.keys(r)){const t=r[e];this._list.push([e,t])}else this._list=Fo.parseUrlencodedString(r)}_updateSteps(){if(null!==this._url){let e=Fo.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e}}get size(){return this._list.length}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e,t){let n=0;for(;n<this._list.length;)this._list[n][0]!==e||void 0!==t&&this._list[n][1]!==t?n++:this._list.splice(n,1);this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const n of this._list)n[0]===e&&t.push(n[1]);return t}has(e,t){for(const n of this._list)if(n[0]===e&&(void 0===t||n[1]===t))return!0;return!1}set(e,t){let n=!1,r=0;for(;r<this._list.length;)this._list[r][0]===e?n?this._list.splice(r,1):(n=!0,this._list[r][1]=t,r++):r++;n||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return Fo.serializeUrlencoded(this._list)}},Io={implementation:Bo},So=br(function(e,t){const n=gr.newObjectInRealm,r=gr.implSymbol,o=gr.ctorRegistrySymbol,u="URLSearchParams";function i(e,t){let n;return void 0!==t&&(n=t.prototype),gr.isObject(n)||(n=e[o].URLSearchParams.prototype),Object.create(n)}t.is=e=>gr.isObject(e)&&gr.hasOwn(e,r)&&e[r]instanceof Io.implementation,t.isImpl=e=>gr.isObject(e)&&e instanceof Io.implementation,t.convert=(e,n,{context:r="The provided value"}={})=>{if(t.is(n))return gr.implForWrapper(n);throw new e.TypeError(`${r} is not of type 'URLSearchParams'.`)},t.createDefaultIterator=(e,t,n)=>{const r=e[o]["URLSearchParams Iterator"],u=Object.create(r);return Object.defineProperty(u,gr.iterInternalSymbol,{value:{target:t,kind:n,index:0},configurable:!0}),u},t.create=(e,n,r)=>{const o=i(e);return t.setup(o,e,n,r)},t.createImpl=(e,n,r)=>{const o=t.create(e,n,r);return gr.implForWrapper(o)},t._internalSetup=(e,t)=>{},t.setup=(e,n,o=[],u={})=>(u.wrapper=e,t._internalSetup(e,n),Object.defineProperty(e,r,{value:new Io.implementation(n,o,u),configurable:!0}),e[r][gr.wrapperSymbol]=e,Io.init&&Io.init(e[r]),e),t.new=(e,n)=>{const o=i(e,n);return t._internalSetup(o,e),Object.defineProperty(o,r,{value:Object.create(Io.implementation.prototype),configurable:!0}),o[r][gr.wrapperSymbol]=o,Io.init&&Io.init(o[r]),o[r]};const s=new Set(["Window","Worker"]);t.install=(e,o)=>{if(!o.some(e=>s.has(e)))return;const i=gr.initCtorRegistry(e);class a{constructor(){const n=[];{let t=arguments[0];if(void 0!==t)if(gr.isObject(t))if(void 0!==t[Symbol.iterator]){if(!gr.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const n=[],r=t;for(let t of r){if(!gr.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const n=[],r=t;for(let t of r)t=yr.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),n.push(t);t=n}n.push(t)}t=n}}else{if(!gr.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const n=Object.create(null);for(const r of Reflect.ownKeys(t)){const o=Object.getOwnPropertyDescriptor(t,r);if(o&&o.enumerable){let o=r;o=yr.USVString(o,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let u=t[r];u=yr.USVString(u,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),n[o]=u}}t=n}}else t=yr.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";n.push(t)}return t.setup(Object.create(new.target.prototype),e,n)}append(n,o){const u=null!=this?this:e;if(!t.is(u))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}{let t=arguments[1];t=yr.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),i.push(t)}return gr.tryWrapperForImpl(u[r].append(...i))}delete(n){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];void 0!==t&&(t=yr.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:e})),u.push(t)}return gr.tryWrapperForImpl(o[r].delete(...u))}get(n){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}return o[r].get(...u)}getAll(n){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}return gr.tryWrapperForImpl(o[r].getAll(...u))}has(n){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];void 0!==t&&(t=yr.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:e})),u.push(t)}return o[r].has(...u)}set(n,o){const u=null!=this?this:e;if(!t.is(u))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}{let t=arguments[1];t=yr.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),i.push(t)}return gr.tryWrapperForImpl(u[r].set(...i))}sort(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return gr.tryWrapperForImpl(n[r].sort())}toString(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return n[r].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(n){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");n=Do(e,n,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const o=arguments[1];let u=Array.from(this[r]),i=0;for(;i<u.length;){const[e,t]=u[i].map(gr.tryWrapperForImpl);n.call(o,t,e,this),u=Array.from(this[r]),i++}}get size(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return n[r].size}}Object.defineProperties(a.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},size:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:a.prototype.entries,configurable:!0,writable:!0}}),i[u]=a,i["URLSearchParams Iterator"]=Object.create(i["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),gr.define(i["URLSearchParams Iterator"],{next(){const t=this&&this[gr.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:o,kind:u,index:i}=t,s=Array.from(o[r]);if(i>=s.length)return n(e,{value:void 0,done:!0});const a=s[i];return t.index=i+1,n(e,gr.iteratorResult(a.map(gr.tryWrapperForImpl),u))}}),Object.defineProperty(e,u,{configurable:!0,writable:!0,value:a})}});So.is,So.isImpl,So.convert,So.createDefaultIterator,So.create,So.createImpl,So._internalSetup,So.setup,So.install;var Ro={implementation:class e{constructor(e,[t,n]){let r=null;if(void 0!==n&&(r=vo.basicURLParse(n),null===r))throw new TypeError(`Invalid base URL: ${n}`);const o=vo.basicURLParse(t,{baseURL:r});if(null===o)throw new TypeError(`Invalid URL: ${t}`);const u=null!==o.query?o.query:"";this._url=o,this._query=So.createImpl(e,[u],{doNotStripQMark:!0}),this._query._url=this}static parse(t,n,r){try{return new e(t,[n,r])}catch{return null}}static canParse(e,t){let n=null;if(void 0!==t&&(n=vo.basicURLParse(t),null===n))return!1;return null!==vo.basicURLParse(e,{baseURL:n})}get href(){return vo.serializeURL(this._url)}set href(e){const t=vo.basicURLParse(e);if(null===t)throw new TypeError(`Invalid URL: ${e}`);this._url=t,this._query._list.splice(0);const{query:n}=t;null!==n&&(this._query._list=Fo.parseUrlencodedString(n))}get origin(){return vo.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){vo.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){vo.cannotHaveAUsernamePasswordPort(this._url)||vo.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){vo.cannotHaveAUsernamePasswordPort(this._url)||vo.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?vo.serializeHost(e.host):`${vo.serializeHost(e.host)}:${vo.serializeInteger(e.port)}`}set host(e){vo.hasAnOpaquePath(this._url)||vo.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":vo.serializeHost(this._url.host)}set hostname(e){vo.hasAnOpaquePath(this._url)||vo.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":vo.serializeInteger(this._url.port)}set port(e){vo.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:vo.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return vo.serializePath(this._url)}set pathname(e){vo.hasAnOpaquePath(this._url)||(this._url.path=[],vo.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(e){const t=this._url;if(""===e)return t.query=null,void(this._query._list=[]);const n="?"===e[0]?e.substring(1):e;t.query="",vo.basicURLParse(n,{url:t,stateOverride:"query"}),this._query._list=Fo.parseUrlencodedString(n)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",vo.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},jo=br(function(e,t){const n=gr.implSymbol,r=gr.ctorRegistrySymbol;function o(e,t){let n;return void 0!==t&&(n=t.prototype),gr.isObject(n)||(n=e[r].URL.prototype),Object.create(n)}t.is=e=>gr.isObject(e)&&gr.hasOwn(e,n)&&e[n]instanceof Ro.implementation,t.isImpl=e=>gr.isObject(e)&&e instanceof Ro.implementation,t.convert=(e,n,{context:r="The provided value"}={})=>{if(t.is(n))return gr.implForWrapper(n);throw new e.TypeError(`${r} is not of type 'URL'.`)},t.create=(e,n,r)=>{const u=o(e);return t.setup(u,e,n,r)},t.createImpl=(e,n,r)=>{const o=t.create(e,n,r);return gr.implForWrapper(o)},t._internalSetup=(e,t)=>{},t.setup=(e,r,o=[],u={})=>(u.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,n,{value:new Ro.implementation(r,o,u),configurable:!0}),e[n][gr.wrapperSymbol]=e,Ro.init&&Ro.init(e[n]),e),t.new=(e,r)=>{const u=o(e,r);return t._internalSetup(u,e),Object.defineProperty(u,n,{value:Object.create(Ro.implementation.prototype),configurable:!0}),u[n][gr.wrapperSymbol]=u,Ro.init&&Ro.init(u[n]),u[n]};const u=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some(e=>u.has(e)))return;const o=gr.initCtorRegistry(e);class i{constructor(n){if(arguments.length<1)throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const r=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),r.push(t)}{let t=arguments[1];void 0!==t&&(t=yr.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),r.push(t)}return t.setup(Object.create(new.target.prototype),e,r)}toJSON(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[n].toJSON()}get href(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[n].href}set href(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),o[n].href=r}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[n].href}get origin(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[n].origin}get protocol(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[n].protocol}set protocol(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),o[n].protocol=r}get username(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[n].username}set username(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),o[n].username=r}get password(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[n].password}set password(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),o[n].password=r}get host(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[n].host}set host(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),o[n].host=r}get hostname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[n].hostname}set hostname(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),o[n].hostname=r}get port(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[n].port}set port(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),o[n].port=r}get pathname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[n].pathname}set pathname(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),o[n].pathname=r}get search(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[n].search}set search(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),o[n].search=r}get searchParams(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return gr.getSameObject(this,"searchParams",()=>gr.tryWrapperForImpl(r[n].searchParams))}get hash(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[n].hash}set hash(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=yr.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),o[n].hash=r}static parse(t){if(arguments.length<1)throw new e.TypeError(`Failed to execute 'parse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'parse' on 'URL': parameter 1",globals:e}),n.push(t)}{let t=arguments[1];void 0!==t&&(t=yr.USVString(t,{context:"Failed to execute 'parse' on 'URL': parameter 2",globals:e})),n.push(t)}return gr.tryWrapperForImpl(Ro.implementation.parse(e,...n))}static canParse(t){if(arguments.length<1)throw new e.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let t=arguments[0];t=yr.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:e}),n.push(t)}{let t=arguments[1];void 0!==t&&(t=yr.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:e})),n.push(t)}return Ro.implementation.canParse(...n)}}Object.defineProperties(i.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),Object.defineProperties(i,{parse:{enumerable:!0},canParse:{enumerable:!0}}),o.URL=i,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:i}),r.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:i})}});jo.is,jo.isImpl,jo.convert,jo.create,jo.createImpl,jo._internalSetup,jo.setup,jo.install;var _o={URL:jo,URLSearchParams:So};const{URL:Uo,URLSearchParams:Po}=_o,Oo={Array:Array,Object:Object,Promise:Promise,String:String,TypeError:TypeError};Uo.install(Oo,["Window"]),Po.install(Oo,["Window"]);var ko={URL:Oo.URL,URLSearchParams:Oo.URLSearchParams,parseURL:vo.parseURL,basicURLParse:vo.basicURLParse,serializeURL:vo.serializeURL,serializePath:vo.serializePath,serializeHost:vo.serializeHost,serializeInteger:vo.serializeInteger,serializeURLOrigin:vo.serializeURLOrigin,setTheUsername:vo.setTheUsername,setThePassword:vo.setThePassword,cannotHaveAUsernamePasswordPort:vo.cannotHaveAUsernamePasswordPort,hasAnOpaquePath:vo.hasAnOpaquePath,percentDecodeString:mo.percentDecodeString,percentDecodeBytes:mo.percentDecodeBytes};const xo=a.Readable,To=Symbol("buffer"),Lo=Symbol("type");class No{constructor(){this[Lo]="";const e=arguments[0],t=arguments[1],n=[];let r=0;if(e){const t=e,o=Number(t.length);for(let e=0;e<o;e++){const o=t[e];let u;u=o instanceof Buffer?o:ArrayBuffer.isView(o)?Buffer.from(o.buffer,o.byteOffset,o.byteLength):o instanceof ArrayBuffer?Buffer.from(o):o instanceof No?o[To]:Buffer.from("string"==typeof o?o:String(o)),r+=u.length,n.push(u)}}this[To]=Buffer.concat(n);let o=t&&void 0!==t.type&&String(t.type).toLowerCase();o&&!/[^\u0020-\u007E]/.test(o)&&(this[Lo]=o)}get size(){return this[To].length}get type(){return this[Lo]}text(){return Promise.resolve(this[To].toString())}arrayBuffer(){const e=this[To],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new xo;return e._read=function(){},e.push(this[To]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],n=arguments[1];let r,o;r=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),o=void 0===n?e:n<0?Math.max(e+n,0):Math.min(n,e);const u=Math.max(o-r,0),i=this[To].slice(r,r+u),s=new No([],{type:arguments[2]});return s[To]=i,s}}function qo(e,t,n){Error.call(this,e),this.message=e,this.type=t,n&&(this.code=this.errno=n.code),Error.captureStackTrace(this,this.constructor)}let Mo;Object.defineProperties(No.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(No.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),qo.prototype=Object.create(Error.prototype),qo.prototype.constructor=qo,qo.prototype.name="FetchError";try{Mo=require("encoding").convert}catch(e){}const Go=Symbol("Body internals"),zo=a.PassThrough;function $o(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.size;let o=void 0===r?0:r;var u=n.timeout;let i=void 0===u?0:u;null==e?e=null:Jo(e)?e=Buffer.from(e.toString()):Vo(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof a||(e=Buffer.from(String(e)))),this[Go]={body:e,disturbed:!1,error:null},this.size=o,this.timeout=i,e instanceof a&&e.on("error",function(e){const n="AbortError"===e.name?e:new qo(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[Go].error=n})}function Wo(){var e=this;if(this[Go].disturbed)return $o.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Go].disturbed=!0,this[Go].error)return $o.Promise.reject(this[Go].error);let t=this.body;if(null===t)return $o.Promise.resolve(Buffer.alloc(0));if(Vo(t)&&(t=t.stream()),Buffer.isBuffer(t))return $o.Promise.resolve(t);if(!(t instanceof a))return $o.Promise.resolve(Buffer.alloc(0));let n=[],r=0,o=!1;return new $o.Promise(function(u,i){let s;e.timeout&&(s=setTimeout(function(){o=!0,i(new qo(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(o=!0,i(t)):i(new qo(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!o&&null!==t){if(e.size&&r+t.length>e.size)return o=!0,void i(new qo(`content size at ${e.url} over limit: ${e.size}`,"max-size"));r+=t.length,n.push(t)}}),t.on("end",function(){if(!o){clearTimeout(s);try{u(Buffer.concat(n,r))}catch(t){i(new qo(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function Jo(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function Vo(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function Ho(e){let t,n,r=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return r instanceof a&&"function"!=typeof r.getBoundary&&(t=new zo,n=new zo,r.pipe(t),r.pipe(n),e[Go].body=t,r=n),r}function Zo(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Jo(e)?"application/x-www-form-urlencoded;charset=UTF-8":Vo(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof a?null:"text/plain;charset=UTF-8"}function Yo(e){const t=e.body;return null===t?0:Vo(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}$o.prototype={get body(){return this[Go].body},get bodyUsed(){return this[Go].disturbed},arrayBuffer(){return Wo.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return Wo.call(this).then(function(t){return Object.assign(new No([],{type:e.toLowerCase()}),{[To]:t})})},json(){var e=this;return Wo.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return $o.Promise.reject(new qo(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return Wo.call(this).then(function(e){return e.toString()})},buffer(){return Wo.call(this)},textConverted(){var e=this;return Wo.call(this).then(function(t){return function(e,t){if("function"!=typeof Mo)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=t.get("content-type");let r,o,u="utf-8";n&&(r=/charset=([^;]*)/i.exec(n));o=e.slice(0,1024).toString(),!r&&o&&(r=/<meta.+?charset=(['"])(.+?)\1/i.exec(o));!r&&o&&(r=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(o),r||(r=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(o),r&&r.pop()),r&&(r=/charset=(.*)/i.exec(r.pop())));!r&&o&&(r=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(o));r&&(u=r.pop(),"gb2312"!==u&&"gbk"!==u||(u="gb18030"));return Mo(e,"UTF-8",u).toString()}(t,e.headers)})}},Object.defineProperties($o.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),$o.mixIn=function(e){for(const t of Object.getOwnPropertyNames($o.prototype))if(!(t in e)){const n=Object.getOwnPropertyDescriptor($o.prototype,t);Object.defineProperty(e,t,n)}},$o.Promise=global.Promise;const Ko=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,Xo=/[^\t\x20-\x7e\x80-\xff]/;function Qo(e){if(e=`${e}`,Ko.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function eu(e){if(e=`${e}`,Xo.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function tu(e,t){t=t.toLowerCase();for(const n in e)if(n.toLowerCase()===t)return n}const nu=Symbol("map");class ru{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[nu]=Object.create(null),e instanceof ru){const t=e.raw(),n=Object.keys(t);for(const e of n)for(const n of t[e])this.append(e,n);return}if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const n=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(t))}for(const e of n){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const n=e[t];this.append(t,n)}}}}get(e){Qo(e=`${e}`);const t=tu(this[nu],e);return void 0===t?null:this[nu][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=ou(this),r=0;for(;r<n.length;){var o=n[r];const u=o[0],i=o[1];e.call(t,i,u,this),n=ou(this),r++}}set(e,t){t=`${t}`,Qo(e=`${e}`),eu(t);const n=tu(this[nu],e);this[nu][void 0!==n?n:e]=[t]}append(e,t){t=`${t}`,Qo(e=`${e}`),eu(t);const n=tu(this[nu],e);void 0!==n?this[nu][n].push(t):this[nu][e]=[t]}has(e){return Qo(e=`${e}`),void 0!==tu(this[nu],e)}delete(e){Qo(e=`${e}`);const t=tu(this[nu],e);void 0!==t&&delete this[nu][t]}raw(){return this[nu]}keys(){return iu(this,"key")}values(){return iu(this,"value")}[Symbol.iterator](){return iu(this,"key+value")}}function ou(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[nu]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[nu][t].join(", ")}:function(t){return[t.toLowerCase(),e[nu][t].join(", ")]})}ru.prototype.entries=ru.prototype[Symbol.iterator],Object.defineProperty(ru.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(ru.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const uu=Symbol("internal");function iu(e,t){const n=Object.create(su);return n[uu]={target:e,kind:t,index:0},n}const su=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==su)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[uu];const t=e.target,n=e.kind,r=e.index,o=ou(t,n);return r>=o.length?{value:void 0,done:!0}:(this[uu].index=r+1,{value:o[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function au(e){const t=Object.assign({__proto__:null},e[nu]),n=tu(e[nu],"Host");return void 0!==n&&(t[n]=t[n][0]),t}Object.defineProperty(su,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const cu=Symbol("Response internals"),du=c.STATUS_CODES;class lu{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$o.call(this,e,t);const n=t.status||200,r=new ru(t.headers);if(null!=e&&!r.has("Content-Type")){const t=Zo(e);t&&r.append("Content-Type",t)}this[cu]={url:t.url,status:n,statusText:t.statusText||du[n],headers:r,counter:t.counter}}get url(){return this[cu].url||""}get status(){return this[cu].status}get ok(){return this[cu].status>=200&&this[cu].status<300}get redirected(){return this[cu].counter>0}get statusText(){return this[cu].statusText}get headers(){return this[cu].headers}clone(){return new lu(Ho(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}$o.mixIn(lu.prototype),Object.defineProperties(lu.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(lu.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const hu=Symbol("Request internals"),pu=d.URL||ko.URL,fu=d.parse,mu=d.format;function vu(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new pu(e).toString()),fu(e)}const Eu="destroy"in a.Readable.prototype;function Au(e){return"object"==typeof e&&"object"==typeof e[hu]}class bu{constructor(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Au(e)?t=vu(e.url):(t=e&&e.href?vu(e.href):vu(`${e}`),e={});let r=n.method||e.method||"GET";if(r=r.toUpperCase(),(null!=n.body||Au(e)&&null!==e.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let o=null!=n.body?n.body:Au(e)&&null!==e.body?Ho(e):null;$o.call(this,o,{timeout:n.timeout||e.timeout||0,size:n.size||e.size||0});const u=new ru(n.headers||e.headers||{});if(null!=o&&!u.has("Content-Type")){const e=Zo(o);e&&u.append("Content-Type",e)}let i=Au(e)?e.signal:null;if("signal"in n&&(i=n.signal),null!=i&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[hu]={method:r,redirect:n.redirect||e.redirect||"follow",headers:u,parsedURL:t,signal:i},this.follow=void 0!==n.follow?n.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===e.compress||e.compress,this.counter=n.counter||e.counter||0,this.agent=n.agent||e.agent}get method(){return this[hu].method}get url(){return mu(this[hu].parsedURL)}get headers(){return this[hu].headers}get redirect(){return this[hu].redirect}get signal(){return this[hu].signal}clone(){return new bu(this)}}function yu(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}$o.mixIn(bu.prototype),Object.defineProperty(bu.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(bu.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),yu.prototype=Object.create(Error.prototype),yu.prototype.constructor=yu,yu.prototype.name="AbortError";const gu=d.URL||ko.URL,Cu=a.PassThrough;function wu(e,t){if(!wu.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return $o.Promise=wu.Promise,new wu.Promise(function(n,r){const o=new bu(e,t),u=function(e){const t=e[hu].parsedURL,n=new ru(e[hu].headers);if(n.has("Accept")||n.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof a.Readable&&!Eu)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let r=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(r="0"),null!=e.body){const t=Yo(e);"number"==typeof t&&(r=String(t))}r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let o=e.agent;return"function"==typeof o&&(o=o(t)),n.has("Connection")||o||n.set("Connection","close"),Object.assign({},t,{method:e.method,headers:au(n),agent:o})}(o),i=("https:"===u.protocol?h:c).request,s=o.signal;let d=null;const l=function(){let e=new yu("The user aborted a request.");r(e),o.body&&o.body instanceof a.Readable&&o.body.destroy(e),d&&d.body&&d.body.emit("error",e)};if(s&&s.aborted)return void l();const p=function(){l(),E()},m=i(u);let v;function E(){m.abort(),s&&s.removeEventListener("abort",p),clearTimeout(v)}s&&s.addEventListener("abort",p),o.timeout&&m.once("socket",function(e){v=setTimeout(function(){r(new qo(`network timeout at: ${o.url}`,"request-timeout")),E()},o.timeout)}),m.on("error",function(e){r(new qo(`request to ${o.url} failed, reason: ${e.message}`,"system",e)),E()}),m.on("response",function(e){clearTimeout(v);const t=function(e){const t=new ru;for(const n of Object.keys(e))if(!Ko.test(n))if(Array.isArray(e[n]))for(const r of e[n])Xo.test(r)||(void 0===t[nu][n]?t[nu][n]=[r]:t[nu][n].push(r));else Xo.test(e[n])||(t[nu][n]=[e[n]]);return t}(e.headers);if(wu.isRedirect(e.statusCode)){const u=t.get("Location");let i=null;try{i=null===u?null:new gu(u,o.url).toString()}catch(e){if("manual"!==o.redirect)return r(new qo(`uri requested responds with an invalid redirect URL: ${u}`,"invalid-redirect")),void E()}switch(o.redirect){case"error":return r(new qo(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),void E();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){r(e)}break;case"follow":if(null===i)break;if(o.counter>=o.follow)return r(new qo(`maximum redirect reached at: ${o.url}`,"max-redirect")),void E();const u={headers:new ru(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:o.body,signal:o.signal,timeout:o.timeout,size:o.size};if(!function(e,t){const n=new gu(t).hostname,r=new gu(e).hostname;return n===r||"."===n[n.length-r.length-1]&&n.endsWith(r)}(o.url,i))for(const e of["authorization","www-authenticate","cookie","cookie2"])u.headers.delete(e);return 303!==e.statusCode&&o.body&&null===Yo(o)?(r(new qo("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void E()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==o.method)||(u.method="GET",u.body=void 0,u.headers.delete("content-length")),n(wu(new bu(i,u))),void E())}}e.once("end",function(){s&&s.removeEventListener("abort",p)});let u=e.pipe(new Cu);const i={url:o.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:o.size,timeout:o.timeout,counter:o.counter},a=t.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===a||204===e.statusCode||304===e.statusCode)return d=new lu(u,i),void n(d);const c={flush:f.Z_SYNC_FLUSH,finishFlush:f.Z_SYNC_FLUSH};if("gzip"==a||"x-gzip"==a)return u=u.pipe(f.createGunzip(c)),d=new lu(u,i),void n(d);if("deflate"==a||"x-deflate"==a){return void e.pipe(new Cu).once("data",function(e){u=8==(15&e[0])?u.pipe(f.createInflate()):u.pipe(f.createInflateRaw()),d=new lu(u,i),n(d)})}if("br"==a&&"function"==typeof f.createBrotliDecompress)return u=u.pipe(f.createBrotliDecompress()),d=new lu(u,i),void n(d);d=new lu(u,i),n(d)}),function(e,t){const n=t.body;null===n?e.end():Vo(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(m,o)})}wu.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},wu.Promise=global.Promise;var Fu="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,Du=Fu?wu:window.fetch,Bu=function(e,t){return void 0===t&&(t=50),function(n){var r=e,o=function(){return V(void 0,void 0,void 0,function(){var e;return H(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,4]),[4,n()];case 1:return[2,u.sent()];case 2:if(e=u.sent(),r<=0)throw e;return r-=1,[4,new Promise(function(e){return setTimeout(function(){return e()},t)})];case 3:return u.sent(),[2,o()];case 4:return[2]}})})};return o()}};var Iu=function(e){return Array.isArray(e)?e:[e]},Su=function(e,t){return V(void 0,void 0,void 0,function(){var n;return H(this,function(r){return n=Promise.resolve([]),[2,e.reduce(function(e,n){return e.then(function(e){return t(n).then(function(t){return e.push(t),e})})},n)]})})},Ru=function(e){function t(t){void 0===t&&(t=8192);var n=e.call(this)||this;return n.bufferDefaultSize=t,n._size=0,n.buffer=Buffer.alloc(n.bufferDefaultSize),n}return W(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.getContentsAsString=function(e,t){void 0===e&&(e="utf8");var n=this.buffer.toString(e,0,Math.min(t||this.size,this.size)),r=Buffer.byteLength(n);return r<this.size&&this.buffer.copy(this.buffer,0,r),this._size-=r,n},t.prototype.adaptBuffer=function(e){if(this.buffer.length-this.size<e){var t=Math.ceil((e-(this.buffer.length-this.size))/this.bufferDefaultSize),n=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*t);this.buffer.copy(n,0,0,this.size),this.buffer=n}},t.prototype._write=function(e,t,n){this.adaptBuffer(e.length),e.copy(this.buffer,this.size,0),this._size+=e.length,n()},t}(u.Writable),ju=function(){function e(e,t){this.contextProvider=e,this.agent=t}return e.prototype.getServiceDetails=function(e,t){return V(this,void 0,void 0,function(){return H(this,function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(e,"/services/").concat(t))]})})},e.prototype.getAddonDetails=function(e,t){return V(this,void 0,void 0,function(){return H(this,function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(e,"/addons/").concat(t))]})})},e.prototype.fetch=function(e,t){return V(this,void 0,void 0,function(){var n,r,o,u,i,s=this;return H(this,function(a){switch(a.label){case 0:return n="Error while trying to connect, please try again.",r=vr({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},J(J({},t),{agent:this.agent})),[4,Bu(2)(function(){return V(s,void 0,void 0,function(){return H(this,function(t){return[2,Du(e,r)]})})}).catch(function(){throw new Error(n)})];case 1:return(o=a.sent()).ok?[3,3]:[4,o.text()];case 2:u=a.sent(),i=n;try{i=JSON.parse(u)}catch(e){i=null!=u?u:n}finally{throw new Error(JSON.stringify(i))}case 3:return[4,o.json()];case 4:return[2,a.sent()]}})})},e}(),_u=function(e,t,n){return V(void 0,void 0,void 0,function(){var r,o,u,i,s;return H(this,function(a){switch(a.label){case 0:if(r=Ou(t||"127.0.0.1"),(o=Ou(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===m.platform()&&(u=function(e){return V(void 0,void 0,void 0,function(){var t;return H(this,function(n){switch(n.label){case 0:return t="lo0 alias ".concat(e," up"),[4,Pu.apply(void 0,t.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,a.label=1;case 1:return i<=o?(s=ku(i),[4,Uu(e,s)]):[3,6];case 2:return a.sent()?u?[4,u(s)]:[3,4]:[3,5];case 3:a.sent(),a.label=4;case 4:return[2,s];case 5:return i+=1,[3,1];case 6:throw new Error("Not possible to assign port '".concat(e,"' to an IP address on this machine. Please check if there is already a service running with this port which binds to the wildcard host address (0.0.0.0) and stop this service."))}})})},Uu=function(e,t){return new Promise(function(n){var r=new A,o=!1;r.on("connect",function(){o=!0,r.destroy()}),r.setTimeout(400),r.on("timeout",function(){o=!1,r.destroy()}),r.on("error",function(){o=!1}),r.on("close",function(){n(!o)}),t?r.connect(e,t):r.connect(e)})},Pu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return V(void 0,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:return[4,xu("/sbin/ifconfig",e).resultPromise];case 1:return[2,t.sent()]}})})},Ou=function(e){var t=e.split(".").reverse();if(4!==t.length)throw new Error("Invalid ip address: ".concat(e));for(var n=0,r=0;r<4;r+=1){var o=Number.parseInt(t[r],10);if(o<0||o>255)throw new Error("Invalid ip address: ".concat(e));n+=o<<8*r}return n},ku=function(e){if(!Number.isSafeInteger(e))throw new Error("Number is not an integer");if(e<0||e>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");for(var t=[],n=0;n<4;n+=1)t.push(e>>8*n&255);return t.reverse().join(".")},xu=function(e,t,n){var o=r(e,t,J({windowsHide:!0},n)),u=new Promise(function(r,u){var i="",s="";(null===(null==n?void 0:n.stdio)||void 0===(null==n?void 0:n.stdio))&&(o.stdout&&o.stdout.on("data",function(e){i+=e}),o.stderr&&o.stderr.on("data",function(e){s+=e})),o.on("close",function(n){var o={code:n,stdout:i,stderr:s};if(0!==n){var a="Error during execution of command '".concat(e," ").concat(t.join(" "),"': ").concat(s);u({message:a,result:o})}else r(o)})});return{process:o,resultPromise:u}},Tu=function(e,t,n){return V(void 0,void 0,void 0,function(){var r,o;return H(this,function(u){switch(u.label){case 0:return r=Lu(e,10),[4,b.promises.writeFile(r,t,n)];case 1:u.sent(),u.label=2;case 2:return u.trys.push([2,4,,6]),[4,b.promises.rename(r,e)];case 3:return u.sent(),[3,6];case 4:return o=u.sent(),[4,b.promises.unlink(r).catch(function(){})];case 5:throw u.sent(),o;case 6:return[2]}})})},Lu=function(e,t){for(var n,r=function(e){return Z([],Array(e),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},o=F.dirname(e),u=F.basename(e),i=0;null===(n=i<t)||void 0===n||n;i+=1){var s=r(16),a=".".concat(s,".").concat(u),c=F.join(o,a);if(!b.existsSync(c))return c}throw new Error("Could not write file to file '".concat(e,"'."))},Nu="win32"===process.platform?"\r\n":"\n",qu=function(){function e(e,t){this.nodes=e,this.config=t}return e.prototype.add=function(e,t,n){var r=this;if(0===t.length)return this;var o=this.findOrCreateEntry(e,n);return t.forEach(function(e){if(!o.hosts.find(function(t){return t.host===e})){var t=1;0===o.hosts.length&&(t=r.config.indent-"".concat(o.ipPrefixWhitespace).concat(o.ip).length),o.hosts.push({whitespace:" ".repeat(t<1?1:t),host:e})}}),this},e.prototype.remove=function(e,t){var n=this;return this.findEntries(e).forEach(function(e){t.forEach(function(t){var r=e.hosts.findIndex(function(e){return e.host===t});r<0||(0===r&&void 0!==e.hosts[1]&&(e.hosts[1].whitespace=e.hosts[0].whitespace),e.hosts.splice(r,1),0===e.hosts.length&&n.removeEntry(e))})}),this},e.prototype.removeHosts=function(e){var t=this;Vu(this.nodes,"entry").forEach(function(n){t.remove(n.ip,e)})},e.prototype.removeIps=function(e){var t=this;return e.forEach(function(e){t.findEntries(e).forEach(function(e){return t.removeEntry(e)})}),this},e.prototype.resolveHosts=function(e){return dr(this.findEntries(e),function(e){return e.hosts.map(function(e){return e.host})})},e.prototype.resolveIps=function(e){return Vu(this.nodes,"entry").filter(function(t){return t.hosts.some(function(t){return t.host===e})}).map(function(e){return e.ip})},e.prototype.toString=function(){return $u(this.nodes,this.config.eol)},e.prototype.removeEntry=function(e){var t,n="number"==typeof(t=e)||se(t)&&"[object Number]"==ie(t)?e:this.nodes.findIndex(function(t){return t===e});n<0||this.nodes.splice(n,1)},e.prototype.findEntries=function(e){return Vu(this.nodes,"entry").filter(function(t){return t.ip===e})},e.prototype.findOrCreateEntry=function(e,t){var n=this.findEntries(e)[0];if(n)return n;var r=this.makeEntry(e);if(t){var o=zu(t),u=this.nodes.findIndex(function(e){return"comment"===e.type&&e.line===o});if(u>=0)this.insertAt(u+1,r);else{var i="blank"!==this.nodes[this.nodes.length-1].type?[Mu(),Gu(o),r]:[Gu(o),r];this.insertAt.apply(this,Z([this.nodes.length],i,!1))}}else this.insertAt(this.nodes.length,r);return r},e.prototype.insertAt=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.nodes).splice.apply(t,Z([e,0],n,!1))},e.prototype.makeEntry=function(e,t){var n=this.config.ipPrefixWhitespace;return J({type:"entry",ip:e,ipPrefixWhitespace:n,hosts:[]},t)},e.fromNodes=function(t,n){var r,o;return new e(t.filter(function(e){return"eol"!==e.type}),{eol:null!==(r=null==n?void 0:n.eol)&&void 0!==r?r:function(){var e,n=Vu(t,"eol").map(function(e){return e.line});return null!==(e=Hu(n))&&void 0!==e?e:Nu}(),indent:null!==(o=null==n?void 0:n.indent)&&void 0!==o?o:function(){var e,n=dr(Vu(t,"entry"),function(e){var t=e.ipPrefixWhitespace,n=e.ip,r=e.hosts[0];return r?["".concat(t).concat(n).concat(r.whitespace).length]:[]});return null!==(e=Hu(n))&&void 0!==e?e:17}(),ipPrefixWhitespace:""})},e.parse=function(e,t){return this.fromNodes(Wu(e),t)},e}(),Mu=function(){return{type:"blank",line:""}},Gu=function(e){return{type:"comment",line:zu(e)}},zu=function(e){return e.startsWith("#")?e:"# ".concat(e)},$u=function(e,t){var n=e.map(function(e){switch(e.type){case"entry":var t=e.hosts.map(function(e){var t=e.whitespace,n=e.host;return"".concat(t).concat(n)}).join("");return"".concat(e.ipPrefixWhitespace).concat(e.ip).concat(t);case"blank":case"comment":case"invalid":return e.line;default:return""}});return n.join(null!=t?t:Nu)},Wu=function(e){return e.split(/(\r?\n)/).map(function(e){return function(e){return e.match(/^\s*#.*$/)}(e)?{type:"comment",line:e}:function(e){return e.match(/^(\r?\n)$/)}(e)?{type:"eol",line:e}:function(e){return e.match(/^\s*$/)}(e)?{type:"blank",line:e}:Ju(e)})},Ju=function(e){var t=e.match(/^(\s*)(\S+)(.+)?$/);if(!t)return{type:"invalid",line:e};var n=t[1],r=t[2],o=t.slice(3),u=!1,i=dr(o.filter(function(e){return void 0!==e}),function(e){var t=e.match(/(\s+)(\S+)/g);return t?t.map(function(e){var t=e.match(/^(\s+)(\S+)$/);t||(u=!0);var n=null!=t?t:[];return{whitespace:n[1],host:n[2]}}):(u=!0,[])});return u?{type:"invalid",line:e}:{type:"entry",ipPrefixWhitespace:n,ip:r,hosts:i}},Vu=function(e,t){return e.filter(function(e){return e.type===t})},Hu=function(e){var t=new Map;e.forEach(function(e){var n;t.set(e,(null!==(n=t.get(e))&&void 0!==n?n:0)+1)});var n=fr(Array.from(t.entries()),function(e){return e[1]});if(n)return n[0]},Zu="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",Yu=function(){function e(e){this.ast=qu.fromNodes([]);var t={writeMode:"atomic",hostsFile:Zu};this.config=J(J({},t),e)}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!pr(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!pr(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.add(e,t,this.config.header),this},e.prototype.remove=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!pr(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!pr(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.remove(e,t),this},e.prototype.removeHosts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!pr(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.removeHosts(e),this},e.prototype.removeIps=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!pr(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."))}),this.ast.removeIps(e),this},e.prototype.read=function(){return V(this,void 0,void 0,function(){var e;return H(this,function(t){switch(t.label){case 0:return[4,b.promises.readFile(this.config.hostsFile)];case 1:return e=t.sent(),this.ast=qu.parse(e.toString(),this.config),[2,this]}})})},e.prototype.write=function(e){return V(this,void 0,void 0,function(){var t,n,r,o;return H(this,function(u){switch(u.label){case 0:switch(t=J(J({},this.config),e),n=t.hostsFile,r=t.writeMode,o=this.ast.toString(),r){case void 0:case"atomic":return[3,1];case"standard":return[3,3];case"disabled":return[3,5]}return[3,5];case 1:return[4,Tu(n,o)];case 2:case 4:return u.sent(),[3,6];case 3:return[4,b.promises.writeFile(n,o)];case 5:return[3,6];case 6:return[2,this]}})})},e.prototype.backup=function(e){return V(this,void 0,void 0,function(){var t,n,r,o;return H(this,function(u){switch(u.label){case 0:return b.existsSync(this.config.hostsFile)?(t=F.dirname(this.config.hostsFile),n=F.basename(this.config.hostsFile),r="".concat(n).concat(e.suffix),o=F.resolve(t,r),b.existsSync(o)&&!e.rewrite?[3,2]:[4,b.promises.copyFile(this.config.hostsFile,o)]):[2];case 1:u.sent(),u.label=2;case 2:return[2]}})})},e.load=function(t){return V(this,void 0,void 0,function(){return H(this,function(n){switch(n.label){case 0:return[4,new e(t).read()];case 1:return[2,n.sent()]}})})},e}(),Ku=function(){function e(){this.previousPromise=Promise.resolve(),this._queueLength=0}return Object.defineProperty(e.prototype,"queueLength",{get:function(){return this._queueLength},enumerable:!1,configurable:!0}),e.prototype.enter=function(e){return V(this,void 0,void 0,function(){var t,n=this;return H(this,function(r){return this._queueLength+=1,t=this.previousPromise.then(function(){return n._queueLength-=1,e()},function(){return n._queueLength-=1,e()}),this.previousPromise=t,[2,t]})})},e}(),Xu=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),o=e[e.length-1];return"function"==typeof r&&r!==o&&Object.keys(o).forEach(function(e){r[e]=o[e]}),r}};var Qu=Xu(ti),ei=Xu(ni);function ti(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function ni(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}ti.proto=ti(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ti(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ni(this)},configurable:!0})}),Qu.strict=ei;var ri,oi=function(){},ui=Er.Bare?queueMicrotask:process.nextTick.bind(process),ii=function(e,t,n){if("function"==typeof t)return ii(e,null,t);t||(t={}),n=Qu(n||oi);var r=e._writableState,o=e._readableState,u=t.readable||!1!==t.readable&&e.readable,i=t.writable||!1!==t.writable&&e.writable,s=!1,a=function(){e.writable||c()},c=function(){i=!1,u||n.call(e)},d=function(){u=!1,i||n.call(e)},l=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},h=function(t){n.call(e,t)},p=function(){ui(f)},f=function(){if(!s)return(!u||o&&o.ended&&!o.destroyed)&&(!i||r&&r.ended&&!r.destroyed)?void 0:n.call(e,new Error("premature close"))},m=function(){e.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?i&&!r&&(e.on("end",a),e.on("close",a)):(e.on("complete",c),e.on("abort",p),e.req?m():e.on("request",m)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",l),e.on("end",d),e.on("finish",c),!1!==t.error&&e.on("error",h),e.on("close",p),function(){s=!0,e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",c),e.removeListener("exit",l),e.removeListener("end",d),e.removeListener("error",h),e.removeListener("close",p)}},si=ii;try{ri=b}catch(e){}var ai=function(){},ci="undefined"!=typeof process&&/^v?\.0/.test(process.version),di=function(e){return"function"==typeof e},li=function(e,t,n,r){r=Qu(r);var o=!1;e.on("close",function(){o=!0}),si(e,{readable:t,writable:n},function(e){if(e)return r(e);o=!0,r()});var u=!1;return function(t){if(!o&&!u)return u=!0,function(e){return!!ci&&!!ri&&(e instanceof(ri.ReadStream||ai)||e instanceof(ri.WriteStream||ai))&&di(e.close)}(e)?e.close(ai):function(e){return e.setHeader&&di(e.abort)}(e)?e.abort():di(e.destroy)?e.destroy():void r(t||new Error("stream was destroyed"))}},hi=function(e){e()},pi=function(e,t){return e.pipe(t)},fi=function(){var e,t=Array.prototype.slice.call(arguments),n=di(t[t.length-1]||ai)&&t.pop()||ai;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map(function(o,u){var i=u<t.length-1;return li(o,i,u>0,function(t){e||(e=t),t&&r.forEach(hi),i||(r.forEach(hi),n(e))})});return t.reduce(pi)};const mi=["nodebuffer","arraybuffer","fragments"],vi="undefined"!=typeof Blob;vi&&mi.push("blob");var Ei={BINARY_TYPES:mi,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:vi,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}},Ai="function"==typeof __webpack_require__?__non_webpack_require__:Ar,bi=process.config&&process.config.variables||{},yi=!!process.env.PREBUILDS_ONLY,gi=process.versions.modules,Ci=!(!process.versions||!process.versions.electron)||!!process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",wi=process.env.npm_config_arch||m.arch(),Fi=process.env.npm_config_platform||m.platform(),Di=process.env.LIBC||(function(e){return"linux"===e&&b.existsSync("/etc/alpine-release")}(Fi)?"musl":"glibc"),Bi=process.env.ARM_VERSION||("arm64"===wi?"8":bi.arm_version)||"",Ii=(process.versions.uv||"").split(".")[0],Si=Ri;function Ri(e){return Ai(Ri.resolve(e))}function ji(e){try{return b.readdirSync(e)}catch(e){return[]}}function _i(e,t){var n=ji(e).filter(t);return n[0]&&F.join(e,n[0])}function Ui(e){return/\.node$/.test(e)}function Pi(e){var t=e.split("-");if(2===t.length){var n=t[0],r=t[1].split("+");if(n&&r.length&&r.every(Boolean))return{name:e,platform:n,architectures:r}}}function Oi(e,t){return function(n){return null!=n&&(n.platform===e&&n.architectures.includes(t))}}function ki(e,t){return e.architectures.length-t.architectures.length}function xi(e){var t=e.split("."),n={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var o=t[r];if("node"===o||"electron"===o||"node-webkit"===o)n.runtime=o;else if("napi"===o)n.napi=!0;else if("abi"===o.slice(0,3))n.abi=o.slice(3);else if("uv"===o.slice(0,2))n.uv=o.slice(2);else if("armv"===o.slice(0,4))n.armv=o.slice(4);else{if("glibc"!==o&&"musl"!==o)continue;n.libc=o}n.specificity++}return n}}function Ti(e,t){return function(n){return null!=n&&(!(n.runtime&&n.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(n))&&(!(n.abi&&n.abi!==t&&!n.napi)&&((!n.uv||n.uv===Ii)&&((!n.armv||n.armv===Bi)&&(!n.libc||n.libc===Di)))))}}function Li(e){return function(t,n){return t.runtime!==n.runtime?t.runtime===e?-1:1:t.abi!==n.abi?t.abi?-1:1:t.specificity!==n.specificity?t.specificity>n.specificity?-1:1:0}}Ri.resolve=Ri.path=function(e){e=F.resolve(e||".");try{var t=Ai(F.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch(e){}if(!yi){var n=_i(F.join(e,"build/Release"),Ui);if(n)return n;var r=_i(F.join(e,"build/Debug"),Ui);if(r)return r}var o=s(e);if(o)return o;var u=s(F.dirname(process.execPath));if(u)return u;var i=["platform="+Fi,"arch="+wi,"runtime="+Ci,"abi="+gi,"uv="+Ii,Bi?"armv="+Bi:"","libc="+Di,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+i+"\n loaded from: "+e+"\n");function s(e){var t=ji(F.join(e,"prebuilds")).map(Pi).filter(Oi(Fi,wi)).sort(ki)[0];if(t){var n=F.join(e,"prebuilds",t.name),r=ji(n).map(xi).filter(Ti(Ci,gi)).sort(Li(Ci))[0];return r?F.join(n,r.file):void 0}}},Ri.parseTags=xi,Ri.matchTags=Ti,Ri.compareTags=Li,Ri.parseTuple=Pi,Ri.matchTuple=Oi,Ri.compareTuples=ki;var Ni=br(function(e){const t="function"==typeof __webpack_require__?__non_webpack_require__:Ar;"function"==typeof t.addon?e.exports=t.addon.bind(t):e.exports=Si});var qi={mask:(e,t,n,r,o)=>{for(var u=0;u<o;u++)n[r+u]=e[u]^t[3&u]},unmask:(e,t)=>{const n=e.length;for(var r=0;r<n;r++)e[r]^=t[3&r]}},Mi=br(function(e){try{e.exports=Ni(__dirname)}catch(t){e.exports=qi}}),Gi=br(function(e){const{EMPTY_BUFFER:t}=Ei,n=Buffer[Symbol.species];function r(e,t,n,r,o){for(let u=0;u<o;u++)n[r+u]=e[u]^t[3&u]}function o(e,t){for(let n=0;n<e.length;n++)e[n]^=t[3&n]}if(e.exports={concat:function(e,r){if(0===e.length)return t;if(1===e.length)return e[0];const o=Buffer.allocUnsafe(r);let u=0;for(let t=0;t<e.length;t++){const n=e[t];o.set(n,u),u+=n.length}return u<r?new n(o.buffer,o.byteOffset,u):o},mask:r,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(t){if(e.readOnly=!0,Buffer.isBuffer(t))return t;let r;return t instanceof ArrayBuffer?r=new n(t):ArrayBuffer.isView(t)?r=new n(t.buffer,t.byteOffset,t.byteLength):(r=Buffer.from(t),e.readOnly=!1),r},unmask:o},!process.env.WS_NO_BUFFER_UTIL)try{const t=Mi;e.exports.mask=function(e,n,o,u,i){i<48?r(e,n,o,u,i):t.mask(e,n,o,u,i)},e.exports.unmask=function(e,n){e.length<32?o(e,n):t.unmask(e,n)}}catch(e){}});Gi.concat,Gi.mask,Gi.toArrayBuffer,Gi.toBuffer,Gi.unmask;const zi=Symbol("kDone"),$i=Symbol("kRun");var Wi=class{constructor(e){this[zi]=()=>{this.pending--,this[$i]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[$i]()}[$i](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[zi])}}};const{kStatusCode:Ji}=Ei,Vi=Buffer[Symbol.species],Hi=Buffer.from([0,0,255,255]),Zi=Symbol("permessage-deflate"),Yi=Symbol("total-length"),Ki=Symbol("callback"),Xi=Symbol("buffers"),Qi=Symbol("error");let es;var ts=class{constructor(e,t,n){if(this._maxPayload=0|n,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!es){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;es=new Wi(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[Ki];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,n=e.find(e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(n.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?n.client_max_window_bits=t.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(n=n[0],"client_max_window_bits"===t){if(!0!==n){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}else if("server_max_window_bits"===t){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n})}),e}decompress(e,t,n){es.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){es.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){const r=this._isServer?"client":"server";if(!this._inflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?f.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=f.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[Zi]=this,this._inflate[Yi]=0,this._inflate[Xi]=[],this._inflate.on("error",os),this._inflate.on("data",rs)}this._inflate[Ki]=n,this._inflate.write(e),t&&this._inflate.write(Hi),this._inflate.flush(()=>{const e=this._inflate[Qi];if(e)return this._inflate.close(),this._inflate=null,void n(e);const o=Gi.concat(this._inflate[Xi],this._inflate[Yi]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Yi]=0,this._inflate[Xi]=[],t&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),n(null,o)})}_compress(e,t,n){const r=this._isServer?"server":"client";if(!this._deflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?f.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=f.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[Yi]=0,this._deflate[Xi]=[],this._deflate.on("data",ns)}this._deflate[Ki]=n,this._deflate.write(e),this._deflate.flush(f.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=Gi.concat(this._deflate[Xi],this._deflate[Yi]);t&&(e=new Vi(e.buffer,e.byteOffset,e.length-4)),this._deflate[Ki]=null,this._deflate[Yi]=0,this._deflate[Xi]=[],t&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}};function ns(e){this[Xi].push(e),this[Yi]+=e.length}function rs(e){this[Yi]+=e.length,this[Zi]._maxPayload<1||this[Yi]<=this[Zi]._maxPayload?this[Xi].push(e):(this[Qi]=new RangeError("Max payload size exceeded"),this[Qi].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Qi][Ji]=1009,this.removeListener("data",rs),this.reset())}function os(e){this[Zi]._inflate=null,this[Qi]?this[Ki](this[Qi]):(e[Ji]=1007,this[Ki](e))}var us=function(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0},is=br(function(e){try{e.exports=Ni(__dirname)}catch(t){e.exports=us}}),ss=br(function(e){const{isUtf8:t}=j,{hasBlob:n}=Ei;function r(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}if(e.exports={isBlob:function(e){return n&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:r,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},t)e.exports.isValidUTF8=function(e){return e.length<24?r(e):t(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const t=is;e.exports.isValidUTF8=function(e){return e.length<32?r(e):t(e)}}catch(e){}});ss.isBlob,ss.isValidStatusCode,ss.isValidUTF8,ss.tokenChars;const{Writable:as}=a,{BINARY_TYPES:cs,EMPTY_BUFFER:ds,kStatusCode:ls,kWebSocket:hs}=Ei,{concat:ps,toArrayBuffer:fs,unmask:ms}=Gi,{isValidStatusCode:vs,isValidUTF8:Es}=ss,As=Buffer[Symbol.species];var bs=class extends as{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||cs[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[hs]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new As(t.buffer,t.byteOffset+e,t.length-e),new As(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new As(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const t=this.consume(2);if(48&t[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const n=!(64&~t[0]);if(n&&!this._extensions[ts.extensionName]){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._fin=!(128&~t[0]),this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(n){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=n}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(n){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~t[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),n=t.readUInt32BE(0);if(n>Math.pow(2,21)-1){return void e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){return void e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=ds;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&ms(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,t){this._extensions[ts.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void t(e)}this._fragments.push(n)}this.dataMessage(t),0===this._state&&this.startLoop(t)})}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?ps(n,t):"arraybuffer"===this._binaryType?fs(ps(n,t)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)}))}else{const r=ps(n,t);if(!this._skipUTF8Validation&&!Es(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)}));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,ds),this.end();else{const n=e.readUInt16BE(0);if(!vs(n)){const e=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new As(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!Es(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,o){this._loop=!1,this._errored=!0;const u=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(u,this.createError),u.code=o,u[ls]=r,u}};const{randomFillSync:ys}=R,{EMPTY_BUFFER:gs,kWebSocket:Cs,NOOP:ws}=Ei,{isBlob:Fs,isValidStatusCode:Ds}=ss,{mask:Bs,toBuffer:Is}=Gi,Ss=Symbol("kByteLength"),Rs=Buffer.alloc(4),js=8192;let _s,Us=js;class Ps{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=ws,this[Cs]=void 0}static frame(e,t){let n,r,o=!1,u=2,i=!1;t.mask&&(n=t.maskBuffer||Rs,t.generateMask?t.generateMask(n):(Us===js&&(void 0===_s&&(_s=Buffer.alloc(js)),ys(_s,0,js),Us=0),n[0]=_s[Us++],n[1]=_s[Us++],n[2]=_s[Us++],n[3]=_s[Us++]),i=0===(n[0]|n[1]|n[2]|n[3]),u=6),"string"==typeof e?r=t.mask&&!i||void 0===t[Ss]?(e=Buffer.from(e)).length:t[Ss]:(r=e.length,o=t.mask&&t.readOnly&&!i);let s=r;r>=65536?(u+=8,s=127):r>125&&(u+=2,s=126);const a=Buffer.allocUnsafe(o?r+u:u);return a[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(a[0]|=64),a[1]=s,126===s?a.writeUInt16BE(r,2):127===s&&(a[2]=a[3]=0,a.writeUIntBE(r,4,6)),t.mask?(a[1]|=128,a[u-4]=n[0],a[u-3]=n[1],a[u-2]=n[2],a[u-1]=n[3],i?[a,e]:o?(Bs(e,n,a,u,r),[a]):(Bs(e,n,e,0,r),[a,e])):[a,e]}close(e,t,n,r){let o;if(void 0===e)o=gs;else{if("number"!=typeof e||!Ds(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const n=Buffer.byteLength(t);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");o=Buffer.allocUnsafe(2+n),o.writeUInt16BE(e,0),"string"==typeof t?o.write(t,2):o.set(t,2)}else o=Buffer.allocUnsafe(2),o.writeUInt16BE(e,0)}const u={[Ss]:o.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,o,!1,u,r]):this.sendFrame(Ps.frame(o,u),r)}ping(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):Fs(e)?(r=e.size,o=!1):(r=(e=Is(e)).length,o=Is.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const u={[Ss]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:o,rsv1:!1};Fs(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,u,n]):this.getBlobData(e,!1,u,n):0!==this._state?this.enqueue([this.dispatch,e,!1,u,n]):this.sendFrame(Ps.frame(e,u),n)}pong(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):Fs(e)?(r=e.size,o=!1):(r=(e=Is(e)).length,o=Is.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const u={[Ss]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:o,rsv1:!1};Fs(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,u,n]):this.getBlobData(e,!1,u,n):0!==this._state?this.enqueue([this.dispatch,e,!1,u,n]):this.sendFrame(Ps.frame(e,u),n)}send(e,t,n){const r=this._extensions[ts.extensionName];let o,u,i=t.binary?2:1,s=t.compress;"string"==typeof e?(o=Buffer.byteLength(e),u=!1):Fs(e)?(o=e.size,u=!1):(o=(e=Is(e)).length,u=Is.readOnly),this._firstFragment?(this._firstFragment=!1,s&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(s=o>=r._threshold),this._compress=s):(s=!1,i=0),t.fin&&(this._firstFragment=!0);const a={[Ss]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:u,rsv1:s};Fs(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,a,n]):this.getBlobData(e,this._compress,a,n):0!==this._state?this.enqueue([this.dispatch,e,this._compress,a,n]):this.dispatch(e,this._compress,a,n)}getBlobData(e,t,n,r){this._bufferedBytes+=n[Ss],this._state=2,e.arrayBuffer().then(e=>{if(this._socket.destroyed){const e=new Error("The socket was closed while the blob was being read");return void process.nextTick(ks,this,e,r)}this._bufferedBytes-=n[Ss];const o=Is(e);t?this.dispatch(o,t,n,r):(this._state=0,this.sendFrame(Ps.frame(o,n),r),this.dequeue())}).catch(e=>{process.nextTick(xs,this,e,r)})}dispatch(e,t,n,r){if(!t)return void this.sendFrame(Ps.frame(e,n),r);const o=this._extensions[ts.extensionName];this._bufferedBytes+=n[Ss],this._state=1,o.compress(e,n.fin,(e,t)=>{if(this._socket.destroyed){return void ks(this,new Error("The socket was closed while data was being compressed"),r)}this._bufferedBytes-=n[Ss],this._state=0,n.readOnly=!1,this.sendFrame(Ps.frame(t,n),r),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][Ss],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][Ss],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}var Os=Ps;function ks(e,t,n){"function"==typeof n&&n(t);for(let n=0;n<e._queue.length;n++){const r=e._queue[n],o=r[r.length-1];"function"==typeof o&&o(t)}}function xs(e,t,n){ks(e,t,n),e.onerror(t)}const{kForOnEventAttribute:Ts,kListener:Ls}=Ei,Ns=Symbol("kCode"),qs=Symbol("kData"),Ms=Symbol("kError"),Gs=Symbol("kMessage"),zs=Symbol("kReason"),$s=Symbol("kTarget"),Ws=Symbol("kType"),Js=Symbol("kWasClean");class Vs{constructor(e){this[$s]=null,this[Ws]=e}get target(){return this[$s]}get type(){return this[Ws]}}Object.defineProperty(Vs.prototype,"target",{enumerable:!0}),Object.defineProperty(Vs.prototype,"type",{enumerable:!0});class Hs extends Vs{constructor(e,t={}){super(e),this[Ns]=void 0===t.code?0:t.code,this[zs]=void 0===t.reason?"":t.reason,this[Js]=void 0!==t.wasClean&&t.wasClean}get code(){return this[Ns]}get reason(){return this[zs]}get wasClean(){return this[Js]}}Object.defineProperty(Hs.prototype,"code",{enumerable:!0}),Object.defineProperty(Hs.prototype,"reason",{enumerable:!0}),Object.defineProperty(Hs.prototype,"wasClean",{enumerable:!0});class Zs extends Vs{constructor(e,t={}){super(e),this[Ms]=void 0===t.error?null:t.error,this[Gs]=void 0===t.message?"":t.message}get error(){return this[Ms]}get message(){return this[Gs]}}Object.defineProperty(Zs.prototype,"error",{enumerable:!0}),Object.defineProperty(Zs.prototype,"message",{enumerable:!0});class Ys extends Vs{constructor(e,t={}){super(e),this[qs]=void 0===t.data?null:t.data}get data(){return this[qs]}}Object.defineProperty(Ys.prototype,"data",{enumerable:!0});const Ks={addEventListener(e,t,n={}){for(const r of this.listeners(e))if(!n[Ts]&&r[Ls]===t&&!r[Ts])return;let r;if("message"===e)r=function(e,n){const r=new Ys("message",{data:n?e:e.toString()});r[$s]=this,Qs(t,this,r)};else if("close"===e)r=function(e,n){const r=new Hs("close",{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[$s]=this,Qs(t,this,r)};else if("error"===e)r=function(e){const n=new Zs("error",{error:e,message:e.message});n[$s]=this,Qs(t,this,n)};else{if("open"!==e)return;r=function(){const e=new Vs("open");e[$s]=this,Qs(t,this,e)}}r[Ts]=!!n[Ts],r[Ls]=t,n.once?this.once(e,r):this.on(e,r)},removeEventListener(e,t){for(const n of this.listeners(e))if(n[Ls]===t&&!n[Ts]){this.removeListener(e,n);break}}};var Xs={CloseEvent:Hs,ErrorEvent:Zs,Event:Vs,EventTarget:Ks,MessageEvent:Ys};function Qs(e,t,n){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}const{tokenChars:ea}=ss;function ta(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}var na={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(e){const t=Object.create(null);let n,r,o=Object.create(null),u=!1,i=!1,s=!1,a=-1,c=-1,d=-1,l=0;for(;l<e.length;l++)if(c=e.charCodeAt(l),void 0===n)if(-1===d&&1===ea[c])-1===a&&(a=l);else if(0===l||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);const r=e.slice(a,d);44===c?(ta(t,r,o),o=Object.create(null)):n=r,a=d=-1}}else-1===d&&-1!==a&&(d=l);else if(void 0===r)if(-1===d&&1===ea[c])-1===a&&(a=l);else if(32===c||9===c)-1===d&&-1!==a&&(d=l);else if(59===c||44===c){if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l),ta(o,e.slice(a,d),!0),44===c&&(ta(t,n,o),o=Object.create(null),n=void 0),a=d=-1}else{if(61!==c||-1===a||-1!==d)throw new SyntaxError(`Unexpected character at index ${l}`);r=e.slice(a,l),a=d=-1}else if(i){if(1!==ea[c])throw new SyntaxError(`Unexpected character at index ${l}`);-1===a?a=l:u||(u=!0),i=!1}else if(s)if(1===ea[c])-1===a&&(a=l);else if(34===c&&-1!==a)s=!1,d=l;else{if(92!==c)throw new SyntaxError(`Unexpected character at index ${l}`);i=!0}else if(34===c&&61===e.charCodeAt(l-1))s=!0;else if(-1===d&&1===ea[c])-1===a&&(a=l);else if(-1===a||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);let i=e.slice(a,d);u&&(i=i.replace(/\\/g,""),u=!1),ta(o,r,i),44===c&&(ta(t,n,o),o=Object.create(null),n=void 0),r=void 0,a=d=-1}}else-1===d&&(d=l);if(-1===a||s||32===c||9===c)throw new SyntaxError("Unexpected end of input");-1===d&&(d=l);const h=e.slice(a,d);return void 0===n?ta(t,h,o):(void 0===r?ta(o,h,!0):ta(o,r,u?h.replace(/\\/g,""):h),ta(t,n,o)),t}};const{randomBytes:ra,createHash:oa}=R,{URL:ua}=d,{isBlob:ia}=ss,{BINARY_TYPES:sa,EMPTY_BUFFER:aa,GUID:ca,kForOnEventAttribute:da,kListener:la,kStatusCode:ha,kWebSocket:pa,NOOP:fa}=Ei,{EventTarget:{addEventListener:ma,removeEventListener:va}}=Xs,{format:Ea,parse:Aa}=na,{toBuffer:ba}=Gi,ya=Symbol("kAborted"),ga=[8,13],Ca=["CONNECTING","OPEN","CLOSING","CLOSED"],wa=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class Fa extends e{constructor(e,t,n){super(),this._binaryType=sa[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=aa,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=Fa.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(n=t,t=[]):t=[t]),Ba(this,e,t,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){sa.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new bs({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),o=new Os(e,this._extensions,n.generateMask);this._receiver=r,this._sender=o,this._socket=e,r[pa]=this,o[pa]=this,e[pa]=this,r.on("conclude",Ua),r.on("drain",Pa),r.on("error",Oa),r.on("message",xa),r.on("ping",Ta),r.on("pong",La),o.onerror=qa,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Ga),e.on("data",za),e.on("end",$a),e.on("error",Wa),this._readyState=Fa.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=Fa.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[ts.extensionName]&&this._extensions[ts.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=Fa.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==Fa.CLOSED){if(this.readyState===Fa.CONNECTING){const e="WebSocket was closed before the connection was established";return void ja(this,this._req,e)}this.readyState!==Fa.CLOSING?(this._readyState=Fa.CLOSING,this._sender.close(e,t,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),Ma(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==Fa.CONNECTING&&this.readyState!==Fa.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,n){if(this.readyState===Fa.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===Fa.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||aa,t,n)):_a(this,e,n)}pong(e,t,n){if(this.readyState===Fa.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===Fa.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||aa,t,n)):_a(this,e,n)}resume(){this.readyState!==Fa.CONNECTING&&this.readyState!==Fa.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===Fa.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==Fa.OPEN)return void _a(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[ts.extensionName]||(r.compress=!1),this._sender.send(e||aa,r,n)}terminate(){if(this.readyState!==Fa.CLOSED){if(this.readyState===Fa.CONNECTING){const e="WebSocket was closed before the connection was established";return void ja(this,this._req,e)}this._socket&&(this._readyState=Fa.CLOSING,this._socket.destroy())}}}Object.defineProperty(Fa,"CONNECTING",{enumerable:!0,value:Ca.indexOf("CONNECTING")}),Object.defineProperty(Fa.prototype,"CONNECTING",{enumerable:!0,value:Ca.indexOf("CONNECTING")}),Object.defineProperty(Fa,"OPEN",{enumerable:!0,value:Ca.indexOf("OPEN")}),Object.defineProperty(Fa.prototype,"OPEN",{enumerable:!0,value:Ca.indexOf("OPEN")}),Object.defineProperty(Fa,"CLOSING",{enumerable:!0,value:Ca.indexOf("CLOSING")}),Object.defineProperty(Fa.prototype,"CLOSING",{enumerable:!0,value:Ca.indexOf("CLOSING")}),Object.defineProperty(Fa,"CLOSED",{enumerable:!0,value:Ca.indexOf("CLOSED")}),Object.defineProperty(Fa.prototype,"CLOSED",{enumerable:!0,value:Ca.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(Fa.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(Fa.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[da])return t[la];return null},set(t){for(const t of this.listeners(e))if(t[da]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[da]:!0})}})}),Fa.prototype.addEventListener=ma,Fa.prototype.removeEventListener=va;var Da=Fa;function Ba(e,t,n,r){const o={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:ga[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,!ga.includes(o.protocolVersion))throw new RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${ga.join(", ")})`);let u;if(t instanceof ua)u=t;else try{u=new ua(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===u.protocol?u.protocol="ws:":"https:"===u.protocol&&(u.protocol="wss:"),e._url=u.href;const i="wss:"===u.protocol,s="ws+unix:"===u.protocol;let a;if("ws:"===u.protocol||i||s?s&&!u.pathname?a="The URL's pathname is empty":u.hash&&(a="The URL contains a fragment identifier"):a='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',a){const t=new SyntaxError(a);if(0===e._redirects)throw t;return void Ia(e,t)}const d=i?443:80,l=ra(16).toString("base64"),p=i?h.request:c.request,f=new Set;let m,v;if(o.createConnection=o.createConnection||(i?Ra:Sa),o.defaultPort=o.defaultPort||d,o.port=u.port||d,o.host=u.hostname.startsWith("[")?u.hostname.slice(1,-1):u.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":l,Connection:"Upgrade",Upgrade:"websocket"},o.path=u.pathname+u.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(m=new ts(!0!==o.perMessageDeflate?o.perMessageDeflate:{},!1,o.maxPayload),o.headers["Sec-WebSocket-Extensions"]=Ea({[ts.extensionName]:m.offer()})),n.length){for(const e of n){if("string"!=typeof e||!wa.test(e)||f.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(e)}o.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(o.origin&&(o.protocolVersion<13?o.headers["Sec-WebSocket-Origin"]=o.origin:o.headers.Origin=o.origin),(u.username||u.password)&&(o.auth=`${u.username}:${u.password}`),s){const e=o.path.split(":");o.socketPath=e[0],o.path=e[1]}if(o.followRedirects){if(0===e._redirects){e._originalIpc=s,e._originalSecure=i,e._originalHostOrSocketPath=s?o.socketPath:u.host;const t=r&&r.headers;if(r={...r,headers:{}},t)for(const[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(0===e.listenerCount("redirect")){const t=s?!!e._originalIpc&&o.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&u.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!i)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(o.auth).toString("base64")),v=e._req=p(o),e._redirects&&e.emit("redirect",e.url,v)}else v=e._req=p(o);o.timeout&&v.on("timeout",()=>{ja(e,v,"Opening handshake has timed out")}),v.on("error",t=>{null===v||v[ya]||(v=e._req=null,Ia(e,t))}),v.on("response",u=>{const i=u.headers.location,s=u.statusCode;if(i&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects)return void ja(e,v,"Maximum redirects exceeded");let u;v.abort();try{u=new ua(i,t)}catch(t){const n=new SyntaxError(`Invalid URL: ${i}`);return void Ia(e,n)}Ba(e,u,n,r)}else e.emit("unexpected-response",v,u)||ja(e,v,`Unexpected server response: ${u.statusCode}`)}),v.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==Fa.CONNECTING)return;v=e._req=null;const u=t.headers.upgrade;if(void 0===u||"websocket"!==u.toLowerCase())return void ja(e,n,"Invalid Upgrade header");const i=oa("sha1").update(l+ca).digest("base64");if(t.headers["sec-websocket-accept"]!==i)return void ja(e,n,"Invalid Sec-WebSocket-Accept header");const s=t.headers["sec-websocket-protocol"];let a;if(void 0!==s?f.size?f.has(s)||(a="Server sent an invalid subprotocol"):a="Server sent a subprotocol but none was requested":f.size&&(a="Server sent no subprotocol"),a)return void ja(e,n,a);s&&(e._protocol=s);const c=t.headers["sec-websocket-extensions"];if(void 0!==c){if(!m){return void ja(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=Aa(c)}catch(t){return void ja(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t);if(1!==r.length||r[0]!==ts.extensionName){return void ja(e,n,"Server indicated an extension that was not requested")}try{m.accept(t[ts.extensionName])}catch(t){return void ja(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[ts.extensionName]=m}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(v,e):v.end()}function Ia(e,t){e._readyState=Fa.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function Sa(e){return e.path=e.socketPath,E.connect(e)}function Ra(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=E.isIP(e.host)?"":e.host),S.connect(e)}function ja(e,t,n){e._readyState=Fa.CLOSING;const r=new Error(n);Error.captureStackTrace(r,ja),t.setHeader?(t[ya]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(Ia,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function _a(e,t,n){if(t){const n=ia(t)?t.size:ba(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${Ca[e.readyState]})`);process.nextTick(n,t)}}function Ua(e,t){const n=this[pa];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[pa]&&(n._socket.removeListener("data",za),process.nextTick(Na,n._socket),1005===e?n.close():n.close(e,t))}function Pa(){const e=this[pa];e.isPaused||e._socket.resume()}function Oa(e){const t=this[pa];void 0!==t._socket[pa]&&(t._socket.removeListener("data",za),process.nextTick(Na,t._socket),t.close(e[ha])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function ka(){this[pa].emitClose()}function xa(e,t){this[pa].emit("message",e,t)}function Ta(e){const t=this[pa];t._autoPong&&t.pong(e,!this._isServer,fa),t.emit("ping",e)}function La(e){this[pa].emit("pong",e)}function Na(e){e.resume()}function qa(e){const t=this[pa];t.readyState!==Fa.CLOSED&&(t.readyState===Fa.OPEN&&(t._readyState=Fa.CLOSING,Ma(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)))}function Ma(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),3e4)}function Ga(){const e=this[pa];let t;this.removeListener("close",Ga),this.removeListener("data",za),this.removeListener("end",$a),e._readyState=Fa.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[pa]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",ka),e._receiver.on("finish",ka))}function za(e){this[pa]._receiver.write(e)||this.pause()}function $a(){const e=this[pa];e._readyState=Fa.CLOSING,e._receiver.end(),this.end()}function Wa(){const e=this[pa];this.removeListener("error",Wa),this.on("error",fa),e&&(e._readyState=Fa.CLOSING,this.destroy())}const{Duplex:Ja}=a;function Va(e){e.emit("close")}function Ha(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Za(e){this.removeListener("error",Za),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}var Ya=function(e,t){let n=!0;const r=new Ja({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(t,n){const o=!n&&r._readableState.objectMode?t.toString():t;r.push(o)||e.pause()}),e.once("error",function(e){r.destroyed||(n=!1,r.destroy(e))}),e.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(t,o){if(e.readyState===e.CLOSED)return o(t),void process.nextTick(Va,r);let u=!1;e.once("error",function(e){u=!0,o(e)}),e.once("close",function(){u||o(t),process.nextTick(Va,r)}),n&&e.terminate()},r._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),r._readableState.endEmitted&&r.destroy()):(e._socket.once("finish",function(){t()}),e.close())):e.once("open",function(){r._final(t)})},r._read=function(){e.isPaused&&e.resume()},r._write=function(t,n,o){e.readyState!==e.CONNECTING?e.send(t,o):e.once("open",function(){r._write(t,n,o)})},r.on("end",Ha),r.on("error",Za),r},Ka=function(e){function t(t,n,r,o,u,i){void 0===i&&(i=5e3);var s=e.call(this)||this;s.endpoint=t,s.headers=n,s.rewriteHostHeader=r,s.bindToAssign=o,s.agent=u,s.closeTimeout=i,s.protocol="TCP",s.openConnections=new Set,s.tcpServer=v.createServer(s.handleConnection.bind(s));var a=null==r?void 0:r.altHostnames.map(function(e){return(t=zt(t=e))&&ar.test(t)?t.replace(sr,"\\$&"):t;var t}).join("|");return s.hostRegex=new RegExp("Host: (?:".concat(a,")(:.*$|$)"),"im"),s}return W(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return V(this,void 0,void 0,function(){var e=this;return H(this,function(t){return[2,new Promise(function(t){if(e.bindToAssign){var n=e.bindToAssign,r=n.port,o=n.address;e.tcpServer.listen(r,o,function(){e.emit("tunnel-open",{address:o,port:r}),t({address:o,port:r})})}else e.tcpServer.listen(0,function(){var n=e.tcpServer.address(),r=n.address,o=n.port,u="0.0.0.0"===r||"::"===r?"127.0.0.1":r;e.boundTo={address:u,port:o},e.emit("tunnel-open",e.boundTo),t(e.boundTo)})})]})})},t.prototype.close=function(){return V(this,void 0,void 0,function(){var e,t=this;return H(this,function(n){switch(n.label){case 0:return e=!1,[4,Promise.race([new Promise(function(n){t.tcpServer.close(function(){e=!0,t.emit("tunnel-close"),n()})}),new Promise(function(n){new Promise(function(e){return setTimeout(e,t.closeTimeout)}).then(function(){e||(t.openConnections.forEach(function(e){e.destroy(),t.openConnections.delete(e)}),n())})})])];case 1:return n.sent(),[2]}})})},t.prototype.handleConnection=function(e){var t=this;this.openConnections.add(e);var n=this.endpoint.replace("https:","wss:"),r=new Da(n,{headers:this.headers,agent:this.agent}),o=Ya(r),u=this.getHeaderTransform();this.rewriteHostHeader&&u?fi(e,u,o):fi(e,o),fi(o,e),r.on("close",function(e,n,r){t.emit("connection-close",e,n,r)}),o.on("error",function(e){t.emit("connection-error",e)}),e.on("error",function(e){t.emit("connection-error",e)}),this.emit("connection-accept")},t.prototype.getHeaderTransform=function(){var e=function(e,t,n){var r=Buffer.from(n),o=Buffer.from(e);return t.forEach(function(e){o=function(e,t,n){var r=Buffer.from(t),o=e.indexOf(r);if(-1===o)return e;var u=e.subarray(0,o),i=e.subarray(o+r.length);return Buffer.concat([u,n,i])}(o,e,r)}),o};if(this.rewriteHostHeader){var t=this.rewriteHostHeader,n=t.targetHostname,r=t.altHostnames,o=this.hostRegex;return new i({transform:function(t,u,i){var s=t.toString();if(s.split("\n",1)[0].includes("HTTP")&&o.test(s)){var a=r.map(function(e){return"Host: ".concat(e)});i(null,e(t,a,"Host: ".concat(n)))}else i(null,t)}})}},t}(t),Xa=function(e){function t(t,n,r,o){var u=e.call(this)||this;return u.endpoint=t,u.headers=n,u.bindToAssign=r,u.agent=o,u.protocol="UDP",u.udpSocket=U.createSocket("udp4"),u.handleConnection(),u}return W(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return V(this,void 0,void 0,function(){var e=this;return H(this,function(t){return[2,new Promise(function(t){if(e.bindToAssign){var n=e.bindToAssign,r=n.port,o=n.address;e.udpSocket.bind(r,o,function(){e.emit("tunnel-open",{address:o,port:r}),t({address:o,port:r})})}else e.udpSocket.bind(0,function(){var n=e.udpSocket.address(),r=n.address,o=n.port,u="0.0.0.0"===r||"::"===r?"127.0.0.1":r;e.boundTo={address:u,port:o},e.emit("tunnel-open",e.boundTo),t(e.boundTo)})})]})})},t.prototype.close=function(){return V(this,void 0,void 0,function(){var e=this;return H(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t){e.udpSocket.close(function(){e.emit("tunnel-close"),t()})})];case 1:return t.sent(),[2]}})})},t.prototype.handleConnection=function(){var e,t=this,n=this.endpoint.replace("https:","wss:"),r=new Da(n,{headers:this.headers,agent:this.agent}),o=Ya(r);this.udpSocket.on("message",function(t,n){e=n,o.write(t)}),o.on("data",function(n){e&&t.udpSocket.send(n,e.port,e.address,function(e){e&&t.emit("connection-error",e)})}),this.udpSocket.on("error",function(e){t.emit("connection-error",e)}),o.on("error",function(e){t.emit("connection-error",e)}),r.on("connection-close",function(e,n,r){t.emit("connection-close",e,n,r)}),r.on("connection-error",function(e){t.emit("connection-error",e)}),this.emit("connection-accept")},t}(t),Qa=function(e){function t(t,r,o,u){var i=e.call(this)||this;return i.contextProvider=t,i.listServices=r,i.listAddons=o,i.agent=u,i.connections=[],i.hostsFileMutex=new Ku,i.ipAllocationMutex=new Ku,i.stopForwarding=function(e){return V(i,void 0,void 0,function(){var t,n,r,o,u,i,s;return H(this,function(a){switch(a.label){case 0:return[4,e.tunnel.close()];case 1:return a.sent(),t=e.forwardingContext,n=t.projectId,r=t.type,o=t.id,u=t.hostnames,i=t.ipOnly,u.length>0&&!i?[4,this.unregisterHostnames(null===(s=e.tunnel.bindTo)||void 0===s?void 0:s.address,u)]:[3,3];case 2:a.sent(),a.label=3;case 3:return this.connections.splice(this.connections.findIndex(function(e){var t=e.forwardingContext,u=t.type,i=t.id,s=t.projectId;return i===o&&s===n&&u===r}),1),[2]}})})},i.canExecuteWithHostnames=function(){return"win32"!==process.platform?process.getuid&&0!==process.getuid()?{error:!0,message:"You are not running this command with sufficient privileges (uid=".concat(null===(e=null===process||void 0===process?void 0:process.getuid)||void 0===e?void 0:e.call(process),"). Try running with 'sudo -E'.")}:{error:!1,type:"unix-admin"}:function(){try{return n("fsutil dirty query %systemdrive%"),!0}catch(e){if("ENOENT"===e.code)try{return n("fltmc"),!0}catch(e){return!1}return!1}}()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."};var e},i.assertStartedWithNodejs=function(){if(!Fu)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new ju(t,u),i}return W(t,e),t.prototype.withProjectForwarding=function(e,t,n){return void 0===n&&(n=!0),V(this,void 0,void 0,function(){var r;return H(this,function(o){switch(o.label){case 0:return[4,this.forwardProject(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopProjectForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardProject=function(e,t){return void 0===t&&(t=!0),V(this,void 0,void 0,function(){var n,r,o,u,i,s=this;return H(this,function(a){switch(a.label){case 0:return this.assertStartedWithNodejs(),n=e.projectId,[4,this.listServices.all({parameters:{projectId:n}})];case 1:return r=a.sent(),[4,this.listAddons.all({parameters:{projectId:n}})];case 2:return o=a.sent(),[4,Promise.all(r.data.services.map(function(e){return V(s,void 0,void 0,function(){return H(this,function(r){return[2,this.forwardService({projectId:n,serviceId:e.id},t)]})})}))];case 3:return u=a.sent(),[4,Promise.all(o.data.addons.map(function(e){return V(s,void 0,void 0,function(){return H(this,function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:e.id},t)];case 1:return[2,r.sent()]}})})}))];case 4:return i=a.sent(),[2,{services:u,addons:i}]}})})},t.prototype.withServiceForwarding=function(e,t,n){return void 0===n&&(n=!0),V(this,void 0,void 0,function(){var r;return H(this,function(o){switch(o.label){case 0:return[4,this.forwardService(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopServiceForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardService=function(e,t){return void 0===t&&(t=!0),V(this,void 0,void 0,function(){var n,r,o,u,i,s,a,c=this;return H(this,function(d){switch(d.label){case 0:return this.assertStartedWithNodejs(),n=e.projectId,r=e.serviceId,[4,this.proxyApiClient.getServiceDetails(n,r)];case 1:return o=d.sent(),u=o.namespace,i=o.targetDomain,s=o.instances,a=o.ports,0===s.length?[2,[]]:[4,Su(a,function(e){var o,a="https://".concat(i,"/tunnel/projects/").concat(n,"/services/").concat(r,"/instance/").concat(s[0].podName,"/port/").concat(e.internalPort),d="".concat(r,".").concat(u,".svc.cluster.local"),l=["".concat(r)];e.name&&l.push("".concat(e.name,".").concat(r)),"HTTP"===e.protocol&&(o={altHostnames:l,targetHostname:d});var h=Z([d],l,!0);return c.forwardPort(a,e,h,"service",r,n,t,o)})];case 2:return[2,d.sent()]}})})},t.prototype.withAddonForwarding=function(e,t,n){return void 0===n&&(n=!0),V(this,void 0,void 0,function(){var r;return H(this,function(o){switch(o.label){case 0:return[4,this.forwardAddon(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopAddonForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardAddon=function(e,t){return void 0===t&&(t=!0),V(this,void 0,void 0,function(){var n,r,o,u,i=this;return H(this,function(s){switch(s.label){case 0:return this.assertStartedWithNodejs(),n=e.addonId,r=e.projectId,[4,this.proxyApiClient.getAddonDetails(r,n)];case 1:return o=s.sent(),u=o.instances.map(function(e){var t=e.podName,n=e.internalHostname;return e.ports.map(function(e){return{podName:t,internalHostname:n,port:e}})}),[4,Su((a=u,null!=a&&a.length?Yt(a,lr):[]),function(e){var u=e.podName,s=e.internalHostname,a=e.port;return V(i,void 0,void 0,function(){var e;return H(this,function(i){return e="https://".concat(o.targetDomain,"/tunnel/projects/").concat(r,"/addons/").concat(n,"/instance/").concat(u,"/port/").concat(a.internalPort),[2,this.forwardPort(e,a,[s],"addon",n,r,t)]})})})];case 2:return[2,s.sent()]}var a})})},t.prototype.allocateIpAddress=function(e){return V(this,void 0,void 0,function(){var t=this;return H(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return V(t,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){switch(i.label){case 0:return t="127.24.1.1",n="127.24.255.255",r=null!==(u=this.nextIpAddress)&&void 0!==u?u:t,[4,_u(e,r,n)];case 1:return o=i.sent(),this.nextIpAddress=ku(Ou(o)+1),Ou(this.nextIpAddress)>Ou(n)&&(this.nextIpAddress=t),[2,o]}})})})]})})},t.prototype.forwardPort=function(e,t,n,r,o,u,i,s){var a;return void 0===i&&(i=!0),V(this,void 0,void 0,function(){var c,d,l,h,p,f,m=this;return H(this,function(v){switch(v.label){case 0:if(c={Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken())},!i&&(d=this.canExecuteWithHostnames()).error)throw new Error("".concat(d.message," Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))"));return[4,this.determineSocketAddress(u,o,n,r,t,i)];case 1:return l=v.sent(),h="UDP"===t.protocol?new Xa(e,c,l,this.agent):new Ka(e,c,s,l,this.agent),i?[3,3]:[4,this.registerHostnames(null===(a=h.bindTo)||void 0===a?void 0:a.address,n)];case 2:v.sent(),v.label=3;case 3:return h.on("connection-accept",function(){return m.emit("connection-accept",h)}),h.on("connection-close",function(){return V(m,void 0,void 0,function(){return H(this,function(e){return[2,this.emit("connection-close",h)]})})}),[4,h.open()];case 4:return p=v.sent(),f={projectId:u,id:o,type:r,hostnames:n,ipOnly:i,port:p.port,address:p.address,protocol:t.protocol,portName:t.name},this.emit("tunnel-open",h,f),h.on("connection-error",function(e){return m.emit("connection-error",h,f,e)}),h.on("tunnel-close",function(){return m.emit("tunnel-close",h,f)}),this.connections.push({tunnel:h,forwardingContext:f}),[2,{data:f}]}})})},t.prototype.determineSocketAddress=function(e,t,n,r,o,u){return V(this,void 0,void 0,function(){var i,s,a;return H(this,function(c){switch(c.label){case 0:return u&&"darwin"===m.platform()?[2,void 0]:(i=this.connections.filter(function(n){return n.forwardingContext.projectId===e&&n.forwardingContext.id===t&&n.forwardingContext.type===r}),(s=null==i?void 0:i.find(function(e){return n.find(function(t){return e.forwardingContext.hostnames.includes(t)})}))?[2,{address:null==s?void 0:s.forwardingContext.address,port:o.internalPort}]:(a={},[4,this.allocateIpAddress(o.internalPort)]));case 1:return[2,(a.address=c.sent(),a.port=o.internalPort,a)]}})})},t.prototype.registerHostnames=function(e,t){return V(this,void 0,void 0,function(){return H(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,t),n.add.apply(n,Z([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.unregisterHostnames=function(e,t){return V(this,void 0,void 0,function(){return H(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,Z([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.modifyHostsFile=function(e){return V(this,void 0,void 0,function(){var t=this;return H(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return V(t,void 0,void 0,function(){var t,n=this;return H(this,function(r){switch(r.label){case 0:return[4,Yu.load({header:"Northflank Proxy"})];case 1:return t=r.sent(),e(t),[4,t.backup({suffix:".backup-pre-northflank"})];case 2:r.sent(),r.label=3;case 3:return r.trys.push([3,5,,7]),[4,Bu(5)(function(){return V(n,void 0,void 0,function(){return H(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"atomic"})];case 1:return e.sent(),[2]}})})})];case 4:return r.sent(),[3,7];case 5:return r.sent(),[4,Bu(5)(function(){return V(n,void 0,void 0,function(){return H(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"standard"})];case 1:return e.sent(),[2]}})})})];case 6:return r.sent(),[3,7];case 7:return[2]}})})})];case 1:return n.sent(),[2]}})})},t.prototype.stopProjectForwarding=function(e){return V(this,void 0,void 0,function(){var t=this;return H(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return t.forwardingContext.projectId===e.projectId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stopServiceForwarding=function(e){return V(this,void 0,void 0,function(){var t=this;return H(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"service"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.serviceId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stopAddonForwarding=function(e){return V(this,void 0,void 0,function(){var t=this;return H(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"addon"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.addonId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stop=function(){return V(this,void 0,void 0,function(){var e=this;return H(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.connections.map(function(t){return V(e,void 0,void 0,function(){return H(this,function(e){return[2,this.stopForwarding(t)]})})}))];case 1:return t.sent(),[2]}})})},t}(t),ec=function(e){function t(t,n,r,u,i,s,a){void 0===i&&(i=new o.PassThrough),void 0===s&&(s=new o.PassThrough),void 0===a&&(a=new o.PassThrough);var c=e.call(this)||this;return c.baseUrl=t,c.execConfig=n,c.token=r,c.agent=u,c.stdOut=i,c.stdErr=s,c.stdIn=a,c.waitForCommandResult=function(){return V(c,void 0,void 0,function(){return H(this,function(e){switch(e.label){case 0:if(void 0===this.currentCommand)throw new Error("No command is running");return[4,this.currentCommand];case 1:return[2,e.sent()]}})})},c.sendInputToCurrentCommand=function(e){return V(c,void 0,void 0,function(){var t;return H(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running");return null===(t=this.duplex)||void 0===t||t.write(this.constructPayloadPacket(e)),[2]})})},c.resizeTerminal=function(e){return V(c,void 0,void 0,function(){var t;return H(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running, can't resize terminal");return null===(t=this.duplex)||void 0===t||t.write(JSON.stringify({type:"resize",data:{ttyRows:null==e?void 0:e.rows,ttyColumns:null==e?void 0:e.columns}})),[2]})})},c.constructPayloadPacket=function(e){return JSON.stringify({type:"payload",data:e.toString()})},c.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),c}return W(t,e),Object.defineProperty(t.prototype,"execEndpoint",{get:function(){var e=this.execConfig,t=e.entityId,n=e.entityType,r=e.projectId,o="".concat(this.baseUrl,"/v1/command-exec/projects/").concat(r,"/");return"".concat(o).concat(function(){switch(n){case"service":return"services/".concat(t);case"job":return"jobs/".concat(t);case"addon":return"addons/".concat(t);case"build":return"builds/".concat(t);default:throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}}())},enumerable:!1,configurable:!0}),t.prototype.start=function(){return V(this,void 0,void 0,function(){var e=this;return H(this,function(t){if(void 0!==this.currentCommand)throw new Error("Command is already running");return this.currentCommand=new Promise(function(t,n){var r,o,u;void 0!==e.remote&&n(Error("Command is already running"));var i,s=e.execEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new Da(s,{agent:e.agent});try{e.duplex=Ya(e.remote)}catch(e){throw new Error("Failed to establish connection to command execution proxy: ".concat(e.message))}e.initialAuth(),e.stdIn.on("data",function(t){var n,r;(null===(n=e.duplex)||void 0===n?void 0:n.writable)&&(null===(r=e.duplex)||void 0===r||r.write(e.constructPayloadPacket(t)))}),e.stdIn.on("end",function(){var t,n;(null===(t=e.duplex)||void 0===t?void 0:t.writable)&&(null===(n=e.duplex)||void 0===n||n.write(e.stdInEndPacket))}),null===(r=e.duplex)||void 0===r||r.on("data",function(t){var n,r,o,u,s,c=JSON.parse(t.toString());switch(null==c?void 0:c.type){case"init":var d=c.data;"successful"!==d.auth?a("Command initialization failed: ".concat(null!==(n=null==d?void 0:d.message)&&void 0!==n?n:"Reason unknown")):e.emit("auth-success",d);break;case"completion":i=c.data,e.emit("command-result",i),null===(r=e.duplex)||void 0===r||r.end(),e.stdOut.end(),e.stdErr.end(),e.stdIn.end();break;case"stdOut":e.emit("std-out-data",c.data),e.stdOut.write(c.data,null===(o=e.execConfig)||void 0===o?void 0:o.encoding);break;case"stdErr":e.emit("std-err-data",c.data),e.stdErr.write(c.data,null===(u=e.execConfig)||void 0===u?void 0:u.encoding);break;case"error":a(null===(s=c.data)||void 0===s?void 0:s.message);break;default:var l="unable to parse message: ".concat(JSON.stringify(c));a(l)}}),null===(o=e.duplex)||void 0===o||o.on("end",function(){e.emit("command-completed"),e.reset(),t(i)}),null===(u=e.duplex)||void 0===u||u.on("error",function(n){e.emit("error",n),e.emit("command-completed"),e.reset(),t(i)});var a=function(t){e.emit("error",t),e.reset(),n(new Error(t))};e.emit("command-started")}),[2,this.currentCommand]})})},t.prototype.initialAuth=function(){var e,t=this.execConfig,n=t.command,r=t.containerName,o=t.instanceName,u=t.shell,i=t.user,s=this.execConfig,a=s.group,c=s.encoding,d=s.tty,l=s.ttyColumns,h=s.ttyRows,p={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:o,containerName:r,command:n,shell:u,user:i,group:a,encoding:c,tty:d,ttyColumns:l,ttyRows:h}}};null===(e=this.duplex)||void 0===e||e.write(JSON.stringify(p))},t.prototype.reset=function(){var e;this.remote=void 0,this.currentCommand=void 0,null===(e=this.duplex)||void 0===e||e.destroy(),this.duplex=void 0},t}(t),tc=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.assertStartedWithNodejs=function(){if(!Fu)throw new Error("Command exec only possible when started with nodejs")}}return e.prototype.execServiceCommand=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){return n=e.serviceId,r=e.projectId,o=J({projectId:r,entityId:n,entityType:"service"},t),[2,this.execCommand(o)]})})},e.prototype.execServiceSession=function(e,t,n){return V(this,void 0,void 0,function(){var r,o,u;return H(this,function(i){switch(i.label){case 0:return r=e.serviceId,o=e.projectId,u=J({projectId:o,entityId:r,entityType:"service"},t),[4,this.shellSession(u,n)];case 1:return[2,i.sent()]}})})},e.prototype.execJobCommand=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){return n=e.jobId,r=e.projectId,o=J({projectId:r,entityId:n,entityType:"job"},t),[2,this.execCommand(o)]})})},e.prototype.execJobSession=function(e,t,n){return V(this,void 0,void 0,function(){var r,o,u;return H(this,function(i){switch(i.label){case 0:return r=e.jobId,o=e.projectId,u=J({projectId:o,entityId:r,entityType:"job"},t),[4,this.shellSession(u,n)];case 1:return[2,i.sent()]}})})},e.prototype.execAddonCommand=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){return n=e.addonId,r=e.projectId,o=J({projectId:r,entityId:n,entityType:"addon"},t),[2,this.execCommand(o)]})})},e.prototype.execAddonSession=function(e,t,n){return V(this,void 0,void 0,function(){var r,o,u;return H(this,function(i){switch(i.label){case 0:return r=e.addonId,o=e.projectId,u=J({projectId:o,entityId:r,entityType:"addon"},t),[4,this.shellSession(u,n)];case 1:return[2,i.sent()]}})})},e.prototype.execCommand=function(e){return V(this,void 0,void 0,function(){var t,n,r;return H(this,function(o){switch(o.label){case 0:return this.assertStartedWithNodejs(),t=this.getCommandRunner(J({shell:"none"},e)),n=new Ru,r=new Ru,t.stdOut.pipe(n),t.stdErr.pipe(r),t.on("error",function(e){throw new Error(e)}),[4,t.start()];case 1:return[2,{commandResult:o.sent(),stdOut:n.getContentsAsString(),stdErr:r.getContentsAsString()}]}})})},e.prototype.shellSession=function(e,t){return V(this,void 0,void 0,function(){var n,r;return H(this,function(o){switch(o.label){case 0:return this.assertStartedWithNodejs(),n=this.getCommandRunner(e),r=new Promise(function(e){n.on("auth-success",function(n){null==t||t(null==n?void 0:n.context),e()})}),n.start(),[4,r];case 1:return o.sent(),[2,n]}})})},e.prototype.getCommandRunner=function(e){var t=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new ec(t,e,n,this.agent)},e}();const nc="object"==typeof process&&process?process:{stdout:null,stderr:null},rc=e=>!!e&&"object"==typeof e&&(e instanceof Mc||e instanceof u||oc(e)||uc(e)),oc=e=>!!e&&"object"==typeof e&&e instanceof P&&"function"==typeof e.pipe&&e.pipe!==u.Writable.prototype.pipe,uc=e=>!!e&&"object"==typeof e&&e instanceof P&&"function"==typeof e.write&&"function"==typeof e.end,ic=Symbol("EOF"),sc=Symbol("maybeEmitEnd"),ac=Symbol("emittedEnd"),cc=Symbol("emittingEnd"),dc=Symbol("emittedError"),lc=Symbol("closed"),hc=Symbol("read"),pc=Symbol("flush"),fc=Symbol("flushChunk"),mc=Symbol("encoding"),vc=Symbol("decoder"),Ec=Symbol("flowing"),Ac=Symbol("paused"),bc=Symbol("resume"),yc=Symbol("buffer"),gc=Symbol("pipes"),Cc=Symbol("bufferLength"),wc=Symbol("bufferPush"),Fc=Symbol("bufferShift"),Dc=Symbol("objectMode"),Bc=Symbol("destroyed"),Ic=Symbol("error"),Sc=Symbol("emitData"),Rc=Symbol("emitEnd"),jc=Symbol("emitEnd2"),_c=Symbol("async"),Uc=Symbol("abort"),Pc=Symbol("aborted"),Oc=Symbol("signal"),kc=Symbol("dataListeners"),xc=Symbol("discarded"),Tc=e=>Promise.resolve().then(e),Lc=e=>e();class Nc{src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[bc](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class qc extends Nc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>t.emit("error",e),e.on("error",this.proxyErrors)}}class Mc extends P{[Ec]=!1;[Ac]=!1;[gc]=[];[yc]=[];[Dc];[mc];[_c];[vc];[ic]=!1;[ac]=!1;[cc]=!1;[lc]=!1;[dc]=null;[Cc]=0;[Bc]=!1;[Oc];[Pc]=!1;[kc]=0;[xc]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[Dc]=!0,this[mc]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[mc]=t.encoding,this[Dc]=!1):(this[Dc]=!1,this[mc]=null),this[_c]=!!t.async,this[vc]=this[mc]?new O(this[mc]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[yc]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[gc]});const{signal:n}=t;n&&(this[Oc]=n,n.aborted?this[Uc]():n.addEventListener("abort",()=>this[Uc]()))}get bufferLength(){return this[Cc]}get encoding(){return this[mc]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Dc]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[_c]}set async(e){this[_c]=this[_c]||!!e}[Uc](){this[Pc]=!0,this.emit("abort",this[Oc]?.reason),this.destroy(this[Oc]?.reason)}get aborted(){return this[Pc]}set aborted(e){}write(e,t,n){if(this[Pc])return!1;if(this[ic])throw new Error("write after end");if(this[Bc])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");const r=this[_c]?Tc:Lc;if(!this[Dc]&&!Buffer.isBuffer(e))if(o=e,!Buffer.isBuffer(o)&&ArrayBuffer.isView(o))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var o;return this[Dc]?(this[Ec]&&0!==this[Cc]&&this[pc](!0),this[Ec]?this.emit("data",e):this[wc](e),0!==this[Cc]&&this.emit("readable"),n&&r(n),this[Ec]):e.length?("string"!=typeof e||t===this[mc]&&!this[vc]?.lastNeed||(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[mc]&&(e=this[vc].write(e)),this[Ec]&&0!==this[Cc]&&this[pc](!0),this[Ec]?this.emit("data",e):this[wc](e),0!==this[Cc]&&this.emit("readable"),n&&r(n),this[Ec]):(0!==this[Cc]&&this.emit("readable"),n&&r(n),this[Ec])}read(e){if(this[Bc])return null;if(this[xc]=!1,0===this[Cc]||0===e||e&&e>this[Cc])return this[sc](),null;this[Dc]&&(e=null),this[yc].length>1&&!this[Dc]&&(this[yc]=[this[mc]?this[yc].join(""):Buffer.concat(this[yc],this[Cc])]);const t=this[hc](e||null,this[yc][0]);return this[sc](),t}[hc](e,t){if(this[Dc])this[Fc]();else{const n=t;e===n.length||null===e?this[Fc]():"string"==typeof n?(this[yc][0]=n.slice(e),t=n.slice(0,e),this[Cc]-=e):(this[yc][0]=n.subarray(e),t=n.subarray(0,e),this[Cc]-=e)}return this.emit("data",t),this[yc].length||this[ic]||this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[ic]=!0,this.writable=!1,!this[Ec]&&this[Ac]||this[sc](),this}[bc](){this[Bc]||(this[kc]||this[gc].length||(this[xc]=!0),this[Ac]=!1,this[Ec]=!0,this.emit("resume"),this[yc].length?this[pc]():this[ic]?this[sc]():this.emit("drain"))}resume(){return this[bc]()}pause(){this[Ec]=!1,this[Ac]=!0,this[xc]=!1}get destroyed(){return this[Bc]}get flowing(){return this[Ec]}get paused(){return this[Ac]}[wc](e){this[Dc]?this[Cc]+=1:this[Cc]+=e.length,this[yc].push(e)}[Fc](){return this[Dc]?this[Cc]-=1:this[Cc]-=this[yc][0].length,this[yc].shift()}[pc](e=!1){do{}while(this[fc](this[Fc]())&&this[yc].length);e||this[yc].length||this[ic]||this.emit("drain")}[fc](e){return this.emit("data",e),this[Ec]}pipe(e,t){if(this[Bc])return e;this[xc]=!1;const n=this[ac];return t=t||{},e===nc.stdout||e===nc.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[gc].push(t.proxyErrors?new qc(this,e,t):new Nc(this,e,t)),this[_c]?Tc(()=>this[bc]()):this[bc]()),e}unpipe(e){const t=this[gc].find(t=>t.dest===e);t&&(1===this[gc].length?(this[Ec]&&0===this[kc]&&(this[Ec]=!1),this[gc]=[]):this[gc].splice(this[gc].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const n=super.on(e,t);if("data"===e)this[xc]=!1,this[kc]++,this[gc].length||this[Ec]||this[bc]();else if("readable"===e&&0!==this[Cc])super.emit("readable");else if((e=>"end"===e||"finish"===e||"prefinish"===e)(e)&&this[ac])super.emit(e),this.removeAllListeners(e);else if("error"===e&&this[dc]){const e=t;this[_c]?Tc(()=>e.call(this,this[dc])):e.call(this,this[dc])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){const n=super.off(e,t);return"data"===e&&(this[kc]=this.listeners("data").length,0!==this[kc]||this[xc]||this[gc].length||(this[Ec]=!1)),n}removeAllListeners(e){const t=super.removeAllListeners(e);return"data"!==e&&void 0!==e||(this[kc]=0,this[xc]||this[gc].length||(this[Ec]=!1)),t}get emittedEnd(){return this[ac]}[sc](){this[cc]||this[ac]||this[Bc]||0!==this[yc].length||!this[ic]||(this[cc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[lc]&&this.emit("close"),this[cc]=!1)}emit(e,...t){const n=t[0];if("error"!==e&&"close"!==e&&e!==Bc&&this[Bc])return!1;if("data"===e)return!(!this[Dc]&&!n)&&(this[_c]?(Tc(()=>this[Sc](n)),!0):this[Sc](n));if("end"===e)return this[Rc]();if("close"===e){if(this[lc]=!0,!this[ac]&&!this[Bc])return!1;const e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[dc]=n,super.emit(Ic,n);const e=!(this[Oc]&&!this.listeners("error").length)&&super.emit("error",n);return this[sc](),e}if("resume"===e){const e=super.emit("resume");return this[sc](),e}if("finish"===e||"prefinish"===e){const t=super.emit(e);return this.removeAllListeners(e),t}const r=super.emit(e,...t);return this[sc](),r}[Sc](e){for(const t of this[gc])!1===t.dest.write(e)&&this.pause();const t=!this[xc]&&super.emit("data",e);return this[sc](),t}[Rc](){return!this[ac]&&(this[ac]=!0,this.readable=!1,this[_c]?(Tc(()=>this[jc]()),!0):this[jc]())}[jc](){if(this[vc]){const e=this[vc].end();if(e){for(const t of this[gc])t.dest.write(e);this[xc]||super.emit("data",e)}}for(const e of this[gc])e.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[Dc]||(e.dataLength=0);const t=this.promise();return this.on("data",t=>{e.push(t),this[Dc]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[Dc])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[mc]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Bc,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[xc]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[ic])return t();let r,o;const u=e=>{this.off("data",i),this.off("end",s),this.off(Bc,a),t(),o(e)},i=e=>{this.off("error",u),this.off("end",s),this.off(Bc,a),this.pause(),r({value:e,done:!!this[ic]})},s=()=>{this.off("error",u),this.off("data",i),this.off(Bc,a),t(),r({done:!0,value:void 0})},a=()=>u(new Error("stream destroyed"));return new Promise((e,t)=>{o=t,r=e,this.once(Bc,a),this.once("error",u),this.once("end",s),this.once("data",i)})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[xc]=!1;let e=!1;const t=()=>(this.pause(),this.off(Ic,t),this.off(Bc,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(Ic,t),this.once(Bc,t),{next:()=>{if(e)return t();const n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[Bc])return e?this.emit("error",e):this.emit(Bc),this;this[Bc]=!0,this[xc]=!0,this[yc].length=0,this[Cc]=0;return"function"!=typeof this.close||this[lc]||this.close(),e?this.emit("error",e):this.emit(Bc),this}static get isStream(){return rc}}const Gc=b.writev,zc=Symbol("_autoClose"),$c=Symbol("_close"),Wc=Symbol("_ended"),Jc=Symbol("_fd"),Vc=Symbol("_finished"),Hc=Symbol("_flags"),Zc=Symbol("_flush"),Yc=Symbol("_handleChunk"),Kc=Symbol("_makeBuf"),Xc=Symbol("_mode"),Qc=Symbol("_needDrain"),ed=Symbol("_onerror"),td=Symbol("_onopen"),nd=Symbol("_onread"),rd=Symbol("_onwrite"),od=Symbol("_open"),ud=Symbol("_path"),id=Symbol("_pos"),sd=Symbol("_queue"),ad=Symbol("_read"),cd=Symbol("_readSize"),dd=Symbol("_reading"),ld=Symbol("_remain"),hd=Symbol("_size"),pd=Symbol("_write"),fd=Symbol("_writing"),md=Symbol("_defaultFlag"),vd=Symbol("_errored");class Ed extends Mc{[vd]=!1;[Jc];[ud];[cd];[dd]=!1;[hd];[ld];[zc];constructor(e,t){if(super(t=t||{}),this.readable=!0,this.writable=!1,"string"!=typeof e)throw new TypeError("path must be a string");this[vd]=!1,this[Jc]="number"==typeof t.fd?t.fd:void 0,this[ud]=e,this[cd]=t.readSize||16777216,this[dd]=!1,this[hd]="number"==typeof t.size?t.size:1/0,this[ld]=this[hd],this[zc]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[Jc]?this[ad]():this[od]()}get fd(){return this[Jc]}get path(){return this[ud]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[od](){b.open(this[ud],"r",(e,t)=>this[td](e,t))}[td](e,t){e?this[ed](e):(this[Jc]=t,this.emit("open",t),this[ad]())}[Kc](){return Buffer.allocUnsafe(Math.min(this[cd],this[ld]))}[ad](){if(!this[dd]){this[dd]=!0;const e=this[Kc]();if(0===e.length)return process.nextTick(()=>this[nd](null,0,e));b.read(this[Jc],e,0,e.length,null,(e,t,n)=>this[nd](e,t,n))}}[nd](e,t,n){this[dd]=!1,e?this[ed](e):this[Yc](t,n)&&this[ad]()}[$c](){if(this[zc]&&"number"==typeof this[Jc]){const e=this[Jc];this[Jc]=void 0,b.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[ed](e){this[dd]=!0,this[$c](),this.emit("error",e)}[Yc](e,t){let n=!1;return this[ld]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[ld]<=0)&&(n=!1,this[$c](),super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[Jc]&&this[ad](),!1;case"error":return!this[vd]&&(this[vd]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}}class Ad extends Ed{[od](){let e=!0;try{this[td](null,b.openSync(this[ud],"r")),e=!1}finally{e&&this[$c]()}}[ad](){let e=!0;try{if(!this[dd]){for(this[dd]=!0;;){const e=this[Kc](),t=0===e.length?0:b.readSync(this[Jc],e,0,e.length,null);if(!this[Yc](t,e))break}this[dd]=!1}e=!1}finally{e&&this[$c]()}}[$c](){if(this[zc]&&"number"==typeof this[Jc]){const e=this[Jc];this[Jc]=void 0,b.closeSync(e),this.emit("close")}}}class bd extends e{readable=!1;writable=!0;[vd]=!1;[fd]=!1;[Wc]=!1;[sd]=[];[Qc]=!1;[ud];[Xc];[zc];[Jc];[md];[Hc];[Vc]=!1;[id];constructor(e,t){super(t=t||{}),this[ud]=e,this[Jc]="number"==typeof t.fd?t.fd:void 0,this[Xc]=void 0===t.mode?438:t.mode,this[id]="number"==typeof t.start?t.start:void 0,this[zc]="boolean"!=typeof t.autoClose||t.autoClose;const n=void 0!==this[id]?"r+":"w";this[md]=void 0===t.flags,this[Hc]=void 0===t.flags?n:t.flags,void 0===this[Jc]&&this[od]()}emit(e,...t){if("error"===e){if(this[vd])return!1;this[vd]=!0}return super.emit(e,...t)}get fd(){return this[Jc]}get path(){return this[ud]}[ed](e){this[$c](),this[fd]=!0,this.emit("error",e)}[od](){b.open(this[ud],this[Hc],this[Xc],(e,t)=>this[td](e,t))}[td](e,t){this[md]&&"r+"===this[Hc]&&e&&"ENOENT"===e.code?(this[Hc]="w",this[od]()):e?this[ed](e):(this[Jc]=t,this.emit("open",t),this[fd]||this[Zc]())}end(e,t){return e&&this.write(e,t),this[Wc]=!0,this[fd]||this[sd].length||"number"!=typeof this[Jc]||this[rd](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[Wc]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[Jc]||this[fd]||this[sd].length?(this[sd].push(e),this[Qc]=!0,!1):(this[fd]=!0,this[pd](e),!0)}[pd](e){b.write(this[Jc],e,0,e.length,this[id],(e,t)=>this[rd](e,t))}[rd](e,t){e?this[ed](e):(void 0!==this[id]&&"number"==typeof t&&(this[id]+=t),this[sd].length?this[Zc]():(this[fd]=!1,this[Wc]&&!this[Vc]?(this[Vc]=!0,this[$c](),this.emit("finish")):this[Qc]&&(this[Qc]=!1,this.emit("drain"))))}[Zc](){if(0===this[sd].length)this[Wc]&&this[rd](null,0);else if(1===this[sd].length)this[pd](this[sd].pop());else{const e=this[sd];this[sd]=[],Gc(this[Jc],e,this[id],(e,t)=>this[rd](e,t))}}[$c](){if(this[zc]&&"number"==typeof this[Jc]){const e=this[Jc];this[Jc]=void 0,b.close(e,e=>e?this.emit("error",e):this.emit("close"))}}}class yd extends bd{[od](){let e;if(this[md]&&"r+"===this[Hc])try{e=b.openSync(this[ud],this[Hc],this[Xc])}catch(e){if("ENOENT"===e?.code)return this[Hc]="w",this[od]();throw e}else e=b.openSync(this[ud],this[Hc],this[Xc]);this[td](null,e)}[$c](){if(this[zc]&&"number"==typeof this[Jc]){const e=this[Jc];this[Jc]=void 0,b.closeSync(e),this.emit("close")}}[pd](e){let t=!0;try{this[rd](null,b.writeSync(this[Jc],e,0,e.length,this[id])),t=!1}finally{if(t)try{this[$c]()}catch{}}}}const gd=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),Cd=e=>{const t=gd.get(e);return t||e},wd=(e={})=>{if(!e)return{};const t={};for(const[n,r]of Object.entries(e)){t[Cd(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},Fd=(e,t,n,r,o)=>Object.assign((u=[],i,s)=>{Array.isArray(u)&&(i=u,u={}),"function"==typeof i&&(s=i,i=void 0),i=i?Array.from(i):[];const a=wd(u);if(o?.(a,i),(c=a).sync&&c.file){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return e(a,i)}if((e=>!e.sync&&!!e.file)(a)){const e=t(a,i),n=s||void 0;return n?e.then(()=>n(),n):e}if((e=>!!e.sync&&!e.file)(a)){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return n(a,i)}if((e=>!e.sync&&!e.file)(a)){if("function"==typeof s)throw new TypeError("callback only supported with file option");return r(a,i)}throw new Error("impossible options??");var c},{syncFile:e,asyncFile:t,syncNoFile:n,asyncNoFile:r,validate:o}),Dd="object"==typeof process&&process?process:{stdout:null,stderr:null},Bd=e=>!!e&&"object"==typeof e&&(e instanceof dl||e instanceof u||Id(e)||Sd(e)),Id=e=>!!e&&"object"==typeof e&&e instanceof P&&"function"==typeof e.pipe&&e.pipe!==u.Writable.prototype.pipe,Sd=e=>!!e&&"object"==typeof e&&e instanceof P&&"function"==typeof e.write&&"function"==typeof e.end,Rd=Symbol("EOF"),jd=Symbol("maybeEmitEnd"),_d=Symbol("emittedEnd"),Ud=Symbol("emittingEnd"),Pd=Symbol("emittedError"),Od=Symbol("closed"),kd=Symbol("read"),xd=Symbol("flush"),Td=Symbol("flushChunk"),Ld=Symbol("encoding"),Nd=Symbol("decoder"),qd=Symbol("flowing"),Md=Symbol("paused"),Gd=Symbol("resume"),zd=Symbol("buffer"),$d=Symbol("pipes"),Wd=Symbol("bufferLength"),Jd=Symbol("bufferPush"),Vd=Symbol("bufferShift"),Hd=Symbol("objectMode"),Zd=Symbol("destroyed"),Yd=Symbol("error"),Kd=Symbol("emitData"),Xd=Symbol("emitEnd"),Qd=Symbol("emitEnd2"),el=Symbol("async"),tl=Symbol("abort"),nl=Symbol("aborted"),rl=Symbol("signal"),ol=Symbol("dataListeners"),ul=Symbol("discarded"),il=e=>Promise.resolve().then(e),sl=e=>e();class al{src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[Gd](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class cl extends al{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>t.emit("error",e),e.on("error",this.proxyErrors)}}class dl extends P{[qd]=!1;[Md]=!1;[$d]=[];[zd]=[];[Hd];[Ld];[el];[Nd];[Rd]=!1;[_d]=!1;[Ud]=!1;[Od]=!1;[Pd]=null;[Wd]=0;[Zd]=!1;[rl];[nl]=!1;[ol]=0;[ul]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[Hd]=!0,this[Ld]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[Ld]=t.encoding,this[Hd]=!1):(this[Hd]=!1,this[Ld]=null),this[el]=!!t.async,this[Nd]=this[Ld]?new O(this[Ld]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[zd]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[$d]});const{signal:n}=t;n&&(this[rl]=n,n.aborted?this[tl]():n.addEventListener("abort",()=>this[tl]()))}get bufferLength(){return this[Wd]}get encoding(){return this[Ld]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Hd]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[el]}set async(e){this[el]=this[el]||!!e}[tl](){this[nl]=!0,this.emit("abort",this[rl]?.reason),this.destroy(this[rl]?.reason)}get aborted(){return this[nl]}set aborted(e){}write(e,t,n){if(this[nl])return!1;if(this[Rd])throw new Error("write after end");if(this[Zd])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");const r=this[el]?il:sl;if(!this[Hd]&&!Buffer.isBuffer(e))if(o=e,!Buffer.isBuffer(o)&&ArrayBuffer.isView(o))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var o;return this[Hd]?(this[qd]&&0!==this[Wd]&&this[xd](!0),this[qd]?this.emit("data",e):this[Jd](e),0!==this[Wd]&&this.emit("readable"),n&&r(n),this[qd]):e.length?("string"!=typeof e||t===this[Ld]&&!this[Nd]?.lastNeed||(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ld]&&(e=this[Nd].write(e)),this[qd]&&0!==this[Wd]&&this[xd](!0),this[qd]?this.emit("data",e):this[Jd](e),0!==this[Wd]&&this.emit("readable"),n&&r(n),this[qd]):(0!==this[Wd]&&this.emit("readable"),n&&r(n),this[qd])}read(e){if(this[Zd])return null;if(this[ul]=!1,0===this[Wd]||0===e||e&&e>this[Wd])return this[jd](),null;this[Hd]&&(e=null),this[zd].length>1&&!this[Hd]&&(this[zd]=[this[Ld]?this[zd].join(""):Buffer.concat(this[zd],this[Wd])]);const t=this[kd](e||null,this[zd][0]);return this[jd](),t}[kd](e,t){if(this[Hd])this[Vd]();else{const n=t;e===n.length||null===e?this[Vd]():"string"==typeof n?(this[zd][0]=n.slice(e),t=n.slice(0,e),this[Wd]-=e):(this[zd][0]=n.subarray(e),t=n.subarray(0,e),this[Wd]-=e)}return this.emit("data",t),this[zd].length||this[Rd]||this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[Rd]=!0,this.writable=!1,!this[qd]&&this[Md]||this[jd](),this}[Gd](){this[Zd]||(this[ol]||this[$d].length||(this[ul]=!0),this[Md]=!1,this[qd]=!0,this.emit("resume"),this[zd].length?this[xd]():this[Rd]?this[jd]():this.emit("drain"))}resume(){return this[Gd]()}pause(){this[qd]=!1,this[Md]=!0,this[ul]=!1}get destroyed(){return this[Zd]}get flowing(){return this[qd]}get paused(){return this[Md]}[Jd](e){this[Hd]?this[Wd]+=1:this[Wd]+=e.length,this[zd].push(e)}[Vd](){return this[Hd]?this[Wd]-=1:this[Wd]-=this[zd][0].length,this[zd].shift()}[xd](e=!1){do{}while(this[Td](this[Vd]())&&this[zd].length);e||this[zd].length||this[Rd]||this.emit("drain")}[Td](e){return this.emit("data",e),this[qd]}pipe(e,t){if(this[Zd])return e;this[ul]=!1;const n=this[_d];return t=t||{},e===Dd.stdout||e===Dd.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[$d].push(t.proxyErrors?new cl(this,e,t):new al(this,e,t)),this[el]?il(()=>this[Gd]()):this[Gd]()),e}unpipe(e){const t=this[$d].find(t=>t.dest===e);t&&(1===this[$d].length?(this[qd]&&0===this[ol]&&(this[qd]=!1),this[$d]=[]):this[$d].splice(this[$d].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const n=super.on(e,t);if("data"===e)this[ul]=!1,this[ol]++,this[$d].length||this[qd]||this[Gd]();else if("readable"===e&&0!==this[Wd])super.emit("readable");else if((e=>"end"===e||"finish"===e||"prefinish"===e)(e)&&this[_d])super.emit(e),this.removeAllListeners(e);else if("error"===e&&this[Pd]){const e=t;this[el]?il(()=>e.call(this,this[Pd])):e.call(this,this[Pd])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){const n=super.off(e,t);return"data"===e&&(this[ol]=this.listeners("data").length,0!==this[ol]||this[ul]||this[$d].length||(this[qd]=!1)),n}removeAllListeners(e){const t=super.removeAllListeners(e);return"data"!==e&&void 0!==e||(this[ol]=0,this[ul]||this[$d].length||(this[qd]=!1)),t}get emittedEnd(){return this[_d]}[jd](){this[Ud]||this[_d]||this[Zd]||0!==this[zd].length||!this[Rd]||(this[Ud]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Od]&&this.emit("close"),this[Ud]=!1)}emit(e,...t){const n=t[0];if("error"!==e&&"close"!==e&&e!==Zd&&this[Zd])return!1;if("data"===e)return!(!this[Hd]&&!n)&&(this[el]?(il(()=>this[Kd](n)),!0):this[Kd](n));if("end"===e)return this[Xd]();if("close"===e){if(this[Od]=!0,!this[_d]&&!this[Zd])return!1;const e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[Pd]=n,super.emit(Yd,n);const e=!(this[rl]&&!this.listeners("error").length)&&super.emit("error",n);return this[jd](),e}if("resume"===e){const e=super.emit("resume");return this[jd](),e}if("finish"===e||"prefinish"===e){const t=super.emit(e);return this.removeAllListeners(e),t}const r=super.emit(e,...t);return this[jd](),r}[Kd](e){for(const t of this[$d])!1===t.dest.write(e)&&this.pause();const t=!this[ul]&&super.emit("data",e);return this[jd](),t}[Xd](){return!this[_d]&&(this[_d]=!0,this.readable=!1,this[el]?(il(()=>this[Qd]()),!0):this[Qd]())}[Qd](){if(this[Nd]){const e=this[Nd].end();if(e){for(const t of this[$d])t.dest.write(e);this[ul]||super.emit("data",e)}}for(const e of this[$d])e.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[Hd]||(e.dataLength=0);const t=this.promise();return this.on("data",t=>{e.push(t),this[Hd]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[Hd])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[Ld]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Zd,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[ul]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[Rd])return t();let r,o;const u=e=>{this.off("data",i),this.off("end",s),this.off(Zd,a),t(),o(e)},i=e=>{this.off("error",u),this.off("end",s),this.off(Zd,a),this.pause(),r({value:e,done:!!this[Rd]})},s=()=>{this.off("error",u),this.off("data",i),this.off(Zd,a),t(),r({done:!0,value:void 0})},a=()=>u(new Error("stream destroyed"));return new Promise((e,t)=>{o=t,r=e,this.once(Zd,a),this.once("error",u),this.once("end",s),this.once("data",i)})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ul]=!1;let e=!1;const t=()=>(this.pause(),this.off(Yd,t),this.off(Zd,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(Yd,t),this.once(Zd,t),{next:()=>{if(e)return t();const n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[Zd])return e?this.emit("error",e):this.emit(Zd),this;this[Zd]=!0,this[ul]=!0,this[zd].length=0,this[Wd]=0;return"function"!=typeof this.close||this[Od]||this.close(),e?this.emit("error",e):this.emit(Zd),this}static get isStream(){return Bd}}const ll=f.constants||{ZLIB_VERNUM:4736},hl=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},ll)),pl=_.concat,fl=Object.getOwnPropertyDescriptor(_,"concat"),ml=e=>e,vl=!0===fl?.writable||void 0!==fl?.set?e=>{_.concat=e?ml:pl}:e=>{},El=Symbol("_superWrite");class Al extends Error{code;errno;constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const bl=Symbol("flushFlag");class yl extends dl{#e=!1;#t=!1;#n;#r;#o;#u;#i;get sawError(){return this.#e}get handle(){return this.#u}get flushFlag(){return this.#n}constructor(e,t){if(!e||"object"!=typeof e)throw new TypeError("invalid options for ZlibBase constructor");super(e),this.#n=e.flush??0,this.#r=e.finishFlush??0,this.#o=e.fullFlushFlag??0;try{this.#u=new p[t](e)}catch(e){throw new Al(e)}this.#i=e=>{this.#e||(this.#e=!0,this.close(),this.emit("error",e))},this.#u?.on("error",e=>this.#i(new Al(e))),this.once("end",()=>this.close)}close(){this.#u&&(this.#u.close(),this.#u=void 0,this.emit("close"))}reset(){if(!this.#e)return M(this.#u,"zlib binding closed"),this.#u.reset?.()}flush(e){this.ended||("number"!=typeof e&&(e=this.#o),this.write(Object.assign(_.alloc(0),{[bl]:e})))}end(e,t,n){return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&(t?this.write(e,t):this.write(e)),this.flush(this.#r),this.#t=!0,super.end(n)}get ended(){return this.#t}[El](e){return super.write(e)}write(e,t,n){if("function"==typeof t&&(n=t,t="utf8"),"string"==typeof e&&(e=_.from(e,t)),this.#e)return;M(this.#u,"zlib binding closed");const r=this.#u._handle,o=r.close;r.close=()=>{};const u=this.#u.close;let i,s;this.#u.close=()=>{},vl(!0);try{const t="number"==typeof e[bl]?e[bl]:this.#n;i=this.#u._processChunk(e,t),vl(!1)}catch(e){vl(!1),this.#i(new Al(e))}finally{this.#u&&(this.#u._handle=r,r.close=o,this.#u.close=u,this.#u.removeAllListeners("error"))}if(this.#u&&this.#u.on("error",e=>this.#i(new Al(e))),i)if(Array.isArray(i)&&i.length>0){const e=i[0];s=this[El](_.from(e));for(let e=1;e<i.length;e++)s=this[El](i[e])}else s=this[El](_.from(i));return n&&n(),s}}class gl extends yl{#s;#a;constructor(e,t){(e=e||{}).flush=e.flush||hl.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hl.Z_FINISH,e.fullFlushFlag=hl.Z_FULL_FLUSH,super(e,t),this.#s=e.level,this.#a=e.strategy}params(e,t){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#s!==e||this.#a!==t){this.flush(hl.Z_SYNC_FLUSH),M(this.handle,"zlib binding closed");const n=this.handle.flush;this.handle.flush=(e,t)=>{"function"==typeof e&&(t=e,e=this.flushFlag),this.flush(e),t?.()};try{this.handle.params(e,t)}finally{this.handle.flush=n}this.handle&&(this.#s=e,this.#a=t)}}}}class Cl extends gl{#c;constructor(e){super(e,"Gzip"),this.#c=e&&!!e.portable}[El](e){return this.#c?(this.#c=!1,e[9]=255,super[El](e)):super[El](e)}}class wl extends gl{constructor(e){super(e,"Unzip")}}class Fl extends yl{constructor(e,t){(e=e||{}).flush=e.flush||hl.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hl.BROTLI_OPERATION_FINISH,e.fullFlushFlag=hl.BROTLI_OPERATION_FLUSH,super(e,t)}}class Dl extends Fl{constructor(e){super(e,"BrotliCompress")}}class Bl extends Fl{constructor(e){super(e,"BrotliDecompress")}}class Il{tail;head;length=0;static create(e=[]){return new Il(e)}constructor(e=[]){for(const t of e)this.push(t)}*[Symbol.iterator](){for(let e=this.head;e;e=e.next)yield e.value}removeNode(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");const t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),this.length--,e.next=void 0,e.prev=void 0,e.list=void 0,t}unshiftNode(e){if(e===this.head)return;e.list&&e.list.removeNode(e);const t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}pushNode(e){if(e===this.tail)return;e.list&&e.list.removeNode(e);const t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}push(...e){for(let t=0,n=e.length;t<n;t++)Rl(this,e[t]);return this.length}unshift(...e){for(var t=0,n=e.length;t<n;t++)jl(this,e[t]);return this.length}pop(){if(!this.tail)return;const e=this.tail.value,t=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,t.list=void 0,this.length--,e}shift(){if(!this.head)return;const e=this.head.value,t=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,t.list=void 0,this.length--,e}forEach(e,t){t=t||this;for(let n=this.head,r=0;n;r++)e.call(t,n.value,r,this),n=n.next}forEachReverse(e,t){t=t||this;for(let n=this.tail,r=this.length-1;n;r--)e.call(t,n.value,r,this),n=n.prev}get(e){let t=0,n=this.head;for(;n&&t<e;t++)n=n.next;if(t===e&&n)return n.value}getReverse(e){let t=0,n=this.tail;for(;n&&t<e;t++)n=n.prev;if(t===e&&n)return n.value}map(e,t){t=t||this;const n=new Il;for(let r=this.head;r;)n.push(e.call(t,r.value,this)),r=r.next;return n}mapReverse(e,t){t=t||this;var n=new Il;for(let r=this.tail;r;)n.push(e.call(t,r.value,this)),r=r.prev;return n}reduce(e,t){let n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;r;o++)n=e(n,r.value,o),r=r.next;return n}reduceReverse(e,t){let n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(let t=this.length-1;r;t--)n=e(n,r.value,t),r=r.prev;return n}toArray(){const e=new Array(this.length);for(let t=0,n=this.head;n;t++)e[t]=n.value,n=n.next;return e}toArrayReverse(){const e=new Array(this.length);for(let t=0,n=this.tail;n;t++)e[t]=n.value,n=n.prev;return e}slice(e=0,t=this.length){t<0&&(t+=this.length),e<0&&(e+=this.length);const n=new Il;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);let r=this.head,o=0;for(o=0;r&&o<e;o++)r=r.next;for(;r&&o<t;o++,r=r.next)n.push(r.value);return n}sliceReverse(e=0,t=this.length){t<0&&(t+=this.length),e<0&&(e+=this.length);const n=new Il;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);let r=this.length,o=this.tail;for(;o&&r>t;r--)o=o.prev;for(;o&&r>e;r--,o=o.prev)n.push(o.value);return n}splice(e,t=0,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);let r=this.head;for(let t=0;r&&t<e;t++)r=r.next;const o=[];for(let e=0;r&&e<t;e++)o.push(r.value),r=this.removeNode(r);r?r!==this.tail&&(r=r.prev):r=this.tail;for(const e of n)r=Sl(this,r,e);return o}reverse(){const e=this.head,t=this.tail;for(let t=e;t;t=t.prev){const e=t.prev;t.prev=t.next,t.next=e}return this.head=t,this.tail=e,this}}function Sl(e,t,n){const r=t,o=t?t.next:e.head,u=new _l(n,r,o,e);return void 0===u.next&&(e.tail=u),void 0===u.prev&&(e.head=u),e.length++,u}function Rl(e,t){e.tail=new _l(t,e.tail,void 0,e),e.head||(e.head=e.tail),e.length++}function jl(e,t){e.head=new _l(t,void 0,e.head,e),e.tail||(e.tail=e.head),e.length++}class _l{list;next;prev;value;constructor(e,t,n,r){this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=void 0,n?(n.prev=this,this.next=n):this.next=void 0}}const Ul=(e,t)=>{t[0]=128;for(var n=t.length;n>1;n--)t[n-1]=255&e,e=Math.floor(e/256)},Pl=(e,t)=>{t[0]=255;var n=!1;e*=-1;for(var r=t.length;r>1;r--){var o=255&e;e=Math.floor(e/256),n?t[r-1]=xl(o):0===o?t[r-1]=0:(n=!0,t[r-1]=Tl(o))}},Ol=e=>{for(var t=e.length,n=0,r=!1,o=t-1;o>-1;o--){var u,i=Number(e[o]);r?u=xl(i):0===i?u=i:(r=!0,u=Tl(i)),0!==u&&(n-=u*Math.pow(256,t-o-1))}return n},kl=e=>{for(var t=e.length,n=0,r=t-1;r>-1;r--){var o=Number(e[r]);0!==o&&(n+=o*Math.pow(256,t-r-1))}return n},xl=e=>255&(255^e),Tl=e=>1+(255^e)&255,Ll=e=>Nl.has(e),Nl=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),ql=new Map(Array.from(Nl).map(e=>[e[1],e[0]]));class Ml{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#d="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(e,t=0,n,r){Buffer.isBuffer(e)?this.decode(e,t||0,n,r):e&&this.#l(e)}decode(e,t,n,r){if(t||(t=0),!(e&&e.length>=t+512))throw new Error("need 512 bytes for header");this.path=zl(e,t,100),this.mode=Jl(e,t+100,8),this.uid=Jl(e,t+108,8),this.gid=Jl(e,t+116,8),this.size=Jl(e,t+124,12),this.mtime=$l(e,t+136,12),this.cksum=Jl(e,t+148,12),r&&this.#l(r,!0),n&&this.#l(n);const o=zl(e,t+156,1);if(Ll(o)&&(this.#d=o||"0"),"0"===this.#d&&"/"===this.path.slice(-1)&&(this.#d="5"),"5"===this.#d&&(this.size=0),this.linkpath=zl(e,t+157,100),"ustar\x0000"===e.subarray(t+257,t+265).toString())if(this.uname=zl(e,t+265,32),this.gname=zl(e,t+297,32),this.devmaj=Jl(e,t+329,8)??0,this.devmin=Jl(e,t+337,8)??0,0!==e[t+475]){const n=zl(e,t+345,155);this.path=n+"/"+this.path}else{const n=zl(e,t+345,130);n&&(this.path=n+"/"+this.path),this.atime=$l(e,t+476,12),this.ctime=$l(e,t+488,12)}let u=256;for(let n=t;n<t+148;n++)u+=e[n];for(let n=t+156;n<t+512;n++)u+=e[n];this.cksumValid=u===this.cksum,void 0===this.cksum&&256===u&&(this.nullBlock=!0)}#l(e,t=!1){Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t||"linkpath"===e&&t||"global"===e))))}encode(e,t=0){if(e||(e=this.block=Buffer.alloc(512)),"Unsupported"===this.#d&&(this.#d="0"),!(e.length>=t+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155,r=Gl(this.path||"",n),o=r[0],u=r[1];this.needPax=!!r[2],this.needPax=th(e,t,100,o)||this.needPax,this.needPax=Zl(e,t+100,8,this.mode)||this.needPax,this.needPax=Zl(e,t+108,8,this.uid)||this.needPax,this.needPax=Zl(e,t+116,8,this.gid)||this.needPax,this.needPax=Zl(e,t+124,12,this.size)||this.needPax,this.needPax=Ql(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this.#d.charCodeAt(0),this.needPax=th(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=th(e,t+265,32,this.uname)||this.needPax,this.needPax=th(e,t+297,32,this.gname)||this.needPax,this.needPax=Zl(e,t+329,8,this.devmaj)||this.needPax,this.needPax=Zl(e,t+337,8,this.devmin)||this.needPax,this.needPax=th(e,t+345,n,u)||this.needPax,0!==e[t+475]?this.needPax=th(e,t+345,155,u)||this.needPax:(this.needPax=th(e,t+345,130,u)||this.needPax,this.needPax=Ql(e,t+476,12,this.atime)||this.needPax,this.needPax=Ql(e,t+488,12,this.ctime)||this.needPax);let i=256;for(let n=t;n<t+148;n++)i+=e[n];for(let n=t+156;n<t+512;n++)i+=e[n];return this.cksum=i,Zl(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#d?this.#d:Nl.get(this.#d)}get typeKey(){return this.#d}set type(e){const t=String(ql.get(e));if(Ll(t)||"Unsupported"===t)this.#d=t;else{if(!Ll(e))throw new TypeError("invalid entry type: "+e);this.#d=e}}}const Gl=(e,t)=>{const n=100;let r,o=e,u="";const i=x.parse(e).root||".";if(Buffer.byteLength(o)<n)r=[o,u,!1];else{u=x.dirname(o),o=x.basename(o);do{Buffer.byteLength(o)<=n&&Buffer.byteLength(u)<=t?r=[o,u,!1]:Buffer.byteLength(o)>n&&Buffer.byteLength(u)<=t?r=[o.slice(0,99),u,!0]:(o=x.join(x.basename(u),o),u=x.dirname(u))}while(u!==i&&void 0===r);r||(r=[e.slice(0,99),"",!0])}return r},zl=(e,t,n)=>e.subarray(t,t+n).toString("utf8").replace(/\0.*/,""),$l=(e,t,n)=>Wl(Jl(e,t,n)),Wl=e=>void 0===e?void 0:new Date(1e3*e),Jl=(e,t,n)=>128&Number(e[t])?(e=>{const t=e[0],n=128===t?kl(e.subarray(1,e.length)):255===t?Ol(e):null;if(null===n)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n})(e.subarray(t,t+n)):Vl(e,t,n),Vl=(e,t,n)=>{return r=parseInt(e.subarray(t,t+n).toString("utf8").replace(/\0.*$/,"").trim(),8),isNaN(r)?void 0:r;var r},Hl={12:8589934591,8:2097151},Zl=(e,t,n,r)=>void 0!==r&&(r>Hl[n]||r<0?(((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");e<0?Pl(e,t):Ul(e,t)})(r,e.subarray(t,t+n)),!0):(Yl(e,t,n,r),!1)),Yl=(e,t,n,r)=>e.write(Kl(r,n),t,n,"ascii"),Kl=(e,t)=>Xl(Math.floor(e).toString(8),t),Xl=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",Ql=(e,t,n,r)=>void 0!==r&&Zl(e,t,n,r.getTime()/1e3),eh=new Array(156).join("\0"),th=(e,t,n,r)=>void 0!==r&&(e.write(r+eh,t,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);class nh{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(e,t=!1){this.atime=e.atime,this.charset=e.charset,this.comment=e.comment,this.ctime=e.ctime,this.dev=e.dev,this.gid=e.gid,this.global=t,this.gname=e.gname,this.ino=e.ino,this.linkpath=e.linkpath,this.mtime=e.mtime,this.nlink=e.nlink,this.path=e.path,this.size=e.size,this.uid=e.uid,this.uname=e.uname}encode(){const e=this.encodeBody();if(""===e)return Buffer.allocUnsafe(0);const t=Buffer.byteLength(e),n=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(n);for(let e=0;e<512;e++)r[e]=0;new Ml({path:("PaxHeader/"+T(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:t,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(r),r.write(e,512,t,"utf8");for(let e=t+512;e<r.length;e++)r[e]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(void 0===this[e])return"";const t=this[e],n=" "+("dev"===e||"ino"===e||"nlink"===e?"SCHILY.":"")+e+"="+(t instanceof Date?t.getTime()/1e3:t)+"\n",r=Buffer.byteLength(n);let o=Math.floor(Math.log(r)/Math.log(10))+1;r+o>=Math.pow(10,o)&&(o+=1);return o+r+n}static parse(e,t,n=!1){return new nh(rh(oh(e),t),n)}}const rh=(e,t)=>t?Object.assign({},t,e):e,oh=e=>e.replace(/\n$/,"").split("\n").reduce(uh,Object.create(null)),uh=(e,t)=>{const n=parseInt(t,10);if(n!==Buffer.byteLength(t)+1)return e;const r=(t=t.slice((n+" ").length)).split("="),o=r.shift();if(!o)return e;const u=o.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),i=r.join("=");return e[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(1e3*Number(i)):/^[0-9]+$/.test(i)?+i:i,e},ih="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?e=>e:e=>e&&e.replace(/\\/g,"/");class sh extends dl{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(e,t,n){switch(super({}),this.pause(),this.extended=t,this.globalExtended=n,this.header=e,this.remain=e.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),this.blockRemain=this.startBlockSize,this.type=e.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!e.path)throw new Error("no path provided for tar.ReadEntry");this.path=ih(e.path),this.mode=e.mode,this.mode&&(this.mode=4095&this.mode),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=this.remain,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath?ih(e.linkpath):void 0,this.uname=e.uname,this.gname=e.gname,t&&this.#l(t),n&&this.#l(n,!0)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain,r=this.blockRemain;return this.remain=Math.max(0,n-t),this.blockRemain=Math.max(0,r-t),!!this.ignore||(n>=t?super.write(e):super.write(e.subarray(0,n)))}#l(e,t=!1){e.path&&(e.path=ih(e.path)),e.linkpath&&(e.linkpath=ih(e.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t))))}}const ah=(e,t,n,r={})=>{e.file&&(r.file=e.file),e.cwd&&(r.cwd=e.cwd),r.code=n instanceof Error&&n.code||t,r.tarCode=t,e.strict||!1===r.recoverable?n instanceof Error?e.emit("error",Object.assign(n,r)):e.emit("error",Object.assign(new Error(`${t}: ${n}`),r)):(n instanceof Error&&(r=Object.assign(n,r),n=n.message),e.emit("warn",t,n,r))},ch=Buffer.from([31,139]),dh=Symbol("state"),lh=Symbol("writeEntry"),hh=Symbol("readEntry"),ph=Symbol("nextEntry"),fh=Symbol("processEntry"),mh=Symbol("extendedHeader"),vh=Symbol("globalExtendedHeader"),Eh=Symbol("meta"),Ah=Symbol("emitMeta"),bh=Symbol("buffer"),yh=Symbol("queue"),gh=Symbol("ended"),Ch=Symbol("emittedEnd"),wh=Symbol("emit"),Fh=Symbol("unzip"),Dh=Symbol("consumeChunk"),Bh=Symbol("consumeChunkSub"),Ih=Symbol("consumeBody"),Sh=Symbol("consumeMeta"),Rh=Symbol("consumeHeader"),jh=Symbol("consuming"),_h=Symbol("bufferConcat"),Uh=Symbol("maybeEnd"),Ph=Symbol("writing"),Oh=Symbol("aborted"),kh=Symbol("onDone"),xh=Symbol("sawValidEntry"),Th=Symbol("sawNullBlock"),Lh=Symbol("sawEOF"),Nh=Symbol("closeStream"),qh=()=>!0;class Mh extends t{file;strict;maxMetaEntrySize;filter;brotli;writable=!0;readable=!1;[yh]=new Il;[bh];[hh];[lh];[dh]="begin";[Eh]="";[mh];[vh];[gh]=!1;[Fh];[Oh]=!1;[xh];[Th]=!1;[Lh]=!1;[Ph]=!1;[jh]=!1;[Ch]=!1;constructor(e={}){super(),this.file=e.file||"",this.on(kh,()=>{"begin"!==this[dh]&&!1!==this[xh]||this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(kh,e.ondone):this.on(kh,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||1048576,this.filter="function"==typeof e.filter?e.filter:qh;const t=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=e.gzip||void 0===e.brotli?!!t&&void 0:e.brotli,this.on("end",()=>this[Nh]()),"function"==typeof e.onwarn&&this.on("warn",e.onwarn),"function"==typeof e.onReadEntry&&this.on("entry",e.onReadEntry)}warn(e,t,n={}){ah(this,e,t,n)}[Rh](e,t){let n;void 0===this[xh]&&(this[xh]=!1);try{n=new Ml(e,t,this[mh],this[vh])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}if(n.nullBlock)this[Th]?(this[Lh]=!0,"begin"===this[dh]&&(this[dh]="header"),this[wh]("eof")):(this[Th]=!0,this[wh]("nullBlock"));else if(this[Th]=!1,n.cksumValid)if(n.path){const e=n.type;if(/^(Symbolic)?Link$/.test(e)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(/^(Symbolic)?Link$/.test(e)||/^(Global)?ExtendedHeader$/.test(e)||!n.linkpath){const e=this[lh]=new sh(n,this[mh],this[vh]);if(!this[xh])if(e.remain){const t=()=>{e.invalid||(this[xh]=!0)};e.on("end",t)}else this[xh]=!0;e.meta?e.size>this.maxMetaEntrySize?(e.ignore=!0,this[wh]("ignoredEntry",e),this[dh]="ignore",e.resume()):e.size>0&&(this[Eh]="",e.on("data",e=>this[Eh]+=e),this[dh]="meta"):(this[mh]=void 0,e.ignore=e.ignore||!this.filter(e.path,e),e.ignore?(this[wh]("ignoredEntry",e),this[dh]=e.remain?"ignore":"header",e.resume()):(e.remain?this[dh]="body":(this[dh]="header",e.end()),this[hh]?this[yh].push(e):(this[yh].push(e),this[ph]())))}else this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n})}else this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n})}[Nh](){queueMicrotask(()=>this.emit("close"))}[fh](e){let t=!0;if(e)if(Array.isArray(e)){const[t,...n]=e;this.emit(t,...n)}else this[hh]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",()=>this[ph]()),t=!1);else this[hh]=void 0,t=!1;return t}[ph](){do{}while(this[fh](this[yh].shift()));if(!this[yh].length){const e=this[hh];!e||e.flowing||e.size===e.remain?this[Ph]||this.emit("drain"):e.once("drain",()=>this.emit("drain"))}}[Ih](e,t){const n=this[lh];if(!n)throw new Error("attempt to consume body without entry??");const r=n.blockRemain??0,o=r>=e.length&&0===t?e:e.subarray(t,t+r);return n.write(o),n.blockRemain||(this[dh]="header",this[lh]=void 0,n.end()),o.length}[Sh](e,t){const n=this[lh],r=this[Ih](e,t);return!this[lh]&&n&&this[Ah](n),r}[wh](e,t,n){this[yh].length||this[hh]?this[yh].push([e,t,n]):this.emit(e,t,n)}[Ah](e){switch(this[wh]("meta",this[Eh]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[mh]=nh.parse(this[Eh],this[mh],!1);break;case"GlobalExtendedHeader":this[vh]=nh.parse(this[Eh],this[vh],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{const e=this[mh]??Object.create(null);this[mh]=e,e.path=this[Eh].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{const e=this[mh]||Object.create(null);this[mh]=e,e.linkpath=this[Eh].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Oh]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this[Oh])return n?.(),!1;if((void 0===this[Fh]||void 0===this.brotli&&!1===this[Fh])&&e){if(this[bh]&&(e=Buffer.concat([this[bh],e]),this[bh]=void 0),e.length<ch.length)return this[bh]=e,n?.(),!0;for(let t=0;void 0===this[Fh]&&t<ch.length;t++)e[t]!==ch[t]&&(this[Fh]=!1);const t=void 0===this.brotli;if(!1===this[Fh]&&t)if(e.length<512){if(!this[gh])return this[bh]=e,n?.(),!0;this.brotli=!0}else try{new Ml(e.subarray(0,512)),this.brotli=!1}catch(e){this.brotli=!0}if(void 0===this[Fh]||!1===this[Fh]&&this.brotli){const t=this[gh];this[gh]=!1,this[Fh]=void 0===this[Fh]?new wl({}):new Bl({}),this[Fh].on("data",e=>this[Dh](e)),this[Fh].on("error",e=>this.abort(e)),this[Fh].on("end",()=>{this[gh]=!0,this[Dh]()}),this[Ph]=!0;const r=!!this[Fh][t?"end":"write"](e);return this[Ph]=!1,n?.(),r}}this[Ph]=!0,this[Fh]?this[Fh].write(e):this[Dh](e),this[Ph]=!1;const r=!this[yh].length&&(!this[hh]||this[hh].flowing);return r||this[yh].length||this[hh]?.once("drain",()=>this.emit("drain")),n?.(),r}[_h](e){e&&!this[Oh]&&(this[bh]=this[bh]?Buffer.concat([this[bh],e]):e)}[Uh](){if(this[gh]&&!this[Ch]&&!this[Oh]&&!this[jh]){this[Ch]=!0;const e=this[lh];if(e&&e.blockRemain){const t=this[bh]?this[bh].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[bh]&&e.write(this[bh]),e.end()}this[wh](kh)}}[Dh](e){if(this[jh]&&e)this[_h](e);else if(e||this[bh]){if(e){if(this[jh]=!0,this[bh]){this[_h](e);const t=this[bh];this[bh]=void 0,this[Bh](t)}else this[Bh](e);for(;this[bh]&&this[bh]?.length>=512&&!this[Oh]&&!this[Lh];){const e=this[bh];this[bh]=void 0,this[Bh](e)}this[jh]=!1}}else this[Uh]();this[bh]&&!this[gh]||this[Uh]()}[Bh](e){let t=0;const n=e.length;for(;t+512<=n&&!this[Oh]&&!this[Lh];)switch(this[dh]){case"begin":case"header":this[Rh](e,t),t+=512;break;case"ignore":case"body":t+=this[Ih](e,t);break;case"meta":t+=this[Sh](e,t);break;default:throw new Error("invalid state: "+this[dh])}t<n&&(this[bh]?this[bh]=Buffer.concat([e.subarray(t),this[bh]]):this[bh]=e.subarray(t))}end(e,t,n){return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t)),n&&this.once("finish",n),this[Oh]||(this[Fh]?(e&&this[Fh].write(e),this[Fh].end()):(this[gh]=!0,void 0===this.brotli&&(e=e||Buffer.alloc(0)),e&&this.write(e),this[Uh]())),this}}const Gh=e=>{let t=e.length-1,n=-1;for(;t>-1&&"/"===e.charAt(t);)n=t,t--;return-1===n?e:e.slice(0,n)},zh=(e,t)=>{const n=new Map(t.map(e=>[Gh(e),!0])),r=e.filter,o=(e,t="")=>{const r=t||D(e).root||".";let u;if(e===r)u=!1;else{const t=n.get(e);u=void 0!==t?t:o(B(e),r)}return n.set(e,u),u};e.filter=r?(e,t)=>r(e,t)&&o(Gh(e)):e=>o(Gh(e))},$h=Fd(e=>{const t=new Mh(e),n=e.file;let r;try{const o=q.statSync(n),u=e.maxReadSize||16777216;if(o.size<u)t.end(q.readFileSync(n));else{let e=0;const i=Buffer.allocUnsafe(u);for(r=q.openSync(n,"r");e<o.size;){const n=q.readSync(r,i,0,u,e);e+=n,t.write(i.subarray(0,n))}t.end()}}finally{if("number"==typeof r)try{q.closeSync(r)}catch(e){}}},(e,t)=>{const n=new Mh(e),r=e.maxReadSize||16777216,o=e.file,u=new Promise((e,t)=>{n.on("error",t),n.on("end",e),q.stat(o,(e,u)=>{if(e)t(e);else{const e=new Ed(o,{readSize:r,size:u.size});e.on("error",t),e.pipe(n)}})});return u},e=>new Mh(e),e=>new Mh(e),(e,t)=>{t?.length&&zh(e,t),e.noResume||(e=>{const t=e.onReadEntry;e.onReadEntry=t?e=>{t(e),e.resume()}:e=>e.resume()})(e)}),Wh=(e,t,n)=>(e&=4095,n&&(e=-19&e|384),t&&(256&e&&(e|=64),32&e&&(e|=8),4&e&&(e|=1)),e),{isAbsolute:Jh,parse:Vh}=L,Hh=e=>{let t="",n=Vh(e);for(;Jh(e)||n.root;){const r="/"===e.charAt(0)&&"//?/"!==e.slice(0,4)?"/":n.root;e=e.slice(r.length),t+=r,n=Vh(e)}return[t,e]},Zh=["|","<",">","?",":"],Yh=Zh.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),Kh=new Map(Zh.map((e,t)=>[e,Yh[t]])),Xh=new Map(Yh.map((e,t)=>[e,Zh[t]])),Qh=e=>Zh.reduce((e,t)=>e.split(t).join(Kh.get(t)),e),ep=(e,t)=>t?(e=ih(e).replace(/^\.(\/|$)/,""),Gh(t)+"/"+e):ih(e),tp=Symbol("process"),np=Symbol("file"),rp=Symbol("directory"),op=Symbol("symlink"),up=Symbol("hardlink"),ip=Symbol("header"),sp=Symbol("read"),ap=Symbol("lstat"),cp=Symbol("onlstat"),dp=Symbol("onread"),lp=Symbol("onreadlink"),hp=Symbol("openfile"),pp=Symbol("onopenfile"),fp=Symbol("close"),mp=Symbol("mode"),vp=Symbol("awaitDrain"),Ep=Symbol("ondrain"),Ap=Symbol("prefix");class bp extends dl{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#h=!1;constructor(e,t={}){const n=wd(t);super(),this.path=ih(e),this.portable=!!n.portable,this.maxReadSize=n.maxReadSize||16777216,this.linkCache=n.linkCache||new Map,this.statCache=n.statCache||new Map,this.preservePaths=!!n.preservePaths,this.cwd=ih(n.cwd||process.cwd()),this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?ih(n.prefix):void 0,this.onWriteEntry=n.onWriteEntry,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let r=!1;if(!this.preservePaths){const[e,t]=Hh(this.path);e&&"string"==typeof t&&(this.path=t,r=e)}var o;this.win32=!!n.win32||"win32"===process.platform,this.win32&&(this.path=(o=this.path.replace(/\\/g,"/"),Yh.reduce((e,t)=>e.split(t).join(Xh.get(t)),o)),e=e.replace(/\\/g,"/")),this.absolute=ih(n.absolute||F.resolve(this.cwd,e)),""===this.path&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path});const u=this.statCache.get(this.absolute);u?this[cp](u):this[ap]()}warn(e,t,n={}){return ah(this,e,t,n)}emit(e,...t){return"error"===e&&(this.#h=!0),super.emit(e,...t)}[ap](){b.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[cp](t)})}[cp](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=Cp(e),this.emit("stat",e),this[tp]()}[tp](){switch(this.type){case"File":return this[np]();case"Directory":return this[rp]();case"SymbolicLink":return this[op]();default:return this.end()}}[mp](e){return Wh(e,"Directory"===this.type,this.portable)}[Ap](e){return ep(e,this.prefix)}[ip](){if(!this.stat)throw new Error("cannot write header before stat");"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new Ml({path:this[Ap](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ap](this.linkpath):this.linkpath,mode:this[mp](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:"Unsupported"===this.type?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new nh({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[Ap](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ap](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());const e=this.header?.block;if(!e)throw new Error("failed to encode header");super.write(e)}[rp](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[ip](),this.end()}[op](){b.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[lp](t)})}[lp](e){this.linkpath=ih(e),this[ip](),this.end()}[up](e){if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=ih(F.relative(this.cwd,e)),this.stat.size=0,this[ip](),this.end()}[np](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){const e=`${this.stat.dev}:${this.stat.ino}`,t=this.linkCache.get(e);if(0===t?.indexOf(this.cwd))return this[up](t);this.linkCache.set(e,this.absolute)}if(this[ip](),0===this.stat.size)return this.end();this[hp]()}[hp](){b.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[pp](t)})}[pp](e){if(this.fd=e,this.#h)return this[fp]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;const t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[sp]()}[sp](){const{fd:e,buf:t,offset:n,length:r,pos:o}=this;if(void 0===e||void 0===t)throw new Error("cannot read file without first opening");b.read(e,t,n,r,o,(e,t)=>{if(e)return this[fp](()=>this.emit("error",e));this[dp](t)})}[fp](e=()=>{}){void 0!==this.fd&&b.close(this.fd,e)}[dp](e){if(e<=0&&this.remain>0){const e=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[fp](()=>this.emit("error",e))}if(e>this.remain){const e=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[fp](()=>this.emit("error",e))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(e===this.remain)for(let t=e;t<this.length&&e<this.blockRemain;t++)this.buf[t+this.offset]=0,e++,this.remain++;const t=0===this.offset&&e===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+e);this.write(t)?this[Ep]():this[vp](()=>this[Ep]())}[vp](e){this.once("drain",e)}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this.blockRemain<e.length){const e=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",e)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e,null,n)}[Ep](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[fp](e=>e?this.emit("error",e):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[sp]()}}class yp extends bp{sync=!0;[ap](){this[cp](b.lstatSync(this.absolute))}[op](){this[lp](b.readlinkSync(this.absolute))}[hp](){this[pp](b.openSync(this.absolute,"r"))}[sp](){let e=!0;try{const{fd:t,buf:n,offset:r,length:o,pos:u}=this;if(void 0===t||void 0===n)throw new Error("fd and buf must be set in READ method");const i=b.readSync(t,n,r,o,u);this[dp](i),e=!1}finally{if(e)try{this[fp](()=>{})}catch(e){}}}[vp](e){e()}[fp](e=()=>{}){void 0!==this.fd&&b.closeSync(this.fd),e()}}class gp extends dl{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(e,t,n={}){return ah(this,e,t,n)}constructor(e,t={}){const n=wd(t);super(),this.preservePaths=!!n.preservePaths,this.portable=!!n.portable,this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.onWriteEntry=n.onWriteEntry,this.readEntry=e;const{type:r}=e;if("Unsupported"===r)throw new Error("writing entry that should be ignored");this.type=r,"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.prefix=n.prefix,this.path=ih(e.path),this.mode=void 0!==e.mode?this[mp](e.mode):void 0,this.uid=this.portable?void 0:e.uid,this.gid=this.portable?void 0:e.gid,this.uname=this.portable?void 0:e.uname,this.gname=this.portable?void 0:e.gname,this.size=e.size,this.mtime=this.noMtime?void 0:n.mtime||e.mtime,this.atime=this.portable?void 0:e.atime,this.ctime=this.portable?void 0:e.ctime,this.linkpath=void 0!==e.linkpath?ih(e.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let o=!1;if(!this.preservePaths){const[e,t]=Hh(this.path);e&&"string"==typeof t&&(this.path=t,o=e)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.onWriteEntry?.(this),this.header=new Ml({path:this[Ap](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ap](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),o&&this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:this,path:o+this.path}),this.header.encode()&&!this.noPax&&super.write(new nh({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[Ap](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ap](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());const u=this.header?.block;if(!u)throw new Error("failed to encode header");super.write(u),e.pipe(this)}[Ap](e){return ep(e,this.prefix)}[mp](e){return Wh(e,"Directory"===this.type,this.portable)}write(e,t,n){"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8"));const r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e,n)}end(e,t,n){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t??"utf8")),n&&this.once("finish",n),e?super.end(e,n):super.end(n),this}}const Cp=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";class wp{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(e,t){this.path=e||"./",this.absolute=t}}const Fp=Buffer.alloc(1024),Dp=Symbol("onStat"),Bp=Symbol("ended"),Ip=Symbol("queue"),Sp=Symbol("current"),Rp=Symbol("process"),jp=Symbol("processing"),_p=Symbol("processJob"),Up=Symbol("jobs"),Pp=Symbol("jobDone"),Op=Symbol("addFSEntry"),kp=Symbol("addTarEntry"),xp=Symbol("stat"),Tp=Symbol("readdir"),Lp=Symbol("onreaddir"),Np=Symbol("pipe"),qp=Symbol("entry"),Mp=Symbol("entryOpt"),Gp=Symbol("writeEntryClass"),zp=Symbol("write"),$p=Symbol("ondrain");class Wp extends dl{opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[Gp];onWriteEntry;[Ip];[Up]=0;[jp]=!1;[Bp]=!1;constructor(e={}){if(super(),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=ih(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this.onWriteEntry=e.onWriteEntry,this[Gp]=bp,"function"==typeof e.onwarn&&this.on("warn",e.onwarn),this.portable=!!e.portable,e.gzip||e.brotli){if(e.gzip&&e.brotli)throw new TypeError("gzip and brotli are mutually exclusive");if(e.gzip&&("object"!=typeof e.gzip&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new Cl(e.gzip)),e.brotli&&("object"!=typeof e.brotli&&(e.brotli={}),this.zip=new Dl(e.brotli)),!this.zip)throw new Error("impossible");const t=this.zip;t.on("data",e=>super.write(e)),t.on("end",()=>super.end()),t.on("drain",()=>this[$p]()),this.on("resume",()=>t.resume())}else this.on("drain",this[$p]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,e.mtime&&(this.mtime=e.mtime),this.filter="function"==typeof e.filter?e.filter:()=>!0,this[Ip]=new Il,this[Up]=0,this.jobs=Number(e.jobs)||4,this[jp]=!1,this[Bp]=!1}[zp](e){return super.write(e)}add(e){return this.write(e),this}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&this.add(e),this[Bp]=!0,this[Rp](),n&&n(),this}write(e){if(this[Bp])throw new Error("write after end");return e instanceof sh?this[kp](e):this[Op](e),this.flowing}[kp](e){const t=ih(F.resolve(this.cwd,e.path));if(this.filter(e.path,e)){const n=new wp(e.path,t);n.entry=new gp(e,this[Mp](n)),n.entry.on("end",()=>this[Pp](n)),this[Up]+=1,this[Ip].push(n)}else e.resume();this[Rp]()}[Op](e){const t=ih(F.resolve(this.cwd,e));this[Ip].push(new wp(e,t)),this[Rp]()}[xp](e){e.pending=!0,this[Up]+=1;const t=this.follow?"stat":"lstat";b[t](e.absolute,(t,n)=>{e.pending=!1,this[Up]-=1,t?this.emit("error",t):this[Dp](e,n)})}[Dp](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[Rp]()}[Tp](e){e.pending=!0,this[Up]+=1,b.readdir(e.absolute,(t,n)=>{if(e.pending=!1,this[Up]-=1,t)return this.emit("error",t);this[Lp](e,n)})}[Lp](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[Rp]()}[Rp](){if(!this[jp]){this[jp]=!0;for(let e=this[Ip].head;e&&this[Up]<this.jobs;e=e.next)if(this[_p](e.value),e.value.ignore){const t=e.next;this[Ip].removeNode(e),e.next=t}this[jp]=!1,this[Bp]&&!this[Ip].length&&0===this[Up]&&(this.zip?this.zip.end(Fp):(super.write(Fp),super.end()))}}get[Sp](){return this[Ip]&&this[Ip].head&&this[Ip].head.value}[Pp](e){this[Ip].shift(),this[Up]-=1,this[Rp]()}[_p](e){if(!e.pending)if(e.entry)e!==this[Sp]||e.piped||this[Np](e);else{if(!e.stat){const t=this.statCache.get(e.absolute);t?this[Dp](e,t):this[xp](e)}if(e.stat&&!e.ignore){if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){const t=this.readdirCache.get(e.absolute);if(t?this[Lp](e,t):this[Tp](e),!e.readdir)return}e.entry=this[qp](e),e.entry?e!==this[Sp]||e.piped||this[Np](e):e.ignore=!0}}}[Mp](e){return{onwarn:(e,t,n)=>this.warn(e,t,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[qp](e){this[Up]+=1;try{return new this[Gp](e.path,this[Mp](e)).on("end",()=>this[Pp](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[$p](){this[Sp]&&this[Sp].entry&&this[Sp].entry.resume()}[Np](e){e.piped=!0,e.readdir&&e.readdir.forEach(t=>{const n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Op](r+t)});const t=e.entry,n=this.zip;if(!t)throw new Error("cannot pipe without source");n?t.on("data",e=>{n.write(e)||t.pause()}):t.on("data",e=>{super.write(e)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(e,t,n={}){ah(this,e,t,n)}}class Jp extends Wp{sync=!0;constructor(e){super(e),this[Gp]=yp}pause(){}resume(){}[xp](e){const t=this.follow?"statSync":"lstatSync";this[Dp](e,b[t](e.absolute))}[Tp](e){this[Lp](e,b.readdirSync(e.absolute))}[Np](e){const t=e.entry,n=this.zip;if(e.readdir&&e.readdir.forEach(t=>{const n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Op](r+t)}),!t)throw new Error("Cannot pipe without source");n?t.on("data",e=>{n.write(e)}):t.on("data",e=>{super[zp](e)})}}const Vp=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?$h({file:k.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Hp=async(e,t)=>{for(let n=0;n<t.length;n++){const r=String(t[n]);"@"===r.charAt(0)?await $h({file:k.resolve(String(e.cwd),r.slice(1)),noResume:!0,onReadEntry:t=>{e.add(t)}}):e.add(r)}e.end()},Zp=Fd((e,t)=>{const n=new Jp(e),r=new yd(e.file,{mode:e.mode||438});n.pipe(r),Vp(n,t)},(e,t)=>{const n=new Wp(e),r=new bd(e.file,{mode:e.mode||438});n.pipe(r);const o=new Promise((e,t)=>{r.on("error",t),r.on("close",e),n.on("error",t)});return Hp(n,t),o},(e,t)=>{const n=new Jp(e);return Vp(n,t),n},(e,t)=>{const n=new Wp(e);return Hp(n,t),n},(e,t)=>{if(!t?.length)throw new TypeError("no paths specified to add to archive")}),Yp="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:Kp,O_TRUNC:Xp,O_WRONLY:Qp}=b.constants,ef=Number(process.env.__FAKE_FS_O_FILENAME__)||b.constants.UV_FS_O_FILEMAP||0,tf=ef|Xp|Kp|Qp,nf=Yp&&!!ef?e=>e<524288?tf:"w":()=>"w",rf=(e,t,n)=>{try{return q.lchownSync(e,t,n)}catch(e){if("ENOENT"!==e?.code)throw e}},of=(e,t,n,r)=>{q.lchown(e,t,n,e=>{r(e&&"ENOENT"!==e?.code?e:null)})},uf=(e,t,n,r,o)=>{if(t.isDirectory())sf(k.resolve(e,t.name),n,r,u=>{if(u)return o(u);const i=k.resolve(e,t.name);of(i,n,r,o)});else{const u=k.resolve(e,t.name);of(u,n,r,o)}},sf=(e,t,n,r)=>{q.readdir(e,{withFileTypes:!0},(o,u)=>{if(o){if("ENOENT"===o.code)return r();if("ENOTDIR"!==o.code&&"ENOTSUP"!==o.code)return r(o)}if(o||!u.length)return of(e,t,n,r);let i=u.length,s=null;const a=o=>{if(!s)return o?r(s=o):0===--i?of(e,t,n,r):void 0};for(const r of u)uf(e,r,t,n,a)})},af=(e,t,n,r)=>{t.isDirectory()&&cf(k.resolve(e,t.name),n,r),rf(k.resolve(e,t.name),n,r)},cf=(e,t,n)=>{let r;try{r=q.readdirSync(e,{withFileTypes:!0})}catch(r){const o=r;if("ENOENT"===o?.code)return;if("ENOTDIR"===o?.code||"ENOTSUP"===o?.code)return rf(e,t,n);throw o}for(const o of r)af(e,o,t,n);return rf(e,t,n)},df=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||y,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise((r,o)=>t.mkdir(e,n,(e,t)=>e?o(e):r(t))),e.stat=e.stat||n.stat||g,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((n,r)=>t.stat(e,(e,t)=>e?r(e):n(t))),e.statSync=e.statSync||n.statSync||C,e.mkdirSync=e.mkdirSync||n.mkdirSync||w,t},lf=(e,t,n)=>{const r=B(e),o={...df(t),recursive:!1};if(r===e)try{return o.mkdirSync(e,o)}catch(e){if(e&&"EISDIR"!==e.code)throw e;return}try{return o.mkdirSync(e,o),n||e}catch(t){const u=t;if(u&&"ENOENT"===u.code)return lf(e,o,lf(r,o,n));if(u&&"EEXIST"!==u.code&&u&&"EROFS"!==u.code)throw t;try{if(!o.statSync(e).isDirectory())throw t}catch(e){throw t}}},hf=Object.assign(async(e,t,n)=>{const r=df(t);r.recursive=!1;const o=B(e);return o===e?r.mkdirAsync(e,r).catch(e=>{if(e&&"EISDIR"!==e.code)throw e}):r.mkdirAsync(e,r).then(()=>n||e,async t=>{const u=t;if(u&&"ENOENT"===u.code)return hf(o,r).then(t=>hf(e,r,t));if(u&&"EEXIST"!==u.code&&"EROFS"!==u.code)throw t;return r.statAsync(e).then(e=>{if(e.isDirectory())return n;throw t},()=>{throw t})})},{sync:lf}),pf=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then(e=>e.isDirectory()?n:void 0,n=>n&&"ENOENT"===n.code?pf(e,B(t),t):void 0)},ff=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(n){return n&&"ENOENT"===n.code?ff(e,B(t),t):void 0}},mf=(e,t)=>{const n=df(t);n.recursive=!0;if(B(e)===e)return n.mkdirSync(e,n);const r=ff(n,e);try{return n.mkdirSync(e,n),r}catch(t){if(t&&"ENOENT"===t.code)return lf(e,n);throw t}},vf=Object.assign(async(e,t)=>{const n={...df(t),recursive:!0};return B(e)===e?await n.mkdirAsync(e,n):pf(n,e).then(t=>n.mkdirAsync(e,n).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return hf(e,n);throw t}))},{sync:mf}),Ef=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,Af=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=I(e),"win32"===Ef){const t=/[*|"<>?:]/,{root:n}=D(e);if(t.test(e.substring(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},bf=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),yf=+bf[0]>10||10===+bf[0]&&+bf[1]>=12,gf=yf?e=>df(e).mkdirSync===w:()=>!1,Cf=Object.assign(yf?e=>df(e).mkdir===y:()=>!1,{sync:gf}),wf=(e,t)=>{e=Af(e);const n=df(t);return gf(n)?mf(e,n):lf(e,n)},Ff=Object.assign(async(e,t)=>{e=Af(e);const n=df(t);return Cf(n)?vf(e,n):hf(e,n)},{mkdirpSync:wf,mkdirpNative:vf,mkdirpNativeSync:mf,mkdirpManual:hf,mkdirpManualSync:lf,sync:wf,native:vf,nativeSync:mf,manual:hf,manualSync:lf,useNative:Cf,useNativeSync:gf});class Df extends Error{path;code;syscall="chdir";constructor(e,t){super(`${t}: Cannot cd into '${e}'`),this.path=e,this.code=t}get name(){return"CwdError"}}class Bf extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(e,t){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=e,this.path=t}get name(){return"SymlinkError"}}const If=(e,t)=>e.get(ih(t)),Sf=(e,t,n)=>e.set(ih(t),n),Rf=(e,t,n)=>{e=ih(e);const r=t.umask??18,o=448|t.mode,u=0!==(o&r),i=t.uid,s=t.gid,a="number"==typeof i&&"number"==typeof s&&(i!==t.processUid||s!==t.processGid),c=t.preserve,d=t.unlink,l=t.cache,h=ih(t.cwd),p=(t,r)=>{t?n(t):(Sf(l,e,!0),r&&a?sf(r,i,s,e=>p(e)):u?b.chmod(e,o,n):n())};if(l&&!0===If(l,e))return p();if(e===h)return((e,t)=>{b.stat(e,(n,r)=>{!n&&r.isDirectory()||(n=new Df(e,n?.code||"ENOTDIR")),t(n)})})(e,p);if(c)return Ff(e,{mode:o}).then(e=>p(null,e??void 0),p);const f=ih(k.relative(h,e)).split("/");jf(h,f,o,l,d,h,void 0,p)},jf=(e,t,n,r,o,u,i,s)=>{if(!t.length)return s(null,i);const a=t.shift(),c=ih(k.resolve(e+"/"+a));if(If(r,c))return jf(c,t,n,r,o,u,i,s);b.mkdir(c,n,_f(c,t,n,r,o,u,i,s))},_f=(e,t,n,r,o,u,i,s)=>a=>{a?b.lstat(e,(c,d)=>{if(c)c.path=c.path&&ih(c.path),s(c);else if(d.isDirectory())jf(e,t,n,r,o,u,i,s);else if(o)b.unlink(e,a=>{if(a)return s(a);b.mkdir(e,n,_f(e,t,n,r,o,u,i,s))});else{if(d.isSymbolicLink())return s(new Bf(e,e+"/"+t.join("/")));s(a)}}):jf(e,t,n,r,o,u,i=i||e,s)},Uf=(e,t)=>{e=ih(e);const n=t.umask??18,r=448|t.mode,o=0!==(r&n),u=t.uid,i=t.gid,s="number"==typeof u&&"number"==typeof i&&(u!==t.processUid||i!==t.processGid),a=t.preserve,c=t.unlink,d=t.cache,l=ih(t.cwd),h=t=>{Sf(d,e,!0),t&&s&&cf(t,u,i),o&&b.chmodSync(e,r)};if(d&&!0===If(d,e))return h();if(e===l)return(e=>{let t,n=!1;try{n=b.statSync(e).isDirectory()}catch(e){t=e?.code}finally{if(!n)throw new Df(e,t??"ENOTDIR")}})(l),h();if(a)return h(wf(e,r)??void 0);const p=ih(k.relative(l,e)).split("/");let f;for(let e=p.shift(),t=l;e&&(t+="/"+e);e=p.shift())if(t=ih(k.resolve(t)),!If(d,t))try{b.mkdirSync(t,r),f=f||t,Sf(d,t,!0)}catch(e){const n=b.lstatSync(t);if(n.isDirectory()){Sf(d,t,!0);continue}if(c){b.unlinkSync(t),b.mkdirSync(t,r),f=f||t,Sf(d,t,!0);continue}if(n.isSymbolicLink())return new Bf(t,t+"/"+p.join("/"))}return h(f)},Pf=Object.create(null),{hasOwnProperty:Of}=Object.prototype,kf=e=>(Of.call(Pf,e)||(Pf[e]=e.normalize("NFD")),Pf[e]),xf="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform);class Tf{#p=new Map;#f=new Map;#m=new Set;reserve(e,t){e=xf?["win32 parallelization disabled"]:e.map(e=>Gh(N(kf(e))).toLowerCase());const n=new Set(e.map(e=>(e=>{const t=e.split("/").slice(0,-1).reduce((e,t)=>{const n=e[e.length-1];return void 0!==n&&(t=N(n,t)),e.push(t||"/"),e},[]);return t})(e)).reduce((e,t)=>e.concat(t)));this.#f.set(t,{dirs:n,paths:e});for(const n of e){const e=this.#p.get(n);e?e.push(t):this.#p.set(n,[t])}for(const e of n){const n=this.#p.get(e);if(n){const e=n[n.length-1];e instanceof Set?e.add(t):n.push(new Set([t]))}else this.#p.set(e,[new Set([t])])}return this.#v(t)}#E(e){const t=this.#f.get(e);if(!t)throw new Error("function does not have any path reservations");return{paths:t.paths.map(e=>this.#p.get(e)),dirs:[...t.dirs].map(e=>this.#p.get(e))}}check(e){const{paths:t,dirs:n}=this.#E(e);return t.every(t=>t&&t[0]===e)&&n.every(t=>t&&t[0]instanceof Set&&t[0].has(e))}#v(e){return!(this.#m.has(e)||!this.check(e))&&(this.#m.add(e),e(()=>this.#A(e)),!0)}#A(e){if(!this.#m.has(e))return!1;const t=this.#f.get(e);if(!t)throw new Error("invalid reservation");const{paths:n,dirs:r}=t,o=new Set;for(const t of n){const n=this.#p.get(t);if(!n||n?.[0]!==e)continue;const r=n[1];if(r)if(n.shift(),"function"==typeof r)o.add(r);else for(const e of r)o.add(e);else this.#p.delete(t)}for(const t of r){const n=this.#p.get(t),r=n?.[0];if(n&&r instanceof Set)if(1!==r.size||1!==n.length)if(1===r.size){n.shift();const e=n[0];"function"==typeof e&&o.add(e)}else r.delete(e);else this.#p.delete(t)}return this.#m.delete(e),o.forEach(e=>this.#v(e)),!0}}const Lf=Symbol("onEntry"),Nf=Symbol("checkFs"),qf=Symbol("checkFs2"),Mf=Symbol("pruneCache"),Gf=Symbol("isReusable"),zf=Symbol("makeFs"),$f=Symbol("file"),Wf=Symbol("directory"),Jf=Symbol("link"),Vf=Symbol("symlink"),Hf=Symbol("hardlink"),Zf=Symbol("unsupported"),Yf=Symbol("checkPath"),Kf=Symbol("mkdir"),Xf=Symbol("onError"),Qf=Symbol("pending"),em=Symbol("pend"),tm=Symbol("unpend"),nm=Symbol("ended"),rm=Symbol("maybeClose"),om=Symbol("skip"),um=Symbol("doChown"),im=Symbol("uid"),sm=Symbol("gid"),am=Symbol("checkedCwd"),cm="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),dm=(e,t,n)=>void 0!==e&&e===e>>>0?e:void 0!==t&&t===t>>>0?t:n,lm=e=>Gh(ih(kf(e))).toLowerCase();class hm extends Mh{[nm]=!1;[am]=!1;[Qf]=0;reservations=new Tf;transform;writable=!0;readable=!1;dirCache;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(e={}){if(e.ondone=()=>{this[nm]=!0,this[rm]()},super(e),this.transform=e.transform,this.dirCache=e.dirCache||new Map,this.chmod=!!e.chmod,"number"==typeof e.uid||"number"==typeof e.gid){if("number"!=typeof e.uid||"number"!=typeof e.gid)throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;void 0===e.preserveOwner&&"number"!=typeof e.uid?this.preserveOwner=!(!process.getuid||0!==process.getuid()):this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1024,this.forceChown=!0===e.forceChown,this.win32=!!e.win32||cm,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=ih(k.resolve(e.cwd||process.cwd())),this.strip=Number(e.strip)||0,this.processUmask=this.chmod?"number"==typeof e.processUmask?e.processUmask:process.umask():0,this.umask="number"==typeof e.umask?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",e=>this[Lf](e))}warn(e,t,n={}){return"TAR_BAD_ARCHIVE"!==e&&"TAR_ABORT"!==e||(n.recoverable=!1),super.warn(e,t,n)}[rm](){this[nm]&&0===this[Qf]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Yf](e){const t=ih(e.path),n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===e.type){const t=ih(String(e.linkpath)).split("/");if(!(t.length>=this.strip))return!1;e.linkpath=t.slice(this.strip).join("/")}n.splice(0,this.strip),e.path=n.join("/")}if(isFinite(this.maxDepth)&&n.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:n.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(n.includes("..")||cm&&/^[a-z]:\.\.$/i.test(n[0]??""))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;const[r,o]=Hh(t);r&&(e.path=String(o),this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:e,path:t}))}if(k.isAbsolute(e.path)?e.absolute=ih(k.resolve(e.path)):e.absolute=ih(k.resolve(this.cwd,e.path)),!this.preservePaths&&"string"==typeof e.absolute&&0!==e.absolute.indexOf(this.cwd+"/")&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:ih(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&"Directory"!==e.type&&"GNUDumpDir"!==e.type)return!1;if(this.win32){const{root:t}=k.win32.parse(String(e.absolute));e.absolute=t+Qh(String(e.absolute).slice(t.length));const{root:n}=k.win32.parse(e.path);e.path=n+Qh(e.path.slice(n.length))}return!0}[Lf](e){if(!this[Yf](e))return e.resume();switch(G.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=448|e.mode);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Nf](e);default:return this[Zf](e)}}[Xf](e,t){"CwdError"===e.name?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[tm](),t.resume())}[Kf](e,t,n){Rf(ih(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},n)}[um](e){return this.forceChown||this.preserveOwner&&("number"==typeof e.uid&&e.uid!==this.processUid||"number"==typeof e.gid&&e.gid!==this.processGid)||"number"==typeof this.uid&&this.uid!==this.processUid||"number"==typeof this.gid&&this.gid!==this.processGid}[im](e){return dm(this.uid,e.uid,this.processUid)}[sm](e){return dm(this.gid,e.gid,this.processGid)}[$f](e,t){const n="number"==typeof e.mode?4095&e.mode:this.fmode,r=new bd(String(e.absolute),{flags:nf(e.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&q.close(r.fd,()=>{}),r.write=()=>!0,this[Xf](n,e),t()});let o=1;const u=n=>{if(n)return r.fd&&q.close(r.fd,()=>{}),this[Xf](n,e),void t();0===--o&&void 0!==r.fd&&q.close(r.fd,n=>{n?this[Xf](n,e):this[tm](),t()})};r.on("finish",()=>{const t=String(e.absolute),n=r.fd;if("number"==typeof n&&e.mtime&&!this.noMtime){o++;const r=e.atime||new Date,i=e.mtime;q.futimes(n,r,i,e=>e?q.utimes(t,r,i,t=>u(t&&e)):u())}if("number"==typeof n&&this[um](e)){o++;const r=this[im](e),i=this[sm](e);"number"==typeof r&&"number"==typeof i&&q.fchown(n,r,i,e=>e?q.chown(t,r,i,t=>u(t&&e)):u())}u()});const i=this.transform&&this.transform(e)||e;i!==e&&(i.on("error",n=>{this[Xf](n,e),t()}),e.pipe(i)),i.pipe(r)}[Wf](e,t){const n="number"==typeof e.mode?4095&e.mode:this.dmode;this[Kf](String(e.absolute),n,n=>{if(n)return this[Xf](n,e),void t();let r=1;const o=()=>{0===--r&&(t(),this[tm](),e.resume())};e.mtime&&!this.noMtime&&(r++,q.utimes(String(e.absolute),e.atime||new Date,e.mtime,o)),this[um](e)&&(r++,q.chown(String(e.absolute),Number(this[im](e)),Number(this[sm](e)),o)),o()})}[Zf](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Vf](e,t){this[Jf](e,String(e.linkpath),"symlink",t)}[Hf](e,t){const n=ih(k.resolve(this.cwd,String(e.linkpath)));this[Jf](e,n,"link",t)}[em](){this[Qf]++}[tm](){this[Qf]--,this[rm]()}[om](e){this[tm](),e.resume()}[Gf](e,t){return"File"===e.type&&!this.unlink&&t.isFile()&&t.nlink<=1&&!cm}[Nf](e){this[em]();const t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,t=>this[qf](e,t))}[Mf](e){"SymbolicLink"===e.type?(e=>{for(const t of e.keys())e.delete(t)})(this.dirCache):"Directory"!==e.type&&((e,t)=>{t=lm(t);for(const n of e.keys()){const r=lm(n);r!==t&&0!==r.indexOf(t+"/")||e.delete(n)}})(this.dirCache,String(e.absolute))}[qf](e,t){this[Mf](e);const n=n=>{this[Mf](e),t(n)},r=()=>{this[Kf](this.cwd,this.dmode,t=>{if(t)return this[Xf](t,e),void n();this[am]=!0,o()})},o=()=>{if(e.absolute!==this.cwd){const t=ih(k.dirname(String(e.absolute)));if(t!==this.cwd)return this[Kf](t,this.dmode,t=>{if(t)return this[Xf](t,e),void n();u()})}u()},u=()=>{q.lstat(String(e.absolute),(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(e.mtime??r.mtime)))return this[om](e),void n();if(t||this[Gf](e,r))return this[zf](null,e,n);if(r.isDirectory()){if("Directory"===e.type){const t=t=>this[zf](t??null,e,n);return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?q.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return q.rmdir(String(e.absolute),t=>this[zf](t??null,e,n))}if(e.absolute===this.cwd)return this[zf](null,e,n);((e,t)=>{if(!cm)return q.unlink(e,t);const n=e+".DELETE."+z(16).toString("hex");q.rename(e,n,e=>{if(e)return t(e);q.unlink(n,t)})})(String(e.absolute),t=>this[zf](t??null,e,n))})};this[am]?o():r()}[zf](e,t,n){if(e)return this[Xf](e,t),void n();switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[$f](t,n);case"Link":return this[Hf](t,n);case"SymbolicLink":return this[Vf](t,n);case"Directory":case"GNUDumpDir":return this[Wf](t,n)}}[Jf](e,t,n,r){q[n](t,String(e.absolute),t=>{t?this[Xf](t,e):(this[tm](),e.resume()),r()})}}const pm=e=>{try{return[null,e()]}catch(e){return[e,null]}};class fm extends hm{sync=!0;[zf](e,t){return super[zf](e,t,()=>{})}[Nf](e){if(this[Mf](e),!this[am]){const t=this[Kf](this.cwd,this.dmode);if(t)return this[Xf](t,e);this[am]=!0}if(e.absolute!==this.cwd){const t=ih(k.dirname(String(e.absolute)));if(t!==this.cwd){const n=this[Kf](t,this.dmode);if(n)return this[Xf](n,e)}}const[t,n]=pm(()=>q.lstatSync(String(e.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(e.mtime??n.mtime)))return this[om](e);if(t||this[Gf](e,n))return this[zf](null,e);if(n.isDirectory()){if("Directory"===e.type){const t=this.chmod&&e.mode&&(4095&n.mode)!==e.mode,[r]=t?pm(()=>{q.chmodSync(String(e.absolute),Number(e.mode))}):[];return this[zf](r,e)}const[t]=pm(()=>q.rmdirSync(String(e.absolute)));this[zf](t,e)}const[r]=e.absolute===this.cwd?[]:pm(()=>(e=>{if(!cm)return q.unlinkSync(e);const t=e+".DELETE."+z(16).toString("hex");q.renameSync(e,t),q.unlinkSync(t)})(String(e.absolute)));this[zf](r,e)}[$f](e,t){const n="number"==typeof e.mode?4095&e.mode:this.fmode,r=n=>{let r;try{q.closeSync(o)}catch(e){r=e}(n||r)&&this[Xf](n||r,e),t()};let o;try{o=q.openSync(String(e.absolute),nf(e.size),n)}catch(e){return r(e)}const u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",t=>this[Xf](t,e)),e.pipe(u)),u.on("data",e=>{try{q.writeSync(o,e,0,e.length)}catch(e){r(e)}}),u.on("end",()=>{let t=null;if(e.mtime&&!this.noMtime){const n=e.atime||new Date,r=e.mtime;try{q.futimesSync(o,n,r)}catch(o){try{q.utimesSync(String(e.absolute),n,r)}catch(e){t=o}}}if(this[um](e)){const n=this[im](e),r=this[sm](e);try{q.fchownSync(o,Number(n),Number(r))}catch(o){try{q.chownSync(String(e.absolute),Number(n),Number(r))}catch(e){t=t||o}}}r(t)})}[Wf](e,t){const n="number"==typeof e.mode?4095&e.mode:this.dmode,r=this[Kf](String(e.absolute),n);if(r)return this[Xf](r,e),void t();if(e.mtime&&!this.noMtime)try{q.utimesSync(String(e.absolute),e.atime||new Date,e.mtime)}catch(r){}if(this[um](e))try{q.chownSync(String(e.absolute),Number(this[im](e)),Number(this[sm](e)))}catch(r){}t(),e.resume()}[Kf](e,t){try{return Uf(ih(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[Jf](e,t,n,r){const o=`${n}Sync`;try{q[o](t,String(e.absolute)),r(),e.resume()}catch(t){return this[Xf](t,e)}}}const mm=Fd(e=>{const t=new fm(e),n=e.file,r=q.statSync(n),o=e.maxReadSize||16777216;new Ad(n,{readSize:o,size:r.size}).pipe(t)},(e,t)=>{const n=new hm(e),r=e.maxReadSize||16777216,o=e.file,u=new Promise((e,t)=>{n.on("error",t),n.on("close",e),q.stat(o,(e,u)=>{if(e)t(e);else{const e=new Ed(o,{readSize:r,size:u.size});e.on("error",t),e.pipe(n)}})});return u},e=>new fm(e),e=>new hm(e),(e,t)=>{t?.length&&zh(e,t)}),vm=(e,t,n,r,o)=>{const u=new yd(e.file,{fd:r,start:n});t.pipe(u),Em(t,o)},Em=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?$h({file:k.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Am=async(e,t)=>{for(let n=0;n<t.length;n++){const r=String(t[n]);"@"===r.charAt(0)?await $h({file:k.resolve(String(e.cwd),r.slice(1)),noResume:!0,onReadEntry:t=>e.add(t)}):e.add(r)}e.end()},bm=Fd((e,t)=>{const n=new Jp(e);let r,o,u=!0;try{try{r=q.openSync(e.file,"r+")}catch(t){if("ENOENT"!==t?.code)throw t;r=q.openSync(e.file,"w+")}const i=q.fstatSync(r),s=Buffer.alloc(512);e:for(o=0;o<i.size;o+=512){for(let e=0,t=0;e<512;e+=t){if(t=q.readSync(r,s,e,s.length-e,o+e),0===o&&31===s[0]&&139===s[1])throw new Error("cannot append to compressed archives");if(!t)break e}const t=new Ml(s);if(!t.cksumValid)break;const n=512*Math.ceil((t.size||0)/512);if(o+n+512>i.size)break;o+=n,e.mtimeCache&&t.mtime&&e.mtimeCache.set(String(t.path),t.mtime)}u=!1,vm(e,n,o,r,t)}finally{if(u)try{q.closeSync(r)}catch(e){}}},(e,t)=>{t=Array.from(t);const n=new Wp(e),r=new Promise((r,o)=>{n.on("error",o);let u="r+";const i=(s,a)=>s&&"ENOENT"===s.code&&"r+"===u?(u="w+",q.open(e.file,u,i)):s||!a?o(s):void q.fstat(a,(u,i)=>{if(u)return q.close(a,()=>o(u));((t,n,r)=>{const o=(e,n)=>{e?q.close(t,t=>r(e)):r(null,n)};let u=0;if(0===n)return o(null,0);let i=0;const s=Buffer.alloc(512),a=(r,c)=>{if(r||void 0===c)return o(r);if(i+=c,i<512&&c)return q.read(t,s,i,s.length-i,u+i,a);if(0===u&&31===s[0]&&139===s[1])return o(new Error("cannot append to compressed archives"));if(i<512)return o(null,u);const d=new Ml(s);if(!d.cksumValid)return o(null,u);const l=512*Math.ceil((d.size??0)/512);return u+l+512>n?o(null,u):(u+=l+512,u>=n?o(null,u):(e.mtimeCache&&d.mtime&&e.mtimeCache.set(String(d.path),d.mtime),i=0,void q.read(t,s,0,512,u,a)))};q.read(t,s,0,512,u,a)})(a,i.size,(u,i)=>{if(u)return o(u);const s=new bd(e.file,{fd:a,start:i});n.pipe(s),s.on("error",o),s.on("close",r),Am(n,t)})});q.open(e.file,u,i)});return r},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(e,t)=>{if(!e.file)throw new TypeError("file is required");if(e.gzip||e.brotli||e.file.endsWith(".br")||e.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t?.length)throw new TypeError("no paths specified to add/replace")});Fd(bm.syncFile,bm.asyncFile,bm.syncNoFile,bm.asyncNoFile,(e,t=[])=>{bm.validate?.(e,t),ym(e)});const ym=e=>{const t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(n,r)=>t(n,r)&&!((e.mtimeCache?.get(n)??r.mtime??0)>(r.mtime??0)):(t,n)=>!((e.mtimeCache?.get(t)??n.mtime??0)>(n.mtime??0))};function gm(e){return Array.isArray(e)?e:[e]}const Cm=/^\s+$/,wm=/(?:[^\\]|^)\\$/,Fm=/^\\!/,Dm=/^\\#/,Bm=/\r?\n/g,Im=/^\.*\/|^\.+$/;let Sm="node-ignore";"undefined"!=typeof Symbol&&(Sm=Symbol.for("node-ignore"));const Rm=Sm,jm=/([0-z])-([0-z])/g,_m=()=>!1,Um=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,o)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(r)}${o}`:"]"===o&&r.length%2==0?`[${(e=>e.replace(jm,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:""))(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Pm=Object.create(null),Om=e=>"string"==typeof e;class km{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}const xm=(e,t)=>{const n=e;let r=!1;0===e.indexOf("!")&&(r=!0,e=e.substr(1));const o=((e,t)=>{let n=Pm[e];return n||(n=Um.reduce((t,[n,r])=>t.replace(n,r.bind(e)),e),Pm[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(Fm,"!").replace(Dm,"#"),t);return new km(n,e,r,o)},Tm=(e,t)=>{throw new t(e)},Lm=(e,t,n)=>{if(!Om(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(Lm.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},Nm=e=>Im.test(e);Lm.isNotRelative=Nm,Lm.convert=e=>e;class qm{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var r,o,u;r=this,o=Rm,u=!0,Object.defineProperty(r,o,{value:u}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[Rm])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&Om(e)&&!Cm.test(e)&&!wm.test(e)&&0!==e.indexOf("#"))(e)){const t=xm(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,gm(Om(e)?(e=>e.split(Bm))(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(o=>{const{negative:u}=o;if(r===u&&n!==r||u&&!n&&!r&&!t)return;o.regex.test(e)&&(n=!u,r=u)}),{ignored:n,unignored:r}}_test(e,t,n,r){const o=e&&Lm.convert(e);return Lm(o,e,this._allowRelativePaths?_m:Tm),this._t(o,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const o=this._t(r.join("/")+"/",t,n,r);return t[e]=o.ignored?o:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return gm(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const Mm=e=>new qm(e);Mm.isPathValid=e=>Lm(e&&Lm.convert(e),e,_m),Mm.default=Mm;var Gm,zm=Mm;if("undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");Lm.convert=e;const t=/^[a-z]:\//i;Lm.isNotRelative=e=>t.test(e)||Nm(e)}!function(e){e.DIRECTORY_UPLOAD="directory-upload",e.FILE_UPLOAD="file-upload",e.DIRECTORY_DOWNLOAD="directory-download",e.FILE_DOWNLOAD="file-download"}(Gm||(Gm={}));var $m,Wm=function(){function e(e,t){var n=this;if(this.exec=e,this.parameters=t,this.defaultEncoding="base64",this.getFileIgnoreFilter=function(e){if(void 0!==e){var t=zm({allowRelativePaths:!0}).add(e);return function(e){return!t.ignores(e)}}},this.getTarTransformFn=function(e,t){return function(n){n.path=n.path.replace(e,t)}},this.ensureDirRemote=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){switch(o.label){case 0:return t=["mkdir","-p",e],[4,this.runCommand(t)];case 1:if(n=o.sent(),"Success"!==(null===(r=null==n?void 0:n.commandResult)||void 0===r?void 0:r.status))throw new Error("Failed creating remote directory.");return[2]}})})},this.ensureTarCmd=function(){return V(n,void 0,void 0,function(){var e,t,n;return H(this,function(r){switch(r.label){case 0:return e=["tar","--version"],[4,this.runCommand(e)];case 1:if(t=r.sent(),"Success"!==(null===(n=null==t?void 0:t.commandResult)||void 0===n?void 0:n.status))throw new Error("Tar command not found on remote container. Required for file copy.");return[2]}})})},this.pathExistsRemote=function(e){return V(n,void 0,void 0,function(){var t;return H(this,function(n){switch(n.label){case 0:return t=["test","-e",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.checkIsDirRemote=function(e){return V(n,void 0,void 0,function(){var t;return H(this,function(n){switch(n.label){case 0:return t=["test","-d",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.checkIsFileRemote=function(e){return V(n,void 0,void 0,function(){var t;return H(this,function(n){switch(n.label){case 0:return t=["test","-e",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.runCommand=function(e,t){return void 0===t&&(t="none"),V(n,void 0,void 0,function(){var n,r,o,u,i,s,a,c,d;return H(this,function(l){switch(l.label){case 0:return r=(n=this).exec,o=n.parameters,u=o.projectId,i=o.resourceId,s=o.resourceType,a=o.containerName,c={command:e,shell:t,containerName:a},"service"!==s?[3,2]:[4,r.execServiceCommand({projectId:u,serviceId:i},c)];case 1:return d=l.sent(),[3,4];case 2:return[4,r.execJobCommand({projectId:u,jobId:i},c)];case 3:d=l.sent(),l.label=4;case 4:return[2,d]}})})},this.runSession=function(e){return V(n,void 0,void 0,function(){var t,n,r,o,u,i,s,a,c;return H(this,function(d){switch(d.label){case 0:return n=(t=this).exec,r=t.parameters,o=r.projectId,u=r.resourceId,i=r.resourceType,s=r.containerName,a={command:e,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:s},"service"!==i?[3,2]:[4,n.execServiceSession({projectId:o,serviceId:u},a)];case 1:return c=d.sent(),[3,4];case 2:return[4,n.execJobSession({projectId:o,jobId:u},a)];case 3:c=d.sent(),d.label=4;case 4:return[2,c]}})})},!["service","job"].includes(t.resourceType))throw new Error("Invalid resource type: ".concat(t.resourceType,", only 'service' and 'job' supported"))}return e.prototype.uploadFiles=function(e,t,n){return V(this,void 0,void 0,function(){var r,o,u,i,s,a,c,d,l,h,p,f;return H(this,function(m){switch(m.label){case 0:if(void 0===e||!b.existsSync(e))throw new Error("Local path '".concat(e,"' does not exists but is required for uploads."));return r=b.lstatSync(e).isFile(),o=r?F.dirname(e):e,u=r?F.basename(e):".",i=r&&void 0!==t&&""!==F.extname(t),s=i?F.dirname(t):null!=t?t:o,a=void 0!==t?F.basename(t):u,c=Zp({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(u,a):void 0},Iu(u)),[4,this.ensureTarCmd()];case 1:return m.sent(),[4,this.ensureDirRemote(s)];case 2:return m.sent(),d=Z(Z(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",s],!1),[4,this.runSession(d)];case 3:return l=m.sent(),h=new Ru,p=new Ru,l.stdErr.pipe(h),l.stdOut.pipe(p),c.pipe(l.stdIn),[4,l.waitForCommandResult()];case 4:if("Success"!==(null==(f=m.sent())?void 0:f.status))throw new Error("Failed to upload file to container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString(),"; ").concat(p.getContentsAsString()));return r?[2,{type:Gm.FILE_UPLOAD,sourceDirectory:o,sourceFile:u,targetDirectory:s,targetFile:a}]:[2,{type:Gm.DIRECTORY_UPLOAD,sourceDirectory:o,targetDirectory:s}]}})})},e.prototype.uploadStream=function(e,t){return V(this,void 0,void 0,function(){var n,r,o,u,a,c,d;return H(this,function(l){switch(l.label){case 0:return n=function(e){var t=new i({transform:function(e,t,n){this.push(e.toString("base64")),n()}}),n="string"==typeof e,r=Buffer.isBuffer(e);return n||r?s.from(e).pipe(t):e.pipe(t)},r=F.dirname(t),[4,this.ensureTarCmd()];case 1:return l.sent(),[4,this.ensureDirRemote(r)];case 2:return l.sent(),o=["tee",t],[4,this.runSession(o)];case 3:return u=l.sent(),a=new Ru,c=new Ru,u.stdErr.pipe(a),u.stdOut.pipe(c),n(e).pipe(u.stdIn),[4,u.waitForCommandResult()];case 4:return d=l.sent(),[4,this.runCommand(["cat",t])];case 5:if(l.sent(),"Success"!==(null==d?void 0:d.status))throw new Error("Failed to upload file to container: ".concat(null==d?void 0:d.message,", error details: ").concat(a.getContentsAsString(),"; ").concat(c.getContentsAsString()));return[2]}})})},e.prototype.downloadFiles=function(e,t,n){return V(this,void 0,void 0,function(){var r,o,u,i,s,a,c,d,l,h,p,f,m,v;return H(this,function(E){switch(E.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!E.sent(),E.label=2;case 2:if(r)throw new Error("Remote path '".concat(e,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(e)];case 3:return o=E.sent(),u=o?e:F.dirname(e),i=o?".":F.basename(e),s=void 0!==t&&""!==F.extname(t),a=!o&&s?F.basename(t):i,(c=void 0!==t?s?F.dirname(t):t:".")&&b.mkdirSync(c,{recursive:!0}),d=Iu(null!=n?n:[]).map(function(e){return"--exclude=".concat(e)}),l=Z(Z(["tar","-zcf","-"],["--no-same-owner"],!0),d,!0),h=Z(Z([],l,!0),["-C",u,i],!1),[4,this.runSession(h)];case 4:return p=E.sent(),f=mm({cwd:c,gzip:{encoding:this.defaultEncoding},onReadEntry:a?this.getTarTransformFn(i,a):void 0}),m=new Ru,p.stdErr.pipe(m),p.stdOut.pipe(f),[4,p.waitForCommandResult()];case 5:if("Success"!==(null==(v=E.sent())?void 0:v.status))throw new Error("Failed to download file from container: ".concat(null==v?void 0:v.message,", error details: ").concat(m.getContentsAsString()));return o?[2,{type:Gm.DIRECTORY_DOWNLOAD,sourceDirectory:u,targetDirectory:c}]:[2,{type:Gm.FILE_DOWNLOAD,sourceDirectory:u,sourceFile:i,targetDirectory:c,targetFile:a}]}})})},e.prototype.downloadStream=function(e){return V(this,void 0,void 0,function(){var t,n,r,o;return H(this,function(u){switch(u.label){case 0:return[4,this.checkIsFileRemote(e)];case 1:if(!u.sent())throw new Error("Remote path '".concat(e,"' must be a file."));return t=F.dirname(e),[4,this.ensureTarCmd()];case 2:return u.sent(),[4,this.ensureDirRemote(t)];case 3:return u.sent(),n=["cat",e],[4,this.runSession(n)];case 4:return r=u.sent(),o=new Ru,r.stdErr.pipe(o),[2,{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(function(e){return 0===e.exitCode})}]}})})},e}(),Jm=function(){function e(e,t){this.exec=e,this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.serviceId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(o,t,"download")];case 1:return[2,u.sent()]}})})},e.prototype.downloadServiceFileStream=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.serviceId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"service"},[4,new Wm(this.exec,J(J({},o),{containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,u.sent()]}})})},e.prototype.uploadServiceFiles=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.serviceId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(o,t,"upload")];case 1:return[2,u.sent()]}})})},e.prototype.uploadServiceFileStream=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.serviceId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"service"},[4,new Wm(this.exec,J(J({},o),{containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,u.sent()]}})})},e.prototype.downloadJobFiles=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.jobId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(o,t,"download")];case 1:return[2,u.sent()]}})})},e.prototype.downloadJobFileStream=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.jobId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"job"},[4,new Wm(this.exec,J(J({},o),{containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,u.sent()]}})})},e.prototype.uploadJobFiles=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.jobId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(o,t,"upload")];case 1:return[2,u.sent()]}})})},e.prototype.uploadJobFileStream=function(e,t){return V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:return n=e.jobId,r=e.projectId,o={projectId:r,resourceId:n,resourceType:"job"},[4,new Wm(this.exec,J(J({},o),{containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,u.sent()]}})})},e.prototype.copy=function(e,t,n){var r;return V(this,void 0,void 0,function(){var o,u;return H(this,function(i){switch(i.label){case 0:switch(o=new Wm(this.exec,J(J({},e),{containerName:t.containerName})),u=Z(Z([],null!==(r=t.ignoreList)&&void 0!==r?r:[],!0),this.stdIgnoreList,!0),n){case"download":return[3,1];case"upload":return[3,3]}return[3,5];case 1:return[4,o.downloadFiles(t.remotePath,t.localPath,u)];case 2:case 4:return[2,i.sent()];case 3:return[4,o.uploadFiles(t.localPath,t.remotePath,u)];case 5:return[2]}})})},e}(),Vm=function(e){function t(t){var n=this.constructor,r=e.call(this,t.message)||this;r.name="NorthflankApiCallError",r.message=t.message,r.status=t.status,r.id=t.id,r.details=t.details;var o=n.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o,r}return W(t,e),t}(Error);!function(e){e.CDN="cdn",e.Mesh="mesh",e.Ingress="ingress",e.Runtime="runtime"}($m||($m={}));var Hm,Zm=function(e){return{containerId:e.containerId,log:e.log,ts:new Date(e.ts)}},Ym=function(e){function t(t,n,r,o){var u=e.call(this)||this;return u.baseUrl=t,u.logsConfig=n,u.token=r,u.agent=o,u.stop=function(){return V(u,void 0,void 0,function(){var e;return H(this,function(t){if(void 0===this.logSession)throw new Error("No command is running");return null===(e=this.remote)||void 0===e||e.close(),[2]})})},u}return W(t,e),t.getLogsEndpoint=function(e){var t=e.containerName,n=e.types,r=e.entityId,o=e.entityType,u=e.buildId,i=e.runId,s=e.backupId,a=e.restoreId,c=e.deploymentId,d=e.isBuild,l=e.lineLimit,h=e.projectId,p=e.queryType,f=e.startTime,m=e.endTime,v=e.duration,E=e.direction,A=e.textIncludes,b=e.textNotIncludes,y=e.regexIncludes,g=e.regexNotIncludes,C="/v1/projects/".concat(h,"/"),w=new URLSearchParams;return w.append("queryType",p),void 0!==f&&w.append("startTime",f.toISOString()),void 0!==m&&w.append("endTime",m.toISOString()),void 0!==l&&w.append("lineLimit",l.toString()),void 0!==t&&w.append("containerName",t),void 0!==c&&w.append("deploymentId",c),void 0!==i&&w.append("runId",i),void 0!==u&&w.append("buildId",u),void 0!==A&&w.append("textIncludes",A),void 0!==b&&w.append("textNotIncludes",b),void 0!==y&&w.append("regexIncludes",y),void 0!==g&&w.append("regexNotIncludes",g),void 0!==E&&w.append("direction",E),void 0!==v&&w.append("duration",v.toString()),void 0!==n&&n.forEach(function(e){return w.append("type",e)}),"".concat(C).concat(function(){var e=d?"/build-logs":"/logs";switch(o){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":return"addons/".concat(r).concat(e);case"addonBackup":return"addons/".concat(r,"/backups/").concat(s).concat(e);case"addonRestore":return"addons/".concat(r,"/backups/").concat(s,"/restores/").concat(a).concat(e);default:throw new Error("Unexpected Northflank entity type received in logs endpoint generation: ".concat(o))}}(),"?").concat(w.toString())},Object.defineProperty(t.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(t.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),t.prototype.start=function(){return V(this,void 0,void 0,function(){var e=this;return H(this,function(t){switch(t.label){case 0:if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise(function(t,n){var r,o,u,i;void 0!==e.remote&&n(Error("Command is already running"));var s=e.logsEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new Da(s,{agent:e.agent}),null===(r=e.remote)||void 0===r||r.on("message",function(t){var n,r,o=JSON.parse(t.toString());switch(null==o?void 0:o.type){case"init":var u=o.data;"successful"!==u.auth&&a("Log tail initialization failed: ".concat(null!==(n=null==u?void 0:u.message)&&void 0!==n?n:"Reason unknown"));break;case"log-lines":var i=o.data;e.emit("logs-received",i.map(Zm));break;case"error":a(null===(r=o.data)||void 0===r?void 0:r.message);break;default:var s="unable to parse message: ".concat(JSON.stringify(o));a(s)}}),null===(o=e.remote)||void 0===o||o.on("close",function(){e.emit("close"),e.reset(),t()}),null===(u=e.remote)||void 0===u||u.on("open",function(){e.emit("open")}),null===(i=e.remote)||void 0===i||i.on("error",function(n){e.emit("error",n),e.reset(),t()});var a=function(t){e.emit("error",{message:t}),e.reset(),n(new Error(t))}}),[4,new Promise(function(t){var n;e.remote.on("open",function(){return t()}),null===(n=e.remote)||void 0===n||n.on("error",function(){t()})})];case 1:return t.sent(),this.initialAuth(),[2,this.logSession]}})})},t.prototype.initialAuth=function(){var e,t={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};null===(e=this.remote)||void 0===e||e.send(JSON.stringify(t))},t.prototype.reset=function(){this.remote=void 0,this.logSession=void 0},t}(t),Km=function(){if(Fu)try{return JSON.parse(b.readFileSync(F.join(F.dirname(l(import.meta.url)),"../../package.json")).toString())}catch(e){return{}}return{}},Xm=function(){function e(e,t){var n=this;this.opts=t,this.call=function(e){return V(n,void 0,void 0,function(){return H(this,function(t){return[2,this.executeCall(e)]})})},this.contextProvider=e}return e.prototype.getDefaultHeaders=function(){var e,t,n=this.contextProvider.getCurrentToken(),r=(null===(e=this.opts)||void 0===e?void 0:e.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(t=Km())||void 0===t?void 0:t.version).concat(r)}},e.prototype.executeCall=function(e){var t;return V(this,void 0,void 0,function(){var n,r,o,u,i,s,a,c,d,l,h,p,f=this;return H(this,function(m){switch(m.label){case 0:if(n=this.method,r=this.opts.agent,o={method:n,headers:this.getDefaultHeaders(),agent:r},!(u=null===(t=this.contextProvider)||void 0===t?void 0:t.getCurrentBaseUrl()))throw new Error("Api client context not correctly initialized, please provide a url to the context.");return i="".concat(u).concat(this.endpointUrl(e)),s=this.body(e),a=J(J({url:i},o),{body:s}),[4,iv(i,J(J({},o),{body:s}))];case 1:return[4,(c=m.sent()).text()];case 2:return d=m.sent(),l=function(){if(200!==c.status){var e=null==h?void 0:h.error,t=(null==e?void 0:e.message)||"",n={status:c.status,message:t,id:null==e?void 0:e.id,details:null==e?void 0:e.details};if(f.opts.throwErrorOnHttpErrorCode)throw new Vm(n);return n}},h=function(){try{return JSON.parse(d)}catch(e){throw Error("Failed reading api request result: \n\tStatus: ".concat(c.statusText," (").concat(c.status,")\n\tMessage: ").concat(d))}}(),p=l(),[2,{data:null==h?void 0:h.data,rawResponse:c,request:a,error:p,pagination:null==h?void 0:h.pagination}]}})})},e}(),Qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="get",t.body=function(){},t}return W(t,e),t}(Xm),ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.all=function(e){return V(t,void 0,void 0,function(){return H(this,function(t){return[2,new uv(this,e).getAll()]})})},t.call=function(n){return V(t,void 0,void 0,function(){var t,r=this;return H(this,function(o){switch(o.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=o.sent(),[2,J(J({},t),{pagination:J(J({},t.pagination),{getNextPage:function(){return V(r,void 0,void 0,function(){var e,r,o,u,i,s,a,c=this;return H(this,function(d){return void 0===(null===(s=t.pagination)||void 0===s?void 0:s.cursor)?(e=Object.keys(t.data),r=1===e.length?((i={})[e[0]]=[],i):{},o=J(J({},t),{pagination:J(J({},t.pagination),{count:0}),data:r}),[2,(u=function(e){return J(J({},e),{pagination:J(J({},e.pagination),{getNextPage:function(){return V(c,void 0,void 0,function(){return H(this,function(t){return[2,u(e)]})})}})})})(o)]):[2,new uv(this,n,null===(a=t.pagination)||void 0===a?void 0:a.cursor).getNext()]})})}})})]}})})},t}return W(t,e),t}(Qm),tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="post",t}return W(t,e),t}(Xm),nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="delete",t.body=function(){},t}return W(t,e),t}(Xm),rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="put",t}return W(t,e),t}(Xm),ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="patch",t}return W(t,e),t}(Xm),uv=function(){function e(e,t,n){void 0===n&&(n=null);var r=this;this.endpoint=e,this.opts=t,this._currentOffset=0,this.hasNext=function(){return void 0!==r.cursor},this.cursor=n}return Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){var e,t,n;return V(this,void 0,void 0,function(){var r,o,u,i,s,a;return H(this,function(c){switch(c.label){case 0:return[4,this.endpoint.call(J(J({},this.opts),{options:J(J({},null===(e=this.opts)||void 0===e?void 0:e.options),{cursor:null!==(t=this.cursor)&&void 0!==t?t:void 0})}))];case 1:return r=c.sent(),o=r.data,u=r.request,i=r.error,s=r.pagination,a=r.rawResponse,this.cursor=null==s?void 0:s.cursor,this._currentOffset+=null!==(n=null==s?void 0:s.count)&&void 0!==n?n:0,[2,{data:o,request:u,error:i,pagination:s,rawResponse:a}]}})})},e.prototype.getAll=function(){var e,t;return V(this,void 0,void 0,function(){var n,r,o,u,i;return H(this,function(s){switch(s.label){case 0:n=[],s.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(r=s.sent()).error?[2,r]:(n.push(r),[3,1]);case 3:return u=n.flatMap(function(e){var t=Object.keys(e.data);return 1===t.length?(o=t[0],e.data[t[0]]):e.data}),[2,{data:void 0===o?u:(i={},i[o]=u,i),request:null===(e=n[0])||void 0===e?void 0:e.request,rawResponse:null===(t=n[0])||void 0===t?void 0:t.rawResponse}]}})})},e}(),iv=function(e,t,n,r){return void 0===t&&(t={}),void 0===n&&(n=3),void 0===r&&(r=500),new Promise(function(o,u){var i=function(n){return Du(e,t).then(function(e){o(e)}).catch(function(e){return V(void 0,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:return n>0?[4,(o=r,new Promise(function(e){setTimeout(function(){e()},o)}))]:[3,2];case 1:return t.sent(),[2,i(n-1)];case 2:return[2,u(e)]}var o})})})};return i(n)})},sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch log lines over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){return Ym.getLogsEndpoint(e)},t.body=function(){},t}return W(t,e),t}(Qm),av=function(e,t){void 0===t&&(t={});var n=this;this.contextProvider=e,this.clientOpts=t,this.getServiceLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,u={entityId:o,projectId:r},[2,this.logRange(u,J(J({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"job")]})})},this.getJobBuildLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,u={entityId:o,projectId:r},[2,this.logRange(u,J(J({},n),{isBuild:!0}),"job")]})})},this.getAddonLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"addon")]})})},this.getAddonBackupLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logRange(r,J(J({},n),{backupId:t.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r,o;return H(this,function(u){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},o={backupId:t.backupId,restoreId:t.restoreId},[2,this.logRange(r,J(J({},n),o),"addonRestore")]})})},this.logRange=function(e,t,r){return V(n,void 0,void 0,function(){var n,o,u,i,s;return H(this,function(a){switch(a.label){case 0:return n=e.entityId,o=e.projectId,u=J(J({projectId:o,entityId:n,entityType:r},t),{queryType:"range"}),[4,new sv(this.contextProvider,this.clientOpts).call(u)];case 1:return(i=a.sent()).error?[2,i]:[2,J(J({},i),{data:null===(s=null==i?void 0:i.data)||void 0===s?void 0:s.map(Zm)})]}})})},this.tailServiceLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.logTail(r,null!=n?n:{},"service")]})})},this.tailServiceBuildLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,u={entityId:r,projectId:o},[2,this.logTail(u,J(J({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.logTail(r,null!=n?n:{},"job")]})})},this.tailJobBuildLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,u={entityId:o,projectId:r},[2,this.logTail(u,J(J({},n),{isBuild:!0}),"job")]})})},this.tailAddonLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logTail(r,null!=n?n:{},"addon")]})})},this.tailAddonBackupLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logTail(r,J(J({},n),{backupId:t.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(e){return V(n,void 0,void 0,function(){var t,n,r,o;return H(this,function(u){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},o={backupId:t.backupId,restoreId:t.restoreId},[2,this.logTail(r,J(J({},n),o),"addonRestore")]})})},this.logTail=function(e,t,r){return V(n,void 0,void 0,function(){var n,o,u,i,s;return H(this,function(a){if(n=e.entityId,o=e.projectId,u=J({queryType:"tail",projectId:o,entityId:n,entityType:r},t),this.assertStartedWithNodejs(),i=this.contextProvider.getCurrentBaseUrl(!0),!(s=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new Ym(i,u,s,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!Fu)throw new Error("Command exec only possible when started with nodejs")}},cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch metrics entries over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){var t=e.projectId,n=e.entityId,r=e.entityType,o=e.deploymentId,u=e.runId,i=e.buildId,s=e.isBuild,a=e.queryType,c=e.metricTypes,d=e.startTime,l=e.endTime,h=e.duration,p=e.containerName,f=e.timestamp,m="/v1/projects/".concat(t,"/");var v=new URLSearchParams;return v.append("queryType",a),void 0!==d&&v.append("startTime",d.toISOString()),void 0!==l&&v.append("endTime",l.toISOString()),void 0!==p&&v.append("containerName",p),void 0!==o&&v.append("deploymentId",o),void 0!==u&&v.append("runId",u),void 0!==i&&v.append("buildId",i),void 0!==f&&v.append("timestamp",f.toISOString()),void 0!==h&&v.append("duration",h.toString()),void 0!==c&&c.forEach(function(e){return v.append("metricTypes",e)}),"".concat(m).concat(function(){var e=s?"/build-metrics":"/metrics";switch(r){case"service":return"services/".concat(n).concat(e);case"job":return"jobs/".concat(n).concat(e);case"addon":return"addons/".concat(n).concat(e);default:throw new Error("Unexpected Northflank entity type received in metrics endpoint generation: ".concat(r))}}(),"?").concat(v.toString())},t.body=function(){},t}return W(t,e),t}(Qm),dv=function(e){return{metadata:e.metadata,data:e.data.map(function(e){return{value:e.value,ts:new Date(e.ts)}})}};!function(e){e.Cpu="cpu",e.Memory="memory",e.NetworkIngress="networkIngress",e.NetworkEgress="networkEgress",e.TcpConnectionOpen="tcpConnectionsOpen",e.PvcUsage="diskUsage",e.Requests="requests",e.Http4xxResponses="http4xxResponses",e.Http5xxResponses="http5xxResponses",e.Bandwidth="bandwidth",e.BandwidthVolume="bandwidthVolume"}(Hm||(Hm={}));var lv=function(e){var t=this;this.contextProvider=e,this.getServiceMetrics=function(e){return V(t,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.metricsSingle(r,null!=n?n:{},"service")]})})},this.getServiceBuildMetrics=function(e){return V(t,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,u={entityId:r,projectId:o},[2,this.metricsSingle(u,J(J({},n),{isBuild:!0}),"service")]})})},this.getJobMetrics=function(e){return V(t,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.metricsSingle(r,null!=n?n:{},"job")]})})},this.getJobBuildMetrics=function(e){return V(t,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.jobId,o=t.projectId,u={entityId:r,projectId:o},[2,this.metricsSingle(u,J(J({},n),{isBuild:!0}),"job")]})})},this.getAddonMetrics=function(e){return V(t,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.metricsSingle(r,null!=n?n:{},"addon")]})})},this.metricsSingle=function(e,n,r){return V(t,void 0,void 0,function(){var t,o,u;return H(this,function(i){return t=e.entityId,o=e.projectId,u=J(J({projectId:o,entityId:t,entityType:r},n),{queryType:"single"}),[2,this.getMetrics(u)]})})},this.getServiceMetricsRange=function(e){return V(t,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.metricsRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildMetricsRange=function(e){return V(t,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,u={entityId:o,projectId:r},[2,this.metricsRange(u,J(J({},n),{isBuild:!0}),"service")]})})},this.getJobMetricsRange=function(e){return V(t,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.metricsRange(r,null!=n?n:{},"job")]})})},this.getJobBuildMetricsRange=function(e){return V(t,void 0,void 0,function(){var t,n,r,o,u;return H(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,u={entityId:o,projectId:r},[2,this.metricsRange(u,J(J({},n),{isBuild:!0}),"job")]})})},this.getAddonMetricsRange=function(e){return V(t,void 0,void 0,function(){var t,n,r;return H(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.metricsRange(r,null!=n?n:{},"addon")]})})},this.metricsRange=function(e,n,r){return V(t,void 0,void 0,function(){var t,o,u;return H(this,function(i){return t=e.entityId,o=e.projectId,u=J(J({projectId:o,entityId:t,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(u)]})})},this.getMetrics=function(e){return V(t,void 0,void 0,function(){var t;return H(this,function(n){switch(n.label){case 0:return[4,new cv(this.contextProvider,{}).call(e)];case 1:return(t=n.sent()).error?[2,t]:[2,J(J({},t),{data:Object.fromEntries(Object.entries(t.data).map(function(e){var t=e[0],n=e[1];return[t,J(J({},n),{values:n.values.map(dv)})]}))})]}})})}},hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the available addon types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/addon-types"},t.body=function(){},t}return W(t,e),t}(Qm),pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the backup destinations saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/backup-destinations".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new backup destination to this account.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Create",t.endpointUrl=function(e){return"/v1/backup-destinations"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a backup destination, including secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){return["backupDestinationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))},t.body=function(){},t}return W(t,e),t}(Qm),vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Update",t.endpointUrl=function(e){return["backupDestinationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),Ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Delete",t.endpointUrl=function(e){return["backupDestinationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))},t.body=function(){},t}return W(t,e),t}(nv),Av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the backups associated with a backup destinations.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t;["backupDestinationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of past invoices",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/billing/invoices".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/billing/invoices/details".concat(r)},t.body=function(){},t}return W(t,e),t}(Qm),gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud providers",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/cloud-providers"},t.body=function(){},t}return W(t,e),t}(Qm),Cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists clusters for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/clusters".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){return"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or update a cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){return"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),Dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given cluster",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){return["clusterId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))},t.body=function(){},t}return W(t,e),t}(Qm),Bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),Iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given cluster. Fails if the cluster has associated projects.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Delete",t.endpointUrl=function(e){return["clusterId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))},t.body=function(){},t}return W(t,e),t}(nv),Sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of nodes for the given cluster",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t;["clusterId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Cordon a node on the cluster to prevent new pods from scheduling on it.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId","nodeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/cordon")},t.body=function(){},t}return W(t,e),t}(tv),jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Drain a node by evicting all running pods.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId","nodeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/drain")},t.body=function(){},t}return W(t,e),t}(tv),_v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Uncordon a node on the cluster if it was previously cordoned.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId","nodeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/uncordon")},t.body=function(){},t}return W(t,e),t}(tv),Uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/integrations".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){return"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){return["integrationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given integration",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){return["integrationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))},t.body=function(){},t}return W(t,e),t}(Qm),xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Update",t.endpointUrl=function(e){return["integrationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),Tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given integration. Fails if the integration is associated with existing clusters.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Delete",t.endpointUrl=function(e){return["integrationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))},t.body=function(){},t}return W(t,e),t}(nv),Lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud provider node types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud provider regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/regions".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the partially random string used when generating host names for the authenticated account.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){return"/v1/dns-id"},t.body=function(){},t}return W(t,e),t}(Qm),Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available domains",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/domains".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Registers a new domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){return"/v1/domains"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){return["domain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain))},t.body=function(){},t}return W(t,e),t}(Qm),$v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a domain and each of its registered subdomains.",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Delete",t.endpointUrl=function(e){return["domain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain))},t.body=function(){},t}return W(t,e),t}(nv),Wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve certificate data for a domain to verify its contents.",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){return["domain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/certificate")},t.body=function(){},t}return W(t,e),t}(Qm),Jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Import a certificate for the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Update",t.endpointUrl=function(e){return["domain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new subdomain to the domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Read",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))},t.body=function(){},t}return W(t,e),t}(Qm),Zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from a domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))},t.body=function(){},t}return W(t,e),t}(nv),Yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assigns a service port to the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from its assigned service",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t;["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign").concat(r)},t.body=function(){},t}return W(t,e),t}(nv),Xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes the CDN integration from the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/disable")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Enables a CDN integration on the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/enable")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),eE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new path to the subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Create",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),tE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List paths for a given subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")},t.body=function(){},t}return W(t,e),t}(Qm),nE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get subdomain path details.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))},t.body=function(){},t}return W(t,e),t}(Qm),rE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a path.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))},t.body=function(){},t}return W(t,e),t}(nv),oE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a subdomain path.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),uE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assign a subdomain path to a port.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),iE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unassign a subdomain path to a port.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")},t.body=function(){},t}return W(t,e),t}(nv),sE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/verify")},t.body=function(){},t}return W(t,e),t}(tv),aE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attempts to verify the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){return["domain"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/verify")},t.body=function(){},t}return W(t,e),t}(tv),cE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of log sinks added to this account.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/integrations/log-sinks".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),dE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Create",t.endpointUrl=function(e){return"/v1/integrations/log-sinks"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),lE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){return["logSinkId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))},t.body=function(){},t}return W(t,e),t}(Qm),hE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Delete",t.endpointUrl=function(e){return["logSinkId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))},t.body=function(){},t}return W(t,e),t}(nv),pE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pauses a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){return["logSinkId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/pause")},t.body=function(){},t}return W(t,e),t}(tv),fE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes a paused log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){return["logSinkId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/resume")},t.body=function(){},t}return W(t,e),t}(tv),mE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the settings for a log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){return["logSinkId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/settings")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),vE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists notification integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/integrations/notifications".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),EE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){return["notificationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/notifications"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),AE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){return["notificationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))},t.body=function(){},t}return W(t,e),t}(Qm),bE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){return["notificationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),yE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){return["notificationId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))},t.body=function(){},t}return W(t,e),t}(nv),gE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the container registry credentials saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/integrations/registries".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),CE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new set of container registry credentials to this account.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Create",t.endpointUrl=function(e){return"/v1/integrations/registries"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),wE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read Encrypted",t.endpointUrl=function(e){return["credentialId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))},t.body=function(){},t}return W(t,e),t}(Qm),FE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Update",t.endpointUrl=function(e){return["credentialId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),DE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Delete",t.endpointUrl=function(e){return["credentialId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))},t.body=function(){},t}return W(t,e),t}(nv),BE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists linked version control providers",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){return"/v1/integrations/vcs"},t.body=function(){},t}return W(t,e),t}(Qm),IE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generate a token for a specific VCS link.",t.withAuth=!0,t.requiredPermissions="Account > Git > Tokens > Read",t.endpointUrl=function(e){var t;["customVCSId","vcsLinkId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/integrations/vcs/custom/".concat(encodeURIComponent(e.parameters.customVCSId),"/token/").concat(encodeURIComponent(e.parameters.vcsLinkId)).concat(r)},t.body=function(){},t}return W(t,e),t}(tv),SE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of repositories accessible to this account",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/integrations/vcs/repos".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),RE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of branches for the repo",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t;["vcsService","repositoryOwner","repositoryName"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/integrations/vcs/repos/".concat(encodeURIComponent(e.parameters.vcsService),"/").concat(encodeURIComponent(e.parameters.repositoryOwner),"/").concat(encodeURIComponent(e.parameters.repositoryName),"/branches").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),jE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available billing plans",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/plans"},t.body=function(){},t}return W(t,e),t}(Qm),_E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists projects for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),UE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){return"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),PE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){return"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),OE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Update",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),kE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given project",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))},t.body=function(){},t}return W(t,e),t}(Qm),xE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given project. Fails if the project isn't empty.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Delete",t.endpointUrl=function(e){var t;["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId)).concat(r)},t.body=function(){},t}return W(t,e),t}(nv),TE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),LE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),NE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),qE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return W(t,e),t}(Qm),ME=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),GE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return W(t,e),t}(nv),zE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about an addon's backup schedules",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),$E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new backup schedule for an addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),WE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a backup schedule for an addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","scheduleId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(e.parameters.scheduleId))},t.body=function(){},t}return W(t,e),t}(nv),JE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of backups for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),VE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for the given addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),HE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))},t.body=function(){},t}return W(t,e),t}(Qm),ZE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a given backup",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))},t.body=function(){},t}return W(t,e),t}(nv),YE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the in progress backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort")},t.body=function(){},t}return W(t,e),t}(tv),KE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts an in-progress backup restore.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t;["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort-restore").concat(r)},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),XE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generates a temporary download link for downloading the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/download-link")},t.body=function(){},t}return W(t,e),t}(Qm),QE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restores the given addon to the given backup state.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t;["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restore").concat(r)},t.body=function(){},t}return W(t,e),t}(tv),eA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of restores for the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restores").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),tA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/retain")},t.body=function(){},t}return W(t,e),t}(tv),nA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > Deployment > View Instances",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/containers").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),rA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the credentials for connecting to the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/credentials")},t.body=function(){},t}return W(t,e),t}(Qm),oA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Imports a database from an external archive or existing live database.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),uA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the network settings for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/network-settings")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),iA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/pause")},t.body=function(){},t}return W(t,e),t}(tv),sA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Reset the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/reset")},t.body=function(){},t}return W(t,e),t}(tv),aA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restart the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restart")},t.body=function(){},t}return W(t,e),t}(tv),cA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of restores for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restores").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),dA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resume the given addon if it is paused.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/resume")},t.body=function(){},t}return W(t,e),t}(tv),lA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the allocated resources for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/scale")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),hA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the security rules for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/security")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),pA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the current addon version including available upgrades and upgrade history.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")},t.body=function(){},t}return W(t,e),t}(Qm),fA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Upgrades the addon to a new version.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),mA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of jobs belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),vA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),EA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),AA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),bA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),yA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),gA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),CA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(){},t}return W(t,e),t}(Qm),wA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Delete",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(){},t}return W(t,e),t}(nv),FA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/branches").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),DA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists builds for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),BA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Start a new build for the given job. Given a commit sha, it will build that commit.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),IA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments").concat(r)},t.body=function(){},t}return W(t,e),t}(Qm),SA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets build arguments for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),RA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments/details")},t.body=function(){},t}return W(t,e),t}(Qm),jA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-options")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),_A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-source")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),UA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId","buildId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return W(t,e),t}(Qm),PA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job build",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId","buildId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return W(t,e),t}(nv),OA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > View Instance Logs",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/containers").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),kA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")},t.body=function(){},t}return W(t,e),t}(Qm),xA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),TA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")},t.body=function(){},t}return W(t,e),t}(Qm),LA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),NA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pause")},t.body=function(){},t}return W(t,e),t}(tv),qA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pull-requests").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),MA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given job. Optionally takes several arguments to override resumed settings.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/resume")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),GA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetches run history for the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),zA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Starts a new job run for the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),$A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns data about the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId","runId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))},t.body=function(){},t}return W(t,e),t}(Qm),WA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId","runId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))},t.body=function(){},t}return W(t,e),t}(nv),JA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the runtime environment for the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment").concat(r)},t.body=function(){},t}return W(t,e),t}(Qm),VA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),HA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment/details")},t.body=function(){},t}return W(t,e),t}(Qm),ZA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Scale Job",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/scale")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),YA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates settings for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/settings")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),KA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modify cron job to toggle suspending of its schedule.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/suspend")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),XA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all pipelines for a project",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),QA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a pipeline",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId))},t.body=function(){},t}return W(t,e),t}(Qm),eb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),tb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a given preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){return["projectId","pipelineId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),nb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active preview environments for a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),rb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a preview environment generated by a preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Delete",t.endpointUrl=function(e){return["projectId","pipelineId","previewId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(e.parameters.previewId))},t.body=function(){},t}return W(t,e),t}(nv),ob=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of preview template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),ub=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId","templateRunId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(e.parameters.templateRunId))},t.body=function(){},t}return W(t,e),t}(Qm),ib=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId","stage"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))},t.body=function(){},t}return W(t,e),t}(Qm),sb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){return["projectId","pipelineId","stage"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),ab=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Runs a given release flow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){return["projectId","pipelineId","stage"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),cb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId","stage"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),db=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId","stage","runId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId))},t.body=function(){},t}return W(t,e),t}(Qm),lb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){return["projectId","pipelineId","stage","runId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")},t.body=function(){},t}return W(t,e),t}(tv),hb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of secrets belonging to the project",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),pb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),fb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),mb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),vb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a secret including its contents",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;["projectId","secretId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId)).concat(r)},t.body=function(){},t}return W(t,e),t}(Qm),Eb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(){},t}return W(t,e),t}(nv),Ab=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),bb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Link an addon to the secret group or edit the settings of the linked addon.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),yb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a given addon link.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return W(t,e),t}(Qm),gb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unlinks an addon from the secret group.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId","addonId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return W(t,e),t}(nv),Cb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a secret with details about its linked addons",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/details")},t.body=function(){},t}return W(t,e),t}(Qm),wb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of services belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Fb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Db=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),Bb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),Ib=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Sb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),Rb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),jb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),_b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),Ub=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),Pb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(){},t}return W(t,e),t}(Qm),Ob=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Delete",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId)).concat(r)},t.body=function(){},t}return W(t,e),t}(nv),kb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/branches").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),xb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the builds for the service",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Tb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Start a new build for the given combined or build service. If given a commit sha, it will build that commit. Otherwise, the most recent relevant commit will be built. If the service provided is a build service, a branch name or pull request to build from is required.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Lb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the build arguments of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments").concat(r)},t.body=function(){},t}return W(t,e),t}(Qm),Nb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the build arguments for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),qb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments/details")},t.body=function(){},t}return W(t,e),t}(Qm),Mb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-options")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Gb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given build or combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-source")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),zb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the service",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId","buildId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return W(t,e),t}(Qm),$b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given service build",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","serviceId","buildId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return W(t,e),t}(nv),Wb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > View Instances",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/containers").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Jb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > View Instances",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")},t.body=function(){},t}return W(t,e),t}(Qm),Vb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Hb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")},t.body=function(){},t}return W(t,e),t}(Qm),Zb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Yb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pause")},t.body=function(){},t}return W(t,e),t}(tv),Kb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")},t.body=function(){},t}return W(t,e),t}(Qm),Xb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the list of ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Qb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pull-requests").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),ey=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restarts the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/restart")},t.body=function(){},t}return W(t,e),t}(tv),ty=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given service. Optionally takes several arguments to override resumed settings.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/resume")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),ny=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the runtime environment of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment").concat(r)},t.body=function(){},t}return W(t,e),t}(Qm),ry=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),oy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment/details")},t.body=function(){},t}return W(t,e),t}(Qm),uy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Scale Service",t.endpointUrl=function(e){return["projectId","serviceId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/scale")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),iy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of volumes belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")},t.body=function(){},t}return W(t,e),t}(Qm),sy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a volume with the specified payload",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Create",t.endpointUrl=function(e){return["projectId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),ay=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){return["projectId","volumeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))},t.body=function(){},t}return W(t,e),t}(Qm),cy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update volume mounts and storage size",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){return["projectId","volumeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),dy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes this volume and its associated data.",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Delete",t.endpointUrl=function(e){return["projectId","volumeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))},t.body=function(){},t}return W(t,e),t}(nv),ly=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){return["projectId","volumeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/attach")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),hy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Detach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){return["projectId","volumeId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/detach")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),py=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available project regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/regions"},t.body=function(){},t}return W(t,e),t}(Qm),fy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List the resource tags for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/tags".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),my=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Add a new resource tag for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Create",t.endpointUrl=function(e){return"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),vy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update or create a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){return["resourceTagId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(rv),Ey=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View details for a given resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){return["resourceTagId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))},t.body=function(){},t}return W(t,e),t}(Qm),Ay=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Patch a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){return["resourceTagId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(ov),by=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Delete",t.endpointUrl=function(e){return["resourceTagId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))},t.body=function(){},t}return W(t,e),t}(nv),yy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of templates",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/templates".concat(r)},t.body=function(){},t}return W(t,e),t}(ev),gy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){return"/v1/templates"},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Cy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["templateId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId)).concat(r)},t.body=function(){},t}return W(t,e),t}(ev),wy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Update",t.endpointUrl=function(e){return["templateId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),Fy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Delete",t.endpointUrl=function(e){return["templateId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))},t.body=function(){},t}return W(t,e),t}(nv),Dy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Run",t.endpointUrl=function(e){return["templateId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs")},t.body=function(e){return JSON.stringify(e.data)},t}return W(t,e),t}(tv),By=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["templateId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs").concat(r)},t.body=function(){},t}return W(t,e),t}(ev),Iy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){return["templateId","templateRunId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId))},t.body=function(){},t}return W(t,e),t}(Qm),Sy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > Runs > Abort",t.endpointUrl=function(e){return["templateId","templateRunId"].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId),"/abort")},t.body=function(){},t}return W(t,e),t}(tv),Ry=function(){function e(){this.loadContext()}return e.prototype.loadContext=function(){this.contextWrapper=this.loadContextWrapper()},e.prototype.getInfo=function(){return""},e.prototype.storeContext=function(e){return V(this,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:return[4,this.writeContext(e)];case 1:return t.sent(),this.contextWrapper=e,[2]}})})},e.prototype.addContext=function(e,t){return void 0===t&&(t=!0),V(this,void 0,void 0,function(){var n,r,o;return H(this,function(u){switch(u.label){case 0:if(t||void 0===this.findContext(e.name))return[3,1];throw new Error("Context with name ".concat(e.name," already exists"));case 1:return[4,this.removeContext(e.name)];case 2:u.sent(),u.label=3;case 3:return n=J({host:"https://api.northflank.com"},e),r=this.contextWrapper,o={current:n.name,contexts:Z(Z([],r.contexts,!0),[n],!1),lastUpdateCheck:r.lastUpdateCheck},[4,this.storeContext(o)];case 4:return u.sent(),[2]}})})},e.prototype.removeContext=function(e){return V(this,void 0,void 0,function(){var t,n,r,o;return H(this,function(u){switch(u.label){case 0:return t=this.contextWrapper,n=t.contexts.filter(function(t){return t.name!==e}),r=t.current===e?void 0:t.current,o={current:r,contexts:Z([],n,!0),lastUpdateCheck:t.lastUpdateCheck},[4,this.storeContext(o)];case 1:return u.sent(),[2]}})})},e.prototype.getCurrentContext=function(){var e=this.contextWrapper.current;return void 0===e?e:this.findContext(e)},e.prototype.findContext=function(e){return this.contextWrapper.contexts.find(function(t){return t.name===e})},e.prototype.getCurrentBaseUrl=function(e){var t=this.getCurrentContext();if(!0===e&&!(null==t?void 0:t.host))throw new Error("Context (".concat(null==t?void 0:t.name,") doesn't have a target API host. Please login again."));return null==t?void 0:t.host},e.prototype.getCurrentProjectName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.project},e.prototype.getCurrentName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.name},e.prototype.getCurrentToken=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.token},e.prototype.getCurrentServiceName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.service},e.prototype.getCurrentJobName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.job},e.prototype.getCurrentPlanId=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.plan},e.prototype.getCurrentRegion=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.region},e.prototype.useContext=function(e){return V(this,void 0,void 0,function(){var t,n;return H(this,function(r){switch(r.label){case 0:if(!this.findContext(e))throw new Error("Context with name ".concat(e," doesn't exist"));return t=this.contextWrapper,n=J(J({},t),{current:e}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}})})},e.prototype.updateToken=function(e,t){return V(this,void 0,void 0,function(){var n,r,o,u,i;return H(this,function(s){switch(s.label){case 0:if(n=null!=t?t:this.getCurrentName(),!(r=this.findContext(n)))throw new Error("Context with name ".concat(t," doesn't exist"));return o=this.contextWrapper,u=o.contexts.map(function(t){return t.name===n?J(J({},r),{token:e}):t}),i=J(J({},o),{contexts:u}),[4,this.storeContext(i)];case 1:return s.sent(),[2]}})})},e.prototype.useProjectId=function(e){return V(this,void 0,void 0,function(){var t,n;return H(this,function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set project id to current context, current context not defined");return n=J(J({},t),{project:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},e.prototype.useServiceId=function(e){return V(this,void 0,void 0,function(){var t,n;return H(this,function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set service id to current context, current context not defined");return n=J(J({},t),{service:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},e.prototype.useJobId=function(e){return V(this,void 0,void 0,function(){var t,n;return H(this,function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set job id to current context, current context not defined");return n=J(J({},t),{job:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},e.prototype.usePlanId=function(e){return V(this,void 0,void 0,function(){var t,n;return H(this,function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set plan id to current context, current context not defined");return n=J(J({},t),{plan:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},e.prototype.useRegion=function(e){return V(this,void 0,void 0,function(){var t,n;return H(this,function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set region id to current context, current context not defined");return n=J(J({},t),{region:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},e.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},e.prototype.setLastUpdateCheck=function(e){return V(this,void 0,void 0,function(){var t,n;return H(this,function(r){switch(r.label){case 0:return t=this.contextWrapper,n=J(J({},t),{lastUpdateCheck:e}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}})})},e}(),jy=function(e){function t(t){var n=e.call(this)||this;return n.assertDir=function(e){return V(n,void 0,void 0,function(){var t;return H(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),b.existsSync(e)?[3,2]:[4,b.promises.mkdir(e,{recursive:!0})];case 1:n.sent(),n.label=2;case 2:return[3,4];case 3:throw t=n.sent(),console.log("Failed to login, local files could not be created: ".concat(e,", error: ").concat(t.message)),t;case 4:return[2]}})})},n.configPath=t||"".concat(m.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return W(t,e),t.prototype.loadContextWrapper=function(){try{return JSON.parse(b.readFileSync(this.configFile,"utf8"))}catch(e){return{contexts:[],lastUpdateCheck:new Date(0)}}},t.prototype.writeContext=function(e){return V(this,void 0,void 0,function(){var t;return H(this,function(n){switch(n.label){case 0:return[4,this.assertConfigDir()];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,b.promises.writeFile(this.configFile,JSON.stringify(e,null,"\t"),{mode:416})];case 3:return n.sent(),[3,5];case 4:throw t=n.sent(),console.log("Failed to persist api context, local files could not be created, error: ".concat(t.message)),t;case 5:return[2]}})})},t.prototype.assertConfigDir=function(){return V(this,void 0,void 0,function(){return H(this,function(e){switch(e.label){case 0:return[4,this.assertDir(this.configPath)];case 1:return e.sent(),[2]}})})},t.prototype.getInfo=function(){return"Cli config stored in: ".concat(this.configPath)},t}(Ry),_y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t}return W(t,e),t.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},t.prototype.writeContext=function(e){return V(this,void 0,void 0,function(){return H(this,function(t){return this.inMemoryContextWrapper=e,[2]})})},t}(Ry),Uy=function(e,t){void 0===t&&(t={});var n,r,o,u=this;this.baseUrl=function(){return u.contextProvider.getCurrentBaseUrl()},this.contextProvider=e,this.forwarding=new Qa(e,new wb(e,t),new TE(e,t),t.agent),this.exec=new tc(e,t.agent),this.logs=new av(e,t),this.metrics=new lv(e),this.fileCopy=new Jm(this.exec),this.endpoints={get:(o={},o.addon=((r=new qE(e,t)).types=new hv(e,t),r.backupSchedules=new zE(e,t),r.backups=new JE(e,t),r.backup=((n=new HE(e,t)).download=new XE(e,t),n.restores=new eA(e,t),n),r.containers=new nA(e,t),r.credentials=new rA(e,t),r.restores=new cA(e,t),r.version=new pA(e,t),r),o.backupDestination=new mv(e,t),o.invoice=function(){var n={};return n.details=new yv(e,t),n}(),o.cloud=function(){var n={};return n.cluster=new Dv(e,t),n.integration=new kv(e,t),n}(),o.dnsId=new qv(e,t),o.domain=new zv(e,t),o.domainCertificate=new Wv(e,t),o.subdomain=function(){var n=new Hv(e,t);return n.path=new nE(e,t),n}(),o.logSink=new lE(e,t),o.notification=new AE(e,t),o.registryCredentials=new wE(e,t),o.project=new kE(e,t),o.job=function(){var n=new CA(e,t);return n.branches=new FA(e,t),n.builds=new DA(e,t),n.buildArguments=new IA(e,t),n.buildArgumentDetails=new RA(e,t),n.build=new UA(e,t),n.containers=new OA(e,t),n.deployment=new kA(e,t),n.healthChecks=new TA(e,t),n.pullRequests=new qA(e,t),n.runs=new GA(e,t),n.run=new $A(e,t),n.runtimeEnvironment=new JA(e,t),n.runtimeEnvironmentDetails=new HA(e,t),n}(),o.pipeline=new QA(e,t),o.previewTemplate=new eb(e,t),o.previewTemplateRun=new ub(e,t),o.releaseFlow=new ib(e,t),o.releaseFlowRun=new db(e,t),o.secret=new vb(e,t),o.secretLink=new yb(e,t),o.secretDetails=new Cb(e,t),o.service=function(){var n=new Pb(e,t);return n.branches=new kb(e,t),n.builds=new xb(e,t),n.buildArguments=new Lb(e,t),n.buildArgumentDetails=new qb(e,t),n.build=new zb(e,t),n.containers=new Wb(e,t),n.deployment=new Jb(e,t),n.healthChecks=new Hb(e,t),n.ports=new Kb(e,t),n.pullRequests=new Qb(e,t),n.runtimeEnvironment=new ny(e,t),n.runtimeEnvironmentDetails=new oy(e,t),n}(),o.volume=new ay(e,t),o.tag=new Ey(e,t),o.template=new Cy(e,t),o.templateRun=new Iy(e,t),o),list:function(){var n={};return n.backupDestinations=new pv(e,t),n.backupDestinationsBackups=new Av(e,t),n.invoices=new bv(e,t),n.cloud=function(){var n={};return n.providers=new gv(e,t),n.clusters=new Cv(e,t),n.cluster=function(){var n={};return n.nodes=new Sv(e,t),n}(),n.integrations=new Uv(e,t),n.nodeTypes=new Lv(e,t),n.regions=new Nv(e,t),n}(),n.domains=new Mv(e,t),n.subdomain=function(){var n={};return n.path=new tE(e,t),n}(),n.logSinks=new cE(e,t),n.notifications=new vE(e,t),n.registryCredentials=new gE(e,t),n.vcs=new BE(e,t),n.repos=new SE(e,t),n.branches=new RE(e,t),n.plans=new jE(e,t),n.projects=new _E(e,t),n.addons=new TE(e,t),n.jobs=new mA(e,t),n.pipelines=new XA(e,t),n.previewTemplatePreviews=new nb(e,t),n.previewTemplateRuns=new ob(e,t),n.releaseFlowRuns=new cb(e,t),n.secrets=new hb(e,t),n.services=new wb(e,t),n.volumes=new iy(e,t),n.regions=new py(e,t),n.tags=new fy(e,t),n.templates=new yy(e,t),n.templateRuns=new By(e,t),n}(),add:function(){var n={};return n.backupDestination=new fv(e,t),n.domain=function(){var n={};return n.subdomain=new Vv(e,t),n}(),n.subdomain=function(){var n={};return n.path=new eE(e,t),n}(),n.registryCredentials=new CE(e,t),n.tag=new my(e,t),n}(),patch:function(){var n={};return n.backupDestination=new vv(e,t),n.cloud=function(){var n={};return n.cluster=new Bv(e,t),n.integration=new xv(e,t),n}(),n.project=new OE(e,t),n.addon=new ME(e,t),n.job=function(){var n={};return n.cron=new AA(e,t),n.manual=new gA(e,t),n}(),n.secret=new mb(e,t),n.service=function(){var n={};return n.build=new Bb(e,t),n.combined=new Rb(e,t),n.deployment=new Ub(e,t),n}(),n.tag=new Ay(e,t),n}(),delete:function(){var n={};return n.backupDestination=new Ev(e,t),n.cloud=function(){var n={};return n.cluster=new Iv(e,t),n.integration=new Tv(e,t),n}(),n.domain=new $v(e,t),n.subdomain=function(){var n=new Zv(e,t);return n.path=new rE(e,t),n}(),n.logSink=new hE(e,t),n.notification=new yE(e,t),n.registryCredentials=new DE(e,t),n.project=new xE(e,t),n.addon=function(){var n=new GE(e,t);return n.backupSchedule=new WE(e,t),n}(),n.backup=new ZE(e,t),n.job=new wA(e,t),n.previewTemplatePreview=new rb(e,t),n.secret=new Eb(e,t),n.secretLink=new gb(e,t),n.service=new Ob(e,t),n.volume=new dy(e,t),n.tag=new by(e,t),n.template=new Fy(e,t),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new wv(e,t),n.integration=new Pv(e,t),n}(),n.domain=new Gv(e,t),n.logSink=new dE(e,t),n.notification=new EE(e,t),n.customVcs=function(){var n={};return n.token=new IE(e,t),n}(),n.project=new UE(e,t),n.addon=function(){var n=new LE(e,t);return n.backupSchedule=new $E(e,t),n}(),n.job=function(){var n={};return n.cron=new vA(e,t),n.manual=new bA(e,t),n}(),n.secret=new pb(e,t),n.service=function(){var n={};return n.build=new Fb(e,t),n.combined=new Ib(e,t),n.deployment=new jb(e,t),n}(),n.volume=new sy(e,t),n.template=new gy(e,t),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new Fv(e,t),n.integration=new Ov(e,t),n}(),n.project=new PE(e,t),n.addon=new NE(e,t),n.job=function(){var n={};return n.cron=new EA(e,t),n.manual=new yA(e,t),n}(),n.secret=new fb(e,t),n.service=function(){var n={};return n.build=new Db(e,t),n.combined=new Sb(e,t),n.deployment=new _b(e,t),n}(),n.tag=new vy(e,t),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Rv(e,t),n}(),n}(),n}(),drain:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new jv(e,t),n}(),n}(),n}(),uncordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new _v(e,t),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new Jv(e,t),n.addon=function(){var n={};return n.backup=new oA(e,t),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Yv(e,t),n.path=new uE(e,t),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Kv(e,t);return n.path=new iE(e,t),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Xv(e,t),n}(),n}(),enable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Qv(e,t),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new oE(e,t),n}(),n.logSink=new mE(e,t),n.notification=new bE(e,t),n.registryCredentials=new FE(e,t),n.addon=function(){var n={};return n.networkSettings=new uA(e,t),n.security=new hA(e,t),n.version=new fA(e,t),n}(),n.job=function(){var n={};return n.buildArguments=new SA(e,t),n.buildOptions=new jA(e,t),n.buildSource=new _A(e,t),n.deployment=new xA(e,t),n.healthChecks=new LA(e,t),n.runtimeEnvironment=new VA(e,t),n.settings=new YA(e,t),n}(),n.previewTemplate=new tb(e,t),n.releaseFlow=new sb(e,t),n.secret=new Ab(e,t),n.secretLink=new bb(e,t),n.service=function(){var n={};return n.buildArguments=new Nb(e,t),n.buildOptions=new Mb(e,t),n.buildSource=new Gb(e,t),n.deployment=new Vb(e,t),n.healthChecks=new Zb(e,t),n.ports=new Xb(e,t),n.runtimeEnvironment=new ry(e,t),n}(),n.volume=new cy(e,t),n.template=new wy(e,t),n}(),verify:function(){var n={};return n.subdomain=new sE(e,t),n.domain=new aE(e,t),n}(),pause:function(){var n={};return n.logSink=new pE(e,t),n.addon=new iA(e,t),n.job=new NA(e,t),n.service=new Yb(e,t),n}(),resume:function(){var n={};return n.logSink=new fE(e,t),n.addon=new dA(e,t),n.job=new MA(e,t),n.service=new ty(e,t),n}(),backup:function(){var n={};return n.addon=new VE(e,t),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new YE(e,t),n.restore=new KE(e,t),n}(),n.job=function(){var n={};return n.build=new PA(e,t),n.run=new WA(e,t),n}(),n.releaseFlowRun=new lb(e,t),n.service=function(){var n={};return n.build=new $b(e,t),n}(),n.templateRun=new Sy(e,t),n}(),restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new QE(e,t),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new tA(e,t),n}(),n}(),reset:function(){var n={};return n.addon=new sA(e,t),n}(),restart:function(){var n={};return n.addon=new aA(e,t),n.service=new ey(e,t),n}(),scale:function(){var n={};return n.addon=new lA(e,t),n.job=new ZA(e,t),n.service=new uy(e,t),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new BA(e,t),n.run=new zA(e,t),n}(),n.service=function(){var n={};return n.build=new Tb(e,t),n}(),n}(),suspend:function(){var n={};return n.job=new KA(e,t),n}(),run:function(){var n={};return n.releaseFlow=new ab(e,t),n.template=new Dy(e,t),n}(),attach:function(){var n={};return n.volume=new ly(e,t),n}(),detach:function(){var n={};return n.volume=new hy(e,t),n}(),download:function(){var e={};return e.service=function(){var e={};return e.files=u.fileCopy.downloadServiceFiles.bind(u.fileCopy),e.fileStream=u.fileCopy.downloadServiceFileStream.bind(u.fileCopy),e}(),e.job=function(){var e={};return e.files=u.fileCopy.downloadJobFiles.bind(u.fileCopy),e.fileStream=u.fileCopy.downloadJobFileStream.bind(u.fileCopy),e}(),e}(),upload:function(){var e={};return e.service=function(){var e={};return e.files=u.fileCopy.uploadServiceFiles.bind(u.fileCopy),e.fileStream=u.fileCopy.uploadServiceFileStream.bind(u.fileCopy),e}(),e.job=function(){var e={};return e.files=u.fileCopy.uploadJobFiles.bind(u.fileCopy),e.fileStream=u.fileCopy.uploadJobFileStream.bind(u.fileCopy),e}(),e}()},this.download=function(){var e={};return e.service=function(){var e={};return e.files=u.endpoints.download.service.files,e}(),e.job=function(){var e={};return e.files=u.endpoints.download.job.files,e}(),e}(),this.upload=function(){var e={};return e.service=function(){var e={};return e.files=u.endpoints.upload.service.files,e}(),e.job=function(){var e={};return e.files=u.endpoints.upload.job.files,e}(),e}(),this.get=function(){var e={};return e.addon=function(){var e=u.endpoints.get.addon.call;return e.types=u.endpoints.get.addon.types.call,e.backupSchedules=function(){var e=u.endpoints.get.addon.backupSchedules.call;return e.all=u.endpoints.get.addon.backupSchedules.all,e}(),e.backups=function(){var e=u.endpoints.get.addon.backups.call;return e.all=u.endpoints.get.addon.backups.all,e}(),e.backup=function(){var e=u.endpoints.get.addon.backup.call;return e.download=u.endpoints.get.addon.backup.download.call,e.restores=function(){var e=u.endpoints.get.addon.backup.restores.call;return e.all=u.endpoints.get.addon.backup.restores.all,e}(),e.logs=u.logs.getAddonBackupLogs,e.logTail=u.logs.tailAddonBackupLogs,e}(),e.containers=function(){var e=u.endpoints.get.addon.containers.call;return e.all=u.endpoints.get.addon.containers.all,e}(),e.credentials=u.endpoints.get.addon.credentials.call,e.restores=function(){var e=function(){var e=u.endpoints.get.addon.restores.call;return e.all=u.endpoints.get.addon.restores.all,e}();return e.logs=u.logs.getAddonRestoresLogs,e.logTail=u.logs.tailAddonRestoresLogs,e}(),e.version=u.endpoints.get.addon.version.call,e.logs=u.logs.getAddonLogs,e.logTail=u.logs.tailAddonLogs,e.metrics=u.metrics.getAddonMetrics,e.metricsRange=u.metrics.getAddonMetricsRange,e}(),e.backupDestination=u.endpoints.get.backupDestination.call,e.invoice=function(){var e={};return e.details=u.endpoints.get.invoice.details.call,e}(),e.cloud=function(){var e={};return e.cluster=u.endpoints.get.cloud.cluster.call,e.integration=u.endpoints.get.cloud.integration.call,e}(),e.dnsId=u.endpoints.get.dnsId.call,e.domain=u.endpoints.get.domain.call,e.domainCertificate=u.endpoints.get.domainCertificate.call,e.subdomain=function(){var e=u.endpoints.get.subdomain.call;return e.path=u.endpoints.get.subdomain.path.call,e}(),e.logSink=u.endpoints.get.logSink.call,e.notification=u.endpoints.get.notification.call,e.registryCredentials=u.endpoints.get.registryCredentials.call,e.project=u.endpoints.get.project.call,e.job=function(){var e=u.endpoints.get.job.call;return e.branches=function(){var e=u.endpoints.get.job.branches.call;return e.all=u.endpoints.get.job.branches.all,e}(),e.builds=function(){var e=u.endpoints.get.job.builds.call;return e.all=u.endpoints.get.job.builds.all,e}(),e.buildArguments=u.endpoints.get.job.buildArguments.call,e.buildArgumentDetails=u.endpoints.get.job.buildArgumentDetails.call,e.build=u.endpoints.get.job.build.call,e.containers=function(){var e=u.endpoints.get.job.containers.call;return e.all=u.endpoints.get.job.containers.all,e}(),e.deployment=u.endpoints.get.job.deployment.call,e.healthChecks=u.endpoints.get.job.healthChecks.call,e.pullRequests=function(){var e=u.endpoints.get.job.pullRequests.call;return e.all=u.endpoints.get.job.pullRequests.all,e}(),e.runs=function(){var e=u.endpoints.get.job.runs.call;return e.all=u.endpoints.get.job.runs.all,e}(),e.run=u.endpoints.get.job.run.call,e.runtimeEnvironment=u.endpoints.get.job.runtimeEnvironment.call,e.runtimeEnvironmentDetails=u.endpoints.get.job.runtimeEnvironmentDetails.call,e.logs=u.logs.getJobLogs,e.buildLogs=u.logs.getJobBuildLogs,e.logTail=u.logs.tailJobLogs,e.buildLogTail=u.logs.tailJobBuildLogs,e.metrics=u.metrics.getJobMetrics,e.buildMetrics=u.metrics.getJobBuildMetrics,e.metricsRange=u.metrics.getJobMetricsRange,e.buildMetricsRange=u.metrics.getJobBuildMetricsRange,e}(),e.pipeline=u.endpoints.get.pipeline.call,e.previewTemplate=function(){var e=u.endpoints.get.previewTemplate.call;return e.all=u.endpoints.get.previewTemplate.all,e}(),e.previewTemplateRun=u.endpoints.get.previewTemplateRun.call,e.releaseFlow=u.endpoints.get.releaseFlow.call,e.releaseFlowRun=u.endpoints.get.releaseFlowRun.call,e.secret=u.endpoints.get.secret.call,e.secretLink=u.endpoints.get.secretLink.call,e.secretDetails=u.endpoints.get.secretDetails.call,e.service=function(){var e=u.endpoints.get.service.call;return e.branches=function(){var e=u.endpoints.get.service.branches.call;return e.all=u.endpoints.get.service.branches.all,e}(),e.builds=function(){var e=u.endpoints.get.service.builds.call;return e.all=u.endpoints.get.service.builds.all,e}(),e.buildArguments=u.endpoints.get.service.buildArguments.call,e.buildArgumentDetails=u.endpoints.get.service.buildArgumentDetails.call,e.build=u.endpoints.get.service.build.call,e.containers=function(){var e=u.endpoints.get.service.containers.call;return e.all=u.endpoints.get.service.containers.all,e}(),e.deployment=u.endpoints.get.service.deployment.call,e.healthChecks=u.endpoints.get.service.healthChecks.call,e.ports=u.endpoints.get.service.ports.call,e.pullRequests=function(){var e=u.endpoints.get.service.pullRequests.call;return e.all=u.endpoints.get.service.pullRequests.all,e}(),e.runtimeEnvironment=u.endpoints.get.service.runtimeEnvironment.call,e.runtimeEnvironmentDetails=u.endpoints.get.service.runtimeEnvironmentDetails.call,e.logs=u.logs.getServiceLogs,e.buildLogs=u.logs.getServiceBuildLogs,e.logTail=u.logs.tailServiceLogs,e.buildLogTail=u.logs.tailServiceBuildLogs,e.metrics=u.metrics.getServiceMetrics,e.buildMetrics=u.metrics.getServiceBuildMetrics,e.metricsRange=u.metrics.getServiceMetricsRange,e.buildMetricsRange=u.metrics.getServiceBuildMetricsRange,e}(),e.volume=u.endpoints.get.volume.call,e.tag=u.endpoints.get.tag.call,e.template=function(){var e=u.endpoints.get.template.call;return e.all=u.endpoints.get.template.all,e}(),e.templateRun=u.endpoints.get.templateRun.call,e}(),this.list=function(){var e={};return e.backupDestinations=function(){var e=u.endpoints.list.backupDestinations.call;return e.all=u.endpoints.list.backupDestinations.all,e}(),e.backupDestinationsBackups=function(){var e=u.endpoints.list.backupDestinationsBackups.call;return e.all=u.endpoints.list.backupDestinationsBackups.all,e}(),e.invoices=function(){var e=u.endpoints.list.invoices.call;return e.all=u.endpoints.list.invoices.all,e}(),e.cloud=function(){var e={};return e.providers=u.endpoints.list.cloud.providers.call,e.clusters=function(){var e=u.endpoints.list.cloud.clusters.call;return e.all=u.endpoints.list.cloud.clusters.all,e}(),e.cluster=function(){var e={};return e.nodes=function(){var e=u.endpoints.list.cloud.cluster.nodes.call;return e.all=u.endpoints.list.cloud.cluster.nodes.all,e}(),e}(),e.integrations=function(){var e=u.endpoints.list.cloud.integrations.call;return e.all=u.endpoints.list.cloud.integrations.all,e}(),e.nodeTypes=function(){var e=u.endpoints.list.cloud.nodeTypes.call;return e.all=u.endpoints.list.cloud.nodeTypes.all,e}(),e.regions=function(){var e=u.endpoints.list.cloud.regions.call;return e.all=u.endpoints.list.cloud.regions.all,e}(),e}(),e.domains=function(){var e=u.endpoints.list.domains.call;return e.all=u.endpoints.list.domains.all,e}(),e.subdomain=function(){var e={};return e.path=u.endpoints.list.subdomain.path.call,e}(),e.logSinks=function(){var e=u.endpoints.list.logSinks.call;return e.all=u.endpoints.list.logSinks.all,e}(),e.notifications=function(){var e=u.endpoints.list.notifications.call;return e.all=u.endpoints.list.notifications.all,e}(),e.registryCredentials=function(){var e=u.endpoints.list.registryCredentials.call;return e.all=u.endpoints.list.registryCredentials.all,e}(),e.vcs=u.endpoints.list.vcs.call,e.repos=function(){var e=u.endpoints.list.repos.call;return e.all=u.endpoints.list.repos.all,e}(),e.branches=function(){var e=u.endpoints.list.branches.call;return e.all=u.endpoints.list.branches.all,e}(),e.plans=u.endpoints.list.plans.call,e.projects=function(){var e=u.endpoints.list.projects.call;return e.all=u.endpoints.list.projects.all,e}(),e.addons=function(){var e=u.endpoints.list.addons.call;return e.all=u.endpoints.list.addons.all,e}(),e.jobs=function(){var e=u.endpoints.list.jobs.call;return e.all=u.endpoints.list.jobs.all,e}(),e.pipelines=function(){var e=u.endpoints.list.pipelines.call;return e.all=u.endpoints.list.pipelines.all,e}(),e.previewTemplatePreviews=function(){var e=u.endpoints.list.previewTemplatePreviews.call;return e.all=u.endpoints.list.previewTemplatePreviews.all,e}(),e.previewTemplateRuns=function(){var e=u.endpoints.list.previewTemplateRuns.call;return e.all=u.endpoints.list.previewTemplateRuns.all,e}(),e.releaseFlowRuns=function(){var e=u.endpoints.list.releaseFlowRuns.call;return e.all=u.endpoints.list.releaseFlowRuns.all,e}(),e.secrets=function(){var e=u.endpoints.list.secrets.call;return e.all=u.endpoints.list.secrets.all,e}(),e.services=function(){var e=u.endpoints.list.services.call;return e.all=u.endpoints.list.services.all,e}(),e.volumes=u.endpoints.list.volumes.call,e.regions=u.endpoints.list.regions.call,e.tags=function(){var e=u.endpoints.list.tags.call;return e.all=u.endpoints.list.tags.all,e}(),e.templates=function(){var e=u.endpoints.list.templates.call;return e.all=u.endpoints.list.templates.all,e}(),e.templateRuns=function(){var e=u.endpoints.list.templateRuns.call;return e.all=u.endpoints.list.templateRuns.all,e}(),e}(),this.add=function(){var e={};return e.backupDestination=u.endpoints.add.backupDestination.call,e.domain=function(){var e={};return e.subdomain=u.endpoints.add.domain.subdomain.call,e}(),e.subdomain=function(){var e={};return e.path=u.endpoints.add.subdomain.path.call,e}(),e.registryCredentials=u.endpoints.add.registryCredentials.call,e.tag=u.endpoints.add.tag.call,e}(),this.patch=function(){var e={};return e.backupDestination=u.endpoints.patch.backupDestination.call,e.cloud=function(){var e={};return e.cluster=u.endpoints.patch.cloud.cluster.call,e.integration=u.endpoints.patch.cloud.integration.call,e}(),e.project=u.endpoints.patch.project.call,e.addon=u.endpoints.patch.addon.call,e.job=function(){var e={};return e.cron=u.endpoints.patch.job.cron.call,e.manual=u.endpoints.patch.job.manual.call,e}(),e.secret=u.endpoints.patch.secret.call,e.service=function(){var e={};return e.build=u.endpoints.patch.service.build.call,e.combined=u.endpoints.patch.service.combined.call,e.deployment=u.endpoints.patch.service.deployment.call,e}(),e.tag=u.endpoints.patch.tag.call,e}(),this.delete=function(){var e={};return e.backupDestination=u.endpoints.delete.backupDestination.call,e.cloud=function(){var e={};return e.cluster=u.endpoints.delete.cloud.cluster.call,e.integration=u.endpoints.delete.cloud.integration.call,e}(),e.domain=u.endpoints.delete.domain.call,e.subdomain=function(){var e=u.endpoints.delete.subdomain.call;return e.path=u.endpoints.delete.subdomain.path.call,e}(),e.logSink=u.endpoints.delete.logSink.call,e.notification=u.endpoints.delete.notification.call,e.registryCredentials=u.endpoints.delete.registryCredentials.call,e.project=u.endpoints.delete.project.call,e.addon=function(){var e=u.endpoints.delete.addon.call;return e.backupSchedule=u.endpoints.delete.addon.backupSchedule.call,e}(),e.backup=u.endpoints.delete.backup.call,e.job=u.endpoints.delete.job.call,e.previewTemplatePreview=u.endpoints.delete.previewTemplatePreview.call,e.secret=u.endpoints.delete.secret.call,e.secretLink=u.endpoints.delete.secretLink.call,e.service=u.endpoints.delete.service.call,e.volume=u.endpoints.delete.volume.call,e.tag=u.endpoints.delete.tag.call,e.template=u.endpoints.delete.template.call,e}(),this.create=function(){var e={};return e.cloud=function(){var e={};return e.cluster=u.endpoints.create.cloud.cluster.call,e.integration=u.endpoints.create.cloud.integration.call,e}(),e.domain=u.endpoints.create.domain.call,e.logSink=u.endpoints.create.logSink.call,e.notification=u.endpoints.create.notification.call,e.customVcs=function(){var e={};return e.token=u.endpoints.create.customVcs.token.call,e}(),e.project=u.endpoints.create.project.call,e.addon=function(){var e=u.endpoints.create.addon.call;return e.backupSchedule=u.endpoints.create.addon.backupSchedule.call,e}(),e.job=function(){var e={};return e.cron=u.endpoints.create.job.cron.call,e.manual=u.endpoints.create.job.manual.call,e}(),e.secret=u.endpoints.create.secret.call,e.service=function(){var e={};return e.build=u.endpoints.create.service.build.call,e.combined=u.endpoints.create.service.combined.call,e.deployment=u.endpoints.create.service.deployment.call,e}(),e.volume=u.endpoints.create.volume.call,e.template=u.endpoints.create.template.call,e}(),this.put=function(){var e={};return e.cloud=function(){var e={};return e.cluster=u.endpoints.put.cloud.cluster.call,e.integration=u.endpoints.put.cloud.integration.call,e}(),e.project=u.endpoints.put.project.call,e.addon=u.endpoints.put.addon.call,e.job=function(){var e={};return e.cron=u.endpoints.put.job.cron.call,e.manual=u.endpoints.put.job.manual.call,e}(),e.secret=u.endpoints.put.secret.call,e.service=function(){var e={};return e.build=u.endpoints.put.service.build.call,e.combined=u.endpoints.put.service.combined.call,e.deployment=u.endpoints.put.service.deployment.call,e}(),e.tag=u.endpoints.put.tag.call,e}(),this.cordon=function(){var e={};return e.cloud=function(){var e={};return e.cluster=function(){var e={};return e.node=u.endpoints.cordon.cloud.cluster.node.call,e}(),e}(),e}(),this.drain=function(){var e={};return e.cloud=function(){var e={};return e.cluster=function(){var e={};return e.node=u.endpoints.drain.cloud.cluster.node.call,e}(),e}(),e}(),this.uncordon=function(){var e={};return e.cloud=function(){var e={};return e.cluster=function(){var e={};return e.node=u.endpoints.uncordon.cloud.cluster.node.call,e}(),e}(),e}(),this.import=function(){var e={};return e.domainCertificate=u.endpoints.import.domainCertificate.call,e.addon=function(){var e={};return e.backup=u.endpoints.import.addon.backup.call,e}(),e}(),this.assign=function(){var e={};return e.subdomain=function(){var e={};return e.service=u.endpoints.assign.subdomain.service.call,e.path=u.endpoints.assign.subdomain.path.call,e}(),e}(),this.unassign=function(){var e={};return e.subdomain=function(){var e=u.endpoints.unassign.subdomain.call;return e.path=u.endpoints.unassign.subdomain.path.call,e}(),e}(),this.disable=function(){var e={};return e.subdomain=function(){var e={};return e.cdn=u.endpoints.disable.subdomain.cdn.call,e}(),e}(),this.enable=function(){var e={};return e.subdomain=function(){var e={};return e.cdn=u.endpoints.enable.subdomain.cdn.call,e}(),e}(),this.update=function(){var e={};return e.subdomain=function(){var e={};return e.path=u.endpoints.update.subdomain.path.call,e}(),e.logSink=u.endpoints.update.logSink.call,e.notification=u.endpoints.update.notification.call,e.registryCredentials=u.endpoints.update.registryCredentials.call,e.addon=function(){var e={};return e.networkSettings=u.endpoints.update.addon.networkSettings.call,e.security=u.endpoints.update.addon.security.call,e.version=u.endpoints.update.addon.version.call,e}(),e.job=function(){var e={};return e.buildArguments=u.endpoints.update.job.buildArguments.call,e.buildOptions=u.endpoints.update.job.buildOptions.call,e.buildSource=u.endpoints.update.job.buildSource.call,e.deployment=u.endpoints.update.job.deployment.call,e.healthChecks=u.endpoints.update.job.healthChecks.call,e.runtimeEnvironment=u.endpoints.update.job.runtimeEnvironment.call,e.settings=u.endpoints.update.job.settings.call,e}(),e.previewTemplate=u.endpoints.update.previewTemplate.call,e.releaseFlow=u.endpoints.update.releaseFlow.call,e.secret=u.endpoints.update.secret.call,e.secretLink=u.endpoints.update.secretLink.call,e.service=function(){var e={};return e.buildArguments=u.endpoints.update.service.buildArguments.call,e.buildOptions=u.endpoints.update.service.buildOptions.call,e.buildSource=u.endpoints.update.service.buildSource.call,e.deployment=u.endpoints.update.service.deployment.call,e.healthChecks=u.endpoints.update.service.healthChecks.call,e.ports=u.endpoints.update.service.ports.call,e.runtimeEnvironment=u.endpoints.update.service.runtimeEnvironment.call,e}(),e.volume=u.endpoints.update.volume.call,e.template=u.endpoints.update.template.call,e}(),this.verify=function(){var e={};return e.subdomain=u.endpoints.verify.subdomain.call,e.domain=u.endpoints.verify.domain.call,e}(),this.pause=function(){var e={};return e.logSink=u.endpoints.pause.logSink.call,e.addon=u.endpoints.pause.addon.call,e.job=u.endpoints.pause.job.call,e.service=u.endpoints.pause.service.call,e}(),this.resume=function(){var e={};return e.logSink=u.endpoints.resume.logSink.call,e.addon=u.endpoints.resume.addon.call,e.job=u.endpoints.resume.job.call,e.service=u.endpoints.resume.service.call,e}(),this.backup=function(){var e={};return e.addon=u.endpoints.backup.addon.call,e}(),this.abort=function(){var e={};return e.addon=function(){var e={};return e.backup=u.endpoints.abort.addon.backup.call,e.restore=u.endpoints.abort.addon.restore.call,e}(),e.job=function(){var e={};return e.build=u.endpoints.abort.job.build.call,e.run=u.endpoints.abort.job.run.call,e}(),e.releaseFlowRun=u.endpoints.abort.releaseFlowRun.call,e.service=function(){var e={};return e.build=u.endpoints.abort.service.build.call,e}(),e.templateRun=u.endpoints.abort.templateRun.call,e}(),this.restore=function(){var e={};return e.addon=function(){var e={};return e.backup=u.endpoints.restore.addon.backup.call,e}(),e}(),this.retain=function(){var e={};return e.addon=function(){var e={};return e.backup=u.endpoints.retain.addon.backup.call,e}(),e}(),this.reset=function(){var e={};return e.addon=u.endpoints.reset.addon.call,e}(),this.restart=function(){var e={};return e.addon=u.endpoints.restart.addon.call,e.service=u.endpoints.restart.service.call,e}(),this.scale=function(){var e={};return e.addon=u.endpoints.scale.addon.call,e.job=u.endpoints.scale.job.call,e.service=u.endpoints.scale.service.call,e}(),this.start=function(){var e={};return e.job=function(){var e={};return e.build=u.endpoints.start.job.build.call,e.run=u.endpoints.start.job.run.call,e}(),e.service=function(){var e={};return e.build=u.endpoints.start.service.build.call,e}(),e}(),this.suspend=function(){var e={};return e.job=u.endpoints.suspend.job.call,e}(),this.run=function(){var e={};return e.releaseFlow=u.endpoints.run.releaseFlow.call,e.template=u.endpoints.run.template.call,e}(),this.attach=function(){var e={};return e.volume=u.endpoints.attach.volume.call,e}(),this.detach=function(){var e={};return e.volume=u.endpoints.detach.volume.call,e}()};export{YE as AbortAddonBackupEndpoint,KE as AbortAddonRestoreEndpoint,PA as AbortJobBuildEndpoint,WA as AbortJobRunEndpoint,lb as AbortReleaseflowrunEndpoint,$b as AbortServiceBuildEndpoint,Sy as AbortTemplaterunEndpoint,fv as AddBackupdestinationEndpoint,Vv as AddDomainSubdomainEndpoint,CE as AddRegistrycredentialsEndpoint,eE as AddSubdomainPathEndpoint,my as AddTagEndpoint,Uy as ApiClient,Ry as ApiClientContextProvider,jy as ApiClientFileContextProvider,_y as ApiClientInMemoryContextProvider,Xm as ApiEndpoint,uE as AssignSubdomainPathEndpoint,Yv as AssignSubdomainServiceEndpoint,ly as AttachVolumeEndpoint,VE as BackupAddonEndpoint,Rv as CordonCloudClusterNodeEndpoint,$E as CreateAddonBackupscheduleEndpoint,LE as CreateAddonEndpoint,wv as CreateCloudClusterEndpoint,Pv as CreateCloudIntegrationEndpoint,IE as CreateCustomvcsTokenEndpoint,Gv as CreateDomainEndpoint,vA as CreateJobCronEndpoint,bA as CreateJobManualEndpoint,dE as CreateLogsinkEndpoint,EE as CreateNotificationEndpoint,UE as CreateProjectEndpoint,pb as CreateSecretEndpoint,Fb as CreateServiceBuildEndpoint,Ib as CreateServiceCombinedEndpoint,jb as CreateServiceDeploymentEndpoint,gy as CreateTemplateEndpoint,sy as CreateVolumeEndpoint,WE as DeleteAddonBackupscheduleEndpoint,GE as DeleteAddonEndpoint,nv as DeleteApiEndpoint,ZE as DeleteBackupEndpoint,Ev as DeleteBackupdestinationEndpoint,Iv as DeleteCloudClusterEndpoint,Tv as DeleteCloudIntegrationEndpoint,$v as DeleteDomainEndpoint,wA as DeleteJobEndpoint,hE as DeleteLogsinkEndpoint,yE as DeleteNotificationEndpoint,rb as DeletePreviewtemplatepreviewEndpoint,xE as DeleteProjectEndpoint,DE as DeleteRegistrycredentialsEndpoint,Eb as DeleteSecretEndpoint,gb as DeleteSecretlinkEndpoint,Ob as DeleteServiceEndpoint,Zv as DeleteSubdomainEndpoint,rE as DeleteSubdomainPathEndpoint,by as DeleteTagEndpoint,Fy as DeleteTemplateEndpoint,dy as DeleteVolumeEndpoint,hy as DetachVolumeEndpoint,Xv as DisableSubdomainCdnEndpoint,jv as DrainCloudClusterNodeEndpoint,Qv as EnableSubdomainCdnEndpoint,ec as ExecCommandStandard,XE as GetAddonBackupDownloadEndpoint,HE as GetAddonBackupEndpoint,eA as GetAddonBackupRestoresEndpoint,JE as GetAddonBackupsEndpoint,zE as GetAddonBackupschedulesEndpoint,nA as GetAddonContainersEndpoint,rA as GetAddonCredentialsEndpoint,qE as GetAddonEndpoint,cA as GetAddonRestoresEndpoint,hv as GetAddonTypesEndpoint,pA as GetAddonVersionEndpoint,Qm as GetApiEndpoint,ev as GetApiEndpointPaginated,mv as GetBackupdestinationEndpoint,Dv as GetCloudClusterEndpoint,kv as GetCloudIntegrationEndpoint,qv as GetDnsidEndpoint,zv as GetDomainEndpoint,Wv as GetDomaincertificateEndpoint,yv as GetInvoiceDetailsEndpoint,FA as GetJobBranchesEndpoint,UA as GetJobBuildEndpoint,RA as GetJobBuildargumentdetailsEndpoint,IA as GetJobBuildargumentsEndpoint,DA as GetJobBuildsEndpoint,OA as GetJobContainersEndpoint,kA as GetJobDeploymentEndpoint,CA as GetJobEndpoint,TA as GetJobHealthchecksEndpoint,qA as GetJobPullrequestsEndpoint,$A as GetJobRunEndpoint,GA as GetJobRunsEndpoint,JA as GetJobRuntimeenvironmentEndpoint,HA as GetJobRuntimeenvironmentdetailsEndpoint,lE as GetLogsinkEndpoint,AE as GetNotificationEndpoint,QA as GetPipelineEndpoint,eb as GetPreviewtemplateEndpoint,ub as GetPreviewtemplaterunEndpoint,kE as GetProjectEndpoint,wE as GetRegistrycredentialsEndpoint,ib as GetReleaseflowEndpoint,db as GetReleaseflowrunEndpoint,vb as GetSecretEndpoint,Cb as GetSecretdetailsEndpoint,yb as GetSecretlinkEndpoint,kb as GetServiceBranchesEndpoint,zb as GetServiceBuildEndpoint,qb as GetServiceBuildargumentdetailsEndpoint,Lb as GetServiceBuildargumentsEndpoint,xb as GetServiceBuildsEndpoint,Wb as GetServiceContainersEndpoint,Jb as GetServiceDeploymentEndpoint,Pb as GetServiceEndpoint,Hb as GetServiceHealthchecksEndpoint,Kb as GetServicePortsEndpoint,Qb as GetServicePullrequestsEndpoint,ny as GetServiceRuntimeenvironmentEndpoint,oy as GetServiceRuntimeenvironmentdetailsEndpoint,Hv as GetSubdomainEndpoint,nE as GetSubdomainPathEndpoint,Ey as GetTagEndpoint,Cy as GetTemplateEndpoint,Iy as GetTemplaterunEndpoint,ay as GetVolumeEndpoint,oA as ImportAddonBackupEndpoint,Jv as ImportDomaincertificateEndpoint,TE as ListAddonsEndpoint,pv as ListBackupdestinationsEndpoint,Av as ListBackupdestinationsbackupsEndpoint,RE as ListBranchesEndpoint,Sv as ListCloudClusterNodesEndpoint,Cv as ListCloudClustersEndpoint,Uv as ListCloudIntegrationsEndpoint,Lv as ListCloudNodetypesEndpoint,gv as ListCloudProvidersEndpoint,Nv as ListCloudRegionsEndpoint,Mv as ListDomainsEndpoint,bv as ListInvoicesEndpoint,mA as ListJobsEndpoint,cE as ListLogsinksEndpoint,vE as ListNotificationsEndpoint,XA as ListPipelinesEndpoint,jE as ListPlansEndpoint,nb as ListPreviewtemplatepreviewsEndpoint,ob as ListPreviewtemplaterunsEndpoint,_E as ListProjectsEndpoint,py as ListRegionsEndpoint,gE as ListRegistrycredentialsEndpoint,cb as ListReleaseflowrunsEndpoint,SE as ListReposEndpoint,hb as ListSecretsEndpoint,wb as ListServicesEndpoint,tE as ListSubdomainPathEndpoint,fy as ListTagsEndpoint,By as ListTemplaterunsEndpoint,yy as ListTemplatesEndpoint,BE as ListVcsEndpoint,iy as ListVolumesEndpoint,$m as LogType,Hm as MetricType,Vm as NorthflankApiCallError,tc as NorthflankExecCommand,Jm as NorthflankFileCopy,av as NorthflankLogFetch,lv as NorthflankMetricFetch,Qa as NorthflankPortForwarder,ME as PatchAddonEndpoint,ov as PatchApiEndpoint,vv as PatchBackupdestinationEndpoint,Bv as PatchCloudClusterEndpoint,xv as PatchCloudIntegrationEndpoint,AA as PatchJobCronEndpoint,gA as PatchJobManualEndpoint,OE as PatchProjectEndpoint,mb as PatchSecretEndpoint,Bb as PatchServiceBuildEndpoint,Rb as PatchServiceCombinedEndpoint,Ub as PatchServiceDeploymentEndpoint,Ay as PatchTagEndpoint,iA as PauseAddonEndpoint,NA as PauseJobEndpoint,pE as PauseLogsinkEndpoint,Yb as PauseServiceEndpoint,tv as PostApiEndpoint,NE as PutAddonEndpoint,rv as PutApiEndpoint,Fv as PutCloudClusterEndpoint,Ov as PutCloudIntegrationEndpoint,EA as PutJobCronEndpoint,yA as PutJobManualEndpoint,PE as PutProjectEndpoint,fb as PutSecretEndpoint,Db as PutServiceBuildEndpoint,Sb as PutServiceCombinedEndpoint,_b as PutServiceDeploymentEndpoint,vy as PutTagEndpoint,sA as ResetAddonEndpoint,aA as RestartAddonEndpoint,ey as RestartServiceEndpoint,QE as RestoreAddonBackupEndpoint,dA as ResumeAddonEndpoint,MA as ResumeJobEndpoint,fE as ResumeLogsinkEndpoint,ty as ResumeServiceEndpoint,tA as RetainAddonBackupEndpoint,ab as RunReleaseflowEndpoint,Dy as RunTemplateEndpoint,lA as ScaleAddonEndpoint,ZA as ScaleJobEndpoint,uy as ScaleServiceEndpoint,BA as StartJobBuildEndpoint,zA as StartJobRunEndpoint,Tb as StartServiceBuildEndpoint,KA as SuspendJobEndpoint,Kv as UnassignSubdomainEndpoint,iE as UnassignSubdomainPathEndpoint,_v as UncordonCloudClusterNodeEndpoint,uA as UpdateAddonNetworksettingsEndpoint,hA as UpdateAddonSecurityEndpoint,fA as UpdateAddonVersionEndpoint,SA as UpdateJobBuildargumentsEndpoint,jA as UpdateJobBuildoptionsEndpoint,_A as UpdateJobBuildsourceEndpoint,xA as UpdateJobDeploymentEndpoint,LA as UpdateJobHealthchecksEndpoint,VA as UpdateJobRuntimeenvironmentEndpoint,YA as UpdateJobSettingsEndpoint,mE as UpdateLogsinkEndpoint,bE as UpdateNotificationEndpoint,tb as UpdatePreviewtemplateEndpoint,FE as UpdateRegistrycredentialsEndpoint,sb as UpdateReleaseflowEndpoint,Ab as UpdateSecretEndpoint,bb as UpdateSecretlinkEndpoint,Nb as UpdateServiceBuildargumentsEndpoint,Mb as UpdateServiceBuildoptionsEndpoint,Gb as UpdateServiceBuildsourceEndpoint,Vb as UpdateServiceDeploymentEndpoint,Zb as UpdateServiceHealthchecksEndpoint,Xb as UpdateServicePortsEndpoint,ry as UpdateServiceRuntimeenvironmentEndpoint,oE as UpdateSubdomainPathEndpoint,wy as UpdateTemplateEndpoint,cy as UpdateVolumeEndpoint,aE as VerifyDomainEndpoint,sE as VerifySubdomainEndpoint};
|