@sentry/integrations
Advanced tools
Comparing version 6.2.1 to 6.3.0-beta.0
@@ -56,2 +56,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -96,36 +120,2 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -224,2 +214,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -226,0 +227,0 @@ /** SyncPromise internal states */ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=u();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=u(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},v=(h.nowSeconds.bind(h),g.nowSeconds.bind(g),function(){var n=u().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,p.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||u().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=v.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function a(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,u(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function c(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=a(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);a();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=a().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},v=(h.nowSeconds.bind(h),g.nowSeconds.bind(g),function(){var n=a().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,p.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||a().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=v.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window); | ||
//# sourceMappingURL=angular.min.js.map |
@@ -145,2 +145,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/*! ***************************************************************************** | ||
@@ -215,21 +239,2 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/** | ||
* Join values in array | ||
@@ -259,17 +264,2 @@ * @param input array of values to be joined together | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -403,2 +393,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -405,0 +406,0 @@ /** SyncPromise internal states */ |
@@ -1,2 +0,2 @@ | ||
!function(n){var e,t,r,o,i,c={};Object.defineProperty(c,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var a=function(n,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,u(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}a(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function f(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}var l={};function _(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(n){var e=_();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var d=_(),h="Sentry Logger ",g=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.__SENTRY__=d.__SENTRY__||{};d.__SENTRY__.logger||(d.__SENTRY__.logger=new g);var v;_();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){n.resolve(e).then(function(n){i[c]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=s()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=_().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=_().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),_()),S=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var a=t();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=f(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(f(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),a.captureMessage(t)):a.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var m in c.CaptureConsole=S,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},c)Object.prototype.hasOwnProperty.call(c,m)&&(n.Sentry.Integrations[m]=c[m])}(window); | ||
!function(n){var e,t,r,o,i,c={};function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}Object.defineProperty(c,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var u={};function s(){return a()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:u}var f=function(n,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,l(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}f(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function _(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}function p(n){var e=s();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var d=s(),h="Sentry Logger ",g=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.__SENTRY__=d.__SENTRY__||{};d.__SENTRY__.logger||(d.__SENTRY__.logger=new g);var v;s();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){n.resolve(e).then(function(n){i[c]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=a()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=s().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=s().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),s()),S=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var a=t();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=_(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(_(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),a.captureMessage(t)):a.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var m in c.CaptureConsole=S,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},c)Object.prototype.hasOwnProperty.call(c,m)&&(n.Sentry.Integrations[m]=c[m])}(window); | ||
//# sourceMappingURL=captureconsole.min.js.map |
@@ -56,2 +56,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -96,36 +120,2 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -224,2 +214,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -226,0 +227,0 @@ /** SyncPromise internal states */ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function a(n){var t=u();if(!("console"in t))return n();var e=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(o[n]=e[n],e[n]=e[n].__sentry_original__)});var r=n();return Object.keys(o).forEach(function(n){e[n]=o[n]}),r}var f=u(),s="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.error(s+"[Error]: "+n.join(" "))})},n}();f.__SENTRY__=f.__SENTRY__||{};var _;f.__SENTRY__.logger||(f.__SENTRY__.logger=new l),u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var o;t._state===_.PENDING&&(o=e,Boolean(o&&o.then&&"function"==typeof o.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(r-=1)&&e(i)}).then(null,o)})}else e([]);else o(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var o=this;return new n(function(n,r){o._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void r(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void r(n)}else r(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,o){var r,i;return e.then(function(n){i=!1,r=n,t&&t()},function(n){i=!0,r=n,t&&t()}).then(function(){i?o(r):n(r)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var p={nowSeconds:function(){return Date.now()/1e3}};var h=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),y=void 0===h?p:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}},d=(p.nowSeconds.bind(p),y.nowSeconds.bind(y),function(){var n=u().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),function(){function n(t){this.name=n.id,this._options=o({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,e){t(function(t,o){var r=e().getIntegration(n);return r&&(r._options.debugger,a(function(){r._options.stringify?(console.log(JSON.stringify(t,null,2)),o&&console.log(JSON.stringify(o,null,2))):(console.log(t),o&&console.log(o))})),t})},n.id="Debug",n}());for(var g in t.Debug=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,g)&&(n.Sentry.Integrations[g]=t[g])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return r()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,u(o,e.prototype),o}(function(n,t){function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);function a(n){var t=c();if(!("console"in t))return n();var e=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(o[n]=e[n],e[n]=e[n].__sentry_original__)});var r=n();return Object.keys(o).forEach(function(n){e[n]=o[n]}),r}var f=c(),s="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.error(s+"[Error]: "+n.join(" "))})},n}();f.__SENTRY__=f.__SENTRY__||{};var _;f.__SENTRY__.logger||(f.__SENTRY__.logger=new l),c();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var o;t._state===_.PENDING&&(o=e,Boolean(o&&o.then&&"function"==typeof o.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(r-=1)&&e(i)}).then(null,o)})}else e([]);else o(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var o=this;return new n(function(n,r){o._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void r(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void r(n)}else r(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,o){var r,i;return e.then(function(n){i=!1,r=n,t&&t()},function(n){i=!0,r=n,t&&t()}).then(function(){i?o(r):n(r)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var p={nowSeconds:function(){return Date.now()/1e3}};var h=r()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=c().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),y=void 0===h?p:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}},d=(p.nowSeconds.bind(p),y.nowSeconds.bind(y),function(){var n=c().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),function(){function n(t){this.name=n.id,this._options=o({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,e){t(function(t,o){var r=e().getIntegration(n);return r&&(r._options.debugger,a(function(){r._options.stringify?(console.log(JSON.stringify(t,null,2)),o&&console.log(JSON.stringify(o,null,2))):(console.log(t),o&&console.log(o))})),t})},n.id="Debug",n}());for(var g in t.Debug=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,g)&&(n.Sentry.Integrations[g]=t[g])}(window); | ||
//# sourceMappingURL=debug.min.js.map |
@@ -32,2 +32,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/*! ***************************************************************************** | ||
@@ -101,36 +125,2 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -229,2 +219,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -231,0 +232,0 @@ /** SyncPromise internal states */ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(n){var t=c();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=c(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,_=u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);c();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var p=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=c().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?h:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}},E=(h.nowSeconds.bind(h),d.nowSeconds.bind(d),function(){var n=c().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._Ember=t.Ember||c().Ember}return n.prototype.setupOnce=function(t,e){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(t){if(e().getIntegration(n)&&e().captureException(t,{originalException:t}),"function"==typeof o)o.call(r._Ember,t);else if(r._Ember.testing)throw t},this._Ember.RSVP.on("error",function(t){e().getIntegration(n)&&e().withScope(function(n){!function(n,t){try{return n instanceof t}catch(n){return!1}}(t,Error)?(n.setExtra("reason",t),e().captureMessage("Unhandled Promise error detected")):(n.setExtra("context","Unhandled Promise error detected"),e().captureException(t,{originalException:t}))})})}else _.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}());for(var y in t.Ember=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,y)&&(n.Sentry.Integrations[y]=t[y])}(window); | ||
!function(n){var t={};function e(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}Object.defineProperty(t,"__esModule",{value:!0});var r={};function o(){return e()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}var i=function(n,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,c(r,e.prototype),r}(function(n,t){function e(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function a(n){var t=o();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var i=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),i}var u=o(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,_=u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);o();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var p=e()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=o().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?h:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}},E=(h.nowSeconds.bind(h),d.nowSeconds.bind(d),function(){var n=o().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._Ember=t.Ember||o().Ember}return n.prototype.setupOnce=function(t,e){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(t){if(e().getIntegration(n)&&e().captureException(t,{originalException:t}),"function"==typeof o)o.call(r._Ember,t);else if(r._Ember.testing)throw t},this._Ember.RSVP.on("error",function(t){e().getIntegration(n)&&e().withScope(function(n){!function(n,t){try{return n instanceof t}catch(n){return!1}}(t,Error)?(n.setExtra("reason",t),e().captureMessage("Unhandled Promise error detected")):(n.setExtra("context","Unhandled Promise error detected"),e().captureException(t,{originalException:t}))})})}else _.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}());for(var y in t.Ember=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,y)&&(n.Sentry.Integrations[y]=t[y])}(window); | ||
//# sourceMappingURL=ember.min.js.map |
@@ -243,2 +243,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -283,36 +307,2 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -678,2 +668,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -680,0 +681,0 @@ /** SyncPromise internal states */ |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(n=c.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)u.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,l(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var h={};function y(){return p()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:h}function _(t){var n=y();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var d=y(),v="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.log(v+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.warn(v+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.error(v+"[Error]: "+t.join(" "))})},t}();d.__SENTRY__=d.__SENTRY__||{};var E=d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),m=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),b="<anonymous>";function w(t){if(o(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function j(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||b}catch(t){return b}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function O(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=j(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=j(n,t);if(i(o))return o;var a=w(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=O(u,a[u],e-1,r));return r.unmemoize(n),c}var S;y();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));!function(){function t(t){var n=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(S.RESOLVED,t)},this._reject=function(t){n._setResult(S.REJECTED,t)},this._setResult=function(t,e){var r;n._state===S.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==S.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===S.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var N={nowSeconds:function(){return Date.now()/1e3}};var D=p()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=y().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===D?N:{nowSeconds:function(){return(D.timeOrigin+D.now())/1e3}},P=(N.nowSeconds.bind(N),x.nowSeconds.bind(x),function(){var t=y().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return O(t,e,n)}))}catch(t){return"**non-serializable**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];o(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){E.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(n=c.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)u.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}function l(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var p={};function h(){return l()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:p}var y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,y(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function _(t){var n=h();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var d=h(),v="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.log(v+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.warn(v+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.error(v+"[Error]: "+t.join(" "))})},t}();d.__SENTRY__=d.__SENTRY__||{};var E=d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),m=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),b="<anonymous>";function w(t){if(o(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function j(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||b}catch(t){return b}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function O(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=j(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=j(n,t);if(i(o))return o;var a=w(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=O(u,a[u],e-1,r));return r.unmemoize(n),c}var S;h();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));!function(){function t(t){var n=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(S.RESOLVED,t)},this._reject=function(t){n._setResult(S.REJECTED,t)},this._setResult=function(t,e){var r;n._state===S.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==S.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===S.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var N={nowSeconds:function(){return Date.now()/1e3}};var D=l()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=h().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===D?N:{nowSeconds:function(){return(D.timeOrigin+D.now())/1e3}},P=(N.nowSeconds.bind(N),x.nowSeconds.bind(x),function(){var t=h().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return O(t,e,n)}))}catch(t){return"**non-serializable**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];o(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){E.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(window); | ||
//# sourceMappingURL=extraerrordata.min.js.map |
@@ -82,2 +82,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -123,36 +147,2 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** | ||
* UUID4 generator | ||
@@ -286,2 +276,13 @@ * | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -288,0 +289,0 @@ /** SyncPromise internal states */ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};function r(n,t,e,r){return new(e||(e=Promise))(function(o,i){function c(n){try{a(r.next(n))}catch(n){i(n)}}function u(n){try{a(r.throw(n))}catch(n){i(n)}}function a(n){n.done?o(n.value):new e(function(t){t(n.value)}).then(c,u)}a((r=r.apply(n,t||[])).next())})}function o(n,t){var e,r,o,i,c={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(e)throw new TypeError("Generator is already executing.");for(;c;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(n,c)}catch(n){i=[6,n],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,i(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var u={};function a(){return c()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:u}function f(){var n=a(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var r=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function s(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var l=a(),h="Sentry Logger ",v=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&s(function(){l.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&s(function(){l.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&s(function(){l.console.error(h+"[Error]: "+n.join(" "))})},n}();l.__SENTRY__=l.__SENTRY__||{};var p,d=l.__SENTRY__.logger||(l.__SENTRY__.logger=new v);a();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(p||(p={}));!function(){function n(n){var t=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(p.RESOLVED,n)},this._reject=function(n){t._setResult(p.REJECTED,n)},this._setResult=function(n,e){var r;t._state===p.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==p.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===p.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===p.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var y=c()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=a().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===y?_:{nowSeconds:function(){return(y.timeOrigin+y.now())/1e3}},E=(_.nowSeconds.bind(_),g.nowSeconds.bind(g),function(){var n=a().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),require("localforage")),b=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.global=a(),this.maxStoredEvents=t.maxStoredEvents||30,this.offlineEventStore=E.createInstance({name:"sentry/offlineEventStore"})}return n.prototype.setupOnce=function(t,e){var r=this;this.hub=e(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){r._sendEvents().catch(function(){d.warn("could not send cached events")})}),t(function(t){return r.hub&&r.hub.getIntegration(n)&&"navigator"in r.global&&"onLine"in r.global.navigator&&!r.global.navigator.onLine?(r._cacheEvent(t).then(function(n){return r._enforceMaxEvents()}).catch(function(n){d.warn("could not cache event while offline")}),null):t}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){d.warn("could not send cached events")})},n.prototype._cacheEvent=function(n){return r(this,void 0,void 0,function(){return o(this,function(t){return[2,this.offlineEventStore.setItem(f(),n)]})})},n.prototype._enforceMaxEvents=function(){return r(this,void 0,void 0,function(){var n,t=this;return o(this,function(e){return n=[],[2,this.offlineEventStore.iterate(function(t,e,r){n.push({cacheKey:e,event:t})}).then(function(){return t._purgeEvents(n.sort(function(n,t){return(t.event.timestamp||0)-(n.event.timestamp||0)}).slice(t.maxStoredEvents<n.length?t.maxStoredEvents:n.length).map(function(n){return n.cacheKey}))}).catch(function(n){d.warn("could not enforce max events")})]})})},n.prototype._purgeEvent=function(n){return r(this,void 0,void 0,function(){return o(this,function(t){return[2,this.offlineEventStore.removeItem(n)]})})},n.prototype._purgeEvents=function(n){return r(this,void 0,void 0,function(){var t=this;return o(this,function(e){return[2,Promise.all(n.map(function(n){return t._purgeEvent(n)})).then()]})})},n.prototype._sendEvents=function(){return r(this,void 0,void 0,function(){var n=this;return o(this,function(t){return[2,this.offlineEventStore.iterate(function(t,e,r){n.hub?(n.hub.captureEvent(t),n._purgeEvent(e).catch(function(n){d.warn("could not purge event from cache")})):d.warn("no hub found - could not send cached event")})]})})},n.id="Offline",n}();for(var w in t.Offline=b,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,w)&&(n.Sentry.Integrations[w]=t[w])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};function r(n,t,e,r){return new(e||(e=Promise))(function(o,i){function c(n){try{a(r.next(n))}catch(n){i(n)}}function u(n){try{a(r.throw(n))}catch(n){i(n)}}function a(n){n.done?o(n.value):new e(function(t){t(n.value)}).then(c,u)}a((r=r.apply(n,t||[])).next())})}function o(n,t){var e,r,o,i,c={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(e)throw new TypeError("Generator is already executing.");for(;c;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(n,c)}catch(n){i=[6,n],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,a(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function f(){var n=u(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var r=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function s(n){var t=u();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var l=u(),h="Sentry Logger ",v=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&s(function(){l.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&s(function(){l.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&s(function(){l.console.error(h+"[Error]: "+n.join(" "))})},n}();l.__SENTRY__=l.__SENTRY__||{};var p,d=l.__SENTRY__.logger||(l.__SENTRY__.logger=new v);u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(p||(p={}));!function(){function n(n){var t=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(p.RESOLVED,n)},this._reject=function(n){t._setResult(p.REJECTED,n)},this._setResult=function(n,e){var r;t._state===p.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==p.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===p.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===p.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var y=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===y?_:{nowSeconds:function(){return(y.timeOrigin+y.now())/1e3}},E=(_.nowSeconds.bind(_),g.nowSeconds.bind(g),function(){var n=u().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),require("localforage")),b=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.global=u(),this.maxStoredEvents=t.maxStoredEvents||30,this.offlineEventStore=E.createInstance({name:"sentry/offlineEventStore"})}return n.prototype.setupOnce=function(t,e){var r=this;this.hub=e(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){r._sendEvents().catch(function(){d.warn("could not send cached events")})}),t(function(t){return r.hub&&r.hub.getIntegration(n)&&"navigator"in r.global&&"onLine"in r.global.navigator&&!r.global.navigator.onLine?(r._cacheEvent(t).then(function(n){return r._enforceMaxEvents()}).catch(function(n){d.warn("could not cache event while offline")}),null):t}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){d.warn("could not send cached events")})},n.prototype._cacheEvent=function(n){return r(this,void 0,void 0,function(){return o(this,function(t){return[2,this.offlineEventStore.setItem(f(),n)]})})},n.prototype._enforceMaxEvents=function(){return r(this,void 0,void 0,function(){var n,t=this;return o(this,function(e){return n=[],[2,this.offlineEventStore.iterate(function(t,e,r){n.push({cacheKey:e,event:t})}).then(function(){return t._purgeEvents(n.sort(function(n,t){return(t.event.timestamp||0)-(n.event.timestamp||0)}).slice(t.maxStoredEvents<n.length?t.maxStoredEvents:n.length).map(function(n){return n.cacheKey}))}).catch(function(n){d.warn("could not enforce max events")})]})})},n.prototype._purgeEvent=function(n){return r(this,void 0,void 0,function(){return o(this,function(t){return[2,this.offlineEventStore.removeItem(n)]})})},n.prototype._purgeEvents=function(n){return r(this,void 0,void 0,function(){var t=this;return o(this,function(e){return[2,Promise.all(n.map(function(n){return t._purgeEvent(n)})).then()]})})},n.prototype._sendEvents=function(){return r(this,void 0,void 0,function(){var n=this;return o(this,function(t){return[2,this.offlineEventStore.iterate(function(t,e,r){n.hub?(n.hub.captureEvent(t),n._purgeEvent(e).catch(function(n){d.warn("could not purge event from cache")})):d.warn("no hub found - could not send cached event")})]})})},n.id="Offline",n}();for(var w in t.Offline=b,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,w)&&(n.Sentry.Integrations[w]=t[w])}(window); | ||
//# sourceMappingURL=offline.min.js.map |
@@ -56,2 +56,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -96,36 +120,2 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -234,2 +224,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -236,0 +237,0 @@ /** SyncPromise internal states */ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function a(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function c(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=a(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);var l;a();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var p,h=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=a().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===h?_:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}};_.nowSeconds.bind(_),d.nowSeconds.bind(d),function(){var n=a().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}();!function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(p||(p={}));var y=function(){function n(t){void 0===t&&(t={types:[p.Crash,p.Deprecation,p.Intervention]}),this._options=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in a()&&(this._getCurrentHub=t,new(a().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},n.prototype.handler=function(t){var e,r,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(n)){var i=function(n){o.withScope(function(t){t.setExtra("url",n.url);var e="ReportingObserver ["+n.type+"]",r="No details available";if(n.body){var i,a={};for(var c in n.body)a[c]=n.body[c];if(t.setExtra("body",a),n.type===p.Crash)r=[(i=n.body).crashId||"",i.reason||""].join(" ").trim()||r;else r=(i=n.body).message||r}o.captureMessage(e+": "+r)})};try{for(var a=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],e=0;return t?t.call(n):{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}}}(t),c=a.next();!c.done;c=a.next()){i(c.value)}}catch(n){e={error:n}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},n.id="ReportingObserver",n}();for(var v in t.ReportingObserver=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,v)&&(n.Sentry.Integrations[v]=t[v])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var o={};function i(){return r()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,a(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function c(n){var t=i();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=i(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);var l;i();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var p,h=r()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=i().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===h?_:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}};_.nowSeconds.bind(_),d.nowSeconds.bind(d),function(){var n=i().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}();!function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(p||(p={}));var y=function(){function n(t){void 0===t&&(t={types:[p.Crash,p.Deprecation,p.Intervention]}),this._options=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in i()&&(this._getCurrentHub=t,new(i().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},n.prototype.handler=function(t){var e,r,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(n)){var i=function(n){o.withScope(function(t){t.setExtra("url",n.url);var e="ReportingObserver ["+n.type+"]",r="No details available";if(n.body){var i,a={};for(var c in n.body)a[c]=n.body[c];if(t.setExtra("body",a),n.type===p.Crash)r=[(i=n.body).crashId||"",i.reason||""].join(" ").trim()||r;else r=(i=n.body).message||r}o.captureMessage(e+": "+r)})};try{for(var a=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],e=0;return t?t.call(n):{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}}}(t),c=a.next();!c.done;c=a.next()){i(c.value)}}catch(n){e={error:n}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},n.id="ReportingObserver",n}();for(var v in t.ReportingObserver=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,v)&&(n.Sentry.Integrations[v]=t[v])}(window); | ||
//# sourceMappingURL=reportingobserver.min.js.map |
@@ -56,2 +56,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -96,36 +120,2 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -224,2 +214,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript | ||
@@ -226,0 +227,0 @@ // https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-builtins/master/src/es6/path.js |
@@ -1,2 +0,2 @@ | ||
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,o(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function a(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function s(t){var e=a();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=a(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),a();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=i()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=a().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=a().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename="app:///"+i}return t},e.root&&(this._root=e.root),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window); | ||
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,a(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function s(t){var e=c();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=c(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),c();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=o()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=c().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=c().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename="app:///"+i}return t},e.root&&(this._root=e.root),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window); | ||
//# sourceMappingURL=rewriteframes.min.js.map |
@@ -79,2 +79,26 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -119,36 +143,2 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -247,2 +237,13 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript | ||
@@ -249,0 +250,0 @@ // Split a filename into [root, dir, basename, ext], unix version |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,i(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function s(){return a()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function u(t){var n=s();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var p=s(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.error(f+"[Error]: "+t.join(" "))})},t}();p.__SENTRY__=p.__SENTRY__||{};var _,h=p.__SENTRY__.logger||(p.__SENTRY__.logger=new l),g=(s(),/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/);function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(_||(_={}));!function(){function t(t){var n=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(_.RESOLVED,t)},this._reject=function(t){n._setResult(_.REJECTED,t)},this._setResult=function(t,o){var e;n._state===_.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==_.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===_.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===_.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=a()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=s().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},E=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),S=(function(){var t=s().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),{id:"Tracing"}),w={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=E();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(S);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=E(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),p=t.$options[s];Array.isArray(p)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],p):t.$options[s]="function"==typeof p?[u,p]:[u]}):h.warn("Unknown hook: "+c)})}},h.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=e(e({Vue:s().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):h.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(S);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(S)||t().getIntegration(w)?n(this,t):h.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){h.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+(r&&r.toString())+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function c(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}var s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,s(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function u(t){var n=c();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var p=c(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.error(f+"[Error]: "+t.join(" "))})},t}();p.__SENTRY__=p.__SENTRY__||{};var _=p.__SENTRY__.logger||(p.__SENTRY__.logger=new l);c();var h,g=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(h||(h={}));!function(){function t(t){var n=this;this._state=h.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(h.RESOLVED,t)},this._reject=function(t){n._setResult(h.REJECTED,t)},this._setResult=function(t,o){var e;n._state===h.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==h.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===h.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===h.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=i()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=c().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},E=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),S=(function(){var t=c().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),{id:"Tracing"}),w={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=E();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(S);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=E(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),p=t.$options[s];Array.isArray(p)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],p):t.$options[s]="function"==typeof p?[u,p]:[u]}):_.warn("Unknown hook: "+c)})}},_.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=e(e({Vue:c().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):_.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(S);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(S)||t().getIntegration(w)?n(this,t):_.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){_.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+(r&&r.toString())+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window); | ||
//# sourceMappingURL=vue.min.js.map |
{ | ||
"name": "@sentry/integrations", | ||
"version": "6.2.1", | ||
"version": "6.3.0-beta.0", | ||
"description": "Pluggable integrations that can be used to enhance JS SDKs", | ||
@@ -19,4 +19,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/types": "6.2.1", | ||
"@sentry/utils": "6.2.1", | ||
"@sentry/types": "6.3.0-beta.0", | ||
"@sentry/utils": "6.3.0-beta.0", | ||
"localforage": "^1.8.1", | ||
@@ -23,0 +23,0 @@ "tslib": "^1.9.3" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1979887
3
37
+ Added@sentry/types@6.3.0-beta.0(transitive)
+ Added@sentry/utils@6.3.0-beta.0(transitive)
- Removed@sentry/types@6.2.1(transitive)
- Removed@sentry/utils@6.2.1(transitive)
Updated@sentry/types@6.3.0-beta.0
Updated@sentry/utils@6.3.0-beta.0