Socket
Socket
Sign inDemoInstall

axe

Package Overview
Dependencies
93
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.2 to 4.0.3

2

dist/axe.min.js

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

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Axe=t()}}(function(){var t,e,r=(t=function(t,e){"use strict";var r=S.document,n=P(r)&&P(r.createElement);t.exports=function(t){return n?r.createElement(t):{}}},function(r){return e||t(e={exports:{},parent:r},e.exports),e.exports});!function(t){"use strict";t.console||(t.console={});for(var e,r,n=t.console,o=function(){},i=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=i.pop();)n[e]||(n[e]={});for(;r=s.pop();)n[r]||(n[r]=o)}("undefined"==typeof window?void 0:window);var n=function(t){return"string"==typeof t?/^(true|t|yes|y|on|1)$/i.test(t.trim()):"number"==typeof t?1===t:"boolean"==typeof t&&t},o=function(t,e){var r="000000000"+t;return r.substr(r.length-e)};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s,a="object"==("undefined"==typeof window?"undefined":i(window))?window:self,u=Object.keys(a).length,c=o(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+u.toString(36),4),l=function(){return c},f=window.crypto||window.msCrypto;if(f){var p=Math.pow(2,32)-1;s=function(){return Math.abs(f.getRandomValues(new Uint32Array(1))[0]/p)}}else s=Math.random;var h=s,y={},d=0,m=4,b=36,g=Math.pow(b,m);function v(){return o((h()*g<<0).toString(b),m)}function w(){return d=d<g?d:0,++d-1}function _(){return"c"+(new Date).getTime().toString(b)+o(w().toString(b),m)+l()+(v()+v())}_.slug=function(){var t=(new Date).getTime().toString(36),e=w().toString(36).slice(-4),r=l().slice(0,1)+l().slice(-1),n=v().slice(-2);return t.slice(-2)+e+r+n},_.isCuid=function(t){return"string"==typeof t&&!!t.startsWith("c")},_.isSlug=function(t){if("string"!=typeof t)return!1;var e=t.length;return e>=7&&e<=10},_.fingerprint=l,y=_;var T=["%s","%d","%i","%f","%j","%o","%O","%%"],O=function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},S={},E=S="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=E);var j={},k=j={version:"2.6.9"};"number"==typeof __e&&(__e=k);var x=function(t,e,r){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}};function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var P=function(t){return"object"==A(t)?null!==t:"function"==typeof t},C=function(t){if(!P(t))throw TypeError(t+" is not an object!");return t},R=function(t){try{return!!t()}catch(e){return!0}},q=!R(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),M=!q&&!R(function(){return 7!=Object.defineProperty(r({})("div"),"a",{get:function(){return 7}}).a}),L={},D=Object.defineProperty;L.f=q?Object.defineProperty:function(t,r,n){if(C(t),r=function(t,e){if(!P(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!P(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),C(n),M)try{return D(t,r,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[r]=n.value),t};var I=q?function(t,e,r){return L.f(t,e,function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}(1,r))}:function(t,e,r){return t[e]=r,t},H={}.hasOwnProperty,N=function(t,e){return H.call(t,e)},U={},z=function t(e,r,n){var o,i,s,a=e&t.F,u=e&t.G,c=e&t.S,l=e&t.P,f=e&t.B,p=e&t.W,h=u?j:j[r]||(j[r]={}),y=h.prototype,d=u?S:c?S[r]:(S[r]||{}).prototype;for(o in u&&(n=r),n)(i=!a&&d&&void 0!==d[o])&&N(h,o)||(s=i?d[o]:n[o],h[o]=u&&"function"!=typeof d[o]?n[o]:f&&i?x(s,S):p&&d[o]==s?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):l&&"function"==typeof s?x(Function.call,s):s,l&&((h.virtual||(h.virtual={}))[o]=s,e&t.R&&y&&!y[o]&&I(y,o,s)))};z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128,U=z;var F,X={}.toString,B=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==function(t){return X.call(t).slice(8,-1)}(t)?t.split(""):Object(t)},$=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},W=function(t){return B($(t))},G=Math.ceil,J=Math.floor,K=function(t){return isNaN(t=+t)?0:(t>0?J:G)(t)},Q=Math.min,Y=Math.max,V=Math.min,Z=S["__core-js_shared__"]||(S["__core-js_shared__"]={});(F=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:j.version,mode:"pure",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"});var tt,et,rt=0,nt=Math.random(),ot=F("keys"),it=(et=!1,function(t,e,r){var n,o,i=W(t),s=(o=i.length)>0?Q(K(o),9007199254740991):0,a=function(t,e){return(t=K(t))<0?Y(t+e,0):V(t,e)}(r,s);if(et&&e!=e){for(;s>a;)if((n=i[a++])!=n)return!0}else for(;s>a;a++)if((et||a in i)&&i[a]===e)return et||a||0;return!et&&-1}),st=ot[tt="IE_PROTO"]||(ot[tt]=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++rt+nt).toString(36))}(tt)),at="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ut=Object.keys||function(t){return function(t,e){var r,n=W(t),o=0,i=[];for(r in n)r!=st&&N(n,r)&&i.push(r);for(;e.length>o;)N(n,r=e[o++])&&(~it(i,r)||i.push(r));return i}(t,at)},ct={};ct.f=Object.getOwnPropertySymbols;var lt={};lt.f={}.propertyIsEnumerable;var ft=Object.assign,pt=!ft||R(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=ft({},t)[r]||Object.keys(ft({},e)).join("")!=n})?function(t,e){for(var r=Object($(t)),n=arguments.length,o=1,i=ct.f,s=lt.f;n>o;)for(var a,u=B(arguments[o++]),c=i?ut(u).concat(i(u)):ut(u),l=c.length,f=0;l>f;)a=c[f++],q&&!s.call(u,a)||(r[a]=u[a]);return r}:ft;U(U.S+U.F,"Object",{assign:pt});var ht,yt={__esModule:!0},dt=(ht={default:j.Object.assign,__esModule:!0})&&ht.__esModule?ht:{default:ht};yt.default=dt.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};var mt={};Object.defineProperty(mt,"__esModule",{value:!0});var bt,gt=(bt=yt)&&bt.__esModule?bt:{default:bt};mt.default=function(t,e){for(var r=(0,gt.default)({},t),n=0;n<e.length;n++)delete r[e[n]];return r},mt=mt.default;var vt={},wt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!O(t))throw new Error("`err` must be an Error");if(!Array.isArray(e))throw new Error("`fields` must be an Array");var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(t)).concat(Object.getOwnPropertyNames(t)).forEach(function(e){"function"!=typeof t[e]&&(r[e]=t[e])}),!r.name&&t.constructor.name&&(r.name=t.constructor.name),Array.isArray(e)&&0!==e.length?r.filter(function(t){return-1!==e.indexOf(t)}):r},_t={};function Tt(t){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}_t=St,St.default=St,St.stable=jt,St.stableStringify=jt;var Ot=[];function St(t,e,r){!function t(e,r,n,o){var i;if("object"==Tt(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e)return o[r]="[Circular]",void Ot.push([o,r,e]);if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var s=Object.keys(e);for(i=0;i<s.length;i++){var a=s[i];t(e[a],a,n,e)}}n.pop()}}(t,"",[],void 0);for(var n=JSON.stringify(t,e,r);0!==Ot.length;){var o=Ot.pop();o[0][o[1]]=o[2]}return n}function Et(t,e){return t<e?-1:t>e?1:0}function jt(t,e,r){for(var n=function t(e,r,n,o){var i;if("object"==Tt(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e)return o[r]="[Circular]",void Ot.push([o,r,e]);if("function"==typeof e.toJSON)return;if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var s={},a=Object.keys(e).sort(Et);for(i=0;i<a.length;i++){var u=a[i];t(e[u],u,n,e),s[u]=e[u]}if(void 0===o)return s;Ot.push([o,r,e]),o[r]=s}n.pop()}}(t,"",[],void 0)||t,o=JSON.stringify(n,e,r);0!==Ot.length;){var i=Ot.pop();i[0][i[1]]=i[2]}return o}var kt={exports:{}};function xt(t){if(t)return function(t){for(var e in xt.prototype)t[e]=xt.prototype[e];return t}(t)}function At(t){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t){return(Pt="function"==typeof Symbol&&"symbol"==At(Symbol.iterator)?function(t){return At(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":At(t)})(t)}kt.exports=xt,xt.prototype.on=xt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},xt.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},xt.prototype.off=xt.prototype.removeListener=xt.prototype.removeAllListeners=xt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},xt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},xt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},xt.prototype.hasListeners=function(t){return!!this.listeners(t).length},kt=kt.exports;var Ct=function(t){return null!==t&&"object"===Pt(t)},Rt={};function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==qt(Symbol.iterator)?function(t){return qt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":qt(t)})(t)}function Lt(t){if(t)return function(t){for(var e in Lt.prototype)Object.prototype.hasOwnProperty.call(Lt.prototype,e)&&(t[e]=Lt.prototype[e]);return t}(t)}Rt=Lt,Lt.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},Lt.prototype.parse=function(t){return this._parser=t,this},Lt.prototype.responseType=function(t){return this._responseType=t,this},Lt.prototype.serialize=function(t){return this._serializer=t,this},Lt.prototype.timeout=function(t){if(!t||"object"!==Mt(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},Lt.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var Dt=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];Lt.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(n){console.error(n)}if(e&&e.status&&e.status>=500&&501!==e.status)return!0;if(t){if(t.code&&-1!==Dt.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},Lt.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},Lt.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.on("abort",function(){var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}),n.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},Lt.prototype.catch=function(t){return this.then(void 0,t)},Lt.prototype.use=function(t){return t(this),this},Lt.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},Lt.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},Lt.prototype.get=function(t){return this._header[t.toLowerCase()]},Lt.prototype.getHeader=Lt.prototype.get,Lt.prototype.set=function(t,e){if(Ct(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},Lt.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},Lt.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(Ct(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},Lt.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},Lt.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},Lt.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},Lt.prototype.redirects=function(t){return this._maxRedirects=t,this},Lt.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},Lt.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},Lt.prototype.send=function(t){var e=Ct(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&Ct(this._data))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._data[n]=t[n]);else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)},Lt.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},Lt.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.substring(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,e)+"?"+r.join("&")}}},Lt.prototype._appendQueryString=function(){console.warn("Unsupported")},Lt.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error("".concat(t+e,"ms exceeded"));n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},Lt.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var It={type:function(t){return t.split(/ *; */).shift()},params:function(t){return t.split(/ *; */).reduce(function(t,e){var r=e.split(/ *= */),n=r.shift(),o=r.shift();return n&&o&&(t[n]=o),t},{})},parseLinks:function(t){return t.split(/ *, */).reduce(function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1);return t[r[1].split(/ *= */)[1].slice(1,-1)]=n,t},{})}},Ht={};function Nt(t){if(t)return function(t){for(var e in Nt.prototype)Object.prototype.hasOwnProperty.call(Nt.prototype,e)&&(t[e]=Nt.prototype[e]);return t}(t)}Ht=Nt,Nt.prototype.get=function(t){return this.header[t.toLowerCase()]},Nt.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=It.type(e);var r=It.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=It.parseLinks(t.link))}catch(o){}},Nt.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var Ut={};function zt(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){zt.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._defaults.push({fn:t,args:r}),this}}),zt.prototype._setDefaults=function(t){this._defaults.forEach(function(e){var r;t[e.fn].apply(t,function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(r=e.args)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())})},Ut=zt;var Ft,Xt={};function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $t(t){return($t="function"==typeof Symbol&&"symbol"==Bt(Symbol.iterator)?function(t){return Bt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Bt(t)})(t)}function Wt(){}"undefined"!=typeof window?Ft=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),Ft=void 0):Ft=self;var Gt=Xt=Xt=function(t,e){return"function"==typeof e?new Xt.Request("GET",t).end(e):1===arguments.length?new Xt.Request("GET",t):new Xt.Request(t,e)};Xt.Request=te,Gt.getXHR=function(){if(Ft.XMLHttpRequest&&(!Ft.location||"file:"!==Ft.location.protocol||!Ft.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var Jt="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function Kt(t){if(!Ct(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Qt(e,r,t[r]);return e.join("&")}function Qt(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach(function(r){Qt(t,e,r)});else if(Ct(r))for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&Qt(t,"".concat(e,"[").concat(n,"]"),r[n]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(r));else t.push(encodeURIComponent(e))}function Yt(t){for(var e,r,n={},o=t.split("&"),i=0,s=o.length;i<s;++i)-1===(r=(e=o[i]).indexOf("="))?n[decodeURIComponent(e)]="":n[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return n}function Vt(t){return/[\/+]json($|[^-\w])/.test(t)}function Zt(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,n,o,i=t.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(e=(r=i[a]).indexOf(":"))&&(n=r.slice(0,e).toLowerCase(),o=Jt(r.slice(e+1)),s[n]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function te(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",function(){var t,e=null,n=null;try{n=new Zt(r)}catch(o){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=o,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",n);try{r._isResponseOK(n)||(t=new Error(n.statusText||"Unsuccessful HTTP response"))}catch(o){t=o}t?(t.original=e,t.response=n,t.status=n.status,r.callback(t,n)):r.callback(null,n)})}function ee(t,e,r){var n=Gt("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}Gt.serializeObject=Kt,Gt.parseString=Yt,Gt.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},Gt.serialize={"application/x-www-form-urlencoded":Kt,"application/json":_t},Gt.parse={"application/x-www-form-urlencoded":Yt,"application/json":JSON.parse},Ht(Zt.prototype),Zt.prototype._parseBody=function(t){var e=Gt.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&Vt(this.type)&&(e=Gt.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},Zt.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=e,o.url=r,o},Gt.Response=Zt,kt(te.prototype),Rt(te.prototype),te.prototype.type=function(t){return this.set("Content-Type",Gt.types[t]||t),this},te.prototype.accept=function(t){return this.set("Accept",Gt.types[t]||t),this},te.prototype.auth=function(t,e,r){return 1===arguments.length&&(e=""),"object"===$t(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"}),this._auth(t,e,r,function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")})},te.prototype.query=function(t){return"string"!=typeof t&&(t=Kt(t)),t&&this._query.push(t),this},te.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},te.prototype._getFormData=function(){return this._formData||(this._formData=new Ft.FormData),this._formData},te.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},te.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},te.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},te.prototype.buffer=te.prototype.ca,te.prototype.ca=te.prototype.agent,te.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},te.prototype.pipe=te.prototype.write,te.prototype._isHost=function(t){return t&&"object"===$t(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},te.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||Wt,this._finalizeQueryString(),this._end()},te.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},te.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=Gt.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var n;try{n=e.status}catch(o){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",n.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",n.bind(null,"upload"))}catch(a){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(a){return this.callback(a)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||Gt.serialize[o?o.split(";")[0]:""];!i&&Vt(o)&&(i=Gt.serialize["application/json"]),i&&(r=i(r))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&e.setRequestHeader(s,this.header[s]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},Gt.agent=function(){return new Ut},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){Ut.prototype[t.toLowerCase()]=function(e,r){var n=new Gt.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),Ut.prototype.del=Ut.prototype.delete,Gt.get=function(t,e,r){var n=Gt("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},Gt.head=function(t,e,r){var n=Gt("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},Gt.options=function(t,e,r){var n=Gt("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},Gt.del=ee,Gt.delete=ee,Gt.patch=function(t,e,r){var n=Gt("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},Gt.post=function(t,e,r){var n=Gt("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},Gt.put=function(t,e,r){var n=Gt("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n};var re,ne,oe,ie=function(t){var e=Array.prototype.slice.call(arguments,1);return e.length&&(t=t.replace(/(%?)(%([jds]))/g,function(t,r,n,o){var i=e.shift();switch(o){case"s":i=""+i;break;case"d":i=Number(i);break;case"j":i=JSON.stringify(i)}return r?(e.unshift(i),t):i})),e.length&&(t+=" "+e.join(" ")),""+t.replace(/%{2,2}/g,"%")},se="4.0.2",ae=re={};function ue(){throw new Error("setTimeout has not been defined")}function ce(){throw new Error("clearTimeout has not been defined")}function le(t){if(ne===setTimeout)return setTimeout(t,0);if((ne===ue||!ne)&&setTimeout)return ne=setTimeout,setTimeout(t,0);try{return ne(t,0)}catch(e){try{return ne.call(null,t,0)}catch(e){return ne.call(this,t,0)}}}!function(){try{ne="function"==typeof setTimeout?setTimeout:ue}catch(e){ne=ue}try{oe="function"==typeof clearTimeout?clearTimeout:ce}catch(e){oe=ce}}();var fe,pe=[],he=!1,ye=-1;function de(){he&&fe&&(he=!1,fe.length?pe=fe.concat(pe):ye=-1,pe.length&&me())}function me(){if(!he){var t=le(de);he=!0;for(var r=pe.length;r;){for(fe=pe,pe=[];++ye<r;)fe&&fe[ye].run();ye=-1,r=pe.length}fe=null,he=!1,function(t){if(oe===clearTimeout)return clearTimeout(t);if((oe===ce||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(t);try{oe(t)}catch(e){try{return oe.call(null,t)}catch(e){return oe.call(this,t)}}}(t)}}function be(t,e){this.fun=t,this.array=e}function ge(){}ae.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];pe.push(new be(t,e)),1!==pe.length||he||le(me)},be.prototype.run=function(){this.fun.apply(null,this.array)},ae.title="browser",ae.browser=!0,ae.env={},ae.argv=[],ae.version="",ae.versions={},ae.on=ge,ae.addListener=ge,ae.once=ge,ae.off=ge,ae.removeListener=ge,ae.removeAllListeners=ge,ae.emit=ge,ae.prependListener=ge,ae.prependOnceListener=ge,ae.listeners=function(t){return[]},ae.binding=function(t){throw new Error("process.binding is not supported")},ae.cwd=function(){return"/"},ae.chdir=function(t){throw new Error("process.chdir is not supported")},ae.umask=function(){return 0};var ve={};return function(t){"use strict";function e(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=["config","log"],s=["trace","debug","info","warn","error","fatal"],a="https://api.cabinjs.com",u="production",c="`level` invalid, must be: ".concat(s.join(", "));function l(t){return null==t||"object"==o(t)&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}function f(t){return void 0===t}function p(t){return"object"==o(t)&&null!==t&&!Array.isArray(t)}function h(t){return"string"==typeof t}function d(t){return"function"==typeof t}ve=function(){function o(){var r=this,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),this.config=Object.assign({key:"",endpoint:a,headers:{},timeout:5e3,retry:3,showStack:!t.env.SHOW_STACK||n(t.env.SHOW_STACK),showMeta:!t.env.SHOW_META||n(t.env.SHOW_META),silent:!1,logger:console,name:!1,level:"info",levels:["info","warn","error","fatal"],capture:!t.browser&&"production"===u,callback:!1,appInfo:!t.env.APP_INFO||n(t.env.APP_INFO)},c),this.appInfo=!!this.config.appInfo&&!!d(vt)&&vt(),this.log=this.log.bind(this);for(var l=Object.keys(this.config.logger).filter(function(t){return-1===i.indexOf(t)}),f=0;f<l.length;f++)this[l[f]]=this.config.logger[l[f]];for(var p=function(t){r[s[t]]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r.log.apply(r,e([s[t]].concat([].slice.call(o))))}},h=0;h<s.length;h++)p(h);this.setLevel=this.setLevel.bind(this),this.setName=this.setName.bind(this),this.setCallback=this.setCallback.bind(this),this.config.name&&this.setName(this.config.name),this.setLevel(this.config.level),this.err=this.error,this.warning=this.warn}var m,b,g;return m=o,(b=[{key:"setCallback",value:function(t){this.config.callback=t}},{key:"setLevel",value:function(t){if(!h(t)||-1===s.indexOf(t))throw new Error(c);h(this.config.logger.logLevel)?this.config.logger.logLevel=t:this.config.logger.level=t,this.config.levels=s.slice(s.indexOf(t))}},{key:"setName",value:function(t){if(!h(t))throw new Error("`name` must be a String");h(this.config.logger.scope)?this.config.logger.scope=t:this.config.logger.name=t}},{key:"log",value:function(r,n,o){for(var i=this,u=[r,n],c=arguments.length,m=new Array(c>3?c-3:0),b=3;b<c;b++)m[b-3]=arguments[b];f(o)||u.push(o),u=u.concat([].slice.call(m));var g,v=this.config,w=0;"warning"===r&&(r="warn"),"err"===r&&(r="error"),O(r)?(o=n,n=r,r="error"):h(r)&&-1!==s.indexOf(r)||(o=n,n=r,r="info",w=-1),u.length>=4+w?(n=ie.apply(void 0,e(u.slice(1+w))),o={}):u.length===3+w&&h(n)&&T.filter(function(t){return-1!==n.indexOf(t)}).length>0?(n=ie(n,o),o={}):O(n)||(O(o)?o={err:wt(o)}:p(o)||f(o)||null===o?h(n)||(n=ie(n)):(n=ie(n,o),o={})),p(o)||(o={}),O(n)&&(g=n,p(o.err)||(o.err=wt(g)),n=n.message);var _=d(v.callback)&&(!("boolean"==typeof o.callback)||o.callback);(o=mt(o,["callback"])).level=r,this.appInfo&&(o.app=this.appInfo);var S=_t({message:n,meta:o});if(v.capture&&-1!==v.levels.indexOf(r)&&(!O(g)||!g._captureFailed)){if(v.endpoint===a&&!v.key)throw new Error("Cabin API key required (e.g. `{ key: 'YOUR-CABIN-API-KEY' })`)\n<https://cabinjs.com>");var E=Xt.post(v.endpoint).set("X-Request-Id",y()).timeout(v.timeout);t.browser||E.set("User-Agent","axe/".concat(se)),v.key&&E.auth(v.key),l(v.headers)||E.set(v.headers),E.retry(v.retry).type("application/json").send(S).end(function(t){t&&(t._captureFailed=!0,i.config.logger.error(t))})}if(_&&v.callback(r,n,o),v.silent)return S;if(-1===v.levels.indexOf(r))return S;var j=r;-1===w?j="log":"fatal"===r&&(j="error");var k=mt(o,["level","err"]);return"error"===j&&O(g)&&v.showStack?!v.showMeta||l(k)?this.config.logger.error(g):this.config.logger.error(g,k):!v.showMeta||l(k)?this.config.logger[j](n):this.config.logger[j](n,k),S}}])&&r(m.prototype,b),g&&r(m,g),o}()}.call(this,re),ve});
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Axe=t()}}(function(){var t,e,r=(t=function(t,e){"use strict";var r=S.document,n=P(r)&&P(r.createElement);t.exports=function(t){return n?r.createElement(t):{}}},function(r){return e||t(e={exports:{},parent:r},e.exports),e.exports});!function(t){"use strict";t.console||(t.console={});for(var e,r,n=t.console,o=function(){},i=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=i.pop();)n[e]||(n[e]={});for(;r=s.pop();)n[r]||(n[r]=o)}("undefined"==typeof window?void 0:window);var n=function(t){return"string"==typeof t?/^(true|t|yes|y|on|1)$/i.test(t.trim()):"number"==typeof t?1===t:"boolean"==typeof t&&t},o=function(t,e){var r="000000000"+t;return r.substr(r.length-e)};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s,a="object"==("undefined"==typeof window?"undefined":i(window))?window:self,u=Object.keys(a).length,c=o(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+u.toString(36),4),l=function(){return c},f=window.crypto||window.msCrypto;if(f){var p=Math.pow(2,32)-1;s=function(){return Math.abs(f.getRandomValues(new Uint32Array(1))[0]/p)}}else s=Math.random;var h=s,y={},d=0,m=4,b=36,g=Math.pow(b,m);function v(){return o((h()*g<<0).toString(b),m)}function w(){return d=d<g?d:0,++d-1}function _(){return"c"+(new Date).getTime().toString(b)+o(w().toString(b),m)+l()+(v()+v())}_.slug=function(){var t=(new Date).getTime().toString(36),e=w().toString(36).slice(-4),r=l().slice(0,1)+l().slice(-1),n=v().slice(-2);return t.slice(-2)+e+r+n},_.isCuid=function(t){return"string"==typeof t&&!!t.startsWith("c")},_.isSlug=function(t){if("string"!=typeof t)return!1;var e=t.length;return e>=7&&e<=10},_.fingerprint=l,y=_;var T=["%s","%d","%i","%f","%j","%o","%O","%%"],O=function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},S={},E=S="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=E);var j={},k=j={version:"2.6.9"};"number"==typeof __e&&(__e=k);var x=function(t,e,r){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}};function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var P=function(t){return"object"==A(t)?null!==t:"function"==typeof t},C=function(t){if(!P(t))throw TypeError(t+" is not an object!");return t},R=function(t){try{return!!t()}catch(e){return!0}},q=!R(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),M=!q&&!R(function(){return 7!=Object.defineProperty(r({})("div"),"a",{get:function(){return 7}}).a}),L={},D=Object.defineProperty;L.f=q?Object.defineProperty:function(t,r,n){if(C(t),r=function(t,e){if(!P(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!P(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),C(n),M)try{return D(t,r,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[r]=n.value),t};var I=q?function(t,e,r){return L.f(t,e,function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}(1,r))}:function(t,e,r){return t[e]=r,t},H={}.hasOwnProperty,N=function(t,e){return H.call(t,e)},U={},z=function t(e,r,n){var o,i,s,a=e&t.F,u=e&t.G,c=e&t.S,l=e&t.P,f=e&t.B,p=e&t.W,h=u?j:j[r]||(j[r]={}),y=h.prototype,d=u?S:c?S[r]:(S[r]||{}).prototype;for(o in u&&(n=r),n)(i=!a&&d&&void 0!==d[o])&&N(h,o)||(s=i?d[o]:n[o],h[o]=u&&"function"!=typeof d[o]?n[o]:f&&i?x(s,S):p&&d[o]==s?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):l&&"function"==typeof s?x(Function.call,s):s,l&&((h.virtual||(h.virtual={}))[o]=s,e&t.R&&y&&!y[o]&&I(y,o,s)))};z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128,U=z;var F,X={}.toString,B=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==function(t){return X.call(t).slice(8,-1)}(t)?t.split(""):Object(t)},$=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},W=function(t){return B($(t))},G=Math.ceil,J=Math.floor,K=function(t){return isNaN(t=+t)?0:(t>0?J:G)(t)},Q=Math.min,Y=Math.max,V=Math.min,Z=S["__core-js_shared__"]||(S["__core-js_shared__"]={});(F=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:j.version,mode:"pure",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"});var tt,et,rt=0,nt=Math.random(),ot=F("keys"),it=(et=!1,function(t,e,r){var n,o,i=W(t),s=(o=i.length)>0?Q(K(o),9007199254740991):0,a=function(t,e){return(t=K(t))<0?Y(t+e,0):V(t,e)}(r,s);if(et&&e!=e){for(;s>a;)if((n=i[a++])!=n)return!0}else for(;s>a;a++)if((et||a in i)&&i[a]===e)return et||a||0;return!et&&-1}),st=ot[tt="IE_PROTO"]||(ot[tt]=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++rt+nt).toString(36))}(tt)),at="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ut=Object.keys||function(t){return function(t,e){var r,n=W(t),o=0,i=[];for(r in n)r!=st&&N(n,r)&&i.push(r);for(;e.length>o;)N(n,r=e[o++])&&(~it(i,r)||i.push(r));return i}(t,at)},ct={};ct.f=Object.getOwnPropertySymbols;var lt={};lt.f={}.propertyIsEnumerable;var ft=Object.assign,pt=!ft||R(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=ft({},t)[r]||Object.keys(ft({},e)).join("")!=n})?function(t,e){for(var r=Object($(t)),n=arguments.length,o=1,i=ct.f,s=lt.f;n>o;)for(var a,u=B(arguments[o++]),c=i?ut(u).concat(i(u)):ut(u),l=c.length,f=0;l>f;)a=c[f++],q&&!s.call(u,a)||(r[a]=u[a]);return r}:ft;U(U.S+U.F,"Object",{assign:pt});var ht,yt={__esModule:!0},dt=(ht={default:j.Object.assign,__esModule:!0})&&ht.__esModule?ht:{default:ht};yt.default=dt.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};var mt={};Object.defineProperty(mt,"__esModule",{value:!0});var bt,gt=(bt=yt)&&bt.__esModule?bt:{default:bt};mt.default=function(t,e){for(var r=(0,gt.default)({},t),n=0;n<e.length;n++)delete r[e[n]];return r},mt=mt.default;var vt={},wt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!O(t))throw new Error("`err` must be an Error");if(!Array.isArray(e))throw new Error("`fields` must be an Array");var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(t)).concat(Object.getOwnPropertyNames(t)).forEach(function(e){"function"!=typeof t[e]&&(r[e]=t[e])}),!r.name&&t.constructor.name&&(r.name=t.constructor.name),Array.isArray(e)&&0!==e.length?r.filter(function(t){return-1!==e.indexOf(t)}):r},_t={};function Tt(t){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}_t=St,St.default=St,St.stable=jt,St.stableStringify=jt;var Ot=[];function St(t,e,r){!function t(e,r,n,o){var i;if("object"==Tt(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e)return o[r]="[Circular]",void Ot.push([o,r,e]);if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var s=Object.keys(e);for(i=0;i<s.length;i++){var a=s[i];t(e[a],a,n,e)}}n.pop()}}(t,"",[],void 0);for(var n=JSON.stringify(t,e,r);0!==Ot.length;){var o=Ot.pop();o[0][o[1]]=o[2]}return n}function Et(t,e){return t<e?-1:t>e?1:0}function jt(t,e,r){for(var n=function t(e,r,n,o){var i;if("object"==Tt(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e)return o[r]="[Circular]",void Ot.push([o,r,e]);if("function"==typeof e.toJSON)return;if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var s={},a=Object.keys(e).sort(Et);for(i=0;i<a.length;i++){var u=a[i];t(e[u],u,n,e),s[u]=e[u]}if(void 0===o)return s;Ot.push([o,r,e]),o[r]=s}n.pop()}}(t,"",[],void 0)||t,o=JSON.stringify(n,e,r);0!==Ot.length;){var i=Ot.pop();i[0][i[1]]=i[2]}return o}var kt={exports:{}};function xt(t){if(t)return function(t){for(var e in xt.prototype)t[e]=xt.prototype[e];return t}(t)}function At(t){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t){return(Pt="function"==typeof Symbol&&"symbol"==At(Symbol.iterator)?function(t){return At(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":At(t)})(t)}kt.exports=xt,xt.prototype.on=xt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},xt.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},xt.prototype.off=xt.prototype.removeListener=xt.prototype.removeAllListeners=xt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},xt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},xt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},xt.prototype.hasListeners=function(t){return!!this.listeners(t).length},kt=kt.exports;var Ct=function(t){return null!==t&&"object"===Pt(t)},Rt={};function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==qt(Symbol.iterator)?function(t){return qt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":qt(t)})(t)}function Lt(t){if(t)return function(t){for(var e in Lt.prototype)Object.prototype.hasOwnProperty.call(Lt.prototype,e)&&(t[e]=Lt.prototype[e]);return t}(t)}Rt=Lt,Lt.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},Lt.prototype.parse=function(t){return this._parser=t,this},Lt.prototype.responseType=function(t){return this._responseType=t,this},Lt.prototype.serialize=function(t){return this._serializer=t,this},Lt.prototype.timeout=function(t){if(!t||"object"!==Mt(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},Lt.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var Dt=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];Lt.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(n){console.error(n)}if(e&&e.status&&e.status>=500&&501!==e.status)return!0;if(t){if(t.code&&-1!==Dt.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},Lt.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},Lt.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.on("abort",function(){var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}),n.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},Lt.prototype.catch=function(t){return this.then(void 0,t)},Lt.prototype.use=function(t){return t(this),this},Lt.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},Lt.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},Lt.prototype.get=function(t){return this._header[t.toLowerCase()]},Lt.prototype.getHeader=Lt.prototype.get,Lt.prototype.set=function(t,e){if(Ct(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},Lt.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},Lt.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(Ct(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},Lt.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},Lt.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},Lt.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},Lt.prototype.redirects=function(t){return this._maxRedirects=t,this},Lt.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},Lt.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},Lt.prototype.send=function(t){var e=Ct(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&Ct(this._data))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._data[n]=t[n]);else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)},Lt.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},Lt.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.substring(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,e)+"?"+r.join("&")}}},Lt.prototype._appendQueryString=function(){console.warn("Unsupported")},Lt.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error("".concat(t+e,"ms exceeded"));n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},Lt.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var It={type:function(t){return t.split(/ *; */).shift()},params:function(t){return t.split(/ *; */).reduce(function(t,e){var r=e.split(/ *= */),n=r.shift(),o=r.shift();return n&&o&&(t[n]=o),t},{})},parseLinks:function(t){return t.split(/ *, */).reduce(function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1);return t[r[1].split(/ *= */)[1].slice(1,-1)]=n,t},{})}},Ht={};function Nt(t){if(t)return function(t){for(var e in Nt.prototype)Object.prototype.hasOwnProperty.call(Nt.prototype,e)&&(t[e]=Nt.prototype[e]);return t}(t)}Ht=Nt,Nt.prototype.get=function(t){return this.header[t.toLowerCase()]},Nt.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=It.type(e);var r=It.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=It.parseLinks(t.link))}catch(o){}},Nt.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var Ut={};function zt(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){zt.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._defaults.push({fn:t,args:r}),this}}),zt.prototype._setDefaults=function(t){this._defaults.forEach(function(e){var r;t[e.fn].apply(t,function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(r=e.args)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())})},Ut=zt;var Ft,Xt={};function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $t(t){return($t="function"==typeof Symbol&&"symbol"==Bt(Symbol.iterator)?function(t){return Bt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Bt(t)})(t)}function Wt(){}"undefined"!=typeof window?Ft=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),Ft=void 0):Ft=self;var Gt=Xt=Xt=function(t,e){return"function"==typeof e?new Xt.Request("GET",t).end(e):1===arguments.length?new Xt.Request("GET",t):new Xt.Request(t,e)};Xt.Request=te,Gt.getXHR=function(){if(Ft.XMLHttpRequest&&(!Ft.location||"file:"!==Ft.location.protocol||!Ft.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var Jt="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function Kt(t){if(!Ct(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Qt(e,r,t[r]);return e.join("&")}function Qt(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach(function(r){Qt(t,e,r)});else if(Ct(r))for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&Qt(t,"".concat(e,"[").concat(n,"]"),r[n]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(r));else t.push(encodeURIComponent(e))}function Yt(t){for(var e,r,n={},o=t.split("&"),i=0,s=o.length;i<s;++i)-1===(r=(e=o[i]).indexOf("="))?n[decodeURIComponent(e)]="":n[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return n}function Vt(t){return/[\/+]json($|[^-\w])/.test(t)}function Zt(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,n,o,i=t.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(e=(r=i[a]).indexOf(":"))&&(n=r.slice(0,e).toLowerCase(),o=Jt(r.slice(e+1)),s[n]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function te(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",function(){var t,e=null,n=null;try{n=new Zt(r)}catch(o){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=o,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",n);try{r._isResponseOK(n)||(t=new Error(n.statusText||"Unsuccessful HTTP response"))}catch(o){t=o}t?(t.original=e,t.response=n,t.status=n.status,r.callback(t,n)):r.callback(null,n)})}function ee(t,e,r){var n=Gt("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}Gt.serializeObject=Kt,Gt.parseString=Yt,Gt.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},Gt.serialize={"application/x-www-form-urlencoded":Kt,"application/json":_t},Gt.parse={"application/x-www-form-urlencoded":Yt,"application/json":JSON.parse},Ht(Zt.prototype),Zt.prototype._parseBody=function(t){var e=Gt.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&Vt(this.type)&&(e=Gt.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},Zt.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=e,o.url=r,o},Gt.Response=Zt,kt(te.prototype),Rt(te.prototype),te.prototype.type=function(t){return this.set("Content-Type",Gt.types[t]||t),this},te.prototype.accept=function(t){return this.set("Accept",Gt.types[t]||t),this},te.prototype.auth=function(t,e,r){return 1===arguments.length&&(e=""),"object"===$t(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"}),this._auth(t,e,r,function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")})},te.prototype.query=function(t){return"string"!=typeof t&&(t=Kt(t)),t&&this._query.push(t),this},te.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},te.prototype._getFormData=function(){return this._formData||(this._formData=new Ft.FormData),this._formData},te.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},te.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},te.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},te.prototype.buffer=te.prototype.ca,te.prototype.ca=te.prototype.agent,te.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},te.prototype.pipe=te.prototype.write,te.prototype._isHost=function(t){return t&&"object"===$t(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},te.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||Wt,this._finalizeQueryString(),this._end()},te.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},te.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=Gt.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var n;try{n=e.status}catch(o){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",n.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",n.bind(null,"upload"))}catch(a){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(a){return this.callback(a)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||Gt.serialize[o?o.split(";")[0]:""];!i&&Vt(o)&&(i=Gt.serialize["application/json"]),i&&(r=i(r))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&e.setRequestHeader(s,this.header[s]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},Gt.agent=function(){return new Ut},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){Ut.prototype[t.toLowerCase()]=function(e,r){var n=new Gt.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),Ut.prototype.del=Ut.prototype.delete,Gt.get=function(t,e,r){var n=Gt("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},Gt.head=function(t,e,r){var n=Gt("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},Gt.options=function(t,e,r){var n=Gt("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},Gt.del=ee,Gt.delete=ee,Gt.patch=function(t,e,r){var n=Gt("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},Gt.post=function(t,e,r){var n=Gt("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},Gt.put=function(t,e,r){var n=Gt("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n};var re,ne,oe,ie=function(t){var e=Array.prototype.slice.call(arguments,1);return e.length&&(t=t.replace(/(%?)(%([jds]))/g,function(t,r,n,o){var i=e.shift();switch(o){case"s":i=""+i;break;case"d":i=Number(i);break;case"j":i=JSON.stringify(i)}return r?(e.unshift(i),t):i})),e.length&&(t+=" "+e.join(" ")),""+t.replace(/%{2,2}/g,"%")},se="4.0.3",ae=re={};function ue(){throw new Error("setTimeout has not been defined")}function ce(){throw new Error("clearTimeout has not been defined")}function le(t){if(ne===setTimeout)return setTimeout(t,0);if((ne===ue||!ne)&&setTimeout)return ne=setTimeout,setTimeout(t,0);try{return ne(t,0)}catch(e){try{return ne.call(null,t,0)}catch(e){return ne.call(this,t,0)}}}!function(){try{ne="function"==typeof setTimeout?setTimeout:ue}catch(e){ne=ue}try{oe="function"==typeof clearTimeout?clearTimeout:ce}catch(e){oe=ce}}();var fe,pe=[],he=!1,ye=-1;function de(){he&&fe&&(he=!1,fe.length?pe=fe.concat(pe):ye=-1,pe.length&&me())}function me(){if(!he){var t=le(de);he=!0;for(var r=pe.length;r;){for(fe=pe,pe=[];++ye<r;)fe&&fe[ye].run();ye=-1,r=pe.length}fe=null,he=!1,function(t){if(oe===clearTimeout)return clearTimeout(t);if((oe===ce||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(t);try{oe(t)}catch(e){try{return oe.call(null,t)}catch(e){return oe.call(this,t)}}}(t)}}function be(t,e){this.fun=t,this.array=e}function ge(){}ae.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];pe.push(new be(t,e)),1!==pe.length||he||le(me)},be.prototype.run=function(){this.fun.apply(null,this.array)},ae.title="browser",ae.browser=!0,ae.env={},ae.argv=[],ae.version="",ae.versions={},ae.on=ge,ae.addListener=ge,ae.once=ge,ae.off=ge,ae.removeListener=ge,ae.removeAllListeners=ge,ae.emit=ge,ae.prependListener=ge,ae.prependOnceListener=ge,ae.listeners=function(t){return[]},ae.binding=function(t){throw new Error("process.binding is not supported")},ae.cwd=function(){return"/"},ae.chdir=function(t){throw new Error("process.chdir is not supported")},ae.umask=function(){return 0};var ve={};return function(t){"use strict";function e(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=["config","log"],s=["trace","debug","info","warn","error","fatal"],a="https://api.cabinjs.com",u="production",c="`level` invalid, must be: ".concat(s.join(", "));function l(t){return null==t||"object"==o(t)&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}function f(t){return void 0===t}function p(t){return"object"==o(t)&&null!==t&&!Array.isArray(t)}function h(t){return"string"==typeof t}function d(t){return"function"==typeof t}ve=function(){function o(){var r=this,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),this.config=Object.assign({key:"",endpoint:a,headers:{},timeout:5e3,retry:3,showStack:!t.env.SHOW_STACK||n(t.env.SHOW_STACK),showMeta:!t.env.SHOW_META||n(t.env.SHOW_META),silent:!1,logger:console,name:!1,level:"info",levels:["info","warn","error","fatal"],capture:!t.browser&&"production"===u,callback:!1,appInfo:!t.env.APP_INFO||n(t.env.APP_INFO)},c),this.appInfo=!!this.config.appInfo&&!!d(vt)&&vt(),this.log=this.log.bind(this);for(var l=Object.keys(this.config.logger).filter(function(t){return-1===i.indexOf(t)}),f=0;f<l.length;f++)this[l[f]]=this.config.logger[l[f]];for(var p=function(t){r[s[t]]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r.log.apply(r,e([s[t]].concat([].slice.call(o))))}},h=0;h<s.length;h++)p(h);this.setLevel=this.setLevel.bind(this),this.setName=this.setName.bind(this),this.setCallback=this.setCallback.bind(this),this.config.name&&this.setName(this.config.name),this.setLevel(this.config.level),this.err=this.error,this.warning=this.warn}var m,b,g;return m=o,(b=[{key:"setCallback",value:function(t){this.config.callback=t}},{key:"setLevel",value:function(t){if(!h(t)||-1===s.indexOf(t))throw new Error(c);h(this.config.logger.logLevel)?this.config.logger.logLevel=t:this.config.logger.level=t,this.config.levels=s.slice(s.indexOf(t))}},{key:"setName",value:function(t){if(!h(t))throw new Error("`name` must be a String");h(this.config.logger.scope)?this.config.logger.scope=t:this.config.logger.name=t}},{key:"log",value:function(r,n,o){for(var i=this,u=[r,n],c=arguments.length,m=new Array(c>3?c-3:0),b=3;b<c;b++)m[b-3]=arguments[b];f(o)||u.push(o),u=u.concat([].slice.call(m));var g,v=this.config,w=0;"warning"===r&&(r="warn"),"err"===r&&(r="error"),O(r)?(o=n,n=r,r="error"):h(r)&&-1!==s.indexOf(r)||(o=n,n=r,r="info",w=-1),u.length>=4+w?(n=ie.apply(void 0,e(u.slice(1+w))),o={}):u.length===3+w&&h(n)&&T.filter(function(t){return-1!==n.indexOf(t)}).length>0?(n=ie(n,o),o={}):O(n)||(O(o)?o={err:wt(o)}:p(o)||f(o)||null===o?h(n)||(n=ie(n)):(n=ie(n,o),o={})),p(o)||(o={}),O(n)&&(g=n,p(o.err)||(o.err=wt(g)),n=n.message);var _=d(v.callback)&&(!("boolean"==typeof o.callback)||o.callback);(o=mt(o,["callback"])).level=r,this.appInfo&&(o.app=this.appInfo);var S=_t({message:n,meta:o});if(v.capture&&-1!==v.levels.indexOf(r)&&(!O(g)||!g._captureFailed)){if(v.endpoint===a&&!v.key)throw new Error("Cabin API key required (e.g. `{ key: 'YOUR-CABIN-API-KEY' })`)\n<https://cabinjs.com>");var E=Xt.post(v.endpoint).set("X-Request-Id",y()).timeout(v.timeout);t.browser||E.set("User-Agent","axe/".concat(se)),v.key&&E.auth(v.key),l(v.headers)||E.set(v.headers),E.retry(v.retry).type("application/json").send(S).end(function(t){t&&(t._captureFailed=!0,i.config.logger.error(t))})}if(_&&v.callback(r,n,o),v.silent)return S;if(-1===v.levels.indexOf(r))return S;var j=r;-1===w?j="log":"fatal"===r&&(j="error");var k=mt(o,["level","err"]);return"error"===j&&O(g)&&v.showStack?!v.showMeta||l(k)?this.config.logger.error(g):this.config.logger.error(g,k):!v.showMeta||l(k)?this.config.logger[j](n):this.config.logger[j](n,k),S}}])&&r(m.prototype,b),g&&r(m,g),o}()}.call(this,re),ve});
{
"name": "axe",
"description": "Logging add-on to send logs over HTTP to your server in Node and Browser environments. Works with any logger! Chop up your logs consistently! Made for Cabin and Lad.",
"version": "4.0.2",
"version": "4.0.3",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)",

@@ -42,5 +42,5 @@ "ava": {

"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@commitlint/cli": "^8.1.0",

@@ -53,10 +53,10 @@ "@commitlint/config-conventional": "^8.1.0",

"consola": "^2.10.1",
"cross-env": "^5.2.0",
"eslint": "^6.2.2",
"cross-env": "^5.2.1",
"eslint": "^6.3.0",
"eslint-config-xo-lass": "^1.0.3",
"eslint-plugin-compat": "^3.3.0",
"eslint-plugin-node": "^9.2.0",
"eslint-plugin-node": "^10.0.0",
"express": "^4.17.1",
"fixpack": "^2.3.1",
"husky": "^3.0.4",
"husky": "^3.0.5",
"jsdom": "15.1.1",

@@ -72,3 +72,3 @@ "koa": "^2.8.1",

"signale": "^1.4.0",
"sinon": "^7.4.1",
"sinon": "^7.4.2",
"tinyify": "https://github.com/niftylettuce/tinyify",

@@ -75,0 +75,0 @@ "xo": "^0.24.0"

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc