kolibri-sentry-plugin 0.0.1__py2.py3-none-any.whl → 0.2.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kolibri_sentry_plugin/__init__.py +1 -1
- kolibri_sentry_plugin/build/kolibri_sentry_plugin.main_stats.json +25 -0
- kolibri_sentry_plugin/kolibri_plugin.py +10 -8
- kolibri_sentry_plugin/options.py +5 -0
- kolibri_sentry_plugin/settings.py +7 -4
- kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js +2 -0
- kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js.map +1 -0
- kolibri_sentry_plugin-0.2.0.dist-info/AUTHORS.rst +12 -0
- kolibri_sentry_plugin-0.2.0.dist-info/LICENSE +20 -0
- {kolibri_sentry_plugin-0.0.1.dist-info → kolibri_sentry_plugin-0.2.0.dist-info}/METADATA +14 -9
- kolibri_sentry_plugin-0.2.0.dist-info/RECORD +14 -0
- {kolibri_sentry_plugin-0.0.1.dist-info → kolibri_sentry_plugin-0.2.0.dist-info}/WHEEL +1 -1
- kolibri_sentry_plugin-0.2.0.dist-info/entry_points.txt +3 -0
- kolibri_sentry_plugin/build/kolibri_sentry_plugin_module_stats.json +0 -1
- kolibri_sentry_plugin/static/kolibri_sentry_plugin_module/kolibri_sentry_plugin_module-0.0.1.js +0 -2
- kolibri_sentry_plugin/static/kolibri_sentry_plugin_module/kolibri_sentry_plugin_module-0.0.1.js.map +0 -1
- kolibri_sentry_plugin-0.0.1.dist-info/DESCRIPTION.rst +0 -4
- kolibri_sentry_plugin-0.0.1.dist-info/RECORD +0 -13
- kolibri_sentry_plugin-0.0.1.dist-info/metadata.json +0 -1
- {kolibri_sentry_plugin-0.0.1.dist-info → kolibri_sentry_plugin-0.2.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Learning Equality
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,25 +1,30 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.1
|
2
2
|
Name: kolibri-sentry-plugin
|
3
|
-
Version: 0.0
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: A plugin to provide sentry integration for Kolibri
|
5
5
|
Home-page: https://github.com/learningequality/kolibri-sentry-plugin
|
6
6
|
Author: Learning Equality
|
7
7
|
Author-email: info@learningequality.org
|
8
8
|
License: MIT
|
9
|
-
Keywords:
|
9
|
+
Keywords: kolibri
|
10
10
|
Platform: UNKNOWN
|
11
11
|
Classifier: Development Status :: 2 - Pre-Alpha
|
12
12
|
Classifier: Intended Audience :: Developers
|
13
13
|
Classifier: License :: OSI Approved :: MIT License
|
14
14
|
Classifier: Natural Language :: English
|
15
|
-
Classifier: Programming Language :: Python :: 2
|
16
|
-
Classifier: Programming Language :: Python :: 2.7
|
17
15
|
Classifier: Programming Language :: Python :: 3
|
18
|
-
Classifier: Programming Language :: Python :: 3.
|
19
|
-
Classifier: Programming Language :: Python :: 3.
|
20
|
-
Classifier: Programming Language :: Python :: 3.
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
21
21
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
22
|
-
|
22
|
+
License-File: LICENSE
|
23
|
+
License-File: AUTHORS.rst
|
24
|
+
Requires-Dist: sentry-sdk==2.26.1
|
25
|
+
Provides-Extra: dev
|
26
|
+
Requires-Dist: pre-commit==4.2.0; extra == "dev"
|
27
|
+
|
23
28
|
|
24
29
|
A plugin that provides Sentry SDK integration for the frontend and backend
|
25
30
|
of Kolibri. See the `Github repo <https://github.com/learningequality/kolibri-sentry-plugin>`_ for more details.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
kolibri_sentry_plugin/__init__.py,sha256=Zn1KFblwuFHiDRdRAiRnDBRkbPttWh44jKa5zG2ov0E,22
|
2
|
+
kolibri_sentry_plugin/kolibri_plugin.py,sha256=YdlEQCaGsucccByirZjQAonGrSS9OKI0Crs39AuYTCc,826
|
3
|
+
kolibri_sentry_plugin/options.py,sha256=-B2yuJUfZNP6OkKuqCHyVth9hhwSJMrV_4PdnRMIjfY,619
|
4
|
+
kolibri_sentry_plugin/settings.py,sha256=bfDL94pZ6UNduHe3r_EyOgnVq4IKkkPD8QKB9d14Lxs,759
|
5
|
+
kolibri_sentry_plugin/build/kolibri_sentry_plugin.main_stats.json,sha256=fQSSFDYtCEMOo14xYGS9GjS9n-PAr_cG7morXjF6seA,1125
|
6
|
+
kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js,sha256=tRu4bk4PE6ywKZv2iEL14HEDELy28URc8Pip45LFU-g,343170
|
7
|
+
kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js.map,sha256=P6opjobZc0AQc4RgxqTFqlRmskpMrHeG4H1wPu0Pr6o,1109530
|
8
|
+
kolibri_sentry_plugin-0.2.0.dist-info/AUTHORS.rst,sha256=JIkaOZT-lv0AWVeVHQm3uTTNGg7Ug0moVheqjuIu6Es,229
|
9
|
+
kolibri_sentry_plugin-0.2.0.dist-info/LICENSE,sha256=LvWTq2-k7k5FryNssxEc2AAD6BJ37h2zR0wOsy6Zb1M,1084
|
10
|
+
kolibri_sentry_plugin-0.2.0.dist-info/METADATA,sha256=icZmnTjJgE9V_jbxwtYmB8fFxRCb_Jfijp-xsV_6q8w,1206
|
11
|
+
kolibri_sentry_plugin-0.2.0.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
12
|
+
kolibri_sentry_plugin-0.2.0.dist-info/entry_points.txt,sha256=XGoZ8_HU7sQ8ODkeIp5MB78xWpYBmJNVRjtnZhHfD-0,65
|
13
|
+
kolibri_sentry_plugin-0.2.0.dist-info/top_level.txt,sha256=qD0BShzHu8oxtOgqtr-wfDKYlWJjugyFS7QxwO0vo_Q,22
|
14
|
+
kolibri_sentry_plugin-0.2.0.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
{"status":"done","chunks":{"kolibri_sentry_plugin_module":[{"name":"kolibri_sentry_plugin_module-0.0.1.js","path":"/home/richard/github/kolibri-sentry-plugin/kolibri_sentry_plugin/static/kolibri_sentry_plugin_module/kolibri_sentry_plugin_module-0.0.1.js"},{"name":"kolibri_sentry_plugin_module-0.0.1.js.map","path":"/home/richard/github/kolibri-sentry-plugin/kolibri_sentry_plugin/static/kolibri_sentry_plugin_module/kolibri_sentry_plugin_module-0.0.1.js.map"}]},"messages":false}
|
kolibri_sentry_plugin/static/kolibri_sentry_plugin_module/kolibri_sentry_plugin_module-0.0.1.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=19)}([function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",function(){return __extends}),__webpack_require__.d(__webpack_exports__,"a",function(){return __assign}),__webpack_require__.d(__webpack_exports__,"c",function(){return __read}),__webpack_require__.d(__webpack_exports__,"d",function(){return __spread});var extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)};function __extends(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(t){for(var s,arguments$1=arguments,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments$1[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};function __read(o,n){var m="function"==typeof Symbol&&o[Symbol.iterator];if(!m)return o;var r,e,i=m.call(o),ar=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)ar.push(r.value)}catch(error){e={error:error}}finally{try{r&&!r.done&&(m=i.return)&&m.call(i)}finally{if(e)throw e.error}}return ar}function __spread(){for(var arguments$1=arguments,ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments$1[i]));return ar}},,function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process,global){function dynamicRequire(mod,request){return mod.require(request)}__webpack_require__.d(__webpack_exports__,"c",function(){return dynamicRequire}),__webpack_require__.d(__webpack_exports__,"e",function(){return getGlobalObject}),__webpack_require__.d(__webpack_exports__,"g",function(){return uuid4}),__webpack_require__.d(__webpack_exports__,"f",function(){return parseUrl}),__webpack_require__.d(__webpack_exports__,"d",function(){return getEventDescription}),__webpack_require__.d(__webpack_exports__,"b",function(){return consoleSandbox}),__webpack_require__.d(__webpack_exports__,"a",function(){return addExceptionTypeValue});var fallbackGlobalObject={};function getGlobalObject(){return"[object process]"===Object.prototype.toString.call(void 0!==process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:fallbackGlobalObject}function uuid4(){var global=getGlobalObject(),crypto=global.crypto||global.msCrypto;if(void 0!==crypto&&crypto.getRandomValues){var arr=new Uint16Array(8);crypto.getRandomValues(arr),arr[3]=4095&arr[3]|16384,arr[4]=16383&arr[4]|32768;var pad=function(num){for(var v=num.toString(16);v.length<4;)v="0"+v;return v};return pad(arr[0])+pad(arr[1])+pad(arr[2])+pad(arr[3])+pad(arr[4])+pad(arr[5])+pad(arr[6])+pad(arr[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=16*Math.random()|0;return("x"===c?r:3&r|8).toString(16)})}function parseUrl(url){if(!url)return{};var match=url.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!match)return{};var query=match[6]||"",fragment=match[8]||"";return{host:match[4],path:match[5],protocol:match[2],relative:match[5]+query+fragment}}function getEventDescription(event){if(event.message)return event.message;if(event.exception&&event.exception.values&&event.exception.values[0]){var exception=event.exception.values[0];return exception.type&&exception.value?exception.type+": "+exception.value:exception.type||exception.value||event.event_id||"<unknown>"}return event.event_id||"<unknown>"}function consoleSandbox(callback){var global=getGlobalObject();if(!("console"in global))return callback();var originalConsole=global.console,wrappedLevels={};["debug","info","warn","error","log","assert"].forEach(function(level){level in global.console&&originalConsole[level].__sentry__&&(wrappedLevels[level]=originalConsole[level].__sentry_wrapped__,originalConsole[level]=originalConsole[level].__sentry_original__)});var result=callback();return Object.keys(wrappedLevels).forEach(function(level){originalConsole[level]=wrappedLevels[level]}),result}function addExceptionTypeValue(event,value,type,mechanism){void 0===mechanism&&(mechanism={handled:!0,type:"generic"}),event.exception=event.exception||{},event.exception.values=event.exception.values||[],event.exception.values[0]=event.exception.values[0]||{},event.exception.values[0].value=event.exception.values[0].value||value||"",event.exception.values[0].type=event.exception.values[0].type||type||"Error",event.exception.values[0].mechanism=event.exception.values[0].mechanism||mechanism}}).call(this,__webpack_require__(20),__webpack_require__(10))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return captureException}),__webpack_require__.d(__webpack_exports__,"b",function(){return configureScope}),__webpack_require__.d(__webpack_exports__,"c",function(){return withScope});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_sentry_hub__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23);function callOnHub(method){for(var arguments$1=arguments,args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments$1[_i];var hub=Object(_sentry_hub__WEBPACK_IMPORTED_MODULE_1__.a)();if(hub&&hub[method])return hub[method].apply(hub,tslib__WEBPACK_IMPORTED_MODULE_0__.d(args));throw new Error("No hub defined or "+method+" was not found on the hub, please open a bug report.")}function captureException(exception){var syntheticException;try{throw new Error("Sentry syntheticException")}catch(exception){syntheticException=exception}return callOnHub("captureException",exception,{originalException:exception,syntheticException:syntheticException})}function configureScope(callback){callOnHub("configureScope",callback)}function withScope(callback){callOnHub("withScope",callback)}},function(module,__webpack_exports__,__webpack_require__){"use strict";function isError(wat){switch(Object.prototype.toString.call(wat)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return wat instanceof Error}}function isErrorEvent(wat){return"[object ErrorEvent]"===Object.prototype.toString.call(wat)}function isDOMError(wat){return"[object DOMError]"===Object.prototype.toString.call(wat)}function isDOMException(wat){return"[object DOMException]"===Object.prototype.toString.call(wat)}function isString(wat){return"[object String]"===Object.prototype.toString.call(wat)}function isPrimitive(wat){return null===wat||"object"!=typeof wat&&"function"!=typeof wat}function isPlainObject(wat){return"[object Object]"===Object.prototype.toString.call(wat)}function isRegExp(wat){return"[object RegExp]"===Object.prototype.toString.call(wat)}function isThenable(wat){return Boolean(wat&&wat.then&&"function"==typeof wat.then)}function isSyntheticEvent(wat){return isPlainObject(wat)&&"nativeEvent"in wat&&"preventDefault"in wat&&"stopPropagation"in wat}__webpack_require__.d(__webpack_exports__,"c",function(){return isError}),__webpack_require__.d(__webpack_exports__,"d",function(){return isErrorEvent}),__webpack_require__.d(__webpack_exports__,"a",function(){return isDOMError}),__webpack_require__.d(__webpack_exports__,"b",function(){return isDOMException}),__webpack_require__.d(__webpack_exports__,"h",function(){return isString}),__webpack_require__.d(__webpack_exports__,"f",function(){return isPrimitive}),__webpack_require__.d(__webpack_exports__,"e",function(){return isPlainObject}),__webpack_require__.d(__webpack_exports__,"g",function(){return isRegExp}),__webpack_require__.d(__webpack_exports__,"j",function(){return isThenable}),__webpack_require__.d(__webpack_exports__,"i",function(){return isSyntheticEvent})},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__.d(__webpack_exports__,"a",function(){return fill}),__webpack_require__.d(__webpack_exports__,"d",function(){return urlEncode}),__webpack_require__.d(__webpack_exports__,"c",function(){return normalizeToSize}),__webpack_require__.d(__webpack_exports__,"b",function(){return normalize});var _is__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_memo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17);function fill(source,name,replacement){if(name in source){var original=source[name],wrapped=replacement(original);if("function"==typeof wrapped)try{wrapped.prototype=wrapped.prototype||{},Object.defineProperties(wrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:original},__sentry_wrapped__:{enumerable:!1,value:wrapped}})}catch(_Oo){}source[name]=wrapped}}function urlEncode(object){return Object.keys(object).map(function(key){return encodeURIComponent(key)+"="+encodeURIComponent(object[key])}).join("&")}function jsonSize(value){return function(value){return~-encodeURI(value).split(/%..|./).length}(JSON.stringify(value))}function normalizeToSize(object,depth,maxSize){void 0===depth&&(depth=3),void 0===maxSize&&(maxSize=102400);var serialized=normalize(object,depth);return jsonSize(serialized)>maxSize?normalizeToSize(object,depth-1,maxSize):serialized}function normalizeValue(value,key){return"domain"===key&&"object"==typeof value&&value._events?"[Domain]":"domainEmitter"===key?"[DomainEmitter]":void 0!==global&&value===global?"[Global]":"undefined"!=typeof window&&value===window?"[Window]":"undefined"!=typeof document&&value===document?"[Document]":"undefined"!=typeof Event&&value instanceof Event?Object.getPrototypeOf(value)?value.constructor.name:"Event":Object(_is__WEBPACK_IMPORTED_MODULE_0__.i)(value)?"[SyntheticEvent]":Number.isNaN(value)?"[NaN]":void 0===value?"[undefined]":"function"==typeof value?"[Function: "+(value.name||"<unknown-function-name>")+"]":value}function walk(key,value,depth,memo){if(void 0===depth&&(depth=1/0),void 0===memo&&(memo=new _memo__WEBPACK_IMPORTED_MODULE_1__.a),0===depth)return function(value){var type=Object.prototype.toString.call(value);if("string"==typeof value)return value;if("[object Object]"===type)return"[Object]";if("[object Array]"===type)return"[Array]";var normalized=normalizeValue(value);return Object(_is__WEBPACK_IMPORTED_MODULE_0__.f)(normalized)?normalized:type}(value);if(null!=value&&"function"==typeof value.toJSON)return value.toJSON();var normalized=normalizeValue(value,key);if(Object(_is__WEBPACK_IMPORTED_MODULE_0__.f)(normalized))return normalized;var source=Object(_is__WEBPACK_IMPORTED_MODULE_0__.c)(value)?function(error){var err={message:error.message,name:error.name,stack:error.stack};for(var i in error)Object.prototype.hasOwnProperty.call(error,i)&&(err[i]=error[i]);return err}(value):value,acc=Array.isArray(value)?[]:{};if(memo.memoize(value))return"[Circular ~]";for(var innerKey in source)Object.prototype.hasOwnProperty.call(source,innerKey)&&(acc[innerKey]=walk(innerKey,source[innerKey],depth-1,memo));return memo.unmemoize(value),acc}function normalize(input,depth){try{return JSON.parse(JSON.stringify(input,function(key,value){return walk(key,value,depth)}))}catch(_oO){return"**non-serializable**"}}}).call(this,__webpack_require__(10))},,,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return Scope}),__webpack_require__.d(__webpack_exports__,"b",function(){return addGlobalEventProcessor});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_sentry_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(22),_sentry_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),_sentry_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_sentry_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_span__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18),Scope=function(){function Scope(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return Scope.prototype.addScopeListener=function(callback){this._scopeListeners.push(callback)},Scope.prototype.addEventProcessor=function(callback){return this._eventProcessors.push(callback),this},Scope.prototype._notifyScopeListeners=function(){var _this=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout(function(){_this._scopeListeners.forEach(function(callback){callback(_this)}),_this._notifyingListeners=!1}))},Scope.prototype._notifyEventProcessors=function(processors,event,hint,index){var _this=this;return void 0===index&&(index=0),new _sentry_utils__WEBPACK_IMPORTED_MODULE_1__.a(function(resolve,reject){var processor=processors[index];if(null===event||"function"!=typeof processor)resolve(event);else{var result=processor(tslib__WEBPACK_IMPORTED_MODULE_0__.a({},event),hint);Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_2__.j)(result)?result.then(function(final){return _this._notifyEventProcessors(processors,final,hint,index+1).then(resolve)}).catch(reject):_this._notifyEventProcessors(processors,result,hint,index+1).then(resolve).catch(reject)}})},Scope.prototype.setUser=function(user){return this._user=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(user),this._notifyScopeListeners(),this},Scope.prototype.setTags=function(tags){return this._tags=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._tags,Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(tags)),this._notifyScopeListeners(),this},Scope.prototype.setTag=function(key,value){var _a;return this._tags=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._tags,((_a={})[key]=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(value),_a)),this._notifyScopeListeners(),this},Scope.prototype.setExtras=function(extra){return this._extra=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._extra,Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(extra)),this._notifyScopeListeners(),this},Scope.prototype.setExtra=function(key,extra){var _a;return this._extra=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._extra,((_a={})[key]=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(extra),_a)),this._notifyScopeListeners(),this},Scope.prototype.setFingerprint=function(fingerprint){return this._fingerprint=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(fingerprint),this._notifyScopeListeners(),this},Scope.prototype.setLevel=function(level){return this._level=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(level),this._notifyScopeListeners(),this},Scope.prototype.setTransaction=function(transaction){return this._transaction=transaction,this._notifyScopeListeners(),this},Scope.prototype.setContext=function(name,context){return this._context[name]=context?Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(context):void 0,this._notifyScopeListeners(),this},Scope.prototype.setSpan=function(span){return this._span=span,this._notifyScopeListeners(),this},Scope.prototype.startSpan=function(parentSpan){var span=new _span__WEBPACK_IMPORTED_MODULE_5__.a;return span.setParent(parentSpan),this.setSpan(span),span},Scope.prototype.getSpan=function(){return this._span},Scope.clone=function(scope){var newScope=new Scope;return Object.assign(newScope,scope,{_scopeListeners:[]}),scope&&(newScope._breadcrumbs=tslib__WEBPACK_IMPORTED_MODULE_0__.d(scope._breadcrumbs),newScope._tags=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},scope._tags),newScope._extra=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},scope._extra),newScope._context=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},scope._context),newScope._user=scope._user,newScope._level=scope._level,newScope._span=scope._span,newScope._transaction=scope._transaction,newScope._fingerprint=scope._fingerprint,newScope._eventProcessors=tslib__WEBPACK_IMPORTED_MODULE_0__.d(scope._eventProcessors)),newScope},Scope.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},Scope.prototype.addBreadcrumb=function(breadcrumb,maxBreadcrumbs){var timestamp=(new Date).getTime()/1e3,mergedBreadcrumb=tslib__WEBPACK_IMPORTED_MODULE_0__.a({timestamp:timestamp},breadcrumb);return this._breadcrumbs=void 0!==maxBreadcrumbs&&maxBreadcrumbs>=0?tslib__WEBPACK_IMPORTED_MODULE_0__.d(this._breadcrumbs,[Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(mergedBreadcrumb)]).slice(-maxBreadcrumbs):tslib__WEBPACK_IMPORTED_MODULE_0__.d(this._breadcrumbs,[Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.b)(mergedBreadcrumb)]),this._notifyScopeListeners(),this},Scope.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},Scope.prototype._applyFingerprint=function(event){event.fingerprint=event.fingerprint?Array.isArray(event.fingerprint)?event.fingerprint:[event.fingerprint]:[],this._fingerprint&&(event.fingerprint=event.fingerprint.concat(this._fingerprint)),event.fingerprint&&!event.fingerprint.length&&delete event.fingerprint},Scope.prototype.applyToEvent=function(event,hint){return this._extra&&Object.keys(this._extra).length&&(event.extra=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._extra,event.extra)),this._tags&&Object.keys(this._tags).length&&(event.tags=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._tags,event.tags)),this._user&&Object.keys(this._user).length&&(event.user=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._user,event.user)),this._context&&Object.keys(this._context).length&&(event.contexts=tslib__WEBPACK_IMPORTED_MODULE_0__.a({},this._context,event.contexts)),this._level&&(event.level=this._level),this._transaction&&(event.transaction=this._transaction),this._span&&(event.contexts=event.contexts||{},event.contexts.trace=this._span),this._applyFingerprint(event),event.breadcrumbs=tslib__WEBPACK_IMPORTED_MODULE_0__.d(event.breadcrumbs||[],this._breadcrumbs),event.breadcrumbs=event.breadcrumbs.length>0?event.breadcrumbs:void 0,this._notifyEventProcessors(tslib__WEBPACK_IMPORTED_MODULE_0__.d(getGlobalEventProcessors(),this._eventProcessors),event,hint)},Scope}();function getGlobalEventProcessors(){var global=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_4__.e)();return global.__SENTRY__=global.__SENTRY__||{},global.__SENTRY__.globalEventProcessors=global.__SENTRY__.globalEventProcessors||[],global.__SENTRY__.globalEventProcessors}function addGlobalEventProcessor(callback){getGlobalEventProcessors().push(callback)}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return logger});var _misc__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),global=Object(_misc__WEBPACK_IMPORTED_MODULE_0__.e)(),PREFIX="Sentry Logger ",Logger=function(){function Logger(){this._enabled=!1}return Logger.prototype.disable=function(){this._enabled=!1},Logger.prototype.enable=function(){this._enabled=!0},Logger.prototype.log=function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];this._enabled&&Object(_misc__WEBPACK_IMPORTED_MODULE_0__.b)(function(){global.console.log(PREFIX+"[Log]: "+args.join(" "))})},Logger.prototype.warn=function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];this._enabled&&Object(_misc__WEBPACK_IMPORTED_MODULE_0__.b)(function(){global.console.warn(PREFIX+"[Warn]: "+args.join(" "))})},Logger.prototype.error=function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];this._enabled&&Object(_misc__WEBPACK_IMPORTED_MODULE_0__.b)(function(){global.console.error(PREFIX+"[Error]: "+args.join(" "))})},Logger}();global.__SENTRY__=global.__SENTRY__||{};var logger=global.__SENTRY__.logger||(global.__SENTRY__.logger=new Logger)},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports){module.exports=kolibriGlobal.coreVue.vuex.store},function(module,exports){module.exports=kolibriGlobal},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){function getPluginData(){return(global.__kolibriPluginData||{}).kolibri_sentry_plugin_module||{}}__webpack_require__.d(__webpack_exports__,"a",function(){return getPluginData})}).call(this,__webpack_require__(10))},function(module,exports){module.exports=kolibriGlobal.lib.vue},function(module,exports){module.exports=kolibriGlobal.lib.logging},function(module,exports){module.exports=kolibriGlobal.utils.i18n},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return Memo});var Memo=function(){function Memo(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return Memo.prototype.memoize=function(obj){if(this._hasWeakSet)return!!this._inner.has(obj)||(this._inner.add(obj),!1);for(var i=0;i<this._inner.length;i++){if(this._inner[i]===obj)return!0}return this._inner.push(obj),!1},Memo.prototype.unmemoize=function(obj){if(this._hasWeakSet)this._inner.delete(obj);else for(var i=0;i<this._inner.length;i++)if(this._inner[i]===obj){this._inner.splice(i,1);break}},Memo}()},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return Span});var _sentry_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),TRACEPARENT_REGEXP=/^[ \t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \t]*$/,Span=function(){function Span(_traceId,_spanId,_sampled,_parent){void 0===_traceId&&(_traceId=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_0__.g)()),void 0===_spanId&&(_spanId=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_0__.g)().substring(16)),this._traceId=_traceId,this._spanId=_spanId,this._sampled=_sampled,this._parent=_parent}return Span.prototype.setParent=function(parent){return this._parent=parent,this},Span.prototype.setSampled=function(sampled){return this._sampled=sampled,this},Span.fromTraceparent=function(traceparent){var matches=traceparent.match(TRACEPARENT_REGEXP);if(matches){var sampled=void 0;"1"===matches[3]?sampled=!0:"0"===matches[3]&&(sampled=!1);var parent_1=new Span(matches[1],matches[2],sampled);return new Span(matches[1],void 0,sampled,parent_1)}},Span.prototype.toTraceparent=function(){var sampled="";return!0===this._sampled?sampled="-1":!1===this._sampled&&(sampled="-0"),this._traceId+"-"+this._spanId+sampled},Span.prototype.toJSON=function(){return{parent:this._parent&&this._parent.toJSON()||void 0,sampled:this._sampled,span_id:this._spanId,trace_id:this._traceId}},Span}()},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(__filename){var _sentry_browser__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(25),_sentry_browser__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_sentry_integrations__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(24),kolibri__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),kolibri__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(kolibri__WEBPACK_IMPORTED_MODULE_3__),kolibri_utils_getPluginData__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(13),kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(14),kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5__),kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(15),kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_6__),kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(11),kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_7__),kolibri_utils_i18n__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(16),logging=kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_6___default.a.getLogger(__filename),pluginData=Object(kolibri_utils_getPluginData__WEBPACK_IMPORTED_MODULE_4__.a)();pluginData.sentryDSN&&(_sentry_browser__WEBPACK_IMPORTED_MODULE_0__.a({dsn:pluginData.sentryDSN,environment:pluginData.sentryEnv,release:kolibri__WEBPACK_IMPORTED_MODULE_3___default.a.version,integrations:[new _sentry_integrations__WEBPACK_IMPORTED_MODULE_2__.a({Vue:kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5___default.a})],beforeSend:function(event,hint){return logging.error("Sending error to Sentry:"),logging.error(event),logging.error(hint),event}}),_sentry_browser__WEBPACK_IMPORTED_MODULE_1__.b(function(scope){scope.setTag("lang",kolibri_utils_i18n__WEBPACK_IMPORTED_MODULE_8__.currentLanguage),scope.setTag("host",window.location.hostname)}),logging.warn("Sentry error logging is enabled - this makes console errors less readable"),kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_7___default.a.watch(function(state){return state.error},function(errorString){errorString&&_sentry_browser__WEBPACK_IMPORTED_MODULE_1__.a(errorString)}),kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_7___default.a.watch(function(state){return state.session},function(session){_sentry_browser__WEBPACK_IMPORTED_MODULE_1__.b(function(scope){scope.setUser({id:session.user_id,full_name:session.full_name,username:session.username,facility_id:session.facility_id,type:JSON.stringify(session.kind)})})}))}.call(this,"kolibri_sentry_plugin/assets/src/module.js")},function(module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,function(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}process.nextTick=function(fun){var arguments$1=arguments,args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments$1[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},function(module,exports){module.exports=function(originalModule){if(!originalModule.webpackPolyfill){var module=Object.create(originalModule);module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),Object.defineProperty(module,"exports",{enumerable:!0}),module.webpackPolyfill=1}return module}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return SyncPromise});var States,_is__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4);!function(States){States.PENDING="PENDING",States.RESOLVED="RESOLVED",States.REJECTED="REJECTED"}(States||(States={}));var SyncPromise=function(){function SyncPromise(callback){var _this=this;this._state=States.PENDING,this._handlers=[],this._resolve=function(value){_this._setResult(value,States.RESOLVED)},this._reject=function(reason){_this._setResult(reason,States.REJECTED)},this._setResult=function(value,state){_this._state===States.PENDING&&(Object(_is__WEBPACK_IMPORTED_MODULE_0__.j)(value)?value.then(_this._resolve,_this._reject):(_this._value=value,_this._state=state,_this._executeHandlers()))},this._executeHandlers=function(){_this._state!==States.PENDING&&(_this._state===States.REJECTED?_this._handlers.forEach(function(h){return h.onFail&&h.onFail(_this._value)}):_this._handlers.forEach(function(h){return h.onSuccess&&h.onSuccess(_this._value)}),_this._handlers=[])},this._attachHandler=function(handler){_this._handlers=_this._handlers.concat(handler),_this._executeHandlers()};try{callback(this._resolve,this._reject)}catch(e){this._reject(e)}}return SyncPromise.prototype.then=function(onfulfilled,onrejected){var _this=this;return new SyncPromise(function(resolve,reject){_this._attachHandler({onFail:function(reason){if(onrejected)try{return void resolve(onrejected(reason))}catch(e){return void reject(e)}else reject(reason)},onSuccess:function(result){if(onfulfilled)try{return void resolve(onfulfilled(result))}catch(e){return void reject(e)}else resolve(result)}})})},SyncPromise.prototype.catch=function(onFail){return this.then(function(val){return val},onFail)},SyncPromise.prototype.toString=function(){return"[object SyncPromise]"},SyncPromise.resolve=function(value){return new SyncPromise(function(resolve){resolve(value)})},SyncPromise.reject=function(reason){return new SyncPromise(function(_,reject){reject(reason)})},SyncPromise}()},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return getCurrentHub});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_sentry_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_sentry_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9),_scope__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8),API_VERSION=3,Hub=function(){function Hub(client,scope,_version){void 0===scope&&(scope=new _scope__WEBPACK_IMPORTED_MODULE_3__.a),void 0===_version&&(_version=API_VERSION),this._version=_version,this._stack=[],this._stack.push({client:client,scope:scope})}return Hub.prototype._invokeClient=function(method){for(var _a,arguments$1=arguments,args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments$1[_i];var top=this.getStackTop();top&&top.client&&top.client[method]&&(_a=top.client)[method].apply(_a,tslib__WEBPACK_IMPORTED_MODULE_0__.d(args,[top.scope]))},Hub.prototype.isOlderThan=function(version){return this._version<version},Hub.prototype.bindClient=function(client){this.getStackTop().client=client},Hub.prototype.pushScope=function(){var stack=this.getStack(),parentScope=stack.length>0?stack[stack.length-1].scope:void 0,scope=_scope__WEBPACK_IMPORTED_MODULE_3__.a.clone(parentScope);return this.getStack().push({client:this.getClient(),scope:scope}),scope},Hub.prototype.popScope=function(){return void 0!==this.getStack().pop()},Hub.prototype.withScope=function(callback){var scope=this.pushScope();try{callback(scope)}finally{this.popScope()}},Hub.prototype.getClient=function(){return this.getStackTop().client},Hub.prototype.getScope=function(){return this.getStackTop().scope},Hub.prototype.getStack=function(){return this._stack},Hub.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},Hub.prototype.captureException=function(exception,hint){var eventId=this._lastEventId=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_1__.g)(),finalHint=hint;if(!hint){var syntheticException=void 0;try{throw new Error("Sentry syntheticException")}catch(exception){syntheticException=exception}finalHint={originalException:exception,syntheticException:syntheticException}}return this._invokeClient("captureException",exception,tslib__WEBPACK_IMPORTED_MODULE_0__.a({},finalHint,{event_id:eventId})),eventId},Hub.prototype.captureMessage=function(message,level,hint){var eventId=this._lastEventId=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_1__.g)(),finalHint=hint;if(!hint){var syntheticException=void 0;try{throw new Error(message)}catch(exception){syntheticException=exception}finalHint={originalException:message,syntheticException:syntheticException}}return this._invokeClient("captureMessage",message,level,tslib__WEBPACK_IMPORTED_MODULE_0__.a({},finalHint,{event_id:eventId})),eventId},Hub.prototype.captureEvent=function(event,hint){var eventId=this._lastEventId=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_1__.g)();return this._invokeClient("captureEvent",event,tslib__WEBPACK_IMPORTED_MODULE_0__.a({},hint,{event_id:eventId})),eventId},Hub.prototype.lastEventId=function(){return this._lastEventId},Hub.prototype.addBreadcrumb=function(breadcrumb,hint){var top=this.getStackTop();if(top.scope&&top.client){var _a=top.client.getOptions&&top.client.getOptions()||{},_b=_a.beforeBreadcrumb,beforeBreadcrumb=void 0===_b?null:_b,_c=_a.maxBreadcrumbs,maxBreadcrumbs=void 0===_c?30:_c;if(!(maxBreadcrumbs<=0)){var timestamp=(new Date).getTime()/1e3,mergedBreadcrumb=tslib__WEBPACK_IMPORTED_MODULE_0__.a({timestamp:timestamp},breadcrumb),finalBreadcrumb=beforeBreadcrumb?Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_1__.b)(function(){return beforeBreadcrumb(mergedBreadcrumb,hint)}):mergedBreadcrumb;null!==finalBreadcrumb&&top.scope.addBreadcrumb(finalBreadcrumb,Math.min(maxBreadcrumbs,100))}}},Hub.prototype.setUser=function(user){var top=this.getStackTop();top.scope&&top.scope.setUser(user)},Hub.prototype.setTags=function(tags){var top=this.getStackTop();top.scope&&top.scope.setTags(tags)},Hub.prototype.setExtras=function(extras){var top=this.getStackTop();top.scope&&top.scope.setExtras(extras)},Hub.prototype.setTag=function(key,value){var top=this.getStackTop();top.scope&&top.scope.setTag(key,value)},Hub.prototype.setExtra=function(key,extra){var top=this.getStackTop();top.scope&&top.scope.setExtra(key,extra)},Hub.prototype.setContext=function(name,context){var top=this.getStackTop();top.scope&&top.scope.setContext(name,context)},Hub.prototype.configureScope=function(callback){var top=this.getStackTop();top.scope&&top.client&&callback(top.scope)},Hub.prototype.run=function(callback){var oldHub=makeMain(this);try{callback(this)}finally{makeMain(oldHub)}},Hub.prototype.getIntegration=function(integration){var client=this.getClient();if(!client)return null;try{return client.getIntegration(integration)}catch(_oO){return _sentry_utils__WEBPACK_IMPORTED_MODULE_2__.a.warn("Cannot retrieve integration "+integration.id+" from the current Hub"),null}},Hub.prototype.traceHeaders=function(){var top=this.getStackTop();if(top.scope&&top.client){var span=top.scope.getSpan();if(span)return{"sentry-trace":span.toTraceparent()}}return{}},Hub}();function getMainCarrier(){var carrier=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_1__.e)();return carrier.__SENTRY__=carrier.__SENTRY__||{hub:void 0},carrier}function makeMain(hub){var registry=getMainCarrier(),oldHub=getHubFromCarrier(registry);return setHubOnCarrier(registry,hub),oldHub}function getCurrentHub(){var registry=getMainCarrier();hasHubOnCarrier(registry)&&!getHubFromCarrier(registry).isOlderThan(API_VERSION)||setHubOnCarrier(registry,new Hub);try{var activeDomain=Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_1__.c)(module,"domain").active;if(!activeDomain)return getHubFromCarrier(registry);if(!hasHubOnCarrier(activeDomain)||getHubFromCarrier(activeDomain).isOlderThan(API_VERSION)){var registryHubTopStack=getHubFromCarrier(registry).getStackTop();setHubOnCarrier(activeDomain,new Hub(registryHubTopStack.client,_scope__WEBPACK_IMPORTED_MODULE_3__.a.clone(registryHubTopStack.scope)))}return getHubFromCarrier(activeDomain)}catch(_Oo){return getHubFromCarrier(registry)}}function hasHubOnCarrier(carrier){return!!(carrier&&carrier.__SENTRY__&&carrier.__SENTRY__.hub)}function getHubFromCarrier(carrier){return carrier&&carrier.__SENTRY__&&carrier.__SENTRY__.hub?carrier.__SENTRY__.hub:(carrier.__SENTRY__=carrier.__SENTRY__||{},carrier.__SENTRY__.hub=new Hub,carrier.__SENTRY__.hub)}function setHubOnCarrier(carrier,hub){return!!carrier&&(carrier.__SENTRY__=carrier.__SENTRY__||{},carrier.__SENTRY__.hub=hub,!0)}}).call(this,__webpack_require__(21)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return Vue});var _sentry_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_sentry_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),_sentry_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),Vue=function(){function Vue(options){void 0===options&&(options={}),this.name=Vue.id,this._attachProps=!0,this._Vue=options.Vue||Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_0__.e)().Vue,!1===options.attachProps&&(this._attachProps=!1)}return Vue.prototype._formatComponentName=function(vm){if(vm.$root===vm)return"root instance";var name=vm._isVue?vm.$options.name||vm.$options._componentTag:vm.name;return(name?"component <"+name+">":"anonymous component")+(vm._isVue&&vm.$options.__file?" at "+vm.$options.__file:"")},Vue.prototype.setupOnce=function(_,getCurrentHub){var _this=this;if(this._Vue&&this._Vue.config){var oldOnError=this._Vue.config.errorHandler;this._Vue.config.errorHandler=function(error,vm,info){var metadata={};Object(_sentry_utils__WEBPACK_IMPORTED_MODULE_2__.e)(vm)&&(metadata.componentName=_this._formatComponentName(vm),_this._attachProps&&(metadata.propsData=vm.$options.propsData)),void 0!==info&&(metadata.lifecycleHook=info),getCurrentHub().getIntegration(Vue)&&setTimeout(function(){getCurrentHub().withScope(function(scope){scope.setContext("vue",metadata),getCurrentHub().captureException(error)})}),"function"==typeof oldOnError&&oldOnError.call(_this._Vue,error,vm,info)}}else _sentry_utils__WEBPACK_IMPORTED_MODULE_1__.a.error("VueIntegration is missing a Vue instance")},Vue.id="Vue",Vue}()},function(module,__webpack_exports__,__webpack_require__){"use strict";var originalFunctionToString,integrations_namespaceObject={};__webpack_require__.r(integrations_namespaceObject),__webpack_require__.d(integrations_namespaceObject,"FunctionToString",function(){return FunctionToString}),__webpack_require__.d(integrations_namespaceObject,"InboundFilters",function(){return inboundfilters_InboundFilters});var FunctionToString=function(){function FunctionToString(){this.name=FunctionToString.id}return FunctionToString.prototype.setupOnce=function(){originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var context=this.__sentry__?this.__sentry_original__:this;return originalFunctionToString.apply(context,args)}},FunctionToString.id="FunctionToString",FunctionToString}(),tslib_es6=__webpack_require__(0),esm_scope=__webpack_require__(8),esm_hub=__webpack_require__(23),logger=__webpack_require__(9),misc=__webpack_require__(2),is=__webpack_require__(4);function truncate(str,max){return void 0===max&&(max=0),"string"!=typeof str||0===max?str:str.length<=max?str:str.substr(0,max)+"..."}function safeJoin(input,delimiter){if(!Array.isArray(input))return"";for(var output=[],i=0;i<input.length;i++){var value=input[i];try{output.push(String(value))}catch(e){output.push("[value cannot be serialized]")}}return output.join(delimiter)}function keysToEventMessage(keys,maxLength){if(void 0===maxLength&&(maxLength=40),!keys.length)return"[object has no keys]";if(keys[0].length>=maxLength)return truncate(keys[0],maxLength);for(var includedKeys=keys.length;includedKeys>0;includedKeys--){var serialized=keys.slice(0,includedKeys).join(", ");if(!(serialized.length>maxLength))return includedKeys===keys.length?serialized:truncate(serialized,maxLength)}return""}function isMatchingPattern(value,pattern){return Object(is.g)(pattern)?pattern.test(value):"string"==typeof pattern&&value.includes(pattern)}var DEFAULT_IGNORE_ERRORS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],inboundfilters_InboundFilters=function(){function InboundFilters(_options){void 0===_options&&(_options={}),this._options=_options,this.name=InboundFilters.id}return InboundFilters.prototype.setupOnce=function(){Object(esm_scope.b)(function(event){var hub=Object(esm_hub.a)();if(!hub)return event;var self=hub.getIntegration(InboundFilters);if(self){var client=hub.getClient(),clientOptions=client?client.getOptions():{},options=self._mergeOptions(clientOptions);if(self._shouldDropEvent(event,options))return null}return event})},InboundFilters.prototype._shouldDropEvent=function(event,options){return this._isSentryError(event,options)?(logger.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(misc.d)(event)),!0):this._isIgnoredError(event,options)?(logger.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(misc.d)(event)),!0):this._isBlacklistedUrl(event,options)?(logger.a.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(misc.d)(event)+".\nUrl: "+this._getEventFilterUrl(event)),!0):!this._isWhitelistedUrl(event,options)&&(logger.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(misc.d)(event)+".\nUrl: "+this._getEventFilterUrl(event)),!0)},InboundFilters.prototype._isSentryError=function(event,options){if(void 0===options&&(options={}),!options.ignoreInternal)return!1;try{return"SentryError"===event.exception.values[0].type}catch(_oO){return!1}},InboundFilters.prototype._isIgnoredError=function(event,options){return void 0===options&&(options={}),!(!options.ignoreErrors||!options.ignoreErrors.length)&&this._getPossibleEventMessages(event).some(function(message){return options.ignoreErrors.some(function(pattern){return isMatchingPattern(message,pattern)})})},InboundFilters.prototype._isBlacklistedUrl=function(event,options){if(void 0===options&&(options={}),!options.blacklistUrls||!options.blacklistUrls.length)return!1;var url=this._getEventFilterUrl(event);return!!url&&options.blacklistUrls.some(function(pattern){return isMatchingPattern(url,pattern)})},InboundFilters.prototype._isWhitelistedUrl=function(event,options){if(void 0===options&&(options={}),!options.whitelistUrls||!options.whitelistUrls.length)return!0;var url=this._getEventFilterUrl(event);return!url||options.whitelistUrls.some(function(pattern){return isMatchingPattern(url,pattern)})},InboundFilters.prototype._mergeOptions=function(clientOptions){return void 0===clientOptions&&(clientOptions={}),{blacklistUrls:tslib_es6.d(this._options.blacklistUrls||[],clientOptions.blacklistUrls||[]),ignoreErrors:tslib_es6.d(this._options.ignoreErrors||[],clientOptions.ignoreErrors||[],DEFAULT_IGNORE_ERRORS),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:tslib_es6.d(this._options.whitelistUrls||[],clientOptions.whitelistUrls||[])}},InboundFilters.prototype._getPossibleEventMessages=function(event){if(event.message)return[event.message];if(event.exception)try{var _a=event.exception.values[0],type=_a.type,value=_a.value;return[""+value,type+": "+value]}catch(oO){return logger.a.error("Cannot extract message for event "+Object(misc.d)(event)),[]}return[]},InboundFilters.prototype._getEventFilterUrl=function(event){try{if(event.stacktrace){var frames_1=event.stacktrace.frames;return frames_1[frames_1.length-1].filename}if(event.exception){var frames_2=event.exception.values[0].stacktrace.frames;return frames_2[frames_2.length-1].filename}return null}catch(oO){return logger.a.error("Cannot extract url for event "+Object(misc.d)(event)),null}},InboundFilters.id="InboundFilters",InboundFilters}();var object=__webpack_require__(5),setPrototypeOf=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(obj,proto){return obj.__proto__=proto,obj}:function(obj,proto){for(var prop in proto)obj.hasOwnProperty(prop)||(obj[prop]=proto[prop]);return obj});var error_SentryError=function(_super){function SentryError(message){var _newTarget=this.constructor,_this=_super.call(this,message)||this;return _this.message=message,_this.name=_newTarget.prototype.constructor.name,setPrototypeOf(_this,_newTarget.prototype),_this}return tslib_es6.b(SentryError,_super),SentryError}(Error),DSN_REGEX=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,dsn_Dsn=function(){function Dsn(from){"string"==typeof from?this._fromString(from):this._fromComponents(from),this._validate()}return Dsn.prototype.toString=function(withPassword){void 0===withPassword&&(withPassword=!1);var _a=this,host=_a.host,path=_a.path,pass=_a.pass,port=_a.port,projectId=_a.projectId;return _a.protocol+"://"+_a.user+(withPassword&&pass?":"+pass:"")+"@"+host+(port?":"+port:"")+"/"+(path?path+"/":path)+projectId},Dsn.prototype._fromString=function(str){var match=DSN_REGEX.exec(str);if(!match)throw new error_SentryError("Invalid Dsn");var _a=tslib_es6.c(match.slice(1),6),protocol=_a[0],user=_a[1],_b=_a[2],pass=void 0===_b?"":_b,host=_a[3],_c=_a[4],port=void 0===_c?"":_c,path="",projectId=_a[5],split=projectId.split("/");split.length>1&&(path=split.slice(0,-1).join("/"),projectId=split.pop()),Object.assign(this,{host:host,pass:pass,path:path,projectId:projectId,port:port,protocol:protocol,user:user})},Dsn.prototype._fromComponents=function(components){this.protocol=components.protocol,this.user=components.user,this.pass=components.pass||"",this.host=components.host,this.port=components.port||"",this.path=components.path||"",this.projectId=components.projectId},Dsn.prototype._validate=function(){var _this=this;if(["protocol","user","host","projectId"].forEach(function(component){if(!_this[component])throw new error_SentryError("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new error_SentryError("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new error_SentryError("Invalid Dsn")},Dsn}(),api_API=function(){function API(dsn){this.dsn=dsn,this._dsnObject=new dsn_Dsn(dsn)}return API.prototype.getDsn=function(){return this._dsnObject},API.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},API.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var auth={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(object.d)(auth)},API.prototype._getBaseUrl=function(){var dsn=this._dsnObject,protocol=dsn.protocol?dsn.protocol+":":"",port=dsn.port?":"+dsn.port:"";return protocol+"//"+dsn.host+port},API.prototype.getStoreEndpointPath=function(){var dsn=this._dsnObject;return(dsn.path?"/"+dsn.path:"")+"/api/"+dsn.projectId+"/store/"},API.prototype.getRequestHeaders=function(clientName,clientVersion){var dsn=this._dsnObject,header=["Sentry sentry_version=7"];return header.push("sentry_timestamp="+(new Date).getTime()),header.push("sentry_client="+clientName+"/"+clientVersion),header.push("sentry_key="+dsn.user),dsn.pass&&header.push("sentry_secret="+dsn.pass),{"Content-Type":"application/json","X-Sentry-Auth":header.join(", ")}},API.prototype.getReportDialogEndpoint=function(dialogOptions){void 0===dialogOptions&&(dialogOptions={});var dsn=this._dsnObject,endpoint=this._getBaseUrl()+(dsn.path?"/"+dsn.path:"")+"/api/embed/error-page/",encodedOptions=[];for(var key in encodedOptions.push("dsn="+dsn.toString()),dialogOptions)if("user"===key){if(!dialogOptions.user)continue;dialogOptions.user.name&&encodedOptions.push("name="+encodeURIComponent(dialogOptions.user.name)),dialogOptions.user.email&&encodedOptions.push("email="+encodeURIComponent(dialogOptions.user.email))}else encodedOptions.push(encodeURIComponent(key)+"="+encodeURIComponent(dialogOptions[key]));return encodedOptions.length?endpoint+"?"+encodedOptions.join("&"):endpoint},API}(),syncpromise=__webpack_require__(22),installedIntegrations=[];function setupIntegrations(options){var integrations={};return function(options){var defaultIntegrations=options.defaultIntegrations&&tslib_es6.d(options.defaultIntegrations)||[],userIntegrations=options.integrations,integrations=[];if(Array.isArray(userIntegrations)){var userIntegrationsNames_1=userIntegrations.map(function(i){return i.name}),pickedIntegrationsNames_1=[];defaultIntegrations.forEach(function(defaultIntegration){-1===userIntegrationsNames_1.indexOf(defaultIntegration.name)&&-1===pickedIntegrationsNames_1.indexOf(defaultIntegration.name)&&(integrations.push(defaultIntegration),pickedIntegrationsNames_1.push(defaultIntegration.name))}),userIntegrations.forEach(function(userIntegration){-1===pickedIntegrationsNames_1.indexOf(userIntegration.name)&&(integrations.push(userIntegration),pickedIntegrationsNames_1.push(userIntegration.name))})}else{if("function"!=typeof userIntegrations)return tslib_es6.d(defaultIntegrations);integrations=userIntegrations(defaultIntegrations),integrations=Array.isArray(integrations)?integrations:[integrations]}return integrations}(options).forEach(function(integration){integrations[integration.name]=integration,function(integration){-1===installedIntegrations.indexOf(integration.name)&&(integration.setupOnce(esm_scope.b,esm_hub.a),installedIntegrations.push(integration.name),logger.a.log("Integration installed: "+integration.name))}(integration)}),integrations}var Status,baseclient_BaseClient=function(){function BaseClient(backendClass,options){this._processing=!1,this._backend=new backendClass(options),this._options=options,options.dsn&&(this._dsn=new dsn_Dsn(options.dsn)),this._integrations=setupIntegrations(this._options)}return BaseClient.prototype.captureException=function(exception,hint,scope){var _this=this,eventId=hint&&hint.event_id;return this._processing=!0,this._getBackend().eventFromException(exception,hint).then(function(event){return _this._processEvent(event,hint,scope)}).then(function(finalEvent){eventId=finalEvent&&finalEvent.event_id,_this._processing=!1}).catch(function(reason){logger.a.error(reason),_this._processing=!1}),eventId},BaseClient.prototype.captureMessage=function(message,level,hint,scope){var _this=this,eventId=hint&&hint.event_id;return this._processing=!0,(Object(is.f)(message)?this._getBackend().eventFromMessage(""+message,level,hint):this._getBackend().eventFromException(message,hint)).then(function(event){return _this._processEvent(event,hint,scope)}).then(function(finalEvent){eventId=finalEvent&&finalEvent.event_id,_this._processing=!1}).catch(function(reason){logger.a.error(reason),_this._processing=!1}),eventId},BaseClient.prototype.captureEvent=function(event,hint,scope){var _this=this,eventId=hint&&hint.event_id;return this._processing=!0,this._processEvent(event,hint,scope).then(function(finalEvent){eventId=finalEvent&&finalEvent.event_id,_this._processing=!1}).catch(function(reason){logger.a.error(reason),_this._processing=!1}),eventId},BaseClient.prototype.getDsn=function(){return this._dsn},BaseClient.prototype.getOptions=function(){return this._options},BaseClient.prototype.flush=function(timeout){var _this=this;return this._isClientProcessing(timeout).then(function(status){return clearInterval(status.interval),_this._getBackend().getTransport().close(timeout).then(function(transportFlushed){return status.ready&&transportFlushed})})},BaseClient.prototype.close=function(timeout){var _this=this;return this.flush(timeout).then(function(result){return _this.getOptions().enabled=!1,result})},BaseClient.prototype.getIntegrations=function(){return this._integrations||{}},BaseClient.prototype.getIntegration=function(integration){try{return this._integrations[integration.id]||null}catch(_oO){return logger.a.warn("Cannot retrieve integration "+integration.id+" from the current Client"),null}},BaseClient.prototype._isClientProcessing=function(timeout){var _this=this;return new Promise(function(resolve){var ticked=0,interval=0;clearInterval(interval),interval=setInterval(function(){_this._processing?(ticked+=1,timeout&&ticked>=timeout&&resolve({interval:interval,ready:!1})):resolve({interval:interval,ready:!0})},1)})},BaseClient.prototype._getBackend=function(){return this._backend},BaseClient.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},BaseClient.prototype._prepareEvent=function(event,scope,hint){var _a=this.getOptions(),environment=_a.environment,release=_a.release,dist=_a.dist,_b=_a.maxValueLength,maxValueLength=void 0===_b?250:_b,prepared=tslib_es6.a({},event);void 0===prepared.environment&&void 0!==environment&&(prepared.environment=environment),void 0===prepared.release&&void 0!==release&&(prepared.release=release),void 0===prepared.dist&&void 0!==dist&&(prepared.dist=dist),prepared.message&&(prepared.message=truncate(prepared.message,maxValueLength));var exception=prepared.exception&&prepared.exception.values&&prepared.exception.values[0];exception&&exception.value&&(exception.value=truncate(exception.value,maxValueLength));var request=prepared.request;request&&request.url&&(request.url=truncate(request.url,maxValueLength)),void 0===prepared.event_id&&(prepared.event_id=Object(misc.g)()),this._addIntegrations(prepared.sdk);var result=syncpromise.a.resolve(prepared);return scope&&(result=scope.applyToEvent(prepared,hint)),result},BaseClient.prototype._addIntegrations=function(sdkInfo){var integrationsArray=Object.keys(this._integrations);sdkInfo&&integrationsArray.length>0&&(sdkInfo.integrations=integrationsArray)},BaseClient.prototype._processEvent=function(event,hint,scope){var _this=this,_a=this.getOptions(),beforeSend=_a.beforeSend,sampleRate=_a.sampleRate;return this._isEnabled()?"number"==typeof sampleRate&&Math.random()>sampleRate?syncpromise.a.reject("This event has been sampled, will not send event."):new syncpromise.a(function(resolve,reject){_this._prepareEvent(event,scope,hint).then(function(prepared){if(null!==prepared){var finalEvent=prepared;try{if(hint&&hint.data&&!0===hint.data.__sentry__||!beforeSend)return _this._getBackend().sendEvent(finalEvent),void resolve(finalEvent);var beforeSendResult=beforeSend(prepared,hint);if(void 0===beforeSendResult)logger.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(is.j)(beforeSendResult))_this._handleAsyncBeforeSend(beforeSendResult,resolve,reject);else{if(null===(finalEvent=beforeSendResult))return logger.a.log("`beforeSend` returned `null`, will not send event."),void resolve(null);_this._getBackend().sendEvent(finalEvent),resolve(finalEvent)}}catch(exception){_this.captureException(exception,{data:{__sentry__:!0},originalException:exception}),reject("`beforeSend` throw an error, will not send event.")}}else reject("An event processor returned null, will not send event.")})}):syncpromise.a.reject("SDK not enabled, will not send event.")},BaseClient.prototype._handleAsyncBeforeSend=function(beforeSend,resolve,reject){var _this=this;beforeSend.then(function(processedEvent){null!==processedEvent?(_this._getBackend().sendEvent(processedEvent),resolve(processedEvent)):reject("`beforeSend` returned `null`, will not send event.")}).catch(function(e){reject("beforeSend rejected with "+e)})},BaseClient}();!function(Status){Status.Unknown="unknown",Status.Skipped="skipped",Status.Success="success",Status.RateLimit="rate_limit",Status.Invalid="invalid",Status.Failed="failed"}(Status||(Status={})),function(Status){Status.fromHttpCode=function(code){return code>=200&&code<300?Status.Success:429===code?Status.RateLimit:code>=400&&code<500?Status.Invalid:code>=500?Status.Failed:Status.Unknown}}(Status||(Status={}));var Severity,noop_NoopTransport=function(){function NoopTransport(){}return NoopTransport.prototype.sendEvent=function(_){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Status.Skipped})},NoopTransport.prototype.close=function(_){return Promise.resolve(!0)},NoopTransport}(),basebackend_BaseBackend=function(){function BaseBackend(options){this._options=options,this._options.dsn||logger.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return BaseBackend.prototype._setupTransport=function(){return new noop_NoopTransport},BaseBackend.prototype.eventFromException=function(_exception,_hint){throw new error_SentryError("Backend has to implement `eventFromException` method")},BaseBackend.prototype.eventFromMessage=function(_message,_level,_hint){throw new error_SentryError("Backend has to implement `eventFromMessage` method")},BaseBackend.prototype.sendEvent=function(event){this._transport.sendEvent(event).catch(function(reason){logger.a.error("Error while sending event: "+reason)})},BaseBackend.prototype.getTransport=function(){return this._transport},BaseBackend}();function supportsFetch(){if(!("fetch"in Object(misc.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function supportsReferrerPolicy(){if(!supportsFetch())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}!function(Severity){Severity.Fatal="fatal",Severity.Error="error",Severity.Warning="warning",Severity.Log="log",Severity.Info="info",Severity.Debug="debug",Severity.Critical="critical"}(Severity||(Severity={})),function(Severity){Severity.fromString=function(level){switch(level){case"debug":return Severity.Debug;case"info":return Severity.Info;case"warn":case"warning":return Severity.Warning;case"error":return Severity.Error;case"fatal":return Severity.Fatal;case"critical":return Severity.Critical;case"log":default:return Severity.Log}}}(Severity||(Severity={}));var tracekit_window=Object(misc.e)(),TraceKit={_report:!1,_collectWindowErrors:!1,_computeStackTrace:!1,_linesOfContext:!1},UNKNOWN_FUNCTION="?",ERROR_TYPES_RE=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function _has(object,key){return Object.prototype.hasOwnProperty.call(object,key)}function getLocationHref(){return"undefined"==typeof document||null==document.location?"":document.location.href}TraceKit._report=function(){var _oldOnerrorHandler,_onErrorHandlerInstalled,handlers=[],lastException=null,lastExceptionStack=null;function _notifyHandlers(stack,isWindowError,error){var exception=null;if(!isWindowError||TraceKit._collectWindowErrors){for(var i in handlers)if(_has(handlers,i))try{handlers[i](stack,isWindowError,error)}catch(inner){exception=inner}if(exception)throw exception}}function _traceKitWindowOnError(message,url,lineNo,columnNo,errorObj){var stack=null;if(errorObj=Object(is.d)(errorObj)?errorObj.error:errorObj,message=Object(is.d)(message)?message.message:message,lastExceptionStack)TraceKit._computeStackTrace._augmentStackTraceWithInitialElement(lastExceptionStack,url,lineNo,message),processLastException();else if(errorObj&&Object(is.c)(errorObj))(stack=TraceKit._computeStackTrace(errorObj)).mechanism="onerror",_notifyHandlers(stack,!0,errorObj);else{var name,location={url:url,line:lineNo,column:columnNo},msg=message;if("[object String]"==={}.toString.call(message)){var groups=message.match(ERROR_TYPES_RE);groups&&(name=groups[1],msg=groups[2])}location.func=UNKNOWN_FUNCTION,location.context=null,_notifyHandlers(stack={name:name,message:msg,mode:"onerror",mechanism:"onerror",stack:[tslib_es6.a({},location,{url:location.url||getLocationHref()})]},!0,null)}return!!_oldOnerrorHandler&&_oldOnerrorHandler.apply(this,arguments)}function _traceKitWindowOnUnhandledRejection(e){var err=e&&(e.detail?e.detail.reason:e.reason)||e,stack=TraceKit._computeStackTrace(err);stack.mechanism="onunhandledrejection",stack.message||(stack.message=JSON.stringify(Object(object.b)(err))),_notifyHandlers(stack,!0,err)}function processLastException(){var _lastExceptionStack=lastExceptionStack,_lastException=lastException;lastExceptionStack=null,lastException=null,_notifyHandlers(_lastExceptionStack,!1,_lastException)}function _report(ex){if(lastExceptionStack){if(lastException===ex)return;processLastException()}var stack=TraceKit._computeStackTrace(ex);throw lastExceptionStack=stack,lastException=ex,setTimeout(function(){lastException===ex&&processLastException()},stack.incomplete?2e3:0),ex}return _report._subscribe=function(handler){handlers.push(handler)},_report._installGlobalHandler=function(){!0!==_onErrorHandlerInstalled&&(_oldOnerrorHandler=tracekit_window.onerror,tracekit_window.onerror=_traceKitWindowOnError,_onErrorHandlerInstalled=!0)},_report._installGlobalUnhandledRejectionHandler=function(){tracekit_window.onunhandledrejection=_traceKitWindowOnUnhandledRejection},_report}(),TraceKit._computeStackTrace=function(){function _computeStackTraceFromStackProp(ex){if(!ex||!ex.stack)return null;for(var submatch,parts,element,chrome=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gecko=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,winjs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,geckoEval=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,chromeEval=/\((\S*)(?::(\d+))(?::(\d+))\)/,lines=ex.stack.split("\n"),stack=[],reference=/^(.*) is undefined$/.exec(ex.message),i=0,j=lines.length;i<j;++i){if(parts=chrome.exec(lines[i])){var isNative=parts[2]&&0===parts[2].indexOf("native");parts[2]&&0===parts[2].indexOf("eval")&&(submatch=chromeEval.exec(parts[2]))&&(parts[2]=submatch[1],parts[3]=submatch[2],parts[4]=submatch[3]),element={url:parts[2],func:parts[1]||UNKNOWN_FUNCTION,args:isNative?[parts[2]]:[],line:parts[3]?+parts[3]:null,column:parts[4]?+parts[4]:null}}else if(parts=winjs.exec(lines[i]))element={url:parts[2],func:parts[1]||UNKNOWN_FUNCTION,args:[],line:+parts[3],column:parts[4]?+parts[4]:null};else{if(!(parts=gecko.exec(lines[i])))continue;parts[3]&&parts[3].indexOf(" > eval")>-1&&(submatch=geckoEval.exec(parts[3]))?(parts[1]=parts[1]||"eval",parts[3]=submatch[1],parts[4]=submatch[2],parts[5]=""):0!==i||parts[5]||void 0===ex.columnNumber||(stack[0].column=ex.columnNumber+1),element={url:parts[3],func:parts[1]||UNKNOWN_FUNCTION,args:parts[2]?parts[2].split(","):[],line:parts[4]?+parts[4]:null,column:parts[5]?+parts[5]:null}}!element.func&&element.line&&(element.func=UNKNOWN_FUNCTION),element.context=null,stack.push(element)}return stack.length?(stack[0]&&stack[0].line&&!stack[0].column&&reference&&(stack[0].column=null),{mode:"stack",name:ex.name,message:ex.message,stack:stack}):null}function _augmentStackTraceWithInitialElement(stackInfo,url,lineNo,message){var initial={url:url,line:lineNo};if(initial.url&&initial.line){if(stackInfo.incomplete=!1,initial.func||(initial.func=UNKNOWN_FUNCTION),initial.context||(initial.context=null),/ '([^']+)' /.exec(message)&&(initial.column=null),stackInfo.stack.length>0&&stackInfo.stack[0].url===initial.url){if(stackInfo.stack[0].line===initial.line)return!1;if(!stackInfo.stack[0].line&&stackInfo.stack[0].func===initial.func)return stackInfo.stack[0].line=initial.line,stackInfo.stack[0].context=initial.context,!1}return stackInfo.stack.unshift(initial),stackInfo.partial=!0,!0}return stackInfo.incomplete=!0,!1}function _computeStackTraceByWalkingCallerChain(ex,depth){for(var parts,item,functionName=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,stack=[],funcs={},recursion=!1,curr=_computeStackTraceByWalkingCallerChain.caller;curr&&!recursion;curr=curr.caller)if(curr!==_computeStackTrace&&curr!==TraceKit._report){if(item={url:null,func:UNKNOWN_FUNCTION,args:[],line:null,column:null},curr.name?item.func=curr.name:(parts=functionName.exec(curr.toString()))&&(item.func=parts[1]),void 0===item.func)try{item.func=parts.input.substring(0,parts.input.indexOf("{"))}catch(e){}funcs[""+curr]?recursion=!0:funcs[""+curr]=!0,stack.push(item)}depth&&stack.splice(0,depth);var result={mode:"callers",name:ex.name,message:ex.message,stack:stack};return _augmentStackTraceWithInitialElement(result,ex.sourceURL||ex.fileName,ex.line||ex.lineNumber,ex.message||ex.description),result}function computeStackTrace(ex,depth){var stack=null;depth=null==depth?0:+depth;try{if(stack=function(ex){var stacktrace=ex.stacktrace;if(stacktrace){for(var parts,opera10Regex=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,opera11Regex=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,lines=stacktrace.split("\n"),stack=[],line=0;line<lines.length;line+=2){var element=null;(parts=opera10Regex.exec(lines[line]))?element={url:parts[2],line:+parts[1],column:null,func:parts[3],args:[]}:(parts=opera11Regex.exec(lines[line]))&&(element={url:parts[6],line:+parts[1],column:+parts[2],func:parts[3]||parts[4],args:parts[5]?parts[5].split(","):[]}),element&&(!element.func&&element.line&&(element.func=UNKNOWN_FUNCTION),element.line&&(element.context=null),element.context||(element.context=[lines[line+1]]),stack.push(element))}return stack.length?{mode:"stacktrace",name:ex.name,message:ex.message,stack:stack}:null}}(ex))return stack}catch(e){}try{if(stack=_computeStackTraceFromStackProp(ex))return stack}catch(e){}try{if(stack=function(ex){var lines=ex.message.split("\n");if(lines.length<4)return null;var parts,lineRE1=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,lineRE2=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,lineRE3=/^\s*Line (\d+) of function script\s*$/i,stack=[],scripts=tracekit_window&&tracekit_window.document&&tracekit_window.document.getElementsByTagName("script"),inlineScriptBlocks=[];for(var s in scripts)_has(scripts,s)&&!scripts[s].src&&inlineScriptBlocks.push(scripts[s]);for(var line=2;line<lines.length;line+=2){var item=null;(parts=lineRE1.exec(lines[line]))?item={url:parts[2],func:parts[3],args:[],line:+parts[1],column:null}:(parts=lineRE2.exec(lines[line]))?item={url:parts[3],func:parts[4],args:[],line:+parts[1],column:null}:(parts=lineRE3.exec(lines[line]))&&(item={url:getLocationHref().replace(/#.*$/,""),func:"",args:[],line:parts[1],column:null}),item&&(item.func||(item.func=UNKNOWN_FUNCTION),item.context=[lines[line+1]],stack.push(item))}return stack.length?{mode:"multiline",name:ex.name,message:lines[0],stack:stack}:null}(ex))return stack}catch(e){}try{if(stack=_computeStackTraceByWalkingCallerChain(ex,depth+1))return stack}catch(e){}return{original:ex,name:ex.name,message:ex.message,mode:"failed"}}return computeStackTrace._augmentStackTraceWithInitialElement=_augmentStackTraceWithInitialElement,computeStackTrace._computeStackTraceFromStackProp=_computeStackTraceFromStackProp,computeStackTrace}(),TraceKit._collectWindowErrors=!0,TraceKit._linesOfContext=11;var tracekit_subscribe=TraceKit._report._subscribe,tracekit_installGlobalHandler=TraceKit._report._installGlobalHandler,tracekit_installGlobalUnhandledRejectionHandler=TraceKit._report._installGlobalUnhandledRejectionHandler,_computeStackTrace=TraceKit._computeStackTrace,STACKTRACE_LIMIT=50;function exceptionFromStacktrace(stacktrace){var frames=prepareFramesForEvent(stacktrace.stack),exception={type:stacktrace.name,value:stacktrace.message};return frames&&frames.length&&(exception.stacktrace={frames:frames}),void 0===exception.type&&""===exception.value&&(exception.value="Unrecoverable error caught"),exception}function eventFromStacktrace(stacktrace){return{exception:{values:[exceptionFromStacktrace(stacktrace)]}}}function prepareFramesForEvent(stack){if(!stack||!stack.length)return[];var localStack=stack,firstFrameFunction=localStack[0].func||"",lastFrameFunction=localStack[localStack.length-1].func||"";return(firstFrameFunction.includes("captureMessage")||firstFrameFunction.includes("captureException"))&&(localStack=localStack.slice(1)),lastFrameFunction.includes("sentryWrapped")&&(localStack=localStack.slice(0,-1)),localStack.map(function(frame){return{colno:frame.column,filename:frame.url||localStack[0].url,function:frame.func||"?",in_app:!0,lineno:frame.line}}).slice(0,STACKTRACE_LIMIT).reverse()}var keypressTimeout,lastCapturedEvent,promisebuffer_PromiseBuffer=function(){function PromiseBuffer(_limit){this._limit=_limit,this._buffer=[]}return PromiseBuffer.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},PromiseBuffer.prototype.add=function(task){var _this=this;return this.isReady()?(-1===this._buffer.indexOf(task)&&this._buffer.push(task),task.then(function(){return _this.remove(task)}).catch(function(){return _this.remove(task).catch(function(){})}),task):Promise.reject(new error_SentryError("Not adding Promise due to buffer limit reached."))},PromiseBuffer.prototype.remove=function(task){return this._buffer.splice(this._buffer.indexOf(task),1)[0]},PromiseBuffer.prototype.length=function(){return this._buffer.length},PromiseBuffer.prototype.drain=function(timeout){var _this=this;return new Promise(function(resolve){var capturedSetTimeout=setTimeout(function(){timeout&&timeout>0&&resolve(!1)},timeout);Promise.all(_this._buffer).then(function(){clearTimeout(capturedSetTimeout),resolve(!0)}).catch(function(){resolve(!0)})})},PromiseBuffer}(),base_BaseTransport=function(){function BaseTransport(options){this.options=options,this._buffer=new promisebuffer_PromiseBuffer(30),this.url=new api_API(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return BaseTransport.prototype.sendEvent=function(_){throw new error_SentryError("Transport Class has to implement `sendEvent` method")},BaseTransport.prototype.close=function(timeout){return this._buffer.drain(timeout)},BaseTransport}(),fetch_global=Object(misc.e)(),fetch_FetchTransport=function(_super){function FetchTransport(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_es6.b(FetchTransport,_super),FetchTransport.prototype.sendEvent=function(event){var defaultOptions={body:JSON.stringify(event),method:"POST",referrerPolicy:supportsReferrerPolicy()?"origin":""};return this._buffer.add(fetch_global.fetch(this.url,defaultOptions).then(function(response){return{status:Status.fromHttpCode(response.status)}}))},FetchTransport}(base_BaseTransport),xhr_XHRTransport=function(_super){function XHRTransport(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_es6.b(XHRTransport,_super),XHRTransport.prototype.sendEvent=function(event){var _this=this;return this._buffer.add(new Promise(function(resolve,reject){var request=new XMLHttpRequest;request.onreadystatechange=function(){4===request.readyState&&(200===request.status&&resolve({status:Status.fromHttpCode(request.status)}),reject(request))},request.open("POST",_this.url),request.send(JSON.stringify(event))}))},XHRTransport}(base_BaseTransport),backend_BrowserBackend=function(_super){function BrowserBackend(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_es6.b(BrowserBackend,_super),BrowserBackend.prototype._setupTransport=function(){if(!this._options.dsn)return _super.prototype._setupTransport.call(this);var transportOptions=tslib_es6.a({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(transportOptions):supportsFetch()?new fetch_FetchTransport(transportOptions):new xhr_XHRTransport(transportOptions)},BrowserBackend.prototype.eventFromException=function(exception,hint){var event,_this=this;if(Object(is.d)(exception)&&exception.error)return exception=exception.error,event=eventFromStacktrace(_computeStackTrace(exception)),syncpromise.a.resolve(this._buildEvent(event,hint));if(Object(is.a)(exception)||Object(is.b)(exception)){var domException=exception,name_1=domException.name||(Object(is.a)(domException)?"DOMError":"DOMException"),message_1=domException.message?name_1+": "+domException.message:name_1;return this.eventFromMessage(message_1,Severity.Error,hint).then(function(messageEvent){return Object(misc.a)(messageEvent,message_1),syncpromise.a.resolve(_this._buildEvent(messageEvent,hint))})}if(Object(is.c)(exception))return event=eventFromStacktrace(_computeStackTrace(exception)),syncpromise.a.resolve(this._buildEvent(event,hint));if(Object(is.e)(exception)&&hint&&hint.syntheticException)return event=function(exception,syntheticException){var exceptionKeys=Object.keys(exception).sort(),event={extra:{__serialized__:Object(object.c)(exception)},message:"Non-Error exception captured with keys: "+keysToEventMessage(exceptionKeys)};if(syntheticException){var frames_1=prepareFramesForEvent(_computeStackTrace(syntheticException).stack);event.stacktrace={frames:frames_1}}return event}(exception,hint.syntheticException),Object(misc.a)(event,"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),event.level=Severity.Error,syncpromise.a.resolve(this._buildEvent(event,hint));var stringException=exception;return this.eventFromMessage(stringException,void 0,hint).then(function(messageEvent){return Object(misc.a)(messageEvent,""+stringException,void 0,{handled:!0,synthetic:!0,type:"generic"}),messageEvent.level=Severity.Error,syncpromise.a.resolve(_this._buildEvent(messageEvent,hint))})},BrowserBackend.prototype._buildEvent=function(event,hint){return tslib_es6.a({},event,{event_id:hint&&hint.event_id})},BrowserBackend.prototype.eventFromMessage=function(message,level,hint){void 0===level&&(level=Severity.Info);var event={event_id:hint&&hint.event_id,level:level,message:message};if(this._options.attachStacktrace&&hint&&hint.syntheticException){var frames_1=prepareFramesForEvent(_computeStackTrace(hint.syntheticException).stack);event.stacktrace={frames:frames_1}}return syncpromise.a.resolve(event)},BrowserBackend}(basebackend_BaseBackend),client_BrowserClient=function(_super){function BrowserClient(options){return void 0===options&&(options={}),_super.call(this,backend_BrowserBackend,options)||this}return tslib_es6.b(BrowserClient,_super),BrowserClient.prototype._prepareEvent=function(event,scope,hint){return event.platform=event.platform||"javascript",event.sdk=tslib_es6.a({},event.sdk,{name:"sentry.javascript.browser",packages:tslib_es6.d(event.sdk&&event.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.5.0"}]),version:"5.5.0"}),_super.prototype._prepareEvent.call(this,event,scope,hint)},BrowserClient.prototype.showReportDialog=function(options){void 0===options&&(options={});var document=Object(misc.e)().document;if(document)if(this._isEnabled()){var dsn=options.dsn||this.getDsn();if(options.eventId)if(dsn){var script=document.createElement("script");script.async=!0,script.src=new api_API(dsn).getReportDialogEndpoint(options),options.onLoad&&(script.onload=options.onLoad),(document.head||document.body).appendChild(script)}else logger.a.error("Missing `Dsn` option in showReportDialog call");else logger.a.error("Missing `eventId` option in showReportDialog call")}else logger.a.error("Trying to call showReportDialog with Sentry Client is disabled")},BrowserClient}(baseclient_BaseClient),esm=__webpack_require__(3),debounceDuration=1e3,ignoreOnError=0;function ignoreNextOnError(){ignoreOnError+=1,setTimeout(function(){ignoreOnError-=1})}function wrap(fn,options,before){if(void 0===options&&(options={}),"function"!=typeof fn)return fn;try{if(fn.__sentry__)return fn;if(fn.__sentry_wrapped__)return fn.__sentry_wrapped__}catch(e){return fn}var sentryWrapped=function(){before&&"function"==typeof before&&before.apply(this,arguments);var args=Array.prototype.slice.call(arguments);try{var wrappedArguments=args.map(function(arg){return wrap(arg,options)});return fn.handleEvent?fn.handleEvent.apply(this,wrappedArguments):fn.apply(this,wrappedArguments)}catch(ex){throw ignoreNextOnError(),Object(esm.c)(function(scope){scope.addEventProcessor(function(event){var processedEvent=tslib_es6.a({},event);return options.mechanism&&Object(misc.a)(processedEvent,void 0,void 0,options.mechanism),processedEvent.extra=tslib_es6.a({},processedEvent.extra,{arguments:Object(object.b)(args,3)}),processedEvent}),Object(esm.a)(ex)}),ex}};try{for(var property in fn)Object.prototype.hasOwnProperty.call(fn,property)&&(sentryWrapped[property]=fn[property])}catch(_oO){}fn.prototype=fn.prototype||{},sentryWrapped.prototype=fn.prototype,Object.defineProperty(fn,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:fn}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return fn.name}})}catch(_oO){}return sentryWrapped}var debounceTimer=0;function breadcrumbEventHandler(eventName,debounce){return void 0===debounce&&(debounce=!1),function(event){if(keypressTimeout=void 0,event&&lastCapturedEvent!==event){lastCapturedEvent=event;var captureBreadcrumb=function(){var target;try{target=event.target?_htmlTreeAsString(event.target):_htmlTreeAsString(event)}catch(e){target="<unknown>"}0!==target.length&&Object(esm_hub.a)().addBreadcrumb({category:"ui."+eventName,message:target},{event:event,name:eventName})};debounceTimer&&clearTimeout(debounceTimer),debounce?debounceTimer=setTimeout(captureBreadcrumb):captureBreadcrumb()}}}function keypressEventHandler(){return function(event){var target;try{target=event.target}catch(e){return}var tagName=target&&target.tagName;tagName&&("INPUT"===tagName||"TEXTAREA"===tagName||target.isContentEditable)&&(keypressTimeout||breadcrumbEventHandler("input")(event),clearTimeout(keypressTimeout),keypressTimeout=setTimeout(function(){keypressTimeout=void 0},debounceDuration))}}function _htmlTreeAsString(elem){for(var nextStr,currentElem=elem,out=[],height=0,len=0,sepLength=" > ".length;currentElem&&height++<5&&!("html"===(nextStr=_htmlElementAsString(currentElem))||height>1&&len+out.length*sepLength+nextStr.length>=80);)out.push(nextStr),len+=nextStr.length,currentElem=currentElem.parentNode;return out.reverse().join(" > ")}function _htmlElementAsString(elem){var className,classes,key,attr,i,out=[];if(!elem||!elem.tagName)return"";if(out.push(elem.tagName.toLowerCase()),elem.id&&out.push("#"+elem.id),(className=elem.className)&&Object(is.h)(className))for(classes=className.split(/\s+/),i=0;i<classes.length;i++)out.push("."+classes[i]);var attrWhitelist=["type","name","title","alt"];for(i=0;i<attrWhitelist.length;i++)key=attrWhitelist[i],(attr=elem.getAttribute(key))&&out.push("["+key+'="'+attr+'"]');return out.join("")}var trycatch_TryCatch=function(){function TryCatch(){this._ignoreOnError=0,this.name=TryCatch.id}return TryCatch.prototype._wrapTimeFunction=function(original){return function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var originalCallback=args[0];return args[0]=wrap(originalCallback,{mechanism:{data:{function:getFunctionName(original)},handled:!0,type:"instrument"}}),original.apply(this,args)}},TryCatch.prototype._wrapRAF=function(original){return function(callback){return original(wrap(callback,{mechanism:{data:{function:"requestAnimationFrame",handler:getFunctionName(original)},handled:!0,type:"instrument"}}))}},TryCatch.prototype._wrapEventTarget=function(target){var global=Object(misc.e)(),proto=global[target]&&global[target].prototype;proto&&proto.hasOwnProperty&&proto.hasOwnProperty("addEventListener")&&(Object(object.a)(proto,"addEventListener",function(original){return function(eventName,fn,options){try{"function"==typeof fn.handleEvent&&(fn.handleEvent=wrap(fn.handleEvent.bind(fn),{mechanism:{data:{function:"handleEvent",handler:getFunctionName(fn),target:target},handled:!0,type:"instrument"}}))}catch(err){}return original.call(this,eventName,wrap(fn,{mechanism:{data:{function:"addEventListener",handler:getFunctionName(fn),target:target},handled:!0,type:"instrument"}}),options)}}),Object(object.a)(proto,"removeEventListener",function(original){return function(eventName,fn,options){var callback=fn;try{callback=callback&&(callback.__sentry_wrapped__||callback)}catch(e){}return original.call(this,eventName,callback,options)}}))},TryCatch.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var global=Object(misc.e)();Object(object.a)(global,"setTimeout",this._wrapTimeFunction.bind(this)),Object(object.a)(global,"setInterval",this._wrapTimeFunction.bind(this)),Object(object.a)(global,"requestAnimationFrame",this._wrapRAF.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},TryCatch.id="TryCatch",TryCatch}();function getFunctionName(fn){try{return fn&&fn.name||"<anonymous>"}catch(e){return"<anonymous>"}}var lastHref,breadcrumbs_global=Object(misc.e)(),breadcrumbs_Breadcrumbs=function(){function Breadcrumbs(options){this.name=Breadcrumbs.id,this._options=tslib_es6.a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},options)}return Breadcrumbs.prototype._instrumentConsole=function(){"console"in breadcrumbs_global&&["debug","info","warn","error","log","assert"].forEach(function(level){level in breadcrumbs_global.console&&Object(object.a)(breadcrumbs_global.console,level,function(originalConsoleLevel){return function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var breadcrumbData={category:"console",data:{extra:{arguments:Object(object.b)(args,3)},logger:"console"},level:Severity.fromString(level),message:safeJoin(args," ")};"assert"===level&&!1===args[0]&&(breadcrumbData.message="Assertion failed: "+(safeJoin(args.slice(1)," ")||"console.assert"),breadcrumbData.data.extra.arguments=Object(object.b)(args.slice(1),3)),Breadcrumbs.addBreadcrumb(breadcrumbData,{input:args,level:level}),originalConsoleLevel&&Function.prototype.apply.call(originalConsoleLevel,breadcrumbs_global.console,args)}})})},Breadcrumbs.prototype._instrumentDOM=function(){"document"in breadcrumbs_global&&(breadcrumbs_global.document.addEventListener("click",breadcrumbEventHandler("click"),!1),breadcrumbs_global.document.addEventListener("keypress",keypressEventHandler(),!1),["EventTarget","Node"].forEach(function(target){var proto=breadcrumbs_global[target]&&breadcrumbs_global[target].prototype;proto&&proto.hasOwnProperty&&proto.hasOwnProperty("addEventListener")&&(Object(object.a)(proto,"addEventListener",function(original){return function(eventName,fn,options){return fn&&fn.handleEvent?("click"===eventName&&Object(object.a)(fn,"handleEvent",function(innerOriginal){return function(event){return breadcrumbEventHandler("click")(event),innerOriginal.call(this,event)}}),"keypress"===eventName&&Object(object.a)(fn,"handleEvent",function(innerOriginal){return function(event){return keypressEventHandler()(event),innerOriginal.call(this,event)}})):("click"===eventName&&breadcrumbEventHandler("click",!0)(this),"keypress"===eventName&&keypressEventHandler()(this)),original.call(this,eventName,fn,options)}}),Object(object.a)(proto,"removeEventListener",function(original){return function(eventName,fn,options){var callback=fn;try{callback=callback&&(callback.__sentry_wrapped__||callback)}catch(e){}return original.call(this,eventName,callback,options)}}))}))},Breadcrumbs.prototype._instrumentFetch=function(){(function(){if(!supportsFetch())return!1;var isNativeFunc=function(func){return-1!==func.toString().indexOf("native")},global=Object(misc.e)(),result=null,doc=global.document;if(doc){var sandbox=doc.createElement("iframe");sandbox.hidden=!0;try{doc.head.appendChild(sandbox),sandbox.contentWindow&&sandbox.contentWindow.fetch&&(result=isNativeFunc(sandbox.contentWindow.fetch)),doc.head.removeChild(sandbox)}catch(err){logger.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",err)}}return null===result&&(result=isNativeFunc(global.fetch)),result})()&&Object(object.a)(breadcrumbs_global,"fetch",function(originalFetch){return function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var url,fetchInput=args[0],method="GET";"string"==typeof fetchInput?url=fetchInput:"Request"in breadcrumbs_global&&fetchInput instanceof Request?(url=fetchInput.url,fetchInput.method&&(method=fetchInput.method)):url=String(fetchInput),args[1]&&args[1].method&&(method=args[1].method);var client=Object(esm_hub.a)().getClient(),dsn=client&&client.getDsn();if(dsn){var filterUrl=new api_API(dsn).getStoreEndpoint();if(filterUrl&&url.includes(filterUrl))return"POST"===method&&args[1]&&args[1].body&&addSentryBreadcrumb(args[1].body),originalFetch.apply(breadcrumbs_global,args)}var fetchData={method:method,url:url};return originalFetch.apply(breadcrumbs_global,args).then(function(response){return fetchData.status_code=response.status,Breadcrumbs.addBreadcrumb({category:"fetch",data:fetchData,type:"http"},{input:args,response:response}),response}).catch(function(error){throw Breadcrumbs.addBreadcrumb({category:"fetch",data:fetchData,level:Severity.Error,type:"http"},{error:error,input:args}),error})}})},Breadcrumbs.prototype._instrumentHistory=function(){var _this=this;if(global=Object(misc.e)(),chrome=global.chrome,isChromePackagedApp=chrome&&chrome.app&&chrome.app.runtime,hasHistoryApi="history"in global&&!!global.history.pushState&&!!global.history.replaceState,!isChromePackagedApp&&hasHistoryApi){var global,chrome,isChromePackagedApp,hasHistoryApi,captureUrlChange=function(from,to){var parsedLoc=Object(misc.f)(breadcrumbs_global.location.href),parsedTo=Object(misc.f)(to),parsedFrom=Object(misc.f)(from);parsedFrom.path||(parsedFrom=parsedLoc),lastHref=to,parsedLoc.protocol===parsedTo.protocol&&parsedLoc.host===parsedTo.host&&(to=parsedTo.relative),parsedLoc.protocol===parsedFrom.protocol&&parsedLoc.host===parsedFrom.host&&(from=parsedFrom.relative),Breadcrumbs.addBreadcrumb({category:"navigation",data:{from:from,to:to}})},oldOnPopState=breadcrumbs_global.onpopstate;breadcrumbs_global.onpopstate=function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var currentHref=breadcrumbs_global.location.href;if(captureUrlChange(lastHref,currentHref),oldOnPopState)return oldOnPopState.apply(_this,args)},Object(object.a)(breadcrumbs_global.history,"pushState",historyReplacementFunction),Object(object.a)(breadcrumbs_global.history,"replaceState",historyReplacementFunction)}function historyReplacementFunction(originalHistoryFunction){return function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var url=args.length>2?args[2]:void 0;return url&&captureUrlChange(lastHref,String(url)),originalHistoryFunction.apply(this,args)}}},Breadcrumbs.prototype._instrumentXHR=function(){if("XMLHttpRequest"in breadcrumbs_global){var xhrproto=XMLHttpRequest.prototype;Object(object.a)(xhrproto,"open",function(originalOpen){return function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var url=args[1];this.__sentry_xhr__={method:args[0],url:args[1]};var client=Object(esm_hub.a)().getClient(),dsn=client&&client.getDsn();if(dsn){var filterUrl=new api_API(dsn).getStoreEndpoint();Object(is.h)(url)&&filterUrl&&url.includes(filterUrl)&&(this.__sentry_own_request__=!0)}return originalOpen.apply(this,args)}}),Object(object.a)(xhrproto,"send",function(originalSend){return function(){for(var arguments$1=arguments,args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments$1[_i];var xhr=this;function onreadystatechangeHandler(){if(4===xhr.readyState){if(xhr.__sentry_own_request__)return;try{xhr.__sentry_xhr__&&(xhr.__sentry_xhr__.status_code=xhr.status)}catch(e){}Breadcrumbs.addBreadcrumb({category:"xhr",data:xhr.__sentry_xhr__,type:"http"},{xhr:xhr})}}return xhr.__sentry_own_request__&&addSentryBreadcrumb(args[0]),["onload","onerror","onprogress"].forEach(function(prop){wrapProp(prop,xhr)}),"onreadystatechange"in xhr&&"function"==typeof xhr.onreadystatechange?Object(object.a)(xhr,"onreadystatechange",function(original){return wrap(original,{mechanism:{data:{function:"onreadystatechange",handler:original&&original.name||"<anonymous>"},handled:!0,type:"instrument"}},onreadystatechangeHandler)}):xhr.onreadystatechange=onreadystatechangeHandler,originalSend.apply(this,args)}})}function wrapProp(prop,xhr){prop in xhr&&"function"==typeof xhr[prop]&&Object(object.a)(xhr,prop,function(original){return wrap(original,{mechanism:{data:{function:prop,handler:original&&original.name||"<anonymous>"},handled:!0,type:"instrument"}})})}},Breadcrumbs.addBreadcrumb=function(breadcrumb,hint){Object(esm_hub.a)().getIntegration(Breadcrumbs)&&Object(esm_hub.a)().addBreadcrumb(breadcrumb,hint)},Breadcrumbs.prototype.setupOnce=function(){this._options.console&&this._instrumentConsole(),this._options.dom&&this._instrumentDOM(),this._options.xhr&&this._instrumentXHR(),this._options.fetch&&this._instrumentFetch(),this._options.history&&this._instrumentHistory()},Breadcrumbs.id="Breadcrumbs",Breadcrumbs}();function addSentryBreadcrumb(serializedData){try{var event_1=JSON.parse(serializedData);breadcrumbs_Breadcrumbs.addBreadcrumb({category:"sentry",event_id:event_1.event_id,level:event_1.level||Severity.fromString("error"),message:Object(misc.d)(event_1)},{event:event_1})}catch(_oO){logger.a.error("Error while adding sentry type breadcrumb")}}var globalhandlers_GlobalHandlers=function(){function GlobalHandlers(options){this.name=GlobalHandlers.id,this._options=tslib_es6.a({onerror:!0,onunhandledrejection:!0},options)}return GlobalHandlers.prototype.setupOnce=function(){Error.stackTraceLimit=50,tracekit_subscribe(function(stack,_,error){if(!(ignoreOnError>0)){var self=Object(esm_hub.a)().getIntegration(GlobalHandlers);self&&Object(esm_hub.a)().captureEvent(self._eventFromGlobalHandler(stack),{data:{stack:stack},originalException:error})}}),this._options.onerror&&(logger.a.log("Global Handler attached: onerror"),tracekit_installGlobalHandler()),this._options.onunhandledrejection&&(logger.a.log("Global Handler attached: onunhandledrejection"),tracekit_installGlobalUnhandledRejectionHandler())},GlobalHandlers.prototype._eventFromGlobalHandler=function(stacktrace){if(!Object(is.h)(stacktrace.message)&&"onunhandledrejection"!==stacktrace.mechanism){var message=stacktrace.message;stacktrace.message=message.error&&Object(is.h)(message.error.message)?message.error.message:"No error message"}var event=eventFromStacktrace(stacktrace),data={mode:stacktrace.mode};stacktrace.message&&(data.message=stacktrace.message),stacktrace.name&&(data.name=stacktrace.name);var client=Object(esm_hub.a)().getClient(),maxValueLength=client&&client.getOptions().maxValueLength||250,fallbackValue=stacktrace.original?truncate(JSON.stringify(Object(object.b)(stacktrace.original)),maxValueLength):"",fallbackType="onunhandledrejection"===stacktrace.mechanism?"UnhandledRejection":"Error";return Object(misc.a)(event,fallbackValue,fallbackType,{data:data,handled:!1,type:stacktrace.mechanism}),event},GlobalHandlers.id="GlobalHandlers",GlobalHandlers}(),DEFAULT_KEY="cause",DEFAULT_LIMIT=5,linkederrors_LinkedErrors=function(){function LinkedErrors(options){void 0===options&&(options={}),this.name=LinkedErrors.id,this._key=options.key||DEFAULT_KEY,this._limit=options.limit||DEFAULT_LIMIT}return LinkedErrors.prototype.setupOnce=function(){Object(esm_scope.b)(function(event,hint){var self=Object(esm_hub.a)().getIntegration(LinkedErrors);return self?self._handler(event,hint):event})},LinkedErrors.prototype._handler=function(event,hint){if(!(event.exception&&event.exception.values&&hint&&hint.originalException instanceof Error))return event;var linkedErrors=this._walkErrorTree(hint.originalException,this._key);return event.exception.values=tslib_es6.d(linkedErrors,event.exception.values),event},LinkedErrors.prototype._walkErrorTree=function(error,key,stack){if(void 0===stack&&(stack=[]),!(error[key]instanceof Error)||stack.length+1>=this._limit)return stack;var exception=exceptionFromStacktrace(_computeStackTrace(error[key]));return this._walkErrorTree(error[key],key,tslib_es6.d([exception],stack))},LinkedErrors.id="LinkedErrors",LinkedErrors}(),useragent_global=Object(misc.e)(),useragent_UserAgent=function(){function UserAgent(){this.name=UserAgent.id}return UserAgent.prototype.setupOnce=function(){Object(esm_scope.b)(function(event){if(Object(esm_hub.a)().getIntegration(UserAgent)){if(!useragent_global.navigator||!useragent_global.location)return event;var request=event.request||{};return request.url=request.url||useragent_global.location.href,request.headers=request.headers||{},request.headers["User-Agent"]=useragent_global.navigator.userAgent,tslib_es6.a({},event,{request:request})}return event})},UserAgent.id="UserAgent",UserAgent}();__webpack_require__.d(__webpack_exports__,"a",function(){return init});var sdk_defaultIntegrations=[new integrations_namespaceObject.InboundFilters,new integrations_namespaceObject.FunctionToString,new trycatch_TryCatch,new breadcrumbs_Breadcrumbs,new globalhandlers_GlobalHandlers,new linkederrors_LinkedErrors,new useragent_UserAgent];function init(options){if(void 0===options&&(options={}),void 0===options.defaultIntegrations&&(options.defaultIntegrations=sdk_defaultIntegrations),void 0===options.release){var window_1=Object(misc.e)();window_1.SENTRY_RELEASE&&window_1.SENTRY_RELEASE.id&&(options.release=window_1.SENTRY_RELEASE.id)}!function(clientClass,options){!0===options.debug&&logger.a.enable(),Object(esm_hub.a)().bindClient(new clientClass(options))}(client_BrowserClient,options)}}]);
|
2
|
-
//# sourceMappingURL=kolibri_sentry_plugin_module-0.0.1.js.map
|