New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@theintern/common

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theintern/common - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

index.js

@@ -1,2 +0,2 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("axios"));else if("function"==typeof define&&define.amd)define(["axios"],t);else{var r="object"==typeof exports?t(require("axios")):t(e.axios);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",function(){return o}),r.d(t,"__assign",function(){return i}),r.d(t,"__rest",function(){return a}),r.d(t,"__decorate",function(){return u}),r.d(t,"__param",function(){return c}),r.d(t,"__metadata",function(){return f}),r.d(t,"__awaiter",function(){return l}),r.d(t,"__generator",function(){return s}),r.d(t,"__exportStar",function(){return p}),r.d(t,"__values",function(){return d}),r.d(t,"__read",function(){return y}),r.d(t,"__spread",function(){return h}),r.d(t,"__await",function(){return v}),r.d(t,"__asyncGenerator",function(){return b}),r.d(t,"__asyncDelegator",function(){return m}),r.d(t,"__asyncValues",function(){return g}),r.d(t,"__makeTemplateObject",function(){return _}),r.d(t,"__importStar",function(){return w}),r.d(t,"__importDefault",function(){return O});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("axios"));else if("function"==typeof define&&define.amd)define(["axios"],t);else{var r="object"==typeof exports?t(require("axios")):t(e.axios);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",function(){return o}),r.d(t,"__assign",function(){return i}),r.d(t,"__rest",function(){return a}),r.d(t,"__decorate",function(){return u}),r.d(t,"__param",function(){return c}),r.d(t,"__metadata",function(){return f}),r.d(t,"__awaiter",function(){return l}),r.d(t,"__generator",function(){return s}),r.d(t,"__exportStar",function(){return p}),r.d(t,"__values",function(){return d}),r.d(t,"__read",function(){return y}),r.d(t,"__spread",function(){return h}),r.d(t,"__await",function(){return v}),r.d(t,"__asyncGenerator",function(){return b}),r.d(t,"__asyncDelegator",function(){return g}),r.d(t,"__asyncValues",function(){return m}),r.d(t,"__makeTemplateObject",function(){return _}),r.d(t,"__importStar",function(){return w}),r.d(t,"__importDefault",function(){return O});
/*! *****************************************************************************

@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation. All rights reserved.

***************************************************************************** */
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r}function u(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,u)}c((n=n.apply(e,t||[])).next())})}function s(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function p(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||u(e,t)})})}function u(e,t){try{!function(e){e.value instanceof v?Promise.resolve(e.value.v).then(c,f):l(i[0][2],e)}(o[e](t))}catch(e){l(i[0][3],e)}}function c(e){u("next",e)}function f(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function m(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function g(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(0),i=function(){function e(e,t){var r,n,o=this;this._promise=new Promise(function(e,t){r=e,n=t}),this._state=1,this.children=[],this.canceler=function(){t&&t(),o._cancel()};try{e(function(e){3!==o._state&&(o._state=0,r(e))},function(e){3!==o._state&&(o._state=2,n(e))})}catch(e){this._state=2,n(e)}}return e.race=function(e){var t=this;return new this(function(r,n){Promise.race(t.unwrapPromises(e)).then(r,n)})},e.reject=function(e){return new this(function(t,r){return r(e)})},e.resolve=function(e){return new this(function(t){return t(e)})},e.all=function(t){var r=this;return new e(function(e,n){var o;if(c(t)||f(t))o=new r(function(e,n){Promise.all(r.unwrapPromises(t)).then(e,n)});else{var i=Object.keys(t);o=new r(function(e,r){Promise.all(i.map(function(e){return t[e]})).then(function(t){var r={};t.forEach(function(e,t){r[i[t]]=e}),e(r)},r)})}o.then(e,n)},function(){var e,r;if(c(t))for(var n=0;n<t.length;n++){a(l=t[n])&&l.cancel()}else if(f(t))try{for(var i=o.__values(t),u=i.next();!u.done;u=i.next()){var l;a(l=u.value)&&l.cancel()}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}else Object.keys(t).forEach(function(e){var r=t[e];a(r)&&r.cancel()})})},e.unwrapPromises=function(e){var t,r,n=[];if(c(e))for(var i=0;i<e.length;i++){var u=e[i];n.push(a(u)?u._promise:u)}else try{for(var f=o.__values(e),l=f.next();!l.done;l=f.next()){u=l.value;n.push(a(u)?u._promise:u)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}return n},e.prototype._cancel=function(e){var t=this;this._state=3;var r=function(){try{return t._finally&&t._finally()}catch(e){}};this._finally&&(e=u(e)?e.then(r,r):r()),this.children.forEach(function(t){return t._cancel(e)})},e.prototype.cancel=function(){1===this._state&&this.canceler()},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(t){if(3===this._state&&t)return t(),this;var r=this.then(function(r){return e.resolve(t?t():void 0).then(function(){return r})},function(r){return e.resolve(t?t():void 0).then(function(){throw r})});return r._finally=t||void 0,r},e.prototype.then=function(e,t){var r=this,n=new this.constructor(function(o,i){r._promise.then(function(t){if(3===n._state)o();else if(e)try{o(e(t))}catch(e){i(e)}else o(t)},function(e){if(3===n._state)o();else if(t)try{o(t(e))}catch(e){i(e)}else i(e)})});return n.canceler=function(){1===r._state?r.cancel():n._cancel()},this.children.push(n),n},e}();function a(e){var t,r;if(e instanceof i)return!0;if(!u(e))return!1;var n=e;try{for(var a=o.__values(["catch","finally","cancel"]),c=a.next();!c.done;c=a.next()){var f=c.value;if(!(f in e)||"function"!=typeof n[f])return!1}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!!("children"in n&&Array.isArray(n.children))}function u(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function c(e){return e&&"number"==typeof e.length}function f(e){return e&&"function"==typeof e[Symbol.iterator]}t.default=i,t.isTask=a,t.isPromiseLike=u,function(e){e[e.Fulfilled=0]="Fulfilled",e[e.Pending=1]="Pending",e[e.Rejected=2]="Rejected",e[e.Canceled=3]="Canceled"}(n||(n={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(3),i=new Map,a=function(){function e(){this.listenersMap=new Map,this.handles=[]}return e.prototype.emit=function(e){var t=this;this.listenersMap.forEach(function(r,o){(function(e,t){if("string"==typeof t&&"string"==typeof e&&-1!==e.indexOf("*")){var r=void 0;return i.has(e)?r=i.get(e):(r=new RegExp("^"+e.replace(/\*/g,".*")+"$"),i.set(e,r)),r.test(t)}return e===t})(o,e.type)&&n.__spread(r).forEach(function(r){r.call(t,e)})})},e.prototype.on=function(e,t){var r=this;if(Array.isArray(t)){var n=t.map(function(t){return r._addListener(e,t)});return{destroy:function(){n.forEach(function(e){return e.destroy()})}}}return this._addListener(e,t)},e.prototype.own=function(e){var t=Array.isArray(e)?o.createCompositeHandle.apply(void 0,n.__spread(e)):e,r=this.handles;return r.push(t),{destroy:function(){r.splice(r.indexOf(t)),t.destroy()}}},e.prototype.destroy=function(){var e=this;return new Promise(function(t){e.handles.forEach(function(e){e&&e.destroy&&e.destroy()}),e.destroy=c,e.own=u,t(!0)})},e.prototype._addListener=function(e,t){var r=this,n=this.listenersMap.get(e)||[];return n.push(t),this.listenersMap.set(e,n),{destroy:function(){var n=r.listenersMap.get(e)||[];n.splice(n.indexOf(t),1)}}},e}();function u(e){throw new Error("Call made to destroyed method")}function c(){return Promise.resolve(!1)}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);function o(e){var t=!1;return{destroy:function(){t||(t=!0,e())}}}function i(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return c({sources:t,target:e})}function a(e){return e.map(function(e){return Array.isArray(e)?a(e):u(e)?c({sources:[e],target:{}}):e})}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){for(var t=e.target,r=e.copied||[],o=n.__spread(r),i=0;i<e.sources.length;i++){var f=e.sources[i];if(null!==f&&void 0!==f)for(var l in f){var s=f[l];if(-1===o.indexOf(s)){if(Array.isArray(s))s=a(s);else if(u(s)){var p=t[l]||{};r.push(f),s=c({sources:[s],target:p,copied:r})}t[l]=s}}}return t}t.createHandle=o,t.createCompositeHandle=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(function(){e.forEach(function(e){return e.destroy()})})},t.deepMixin=i,t.duplicate=function(e){return i(Object.create(Object.getPrototypeOf(e)),e)},t.partial=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){var r=arguments.length?t.concat(Array.prototype.slice.call(arguments)):t;return e.apply(this,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(9),i=r(10),a=r(1),u=r(2);t.default=function(e,t){void 0===t&&(t={});var r=t.followRedirects,i=t.handleAs,u=t.onDownloadProgress,c=t.password,s=t.proxy,p=t.query,d=t.username,y=n.__rest(t,["followRedirects","handleAs","onDownloadProgress","password","proxy","query","username"]),v=n.__assign({method:"get"},y,{url:e,validateStatus:l,responseType:"arraybuffer",paramsSerializer:h,transformResponse:void 0}),b=o.default.CancelToken.source();if(v.cancelToken=b.token,p&&(v.params=p),!1===r&&(v.maxRedirects=0),i&&(v.responseType=i),s){var m=new URL(s);v.proxy={host:m.hostname},m.port&&(v.proxy.port=Number(m.port)),m.username&&(v.proxy.auth={username:m.username,password:m.password})}return d&&c&&(v.auth={username:d,password:c}),new a.default(function(e,t){o.default(v).then(function(t){u&&t&&t.data&&u({total:t.data.length,received:t.data.length}),e(new f(t))},t)},function(){b.cancel()})};var c=function(){function e(e){this.data=e}return e.prototype.get=function(e){return String(this.data[e.toLowerCase()])},e}(),f=function(e){function t(t){var r=e.call(this)||this;return r.response=t,r.headersAccessor=new c(t.headers),r}return n.__extends(t,e),Object.defineProperty(t.prototype,"headers",{get:function(){return this.headersAccessor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ok",{get:function(){var e=this.response.status;return e>=200&&e<300},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.response.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusText",{get:function(){return this.response.statusText},enumerable:!0,configurable:!0}),t.prototype.arrayBuffer=function(){var e,t=this.response.data;return e=t?"string"==typeof t?function(e){return p(new Blob([e],{type:"text/plain"}))}(t):d(t)?p(t):y(t)?t.buffer:t:new ArrayBuffer(0),a.default.resolve(e)},t.prototype.json=function(){return this.text().then(JSON.parse)},t.prototype.text=function(){if(void 0===this.stringValue){var e=this.response.data;e?"string"==typeof e?this.stringValue=e:!function(e){return e instanceof ArrayBuffer||"[object ArrayBuffer]"===e.toString()}(e)?y(e)?this.stringValue=e.toString("utf8"):d(e)?this.stringValue=function(e){var t=new FileReader,r=s(t);return t.readAsText(e),r}(e):this.stringValue=JSON.stringify(e):this.stringValue=function(e){var t=[];return new Uint8Array(e).forEach(function(e,r){t[r]=String.fromCharCode(e)}),t.join("")}(e):this.stringValue=""}return a.default.resolve(this.stringValue)},t}(u.default);function l(){return!0}function s(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function p(e){var t=new FileReader,r=s(t);return t.readAsArrayBuffer(e),r}function d(e){return"undefined"!=typeof Blob&&(e instanceof Blob||"[object Blob]"===e.toString())}function y(e){return"undefined"!=typeof Buffer&&Buffer.isBuffer(e)}function h(e){return i.stringify(e,{arrayFormat:"repeat"})}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],f=i[c];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:i,prop:c}),r.push(f))}return function(e){for(var t;e.length;){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var n=[],o=0;o<t.length;++o)void 0!==t[o]&&n.push(t[o]);r.obj[r.prop]=n}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",n=0;n<t.length;++n){var i=t.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var a=t;return Array.isArray(t)&&!Array.isArray(r)&&(a=i(t,o)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,i){n.call(t,i)?t[i]&&"object"==typeof t[i]?t[i]=e(t[i],r,o):t.push(r):t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(1);t.Task=o.default,n.__exportStar(r(1),t);var i=r(2);t.Evented=i.default,n.__exportStar(r(2),t);var a=r(8);t.global=a.default;var u=r(4);t.request=u.default,n.__exportStar(r(4),t),n.__exportStar(r(3),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0;t.default=n},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(11),o=r(12),i=r(6);e.exports={formats:i,parse:o,stringify:n}},function(e,t,r){"use strict";var n=r(5),o=r(6),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},c=function e(t,r,o,i,a,c,f,l,s,p,d,y){var h=t;if("function"==typeof f)h=f(r,h);else if(h instanceof Date)h=p(h);else if(null===h){if(i)return c&&!y?c(r,u.encoder):r;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||n.isBuffer(h))return c?[d(y?r:c(r,u.encoder))+"="+d(c(h,u.encoder))]:[d(r)+"="+d(String(h))];var v,b=[];if(void 0===h)return b;if(Array.isArray(f))v=f;else{var m=Object.keys(h);v=l?m.sort(l):m}for(var g=0;g<v.length;++g){var _=v[g];a&&null===h[_]||(b=Array.isArray(h)?b.concat(e(h[_],o(r,_),o,i,a,c,f,l,s,p,d,y)):b.concat(e(h[_],r+(s?"."+_:"["+_+"]"),o,i,a,c,f,l,s,p,d,y)))}return b};e.exports=function(e,t){var r=e,a=t?n.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var f=void 0===a.delimiter?u.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:u.strictNullHandling,s="boolean"==typeof a.skipNulls?a.skipNulls:u.skipNulls,p="boolean"==typeof a.encode?a.encode:u.encode,d="function"==typeof a.encoder?a.encoder:u.encoder,y="function"==typeof a.sort?a.sort:null,h=void 0!==a.allowDots&&a.allowDots,v="function"==typeof a.serializeDate?a.serializeDate:u.serializeDate,b="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:u.encodeValuesOnly;if(void 0===a.format)a.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,a.format))throw new TypeError("Unknown format option provided.");var m,g,_=o.formatters[a.format];"function"==typeof a.filter?r=(g=a.filter)("",r):Array.isArray(a.filter)&&(m=g=a.filter);var w,O=[];if("object"!=typeof r||null===r)return"";w=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var j=i[w];m||(m=Object.keys(r)),y&&m.sort(y);for(var x=0;x<m.length;++x){var P=m[x];s&&null===r[P]||(O=O.concat(c(r[P],P,j,l,s,p?d:null,g,y,h,v,_,b)))}var A=O.join(f),S=!0===a.addQueryPrefix?"?":"";return A.length>0?S+A:""}},function(e,t,r){"use strict";var n=r(5),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),u=a?n.slice(0,a.index):n,c=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var f=0;null!==(a=i.exec(n))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a)i=(i=[]).concat(n);else{i=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[u]=n}n=i}return n}(c,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,u=n.split(t.delimiter,a),c=0;c<u.length;++c){var f,l,s=u[c],p=s.indexOf("]="),d=-1===p?s.indexOf("="):p+1;-1===d?(f=t.decoder(s,i.decoder),l=t.strictNullHandling?null:""):(f=t.decoder(s.slice(0,d),i.decoder),l=t.decoder(s.slice(d+1),i.decoder)),o.call(r,f)?r[f]=[].concat(r[f]).concat(l):r[f]=l}return r}(e,r):e,c=r.plainObjects?Object.create(null):{},f=Object.keys(u),l=0;l<f.length;++l){var s=f[l],p=a(s,u[s],r);c=n.merge(c,p,r)}return n.compact(c)}}])});
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r}function u(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,u)}c((n=n.apply(e,t||[])).next())})}function s(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function p(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||u(e,t)})})}function u(e,t){try{!function(e){e.value instanceof v?Promise.resolve(e.value.v).then(c,f):l(i[0][2],e)}(o[e](t))}catch(e){l(i[0][3],e)}}function c(e){u("next",e)}function f(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function g(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function m(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(0),i=function(){function e(e,t){var r,n,o=this;this._promise=new Promise(function(e,t){r=e,n=t}),this._state=1,this.children=[],this.canceler=function(){t&&t(),o._cancel()};try{e(function(e){3!==o._state&&(o._state=0,r(e))},function(e){3!==o._state&&(o._state=2,n(e))})}catch(e){this._state=2,n(e)}}return e.race=function(e){var t=this;return new this(function(r,n){Promise.race(t.unwrapPromises(e)).then(r,n)})},e.reject=function(e){return new this(function(t,r){return r(e)})},e.resolve=function(e){return new this(function(t){return t(e)})},e.all=function(t){var r=this;return new e(function(e,n){var o;if(c(t)||f(t))o=new r(function(e,n){Promise.all(r.unwrapPromises(t)).then(e,n)});else{var i=Object.keys(t);o=new r(function(e,r){Promise.all(i.map(function(e){return t[e]})).then(function(t){var r={};t.forEach(function(e,t){r[i[t]]=e}),e(r)},r)})}o.then(e,n)},function(){var e,r;if(c(t))for(var n=0;n<t.length;n++){a(l=t[n])&&l.cancel()}else if(f(t))try{for(var i=o.__values(t),u=i.next();!u.done;u=i.next()){var l;a(l=u.value)&&l.cancel()}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}else Object.keys(t).forEach(function(e){var r=t[e];a(r)&&r.cancel()})})},e.unwrapPromises=function(e){var t,r,n=[];if(c(e))for(var i=0;i<e.length;i++){var u=e[i];n.push(a(u)?u._promise:u)}else try{for(var f=o.__values(e),l=f.next();!l.done;l=f.next()){u=l.value;n.push(a(u)?u._promise:u)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}return n},e.prototype._cancel=function(e){var t=this;this._state=3;var r=function(){try{return t._finally&&t._finally()}catch(e){}};this._finally&&(e=u(e)?e.then(r,r):r()),this.children.forEach(function(t){return t._cancel(e)})},e.prototype.cancel=function(){1===this._state&&this.canceler()},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(t){if(3===this._state&&t)return t(),this;var r=this.then(function(r){return e.resolve(t?t():void 0).then(function(){return r})},function(r){return e.resolve(t?t():void 0).then(function(){throw r})});return r._finally=t||void 0,r},e.prototype.then=function(e,t){var r=this,n=new this.constructor(function(o,i){r._promise.then(function(t){if(3===n._state)o();else if(e)try{o(e(t))}catch(e){i(e)}else o(t)},function(e){if(3===n._state)o();else if(t)try{o(t(e))}catch(e){i(e)}else i(e)})});return n.canceler=function(){1===r._state?r.cancel():n._cancel()},this.children.push(n),n},e}();function a(e){var t,r;if(e instanceof i)return!0;if(!u(e))return!1;var n=e;try{for(var a=o.__values(["catch","finally","cancel"]),c=a.next();!c.done;c=a.next()){var f=c.value;if(!(f in e)||"function"!=typeof n[f])return!1}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!!("children"in n&&Array.isArray(n.children))}function u(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function c(e){return e&&"number"==typeof e.length}function f(e){return e&&"function"==typeof e[Symbol.iterator]}t.default=i,t.isTask=a,t.isPromiseLike=u,function(e){e[e.Fulfilled=0]="Fulfilled",e[e.Pending=1]="Pending",e[e.Rejected=2]="Rejected",e[e.Canceled=3]="Canceled"}(n||(n={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(3),i=new Map,a=function(){function e(){this.listenersMap=new Map,this.handles=[]}return e.prototype.emit=function(e){var t=this;this.listenersMap.forEach(function(r,o){(function(e,t){if("string"==typeof t&&"string"==typeof e&&-1!==e.indexOf("*")){var r=void 0;return i.has(e)?r=i.get(e):(r=new RegExp("^"+e.replace(/\*/g,".*")+"$"),i.set(e,r)),r.test(t)}return e===t})(o,e.type)&&n.__spread(r).forEach(function(r){r.call(t,e)})})},e.prototype.on=function(e,t){var r=this;if(Array.isArray(t)){var n=t.map(function(t){return r._addListener(e,t)});return{destroy:function(){n.forEach(function(e){return e.destroy()})}}}return this._addListener(e,t)},e.prototype.own=function(e){var t=Array.isArray(e)?o.createCompositeHandle.apply(void 0,n.__spread(e)):e,r=this.handles;return r.push(t),{destroy:function(){r.splice(r.indexOf(t)),t.destroy()}}},e.prototype.destroy=function(){var e=this;return new Promise(function(t){e.handles.forEach(function(e){e&&e.destroy&&e.destroy()}),e.destroy=c,e.own=u,t(!0)})},e.prototype._addListener=function(e,t){var r=this,n=this.listenersMap.get(e)||[];return n.push(t),this.listenersMap.set(e,n),{destroy:function(){var n=r.listenersMap.get(e)||[];n.splice(n.indexOf(t),1)}}},e}();function u(e){throw new Error("Call made to destroyed method")}function c(){return Promise.resolve(!1)}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);function o(e){var t=!1;return{destroy:function(){t||(t=!0,e())}}}function i(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return c({sources:t,target:e})}function a(e){return e.map(function(e){return Array.isArray(e)?a(e):u(e)?c({sources:[e],target:{}}):e})}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){for(var t=e.target,r=e.copied||[],o=n.__spread(r),i=0;i<e.sources.length;i++){var f=e.sources[i];if(null!==f&&void 0!==f)for(var l in f){var s=f[l];if(-1===o.indexOf(s)){if(Array.isArray(s))s=a(s);else if(u(s)){var p=t[l]||{};r.push(f),s=c({sources:[s],target:p,copied:r})}t[l]=s}}}return t}t.createHandle=o,t.createCompositeHandle=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(function(){e.forEach(function(e){return e.destroy()})})},t.deepMixin=i,t.duplicate=function(e){return i(Object.create(Object.getPrototypeOf(e)),e)},t.partial=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){var r=arguments.length?t.concat(Array.prototype.slice.call(arguments)):t;return e.apply(this,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(9),i=r(10),a=r(1),u=r(2);t.default=function(e,t){void 0===t&&(t={});var r=t.followRedirects,i=t.handleAs,u=t.onDownloadProgress,c=t.password,s=t.proxy,p=t.query,d=t.username,y=n.__rest(t,["followRedirects","handleAs","onDownloadProgress","password","proxy","query","username"]),v=n.__assign({method:"get"},y,{url:e,validateStatus:l,responseType:"arraybuffer",paramsSerializer:h,transformResponse:void 0}),b=o.default.CancelToken.source();if(v.cancelToken=b.token,p&&(v.params=p),!1===r&&(v.maxRedirects=0),i&&(v.responseType=i),s){var g=new URL(s);v.proxy={host:g.hostname},g.port&&(v.proxy.port=Number(g.port)),g.username&&(v.proxy.auth={username:g.username,password:g.password})}return d&&c&&(v.auth={username:d,password:c}),new a.default(function(e,t){o.default(v).then(function(t){u&&t&&t.data&&u({total:t.data.length,received:t.data.length}),e(new f(t))},t)},function(){b.cancel()})};var c=function(){function e(e){this.data=e}return Object.defineProperty(e.prototype,"all",{get:function(){var e=this.data;return Object.keys(e).reduce(function(t,r){return t[r.toLowerCase()]=e[r],t},{})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return String(this.data[e.toLowerCase()])},e}(),f=function(e){function t(t){var r=e.call(this)||this;return r.response=t,r.headersAccessor=new c(t.headers),r}return n.__extends(t,e),Object.defineProperty(t.prototype,"headers",{get:function(){return this.headersAccessor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ok",{get:function(){var e=this.response.status;return e>=200&&e<300},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.response.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusText",{get:function(){return this.response.statusText},enumerable:!0,configurable:!0}),t.prototype.arrayBuffer=function(){var e,t=this.response.data;return e=t?"string"==typeof t?function(e){return p(new Blob([e],{type:"text/plain"}))}(t):d(t)?p(t):y(t)?t.buffer:t:new ArrayBuffer(0),a.default.resolve(e)},t.prototype.json=function(){return this.text().then(JSON.parse)},t.prototype.text=function(){if(void 0===this.stringValue){var e=this.response.data;e?"string"==typeof e?this.stringValue=e:!function(e){return e instanceof ArrayBuffer||"[object ArrayBuffer]"===e.toString()}(e)?y(e)?this.stringValue=e.toString("utf8"):d(e)?this.stringValue=function(e){var t=new FileReader,r=s(t);return t.readAsText(e),r}(e):this.stringValue=JSON.stringify(e):this.stringValue=function(e){var t=[];return new Uint8Array(e).forEach(function(e,r){t[r]=String.fromCharCode(e)}),t.join("")}(e):this.stringValue=""}return a.default.resolve(this.stringValue)},t}(u.default);function l(){return!0}function s(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function p(e){var t=new FileReader,r=s(t);return t.readAsArrayBuffer(e),r}function d(e){return"undefined"!=typeof Blob&&(e instanceof Blob||"[object Blob]"===e.toString())}function y(e){return"undefined"!=typeof Buffer&&Buffer.isBuffer(e)}function h(e){return i.stringify(e,{arrayFormat:"repeat"})}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],f=i[c];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:i,prop:c}),r.push(f))}return function(e){for(var t;e.length;){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var n=[],o=0;o<t.length;++o)void 0!==t[o]&&n.push(t[o]);r.obj[r.prop]=n}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",n=0;n<t.length;++n){var i=t.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var a=t;return Array.isArray(t)&&!Array.isArray(r)&&(a=i(t,o)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,i){n.call(t,i)?t[i]&&"object"==typeof t[i]?t[i]=e(t[i],r,o):t.push(r):t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(1);t.Task=o.default,n.__exportStar(r(1),t);var i=r(2);t.Evented=i.default,n.__exportStar(r(2),t);var a=r(8);t.global=a.default;var u=r(4);t.request=u.default,n.__exportStar(r(4),t),n.__exportStar(r(3),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0;t.default=n},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(11),o=r(12),i=r(6);e.exports={formats:i,parse:o,stringify:n}},function(e,t,r){"use strict";var n=r(5),o=r(6),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},c=function e(t,r,o,i,a,c,f,l,s,p,d,y){var h=t;if("function"==typeof f)h=f(r,h);else if(h instanceof Date)h=p(h);else if(null===h){if(i)return c&&!y?c(r,u.encoder):r;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||n.isBuffer(h))return c?[d(y?r:c(r,u.encoder))+"="+d(c(h,u.encoder))]:[d(r)+"="+d(String(h))];var v,b=[];if(void 0===h)return b;if(Array.isArray(f))v=f;else{var g=Object.keys(h);v=l?g.sort(l):g}for(var m=0;m<v.length;++m){var _=v[m];a&&null===h[_]||(b=Array.isArray(h)?b.concat(e(h[_],o(r,_),o,i,a,c,f,l,s,p,d,y)):b.concat(e(h[_],r+(s?"."+_:"["+_+"]"),o,i,a,c,f,l,s,p,d,y)))}return b};e.exports=function(e,t){var r=e,a=t?n.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var f=void 0===a.delimiter?u.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:u.strictNullHandling,s="boolean"==typeof a.skipNulls?a.skipNulls:u.skipNulls,p="boolean"==typeof a.encode?a.encode:u.encode,d="function"==typeof a.encoder?a.encoder:u.encoder,y="function"==typeof a.sort?a.sort:null,h=void 0!==a.allowDots&&a.allowDots,v="function"==typeof a.serializeDate?a.serializeDate:u.serializeDate,b="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:u.encodeValuesOnly;if(void 0===a.format)a.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,a.format))throw new TypeError("Unknown format option provided.");var g,m,_=o.formatters[a.format];"function"==typeof a.filter?r=(m=a.filter)("",r):Array.isArray(a.filter)&&(g=m=a.filter);var w,O=[];if("object"!=typeof r||null===r)return"";w=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var j=i[w];g||(g=Object.keys(r)),y&&g.sort(y);for(var x=0;x<g.length;++x){var P=g[x];s&&null===r[P]||(O=O.concat(c(r[P],P,j,l,s,p?d:null,m,y,h,v,_,b)))}var A=O.join(f),S=!0===a.addQueryPrefix?"?":"";return A.length>0?S+A:""}},function(e,t,r){"use strict";var n=r(5),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),u=a?n.slice(0,a.index):n,c=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var f=0;null!==(a=i.exec(n))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a)i=(i=[]).concat(n);else{i=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[u]=n}n=i}return n}(c,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,u=n.split(t.delimiter,a),c=0;c<u.length;++c){var f,l,s=u[c],p=s.indexOf("]="),d=-1===p?s.indexOf("="):p+1;-1===d?(f=t.decoder(s,i.decoder),l=t.strictNullHandling?null:""):(f=t.decoder(s.slice(0,d),i.decoder),l=t.decoder(s.slice(d+1),i.decoder)),o.call(r,f)?r[f]=[].concat(r[f]).concat(l):r[f]=l}return r}(e,r):e,c=r.plainObjects?Object.create(null):{},f=Object.keys(u),l=0;l<f.length;++l){var s=f[l],p=a(s,u[s],r);c=n.merge(c,p,r)}return n.compact(c)}}])});

@@ -26,2 +26,5 @@ import { CancellablePromise } from './Task';

export interface Headers {
all: {
[key: string]: string;
};
get(key: string): string;

@@ -28,0 +31,0 @@ }

{
"name": "@theintern/common",
"version": "0.1.3",
"version": "0.1.4",
"description": "Common modules used by @theintern projects",

@@ -28,3 +28,5 @@ "homepage": "http://theintern.io/",

"precommit": "lint-staged",
"watch": "webpack --watch"
"watch": "webpack --watch",
"ci": "npm run test",
"preci": "npm run build"
},

@@ -31,0 +33,0 @@ "dependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc