UNPKG

sentry-uniapp

Version:

用于Uniapp/小程序/快应用等平台的 Sentry SDK

16 lines (14 loc) 102 kB
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=38)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return d})),n.d(e,"__createBinding",(function(){return p})),n.d(e,"__exportStar",(function(){return l})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return _})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return m})),n.d(e,"__asyncValues",(function(){return O})),n.d(e,"__makeTemplateObject",(function(){return j})),n.d(e,"__importStar",(function(){return E})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return w})),n.d(e,"__classPrivateFieldSet",(function(){return x})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function d(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function p(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function l(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_(arguments[e]));return t}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function j(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"l",(function(){return c})),n.d(e,"j",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"f",(function(){return p})),n.d(e,"c",(function(){return l})),n.d(e,"k",(function(){return h})),n.d(e,"n",(function(){return _})),n.d(e,"m",(function(){return v})),n.d(e,"h",(function(){return g})),n.d(e,"g",(function(){return b}));var r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(t,Error)}}function o(t,e){return r.call(t)==="[object "+e+"]"}function a(t){return o(t,"ErrorEvent")}function s(t){return o(t,"DOMError")}function u(t){return o(t,"DOMException")}function c(t){return o(t,"String")}function f(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function d(t){return o(t,"Object")}function p(t){return"undefined"!=typeof Event&&b(t,Event)}function l(t){return"undefined"!=typeof Element&&b(t,Element)}function h(t){return o(t,"RegExp")}function _(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function v(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t){return"number"==typeof t&&t!=t}function b(t,e){try{return t instanceof e}catch(t){return!1}}},function(t,e,n){"use strict";function r(t){t.then(null,(function(t){console.error(t)}))}n.r(e),n.d(e,"forget",(function(){return r})),n.d(e,"htmlTreeAsString",(function(){return i.b})),n.d(e,"getLocationHref",(function(){return i.a})),n.d(e,"dsnToString",(function(){return o.a})),n.d(e,"makeDsn",(function(){return o.b})),n.d(e,"SeverityLevels",(function(){return a})),n.d(e,"SentryError",(function(){return s.a})),n.d(e,"getGlobalObject",(function(){return u.a})),n.d(e,"getGlobalSingleton",(function(){return u.b})),n.d(e,"addInstrumentationHandler",(function(){return P})),n.d(e,"isError",(function(){return d.d})),n.d(e,"isErrorEvent",(function(){return d.e})),n.d(e,"isDOMError",(function(){return d.a})),n.d(e,"isDOMException",(function(){return d.b})),n.d(e,"isString",(function(){return d.l})),n.d(e,"isPrimitive",(function(){return d.j})),n.d(e,"isPlainObject",(function(){return d.i})),n.d(e,"isEvent",(function(){return d.f})),n.d(e,"isElement",(function(){return d.c})),n.d(e,"isRegExp",(function(){return d.k})),n.d(e,"isThenable",(function(){return d.n})),n.d(e,"isSyntheticEvent",(function(){return d.m})),n.d(e,"isNaN",(function(){return d.h})),n.d(e,"isInstanceOf",(function(){return d.g})),n.d(e,"CONSOLE_LEVELS",(function(){return p.a})),n.d(e,"consoleSandbox",(function(){return p.b})),n.d(e,"logger",(function(){return p.c})),n.d(e,"memoBuilder",(function(){return F.a})),n.d(e,"uuid4",(function(){return L.i})),n.d(e,"parseUrl",(function(){return L.g})),n.d(e,"getEventDescription",(function(){return L.e})),n.d(e,"addExceptionTypeValue",(function(){return L.c})),n.d(e,"addExceptionMechanism",(function(){return L.b})),n.d(e,"parseSemver",(function(){return L.f})),n.d(e,"addContextToFrame",(function(){return L.a})),n.d(e,"stripUrlQueryAndFragment",(function(){return L.h})),n.d(e,"checkOrSetAlreadyCaught",(function(){return L.d})),n.d(e,"isNodeEnv",(function(){return U.b})),n.d(e,"dynamicRequire",(function(){return U.a})),n.d(e,"loadModule",(function(){return U.c})),n.d(e,"normalize",(function(){return B.a})),n.d(e,"normalizeToSize",(function(){return B.b})),n.d(e,"walk",(function(){return B.c})),n.d(e,"fill",(function(){return l.e})),n.d(e,"addNonEnumerableProperty",(function(){return l.a})),n.d(e,"markFunctionWrapped",(function(){return l.g})),n.d(e,"getOriginalFunction",(function(){return l.f})),n.d(e,"urlEncode",(function(){return l.i})),n.d(e,"convertToPlainObject",(function(){return l.b})),n.d(e,"extractExceptionKeysForMessage",(function(){return l.d})),n.d(e,"dropUndefinedKeys",(function(){return l.c})),n.d(e,"objectify",(function(){return l.h})),n.d(e,"resolve",(function(){return W})),n.d(e,"relative",(function(){return Y})),n.d(e,"normalizePath",(function(){return V})),n.d(e,"isAbsolute",(function(){return J})),n.d(e,"join",(function(){return $})),n.d(e,"dirname",(function(){return X})),n.d(e,"basename",(function(){return Z})),n.d(e,"makePromiseBuffer",(function(){return Q.a})),n.d(e,"severityFromString",(function(){return et})),n.d(e,"createStackParser",(function(){return h.a})),n.d(e,"stripSentryFramesAndReverse",(function(){return h.c})),n.d(e,"getFunctionName",(function(){return h.b})),n.d(e,"eventStatusFromHttpCode",(function(){return nt.a})),n.d(e,"truncate",(function(){return rt.e})),n.d(e,"snipLine",(function(){return rt.d})),n.d(e,"safeJoin",(function(){return rt.c})),n.d(e,"isMatchingPattern",(function(){return rt.b})),n.d(e,"escapeStringForRegex",(function(){return rt.a})),n.d(e,"supportsErrorEvent",(function(){return _})),n.d(e,"supportsDOMError",(function(){return v})),n.d(e,"supportsDOMException",(function(){return g})),n.d(e,"supportsFetch",(function(){return b})),n.d(e,"isNativeFetch",(function(){return y})),n.d(e,"supportsNativeFetch",(function(){return m})),n.d(e,"supportsReportingObserver",(function(){return O})),n.d(e,"supportsReferrerPolicy",(function(){return j})),n.d(e,"supportsHistory",(function(){return E})),n.d(e,"resolvedSyncPromise",(function(){return it.c})),n.d(e,"rejectedSyncPromise",(function(){return it.b})),n.d(e,"SyncPromise",(function(){return it.a})),n.d(e,"dateTimestampInSeconds",(function(){return ot.c})),n.d(e,"timestampInSeconds",(function(){return ot.d})),n.d(e,"timestampWithMs",(function(){return ot.e})),n.d(e,"usingPerformanceAPI",(function(){return ot.f})),n.d(e,"_browserPerformanceTimeOriginMode",(function(){return ot.a})),n.d(e,"browserPerformanceTimeOrigin",(function(){return ot.b})),n.d(e,"TRACEPARENT_REGEXP",(function(){return at})),n.d(e,"extractTraceparentData",(function(){return st})),n.d(e,"isBrowserBundle",(function(){return ut.a})),n.d(e,"createEnvelope",(function(){return ct.b})),n.d(e,"addItemToEnvelope",(function(){return ct.a})),n.d(e,"getEnvelopeType",(function(){return ct.c})),n.d(e,"serializeEnvelope",(function(){return ct.d})),n.d(e,"createClientReportEnvelope",(function(){return ft})),n.d(e,"DEFAULT_RETRY_AFTER",(function(){return dt.a})),n.d(e,"parseRetryAfterHeader",(function(){return dt.d})),n.d(e,"disabledUntil",(function(){return dt.b})),n.d(e,"isRateLimited",(function(){return dt.c})),n.d(e,"updateRateLimits",(function(){return dt.e}));var i=n(18),o=n(27),a=["fatal","error","warning","log","info","debug","critical"],s=n(7),u=n(3),c=n(0),f=n(6),d=n(1),p=n(9),l=n(4),h=n(11);function _(){try{return new ErrorEvent(""),!0}catch(t){return!1}}function v(){try{return new DOMError(""),!0}catch(t){return!1}}function g(){try{return new DOMException(""),!0}catch(t){return!1}}function b(){if(!("fetch"in Object(u.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function y(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function m(){if(!b())return!1;var t=Object(u.a)();if(y(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=y(r.contentWindow.fetch)),n.head.removeChild(r)}catch(t){f.a&&p.c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}function O(){return"ReportingObserver"in Object(u.a)()}function j(){if(!b())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function E(){var t=Object(u.a)(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}var S,w=Object(u.a)(),x={},k={};function T(t){if(!k[t])switch(k[t]=!0,t){case"console":!function(){if(!("console"in w))return;p.a.forEach((function(t){t in w.console&&Object(l.e)(w.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];I("console",{args:n,level:t}),e&&e.apply(w.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in w))return;var t=I.bind(null,"dom"),e=C(t,!0);w.document.addEventListener("click",e,!1),w.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=w[e]&&w[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(l.e)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=C(t);a.handler=s,e.call(this,n,s,i)}a.refCount+=1}catch(t){}return e.call(this,n,r,i)}})),Object(l.e)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in w))return;var t=XMLHttpRequest.prototype;Object(l.e)(t,"open",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=e[1],o=r.__sentry_xhr__={method:Object(d.l)(e[0])?e[0].toUpperCase():e[0],url:e[1]};Object(d.l)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{o.status_code=r.status}catch(t){}I("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(l.e)(r,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a(),t.apply(r,e)}})):r.addEventListener("readystatechange",a),t.apply(r,e)}})),Object(l.e)(t,"send",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),I("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!m())return;Object(l.e)(w,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:M(e),url:N(e)},startTimestamp:Date.now()};return I("fetch",Object(c.__assign)({},r)),t.apply(w,e).then((function(t){return I("fetch",Object(c.__assign)(Object(c.__assign)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw I("fetch",Object(c.__assign)(Object(c.__assign)({},r),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!E())return;var t=w.onpopstate;function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length>2?e[2]:void 0;if(r){var i=S,o=String(r);S=o,I("history",{from:i,to:o})}return t.apply(this,e)}}w.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=w.location.href,i=S;if(S=r,I("history",{from:i,to:r}),t)try{return t.apply(this,e)}catch(t){}},Object(l.e)(w.history,"pushState",e),Object(l.e)(w.history,"replaceState",e)}();break;case"error":A=w.onerror,w.onerror=function(t,e,n,r,i){return I("error",{column:r,error:i,line:n,msg:t,url:e}),!!A&&A.apply(this,arguments)};break;case"unhandledrejection":H=w.onunhandledrejection,w.onunhandledrejection=function(t){return I("unhandledrejection",t),!H||H.apply(this,arguments)};break;default:return void(f.a&&p.c.warn("unknown instrumentation type:",t))}}function P(t,e){x[t]=x[t]||[],x[t].push(e),T(t)}function I(t,e){var n,r;if(t&&x[t])try{for(var i=Object(c.__values)(x[t]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(e)}catch(e){f.a&&p.c.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Object(h.b)(a)+"\nError:",e)}}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function M(t){return void 0===t&&(t=[]),"Request"in w&&Object(d.g)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function N(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in w&&Object(d.g)(t[0],Request)?t[0].url:String(t[0])}var R,D;function C(t,e){return void 0===e&&(e=!1),function(n){if(n&&D!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===R||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(D,n))&&(t({event:n,name:r,global:e}),D=n),clearTimeout(R),R=w.setTimeout((function(){R=void 0}),1e3)}}}var A=null;var H=null;var F=n(19),L=n(26),U=n(10),B=n(28);function q(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}var G=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function z(t){var e=G.exec(t);return e?e.slice(1):[]}function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,i=t.length-1;i>=-1&&!r;i--){var o=i>=0?t[i]:"/";o&&(n=o+"/"+n,r="/"===o.charAt(0))}return(r?"/":"")+(n=q(n.split("/").filter((function(t){return!!t})),!r).join("/"))||"."}function K(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function Y(t,e){t=W(t).substr(1),e=W(e).substr(1);for(var n=K(t.split("/")),r=K(e.split("/")),i=Math.min(n.length,r.length),o=i,a=0;a<i;a++)if(n[a]!==r[a]){o=a;break}var s=[];for(a=o;a<n.length;a++)s.push("..");return(s=s.concat(r.slice(o))).join("/")}function V(t){var e=J(t),n="/"===t.substr(-1),r=q(t.split("/").filter((function(t){return!!t})),!e).join("/");return r||e||(r="."),r&&n&&(r+="/"),(e?"/":"")+r}function J(t){return"/"===t.charAt(0)}function $(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return V(t.join("/"))}function X(t){var e=z(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function Z(t,e){var n=z(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n}var Q=n(29),tt=n(14);function et(t){return"warn"===t?tt.a.Warning:function(t){return-1!==a.indexOf(t)}(t)?t:tt.a.Log}var nt=n(31),rt=n(8),it=n(12),ot=n(16),at=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function st(t){var e=t.match(at);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}var ut=n(17),ct=n(20);function ft(t,e,n){var r=[{type:"client_report"},{timestamp:n||Object(ot.c)(),discarded_events:t}];return Object(ct.b)(e?{dsn:e}:{},[r])}var dt=n(30)},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(10),i={};function o(){return Object(r.b)()?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(t,e,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}}).call(this,n(25))},function(t,e,n){"use strict";n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"f",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return _})),n.d(e,"c",(function(){return v})),n.d(e,"h",(function(){return g}));var r=n(0),i=n(18),o=n(1),a=n(8);function s(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"==typeof i)try{c(i,r)}catch(t){}t[e]=i}}function u(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function c(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}function f(t){return t.__sentry_original__}function d(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function p(t){var e=t;if(Object(o.d)(t))e=Object(r.__assign)({message:t.message,name:t.name,stack:t.stack},h(t));else if(Object(o.f)(t)){var n=t;e=Object(r.__assign)({type:n.type,target:l(n.target),currentTarget:l(n.currentTarget)},h(n)),"undefined"!=typeof CustomEvent&&Object(o.g)(t,CustomEvent)&&(e.detail=n.detail)}return e}function l(t){try{return Object(o.c)(t)?Object(i.b)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function h(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function _(t,e){void 0===e&&(e=40);var n=Object.keys(p(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(a.e)(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:Object(a.e)(i,e)}return""}function v(t){var e,n;if(Object(o.i)(t)){var i={};try{for(var a=Object(r.__values)(Object.keys(t)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==t[u]&&(i[u]=v(t[u]))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}return Array.isArray(t)?t.map(v):t}function g(t){var e;switch(!0){case null==t:e=new String(t);break;case"symbol"==typeof t||"bigint"==typeof t:e=Object(t);break;case Object(o.j)(t):e=new t.constructor(t);break;default:e=t}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"addBreadcrumb",(function(){return I})),n.d(e,"captureException",(function(){return x})),n.d(e,"captureEvent",(function(){return T})),n.d(e,"captureMessage",(function(){return k})),n.d(e,"configureScope",(function(){return P})),n.d(e,"startTransaction",(function(){return F})),n.d(e,"setContext",(function(){return M})),n.d(e,"setExtra",(function(){return D})),n.d(e,"setExtras",(function(){return N})),n.d(e,"setTag",(function(){return C})),n.d(e,"setTags",(function(){return R})),n.d(e,"setUser",(function(){return A})),n.d(e,"withScope",(function(){return H})),n.d(e,"addGlobalEventProcessor",(function(){return _})),n.d(e,"getCurrentHub",(function(){return O})),n.d(e,"getHubFromCarrier",(function(){return E})),n.d(e,"Hub",(function(){return b})),n.d(e,"makeMain",(function(){return m})),n.d(e,"Scope",(function(){return l})),n.d(e,"Session",(function(){return g})),n.d(e,"API",(function(){return U})),n.d(e,"getEnvelopeEndpointWithUrlEncodedAuth",(function(){return Y})),n.d(e,"getStoreEndpointWithUrlEncodedAuth",(function(){return K})),n.d(e,"getRequestHeaders",(function(){return V})),n.d(e,"initAPIDetails",(function(){return B})),n.d(e,"getReportDialogEndpoint",(function(){return J})),n.d(e,"BaseClient",(function(){return it})),n.d(e,"BaseBackend",(function(){return pt})),n.d(e,"eventToSentryRequest",(function(){return ft})),n.d(e,"sessionToSentryRequest",(function(){return ct})),n.d(e,"initAndBind",(function(){return lt})),n.d(e,"NoopTransport",(function(){return dt})),n.d(e,"createTransport",(function(){return gt})),n.d(e,"SDK_VERSION",(function(){return mt})),n.d(e,"Integrations",(function(){return r}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return Ot})),n.d(r,"InboundFilters",(function(){return Et}));var i=n(0),o=n(26),a=n(16),s=n(9),u=n(3),c=n(10),f="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,d=n(1),p=n(12),l=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=Object(i.__spread)(e._breadcrumbs),n._tags=Object(i.__assign)({},e._tags),n._extra=Object(i.__assign)({},e._extra),n._contexts=Object(i.__assign)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=Object(i.__spread)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=Object(i.__assign)(Object(i.__assign)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=Object(i.__assign)(Object(i.__assign)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=Object(i.__assign)(Object(i.__assign)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=Object(i.__assign)(Object(i.__assign)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=Object(i.__assign)(Object(i.__assign)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=Object(i.__assign)(Object(i.__assign)({},this._tags),e._tags),this._extra=Object(i.__assign)(Object(i.__assign)({},this._extra),e._extra),this._contexts=Object(i.__assign)(Object(i.__assign)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Object(d.i)(e)&&(e=e,this._tags=Object(i.__assign)(Object(i.__assign)({},this._tags),e.tags),this._extra=Object(i.__assign)(Object(i.__assign)({},this._extra),e.extra),this._contexts=Object(i.__assign)(Object(i.__assign)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var r=Object(i.__assign)({timestamp:Object(a.c)()},t);return this._breadcrumbs=Object(i.__spread)(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(i.__assign)(Object(i.__assign)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(i.__assign)(Object(i.__assign)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(i.__assign)(Object(i.__assign)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(i.__assign)(Object(i.__assign)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(i.__assign)({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=Object(i.__assign)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(i.__spread)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(i.__spread)(h(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=Object(i.__assign)(Object(i.__assign)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,r){var o=this;return void 0===r&&(r=0),new p.a((function(a,s){var u=t[r];if(null===e||"function"!=typeof u)a(e);else{var c=u(Object(i.__assign)({},e),n);Object(d.n)(c)?c.then((function(e){return o._notifyEventProcessors(t,e,n,r+1).then(a)})).then(null,s):o._notifyEventProcessors(t,c,n,r+1).then(a).then(null,s)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function h(){return Object(u.b)("globalEventProcessors",(function(){return[]}))}function _(t){h().push(t)}var v=n(4),g=function(){function t(t){this.errors=0,this.sid=Object(o.i)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=Object(a.d)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Object(a.d)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(o.i)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return Object(v.c)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),b=function(){function t(t,e,n){void 0===e&&(e=new l),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=l.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:Object(o.i)(),r=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(t){a=t}r={originalException:t,syntheticException:a}}return this._invokeClient("captureException",t,Object(i.__assign)(Object(i.__assign)({},r),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=n&&n.event_id?n.event_id:Object(o.i)(),a=n;if(!n){var s=void 0;try{throw new Error(t)}catch(t){s=t}a={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,e,Object(i.__assign)(Object(i.__assign)({},a),{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=e&&e.event_id?e.event_id:Object(o.i)();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,Object(i.__assign)(Object(i.__assign)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var u=o.getOptions&&o.getOptions()||{},c=u.beforeBreadcrumb,f=void 0===c?null:c,d=u.maxBreadcrumbs,p=void 0===d?100:d;if(!(p<=0)){var l=Object(a.c)(),h=Object(i.__assign)({timestamp:l},t),_=f?Object(s.b)((function(){return f(h,e)})):h;null!==_&&r.addBreadcrumb(_,p)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)},t.prototype.run=function(t){var e=m(this);try{t(this)}finally{m(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return f&&s.c.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,r=e.client,o=r&&r.getOptions()||{},a=o.release,s=o.environment,c=(Object(u.a)().navigator||{}).userAgent,f=new g(Object(i.__assign)(Object(i.__assign)(Object(i.__assign)({release:a,environment:s},n&&{user:n.getUser()}),c&&{userAgent:c}),t));if(n){var d=n.getSession&&n.getSession();d&&"ok"===d.status&&d.update({status:"exited"}),this.endSession(),n.setSession(f)}return f},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},t.prototype._invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),a=o.scope,s=o.client;s&&s[t]&&(e=s)[t].apply(e,Object(i.__spread)(n,[a]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=y(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);f&&s.c.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function y(){var t=Object(u.a)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function m(t){var e=y(),n=E(e);return S(e,t),n}function O(){var t=y();return j(t)&&!E(t).isOlderThan(4)||S(t,new b),Object(c.b)()?function(t){try{var e=y().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return E(t);if(!j(n)||E(n).isOlderThan(4)){var r=E(t).getStackTop();S(n,new b(r.client,l.clone(r.scope)))}return E(n)}catch(e){return E(t)}}(t):E(t)}function j(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function E(t){return Object(u.b)("hub",(function(){return new b}),t)}function S(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function w(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=O();if(r&&r[t])return r[t].apply(r,Object(i.__spread)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function x(t,e){return w("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function k(t,e){var n=new Error(t),r="string"!=typeof e?{captureContext:e}:void 0;return w("captureMessage",t,"string"==typeof e?e:void 0,Object(i.__assign)({originalException:t,syntheticException:n},r))}function T(t){return w("captureEvent",t)}function P(t){w("configureScope",t)}function I(t){w("addBreadcrumb",t)}function M(t,e){w("setContext",t,e)}function N(t){w("setExtras",t)}function R(t){w("setTags",t)}function D(t,e){w("setExtra",t,e)}function C(t,e){w("setTag",t,e)}function A(t){w("setUser",t)}function H(t){w("withScope",t)}function F(t,e){return w("startTransaction",Object(i.__assign)({},t),e)}var L=n(27),U=function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=Object(L.b)(t),this.metadata=e,this._tunnel=n}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return q(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return W(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return K(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return Y(this._dsnObject,this._tunnel)},t}();function B(t,e,n){return{initDsn:t,metadata:e||{},dsn:Object(L.b)(t),tunnel:n}}function q(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function G(t,e){return""+q(t)+t.projectId+"/"+e+"/"}function z(t){return Object(v.i)({sentry_key:t.publicKey,sentry_version:"7"})}function W(t){return G(t,"store")}function K(t){return W(t)+"?"+z(t)}function Y(t,e){return e||function(t){return G(t,"envelope")}(t)+"?"+z(t)}function V(t,e,n){var r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+n),r.push("sentry_key="+t.publicKey),t.pass&&r.push("sentry_secret="+t.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}function J(t,e){var n=Object(L.b)(t),r=q(n)+"embed/error-page/",i="dsn="+Object(L.a)(n);for(var o in e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&(i+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(i+="&email="+encodeURIComponent(e.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(e[o]);return r+"?"+i}var $=n(28),X=n(8),Z=n(7),Q="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tt=[];function et(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function nt(t){var e={};return function(t){var e=t.defaultIntegrations&&Object(i.__spread)(t.defaultIntegrations)||[],n=t.integrations,r=Object(i.__spread)(et(e));Array.isArray(n)?r=Object(i.__spread)(r.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),et(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(t){return t.name}));return-1!==o.indexOf("Debug")&&r.push.apply(r,Object(i.__spread)(r.splice(o.indexOf("Debug"),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===tt.indexOf(t.name)&&(t.setupOnce(_,O),tt.push(t.name),Q&&s.c.log("Integration installed: "+t.name))}(t)})),Object(v.a)(e,"initialized",!0),e}var rt="Not capturing exception because it's already been captured.",it=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=Object(L.b)(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this;if(!Object(o.d)(t)){var i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){i=t}))),i}Q&&s.c.log(rt)},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id,a=Object(d.j)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(a.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,n){if(!(e&&e.originalException&&Object(o.d)(e.originalException))){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r}Q&&s.c.log(rt)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?Q&&s.c.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):Q&&s.c.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=nt(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return Q&&s.c.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,o=!1,a=!1,s=e.exception&&e.exception.values;if(s){a=!0;try{for(var u=Object(i.__values)(s),c=u.next();!c.done;c=u.next()){var f=c.value.mechanism;if(f&&!1===f.handled){o=!0;break}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}var d="ok"===t.status;(d&&0===t.errors||d&&o)&&(t.update(Object(i.__assign)(Object(i.__assign)({},o&&{status:"crashed"}),{errors:t.errors||Number(a||o)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new p.a((function(n){var r=0,i=setInterval((function(){0==e._numProcessing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,s=this.getOptions(),u=s.normalizeDepth,c=void 0===u?3:u,f=s.normalizeMaxBreadth,d=void 0===f?1e3:f,h=Object(i.__assign)(Object(i.__assign)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Object(o.i)()),timestamp:t.timestamp||Object(a.c)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var _=e;n&&n.captureContext&&(_=l.clone(_).update(n.captureContext));var v=Object(p.c)(h);return _&&(v=_.applyToEvent(h,n)),v.then((function(t){return t&&(t.sdkProcessingMetadata=Object(i.__assign)(Object(i.__assign)({},t.sdkProcessingMetadata),{normalizeDepth:Object($.a)(c)+" ("+typeof c+")"})),"number"==typeof c&&c>0?r._normalizeEvent(t,c,d):t}))},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=Object(i.__assign)(Object(i.__assign)(Object(i.__assign)(Object(i.__assign)(Object(i.__assign)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Object(i.__assign)(Object(i.__assign)({},t),t.data&&{data:Object($.a)(t.data,e,n)})}))}),t.user&&{user:Object($.a)(t.user,e,n)}),t.contexts&&{contexts:Object($.a)(t.contexts,e,n)}),t.extra&&{extra:Object($.a)(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=Object(i.__assign)(Object(i.__assign)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,i=e.dist,o=e.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=Object(X.e)(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Object(X.e)(s.value,a));var u=t.request;u&&u.url&&(u.url=Object(X.e)(u.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=Object(i.__spread)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function