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.2.3 to 0.2.4-beta.0

2

index.js

@@ -16,2 +16,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 s}),r.d(t,"__generator",function(){return l}),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});

***************************************************************************** */
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 s(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 l(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{(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,f):s(i[0][2],r)}catch(e){s(i[0][3],e)}var r}function c(e){u("next",e)}function f(e){u("throw",e)}function s(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(s=t[n])&&s.cancel()}else if(f(t))try{for(var i=o.__values(t),u=i.next();!u.done;u=i.next()){var s;a(s=u.value)&&s.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),s=f.next();!s.done;s=f.next()){u=s.value;n.push(a(u)?u._promise:u)}}catch(e){t={error:e}}finally{try{s&&!s.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)for(var s in f){var l=f[s];if(-1===o.indexOf(l)){if(Array.isArray(l))l=a(l);else if(u(l)){var p=t[s]||{};r.push(f),l=c({sources:[l],target:p,copied:r})}t[s]=l}}}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,l=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:s,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),l){var m=new URL(l);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 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?p(new Blob([t],{type:"text/plain"})):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:(u=e)instanceof ArrayBuffer||"[object ArrayBuffer]"===u.toString()?this.stringValue=(o=new Uint8Array(e),i=[],o.forEach(function(e,t){i[t]=String.fromCharCode(e)}),i.join("")):y(e)?this.stringValue=e.toString("utf8"):d(e)?this.stringValue=(t=e,r=new FileReader,n=l(r),r.readAsText(t),n):this.stringValue=JSON.stringify(e):this.stringValue=""}var t,r,n,o,i,u;return a.default.resolve(this.stringValue)},t}(u.default);function s(){return!0}function l(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=l(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=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=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:a,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var f=u[c],s=a[f];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:a,prop:f}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r){if(0===e.length)return e;var n="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",a=0;a<n.length;++a){var u=n.charCodeAt(a);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122?o+=n.charAt(a):u<128?o+=i[u]:u<2048?o+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?o+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(a+=1,u=65536+((1023&u)<<10|1023&n.charCodeAt(a)),o+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return o},isBuffer:function(e){return!(!e||"object"!=typeof 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,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var u=t;return o(t)&&!o(r)&&(u=a(t,i)),o(t)&&o(r)?(r.forEach(function(r,o){if(n.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,i):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return n.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t},u)}}},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=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,f=function(e,t){c.apply(e,u(t)?t:[t])},s=Date.prototype.toISOString,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,a,c,s,p,d,y,h,v,b){var m=t;if("function"==typeof s?m=s(r,m):m instanceof Date?m=y(m):"comma"===o&&u(m)&&(m=m.join(",")),null===m){if(i)return c&&!v?c(r,l.encoder,b):r;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||n.isBuffer(m))return c?[h(v?r:c(r,l.encoder,b))+"="+h(c(m,l.encoder,b))]:[h(r)+"="+h(String(m))];var g,_=[];if(void 0===m)return _;if(u(s))g=s;else{var w=Object.keys(m);g=p?w.sort(p):w}for(var O=0;O<g.length;++O){var j=g[O];a&&null===m[j]||(u(m)?f(_,e(m[j],"function"==typeof o?o(r,j):r,o,i,a,c,s,p,d,y,h,v,b)):f(_,e(m[j],r+(d?"."+j:"["+j+"]"),o,i,a,c,s,p,d,y,h,v,b)))}return _};e.exports=function(e,t){var r,n=e,c=function(e){if(!e)return l;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=l.filter;return("function"==typeof e.filter||u(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(t);"function"==typeof c.filter?n=(0,c.filter)("",n):u(c.filter)&&(r=c.filter);var s,d=[];if("object"!=typeof n||null===n)return"";s=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var y=a[s];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var h=0;h<r.length;++h){var v=r[h];c.skipNulls&&null===n[v]||f(d,p(n[v],v,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var b=d.join(c.delimiter),m=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),b.length>0?m+b:""}},function(e,t,r){"use strict";var n=r(5),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},u=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&&r.parseArrays)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);r.parseArrays||""!==u?!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[u]=n:i={0:n}}n=i}return n}(c,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,s=c.split(t.delimiter,f),l=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<s.length;++r)0===s[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[r]?p="utf-8":"utf8=%26%2310003%3B"===s[r]&&(p="iso-8859-1"),l=r,r=s.length);for(r=0;r<s.length;++r)if(r!==l){var d,y,h=s[r],v=h.indexOf("]="),b=-1===v?h.indexOf("="):v+1;-1===b?(d=t.decoder(h,i.decoder,p),y=t.strictNullHandling?null:""):(d=t.decoder(h.slice(0,b),i.decoder,p),y=t.decoder(h.slice(b+1),i.decoder,p)),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=a(y)),y&&t.comma&&y.indexOf(",")>-1&&(y=y.split(",")),o.call(u,d)?u[d]=n.combine(u[d],y):u[d]=y}return u}(e,r):e,f=r.plainObjects?Object.create(null):{},s=Object.keys(c),l=0;l<s.length;++l){var p=s[l],d=u(p,c[p],r);f=n.merge(f,d,r)}return n.compact(f)}}])});
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 s(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 l(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{(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,f):s(i[0][2],r)}catch(e){s(i[0][3],e)}var r}function c(e){u("next",e)}function f(e){u("throw",e)}function s(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(s=t[n])&&s.cancel()}else if(f(t))try{for(var i=o.__values(t),u=i.next();!u.done;u=i.next()){var s;a(s=u.value)&&s.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),s=f.next();!s.done;s=f.next()){u=s.value;n.push(a(u)?u._promise:u)}}catch(e){t={error:e}}finally{try{s&&!s.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)for(var s in f){var l=f[s];if(-1===o.indexOf(l)){if(Array.isArray(l))l=a(l);else if(u(l)){var p=t[s]||{};r.push(f),l=c({sources:[l],target:p,copied:r})}t[s]=l}}}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,l=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:s,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),l){var m=new URL(l);v.proxy={host:m.hostname},/^https:/.test(e)&&(v.proxy.protocol="https"),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 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?p(new Blob([t],{type:"text/plain"})):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:(u=e)instanceof ArrayBuffer||"[object ArrayBuffer]"===u.toString()?this.stringValue=(o=new Uint8Array(e),i=[],o.forEach(function(e,t){i[t]=String.fromCharCode(e)}),i.join("")):y(e)?this.stringValue=e.toString("utf8"):d(e)?this.stringValue=(t=e,r=new FileReader,n=l(r),r.readAsText(t),n):this.stringValue=JSON.stringify(e):this.stringValue=""}var t,r,n,o,i,u;return a.default.resolve(this.stringValue)},t}(u.default);function s(){return!0}function l(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=l(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=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=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:a,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var f=u[c],s=a[f];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:a,prop:f}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r){if(0===e.length)return e;var n="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",a=0;a<n.length;++a){var u=n.charCodeAt(a);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122?o+=n.charAt(a):u<128?o+=i[u]:u<2048?o+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?o+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(a+=1,u=65536+((1023&u)<<10|1023&n.charCodeAt(a)),o+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return o},isBuffer:function(e){return!(!e||"object"!=typeof 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,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var u=t;return o(t)&&!o(r)&&(u=a(t,i)),o(t)&&o(r)?(r.forEach(function(r,o){if(n.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,i):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return n.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t},u)}}},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=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,f=function(e,t){c.apply(e,u(t)?t:[t])},s=Date.prototype.toISOString,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,a,c,s,p,d,y,h,v,b){var m=t;if("function"==typeof s?m=s(r,m):m instanceof Date?m=y(m):"comma"===o&&u(m)&&(m=m.join(",")),null===m){if(i)return c&&!v?c(r,l.encoder,b):r;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||n.isBuffer(m))return c?[h(v?r:c(r,l.encoder,b))+"="+h(c(m,l.encoder,b))]:[h(r)+"="+h(String(m))];var g,_=[];if(void 0===m)return _;if(u(s))g=s;else{var w=Object.keys(m);g=p?w.sort(p):w}for(var O=0;O<g.length;++O){var j=g[O];a&&null===m[j]||(u(m)?f(_,e(m[j],"function"==typeof o?o(r,j):r,o,i,a,c,s,p,d,y,h,v,b)):f(_,e(m[j],r+(d?"."+j:"["+j+"]"),o,i,a,c,s,p,d,y,h,v,b)))}return _};e.exports=function(e,t){var r,n=e,c=function(e){if(!e)return l;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=l.filter;return("function"==typeof e.filter||u(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(t);"function"==typeof c.filter?n=(0,c.filter)("",n):u(c.filter)&&(r=c.filter);var s,d=[];if("object"!=typeof n||null===n)return"";s=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var y=a[s];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var h=0;h<r.length;++h){var v=r[h];c.skipNulls&&null===n[v]||f(d,p(n[v],v,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var b=d.join(c.delimiter),m=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),b.length>0?m+b:""}},function(e,t,r){"use strict";var n=r(5),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},u=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&&r.parseArrays)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);r.parseArrays||""!==u?!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[u]=n:i={0:n}}n=i}return n}(c,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,s=c.split(t.delimiter,f),l=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<s.length;++r)0===s[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[r]?p="utf-8":"utf8=%26%2310003%3B"===s[r]&&(p="iso-8859-1"),l=r,r=s.length);for(r=0;r<s.length;++r)if(r!==l){var d,y,h=s[r],v=h.indexOf("]="),b=-1===v?h.indexOf("="):v+1;-1===b?(d=t.decoder(h,i.decoder,p),y=t.strictNullHandling?null:""):(d=t.decoder(h.slice(0,b),i.decoder,p),y=t.decoder(h.slice(b+1),i.decoder,p)),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=a(y)),y&&t.comma&&y.indexOf(",")>-1&&(y=y.split(",")),o.call(u,d)?u[d]=n.combine(u[d],y):u[d]=y}return u}(e,r):e,f=r.plainObjects?Object.create(null):{},s=Object.keys(c),l=0;l<s.length;++l){var p=s[l],d=u(p,c[p],r);f=n.merge(f,d,r)}return n.compact(f)}}])});
{
"name": "@theintern/common",
"version": "0.2.3",
"version": "0.2.4-beta.0",
"description": "Common modules used by @theintern projects",

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

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