diff --git a/dist/alks.min.js b/dist/alks.min.js index ec02020d..30728d6b 100644 --- a/dist/alks.min.js +++ b/dist/alks.min.js @@ -1 +1 @@ -!function(global,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((global="undefined"!=typeof globalThis?globalThis:global||self).alks={})}(this,function(e){"use strict";var p=window||this;function a(a){if(a.__esModule)return a;var d=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(a).forEach(function(e){var p=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(d,e,p.get?p:{enumerable:!0,get:function(){return a[e]}})}),d}var d=function(e,p){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,p){e.__proto__=p}||function(e,p){for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&(e[a]=p[a])})(e,p)};var t=function(){return(t=Object.assign||function(e){for(var p,a=1,d=arguments.length;a=e.length?void 0:e)&&e[d++],done:!e}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e,p){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var d,t,i=a.call(e),r=[];try{for(;(void 0===p||0r[0]&&p[1] dist/alks.min.js',build:"npm run clean && npm run compile && npm run rollup && npm run minify",lint:"prettier --write --no-error-on-unmatched-pattern {src,test}/**/*.{ts,js,json,md}",test:"npm run build && npm run lint && npm run mocha && npm run karma",mocha:"nyc mocha test/test.js",coverage:"nyc report --reporter=text-lcov | coveralls",karma:"karma start",docs:"typedoc src/alks.ts",prepare:"husky install",compile:"tsc"},files:["dist/"],repository:{type:"git",url:"https://github.com/Cox-Automotive/alks.js.git"},author:{name:"Cox Automotive",email:"paul.ofallon@coxautoinc.com",url:"https://github.com/Cox-Automotive/"},bugs:{url:"https://github.com/Cox-Automotive/alks.js/issues"},license:"MIT",engines:{node:">=14.0.0"},dependencies:{encoding:"^0.1.13","node-fetch":"^2.6.1",tslib:"^2.3.1",typedoc:"^0.22.15"},devDependencies:{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-typescript":"^8.2.1","@types/node":"^15.0.2","@types/node-fetch":"^2.5.10",browserify:"^17.0.0",chai:"^4.3.4","chai-as-promised":"^7.1.1",coveralls:"^3.0.3",eslint:"^7.25.0","eslint-plugin-jsdoc":"^4.1.1","fetch-mock":"^7.3.1",husky:"^6.0.0",karma:"^6.3.2","karma-browserify":"^8.0.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","lint-staged":"^11.0.0",mkdirp:"^1.0.4",mocha:"^10.0.0",nyc:"^15.1.0",prettier:"^2.3.0",rimraf:"^3.0.2",rollup:"^2.47.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-replace":"^2.2.0",sinon:"^10.0.0",tslint:"^6.1.3",typescript:"^4.2.4","uglify-js":"^3.13.6"},prettier:{singleQuote:!0,semi:!0,arrowParens:"always",endOfLine:"lf",trailingComma:"es5"},"lint-staged":{"{src,test}/**/*.{js,ts,json,md}":["prettier --write"]}},u=void 0!==p?p:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,v=!1;function w(){v=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,a=e.length;p>18&63]+h[d>>12&63]+h[d>>6&63]+h[63&d]);return t.join("")}function g(e){var p;v||w();for(var a=e.length,d=a%3,t="",i=[],r=0,l=a-d;r>2],t+=h[p<<4&63],t+="=="):2==d&&(p=(e[a-2]<<8)+e[a-1],t+=h[p>>10],t+=h[p>>4&63],t+=h[p<<2&63],t+="="),i.push(t),i.join("")}function b(e,p,a,d,t){var i,r,l=8*t-d-1,n=(1<>1,o=-7,s=a?t-1:0,u=a?-1:1,a=e[p+s];for(s+=u,i=a&(1<<-o)-1,a>>=-o,o+=l;0>=-o,o+=d;0>1,s=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,u=d?0:i-1,h=d?1:-1,i=p<0||0===p&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(l=isNaN(p)?1:0,r=m):(r=Math.floor(Math.log(p)/Math.LN2),p*(d=Math.pow(2,-r))<1&&(r--,d*=2),2<=(p+=1<=r+o?s/d:s*Math.pow(2,1-o))*d&&(r++,d/=2),m<=r+o?(l=0,r=m):1<=r+o?(l=(p*d-1)*Math.pow(2,t),r+=o):(l=p*Math.pow(2,o-1)*Math.pow(2,t),r=0));8<=t;e[a+u]=255&l,u+=h,l/=256,t-=8);for(r=r<=D())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D().toString(16)+" bytes");return 0|e}function O(e){return null!=e&&e._isBuffer}function L(e,p){if(O(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var a=(e="string"!=typeof e?""+e:e).length;if(0===a)return 0;for(var d=!1;;)switch(p){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return J(e).length;default:if(d)return X(e).length;p=(""+p).toLowerCase(),d=!0}}function B(e,p,a){var d,t,i,r=!1;if((p=void 0===p||p<0?0:p)>this.length)return"";if((a=void 0===a||a>this.length?this.length:a)<=0)return"";if((a>>>=0)<=(p>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return function(e,p,a){var d=e.length;(!p||p<0)&&(p=0);(!a||a<0||d=e.length){if(t)return-1;a=e.length-1}else if(a<0){if(!t)return-1;a=0}if(O(p="string"==typeof p?R.from(p,d):p))return 0===p.length?-1:F(e,p,a,d,t);if("number"==typeof p)return p&=255,R.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(t?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,p,a):F(e,[p],a,d,t);throw new TypeError("val must be string, number or Buffer")}function F(e,p,a,d,t){var i=1,r=e.length,l=p.length;if(void 0!==d&&("ucs2"===(d=String(d).toLowerCase())||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(e.length<2||p.length<2)return-1;r/=i=2,l/=2,a/=2}function n(e,p){return 1===i?e[p]:e.readUInt16BE(p*i)}if(t)for(var m=-1,o=a;o>8,d=d%256,t.push(d),t.push(a);return t}(p,e.length-a),e,a,d)}function z(e,p,a){a=Math.min(e.length,a);for(var d=[],t=p;t>>10&1023|55296),o=56320|1023&o),d.push(o),t+=s}return function(e){var p=e.length;if(p<=M)return String.fromCharCode.apply(String,e);var a="",d=0;for(;d"},R.prototype.compare=function(e,p,a,d,t){if(!O(e))throw new TypeError("Argument must be a Buffer");if(void 0===a&&(a=e?e.length:0),void 0===d&&(d=0),void 0===t&&(t=this.length),(p=void 0===p?0:p)<0||a>e.length||d<0||t>this.length)throw new RangeError("out of range index");if(t<=d&&a<=p)return 0;if(t<=d)return-1;if(a<=p)return 1;if(this===e)return 0;for(var i=(t>>>=0)-(d>>>=0),r=(a>>>=0)-(p>>>=0),l=Math.min(i,r),n=this.slice(d,t),m=e.slice(p,a),o=0;othis.length)throw new RangeError("Attempt to write outside buffer bounds");d=d||"utf8";for(var i,r,l,n=!1;;)switch(d){case"hex":return function(e,p,a,d){a=Number(a)||0;var t=e.length-a;if((!d||t<(d=Number(d)))&&(d=t),(t=p.length)%2!=0)throw new TypeError("Invalid hex string");t/2e.length)throw new RangeError("Index out of range")}function H(e,p,a,d){p<0&&(p=65535+p+1);for(var t=0,i=Math.min(e.length-a,2);t>>8*(d?t:1-t)}function Y(e,p,a,d){p<0&&(p=4294967295+p+1);for(var t=0,i=Math.min(e.length-a,4);t>>8*(d?t:3-t)&255}function W(e,p,a,d){if(a+d>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function K(e,p,a,d,t){return t||W(e,0,a,4),y(e,p,a,d,23,4),a+4}function $(e,p,a,d,t){return t||W(e,0,a,8),y(e,p,a,d,52,8),a+8}R.prototype.slice=function(e,p){var a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):a>>8):H(this,e,p,!0),p+2},R.prototype.writeUInt16BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>8,this[p+1]=255&e):H(this,e,p,!1),p+2},R.prototype.writeUInt32LE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[p+3]=e>>>24,this[p+2]=e>>>16,this[p+1]=e>>>8,this[p]=255&e):Y(this,e,p,!0),p+4},R.prototype.writeUInt32BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>24,this[p+1]=e>>>16,this[p+2]=e>>>8,this[p+3]=255&e):Y(this,e,p,!1),p+4},R.prototype.writeIntLE=function(e,p,a,d){e=+e,p|=0,d||q(this,e,p,a,(d=Math.pow(2,8*a-1))-1,-d);var t=0,i=1,r=0;for(this[p]=255&e;++t>0)-r&255;return p+a},R.prototype.writeIntBE=function(e,p,a,d){e=+e,p|=0,d||q(this,e,p,a,(d=Math.pow(2,8*a-1))-1,-d);var t=a-1,i=1,r=0;for(this[p+t]=255&e;0<=--t&&(i*=256);)e<0&&0===r&&0!==this[p+t+1]&&(r=1),this[p+t]=(e/i>>0)-r&255;return p+a},R.prototype.writeInt8=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,1,127,-128),R.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[p]=255&(e=e<0?255+e+1:e),p+1},R.prototype.writeInt16LE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[p]=255&e,this[p+1]=e>>>8):H(this,e,p,!0),p+2},R.prototype.writeInt16BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>8,this[p+1]=255&e):H(this,e,p,!1),p+2},R.prototype.writeInt32LE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,2147483647,-2147483648),R.TYPED_ARRAY_SUPPORT?(this[p]=255&e,this[p+1]=e>>>8,this[p+2]=e>>>16,this[p+3]=e>>>24):Y(this,e,p,!0),p+4},R.prototype.writeInt32BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>24,this[p+1]=e>>>16,this[p+2]=e>>>8,this[p+3]=255&e):Y(this,e,p,!1),p+4},R.prototype.writeFloatLE=function(e,p,a){return K(this,e,p,!0,a)},R.prototype.writeFloatBE=function(e,p,a){return K(this,e,p,!1,a)},R.prototype.writeDoubleLE=function(e,p,a){return $(this,e,p,!0,a)},R.prototype.writeDoubleBE=function(e,p,a){return $(this,e,p,!1,a)},R.prototype.copy=function(e,p,a,d){if(a=a||0,d||0===d||(d=this.length),p>=e.length&&(p=e.length),(d=0=this.length)throw new RangeError("sourceStart out of bounds");if(d<0)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length);var t,i=(d=e.length-p>>=0,a=void 0===a?this.length:a>>>0,"number"==typeof(e=e||0))for(l=p;l>6|192,63&a|128)}else if(a<65536){if((p-=3)<0)break;i.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((p-=4)<0)break;i.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return i}function J(e){return function(e){var p;v||w();var a=e.length;if(0>16&255,t[r++]=p>>8&255,t[r++]=255&p;return 2==d?(p=c[e.charCodeAt(l)]<<2|c[e.charCodeAt(l+1)]>>4,t[r++]=255&p):1==d&&(p=c[e.charCodeAt(l)]<<10|c[e.charCodeAt(l+1)]<<4|c[e.charCodeAt(l+2)]>>2,t[r++]=p>>8&255,t[r++]=255&p),t}(function(e){var p;if((e=((p=e).trim?p.trim():p.replace(/^\s+|\s+$/g,"")).replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,p,a,d){for(var t=0;t=p.length||t>=e.length);++t)p[t+a]=e[t];return t}function ee(e){return null!=e&&(!!e._isBuffer||pe(e)||"function"==typeof(e=e).readFloatLE&&"function"==typeof e.slice&&pe(e.slice(0,0)))}function pe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ae=a(Object.freeze({__proto__:null,Buffer:R,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return R.alloc(+(e=+e!=e?0:e))},isBuffer:ee,kMaxLength:T}));function de(){}function te(){te.init.call(this)}function ie(e){return void 0===e._maxListeners?te.defaultMaxListeners:e._maxListeners}function re(e,p,a,d){var t,i;if("function"!=typeof a)throw new TypeError('"listener" argument must be a function');return(t=e._events)?(t.newListener&&(e.emit("newListener",p,a.listener||a),t=e._events),i=t[p]):(t=e._events=new de,e._eventsCount=0),i?("function"==typeof i?i=t[p]=d?[a,i]:[i,a]:d?i.unshift(a):i.push(a),i.warned||(d=ie(e))&&0d&&(i.warned=!0,(d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+p+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",d.emitter=e,d.type=p,d.count=i.length,d=d,"function"==typeof console.warn?console.warn(d):console.log(d))):(i=t[p]=a,++e._eventsCount),e}function le(e,p,a){var d=!1;function t(){e.removeListener(p,t),d||(d=!0,a.apply(e,arguments))}return t.listener=a,t}function ne(e){var p=this._events;if(p){e=p[e];if("function"==typeof e)return 1;if(e)return e.length}return 0}function me(e,p){for(var a=new Array(p);p--;)a[p]=e[p];return a}function oe(){throw new Error("setTimeout has not been defined")}function se(){throw new Error("clearTimeout has not been defined")}de.prototype=Object.create(null),(te.EventEmitter=te).usingDomains=!1,te.prototype.domain=void 0,te.prototype._events=void 0,te.prototype._maxListeners=void 0,te.defaultMaxListeners=10,te.init=function(){this.domain=null,te.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new de,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},te.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},te.prototype.getMaxListeners=function(){return ie(this)},te.prototype.emit=function(e){var p,a,d,t="error"===e,i=this._events;if(i)t=t&&null==i.error;else if(!t)return!1;if(r=this.domain,t){if(t=arguments[1],r)return(t=t||new Error('Uncaught, unspecified "error" event')).domainEmitter=this,t.domain=r,t.domainThrown=!1,r.emit("error",t),!1;if(t instanceof Error)throw t;var r=new Error('Uncaught, unspecified "error" event. ('+t+")");throw r.context=t,r}if(!(p=i[e]))return!1;var l,n="function"==typeof p;switch(l=arguments.length){case 1:!function(e,p,a){if(p)e.call(a);else for(var d=e.length,t=me(e,d),i=0;i>>0),a=this.head,d=0;a;)a.data.copy(p,d),d+=a.data.length,a=a.next;return p};var pp=R.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ap(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!pp(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=tp;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=ip;break;default:return void(this.write=dp)}this.charBuffer=new R(6),this.charReceived=0,this.charLength=0}function dp(e){return e.toString(this.encoding)}function tp(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function ip(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}ap.prototype.write=function(e){for(var p="";this.charLength;){var a=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,a),this.charReceived+=a,this.charReceived>5==6){this.charLength=2;break}if(p<=2&&a>>4==14){this.charLength=3;break}if(p<=3&&a>>3==30){this.charLength=4;break}}this.charReceived=p},ap.prototype.end=function(e){var p,a,d="";return e&&e.length&&(d=this.write(e)),this.charReceived&&(p=this.charReceived,a=this.charBuffer,e=this.encoding,d+=a.slice(0,p).toString(e)),d},mp.ReadableState=np;var rp,lp=(Ye(Be)&&(Be=""),rp=(rp="stream").toUpperCase(),Pe[rp]||(new RegExp("\\b"+rp+"\\b","i").test(Be)?Pe[rp]=function(){var e=function(e){if(!He(e)){for(var p=[],a=0;ap.highWaterMark&&(p.highWaterMark=(sp<=(a=e)?a=sp:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a)),e<=p.length?e:p.ended?p.length:(p.needReadable=!0,0));var a}function hp(e){var p=e._readableState;p.needReadable=!1,p.emittedReadable||(lp("emitReadable",p.flowing),p.emittedReadable=!0,p.sync?ye(cp,e):cp(e))}function cp(e){lp("emit readable"),e.emit("readable"),_p(e)}function fp(e,p){for(var a=p.length;!p.reading&&!p.flowing&&!p.ended&&p.length=p.length?(a=p.decoder?p.buffer.join(""):1===p.buffer.length?p.buffer.head.data:p.buffer.concat(p.length),p.buffer.clear()):a=function(e,p,a){var d;ei.length?i.length:e;if(r===i.length?t+=i:t+=i.slice(0,e),0===(e-=r)){r===i.length?(++d,a.next?p.head=a.next:p.head=p.tail=null):(p.head=a).data=i.slice(r);break}++d}return p.length-=d,t}:function(e,p){var a=R.allocUnsafe(e),d=p.head,t=1;d.data.copy(a),e-=d.data.length;for(;d=d.next;){var i=d.data,r=e>i.length?i.length:e;if(i.copy(a,a.length-e,0,r),0===(e-=r)){r===i.length?(++t,d.next?p.head=d.next:p.head=p.tail=null):(p.head=d).data=i.slice(r);break}++t}return p.length-=t,a})(e,p);return d}(e,p.buffer,p.decoder),a);var a}function bp(e){var p=e._readableState;if(0=p.highWaterMark||p.ended))return lp("read: emitReadable",p.length,p.ended),(0===p.length&&p.ended?bp:hp)(this),null;if(0===(e=up(e,p))&&p.ended)return 0===p.length&&bp(this),null;var d=p.needReadable;return lp("need readable",d),(0===p.length||p.length-ep._pos){var d=a.substr(p._pos);if("x-user-defined"===p._charset){for(var t=new R(d.length),i=0;ip._pos&&(p.push(new R(new Uint8Array(r.result.slice(p._pos)))),p._pos=r.result.byteLength)},r.onload=function(){p.push(null)},r.readAsArrayBuffer(a)}p._xhr.readyState===aa&&"ms-stream"!==p._mode&&p.push(null)},De(ta,Vp);var ia=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];ta.prototype.setHeader=function(e,p){var a=e.toLowerCase();-1===ia.indexOf(a)&&(this._headers[a]={name:e,value:p})},ta.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},ta.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},ta.prototype._onFinish=function(){var p=this;if(!p._destroyed){var e,a=p._opts,d=p._headers;if("POST"!==a.method&&"PUT"!==a.method&&"PATCH"!==a.method||(e=function(){if(void 0!==Hp)return Hp;try{new u.Blob([new ArrayBuffer(1)]),Hp=!0}catch(e){Hp=!1}return Hp}()?new u.Blob(p._body.map(function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(ee(e)){for(var p=new Uint8Array(e.length),a=e.length,d=0;d= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ga=la-na,ba=Math.floor,ya=String.fromCharCode;function Sa(e){throw new RangeError(_a[e])}function Na(e,p){for(var a=e.length,d=[];a--;)d[a]=p(e[a]);return d}function Ta(e,p){var a=e.split("@"),d="";return 1>>10&1023|55296),e=56320|1023&e),p+=ya(e)}).join("")}function Aa(e,p){return e+22+75*(e<26)-((0!=p)<<5)}function Ea(e,p,a){var d=0;for(e=a?ba(e/sa):e>>1,e+=ba(e/p);ga*ma>>1ba((ra-o)/i))&&Sa("overflow"),o+=l*i,!(l<(l=r<=u?na:u+ma<=r?ma:r-u));r+=la)i>ba(ra/(l=la-l))&&Sa("overflow"),i*=l;u=Ea(o-t,p=n.length+1,0==t),ba(o/p)>ra-s&&Sa("overflow"),s+=ba(o/p),o%=p,n.splice(o++,0,s)}return Va(n)}function Ra(e){for(var p,a,d,t,i,r,l,n,m,o,s=[],u=(e=Da(e)).length,h=ha,c=ua,f=p=0;fba((ra-p)/(n=a+1))&&Sa("overflow"),p+=(t-h)*n,h=t,f=0;fra&&Sa("overflow"),l==h){for(i=p,r=la;!(i<(m=r<=c?na:c+ma<=r?ma:r-c));r+=la)s.push(ya(Aa(m+(o=i-m)%(m=la-m),0))),i=ba(o/m);s.push(ya(Aa(i,0))),c=Ea(p,n,a==d),p=0,++a}++p,++h}return s.join("")}function xa(e){return Ta(e,function(e){return fa.test(e)?ka(e.slice(4).toLowerCase()):e})}function Ca(e){return Ta(e,function(e){return va.test(e)?"xn--"+Ra(e):e})}Ee={decode:Da,encode:Va},ke=Object.freeze({__proto__:null,decode:ka,encode:Ra,toUnicode:xa,toASCII:Ca,version:"1.4.1",ucs2:Ee,default:{version:"1.4.1",ucs2:Ee,toASCII:Ca,toUnicode:xa,encode:Ra,decode:ka}});var Oa=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function La(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Ba(e,p){if(e.map)return e.map(p);for(var a=[],d=0;d",'"',"`"," ","\r","\n","\t"]),Ma=["'"].concat(Ae),Za=["%","/","?",";","#"].concat(Ma),qa=["/","?","#"],Ha=255,Ya=/^[+a-z0-9A-Z_-]{0,63}$/,Wa=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ka={javascript:!0,"javascript:":!0},$a={javascript:!0,"javascript:":!0},Ga={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Xa(e,p,a){if(e&&Ke(e)&&e instanceof Fa)return e;var d=new Fa;return d.parse(e,p,a),d}function Ja(e,p,a,d){if(!He(p))throw new TypeError("Parameter 'url' must be a string, not "+typeof p);var t=p.indexOf("?"),i=-1!==t&&tHa?e.hostname="":e.hostname=e.hostname.toLowerCase(),s||(e.hostname=Ca(e.hostname));var S=e.port?":"+e.port:"",N=e.hostname||"";e.host=N+S,e.href+=e.host,s&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!Ka[V])for(h=0,c=Ma.length;hi)throw new TypeError("Argument is not in byte range");return a}if(!isNaN(a)&&p.clamp)return a=(p=a)%1==.5&&0==(1&p)?Math.floor(p):Math.round(p),ai&&(a=i),a;if(!Number.isFinite(a)||0===a)return 0;if(a=id(a)*Math.floor(Math.abs(a)),a%=r,!d.unsigned&&a>=l)return a-r;if(d.unsigned)if(a<0)a+=r;else if(-0===a)return 0;return a}}Ae.void=function(){},Ae.boolean=function(e){return!!e},Ae.byte=rd(8,{unsigned:!1}),Ae.octet=rd(8,{unsigned:!0}),Ae.short=rd(16,{unsigned:!1}),Ae["unsigned short"]=rd(16,{unsigned:!0}),Ae.long=rd(32,{unsigned:!1}),Ae["unsigned long"]=rd(32,{unsigned:!0}),Ae["long long"]=rd(32,{unsigned:!1,moduloBitLength:64}),Ae["unsigned long long"]=rd(32,{unsigned:!0,moduloBitLength:64}),Ae.double=function(e){e=+e;if(!Number.isFinite(e))throw new TypeError("Argument is not a finite floating-point value");return e},Ae["unrestricted double"]=function(e){e=+e;if(isNaN(e))throw new TypeError("Argument is NaN");return e},Ae.float=Ae.double,Ae["unrestricted float"]=Ae["unrestricted double"],Ae.DOMString=function(e,p){return(p=p||{}).treatNullAsEmptyString&&null===e?"":String(e)},Ae.ByteString=function(e,p){const a=String(e);var d;for(let e=0;void 0!==(d=a.codePointAt(e));++e)if(255=e)return t;t[0][0]>e?a=d-1:p=d+1}return null}var wd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function _d(e){return e.replace(wd,"_").length}var gd=/[\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\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\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-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\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-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function bd(e,p,a){var d=function(e,p,a){for(var d=!1,t="",i=_d(e),r=0;r=Math.pow(256,5-a.length))return m;let t=a.pop(),i=0;for(const l of a)t+=l*Math.pow(256,3-i),++i;return t}function N(p){let a="";var d,t=function(p){let a=null,d=1,t=null,i=0;for(let e=0;ed&&(a=t,d=i),t=null,i=0):(null===t&&(t=e),++i);i>d&&(a=t,d=i);return{idx:a,len:d}}(p).idx;let i=!1;for(let e=0;e<=7;++e)i&&0===p[e]||(i=i&&!1,t!==e?(a+=p[e].toString(16),7!==e&&(a+=":")):(d=0===e?"::":":",a+=d,i=!0));return a}function T(e,p){if("["===e[0])return"]"!==e[e.length-1]?m:function(d){const t=[0,0,0,0,0,0,0,0];let i=0,p=null,r=0;if(58===(d=n.ucs2.decode(d))[r]){if(58!==d[r+1])return m;r+=2,++i,p=i}for(;rMath.pow(2,16)-1)return this.parseError=!0,m;this.url.port=p===(e=this.url.scheme,t[e])?null:p,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const k=new Set([47,92,63,35]);E.prototype["parse file"]=function(e){var p;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=this.input[this.pointer+1],!r(e)||58!==p&&124!==p)||2<=this.input.length-this.pointer-1&&!k.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),V(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},E.prototype["parse file slash"]=function(e){return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(e=this.base.path[0]).length&&r(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},E.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&h(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=T(this.buffer,f(this.url));if(e===m)return m;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},E.prototype["parse path start"]=function(e){return f(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},E.prototype["parse path"]=function(e){if(isNaN(e)||47===e||f(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(f(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(V(this.url),47===e||f(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||f(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&h(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;1>>7)]}function st(e,p){e.pending_buf[e.pending++]=255&p,e.pending_buf[e.pending++]=p>>>8&255}function ut(e,p,a){e.bi_valid>Zd-a?(e.bi_buf|=p<>Zd-e.bi_valid,e.bi_valid+=a-Zd):(e.bi_buf|=p<>>=1,a<<=1,0<--p;);return a>>>1}function ft(e,p,a){for(var d,t=new Array(Md+1),i=0,r=1;r<=Md;r++)t[r]=i=i+a[r-1]<<1;for(d=0;d<=p;d++){var l=e[2*d+1];0!==l&&(e[2*d]=ct(t[l]++,l))}}function vt(e){for(var p=0;p>1;1<=a;a--)gt(e,i,a);for(t=n;a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gt(e,i,1),d=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=d,i[2*t]=i[2*a]+i[2*d],e.depth[t]=(e.depth[a]>=e.depth[d]?e.depth[a]:e.depth[d])+1,i[2*a+1]=i[2*d+1]=t,e.heap[1]=t++,gt(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,p){for(var a,d,t,i,r,l=p.dyn_tree,n=p.max_code,m=p.stat_desc.static_tree,o=p.stat_desc.has_stree,s=p.stat_desc.extra_bits,u=p.stat_desc.extra_base,h=p.stat_desc.max_length,c=0,f=0;f<=Md;f++)e.bl_count[f]=0;for(l[2*e.heap[e.heap_max]+1]=0,a=e.heap_max+1;a>=7;i>=8,e.bi_valid-=8)}function Et(e,p,a,d){var t,i,r=0;0>>=1)if(1&p&&0!==e.dyn_ltree[2*a])return kd;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Rd;for(a=32;a>>3,(i=e.static_len+3+7>>>3)<=t&&(t=i)):t=i=a+5,a+4<=t&&-1!==p?Vt(e,p,a,d):e.strategy===Ed||i===t?(ut(e,(Ld<<1)+(d?1:0),3),bt(e,Qd,et)):(ut(e,(Bd<<1)+(d?1:0),3),function(e,p,a,d){var t;for(ut(e,p-257,5),ut(e,a-1,5),ut(e,d-4,4),t=0;t>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&p,e.pending_buf[e.l_buf+e.last_lit]=255&a,e.last_lit++,0===p?e.dyn_ltree[2*a]++:(e.matches++,p--,e.dyn_ltree[2*(at[a]+Ud+1)]++,e.dyn_dtree[2*ot(p)]++),e.last_lit===e.lit_bufsize-1}function Rt(e,p,a,d){for(var t=65535&e|0,i=e>>>16&65535|0,r=0;0!==a;){for(a-=r=2e3>>1:a>>>1;e[p]=a}return e}();function Ct(e,p,a,d){var t=xt,i=d+a;e^=-1;for(var r=d;r>>8^t[255&(e^p[r])];return-1^e}var Ot=0,Lt=1,Bt=3,Pt=4,Ut=5,Ft=0,It=1,jt=-2,zt=-3,Mt=-5,Zt=-1,qt=1,Ht=2,Yt=3,Wt=4,Kt=2,$t=8,Gt=9,Xt=286,Jt=30,Qt=19,ei=2*Xt+1,pi=15,ai=3,di=258,ti=di+ai+1,ii=32,ri=42,li=69,ni=73,mi=91,oi=103,si=113,ui=666,hi=1,ci=2,fi=3,vi=4,wi=3;function _i(e,p){return e.msg=Sd[p],p}function gi(e){return(e<<1)-(4e.avail_out?e.avail_out:a)&&(Td(e.output,p.pending_buf,p.pending_out,a,e.next_out),e.next_out+=a,p.pending_out+=a,e.total_out+=a,e.avail_out-=a,p.pending-=a,0===p.pending&&(p.pending_out=0))}function Si(e,p){Et(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,p),e.block_start=e.strstart,yi(e.strm)}function Ni(e,p){e.pending_buf[e.pending++]=p}function Ti(e,p){e.pending_buf[e.pending++]=p>>>8&255,e.pending_buf[e.pending++]=255&p}function Di(e,p){var a,d,t=e.max_chain_length,i=e.strstart,r=e.prev_length,l=e.nice_match,n=e.strstart>e.w_size-ti?e.strstart-(e.w_size-ti):0,m=e.window,o=e.w_mask,s=e.prev,u=e.strstart+di,h=m[i+r-1],c=m[i+r];e.prev_length>=e.good_match&&(t>>=2),l>e.lookahead&&(l=e.lookahead);do{if(m[(a=p)+r]===c&&m[a+r-1]===h&&m[a]===m[i]&&m[++a]===m[i+1]){for(i+=2,a++;m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&in&&0!=--t);return r<=e.lookahead?r:e.lookahead}function Vi(e){var p,a,d,t,i,r,l,n,m,o=e.w_size;do{if(m=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-ti)){for(Td(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,p=a=e.hash_size;d=e.head[--p],e.head[p]=o<=d?d-o:0,--a;);for(p=a=o;d=e.prev[--p],e.prev[p]=o<=d?d-o:0,--a;);m+=o}if(0===e.strm.avail_in)break;if(i=e.strm,r=e.window,l=e.strstart+e.lookahead,n=m,m=void 0,m=i.avail_in,a=0===(m=n=ai)for(t=e.strstart-e.insert,e.ins_h=e.window[t],e.ins_h=(e.ins_h<=ai&&(e.ins_h=(e.ins_h<=ai)if(d=kt(e,e.strstart-e.match_start,e.match_length-ai),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ai){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=ai&&(e.ins_h=(e.ins_h<=ai&&e.match_length<=e.prev_length){for(t=e.strstart+e.lookahead-ai,d=kt(e,e.strstart-1-e.prev_match,e.prev_length-ai),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=t&&(e.ins_h=(e.ins_h<>8&255),Ni(a,a.gzhead.time>>16&255),Ni(a,a.gzhead.time>>24&255),Ni(a,9===a.level?2:a.strategy>=Ht||a.level<2?4:0),Ni(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(Ni(a,255&a.gzhead.extra.length),Ni(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=Ct(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=li):(Ni(a,0),Ni(a,0),Ni(a,0),Ni(a,0),Ni(a,0),Ni(a,9===a.level?2:a.strategy>=Ht||a.level<2?4:0),Ni(a,wi),a.status=si)):(i=$t+(a.w_bits-8<<4)<<8,i|=(a.strategy>=Ht||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(i|=ii),i+=31-i%31,a.status=si,Ti(a,i),0!==a.strstart&&(Ti(a,e.adler>>>16),Ti(a,65535&e.adler)),e.adler=1)),a.status===li)if(a.gzhead.extra){for(d=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),yi(e),d=a.pending,a.pending!==a.pending_buf_size));)Ni(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=ni)}else a.status=ni;if(a.status===ni)if(a.gzhead.name){d=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),yi(e),d=a.pending,a.pending===a.pending_buf_size)){t=1;break}}while(t=a.gzindexd&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),0===t&&(a.gzindex=0,a.status=mi)}else a.status=mi;if(a.status===mi)if(a.gzhead.comment){d=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),yi(e),d=a.pending,a.pending===a.pending_buf_size)){t=1;break}}while(t=a.gzindexd&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),0===t&&(a.status=oi)}else a.status=oi;if(a.status===oi&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&yi(e),a.pending+2<=a.pending_buf_size&&(Ni(a,255&e.adler),Ni(a,e.adler>>8&255),e.adler=0,a.status=si)):a.status=si),0!==a.pending){if(yi(e),0===e.avail_out)return a.last_flush=-1,Ft}else if(0===e.avail_in&&gi(p)<=gi(r)&&p!==Pt)return _i(e,Mt);if(a.status===ui&&0!==e.avail_in)return _i(e,Mt);if(0!==e.avail_in||0!==a.lookahead||p!==Ot&&a.status!==ui){var r=a.strategy===Ht?function(e,p){for(var a;;){if(0===e.lookahead&&(Vi(e),0===e.lookahead)){if(p===Ot)return hi;break}if(e.match_length=0,a=kt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,a&&(Si(e,!1),0===e.strm.avail_out))return hi}return e.insert=0,p===Pt?(Si(e,!0),0===e.strm.avail_out?fi:vi):e.last_lit&&(Si(e,!1),0===e.strm.avail_out)?hi:ci}(a,p):a.strategy===Yt?function(e,p){for(var a,d,t,i,r=e.window;;){if(e.lookahead<=di){if(Vi(e),e.lookahead<=di&&p===Ot)return hi;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ai&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ai?(a=kt(e,1,e.match_length-ai),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(a=kt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),a&&(Si(e,!1),0===e.strm.avail_out))return hi}return e.insert=0,p===Pt?(Si(e,!0),0===e.strm.avail_out?fi:vi):e.last_lit&&(Si(e,!1),0===e.strm.avail_out)?hi:ci}(a,p):Oi[a.level].func(a,p);if(r!==fi&&r!==vi||(a.status=ui),r===hi||r===fi)return 0===e.avail_out&&(a.last_flush=-1),Ft;if(r===ci&&(p===Lt?At(a):p!==Ut&&(Vt(a,0,0,!1),p===Bt&&(bi(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),yi(e),0===e.avail_out))return a.last_flush=-1,Ft}return p!==Pt?Ft:a.wrap<=0?It:(2===a.wrap?(Ni(a,255&e.adler),Ni(a,e.adler>>8&255),Ni(a,e.adler>>16&255),Ni(a,e.adler>>24&255),Ni(a,255&e.total_in),Ni(a,e.total_in>>8&255),Ni(a,e.total_in>>16&255),Ni(a,e.total_in>>24&255)):(Ti(a,e.adler>>>16),Ti(a,65535&e.adler)),yi(e),0e.pending_buf_size-5&&(a=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Vi(e),0===e.lookahead&&p===Ot)return hi;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var d=e.block_start+a;if((0===e.strstart||e.strstart>=d)&&(e.lookahead=e.strstart-d,e.strstart=d,Si(e,!1),0===e.strm.avail_out))return hi;if(e.strstart-e.block_start>=e.w_size-ti&&(Si(e,!1),0===e.strm.avail_out))return hi}return e.insert=0,p===Pt?(Si(e,!0),0===e.strm.avail_out?fi:vi):(e.strstart>e.block_start&&(Si(e,!1),e.strm.avail_out),hi)}),new ki(4,4,8,4,Ai),new ki(4,5,16,8,Ai),new ki(4,6,32,32,Ai),new ki(4,4,16,16,Ei),new ki(8,16,32,32,Ei),new ki(8,16,128,128,Ei),new ki(8,32,128,256,Ei),new ki(32,128,258,1024,Ei),new ki(32,258,258,4096,Ei)],Li=30,Bi=12;var Pi=15,Ui=852,Fi=592,Ii=0,ji=1,zi=2,Mi=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Zi=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],qi=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Hi=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Yi(e,p,a,d,t,i,r,l){for(var n,m,o,s,u,h,c,f,v,w=l.bits,_=0,g=0,b=0,y=0,S=0,N=0,T=0,D=0,V=0,A=0,E=null,k=0,R=new Vd(Pi+1),x=new Vd(Pi+1),C=null,O=0,_=0;_<=Pi;_++)R[_]=0;for(g=0;gh?(f=C[O+r[g]],E[k+r[g]]):(f=96,0),n=1<<(c=_-T),b=m=1<>T)+(m-=n)]=c<<24|f<<16|v|0,0!==m;);for(n=1<<_-1;A&n;)n>>=1;if(0!==n?(A&=n-1,A+=n):A=0,g++,0==--R[_]){if(_===y)break;_=p[a+r[g]]}if(S<_&&(A&s)!==o){for(u+=b,D=1<<(N=_-(T=0===T?S:T));N+T>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Mr(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Vd(320),this.work=new Vd(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Zr(e){var p;return e&&e.state?((p=e.state).wsize=0,p.whave=0,p.wnext=0,(p=e)&&p.state?(e=p.state,p.total_in=p.total_out=e.total=0,p.msg="",e.wrap&&(p.adler=1&e.wrap),e.mode=lr,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Ad(Ir),e.distcode=e.distdyn=new Ad(jr),e.sane=1,e.back=-1,Qi):ar):ar}function qr(e,p){var a,d,t;return e?(a=new Mr,(e.state=a).window=null,d=p,(a=(a=e)&&a.state?(p=a.state,d<0?(t=0,d=-d):(t=1+(d>>4),d<48&&(d&=15)),d&&(d<8||15>>8&255,a.check=Ct(a.check,C,2,0),o=m=0,a.mode=nr;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",a.mode=Pr;break}if((15&m)!==rr){e.msg="unknown compression method",a.mode=Pr;break}if(o-=4,S=8+(15&(m>>>=4)),0===a.wbits)a.wbits=S;else if(S>a.wbits){e.msg="invalid window size",a.mode=Pr;break}a.dmax=1<>8&1),512&a.flags&&(C[0]=255&m,C[1]=m>>>8&255,a.check=Ct(a.check,C,2,0)),o=m=0,a.mode=mr;case mr:for(;o<32;){if(0===l)break e;l--,m+=d[i++]<>>8&255,C[2]=m>>>16&255,C[3]=m>>>24&255,a.check=Ct(a.check,C,4,0)),o=m=0,a.mode=or;case or:for(;o<16;){if(0===l)break e;l--,m+=d[i++]<>8),512&a.flags&&(C[0]=255&m,C[1]=m>>>8&255,a.check=Ct(a.check,C,2,0)),o=m=0,a.mode=sr;case sr:if(1024&a.flags){for(;o<16;){if(0===l)break e;l--,m+=d[i++]<>>8&255,a.check=Ct(a.check,C,2,0)),o=m=0}else a.head&&(a.head.extra=null);a.mode=ur;case ur:if(1024&a.flags&&((h=l<(h=a.length)?l:h)&&(a.head&&(S=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),Td(a.head.extra,d,i,h,S)),512&a.flags&&(a.check=Ct(a.check,d,h,i)),l-=h,i+=h,a.length-=h),a.length))break e;a.length=0,a.mode=hr;case hr:if(2048&a.flags){if(0===l)break e;for(h=0;S=d[i+h++],a.head&&S&&a.length<65536&&(a.head.name+=String.fromCharCode(S)),S&&h>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=_r;break;case vr:for(;o<32;){if(0===l)break e;l--,m+=d[i++]<>>=7&o,o-=7&o,a.mode=Or;break}for(;o<3;){if(0===l)break e;l--,m+=d[i++]<>>=1)){case 0:a.mode=br;break;case 1:if(!function(e){if(Wr){var p;for(Hr=new Ad(512),Yr=new Ad(32),p=0;p<144;)e.lens[p++]=8;for(;p<256;)e.lens[p++]=9;for(;p<280;)e.lens[p++]=7;for(;p<288;)e.lens[p++]=8;for(Yi(Ki,e.lens,0,288,Hr,0,e.work,{bits:9}),p=0;p<32;)e.lens[p++]=5;Yi($i,e.lens,0,32,Yr,0,e.work,{bits:5}),Wr=!1}e.lencode=Hr,e.lenbits=9,e.distcode=Yr,e.distbits=5}(a),a.mode=Vr,p!==Ji)break;m>>>=2,o-=2;break e;case 2:a.mode=Nr;break;case 3:e.msg="invalid block type",a.mode=Pr}m>>>=2,o-=2;break;case br:for(m>>>=7&o,o-=7&o;o<32;){if(0===l)break e;l--,m+=d[i++]<>>16^65535)){e.msg="invalid stored block lengths",a.mode=Pr;break}if(a.length=65535&m,o=m=0,a.mode=yr,p===Ji)break e;case yr:a.mode=Sr;case Sr:if(h=a.length){if(0===(h=n<(h=l>>=5,o-=5,a.ndist=1+(31&m),m>>>=5,o-=5,a.ncode=4+(15&m),m>>>=4,o-=4,286>>=3,o-=3}for(;a.have<19;)a.lens[O[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,T={bits:a.lenbits},N=Yi(Wi,a.lens,0,19,a.lencode,0,a.work,T),a.lenbits=T.bits,N){e.msg="invalid code lengths set",a.mode=Pr;break}a.have=0,a.mode=Dr;case Dr:for(;a.have>>16&255,_=65535&x,!((v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>>=v,o-=v,a.lens[a.have++]=_;else{if(16===_){for(D=v+2;o>>=v,o-=v,0===a.have){e.msg="invalid bit length repeat",a.mode=Pr;break}S=a.lens[a.have-1],h=3+(3&m),m>>>=2,o-=2}else if(17===_){for(D=v+3;o>>=v)),m>>>=3,o-=3}else{for(D=v+7;o>>=v)),m>>>=7,o-=7}if(a.have+h>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=Pr;break}for(;h--;)a.lens[a.have++]=S}}if(a.mode===Pr)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=Pr;break}if(a.lenbits=9,T={bits:a.lenbits},N=Yi(Ki,a.lens,0,a.nlen,a.lencode,0,a.work,T),a.lenbits=T.bits,N){e.msg="invalid literal/lengths set",a.mode=Pr;break}if(a.distbits=6,a.distcode=a.distdyn,T={bits:a.distbits},N=Yi($i,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,T),a.distbits=T.bits,N){e.msg="invalid distances set",a.mode=Pr;break}if(a.mode=Vr,p===Ji)break e;case Vr:a.mode=Ar;case Ar:if(6<=l&&258<=n){e.next_out=r,e.avail_out=n,e.next_in=i,e.avail_in=l,a.hold=m,a.bits=o,function(e,p){var a,d,t,i,r,l,n=e.state,m=e.next_in,o=e.input,s=m+(e.avail_in-5),u=e.next_out,h=e.output,c=u-(p-e.avail_out),f=u+(e.avail_out-257),v=n.dmax,w=n.wsize,_=n.whave,g=n.wnext,b=n.window,y=n.hold,S=n.bits,N=n.lencode,T=n.distcode,D=(1<>>=d=a>>>24,S-=d,0===(d=a>>>16&255))h[u++]=65535&a;else{if(!(16&d)){if(0==(64&d)){a=N[(65535&a)+(y&(1<>>=d,S-=d),S<15&&(y+=o[m++]<>>=d=a>>>24,S-=d,!(16&(d=a>>>16&255))){if(0==(64&d)){a=T[(65535&a)+(y&(1<>>=d,S-=d,(d=u-c)>3)<<3))-1,e.next_in=m-=t,e.next_out=u,e.avail_in=m>>16&255,_=65535&x,!((v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>g)])>>>16&255,_=65535&x,!(g+(v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>>=g,o-=g,a.back+=g}if(m>>>=v,o-=v,a.back+=v,a.length=_,0===w){a.mode=Cr;break}if(32&w){a.back=-1,a.mode=_r;break}if(64&w){e.msg="invalid literal/length code",a.mode=Pr;break}a.extra=15&w,a.mode=Er;case Er:if(a.extra){for(D=a.extra;o>>=a.extra,o-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=kr;case kr:for(;w=(x=a.distcode[m&(1<>>16&255,_=65535&x,!((v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>g)])>>>16&255,_=65535&x,!(g+(v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>>=g,o-=g,a.back+=g}if(m>>>=v,o-=v,a.back+=v,64&w){e.msg="invalid distance code",a.mode=Pr;break}a.offset=_,a.extra=15&w,a.mode=Rr;case Rr:if(a.extra){for(D=a.extra;o>>=a.extra,o-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=Pr;break}a.mode=xr;case xr:if(0===n)break e;if(a.offset>(h=u-n)){if((h=a.offset-h)>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=Pr;break}c=h>a.wnext?(h-=a.wnext,a.wsize-h):a.wnext-h,h>a.length&&(h=a.length),f=a.window}else f=t,c=r-a.offset,h=a.length;for(n-=h=n=R.wsize?(Td(R.window,A,E-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(V=R.wsize-R.wnext,Td(R.window,A,E-k,V=kpl.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitspl.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelpl.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelpl.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=pl.Z_FILTERED&&e.strategy!=pl.Z_HUFFMAN_ONLY&&e.strategy!=pl.Z_RLE&&e.strategy!=pl.Z_FIXED&&e.strategy!=pl.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!R.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new pl.Zlib(p);var a=this;this._hadError=!1,this._binding.onerror=function(e,p){a._binding=null,a._hadError=!0;e=new Error(e);e.errno=p,e.code=pl.codes[p],a.emit("error",e)};var d=pl.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(d=e.level);p=pl.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(p=e.strategy),this._binding.init(e.windowBits||pl.Z_DEFAULT_WINDOWBITS,d,e.memLevel||pl.Z_DEFAULT_MEMLEVEL,p,e.dictionary),this._buffer=new R(this._chunkSize),this._offset=0,this._closed=!1,this._level=d,this._strategy=p,this.once("end",this.close)}Object.keys(al).forEach(function(e){al[al[e]]=e}),De(ul,zp),ul.prototype.params=function(e,p,a){if(epl.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(p!=pl.Z_FILTERED&&p!=pl.Z_HUFFMAN_ONLY&&p!=pl.Z_RLE&&p!=pl.Z_FIXED&&p!=pl.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+p);var d;this._level!==e||this._strategy!==p?(d=this).flush(pl.Z_SYNC_FLUSH,function(){d._binding.params(e,p),d._hadError||(d._level=e,d._strategy=p,a&&a())}):Oe.nextTick(a)},ul.prototype.reset=function(){return this._binding.reset()},ul.prototype._flush=function(e){this._transform(new R(0),"",e)},ul.prototype.flush=function(e,p){var a,d=this._writableState;"function"!=typeof e&&(void 0!==e||p)||(p=e,e=pl.Z_FULL_FLUSH),d.ended?p&&Oe.nextTick(p):d.ending?p&&this.once("end",p):d.needDrain?(a=this).once("drain",function(){a.flush(p)}):(this._flushFlag=e,this.write(new R(0),"",p))},ul.prototype.close=function(e){var p;e&&Oe.nextTick(e),this._closed||(this._closed=!0,this._binding.close(),p=this,Oe.nextTick(function(){p.emit("close")}))},ul.prototype._transform=function(e,p,a){var d,t=this._writableState,i=(t.ending||t.ended)&&(!e||t.length===e.length);if(null===!e&&!R.isBuffer(e))return a(new Error("invalid input"));i?d=pl.Z_FINISH:(d=this._flushFlag,e.length>=t.length&&(this._flushFlag=this._opts.flush||pl.Z_NO_FLUSH)),this._processChunk(e,d,a)},ul.prototype._processChunk=function(t,i,r){var l=t&&t.length,n=this._chunkSize-this._offset,m=0,o=this,s="function"==typeof r;if(!s){var p,u=[],h=0;this.on("error",function(e){p=e});do{var e=this._binding.writeSync(i,t,m,l,this._buffer,this._offset,n)}while(!this._hadError&&c(e[0],e[1]));if(this._hadError)throw p;var a=R.concat(u,h);return this.close(),a}a=this._binding.write(i,t,m,l,this._buffer,this._offset,n);function c(e,p){if(!o._hadError){var a,d=n-p;if(!function(e,p){if(!e)throw new Error(p)}(0<=d,"have should not go down"),0=o._chunkSize)&&(n=o._chunkSize,o._offset=0,o._buffer=new R(o._chunkSize)),0===p){if(m+=l-e,l=e,!s)return!0;e=o._binding.write(i,t,m,l,o._buffer,o._offset,o._chunkSize);return e.callback=c,void(e.buffer=t)}if(!s)return!1;r()}}a.buffer=t,a.callback=c},De(il,ul),De(rl,ul),De(ll,ul),De(nl,ul),De(ml,ul),De(ol,ul),De(sl,ul);var hl={codes:al,createDeflate:function(e){return new il(e)},createInflate:function(e){return new rl(e)},createDeflateRaw:function(e){return new ml(e)},createInflateRaw:function(e){return new ol(e)},createGzip:function(e){return new ll(e)},createGunzip:function(e){return new nl(e)},createUnzip:function(e){return new sl(e)},deflate:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new il(p),e,a)},deflateSync:function(e,p){return tl(new il(p),e)},gzip:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new ll(p),e,a)},gzipSync:function(e,p){return tl(new ll(p),e)},deflateRaw:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new ml(p),e,a)},deflateRawSync:function(e,p){return tl(new ml(p),e)},unzip:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new sl(p),e,a)},unzipSync:function(e,p){return tl(new sl(p),e)},inflate:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new rl(p),e,a)},inflateSync:function(e,p){return tl(new rl(p),e)},gunzip:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new nl(p),e,a)},gunzipSync:function(e,p){return tl(new nl(p),e)},inflateRaw:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new ol(p),e,a)},inflateRawSync:function(e,p){return tl(new ol(p),e)},Deflate:il,Inflate:rl,Gzip:ll,Gunzip:nl,DeflateRaw:ml,InflateRaw:ol,Unzip:sl,Zlib:ul};const cl=qp.Readable,fl=Symbol("buffer"),vl=Symbol("type");class wl{constructor(){this[vl]="";var e=arguments[0],p=arguments[1];const a=[];let d=0;if(e){var t=e,i=Number(t.length);for(let p=0;pd.size)return l=!0,void p(new _l(`content size at ${d.url} over limit: ${d.size}`,"max-size"));r+=e.length,i.push(e)}}),t.on("end",function(){if(!l){clearTimeout(a);try{e(Buffer.concat(i,r))}catch(e){p(new _l(`Could not create Buffer from response body for ${d.url}: ${e.message}`,"system",e))}}})})}function Tl(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 Dl(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 Vl(e){var p,a;let d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof qp&&"function"!=typeof d.getBoundary&&(p=new yl,a=new yl,d.pipe(p),d.pipe(a),e[bl].body=p,d=a),d}function Al(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Tl(e)?"application/x-www-form-urlencoded;charset=UTF-8":Dl(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 qp?null:"text/plain;charset=UTF-8"}function El(e){const p=e.body;return null===p?0:Dl(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}Sl.prototype={get body(){return this[bl].body},get bodyUsed(){return this[bl].disturbed},arrayBuffer(){return Nl.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let p=this.headers&&this.headers.get("content-type")||"";return Nl.call(this).then(function(e){return Object.assign(new wl([],{type:p.toLowerCase()}),{[fl]:e})})},json(){var p=this;return Nl.call(this).then(function(e){try{return JSON.parse(e.toString())}catch(e){return Sl.Promise.reject(new _l(`invalid json response body at ${p.url} reason: ${e.message}`,"invalid-json"))}})},text(){return Nl.call(this).then(function(e){return e.toString()})},buffer(){return Nl.call(this)},textConverted(){var p=this;return Nl.call(this).then(function(e){return function(e,p){if("function"!=typeof gl)throw new Error("The package `encoding` must be installed to use the textConverted() function");p=p.get("content-type");let a="utf-8",d,t;p&&(d=/charset=([^;]*)/i.exec(p));t=e.slice(0,1024).toString(),!d&&t&&(d=/=u.follow)return s(new _l(`maximum redirect reached at: ${u.url}`,"max-redirect")),void f();const r={headers:new Bl(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(!pn(u.url,e))for(const l of["authorization","www-authenticate","cookie","cookie2"])r.headers.delete(l);return 303!==p.statusCode&&u.body&&null===El(u)?(s(new _l("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==p.statusCode&&(301!==p.statusCode&&302!==p.statusCode||"POST"!==u.method)||(r.method="GET",r.body=void 0,r.headers.delete("content-length")),o(an(new Gl(e,r))),void f())}}p.once("end",function(){h&&h.removeEventListener("abort",v)});let t=p.pipe(new en);const i={url:u.url,status:p.statusCode,statusText:p.statusMessage,headers:a,size:u.size,timeout:u.timeout,counter:u.counter};var e=a.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===e||204===p.statusCode||304===p.statusCode)return c=new Ml(t,i),void o(c);d={flush:hl.Z_SYNC_FLUSH,finishFlush:hl.Z_SYNC_FLUSH};if("gzip"==e||"x-gzip"==e)return t=t.pipe(hl.createGunzip(d)),c=new Ml(t,i),void o(c);if("deflate"!=e&&"x-deflate"!=e){if("br"==e&&"function"==typeof hl.createBrotliDecompress)return t=t.pipe(hl.createBrotliDecompress()),c=new Ml(t,i),void o(c);c=new Ml(t,i),o(c)}else{const n=p.pipe(new en);n.once("data",function(e){t=8==(15&e[0])?t.pipe(hl.createInflate()):t.pipe(hl.createInflateRaw()),c=new Ml(t,i),o(c)})}}),function(e,p){const a=p.body;null===a?e.end():Dl(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(d,u)}})}an.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},an.Promise=p.Promise;var p=a(Object.freeze({__proto__:null,default:an,Headers:Bl,Request:Gl,Response:Ml,FetchError:_l})),dn=m,tn=dn.__importStar(o),rn=ae;dn.__importDefault(p);var ln=window.fetch.bind(window);!function(e){(p=e.TrustType||(e.TrustType={})).CrossAccount="Cross Account",p.InnerAccount="Inner Account",(r=e.PseudoBoolean||(e.PseudoBoolean={}))[r.True=1]="True",r[r.False=0]="False";var p=(a.prototype.create=function(e){return new a(dn.__assign(dn.__assign({},this.config),e))},a.prototype.getAccounts=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getAccounts",a)];case 1:return p=e.sent(),[2,Object.keys(p.accountListRole).map(function(e){return{account:e,role:p.accountListRole[e][0].role,iamKeyActive:p.accountListRole[e][0].iamKeyActive,maxKeyDuration:p.accountListRole[e][0].maxKeyDuration,securityLevel:p.accountListRole[e][0].securityLevel,skypieaAccount:p.accountListRole[e][0].skypieaAccount}})]}})})},a.prototype.getKeys=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getKeys",p)];case 1:return[2,i(e.sent(),["accessKey","secretKey","sessionToken","consoleURL"])]}})})},a.prototype.getIAMKeys=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getIAMKeys",p)];case 1:return[2,i(e.sent(),["accessKey","secretKey","sessionToken","consoleURL"])]}})})},a.prototype.getAllAWSRoleTypes=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.getDynamicValues?"allAwsRoleTypes?getDynamicValues=true":"allAwsRoleTypes",[4,this.internalFetch(p,a,"GET")];case 1:return[2,e.sent().roleTypes]}})})},a.prototype.getAWSRoleTypes=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getAWSRoleTypes",a)];case 1:return p=e.sent(),[2,JSON.parse(p.roleTypes)]}})})},a.prototype.getNonServiceAWSRoleTypes=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getNonServiceAWSRoleTypes",a)];case 1:return p=e.sent(),[2,JSON.parse(p.roleTypes)]}})})},a.prototype.createRole=function(d){return dn.__awaiter(this,void 0,void 0,function(){var p,a;return dn.__generator(this,function(e){switch(e.label){case 0:return p=null!=d.roleType,a=null!=d.trustPolicy,p==a?[3,2]:[4,this.internalFetch("createRole",d)];case 1:return(a=e.sent()).denyArns=a.denyArns.split(","),[2,i(a,["roleArn","denyArns","instanceProfileArn","addedRoleToInstanceProfile","tags"])];case 2:throw new Error("Must include roleType or trustPolicy, but not both.")}})})},a.prototype.createNonServiceRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("createNonServiceRole",a)];case 1:return(p=e.sent()).denyArns=p.denyArns.split(","),[2,i(p,["roleArn","denyArns","instanceProfileArn","addedRoleToInstanceProfile","tags"])]}})})},a.prototype.awsAccountRoles=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("awsAccountRoles?account="+p.account,p,"GET")];case 1:return[2,e.sent().awsRoleList]}})})},a.prototype.listAWSAccountRoles=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("listAWSAccountRoles",a)];case 1:return p=e.sent(),[2,JSON.parse(p.jsonAWSRoleList).map(function(e){return e.split("/").slice(-1)[0]})]}})})},a.prototype.getAccountRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getAccountRole",a)];case 1:if(!(p=e.sent()).roleExists)throw new Error("Role "+a.roleName+" does not exist in this account");return[2,dn.__assign(dn.__assign({},i(p,["roleArn","isMachineIdentity","tags","maxSessionDurationInSeconds"])),{instanceProfileArn:p.instanceProfileARN})]}})})},a.prototype.updateRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("role",a,"PATCH")];case 1:if(!(p=e.sent()).roleExists)throw new Error("Role "+a.roleName+" does not exist in this account");return[2,dn.__assign(dn.__assign({},i(p,["roleArn","isMachineIdentity","tags"])),{instanceProfileArn:p.instanceProfileARN})]}})})},a.prototype.deleteRole=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("deleteRole",p)];case 1:return e.sent(),[2,!0]}})})},a.prototype.addRoleMachineIdentity=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("roleMachineIdentity",p)];case 1:return[2,i(e.sent(),["machineIdentityArn"])]}})})},a.prototype.deleteRoleMachineIdentity=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("roleMachineIdentity",p,"DELETE")];case 1:return[2,i(e.sent(),["machineIdentityArn"])]}})})},a.prototype.getUserAccess=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("userAccess/"+p,a,"GET")];case 1:return[2,e.sent().users]}})})},a.prototype.getUserAccessByRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("reports/users-by-role?accountId="+p,a,"GET")];case 1:return[2,e.sent().users]}})})},a.prototype.getUserRoleAccess=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("userAccess/roles/"+p,a)];case 1:return[2,e.sent().roles]}})})},a.prototype.getAccountOwners=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("userAccess/owners/"+p,a,"GET")];case 1:return[2,e.sent().accountOwners]}})})},a.prototype.createAccessKeys=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("accessKeys",p)];case 1:return[2,i(e.sent(),["iamUserArn","accessKey","secretKey","addedIAMUserToGroup"])]}})})},a.prototype.deleteIAMUser=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("IAMUser",p,"DELETE")];case 1:return e.sent(),[2,!0]}})})},a.prototype.version=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("version",p,"GET")];case 1:return[2,i(e.sent(),["version"])]}})})},a.prototype.getLoginRole=function(d){return dn.__awaiter(this,void 0,void 0,function(){var p,a;return dn.__generator(this,function(e){switch(e.label){case 0:return p=d.accountId,a=d.role,[4,this.internalFetch("loginRoles/id/"+p+"/"+a,d,"GET")];case 1:return[2,i(e.sent().loginRole,["account","role","iamKeyActive","maxKeyDuration","securityLevel"])]}})})},a.prototype.getAccessToken=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("accessToken",p)];case 1:return[2,i(e.sent(),["accessToken","expiresIn"])]}})})},a.prototype.getRefreshTokens=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("refreshTokens",p,"GET")];case 1:return[2,e.sent().refreshTokens.map(function(e){return i(e,["clientId","id","userId","value"])})]}})})},a.prototype.revoke=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("revoke",p)];case 1:return[2,"Success"==e.sent().statusMessage]}})})},a.prototype.getCostTotals=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("costTotals/"+p.accountId,p,"GET")];case 1:return[2,i(e.sent().costTotals,["awsAccountId","yyyy","mm","dd","daily","weekly","monthly","yearly","dailyCostsByService","monthlyCostsByService"])]}})})},a.prototype.internalFetch=function(l,n,m){return void 0===n&&(n={}),void 0===m&&(m="POST"),dn.__awaiter(this,void 0,void 0,function(){var p,a,d,t,i,r;return dn.__generator(this,function(e){switch(e.label){case 0:return p=dn.__assign(dn.__assign({},this.config),n),r=dn.__assign({},p),a={"Content-Type":"application/json","User-Agent":"AlksJS/"+tn.version},void 0!==p.accessToken?(a.Authorization="Bearer "+p.accessToken,delete r.accessToken):void 0!==p.accessKey?(a["ALKS-STS-Access-Key"]=p.accessKey,a["ALKS-STS-Secret-Key"]=p.secretKey,a["ALKS-STS-Session-Token"]=p.sessionToken,delete r.accessKey,delete r.secretKey,delete r.sessionToken):void 0!==p.userid&&(console.error("The userid and password properties are deprecated and should be replaced with an access token"),d=function(e){void 0===e&&(e="");return rn.Buffer.from(e).toString("base64")}(p.userid+":"+p.password),a.Authorization="Basic "+d,delete r.userid,delete r.password),p.userAgent&&(a["User-Agent"]+=" "+p.userAgent,delete r.userAgent),[4,p._fetch(p.baseUrl+"/"+l,{method:m,headers:a,credentials:"omit",body:"GET"==m?void 0:JSON.stringify(r)})];case 1:t=e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t.json()];case 3:return i=e.sent(),[3,5];case 4:return r=e.sent(),i={errors:[r.message]},[3,5];case 5:if(!t.ok)throw new o(t,i);return[2,i]}})})},a);function a(e){this.config=e}e.Alks=p;var t,o=(t=Error,dn.__extends(d,t),d);function d(e,p){var a=this,d=Array.isArray(null==p?void 0:p.errors)?p.errors:[];e.statusText&&d.unshift(e.statusText);d=d.join("; ");return(a=t.call(this,d)||this).status=e.status,a.message=d,Object.assign(a,p),a}function i(a,e){return e.reduce(function(e,p){return e[p]=a[p],e},{})}e.AlksError=o;var r=p.prototype.create.call({},{_fetch:ln});e.create=p.prototype.create.bind(r),e.getAccounts=p.prototype.getAccounts.bind(r),e.getKeys=p.prototype.getKeys.bind(r),e.getIAMKeys=p.prototype.getIAMKeys.bind(r),e.getAllAWSRoleTypes=p.prototype.getAllAWSRoleTypes.bind(r),e.getAWSRoleTypes=p.prototype.getAWSRoleTypes.bind(r),e.getNonServiceAWSRoleTypes=p.prototype.getNonServiceAWSRoleTypes.bind(r),e.createRole=p.prototype.createRole.bind(r),e.createNonServiceRole=p.prototype.createNonServiceRole.bind(r),e.awsAccountRoles=p.prototype.awsAccountRoles.bind(r),e.listAWSAccountRoles=p.prototype.listAWSAccountRoles.bind(r),e.getAccountRole=p.prototype.getAccountRole.bind(r),e.updateRole=p.prototype.updateRole.bind(r),e.deleteRole=p.prototype.deleteRole.bind(r),e.addRoleMachineIdentity=p.prototype.addRoleMachineIdentity.bind(r),e.deleteRoleMachineIdentity=p.prototype.deleteRoleMachineIdentity.bind(r),e.getUserAccess=p.prototype.getUserAccess.bind(r),e.getUserAccessByRole=p.prototype.getUserAccessByRole.bind(r),e.getUserRoleAccess=p.prototype.getUserRoleAccess.bind(r),e.getAccountOwners=p.prototype.getAccountOwners.bind(r),e.createAccessKeys=p.prototype.createAccessKeys.bind(r),e.deleteIAMUser=p.prototype.deleteIAMUser.bind(r),e.version=p.prototype.version.bind(r),e.getLoginRole=p.prototype.getLoginRole.bind(r),e.getAccessToken=p.prototype.getAccessToken.bind(r),e.getRefreshTokens=p.prototype.getRefreshTokens.bind(r),e.revoke=p.prototype.revoke.bind(r),e.getCostTotals=p.prototype.getCostTotals.bind(r)}(nn=nn||{});var nn=nn;e.default=nn,Object.defineProperty(e,"__esModule",{value:!0}),Object.assign(e,nn)}); +!function(global,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((global="undefined"!=typeof globalThis?globalThis:global||self).alks={})}(this,function(e){"use strict";var p=window||this;function a(a){if(a.__esModule)return a;var d=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(a).forEach(function(e){var p=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(d,e,p.get?p:{enumerable:!0,get:function(){return a[e]}})}),d}var d=function(e,p){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,p){e.__proto__=p}||function(e,p){for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&(e[a]=p[a])})(e,p)};var t=function(){return(t=Object.assign||function(e){for(var p,a=1,d=arguments.length;a=e.length?void 0:e)&&e[d++],done:!e}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e,p){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var d,t,i=a.call(e),r=[];try{for(;(void 0===p||0r[0]&&p[1] dist/alks.min.js',build:"npm run clean && npm run compile && npm run rollup && npm run minify",lint:"prettier --write --no-error-on-unmatched-pattern {src,test}/**/*.{ts,js,json,md}",test:"npm run build && npm run lint && npm run mocha && npm run karma",mocha:"nyc mocha test/test.js",coverage:"nyc report --reporter=text-lcov | coveralls",karma:"karma start",docs:"typedoc src/alks.ts",prepare:"husky install",compile:"tsc"},files:["dist/"],repository:{type:"git",url:"https://github.com/Cox-Automotive/alks.js.git"},author:{name:"Cox Automotive",email:"paul.ofallon@coxautoinc.com",url:"https://github.com/Cox-Automotive/"},bugs:{url:"https://github.com/Cox-Automotive/alks.js/issues"},license:"MIT",engines:{node:">=14.0.0"},dependencies:{encoding:"^0.1.13","node-fetch":"^2.6.1",tslib:"^2.3.1",typedoc:"^0.22.15"},devDependencies:{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-typescript":"^8.2.1","@types/node":"^15.0.2","@types/node-fetch":"^2.5.10",browserify:"^17.0.0",chai:"^4.3.4","chai-as-promised":"^7.1.1",coveralls:"^3.0.3",eslint:"^7.25.0","eslint-plugin-jsdoc":"^4.1.1","fetch-mock":"^7.3.1",husky:"^6.0.0",karma:"^6.3.2","karma-browserify":"^8.0.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","lint-staged":"^11.0.0",mkdirp:"^1.0.4",mocha:"^10.0.0",nyc:"^15.1.0",prettier:"^2.3.0",rimraf:"^3.0.2",rollup:"^2.47.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-replace":"^2.2.0",sinon:"^10.0.0",tslint:"^6.1.3",typescript:"^4.2.4","uglify-js":"^3.13.6"},prettier:{singleQuote:!0,semi:!0,arrowParens:"always",endOfLine:"lf",trailingComma:"es5"},"lint-staged":{"{src,test}/**/*.{js,ts,json,md}":["prettier --write"]}},u=void 0!==p?p:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,v=!1;function w(){v=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,a=e.length;p>18&63]+h[d>>12&63]+h[d>>6&63]+h[63&d]);return t.join("")}function g(e){var p;v||w();for(var a=e.length,d=a%3,t="",i=[],r=0,l=a-d;r>2],t+=h[p<<4&63],t+="=="):2==d&&(p=(e[a-2]<<8)+e[a-1],t+=h[p>>10],t+=h[p>>4&63],t+=h[p<<2&63],t+="="),i.push(t),i.join("")}function b(e,p,a,d,t){var i,r,l=8*t-d-1,n=(1<>1,o=-7,s=a?t-1:0,u=a?-1:1,a=e[p+s];for(s+=u,i=a&(1<<-o)-1,a>>=-o,o+=l;0>=-o,o+=d;0>1,s=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,u=d?0:i-1,h=d?1:-1,i=p<0||0===p&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(l=isNaN(p)?1:0,r=m):(r=Math.floor(Math.log(p)/Math.LN2),p*(d=Math.pow(2,-r))<1&&(r--,d*=2),2<=(p+=1<=r+o?s/d:s*Math.pow(2,1-o))*d&&(r++,d/=2),m<=r+o?(l=0,r=m):1<=r+o?(l=(p*d-1)*Math.pow(2,t),r+=o):(l=p*Math.pow(2,o-1)*Math.pow(2,t),r=0));8<=t;e[a+u]=255&l,u+=h,l/=256,t-=8);for(r=r<=D())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D().toString(16)+" bytes");return 0|e}function O(e){return null!=e&&e._isBuffer}function L(e,p){if(O(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var a=(e="string"!=typeof e?""+e:e).length;if(0===a)return 0;for(var d=!1;;)switch(p){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return J(e).length;default:if(d)return X(e).length;p=(""+p).toLowerCase(),d=!0}}function B(e,p,a){var d,t,i,r=!1;if((p=void 0===p||p<0?0:p)>this.length)return"";if((a=void 0===a||a>this.length?this.length:a)<=0)return"";if((a>>>=0)<=(p>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return function(e,p,a){var d=e.length;(!p||p<0)&&(p=0);(!a||a<0||d=e.length){if(t)return-1;a=e.length-1}else if(a<0){if(!t)return-1;a=0}if(O(p="string"==typeof p?R.from(p,d):p))return 0===p.length?-1:F(e,p,a,d,t);if("number"==typeof p)return p&=255,R.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(t?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,p,a):F(e,[p],a,d,t);throw new TypeError("val must be string, number or Buffer")}function F(e,p,a,d,t){var i=1,r=e.length,l=p.length;if(void 0!==d&&("ucs2"===(d=String(d).toLowerCase())||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(e.length<2||p.length<2)return-1;r/=i=2,l/=2,a/=2}function n(e,p){return 1===i?e[p]:e.readUInt16BE(p*i)}if(t)for(var m=-1,o=a;o>8,d=d%256,t.push(d),t.push(a);return t}(p,e.length-a),e,a,d)}function z(e,p,a){a=Math.min(e.length,a);for(var d=[],t=p;t>>10&1023|55296),o=56320|1023&o),d.push(o),t+=s}return function(e){var p=e.length;if(p<=M)return String.fromCharCode.apply(String,e);var a="",d=0;for(;d"},R.prototype.compare=function(e,p,a,d,t){if(!O(e))throw new TypeError("Argument must be a Buffer");if(void 0===a&&(a=e?e.length:0),void 0===d&&(d=0),void 0===t&&(t=this.length),(p=void 0===p?0:p)<0||a>e.length||d<0||t>this.length)throw new RangeError("out of range index");if(t<=d&&a<=p)return 0;if(t<=d)return-1;if(a<=p)return 1;if(this===e)return 0;for(var i=(t>>>=0)-(d>>>=0),r=(a>>>=0)-(p>>>=0),l=Math.min(i,r),n=this.slice(d,t),m=e.slice(p,a),o=0;othis.length)throw new RangeError("Attempt to write outside buffer bounds");d=d||"utf8";for(var i,r,l,n=!1;;)switch(d){case"hex":return function(e,p,a,d){a=Number(a)||0;var t=e.length-a;if((!d||t<(d=Number(d)))&&(d=t),(t=p.length)%2!=0)throw new TypeError("Invalid hex string");t/2e.length)throw new RangeError("Index out of range")}function H(e,p,a,d){p<0&&(p=65535+p+1);for(var t=0,i=Math.min(e.length-a,2);t>>8*(d?t:1-t)}function Y(e,p,a,d){p<0&&(p=4294967295+p+1);for(var t=0,i=Math.min(e.length-a,4);t>>8*(d?t:3-t)&255}function W(e,p,a,d){if(a+d>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function K(e,p,a,d,t){return t||W(e,0,a,4),y(e,p,a,d,23,4),a+4}function $(e,p,a,d,t){return t||W(e,0,a,8),y(e,p,a,d,52,8),a+8}R.prototype.slice=function(e,p){var a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):a>>8):H(this,e,p,!0),p+2},R.prototype.writeUInt16BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>8,this[p+1]=255&e):H(this,e,p,!1),p+2},R.prototype.writeUInt32LE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[p+3]=e>>>24,this[p+2]=e>>>16,this[p+1]=e>>>8,this[p]=255&e):Y(this,e,p,!0),p+4},R.prototype.writeUInt32BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>24,this[p+1]=e>>>16,this[p+2]=e>>>8,this[p+3]=255&e):Y(this,e,p,!1),p+4},R.prototype.writeIntLE=function(e,p,a,d){e=+e,p|=0,d||q(this,e,p,a,(d=Math.pow(2,8*a-1))-1,-d);var t=0,i=1,r=0;for(this[p]=255&e;++t>0)-r&255;return p+a},R.prototype.writeIntBE=function(e,p,a,d){e=+e,p|=0,d||q(this,e,p,a,(d=Math.pow(2,8*a-1))-1,-d);var t=a-1,i=1,r=0;for(this[p+t]=255&e;0<=--t&&(i*=256);)e<0&&0===r&&0!==this[p+t+1]&&(r=1),this[p+t]=(e/i>>0)-r&255;return p+a},R.prototype.writeInt8=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,1,127,-128),R.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[p]=255&(e=e<0?255+e+1:e),p+1},R.prototype.writeInt16LE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[p]=255&e,this[p+1]=e>>>8):H(this,e,p,!0),p+2},R.prototype.writeInt16BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>8,this[p+1]=255&e):H(this,e,p,!1),p+2},R.prototype.writeInt32LE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,2147483647,-2147483648),R.TYPED_ARRAY_SUPPORT?(this[p]=255&e,this[p+1]=e>>>8,this[p+2]=e>>>16,this[p+3]=e>>>24):Y(this,e,p,!0),p+4},R.prototype.writeInt32BE=function(e,p,a){return e=+e,p|=0,a||q(this,e,p,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),R.TYPED_ARRAY_SUPPORT?(this[p]=e>>>24,this[p+1]=e>>>16,this[p+2]=e>>>8,this[p+3]=255&e):Y(this,e,p,!1),p+4},R.prototype.writeFloatLE=function(e,p,a){return K(this,e,p,!0,a)},R.prototype.writeFloatBE=function(e,p,a){return K(this,e,p,!1,a)},R.prototype.writeDoubleLE=function(e,p,a){return $(this,e,p,!0,a)},R.prototype.writeDoubleBE=function(e,p,a){return $(this,e,p,!1,a)},R.prototype.copy=function(e,p,a,d){if(a=a||0,d||0===d||(d=this.length),p>=e.length&&(p=e.length),(d=0=this.length)throw new RangeError("sourceStart out of bounds");if(d<0)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length);var t,i=(d=e.length-p>>=0,a=void 0===a?this.length:a>>>0,"number"==typeof(e=e||0))for(l=p;l>6|192,63&a|128)}else if(a<65536){if((p-=3)<0)break;i.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((p-=4)<0)break;i.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return i}function J(e){return function(e){var p;v||w();var a=e.length;if(0>16&255,t[r++]=p>>8&255,t[r++]=255&p;return 2==d?(p=c[e.charCodeAt(l)]<<2|c[e.charCodeAt(l+1)]>>4,t[r++]=255&p):1==d&&(p=c[e.charCodeAt(l)]<<10|c[e.charCodeAt(l+1)]<<4|c[e.charCodeAt(l+2)]>>2,t[r++]=p>>8&255,t[r++]=255&p),t}(function(e){var p;if((e=((p=e).trim?p.trim():p.replace(/^\s+|\s+$/g,"")).replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,p,a,d){for(var t=0;t=p.length||t>=e.length);++t)p[t+a]=e[t];return t}function ee(e){return null!=e&&(!!e._isBuffer||pe(e)||"function"==typeof(e=e).readFloatLE&&"function"==typeof e.slice&&pe(e.slice(0,0)))}function pe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ae=a(Object.freeze({__proto__:null,Buffer:R,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return R.alloc(+(e=+e!=e?0:e))},isBuffer:ee,kMaxLength:T}));function de(){}function te(){te.init.call(this)}function ie(e){return void 0===e._maxListeners?te.defaultMaxListeners:e._maxListeners}function re(e,p,a,d){var t,i;if("function"!=typeof a)throw new TypeError('"listener" argument must be a function');return(t=e._events)?(t.newListener&&(e.emit("newListener",p,a.listener||a),t=e._events),i=t[p]):(t=e._events=new de,e._eventsCount=0),i?("function"==typeof i?i=t[p]=d?[a,i]:[i,a]:d?i.unshift(a):i.push(a),i.warned||(d=ie(e))&&0d&&(i.warned=!0,(d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+p+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",d.emitter=e,d.type=p,d.count=i.length,d=d,"function"==typeof console.warn?console.warn(d):console.log(d))):(i=t[p]=a,++e._eventsCount),e}function le(e,p,a){var d=!1;function t(){e.removeListener(p,t),d||(d=!0,a.apply(e,arguments))}return t.listener=a,t}function ne(e){var p=this._events;if(p){e=p[e];if("function"==typeof e)return 1;if(e)return e.length}return 0}function me(e,p){for(var a=new Array(p);p--;)a[p]=e[p];return a}function oe(){throw new Error("setTimeout has not been defined")}function se(){throw new Error("clearTimeout has not been defined")}de.prototype=Object.create(null),(te.EventEmitter=te).usingDomains=!1,te.prototype.domain=void 0,te.prototype._events=void 0,te.prototype._maxListeners=void 0,te.defaultMaxListeners=10,te.init=function(){this.domain=null,te.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new de,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},te.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},te.prototype.getMaxListeners=function(){return ie(this)},te.prototype.emit=function(e){var p,a,d,t="error"===e,i=this._events;if(i)t=t&&null==i.error;else if(!t)return!1;if(r=this.domain,t){if(t=arguments[1],r)return(t=t||new Error('Uncaught, unspecified "error" event')).domainEmitter=this,t.domain=r,t.domainThrown=!1,r.emit("error",t),!1;if(t instanceof Error)throw t;var r=new Error('Uncaught, unspecified "error" event. ('+t+")");throw r.context=t,r}if(!(p=i[e]))return!1;var l,n="function"==typeof p;switch(l=arguments.length){case 1:!function(e,p,a){if(p)e.call(a);else for(var d=e.length,t=me(e,d),i=0;i>>0),a=this.head,d=0;a;)a.data.copy(p,d),d+=a.data.length,a=a.next;return p};var pp=R.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ap(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!pp(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=tp;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=ip;break;default:return void(this.write=dp)}this.charBuffer=new R(6),this.charReceived=0,this.charLength=0}function dp(e){return e.toString(this.encoding)}function tp(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function ip(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}ap.prototype.write=function(e){for(var p="";this.charLength;){var a=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,a),this.charReceived+=a,this.charReceived>5==6){this.charLength=2;break}if(p<=2&&a>>4==14){this.charLength=3;break}if(p<=3&&a>>3==30){this.charLength=4;break}}this.charReceived=p},ap.prototype.end=function(e){var p,a,d="";return e&&e.length&&(d=this.write(e)),this.charReceived&&(p=this.charReceived,a=this.charBuffer,e=this.encoding,d+=a.slice(0,p).toString(e)),d},mp.ReadableState=np;var rp,lp=(Ye(Be)&&(Be=""),rp=(rp="stream").toUpperCase(),Pe[rp]||(new RegExp("\\b"+rp+"\\b","i").test(Be)?Pe[rp]=function(){var e=function(e){if(!He(e)){for(var p=[],a=0;ap.highWaterMark&&(p.highWaterMark=(sp<=(a=e)?a=sp:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a)),e<=p.length?e:p.ended?p.length:(p.needReadable=!0,0));var a}function hp(e){var p=e._readableState;p.needReadable=!1,p.emittedReadable||(lp("emitReadable",p.flowing),p.emittedReadable=!0,p.sync?ye(cp,e):cp(e))}function cp(e){lp("emit readable"),e.emit("readable"),_p(e)}function fp(e,p){for(var a=p.length;!p.reading&&!p.flowing&&!p.ended&&p.length=p.length?(a=p.decoder?p.buffer.join(""):1===p.buffer.length?p.buffer.head.data:p.buffer.concat(p.length),p.buffer.clear()):a=function(e,p,a){var d;ei.length?i.length:e;if(r===i.length?t+=i:t+=i.slice(0,e),0===(e-=r)){r===i.length?(++d,a.next?p.head=a.next:p.head=p.tail=null):(p.head=a).data=i.slice(r);break}++d}return p.length-=d,t}:function(e,p){var a=R.allocUnsafe(e),d=p.head,t=1;d.data.copy(a),e-=d.data.length;for(;d=d.next;){var i=d.data,r=e>i.length?i.length:e;if(i.copy(a,a.length-e,0,r),0===(e-=r)){r===i.length?(++t,d.next?p.head=d.next:p.head=p.tail=null):(p.head=d).data=i.slice(r);break}++t}return p.length-=t,a})(e,p);return d}(e,p.buffer,p.decoder),a);var a}function bp(e){var p=e._readableState;if(0=p.highWaterMark||p.ended))return lp("read: emitReadable",p.length,p.ended),(0===p.length&&p.ended?bp:hp)(this),null;if(0===(e=up(e,p))&&p.ended)return 0===p.length&&bp(this),null;var d=p.needReadable;return lp("need readable",d),(0===p.length||p.length-ep._pos){var d=a.substr(p._pos);if("x-user-defined"===p._charset){for(var t=new R(d.length),i=0;ip._pos&&(p.push(new R(new Uint8Array(r.result.slice(p._pos)))),p._pos=r.result.byteLength)},r.onload=function(){p.push(null)},r.readAsArrayBuffer(a)}p._xhr.readyState===aa&&"ms-stream"!==p._mode&&p.push(null)},De(ta,Vp);var ia=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];ta.prototype.setHeader=function(e,p){var a=e.toLowerCase();-1===ia.indexOf(a)&&(this._headers[a]={name:e,value:p})},ta.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},ta.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},ta.prototype._onFinish=function(){var p=this;if(!p._destroyed){var e,a=p._opts,d=p._headers;if("POST"!==a.method&&"PUT"!==a.method&&"PATCH"!==a.method||(e=function(){if(void 0!==Hp)return Hp;try{new u.Blob([new ArrayBuffer(1)]),Hp=!0}catch(e){Hp=!1}return Hp}()?new u.Blob(p._body.map(function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(ee(e)){for(var p=new Uint8Array(e.length),a=e.length,d=0;d= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ga=la-na,ba=Math.floor,ya=String.fromCharCode;function Sa(e){throw new RangeError(_a[e])}function Na(e,p){for(var a=e.length,d=[];a--;)d[a]=p(e[a]);return d}function Ta(e,p){var a=e.split("@"),d="";return 1>>10&1023|55296),e=56320|1023&e),p+=ya(e)}).join("")}function Aa(e,p){return e+22+75*(e<26)-((0!=p)<<5)}function Ea(e,p,a){var d=0;for(e=a?ba(e/sa):e>>1,e+=ba(e/p);ga*ma>>1ba((ra-o)/i))&&Sa("overflow"),o+=l*i,!(l<(l=r<=u?na:u+ma<=r?ma:r-u));r+=la)i>ba(ra/(l=la-l))&&Sa("overflow"),i*=l;u=Ea(o-t,p=n.length+1,0==t),ba(o/p)>ra-s&&Sa("overflow"),s+=ba(o/p),o%=p,n.splice(o++,0,s)}return Va(n)}function Ra(e){for(var p,a,d,t,i,r,l,n,m,o,s=[],u=(e=Da(e)).length,h=ha,c=ua,f=p=0;fba((ra-p)/(n=a+1))&&Sa("overflow"),p+=(t-h)*n,h=t,f=0;fra&&Sa("overflow"),l==h){for(i=p,r=la;!(i<(m=r<=c?na:c+ma<=r?ma:r-c));r+=la)s.push(ya(Aa(m+(o=i-m)%(m=la-m),0))),i=ba(o/m);s.push(ya(Aa(i,0))),c=Ea(p,n,a==d),p=0,++a}++p,++h}return s.join("")}function xa(e){return Ta(e,function(e){return fa.test(e)?ka(e.slice(4).toLowerCase()):e})}function Ca(e){return Ta(e,function(e){return va.test(e)?"xn--"+Ra(e):e})}Ee={decode:Da,encode:Va},ke=Object.freeze({__proto__:null,decode:ka,encode:Ra,toUnicode:xa,toASCII:Ca,version:"1.4.1",ucs2:Ee,default:{version:"1.4.1",ucs2:Ee,toASCII:Ca,toUnicode:xa,encode:Ra,decode:ka}});var Oa=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function La(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Ba(e,p){if(e.map)return e.map(p);for(var a=[],d=0;d",'"',"`"," ","\r","\n","\t"]),Ma=["'"].concat(Ae),Za=["%","/","?",";","#"].concat(Ma),qa=["/","?","#"],Ha=255,Ya=/^[+a-z0-9A-Z_-]{0,63}$/,Wa=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ka={javascript:!0,"javascript:":!0},$a={javascript:!0,"javascript:":!0},Ga={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Xa(e,p,a){if(e&&Ke(e)&&e instanceof Fa)return e;var d=new Fa;return d.parse(e,p,a),d}function Ja(e,p,a,d){if(!He(p))throw new TypeError("Parameter 'url' must be a string, not "+typeof p);var t=p.indexOf("?"),i=-1!==t&&tHa?e.hostname="":e.hostname=e.hostname.toLowerCase(),s||(e.hostname=Ca(e.hostname));var S=e.port?":"+e.port:"",N=e.hostname||"";e.host=N+S,e.href+=e.host,s&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!Ka[V])for(h=0,c=Ma.length;hi)throw new TypeError("Argument is not in byte range");return a}if(!isNaN(a)&&p.clamp)return a=(p=a)%1==.5&&0==(1&p)?Math.floor(p):Math.round(p),ai&&(a=i),a;if(!Number.isFinite(a)||0===a)return 0;if(a=id(a)*Math.floor(Math.abs(a)),a%=r,!d.unsigned&&a>=l)return a-r;if(d.unsigned)if(a<0)a+=r;else if(-0===a)return 0;return a}}Ae.void=function(){},Ae.boolean=function(e){return!!e},Ae.byte=rd(8,{unsigned:!1}),Ae.octet=rd(8,{unsigned:!0}),Ae.short=rd(16,{unsigned:!1}),Ae["unsigned short"]=rd(16,{unsigned:!0}),Ae.long=rd(32,{unsigned:!1}),Ae["unsigned long"]=rd(32,{unsigned:!0}),Ae["long long"]=rd(32,{unsigned:!1,moduloBitLength:64}),Ae["unsigned long long"]=rd(32,{unsigned:!0,moduloBitLength:64}),Ae.double=function(e){e=+e;if(!Number.isFinite(e))throw new TypeError("Argument is not a finite floating-point value");return e},Ae["unrestricted double"]=function(e){e=+e;if(isNaN(e))throw new TypeError("Argument is NaN");return e},Ae.float=Ae.double,Ae["unrestricted float"]=Ae["unrestricted double"],Ae.DOMString=function(e,p){return(p=p||{}).treatNullAsEmptyString&&null===e?"":String(e)},Ae.ByteString=function(e,p){const a=String(e);var d;for(let e=0;void 0!==(d=a.codePointAt(e));++e)if(255=e)return t;t[0][0]>e?a=d-1:p=d+1}return null}var wd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function _d(e){return e.replace(wd,"_").length}var gd=/[\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\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\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-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\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-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function bd(e,p,a){var d=function(e,p,a){for(var d=!1,t="",i=_d(e),r=0;r=Math.pow(256,5-a.length))return m;let t=a.pop(),i=0;for(const l of a)t+=l*Math.pow(256,3-i),++i;return t}function N(p){let a="";var d,t=function(p){let a=null,d=1,t=null,i=0;for(let e=0;ed&&(a=t,d=i),t=null,i=0):(null===t&&(t=e),++i);i>d&&(a=t,d=i);return{idx:a,len:d}}(p).idx;let i=!1;for(let e=0;e<=7;++e)i&&0===p[e]||(i=i&&!1,t!==e?(a+=p[e].toString(16),7!==e&&(a+=":")):(d=0===e?"::":":",a+=d,i=!0));return a}function T(e,p){if("["===e[0])return"]"!==e[e.length-1]?m:function(d){const t=[0,0,0,0,0,0,0,0];let i=0,p=null,r=0;if(58===(d=n.ucs2.decode(d))[r]){if(58!==d[r+1])return m;r+=2,++i,p=i}for(;rMath.pow(2,16)-1)return this.parseError=!0,m;this.url.port=p===(e=this.url.scheme,t[e])?null:p,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const k=new Set([47,92,63,35]);E.prototype["parse file"]=function(e){var p;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=this.input[this.pointer+1],!r(e)||58!==p&&124!==p)||2<=this.input.length-this.pointer-1&&!k.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),V(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},E.prototype["parse file slash"]=function(e){return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(e=this.base.path[0]).length&&r(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},E.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&h(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=T(this.buffer,f(this.url));if(e===m)return m;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},E.prototype["parse path start"]=function(e){return f(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},E.prototype["parse path"]=function(e){if(isNaN(e)||47===e||f(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(f(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(V(this.url),47===e||f(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||f(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&h(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;1>>7)]}function st(e,p){e.pending_buf[e.pending++]=255&p,e.pending_buf[e.pending++]=p>>>8&255}function ut(e,p,a){e.bi_valid>Zd-a?(e.bi_buf|=p<>Zd-e.bi_valid,e.bi_valid+=a-Zd):(e.bi_buf|=p<>>=1,a<<=1,0<--p;);return a>>>1}function ft(e,p,a){for(var d,t=new Array(Md+1),i=0,r=1;r<=Md;r++)t[r]=i=i+a[r-1]<<1;for(d=0;d<=p;d++){var l=e[2*d+1];0!==l&&(e[2*d]=ct(t[l]++,l))}}function vt(e){for(var p=0;p>1;1<=a;a--)gt(e,i,a);for(t=n;a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gt(e,i,1),d=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=d,i[2*t]=i[2*a]+i[2*d],e.depth[t]=(e.depth[a]>=e.depth[d]?e.depth[a]:e.depth[d])+1,i[2*a+1]=i[2*d+1]=t,e.heap[1]=t++,gt(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,p){for(var a,d,t,i,r,l=p.dyn_tree,n=p.max_code,m=p.stat_desc.static_tree,o=p.stat_desc.has_stree,s=p.stat_desc.extra_bits,u=p.stat_desc.extra_base,h=p.stat_desc.max_length,c=0,f=0;f<=Md;f++)e.bl_count[f]=0;for(l[2*e.heap[e.heap_max]+1]=0,a=e.heap_max+1;a>=7;i>=8,e.bi_valid-=8)}function Et(e,p,a,d){var t,i,r=0;0>>=1)if(1&p&&0!==e.dyn_ltree[2*a])return kd;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Rd;for(a=32;a>>3,(i=e.static_len+3+7>>>3)<=t&&(t=i)):t=i=a+5,a+4<=t&&-1!==p?Vt(e,p,a,d):e.strategy===Ed||i===t?(ut(e,(Ld<<1)+(d?1:0),3),bt(e,Qd,et)):(ut(e,(Bd<<1)+(d?1:0),3),function(e,p,a,d){var t;for(ut(e,p-257,5),ut(e,a-1,5),ut(e,d-4,4),t=0;t>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&p,e.pending_buf[e.l_buf+e.last_lit]=255&a,e.last_lit++,0===p?e.dyn_ltree[2*a]++:(e.matches++,p--,e.dyn_ltree[2*(at[a]+Ud+1)]++,e.dyn_dtree[2*ot(p)]++),e.last_lit===e.lit_bufsize-1}function Rt(e,p,a,d){for(var t=65535&e|0,i=e>>>16&65535|0,r=0;0!==a;){for(a-=r=2e3>>1:a>>>1;e[p]=a}return e}();function Ct(e,p,a,d){var t=xt,i=d+a;e^=-1;for(var r=d;r>>8^t[255&(e^p[r])];return-1^e}var Ot=0,Lt=1,Bt=3,Pt=4,Ut=5,Ft=0,It=1,jt=-2,zt=-3,Mt=-5,Zt=-1,qt=1,Ht=2,Yt=3,Wt=4,Kt=2,$t=8,Gt=9,Xt=286,Jt=30,Qt=19,ei=2*Xt+1,pi=15,ai=3,di=258,ti=di+ai+1,ii=32,ri=42,li=69,ni=73,mi=91,oi=103,si=113,ui=666,hi=1,ci=2,fi=3,vi=4,wi=3;function _i(e,p){return e.msg=Sd[p],p}function gi(e){return(e<<1)-(4e.avail_out?e.avail_out:a)&&(Td(e.output,p.pending_buf,p.pending_out,a,e.next_out),e.next_out+=a,p.pending_out+=a,e.total_out+=a,e.avail_out-=a,p.pending-=a,0===p.pending&&(p.pending_out=0))}function Si(e,p){Et(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,p),e.block_start=e.strstart,yi(e.strm)}function Ni(e,p){e.pending_buf[e.pending++]=p}function Ti(e,p){e.pending_buf[e.pending++]=p>>>8&255,e.pending_buf[e.pending++]=255&p}function Di(e,p){var a,d,t=e.max_chain_length,i=e.strstart,r=e.prev_length,l=e.nice_match,n=e.strstart>e.w_size-ti?e.strstart-(e.w_size-ti):0,m=e.window,o=e.w_mask,s=e.prev,u=e.strstart+di,h=m[i+r-1],c=m[i+r];e.prev_length>=e.good_match&&(t>>=2),l>e.lookahead&&(l=e.lookahead);do{if(m[(a=p)+r]===c&&m[a+r-1]===h&&m[a]===m[i]&&m[++a]===m[i+1]){for(i+=2,a++;m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&m[++i]===m[++a]&&in&&0!=--t);return r<=e.lookahead?r:e.lookahead}function Vi(e){var p,a,d,t,i,r,l,n,m,o=e.w_size;do{if(m=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-ti)){for(Td(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,p=a=e.hash_size;d=e.head[--p],e.head[p]=o<=d?d-o:0,--a;);for(p=a=o;d=e.prev[--p],e.prev[p]=o<=d?d-o:0,--a;);m+=o}if(0===e.strm.avail_in)break;if(i=e.strm,r=e.window,l=e.strstart+e.lookahead,n=m,m=void 0,m=i.avail_in,a=0===(m=n=ai)for(t=e.strstart-e.insert,e.ins_h=e.window[t],e.ins_h=(e.ins_h<=ai&&(e.ins_h=(e.ins_h<=ai)if(d=kt(e,e.strstart-e.match_start,e.match_length-ai),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ai){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=ai&&(e.ins_h=(e.ins_h<=ai&&e.match_length<=e.prev_length){for(t=e.strstart+e.lookahead-ai,d=kt(e,e.strstart-1-e.prev_match,e.prev_length-ai),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=t&&(e.ins_h=(e.ins_h<>8&255),Ni(a,a.gzhead.time>>16&255),Ni(a,a.gzhead.time>>24&255),Ni(a,9===a.level?2:a.strategy>=Ht||a.level<2?4:0),Ni(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(Ni(a,255&a.gzhead.extra.length),Ni(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=Ct(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=li):(Ni(a,0),Ni(a,0),Ni(a,0),Ni(a,0),Ni(a,0),Ni(a,9===a.level?2:a.strategy>=Ht||a.level<2?4:0),Ni(a,wi),a.status=si)):(i=$t+(a.w_bits-8<<4)<<8,i|=(a.strategy>=Ht||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(i|=ii),i+=31-i%31,a.status=si,Ti(a,i),0!==a.strstart&&(Ti(a,e.adler>>>16),Ti(a,65535&e.adler)),e.adler=1)),a.status===li)if(a.gzhead.extra){for(d=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),yi(e),d=a.pending,a.pending!==a.pending_buf_size));)Ni(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=ni)}else a.status=ni;if(a.status===ni)if(a.gzhead.name){d=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),yi(e),d=a.pending,a.pending===a.pending_buf_size)){t=1;break}}while(t=a.gzindexd&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),0===t&&(a.gzindex=0,a.status=mi)}else a.status=mi;if(a.status===mi)if(a.gzhead.comment){d=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>d&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),yi(e),d=a.pending,a.pending===a.pending_buf_size)){t=1;break}}while(t=a.gzindexd&&(e.adler=Ct(e.adler,a.pending_buf,a.pending-d,d)),0===t&&(a.status=oi)}else a.status=oi;if(a.status===oi&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&yi(e),a.pending+2<=a.pending_buf_size&&(Ni(a,255&e.adler),Ni(a,e.adler>>8&255),e.adler=0,a.status=si)):a.status=si),0!==a.pending){if(yi(e),0===e.avail_out)return a.last_flush=-1,Ft}else if(0===e.avail_in&&gi(p)<=gi(r)&&p!==Pt)return _i(e,Mt);if(a.status===ui&&0!==e.avail_in)return _i(e,Mt);if(0!==e.avail_in||0!==a.lookahead||p!==Ot&&a.status!==ui){var r=a.strategy===Ht?function(e,p){for(var a;;){if(0===e.lookahead&&(Vi(e),0===e.lookahead)){if(p===Ot)return hi;break}if(e.match_length=0,a=kt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,a&&(Si(e,!1),0===e.strm.avail_out))return hi}return e.insert=0,p===Pt?(Si(e,!0),0===e.strm.avail_out?fi:vi):e.last_lit&&(Si(e,!1),0===e.strm.avail_out)?hi:ci}(a,p):a.strategy===Yt?function(e,p){for(var a,d,t,i,r=e.window;;){if(e.lookahead<=di){if(Vi(e),e.lookahead<=di&&p===Ot)return hi;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ai&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ai?(a=kt(e,1,e.match_length-ai),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(a=kt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),a&&(Si(e,!1),0===e.strm.avail_out))return hi}return e.insert=0,p===Pt?(Si(e,!0),0===e.strm.avail_out?fi:vi):e.last_lit&&(Si(e,!1),0===e.strm.avail_out)?hi:ci}(a,p):Oi[a.level].func(a,p);if(r!==fi&&r!==vi||(a.status=ui),r===hi||r===fi)return 0===e.avail_out&&(a.last_flush=-1),Ft;if(r===ci&&(p===Lt?At(a):p!==Ut&&(Vt(a,0,0,!1),p===Bt&&(bi(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),yi(e),0===e.avail_out))return a.last_flush=-1,Ft}return p!==Pt?Ft:a.wrap<=0?It:(2===a.wrap?(Ni(a,255&e.adler),Ni(a,e.adler>>8&255),Ni(a,e.adler>>16&255),Ni(a,e.adler>>24&255),Ni(a,255&e.total_in),Ni(a,e.total_in>>8&255),Ni(a,e.total_in>>16&255),Ni(a,e.total_in>>24&255)):(Ti(a,e.adler>>>16),Ti(a,65535&e.adler)),yi(e),0e.pending_buf_size-5&&(a=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Vi(e),0===e.lookahead&&p===Ot)return hi;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var d=e.block_start+a;if((0===e.strstart||e.strstart>=d)&&(e.lookahead=e.strstart-d,e.strstart=d,Si(e,!1),0===e.strm.avail_out))return hi;if(e.strstart-e.block_start>=e.w_size-ti&&(Si(e,!1),0===e.strm.avail_out))return hi}return e.insert=0,p===Pt?(Si(e,!0),0===e.strm.avail_out?fi:vi):(e.strstart>e.block_start&&(Si(e,!1),e.strm.avail_out),hi)}),new ki(4,4,8,4,Ai),new ki(4,5,16,8,Ai),new ki(4,6,32,32,Ai),new ki(4,4,16,16,Ei),new ki(8,16,32,32,Ei),new ki(8,16,128,128,Ei),new ki(8,32,128,256,Ei),new ki(32,128,258,1024,Ei),new ki(32,258,258,4096,Ei)],Li=30,Bi=12;var Pi=15,Ui=852,Fi=592,Ii=0,ji=1,zi=2,Mi=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Zi=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],qi=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Hi=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Yi(e,p,a,d,t,i,r,l){for(var n,m,o,s,u,h,c,f,v,w=l.bits,_=0,g=0,b=0,y=0,S=0,N=0,T=0,D=0,V=0,A=0,E=null,k=0,R=new Vd(Pi+1),x=new Vd(Pi+1),C=null,O=0,_=0;_<=Pi;_++)R[_]=0;for(g=0;gh?(f=C[O+r[g]],E[k+r[g]]):(f=96,0),n=1<<(c=_-T),b=m=1<>T)+(m-=n)]=c<<24|f<<16|v|0,0!==m;);for(n=1<<_-1;A&n;)n>>=1;if(0!==n?(A&=n-1,A+=n):A=0,g++,0==--R[_]){if(_===y)break;_=p[a+r[g]]}if(S<_&&(A&s)!==o){for(u+=b,D=1<<(N=_-(T=0===T?S:T));N+T>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Mr(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Vd(320),this.work=new Vd(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Zr(e){var p;return e&&e.state?((p=e.state).wsize=0,p.whave=0,p.wnext=0,(p=e)&&p.state?(e=p.state,p.total_in=p.total_out=e.total=0,p.msg="",e.wrap&&(p.adler=1&e.wrap),e.mode=lr,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Ad(Ir),e.distcode=e.distdyn=new Ad(jr),e.sane=1,e.back=-1,Qi):ar):ar}function qr(e,p){var a,d,t;return e?(a=new Mr,(e.state=a).window=null,d=p,(a=(a=e)&&a.state?(p=a.state,d<0?(t=0,d=-d):(t=1+(d>>4),d<48&&(d&=15)),d&&(d<8||15>>8&255,a.check=Ct(a.check,C,2,0),o=m=0,a.mode=nr;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",a.mode=Pr;break}if((15&m)!==rr){e.msg="unknown compression method",a.mode=Pr;break}if(o-=4,S=8+(15&(m>>>=4)),0===a.wbits)a.wbits=S;else if(S>a.wbits){e.msg="invalid window size",a.mode=Pr;break}a.dmax=1<>8&1),512&a.flags&&(C[0]=255&m,C[1]=m>>>8&255,a.check=Ct(a.check,C,2,0)),o=m=0,a.mode=mr;case mr:for(;o<32;){if(0===l)break e;l--,m+=d[i++]<>>8&255,C[2]=m>>>16&255,C[3]=m>>>24&255,a.check=Ct(a.check,C,4,0)),o=m=0,a.mode=or;case or:for(;o<16;){if(0===l)break e;l--,m+=d[i++]<>8),512&a.flags&&(C[0]=255&m,C[1]=m>>>8&255,a.check=Ct(a.check,C,2,0)),o=m=0,a.mode=sr;case sr:if(1024&a.flags){for(;o<16;){if(0===l)break e;l--,m+=d[i++]<>>8&255,a.check=Ct(a.check,C,2,0)),o=m=0}else a.head&&(a.head.extra=null);a.mode=ur;case ur:if(1024&a.flags&&((h=l<(h=a.length)?l:h)&&(a.head&&(S=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),Td(a.head.extra,d,i,h,S)),512&a.flags&&(a.check=Ct(a.check,d,h,i)),l-=h,i+=h,a.length-=h),a.length))break e;a.length=0,a.mode=hr;case hr:if(2048&a.flags){if(0===l)break e;for(h=0;S=d[i+h++],a.head&&S&&a.length<65536&&(a.head.name+=String.fromCharCode(S)),S&&h>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=_r;break;case vr:for(;o<32;){if(0===l)break e;l--,m+=d[i++]<>>=7&o,o-=7&o,a.mode=Or;break}for(;o<3;){if(0===l)break e;l--,m+=d[i++]<>>=1)){case 0:a.mode=br;break;case 1:if(!function(e){if(Wr){var p;for(Hr=new Ad(512),Yr=new Ad(32),p=0;p<144;)e.lens[p++]=8;for(;p<256;)e.lens[p++]=9;for(;p<280;)e.lens[p++]=7;for(;p<288;)e.lens[p++]=8;for(Yi(Ki,e.lens,0,288,Hr,0,e.work,{bits:9}),p=0;p<32;)e.lens[p++]=5;Yi($i,e.lens,0,32,Yr,0,e.work,{bits:5}),Wr=!1}e.lencode=Hr,e.lenbits=9,e.distcode=Yr,e.distbits=5}(a),a.mode=Vr,p!==Ji)break;m>>>=2,o-=2;break e;case 2:a.mode=Nr;break;case 3:e.msg="invalid block type",a.mode=Pr}m>>>=2,o-=2;break;case br:for(m>>>=7&o,o-=7&o;o<32;){if(0===l)break e;l--,m+=d[i++]<>>16^65535)){e.msg="invalid stored block lengths",a.mode=Pr;break}if(a.length=65535&m,o=m=0,a.mode=yr,p===Ji)break e;case yr:a.mode=Sr;case Sr:if(h=a.length){if(0===(h=n<(h=l>>=5,o-=5,a.ndist=1+(31&m),m>>>=5,o-=5,a.ncode=4+(15&m),m>>>=4,o-=4,286>>=3,o-=3}for(;a.have<19;)a.lens[O[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,T={bits:a.lenbits},N=Yi(Wi,a.lens,0,19,a.lencode,0,a.work,T),a.lenbits=T.bits,N){e.msg="invalid code lengths set",a.mode=Pr;break}a.have=0,a.mode=Dr;case Dr:for(;a.have>>16&255,_=65535&x,!((v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>>=v,o-=v,a.lens[a.have++]=_;else{if(16===_){for(D=v+2;o>>=v,o-=v,0===a.have){e.msg="invalid bit length repeat",a.mode=Pr;break}S=a.lens[a.have-1],h=3+(3&m),m>>>=2,o-=2}else if(17===_){for(D=v+3;o>>=v)),m>>>=3,o-=3}else{for(D=v+7;o>>=v)),m>>>=7,o-=7}if(a.have+h>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=Pr;break}for(;h--;)a.lens[a.have++]=S}}if(a.mode===Pr)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=Pr;break}if(a.lenbits=9,T={bits:a.lenbits},N=Yi(Ki,a.lens,0,a.nlen,a.lencode,0,a.work,T),a.lenbits=T.bits,N){e.msg="invalid literal/lengths set",a.mode=Pr;break}if(a.distbits=6,a.distcode=a.distdyn,T={bits:a.distbits},N=Yi($i,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,T),a.distbits=T.bits,N){e.msg="invalid distances set",a.mode=Pr;break}if(a.mode=Vr,p===Ji)break e;case Vr:a.mode=Ar;case Ar:if(6<=l&&258<=n){e.next_out=r,e.avail_out=n,e.next_in=i,e.avail_in=l,a.hold=m,a.bits=o,function(e,p){var a,d,t,i,r,l,n=e.state,m=e.next_in,o=e.input,s=m+(e.avail_in-5),u=e.next_out,h=e.output,c=u-(p-e.avail_out),f=u+(e.avail_out-257),v=n.dmax,w=n.wsize,_=n.whave,g=n.wnext,b=n.window,y=n.hold,S=n.bits,N=n.lencode,T=n.distcode,D=(1<>>=d=a>>>24,S-=d,0===(d=a>>>16&255))h[u++]=65535&a;else{if(!(16&d)){if(0==(64&d)){a=N[(65535&a)+(y&(1<>>=d,S-=d),S<15&&(y+=o[m++]<>>=d=a>>>24,S-=d,!(16&(d=a>>>16&255))){if(0==(64&d)){a=T[(65535&a)+(y&(1<>>=d,S-=d,(d=u-c)>3)<<3))-1,e.next_in=m-=t,e.next_out=u,e.avail_in=m>>16&255,_=65535&x,!((v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>g)])>>>16&255,_=65535&x,!(g+(v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>>=g,o-=g,a.back+=g}if(m>>>=v,o-=v,a.back+=v,a.length=_,0===w){a.mode=Cr;break}if(32&w){a.back=-1,a.mode=_r;break}if(64&w){e.msg="invalid literal/length code",a.mode=Pr;break}a.extra=15&w,a.mode=Er;case Er:if(a.extra){for(D=a.extra;o>>=a.extra,o-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=kr;case kr:for(;w=(x=a.distcode[m&(1<>>16&255,_=65535&x,!((v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>g)])>>>16&255,_=65535&x,!(g+(v=x>>>24)<=o);){if(0===l)break e;l--,m+=d[i++]<>>=g,o-=g,a.back+=g}if(m>>>=v,o-=v,a.back+=v,64&w){e.msg="invalid distance code",a.mode=Pr;break}a.offset=_,a.extra=15&w,a.mode=Rr;case Rr:if(a.extra){for(D=a.extra;o>>=a.extra,o-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=Pr;break}a.mode=xr;case xr:if(0===n)break e;if(a.offset>(h=u-n)){if((h=a.offset-h)>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=Pr;break}c=h>a.wnext?(h-=a.wnext,a.wsize-h):a.wnext-h,h>a.length&&(h=a.length),f=a.window}else f=t,c=r-a.offset,h=a.length;for(n-=h=n=R.wsize?(Td(R.window,A,E-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(V=R.wsize-R.wnext,Td(R.window,A,E-k,V=kpl.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitspl.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelpl.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelpl.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=pl.Z_FILTERED&&e.strategy!=pl.Z_HUFFMAN_ONLY&&e.strategy!=pl.Z_RLE&&e.strategy!=pl.Z_FIXED&&e.strategy!=pl.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!R.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new pl.Zlib(p);var a=this;this._hadError=!1,this._binding.onerror=function(e,p){a._binding=null,a._hadError=!0;e=new Error(e);e.errno=p,e.code=pl.codes[p],a.emit("error",e)};var d=pl.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(d=e.level);p=pl.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(p=e.strategy),this._binding.init(e.windowBits||pl.Z_DEFAULT_WINDOWBITS,d,e.memLevel||pl.Z_DEFAULT_MEMLEVEL,p,e.dictionary),this._buffer=new R(this._chunkSize),this._offset=0,this._closed=!1,this._level=d,this._strategy=p,this.once("end",this.close)}Object.keys(al).forEach(function(e){al[al[e]]=e}),De(ul,zp),ul.prototype.params=function(e,p,a){if(epl.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(p!=pl.Z_FILTERED&&p!=pl.Z_HUFFMAN_ONLY&&p!=pl.Z_RLE&&p!=pl.Z_FIXED&&p!=pl.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+p);var d;this._level!==e||this._strategy!==p?(d=this).flush(pl.Z_SYNC_FLUSH,function(){d._binding.params(e,p),d._hadError||(d._level=e,d._strategy=p,a&&a())}):Oe.nextTick(a)},ul.prototype.reset=function(){return this._binding.reset()},ul.prototype._flush=function(e){this._transform(new R(0),"",e)},ul.prototype.flush=function(e,p){var a,d=this._writableState;"function"!=typeof e&&(void 0!==e||p)||(p=e,e=pl.Z_FULL_FLUSH),d.ended?p&&Oe.nextTick(p):d.ending?p&&this.once("end",p):d.needDrain?(a=this).once("drain",function(){a.flush(p)}):(this._flushFlag=e,this.write(new R(0),"",p))},ul.prototype.close=function(e){var p;e&&Oe.nextTick(e),this._closed||(this._closed=!0,this._binding.close(),p=this,Oe.nextTick(function(){p.emit("close")}))},ul.prototype._transform=function(e,p,a){var d,t=this._writableState,i=(t.ending||t.ended)&&(!e||t.length===e.length);if(null===!e&&!R.isBuffer(e))return a(new Error("invalid input"));i?d=pl.Z_FINISH:(d=this._flushFlag,e.length>=t.length&&(this._flushFlag=this._opts.flush||pl.Z_NO_FLUSH)),this._processChunk(e,d,a)},ul.prototype._processChunk=function(t,i,r){var l=t&&t.length,n=this._chunkSize-this._offset,m=0,o=this,s="function"==typeof r;if(!s){var p,u=[],h=0;this.on("error",function(e){p=e});do{var e=this._binding.writeSync(i,t,m,l,this._buffer,this._offset,n)}while(!this._hadError&&c(e[0],e[1]));if(this._hadError)throw p;var a=R.concat(u,h);return this.close(),a}a=this._binding.write(i,t,m,l,this._buffer,this._offset,n);function c(e,p){if(!o._hadError){var a,d=n-p;if(!function(e,p){if(!e)throw new Error(p)}(0<=d,"have should not go down"),0=o._chunkSize)&&(n=o._chunkSize,o._offset=0,o._buffer=new R(o._chunkSize)),0===p){if(m+=l-e,l=e,!s)return!0;e=o._binding.write(i,t,m,l,o._buffer,o._offset,o._chunkSize);return e.callback=c,void(e.buffer=t)}if(!s)return!1;r()}}a.buffer=t,a.callback=c},De(il,ul),De(rl,ul),De(ll,ul),De(nl,ul),De(ml,ul),De(ol,ul),De(sl,ul);var hl={codes:al,createDeflate:function(e){return new il(e)},createInflate:function(e){return new rl(e)},createDeflateRaw:function(e){return new ml(e)},createInflateRaw:function(e){return new ol(e)},createGzip:function(e){return new ll(e)},createGunzip:function(e){return new nl(e)},createUnzip:function(e){return new sl(e)},deflate:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new il(p),e,a)},deflateSync:function(e,p){return tl(new il(p),e)},gzip:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new ll(p),e,a)},gzipSync:function(e,p){return tl(new ll(p),e)},deflateRaw:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new ml(p),e,a)},deflateRawSync:function(e,p){return tl(new ml(p),e)},unzip:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new sl(p),e,a)},unzipSync:function(e,p){return tl(new sl(p),e)},inflate:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new rl(p),e,a)},inflateSync:function(e,p){return tl(new rl(p),e)},gunzip:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new nl(p),e,a)},gunzipSync:function(e,p){return tl(new nl(p),e)},inflateRaw:function(e,p,a){return"function"==typeof p&&(a=p,p={}),dl(new ol(p),e,a)},inflateRawSync:function(e,p){return tl(new ol(p),e)},Deflate:il,Inflate:rl,Gzip:ll,Gunzip:nl,DeflateRaw:ml,InflateRaw:ol,Unzip:sl,Zlib:ul};const cl=qp.Readable,fl=Symbol("buffer"),vl=Symbol("type");class wl{constructor(){this[vl]="";var e=arguments[0],p=arguments[1];const a=[];let d=0;if(e){var t=e,i=Number(t.length);for(let p=0;pd.size)return l=!0,void p(new _l(`content size at ${d.url} over limit: ${d.size}`,"max-size"));r+=e.length,i.push(e)}}),t.on("end",function(){if(!l){clearTimeout(a);try{e(Buffer.concat(i,r))}catch(e){p(new _l(`Could not create Buffer from response body for ${d.url}: ${e.message}`,"system",e))}}})})}function Tl(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 Dl(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 Vl(e){var p,a;let d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof qp&&"function"!=typeof d.getBoundary&&(p=new yl,a=new yl,d.pipe(p),d.pipe(a),e[bl].body=p,d=a),d}function Al(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Tl(e)?"application/x-www-form-urlencoded;charset=UTF-8":Dl(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 qp?null:"text/plain;charset=UTF-8"}function El(e){const p=e.body;return null===p?0:Dl(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}Sl.prototype={get body(){return this[bl].body},get bodyUsed(){return this[bl].disturbed},arrayBuffer(){return Nl.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let p=this.headers&&this.headers.get("content-type")||"";return Nl.call(this).then(function(e){return Object.assign(new wl([],{type:p.toLowerCase()}),{[fl]:e})})},json(){var p=this;return Nl.call(this).then(function(e){try{return JSON.parse(e.toString())}catch(e){return Sl.Promise.reject(new _l(`invalid json response body at ${p.url} reason: ${e.message}`,"invalid-json"))}})},text(){return Nl.call(this).then(function(e){return e.toString()})},buffer(){return Nl.call(this)},textConverted(){var p=this;return Nl.call(this).then(function(e){return function(e,p){if("function"!=typeof gl)throw new Error("The package `encoding` must be installed to use the textConverted() function");p=p.get("content-type");let a="utf-8",d,t;p&&(d=/charset=([^;]*)/i.exec(p));t=e.slice(0,1024).toString(),!d&&t&&(d=/=u.follow)return s(new _l(`maximum redirect reached at: ${u.url}`,"max-redirect")),void f();const r={headers:new Bl(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(!pn(u.url,e))for(const l of["authorization","www-authenticate","cookie","cookie2"])r.headers.delete(l);return 303!==p.statusCode&&u.body&&null===El(u)?(s(new _l("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==p.statusCode&&(301!==p.statusCode&&302!==p.statusCode||"POST"!==u.method)||(r.method="GET",r.body=void 0,r.headers.delete("content-length")),o(an(new Gl(e,r))),void f())}}p.once("end",function(){h&&h.removeEventListener("abort",v)});let t=p.pipe(new en);const i={url:u.url,status:p.statusCode,statusText:p.statusMessage,headers:a,size:u.size,timeout:u.timeout,counter:u.counter};var e=a.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===e||204===p.statusCode||304===p.statusCode)return c=new Ml(t,i),void o(c);d={flush:hl.Z_SYNC_FLUSH,finishFlush:hl.Z_SYNC_FLUSH};if("gzip"==e||"x-gzip"==e)return t=t.pipe(hl.createGunzip(d)),c=new Ml(t,i),void o(c);if("deflate"!=e&&"x-deflate"!=e){if("br"==e&&"function"==typeof hl.createBrotliDecompress)return t=t.pipe(hl.createBrotliDecompress()),c=new Ml(t,i),void o(c);c=new Ml(t,i),o(c)}else{const n=p.pipe(new en);n.once("data",function(e){t=8==(15&e[0])?t.pipe(hl.createInflate()):t.pipe(hl.createInflateRaw()),c=new Ml(t,i),o(c)})}}),function(e,p){const a=p.body;null===a?e.end():Dl(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(d,u)}})}an.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},an.Promise=p.Promise;var p=a(Object.freeze({__proto__:null,default:an,Headers:Bl,Request:Gl,Response:Ml,FetchError:_l})),dn=m,tn=dn.__importStar(o),rn=ae;dn.__importDefault(p);var ln=window.fetch.bind(window);!function(e){(p=e.TrustType||(e.TrustType={})).CrossAccount="Cross Account",p.InnerAccount="Inner Account",(r=e.PseudoBoolean||(e.PseudoBoolean={}))[r.True=1]="True",r[r.False=0]="False";var p=(a.prototype.create=function(e){return new a(dn.__assign(dn.__assign({},this.config),e))},a.prototype.getAccounts=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getAccounts",a)];case 1:return p=e.sent(),[2,Object.keys(p.accountListRole).map(function(e){return{account:e,role:p.accountListRole[e][0].role,iamKeyActive:p.accountListRole[e][0].iamKeyActive,maxKeyDuration:p.accountListRole[e][0].maxKeyDuration,securityLevel:p.accountListRole[e][0].securityLevel,skypieaAccount:p.accountListRole[e][0].skypieaAccount}})]}})})},a.prototype.getKeys=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getKeys",p)];case 1:return[2,i(e.sent(),["accessKey","secretKey","sessionToken","consoleURL"])]}})})},a.prototype.getIAMKeys=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getIAMKeys",p)];case 1:return[2,i(e.sent(),["accessKey","secretKey","sessionToken","consoleURL"])]}})})},a.prototype.getAllAWSRoleTypes=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.getDynamicValues?"allAwsRoleTypes?getDynamicValues=true":"allAwsRoleTypes",[4,this.internalFetch(p,a,"GET")];case 1:return[2,e.sent().roleTypes]}})})},a.prototype.getAWSRoleTypes=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getAWSRoleTypes",a)];case 1:return p=e.sent(),[2,JSON.parse(p.roleTypes)]}})})},a.prototype.getNonServiceAWSRoleTypes=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getNonServiceAWSRoleTypes",a)];case 1:return p=e.sent(),[2,JSON.parse(p.roleTypes)]}})})},a.prototype.createRole=function(d){return dn.__awaiter(this,void 0,void 0,function(){var p,a;return dn.__generator(this,function(e){switch(e.label){case 0:return p=null!=d.roleType,a=null!=d.trustPolicy,p==a?[3,2]:[4,this.internalFetch("createRole",d)];case 1:return(a=e.sent()).denyArns=a.denyArns.split(","),[2,i(a,["roleArn","denyArns","instanceProfileArn","addedRoleToInstanceProfile","tags"])];case 2:throw new Error("Must include roleType or trustPolicy, but not both.")}})})},a.prototype.createNonServiceRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("createNonServiceRole",a)];case 1:return(p=e.sent()).denyArns=p.denyArns.split(","),[2,i(p,["roleArn","denyArns","instanceProfileArn","addedRoleToInstanceProfile","tags"])]}})})},a.prototype.awsAccountRoles=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("awsAccountRoles?account="+p.account,p,"GET")];case 1:return[2,e.sent().awsRoleList]}})})},a.prototype.listAWSAccountRoles=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("listAWSAccountRoles",a)];case 1:return p=e.sent(),[2,JSON.parse(p.jsonAWSRoleList).map(function(e){return e.split("/").slice(-1)[0]})]}})})},a.prototype.getAccountRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("getAccountRole",a)];case 1:if(!(p=e.sent()).roleExists)throw new Error("Role "+a.roleName+" does not exist in this account");return[2,dn.__assign(dn.__assign({},i(p,["roleArn","isMachineIdentity","tags","maxSessionDurationInSeconds"])),{instanceProfileArn:p.instanceProfileARN})]}})})},a.prototype.updateRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("role",a,"PATCH")];case 1:if(!(p=e.sent()).roleExists)throw new Error("Role "+a.roleName+" does not exist in this account");return[2,dn.__assign(dn.__assign({},i(p,["roleArn","isMachineIdentity","tags"])),{instanceProfileArn:p.instanceProfileARN})]}})})},a.prototype.deleteRole=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("deleteRole",p)];case 1:return e.sent(),[2,!0]}})})},a.prototype.addRoleMachineIdentity=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("roleMachineIdentity",p)];case 1:return[2,i(e.sent(),["machineIdentityArn"])]}})})},a.prototype.deleteRoleMachineIdentity=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("roleMachineIdentity",p,"DELETE")];case 1:return[2,i(e.sent(),["machineIdentityArn"])]}})})},a.prototype.getUserAccess=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("userAccess/"+p,a,"GET")];case 1:return[2,e.sent().users]}})})},a.prototype.getUserAccessByRole=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("reports/users-by-role?accountId="+p,a,"GET")];case 1:return[2,e.sent().users]}})})},a.prototype.getUserRoleAccess=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("userAccess/roles/"+p,a)];case 1:return[2,e.sent().roles]}})})},a.prototype.getAccountOwners=function(a){return dn.__awaiter(this,void 0,void 0,function(){var p;return dn.__generator(this,function(e){switch(e.label){case 0:return p=a.accountId,[4,this.internalFetch("userAccess/owners/"+p,a,"GET")];case 1:return[2,e.sent().accountOwners]}})})},a.prototype.createAccessKeys=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("accessKeys",p)];case 1:return[2,i(e.sent(),["iamUserArn","accessKey","secretKey","addedIAMUserToGroup"])]}})})},a.prototype.deleteIAMUser=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("IAMUser",p,"DELETE")];case 1:return e.sent(),[2,!0]}})})},a.prototype.version=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("version",p,"GET")];case 1:return[2,i(e.sent(),["version"])]}})})},a.prototype.getLoginRole=function(d){return dn.__awaiter(this,void 0,void 0,function(){var p,a;return dn.__generator(this,function(e){switch(e.label){case 0:return p=d.accountId,a=d.role,[4,this.internalFetch("loginRoles/id/"+p+"/"+a,d,"GET")];case 1:return[2,i(e.sent().loginRole,["account","role","iamKeyActive","maxKeyDuration","securityLevel"])]}})})},a.prototype.getAccessToken=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("accessToken",p)];case 1:return[2,i(e.sent(),["accessToken","expiresIn"])]}})})},a.prototype.getRefreshTokens=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("refreshTokens",p,"GET")];case 1:return[2,e.sent().refreshTokens.map(function(e){return i(e,["clientId","id","userId","value"])})]}})})},a.prototype.revoke=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("revoke",p)];case 1:return[2,"Success"==e.sent().statusMessage]}})})},a.prototype.getCostTotals=function(p){return dn.__awaiter(this,void 0,void 0,function(){return dn.__generator(this,function(e){switch(e.label){case 0:return[4,this.internalFetch("costTotals/"+p.accountId,p,"GET")];case 1:return[2,i(e.sent().costTotals,["awsAccountId","yyyy","mm","dd","daily","weekly","monthly","yearly","dailyCostsByService","monthlyCostsByService"])]}})})},a.prototype.internalFetch=function(l,n,m){return void 0===n&&(n={}),void 0===m&&(m="POST"),dn.__awaiter(this,void 0,void 0,function(){var p,a,d,t,i,r;return dn.__generator(this,function(e){switch(e.label){case 0:return p=dn.__assign(dn.__assign({},this.config),n),r=dn.__assign({},p),a={"Content-Type":"application/json","User-Agent":"AlksJS/"+tn.version},void 0!==p.accessToken?(a.Authorization="Bearer "+p.accessToken,delete r.accessToken):void 0!==p.accessKey?(a["ALKS-STS-Access-Key"]=p.accessKey,a["ALKS-STS-Secret-Key"]=p.secretKey,a["ALKS-STS-Session-Token"]=p.sessionToken,delete r.accessKey,delete r.secretKey,delete r.sessionToken):void 0!==p.userid&&(console.error("The userid and password properties are deprecated and should be replaced with an access token"),d=function(e){void 0===e&&(e="");return rn.Buffer.from(e).toString("base64")}(p.userid+":"+p.password),a.Authorization="Basic "+d,delete r.userid,delete r.password),p.userAgent&&(a["User-Agent"]+=" "+p.userAgent,delete r.userAgent),[4,p._fetch(p.baseUrl+"/"+l,{method:m,headers:a,credentials:"omit",body:"GET"==m?void 0:JSON.stringify(r)})];case 1:t=e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t.json()];case 3:return i=e.sent(),[3,5];case 4:return r=e.sent(),i={errors:[r.message]},[3,5];case 5:if(!t.ok)throw new o(t,i);return[2,i]}})})},a);function a(e){this.config=e}e.Alks=p;var t,o=(t=Error,dn.__extends(d,t),d);function d(e,p){var a=this,d=Array.isArray(null==p?void 0:p.errors)?p.errors:[];e.statusText&&d.unshift(e.statusText);d=d.join("; ");return(a=t.call(this,d)||this).status=e.status,a.message=d,Object.assign(a,p),a}function i(a,e){return e.reduce(function(e,p){return e[p]=a[p],e},{})}e.AlksError=o;var r=p.prototype.create.call({},{_fetch:ln});e.create=p.prototype.create.bind(r),e.getAccounts=p.prototype.getAccounts.bind(r),e.getKeys=p.prototype.getKeys.bind(r),e.getIAMKeys=p.prototype.getIAMKeys.bind(r),e.getAllAWSRoleTypes=p.prototype.getAllAWSRoleTypes.bind(r),e.getAWSRoleTypes=p.prototype.getAWSRoleTypes.bind(r),e.getNonServiceAWSRoleTypes=p.prototype.getNonServiceAWSRoleTypes.bind(r),e.createRole=p.prototype.createRole.bind(r),e.createNonServiceRole=p.prototype.createNonServiceRole.bind(r),e.awsAccountRoles=p.prototype.awsAccountRoles.bind(r),e.listAWSAccountRoles=p.prototype.listAWSAccountRoles.bind(r),e.getAccountRole=p.prototype.getAccountRole.bind(r),e.updateRole=p.prototype.updateRole.bind(r),e.deleteRole=p.prototype.deleteRole.bind(r),e.addRoleMachineIdentity=p.prototype.addRoleMachineIdentity.bind(r),e.deleteRoleMachineIdentity=p.prototype.deleteRoleMachineIdentity.bind(r),e.getUserAccess=p.prototype.getUserAccess.bind(r),e.getUserAccessByRole=p.prototype.getUserAccessByRole.bind(r),e.getUserRoleAccess=p.prototype.getUserRoleAccess.bind(r),e.getAccountOwners=p.prototype.getAccountOwners.bind(r),e.createAccessKeys=p.prototype.createAccessKeys.bind(r),e.deleteIAMUser=p.prototype.deleteIAMUser.bind(r),e.version=p.prototype.version.bind(r),e.getLoginRole=p.prototype.getLoginRole.bind(r),e.getAccessToken=p.prototype.getAccessToken.bind(r),e.getRefreshTokens=p.prototype.getRefreshTokens.bind(r),e.revoke=p.prototype.revoke.bind(r),e.getCostTotals=p.prototype.getCostTotals.bind(r)}(nn=nn||{});var nn=nn;e.default=nn,Object.defineProperty(e,"__esModule",{value:!0}),Object.assign(e,nn)}); diff --git a/dist/alks.umd.js b/dist/alks.umd.js index 4b43bee0..0e351c21 100644 --- a/dist/alks.umd.js +++ b/dist/alks.umd.js @@ -291,7 +291,7 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(tslib_es6); var name = "alks.js"; - var version$2 = "2.3.1"; + var version$2 = "2.4.0"; var description = "JavaScript client for the ALKS API, usable in both modern browsers and node.js"; var main = "dist/alks.cjs.js"; var types = "dist/src/alks.d.ts"; diff --git a/docs/classes/export_.Alks.html b/docs/classes/export_.Alks.html index 19ec0b9e..ac8aa71f 100644 --- a/docs/classes/export_.Alks.html +++ b/docs/classes/export_.Alks.html @@ -1,6 +1,6 @@ Alks | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

ALKS JavaScript API

-

Hierarchy

  • Alks

Index

Constructors

Properties

Methods

Hierarchy

  • Alks

Index

Constructors

Properties

Methods

Returns Promise<export=.MachineIdentity>

Returns Promise<export=.AwsAccountRole[]>

  • Returns a new instance of alks with pre-defined properties (which don't need to be supplied to every method).

    Any of the properties required by other methods can be specified here.

    Properties present on the current object are carried through to the newly created one.

    @@ -39,7 +39,7 @@ })

    Parameters

    • props: export=.AlksProps

      An object containing settings for the new ALKS object

      -

    Returns Alks

Returns Alks

Returns Promise<export=.LongTermKey>

Returns Promise<export=.Role>

Returns Promise<export=.Role>

Returns Promise<boolean>

Returns Promise<boolean>

Returns Promise<export=.MachineIdentity>

  • Returns a Promise for an array of available AWS IAM role types

    deprecated

    Replaced by getAllAWSRoleTypes which includes all AWS role types and their details

    example

    alks.getAWSRoleTypes({ @@ -209,7 +209,7 @@ })

    Parameters

    Returns Promise<string[]>

Returns Promise<string[]>

Returns Promise<export=.AccessToken>

Returns Promise<export=.User[]>

Returns Promise<export=.Role>

Returns Promise<export=.Account[]>

Returns Promise<export=.AwsRoleType[]>

  • Returns cost totals for the specified account for the day, week, month, year, and a breakdown of costs by service for the day and month

    example

    alks.getCostTotals({ accountId: '012345678910', @@ -278,7 +278,7 @@ })

    Parameters

    Returns Promise<export=.CostTotal>

Returns Promise<export=.CostTotal>

Returns Promise<export=.Key>

Returns Promise<export=.Key>

  • Returns information about one of the roles used to generate keys

    example

    alks.getLoginRole({ ... @@ -313,7 +313,7 @@ })

    Parameters

    Returns Promise<Omit<export=.Account, "skypieaAccount">>

Returns Promise<Omit<export=.Account, "skypieaAccount">>

  • Returns a Promise for an array of available custom role types

    deprecated

    Replaced by getAllAWSRoleTypes which includes all AWS role types and their details

    example

    alks.getNonServiceAWSRoleTypes({ @@ -324,7 +324,7 @@ })

    Parameters

    Returns Promise<string[]>

Returns Promise<string[]>

Returns Promise<export=.RefreshToken[]>

Returns Promise<export=.User[]>

Returns Promise<Record<string, export=.User[]>>

  • internalFetch(path: string, args?: Partial<export=.AlksProps>, method?: string): Promise<any>

Returns Promise<string[]>

  • internalFetch(path: string, args?: Partial<export=.AlksProps>, method?: string): Promise<any>
  • Returns a Promise for an array of AWS custom AWS IAM account roles

    deprecated

    Replaced by awsAccountRoles which includes AWS account roles and their details

    example

    alks.listAWSAccountRoles({ @@ -380,7 +380,7 @@ })

    Parameters

    Returns Promise<string[]>

Returns Promise<string[]>

  • Revokes a refresh or access token

    example

    alks.revoke({ token: '...', @@ -397,7 +397,7 @@ })

    Parameters

    Returns Promise<boolean>

Returns Promise<boolean>

Returns Promise<export=.Role>

  • Returns the version of the ALKS Rest API

    example

    alks.version({ ... diff --git a/docs/classes/export_.AlksError.html b/docs/classes/export_.AlksError.html index ca768bc5..b6e6dccb 100644 --- a/docs/classes/export_.AlksError.html +++ b/docs/classes/export_.AlksError.html @@ -1,4 +1,4 @@ -AlksError | alks.js

    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class AlksError

    Hierarchy

    • Error
      • AlksError

    Indexable

    [s: string]: any

    Index

    Constructors

    • new AlksError(response: Response, json: any): AlksError

    Properties

    message: string
    name: string
    stack?: string
    status: number
    stackTraceLimit: number

    Methods

    • captureStackTrace(targetObject: object, constructorOpt?: Function): void
    • +AlksError | alks.js
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Class AlksError

      Hierarchy

      • Error
        • AlksError

      Indexable

      [s: string]: any

      Index

      Constructors

      • new AlksError(response: Response, json: any): AlksError

      Properties

      message: string
      name: string
      stack?: string
      status: number
      stackTraceLimit: number

      Methods

      • captureStackTrace(targetObject: object, constructorOpt?: Function): void
      • Create .stack property on a target object

        Parameters

        • targetObject: object
        • Optional constructorOpt: Function

        Returns void

      • prepareStackTrace(err: Error, stackTraces: CallSite[]): any
      • Optional override for formatting stack traces

        diff --git a/docs/enums/export_.PseudoBoolean.html b/docs/enums/export_.PseudoBoolean.html index 205cb41a..5e4910d1 100644 --- a/docs/enums/export_.PseudoBoolean.html +++ b/docs/enums/export_.PseudoBoolean.html @@ -1 +1 @@ -PseudoBoolean | alks.js
        Options
        All
        • Public
        • Public/Protected
        • All
        Menu

        Enumeration PseudoBoolean

        Index

        Enumeration members

        Enumeration members

        False = 0
        True = 1

        Legend

        • Property

        Settings

        Theme

        Generated using TypeDoc

        \ No newline at end of file +PseudoBoolean | alks.js
        Options
        All
        • Public
        • Public/Protected
        • All
        Menu

        Enumeration PseudoBoolean

        Index

        Enumeration members

        Enumeration members

        False = 0
        True = 1

        Legend

        • Property

        Settings

        Theme

        Generated using TypeDoc

        \ No newline at end of file diff --git a/docs/enums/export_.TrustType.html b/docs/enums/export_.TrustType.html index 94262bc0..d3a979ee 100644 --- a/docs/enums/export_.TrustType.html +++ b/docs/enums/export_.TrustType.html @@ -1 +1 @@ -TrustType | alks.js
        Options
        All
        • Public
        • Public/Protected
        • All
        Menu

        Enumeration TrustType

        Index

        Enumeration members

        Enumeration members

        CrossAccount = "Cross Account"
        InnerAccount = "Inner Account"

        Legend

        • Property

        Settings

        Theme

        Generated using TypeDoc

        \ No newline at end of file +TrustType | alks.js
        Options
        All
        • Public
        • Public/Protected
        • All
        Menu

        Enumeration TrustType

        Index

        Enumeration members

        Enumeration members

        CrossAccount = "Cross Account"
        InnerAccount = "Inner Account"

        Legend

        • Property

        Settings

        Theme

        Generated using TypeDoc

        \ No newline at end of file diff --git a/docs/interfaces/AccessToken.html b/docs/interfaces/AccessToken.html index 9cd3d4f3..cb9df6d8 100644 --- a/docs/interfaces/AccessToken.html +++ b/docs/interfaces/AccessToken.html @@ -1 +1 @@ -AccessToken | alks.js
        Options
        All
        • Public
        • Public/Protected
        • All
        Menu

        Interface AccessToken

        Hierarchy

        • AccessToken

        Index

        Properties

        accessToken: string
        expiresIn: string

        Legend

        • Property

        Settings

        Theme

        Generated using TypeDoc

        \ No newline at end of file +AccessToken | alks.js
        Options
        All
        • Public
        • Public/Protected
        • All
        Menu

        Interface AccessToken

        Hierarchy

        • AccessToken

        Index

        Properties

        accessToken: string
        expiresIn: string

        Legend

        • Property

        Settings

        Theme

        Generated using TypeDoc

        \ No newline at end of file diff --git a/docs/interfaces/Account.html b/docs/interfaces/Account.html index 2675084e..2f24fa31 100644 --- a/docs/interfaces/Account.html +++ b/docs/interfaces/Account.html @@ -5,4 +5,4 @@
    property

    iamKeyActive - Whether credentials with IAM permissions can be provisioned from this account

    property

    maxKeyDuration - The maximum key duration for this account

    property

    skypieaAccount - extra information about the account from Skypiea

    -

Hierarchy

  • Account

Index

Properties

account: string
iamKeyActive: boolean
maxKeyDuration: number
role: string
securityLevel: string
skypieaAccount: null | export=.SkypieaAccount

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Account

Index

Properties

account: string
iamKeyActive: boolean
maxKeyDuration: number
role: string
securityLevel: string
skypieaAccount: null | export=.SkypieaAccount

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/AccountUserDetails.html b/docs/interfaces/AccountUserDetails.html index c1293a14..67789cc5 100644 --- a/docs/interfaces/AccountUserDetails.html +++ b/docs/interfaces/AccountUserDetails.html @@ -3,4 +3,4 @@
property

samAccountName - the samAccountName of the user

property

email - the email of the user

property

href - the href self link

-

Hierarchy

  • AccountUserDetails

Index

Properties

email: string
href: string
samAccountName: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • AccountUserDetails

Index

Properties

email: string
href: string
samAccountName: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/AwsAccountRole.html b/docs/interfaces/AwsAccountRole.html index 0df9379b..0aecb911 100644 --- a/docs/interfaces/AwsAccountRole.html +++ b/docs/interfaces/AwsAccountRole.html @@ -3,4 +3,4 @@
property

roleArn - The AWS Role ARN

property

isMachineIdentity - true|false value of if this role is a machine identity

property

assumeRolePolicyDocument - The AWS assume role policy document associated with this role

-

Hierarchy

  • AwsAccountRole

Index

Properties

assumeRolePolicyDocument: object
isMachineIdentity: boolean
roleArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • AwsAccountRole

Index

Properties

assumeRolePolicyDocument: object
isMachineIdentity: boolean
roleArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/AwsRoleType.html b/docs/interfaces/AwsRoleType.html index a1320392..57ab9241 100644 --- a/docs/interfaces/AwsRoleType.html +++ b/docs/interfaces/AwsRoleType.html @@ -5,4 +5,4 @@
property

trustRelationship - The AWS trust policy document associated with this role

property

instanceProfile - Whether this role is an instance profile

property

templateVariables - A list of template variables that exist within the role type's trust policy document

-

Hierarchy

  • AwsRoleType

Index

Properties

defaultArns: string[]
instanceProfile: boolean
roleTypeName: string
templateVariables?: string[]
trustRelationship: object

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • AwsRoleType

Index

Properties

defaultArns: string[]
instanceProfile: boolean
roleTypeName: string
templateVariables?: string[]
trustRelationship: object

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/CloudsploitReport.html b/docs/interfaces/CloudsploitReport.html index 3abbe278..df9abe3f 100644 --- a/docs/interfaces/CloudsploitReport.html +++ b/docs/interfaces/CloudsploitReport.html @@ -12,4 +12,4 @@
property

warning - the amount of warnings

property

failing - the amount of fails

property

unknown - the amount of unknowns

-

Hierarchy

  • CloudsploitReport

Index

Properties

awsAccountId: string
day: number
failing: number
href: string
month: number
newRisks: number
passing: number
scanDate: string
scanId: number
unknown: number
warning: number
year: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • CloudsploitReport

Index

Properties

awsAccountId: string
day: number
failing: number
href: string
month: number
newRisks: number
passing: number
scanDate: string
scanId: number
unknown: number
warning: number
year: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/CostTotal.html b/docs/interfaces/CostTotal.html index 8bd3b5fd..55d1aa36 100644 --- a/docs/interfaces/CostTotal.html +++ b/docs/interfaces/CostTotal.html @@ -1 +1 @@ -CostTotal | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CostTotal

Hierarchy

  • CostTotal

Index

Properties

awsAccountId: string
daily: string
dailyCostsByService: Record<string, string>
dd: string
mm: string
monthly: string
monthlyCostsByService: Record<string, string>
weekly: string
yearly: string
yyyy: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +CostTotal | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CostTotal

Hierarchy

  • CostTotal

Index

Properties

awsAccountId: string
daily: string
dailyCostsByService: Record<string, string>
dd: string
mm: string
monthly: string
monthlyCostsByService: Record<string, string>
weekly: string
yearly: string
yyyy: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Key.html b/docs/interfaces/Key.html index 4c0d4b8f..cad923f4 100644 --- a/docs/interfaces/Key.html +++ b/docs/interfaces/Key.html @@ -4,4 +4,4 @@
property

secretKey - AWS secret key

property

sessionToken - AWS STS session token

property

consoleURL - a URL to the AWS console using these keys

-

Hierarchy

  • Key

Index

Properties

accessKey: string
consoleURL: string
secretKey: string
sessionToken: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Key

Index

Properties

accessKey: string
consoleURL: string
secretKey: string
sessionToken: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/LongTermKey.html b/docs/interfaces/LongTermKey.html index 7e39e348..77677820 100644 --- a/docs/interfaces/LongTermKey.html +++ b/docs/interfaces/LongTermKey.html @@ -4,4 +4,4 @@
property

accessKey - the long term access key

property

secretKey - the secret key for the long term access key

property

addedIAMUserToGroup - whether the user was successfuly added to the deny policy group

-

Hierarchy

  • LongTermKey

Index

Properties

accessKey: string
addedIAMUserToGroup: boolean
iamUserArn: string
secretKey: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • LongTermKey

Index

Properties

accessKey: string
addedIAMUserToGroup: boolean
iamUserArn: string
secretKey: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/MachineIdentity.html b/docs/interfaces/MachineIdentity.html index 61dbc5ed..683fe062 100644 --- a/docs/interfaces/MachineIdentity.html +++ b/docs/interfaces/MachineIdentity.html @@ -1 +1 @@ -MachineIdentity | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MachineIdentity

Hierarchy

  • MachineIdentity

Index

Properties

machineIdentityArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +MachineIdentity | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MachineIdentity

Hierarchy

  • MachineIdentity

Index

Properties

machineIdentityArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/RefreshToken.html b/docs/interfaces/RefreshToken.html index c8020da2..35fbce36 100644 --- a/docs/interfaces/RefreshToken.html +++ b/docs/interfaces/RefreshToken.html @@ -1 +1 @@ -RefreshToken | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RefreshToken

Hierarchy

  • RefreshToken

Index

Properties

clientId: string
id: string
userId: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +RefreshToken | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RefreshToken

Hierarchy

  • RefreshToken

Index

Properties

clientId: string
id: string
userId: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Role.html b/docs/interfaces/Role.html index d131805f..5c429e66 100644 --- a/docs/interfaces/Role.html +++ b/docs/interfaces/Role.html @@ -5,4 +5,4 @@
property

instanceProfileArn - The Instance Profile ARN associated with this role

property

addedRoleToInstanceProfile - Whether this role was added to an Instance Profile

property

tags - Resource tags associated with the IAM account role

-

Hierarchy

  • Role

Index

Properties

addedRoleToInstanceProfile?: boolean
denyArns?: string
instanceProfileArn: string
isMachineIdentity?: boolean
maxSessionDurationInSeconds?: number
roleArn: string
tags?: export=.Tag[]

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Role

Index

Properties

addedRoleToInstanceProfile?: boolean
denyArns?: string
instanceProfileArn: string
isMachineIdentity?: boolean
maxSessionDurationInSeconds?: number
roleArn: string
tags?: export=.Tag[]

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/SkypieaAccount.html b/docs/interfaces/SkypieaAccount.html index 1531e764..9f931c60 100644 --- a/docs/interfaces/SkypieaAccount.html +++ b/docs/interfaces/SkypieaAccount.html @@ -3,4 +3,4 @@
property

label - the friendly name of the account

property

accountOwners - the samAccountNames of the account owners

property

cloudsploitTrend - the cloudsploit trends

-

Hierarchy

  • SkypieaAccount

Index

Properties

accountOwners: export=.AccountUserDetails[]
cloudsploitTrend: export=.CloudsploitReport[]
label: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • SkypieaAccount

Index

Properties

accountOwners: export=.AccountUserDetails[]
cloudsploitTrend: export=.CloudsploitReport[]
label: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Tag.html b/docs/interfaces/Tag.html index 7844c3d7..7553ee8b 100644 --- a/docs/interfaces/Tag.html +++ b/docs/interfaces/Tag.html @@ -2,4 +2,4 @@

Alks role tags

property

key - The AWS role tag key

property

value - The AWS role tag value

-

Hierarchy

  • Tag

Index

Properties

Properties

key: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Tag

Index

Properties

Properties

key: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/User.html b/docs/interfaces/User.html index 711b284a..3ee4c34c 100644 --- a/docs/interfaces/User.html +++ b/docs/interfaces/User.html @@ -5,4 +5,4 @@
property

email - The user email

property

title - The user title

property

department - The user department

-

Hierarchy

  • User

Index

Properties

department: string
displayName: string
email: string
sAMAccountName: string
title: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • User

Index

Properties

department: string
displayName: string
email: string
sAMAccountName: string
title: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.AccessToken.html b/docs/interfaces/export_.AccessToken.html index 048820a8..10e1c6cd 100644 --- a/docs/interfaces/export_.AccessToken.html +++ b/docs/interfaces/export_.AccessToken.html @@ -1 +1 @@ -AccessToken | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AccessToken

Hierarchy

  • AccessToken

Index

Properties

accessToken: string
expiresIn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +AccessToken | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AccessToken

Hierarchy

  • AccessToken

Index

Properties

accessToken: string
expiresIn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.Account.html b/docs/interfaces/export_.Account.html index e52709d8..4874fb88 100644 --- a/docs/interfaces/export_.Account.html +++ b/docs/interfaces/export_.Account.html @@ -5,4 +5,4 @@
property

iamKeyActive - Whether credentials with IAM permissions can be provisioned from this account

property

maxKeyDuration - The maximum key duration for this account

property

skypieaAccount - extra information about the account from Skypiea

-

Hierarchy

  • Account

Index

Properties

account: string
iamKeyActive: boolean
maxKeyDuration: number
role: string
securityLevel: string
skypieaAccount: null | export=.SkypieaAccount

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Account

Index

Properties

account: string
iamKeyActive: boolean
maxKeyDuration: number
role: string
securityLevel: string
skypieaAccount: null | export=.SkypieaAccount

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.AccountUserDetails.html b/docs/interfaces/export_.AccountUserDetails.html index 0634b79f..2cec452d 100644 --- a/docs/interfaces/export_.AccountUserDetails.html +++ b/docs/interfaces/export_.AccountUserDetails.html @@ -3,4 +3,4 @@
property

samAccountName - the samAccountName of the user

property

email - the email of the user

property

href - the href self link

-

Hierarchy

  • AccountUserDetails

Index

Properties

email: string
href: string
samAccountName: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • AccountUserDetails

Index

Properties

email: string
href: string
samAccountName: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.AwsAccountRole.html b/docs/interfaces/export_.AwsAccountRole.html index 0e2e3fbd..769800d6 100644 --- a/docs/interfaces/export_.AwsAccountRole.html +++ b/docs/interfaces/export_.AwsAccountRole.html @@ -3,4 +3,4 @@
property

roleArn - The AWS Role ARN

property

isMachineIdentity - true|false value of if this role is a machine identity

property

assumeRolePolicyDocument - The AWS assume role policy document associated with this role

-

Hierarchy

  • AwsAccountRole

Index

Properties

assumeRolePolicyDocument: object
isMachineIdentity: boolean
roleArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • AwsAccountRole

Index

Properties

assumeRolePolicyDocument: object
isMachineIdentity: boolean
roleArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.AwsRoleType.html b/docs/interfaces/export_.AwsRoleType.html index 399b4f65..9b12b9bd 100644 --- a/docs/interfaces/export_.AwsRoleType.html +++ b/docs/interfaces/export_.AwsRoleType.html @@ -5,4 +5,4 @@
property

trustRelationship - The AWS trust policy document associated with this role

property

instanceProfile - Whether this role is an instance profile

property

templateVariables - A list of template variables that exist within the role type's trust policy document

-

Hierarchy

  • AwsRoleType

Index

Properties

defaultArns: string[]
instanceProfile: boolean
roleTypeName: string
templateVariables?: string[]
trustRelationship: object

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • AwsRoleType

Index

Properties

defaultArns: string[]
instanceProfile: boolean
roleTypeName: string
templateVariables?: string[]
trustRelationship: object

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.CloudsploitReport.html b/docs/interfaces/export_.CloudsploitReport.html index a84bafa3..e78f4087 100644 --- a/docs/interfaces/export_.CloudsploitReport.html +++ b/docs/interfaces/export_.CloudsploitReport.html @@ -12,4 +12,4 @@
property

warning - the amount of warnings

property

failing - the amount of fails

property

unknown - the amount of unknowns

-

Hierarchy

  • CloudsploitReport

Index

Properties

awsAccountId: string
day: number
failing: number
href: string
month: number
newRisks: number
passing: number
scanDate: string
scanId: number
unknown: number
warning: number
year: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • CloudsploitReport

Index

Properties

awsAccountId: string
day: number
failing: number
href: string
month: number
newRisks: number
passing: number
scanDate: string
scanId: number
unknown: number
warning: number
year: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.CostTotal.html b/docs/interfaces/export_.CostTotal.html index 14ab62d8..fa56a93d 100644 --- a/docs/interfaces/export_.CostTotal.html +++ b/docs/interfaces/export_.CostTotal.html @@ -1 +1 @@ -CostTotal | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CostTotal

Hierarchy

  • CostTotal

Index

Properties

awsAccountId: string
daily: string
dailyCostsByService: Record<string, string>
dd: string
mm: string
monthly: string
monthlyCostsByService: Record<string, string>
weekly: string
yearly: string
yyyy: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +CostTotal | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CostTotal

Hierarchy

  • CostTotal

Index

Properties

awsAccountId: string
daily: string
dailyCostsByService: Record<string, string>
dd: string
mm: string
monthly: string
monthlyCostsByService: Record<string, string>
weekly: string
yearly: string
yyyy: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.Key.html b/docs/interfaces/export_.Key.html index 3b2a7a3c..f029a090 100644 --- a/docs/interfaces/export_.Key.html +++ b/docs/interfaces/export_.Key.html @@ -4,4 +4,4 @@
property

secretKey - AWS secret key

property

sessionToken - AWS STS session token

property

consoleURL - a URL to the AWS console using these keys

-

Hierarchy

  • Key

Index

Properties

accessKey: string
consoleURL: string
secretKey: string
sessionToken: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Key

Index

Properties

accessKey: string
consoleURL: string
secretKey: string
sessionToken: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.LongTermKey.html b/docs/interfaces/export_.LongTermKey.html index 5af05f3e..0674f658 100644 --- a/docs/interfaces/export_.LongTermKey.html +++ b/docs/interfaces/export_.LongTermKey.html @@ -4,4 +4,4 @@
property

accessKey - the long term access key

property

secretKey - the secret key for the long term access key

property

addedIAMUserToGroup - whether the user was successfuly added to the deny policy group

-

Hierarchy

  • LongTermKey

Index

Properties

accessKey: string
addedIAMUserToGroup: boolean
iamUserArn: string
secretKey: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • LongTermKey

Index

Properties

accessKey: string
addedIAMUserToGroup: boolean
iamUserArn: string
secretKey: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.MachineIdentity.html b/docs/interfaces/export_.MachineIdentity.html index ff34c839..45a5578d 100644 --- a/docs/interfaces/export_.MachineIdentity.html +++ b/docs/interfaces/export_.MachineIdentity.html @@ -1 +1 @@ -MachineIdentity | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MachineIdentity

Hierarchy

  • MachineIdentity

Index

Properties

machineIdentityArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +MachineIdentity | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MachineIdentity

Hierarchy

  • MachineIdentity

Index

Properties

machineIdentityArn: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.RefreshToken.html b/docs/interfaces/export_.RefreshToken.html index a21919af..aab0e935 100644 --- a/docs/interfaces/export_.RefreshToken.html +++ b/docs/interfaces/export_.RefreshToken.html @@ -1 +1 @@ -RefreshToken | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RefreshToken

Hierarchy

  • RefreshToken

Index

Properties

clientId: string
id: string
userId: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +RefreshToken | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RefreshToken

Hierarchy

  • RefreshToken

Index

Properties

clientId: string
id: string
userId: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.Role.html b/docs/interfaces/export_.Role.html index a08b774f..2b0350d8 100644 --- a/docs/interfaces/export_.Role.html +++ b/docs/interfaces/export_.Role.html @@ -5,4 +5,4 @@
property

instanceProfileArn - The Instance Profile ARN associated with this role

property

addedRoleToInstanceProfile - Whether this role was added to an Instance Profile

property

tags - Resource tags associated with the IAM account role

-

Hierarchy

  • Role

Index

Properties

addedRoleToInstanceProfile?: boolean
denyArns?: string
instanceProfileArn: string
isMachineIdentity?: boolean
maxSessionDurationInSeconds?: number
roleArn: string
tags?: export=.Tag[]

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Role

Index

Properties

addedRoleToInstanceProfile?: boolean
denyArns?: string
instanceProfileArn: string
isMachineIdentity?: boolean
maxSessionDurationInSeconds?: number
roleArn: string
tags?: export=.Tag[]

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.SkypieaAccount.html b/docs/interfaces/export_.SkypieaAccount.html index 73a2f8f2..b4039dab 100644 --- a/docs/interfaces/export_.SkypieaAccount.html +++ b/docs/interfaces/export_.SkypieaAccount.html @@ -3,4 +3,4 @@
property

label - the friendly name of the account

property

accountOwners - the samAccountNames of the account owners

property

cloudsploitTrend - the cloudsploit trends

-

Hierarchy

  • SkypieaAccount

Index

Properties

accountOwners: export=.AccountUserDetails[]
cloudsploitTrend: export=.CloudsploitReport[]
label: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • SkypieaAccount

Index

Properties

accountOwners: export=.AccountUserDetails[]
cloudsploitTrend: export=.CloudsploitReport[]
label: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.Tag.html b/docs/interfaces/export_.Tag.html index bc21c394..2b50ed3c 100644 --- a/docs/interfaces/export_.Tag.html +++ b/docs/interfaces/export_.Tag.html @@ -2,4 +2,4 @@

Alks role tags

property

key - The AWS role tag key

property

value - The AWS role tag value

-

Hierarchy

  • Tag

Index

Properties

Properties

key: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • Tag

Index

Properties

Properties

key: string
value: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/export_.User.html b/docs/interfaces/export_.User.html index 5fa2c9ce..3d6fbaf6 100644 --- a/docs/interfaces/export_.User.html +++ b/docs/interfaces/export_.User.html @@ -5,4 +5,4 @@
property

email - The user email

property

title - The user title

property

department - The user department

-

Hierarchy

  • User

Index

Properties

department: string
displayName: string
email: string
sAMAccountName: string
title: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • User

Index

Properties

department: string
displayName: string
email: string
sAMAccountName: string
title: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index 26c4dd6a..199699c5 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1 +1 @@ -alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

alks.js

Index

Type aliases

AddRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
AlksProps: BaseConfig & Auth
AwsAccountRolesProps: Partial<export=.AlksProps> & { account: string }
CreateAccessKeysProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
CreateNonServiceRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; externalId?: string; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType: TrustType; tags?: export=.Tag[]; trustArn: string }
CreateRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType?: string; tags?: export=.Tag[]; templateFields?: Record<string, string>; trustPolicy?: Record<string, unknown> }
DeleteIAMUserProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
DeleteRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
DeleteRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetAccessTokenProps: Partial<export=.AlksProps> & { refreshToken: string }
GetAccountOwnersProps: Partial<export=.AlksProps> & { accountId: string }
GetAccountRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAccountsProps: Partial<export=.AlksProps> & {}
GetAllAWSRoleTypesProps: Partial<export=.AlksProps> & { getDynamicValues?: boolean }
GetCostTotalsProps: Partial<export=.AlksProps> & { accountId: string }
GetIAMKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetLoginRoleProps: Partial<export=.AlksProps> & { accountId: string; role: string }
GetNonServiceAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetRefreshTokensProps: Partial<export=.AlksProps> & {}
GetUserAccessByRoleProps: Partial<export=.AlksProps> & { accountId: string }
GetUserAccessProps: Partial<export=.AlksProps> & { accountId: string }
GetUserRoleAccessProps: Partial<export=.AlksProps> & { accountId: string; sAMAccountName: string }
ListAWSAccountRolesProps: Partial<export=.AlksProps> & { account: string; role: string }
RevokeByIdProps: Partial<export=.AlksProps> & { tokenId: string }
RevokeByValueProps: Partial<export=.AlksProps> & { token: string }
UpdateRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string; tags: export=.Tag[] }
VersionProps: Partial<export=.AlksProps> & {}

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

alks.js

Index

Type aliases

AddRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
AlksProps: BaseConfig & Auth
AwsAccountRolesProps: Partial<export=.AlksProps> & { account: string }
CreateAccessKeysProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
CreateNonServiceRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; externalId?: string; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType: TrustType; tags?: export=.Tag[]; trustArn: string }
CreateRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType?: string; tags?: export=.Tag[]; templateFields?: Record<string, string>; trustPolicy?: Record<string, unknown> }
DeleteIAMUserProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
DeleteRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
DeleteRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetAccessTokenProps: Partial<export=.AlksProps> & { refreshToken: string }
GetAccountOwnersProps: Partial<export=.AlksProps> & { accountId: string }
GetAccountRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAccountsProps: Partial<export=.AlksProps> & {}
GetAllAWSRoleTypesProps: Partial<export=.AlksProps> & { getDynamicValues?: boolean }
GetCostTotalsProps: Partial<export=.AlksProps> & { accountId: string }
GetIAMKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetLoginRoleProps: Partial<export=.AlksProps> & { accountId: string; role: string }
GetNonServiceAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetRefreshTokensProps: Partial<export=.AlksProps> & {}
GetUserAccessByRoleProps: Partial<export=.AlksProps> & { accountId: string }
GetUserAccessProps: Partial<export=.AlksProps> & { accountId: string }
GetUserRoleAccessProps: Partial<export=.AlksProps> & { accountId: string; sAMAccountName: string }
ListAWSAccountRolesProps: Partial<export=.AlksProps> & { account: string; role: string }
RevokeByIdProps: Partial<export=.AlksProps> & { tokenId: string }
RevokeByValueProps: Partial<export=.AlksProps> & { token: string }
UpdateRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string; tags: export=.Tag[] }
VersionProps: Partial<export=.AlksProps> & {}

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/export_.html b/docs/modules/export_.html index cd824145..a9213853 100644 --- a/docs/modules/export_.html +++ b/docs/modules/export_.html @@ -1 +1 @@ -export= | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace export=

Index

Type aliases

AddRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
AlksProps: BaseConfig & Auth
AwsAccountRolesProps: Partial<export=.AlksProps> & { account: string }
CreateAccessKeysProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
CreateNonServiceRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; externalId?: string; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType: TrustType; tags?: export=.Tag[]; trustArn: string }
CreateRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType?: string; tags?: export=.Tag[]; templateFields?: Record<string, string>; trustPolicy?: Record<string, unknown> }
DeleteIAMUserProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
DeleteRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
DeleteRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetAccessTokenProps: Partial<export=.AlksProps> & { refreshToken: string }
GetAccountOwnersProps: Partial<export=.AlksProps> & { accountId: string }
GetAccountRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAccountsProps: Partial<export=.AlksProps> & {}
GetAllAWSRoleTypesProps: Partial<export=.AlksProps> & { getDynamicValues?: boolean }
GetCostTotalsProps: Partial<export=.AlksProps> & { accountId: string }
GetIAMKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetLoginRoleProps: Partial<export=.AlksProps> & { accountId: string; role: string }
GetNonServiceAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetRefreshTokensProps: Partial<export=.AlksProps> & {}
GetUserAccessByRoleProps: Partial<export=.AlksProps> & { accountId: string }
GetUserAccessProps: Partial<export=.AlksProps> & { accountId: string }
GetUserRoleAccessProps: Partial<export=.AlksProps> & { accountId: string; sAMAccountName: string }
ListAWSAccountRolesProps: Partial<export=.AlksProps> & { account: string; role: string }
RevokeByIdProps: Partial<export=.AlksProps> & { tokenId: string }
RevokeByValueProps: Partial<export=.AlksProps> & { token: string }
UpdateRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string; tags: export=.Tag[] }
VersionProps: Partial<export=.AlksProps> & {}

Functions

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +export= | alks.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace export=

Index

Type aliases

AddRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
AlksProps: BaseConfig & Auth
AwsAccountRolesProps: Partial<export=.AlksProps> & { account: string }
CreateAccessKeysProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
CreateNonServiceRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; externalId?: string; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType: TrustType; tags?: export=.Tag[]; trustArn: string }
CreateRoleProps: Partial<export=.AlksProps> & { account: string; enableAlksAccess: boolean; includeDefaultPolicy: PseudoBoolean; role: string; roleName: string; roleType?: string; tags?: export=.Tag[]; templateFields?: Record<string, string>; trustPolicy?: Record<string, unknown> }
DeleteIAMUserProps: Partial<export=.AlksProps> & { account: string; iamUserName: string; role: string }
DeleteRoleMachineIdentityProps: Partial<export=.AlksProps> & { roleARN: string }
DeleteRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetAccessTokenProps: Partial<export=.AlksProps> & { refreshToken: string }
GetAccountOwnersProps: Partial<export=.AlksProps> & { accountId: string }
GetAccountRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string }
GetAccountsProps: Partial<export=.AlksProps> & {}
GetAllAWSRoleTypesProps: Partial<export=.AlksProps> & { getDynamicValues?: boolean }
GetCostTotalsProps: Partial<export=.AlksProps> & { accountId: string }
GetIAMKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetKeysProps: Partial<export=.AlksProps> & { account: string; role: string; sessionTime: number }
GetLoginRoleProps: Partial<export=.AlksProps> & { accountId: string; role: string }
GetNonServiceAWSRoleTypesProps: Partial<export=.AlksProps> & {}
GetRefreshTokensProps: Partial<export=.AlksProps> & {}
GetUserAccessByRoleProps: Partial<export=.AlksProps> & { accountId: string }
GetUserAccessProps: Partial<export=.AlksProps> & { accountId: string }
GetUserRoleAccessProps: Partial<export=.AlksProps> & { accountId: string; sAMAccountName: string }
ListAWSAccountRolesProps: Partial<export=.AlksProps> & { account: string; role: string }
RevokeByIdProps: Partial<export=.AlksProps> & { tokenId: string }
RevokeByValueProps: Partial<export=.AlksProps> & { token: string }
UpdateRoleProps: Partial<export=.AlksProps> & { account: string; role: string; roleName: string; tags: export=.Tag[] }
VersionProps: Partial<export=.AlksProps> & {}

Functions

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index fd4afab8..4b2cd497 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "alks.js", - "version": "2.3.1", + "version": "2.4.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 167d4446..5291a4a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "alks.js", - "version": "2.3.1", + "version": "2.4.0", "description": "JavaScript client for the ALKS API, usable in both modern browsers and node.js", "main": "dist/alks.cjs.js", "types": "dist/src/alks.d.ts",