@arcblock/www-wallet
Version:
Start experiencing your digital world with ABT Wallet
2 lines • 74.4 kB
JavaScript
/*! For license information please see 24-113b548fb9410ac58ab2.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+924":function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n("9AQC");function o(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function i(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var o=Math.max(e-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n}function a(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(i){n.push("[value cannot be serialized]")}}return n.join(e)}function s(t,e){return!!Object(r.k)(t)&&(Object(r.j)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}},"+A1k":function(t,e,n){"use strict";(function(t,r){n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));n("9AQC"),n("6PXS");function o(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function i(t,e){return t.require(e)}}).call(this,n("8oxB"),n("3UD+")(t))},"/b8u":function(t,e,n){var r=n("STAE");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"/qmn":function(t,e,n){var r=n("2oRo");t.exports=r.Promise},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"6PXS":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return v})),n.d(e,"a",(function(){return _}));n("ajKJ");var r=n("vFt6"),o=n("9AQC"),i=n("wCA9"),a=n("pRiV"),s=n("+924");function c(t,e,n){if(e in t){var r=t[e],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(i){}t[e]=o}}function u(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function p(t){if(Object(o.d)(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}if(Object(o.f)(t)){var a=t,s={};s.type=a.type;try{s.target=Object(o.c)(a.target)?Object(r.a)(a.target):Object.prototype.toString.call(a.target)}catch(c){s.target="<unknown>"}try{s.currentTarget=Object(o.c)(a.currentTarget)?Object(r.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(c){s.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&Object(o.g)(t,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,i)&&(s[i]=a);return s}return t}function l(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function f(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=v(t,e);return l(r)>n?f(t,e-1,n):r}function h(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(o.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(a.a)(e)+"]":e}function d(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new i.a),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=h(t);return Object(o.i)(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var a=h(e,t);if(Object(o.i)(a))return a;var s=p(e),c=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(c[u]=d(u,s[u],n-1,r));return r.unmemoize(e),c}function v(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return d(t,n,e)})))}catch(n){return"**non-serializable**"}}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(s.d)(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:Object(s.d)(o,e)}return""}}).call(this,n("yLpj"))},"8GlL":function(t,e,n){"use strict";var r=n("HAuM"),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},"9/Zf":function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return i})),n.d(e,"i",(function(){return a})),n.d(e,"h",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return l})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return h}));var r=n("+A1k"),o=(n("+924"),{});function i(){return Object(r.b)()?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var t=i(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function s(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function c(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function u(t){var e=i();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var o=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),o}function p(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function l(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(n){}}function f(){try{return document.location.href}catch(t){return""}}function h(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}}).call(this,n("yLpj"))},"9AQC":function(t,e,n){"use strict";function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(t,Error)}}function o(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function i(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(t){return"undefined"!=typeof Event&&v(t,Event)}function l(t){return"undefined"!=typeof Element&&v(t,Element)}function f(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function h(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function d(t){return u(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t,e){try{return t instanceof e}catch(n){return!1}}n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"k",(function(){return s})),n.d(e,"i",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"f",(function(){return p})),n.d(e,"c",(function(){return l})),n.d(e,"j",(function(){return f})),n.d(e,"m",(function(){return h})),n.d(e,"l",(function(){return d})),n.d(e,"g",(function(){return v}))},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},SEBh:function(t,e,n){var r=n("glrk"),o=n("HAuM"),i=n("tiKp")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},STAE:function(t,e,n){var r=n("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},WSEr:function(t,e,n){"use strict";n.r(e),n.d(e,"Severity",(function(){return c})),n.d(e,"Status",(function(){return u})),n.d(e,"addGlobalEventProcessor",(function(){return x})),n.d(e,"addBreadcrumb",(function(){return G})),n.d(e,"captureException",(function(){return H})),n.d(e,"captureEvent",(function(){return W})),n.d(e,"captureMessage",(function(){return q})),n.d(e,"configureScope",(function(){return Y})),n.d(e,"getHubFromCarrier",(function(){return F})),n.d(e,"getCurrentHub",(function(){return A})),n.d(e,"Hub",(function(){return D})),n.d(e,"makeMain",(function(){return P})),n.d(e,"Scope",(function(){return O})),n.d(e,"startTransaction",(function(){return Z})),n.d(e,"setContext",(function(){return X})),n.d(e,"setExtra",(function(){return V})),n.d(e,"setExtras",(function(){return J})),n.d(e,"setTag",(function(){return $})),n.d(e,"setTags",(function(){return z})),n.d(e,"setUser",(function(){return K})),n.d(e,"withScope",(function(){return Q})),n.d(e,"BrowserClient",(function(){return ve})),n.d(e,"injectReportDialog",(function(){return Xt})),n.d(e,"eventFromException",(function(){return It})),n.d(e,"eventFromMessage",(function(){return Nt})),n.d(e,"defaultIntegrations",(function(){return we})),n.d(e,"forceLoad",(function(){return Re})),n.d(e,"init",(function(){return Se})),n.d(e,"lastEventId",(function(){return Te})),n.d(e,"onLoad",(function(){return Ie})),n.d(e,"showReportDialog",(function(){return ke})),n.d(e,"flush",(function(){return Ne})),n.d(e,"close",(function(){return Ce})),n.d(e,"wrap",(function(){return De})),n.d(e,"SDK_NAME",(function(){return he})),n.d(e,"SDK_VERSION",(function(){return de})),n.d(e,"Integrations",(function(){return Ae})),n.d(e,"Transports",(function(){return i}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return _e})),n.d(r,"InboundFilters",(function(){return ge}));var o={};n.r(o),n.d(o,"GlobalHandlers",(function(){return Ee})),n.d(o,"TryCatch",(function(){return me})),n.d(o,"Breadcrumbs",(function(){return fe})),n.d(o,"LinkedErrors",(function(){return Oe})),n.d(o,"UserAgent",(function(){return xe}));var i={};n.r(i),n.d(i,"BaseTransport",(function(){return Ut})),n.d(i,"FetchTransport",(function(){return Bt})),n.d(i,"XHRTransport",(function(){return Mt}));var a=function(t,e){return(a=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 s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c,u,p=function(){return(p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function l(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 f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(c||(c={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(c||(c={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(u||(u={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(u||(u={}));var d=function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}var y,g=n("9AQC"),b=n("kdvv");n("p532");!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(y||(y={}));var m=function(){function t(t){var e=this;this._state=y.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(y.RESOLVED,t)},this._reject=function(t){e._setResult(y.REJECTED,t)},this._setResult=function(t,n){e._state===y.PENDING&&(Object(g.m)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==y.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||(e._state===y.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===y.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach((function(e,a){t.resolve(e).then((function(t){i[a]=t,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(r){return void o(r)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(r){return void o(r)}else o(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var o,i;return n.then((function(t){i=!1,o=t,e&&e()}),(function(t){i=!0,o=t,e&&e()})).then((function(){i?r(o):t(o)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),E=n("9/Zf"),O=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=_(e._breadcrumbs),n._tags=d({},e._tags),n._extra=d({},e._extra),n._contexts=d({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=_(e._eventProcessors)),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._notifyScopeListeners(),this},t.prototype.setTags=function(t){return this._tags=d(d({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=d(d({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=d(d({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=d(d({},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=d(d({},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,e,n,r,o=this.getSpan();return(null===(t=o)||void 0===t?void 0:t.transaction)?null===(e=o)||void 0===e?void 0:e.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},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=d(d({},this._tags),e._tags),this._extra=d(d({},this._extra),e._extra),this._contexts=d(d({},this._contexts),e._contexts),e._user&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint)):Object(g.h)(e)&&(e=e,this._tags=d(d({},this._tags),e.tags),this._extra=d(d({},this._extra),e.extra),this._contexts=d(d({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint)),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._span=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=d({timestamp:Object(b.a)()},t);return this._breadcrumbs=void 0!==e&&e>=0?_(this._breadcrumbs,[n]).slice(-e):_(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){return this._extra&&Object.keys(this._extra).length&&(t.extra=d(d({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=d(d({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=d(d({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=d(d({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span&&(t.contexts=d({trace:this._span.getTraceContext()},t.contexts)),this._applyFingerprint(t),t.breadcrumbs=_(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(_(j(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,r){var o=this;return void 0===r&&(r=0),new m((function(i,a){var s=t[r];if(null===e||"function"!=typeof s)i(e);else{var c=s(d({},e),n);Object(g.m)(c)?c.then((function(e){return o._notifyEventProcessors(t,e,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(t,c,n,r+1).then(i).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){t._scopeListeners.forEach((function(e){e(t)})),t._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 j(){var t=Object(E.e)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function x(t){j().push(t)}var w=function(){return(w=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function S(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function k(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(S(arguments[e]));return t}var T=Object(E.e)(),R="Sentry Logger ",I=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(E.c)((function(){T.console.log(R+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(E.c)((function(){T.console.warn(R+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(E.c)((function(){T.console.error(R+"[Error]: "+t.join(" "))}))},t}();T.__SENTRY__=T.__SENTRY__||{};var N=T.__SENTRY__.logger||(T.__SENTRY__.logger=new I),C=n("+A1k"),D=function(){function t(t,e,n){void 0===e&&(e=new O),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=e,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=O.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=Object(E.i)(),r=e;if(!e){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}r={originalException:t,syntheticException:o}}return this._invokeClient("captureException",t,d(d({},r),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=Object(E.i)(),o=n;if(!n){var i=void 0;try{throw new Error(t)}catch(a){i=a}o={originalException:t,syntheticException:i}}return this._invokeClient("captureMessage",t,e,d(d({},o),{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=Object(E.i)();return this._invokeClient("captureEvent",t,d(d({},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 i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var p=Object(b.a)(),l=d({timestamp:p},t),f=s?Object(E.c)((function(){return s(l,e)})):l;null!==f&&r.addBreadcrumb(f,Math.min(u,100))}}},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=P(this);try{t(this)}finally{P(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return N.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._invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[t]&&(e=a)[t].apply(e,_(n,[i]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=L(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[t])return o.extensions[t].apply(this,e);N.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function L(){var t=Object(E.e)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function P(t){var e=L(),n=F(e);return B(e,t),n}function A(){var t=L();return U(t)&&!F(t).isOlderThan(3)||B(t,new D),Object(C.b)()?function(t){try{var e=(r=L().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return F(t);if(!U(e)||F(e).isOlderThan(3)){var n=F(t).getStackTop();B(e,new D(n.client,O.clone(n.scope)))}return F(e)}catch(o){return F(t)}var r}(t):F(t)}function U(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function F(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new D),t.__SENTRY__.hub}function B(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function M(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=A();if(r&&r[t])return r[t].apply(r,k(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function H(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return M("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function q(t,e){var n;try{throw new Error(t)}catch(r){n=r}return M("captureMessage",t,"string"==typeof e?e:void 0,w({originalException:t,syntheticException:n},"string"!=typeof e?{captureContext:e}:void 0))}function W(t){return M("captureEvent",t)}function Y(t){M("configureScope",t)}function G(t){M("addBreadcrumb",t)}function X(t,e){M("setContext",t,e)}function J(t){M("setExtras",t)}function z(t){M("setTags",t)}function V(t,e){M("setExtra",t,e)}function $(t,e){M("setTag",t,e)}function K(t){M("setUser",t)}function Q(t){M("withScope",t)}function Z(t,e){return M("startTransaction",w({},t),e)}var tt=function(){return(tt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function et(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function nt(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(et(arguments[e]));return t}var rt=n("ajKJ"),ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});var it=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,ot(r,n.prototype),r}return Object(rt.b)(e,t),e}(Error),at=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,st=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.host,r=e.path,o=e.pass,i=e.port,a=e.projectId;return e.protocol+"://"+e.user+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},t.prototype._fromString=function(t){var e=at.exec(t);if(!e)throw new it("Invalid Dsn");var n=Object(rt.c)(e.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],c=n[4],u=void 0===c?"":c,p="",l=n[5],f=l.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),l=f.pop()),l){var h=l.match(/^\d+/);h&&(l=h[0])}this._fromComponents({host:s,pass:a,path:p,projectId:l,port:u,protocol:r,user:o})},t.prototype._fromComponents=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","user","host","projectId"].forEach((function(e){if(!t[e])throw new it("Invalid Dsn: "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new it("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new it("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new it("Invalid Dsn: Invalid port "+this.port)},t}(),ct=n("6PXS"),ut=n("+924"),pt=[];function lt(t){var e={};return function(t){var e=t.defaultIntegrations&&nt(t.defaultIntegrations)||[],n=t.integrations,r=[];if(Array.isArray(n)){var o=n.map((function(t){return t.name})),i=[];e.forEach((function(t){-1===o.indexOf(t.name)&&-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))})),n.forEach((function(t){-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))}))}else"function"==typeof n?(r=n(e),r=Array.isArray(r)?r:[r]):r=nt(e);var a=r.map((function(t){return t.name}));return-1!==a.indexOf("Debug")&&r.push.apply(r,nt(r.splice(a.indexOf("Debug"),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===pt.indexOf(t.name)&&(t.setupOnce(x,A),pt.push(t.name),N.log("Integration installed: "+t.name))}(t)})),e}var ft=function(){function t(t,e){this._integrations={},this._processing=!1,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new st(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this,o=e&&e.event_id;return this._processing=!0,this._getBackend().eventFromException(t,e).then((function(t){o=r.captureEvent(t,e,n)})),o},t.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id;return this._processing=!0,(Object(g.i)(t)?this._getBackend().eventFromMessage(""+t,e,n):this._getBackend().eventFromException(t,n)).then((function(t){i=o.captureEvent(t,n,r)})),i},t.prototype.captureEvent=function(t,e,n){var r=this,o=e&&e.event_id;return this._processing=!0,this._processEvent(t,e,n).then((function(t){o=t&&t.event_id,r._processing=!1})).then(null,(function(t){N.error(t),r._processing=!1})),o},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(n){return clearInterval(n.interval),e._getBackend().getTransport().close(t).then((function(t){return n.ready&&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=lt(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return N.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._isClientProcessing=function(t){var e=this;return new m((function(n){var r=0,o=0;clearInterval(o),o=setInterval((function(){e._processing?(r+=1,t&&r>=t&&n({interval:o,ready:!1})):n({interval:o,ready:!0})}),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,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=tt(tt({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Object(E.i)()),timestamp:t.timestamp||Object(b.a)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=e;n&&n.captureContext&&(s=O.clone(s).update(n.captureContext));var c=m.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(t){return"number"==typeof i&&i>0?r._normalizeEvent(t,i):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=tt(tt(tt(tt(tt({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return tt(tt({},t),t.data&&{data:Object(ct.c)(t.data,e)})}))}),t.user&&{user:Object(ct.c)(t.user,e)}),t.contexts&&{contexts:Object(ct.c)(t.contexts,e)}),t.extra&&{extra:Object(ct.c)(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,a=void 0===i?250:i;void 0===t.environment&&void 0!==n&&(t.environment=n),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=Object(ut.d)(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Object(ut.d)(s.value,a));var c=t.request;c&&c.url&&(c.url=Object(ut.d)(c.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=t.sdk,n=Object.keys(this._integrations);e&&n.length>0&&(e.integrations=n)},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate;if(!this._isEnabled())return m.reject("SDK not enabled, will not send event.");var s="transaction"===t.type;return!s&&"number"==typeof a&&Math.random()>a?m.reject("This event has been sampled, will not send event."):new m((function(o,a){r._prepareEvent(t,n,e).then((function(t){if(null!==t){var n=t;if(e&&e.data&&!0===e.data.__sentry__||!i||s)return r._sendEvent(n),void o(n);var c=i(t,e);if(void 0===c)N.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(g.m)(c))r._handleAsyncBeforeSend(c,o,a);else{if(null===(n=c))return N.log("`beforeSend` returned `null`, will not send event."),void o(null);r._sendEvent(n),o(n)}}else a("An event processor returned null, will not send event.")})).then(null,(function(t){r.captureException(t,{data:{__sentry__:!0},originalException:t}),a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))}))},t.prototype._handleAsyncBeforeSend=function(t,e,n){var r=this;t.then((function(t){null!==t?(r._sendEvent(t),e(t)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(t){n("beforeSend rejected with "+t)}))},t}(),ht=function(){function t(){}return t.prototype.sendEvent=function(t){return m.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})},t.prototype.close=function(t){return m.resolve(!0)},t}(),dt=function(){function t(t){this._options=t,this._options.dsn||N.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new it("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new it("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){N.error("Error while sending event: "+t)}))},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new ht},t}();function vt(){if(!("fetch"in Object(E.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function _t(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function yt(){if(!vt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var gt=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,mt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Et=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ot=/\((\S*)(?::(\d+))(?::(\d+))\)/,jt=/Minified React error #\d+;/i;function xt(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:jt.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),a=[],s=0;s<i.length;s+=2){var c=null;(e=r.exec(i[s]))?c={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=o.exec(i[s]))&&(c={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),c&&(!c.func&&c.line&&(c.func="?"),a.push(c))}if(!a.length)return null;return{message:St(t),name:t.name,stack:a}}(t))return wt(e,n)}catch(r){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r,o=[],i=t.stack.split("\n"),a=0;a<i.length;++a){if(n=gt.exec(i[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=Ot.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=mt.exec(i[a]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=bt.exec(i[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=Et.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==a||n[5]||void 0===t.columnNumber||(o[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),o.push(r)}if(!o.length)return null;return{message:St(t),name:t.name,stack:o}}(t))return wt(e,n)}catch(r){}return{message:St(t),name:t&&t.name,stack:[],failed:!0}}function wt(t,e){try{return p(p({},t),{stack:t.stack.slice(e)})}catch(n){return t}}function St(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function kt(t){var e=Rt(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Tt(t){return{exception:{values:[kt(t)]}}}function Rt(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function It(t,e,n){var r=Ct(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return Object(E.a)(r,{handled:!0,type:"generic"}),r.level=c.Error,n&&n.event_id&&(r.event_id=n.event_id),m.resolve(r)}function Nt(t,e,n,r){void 0===n&&(n=c.Info);var o=Dt(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),m.resolve(o)}function Ct(t,e,n){var r;if(void 0===n&&(n={}),Object(g.e)(t)&&t.error)return r=Tt(xt(t=t.error));if(Object(g.a)(t)||Object(g.b)(t)){var o=t,i=o.name||(Object(g.a)(o)?"DOMError":"DOMException"),a=o.message?i+": "+o.message:i;return r=Dt(a,e,n),Object(E.b)(r,a),r}return Object(g.d)(t)?r=Tt(xt(t)):Object(g.h)(t)||Object(g.f)(t)?(r=function(t,e,n){var r={exception:{values:[{type:Object(g.f)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(ct.a)(t)}]},extra:{__serialized__:Object(ct.d)(t)}};if(e){var o=Rt(xt(e).stack);r.stacktrace={frames:o}}return r}(t,e,n.rejection),Object(E.a)(r,{synthetic:!0}),r):(r=Dt(t,e,n),Object(E.b)(r,""+t,void 0),Object(E.a)(r,{synthetic:!0}),r)}function Dt(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var o=Rt(xt(e).stack);r.stacktrace={frames:o}}return r}function Lt(t,e){var n="transaction"===t.type,r={body:JSON.stringify(t),url:n?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(n){var o=JSON.stringify({event_id:t.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:t.type})+"\n"+r.body;r.body=o}return r}var Pt=function(){function t(t){this.dsn=t,this._dsnObject=new st(t)}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+e.toString()),t)if("user"===o){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(t[o]));return r.length?n+"?"+r.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t={sentry_key:this._dsnObject.user,sentry_version:"7"};return Object(ct.e)(t)},t}(),At=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var e=this;return this.isReady()?(-1===this._buffer.indexOf(t)&&this._buffer.push(t),t.then((function(){return e.remove(t)})).then(null,(function(){return e.remove(t).then(null,(function(){}))})),t):m.reject(new it("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new m((function(n){var r=setTimeout((function(){t&&t>0&&n(!1)}),t);m.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}(),Ut=function(){function t(t){this.options=t,this._buffer=new At(30),this._rateLimits={},this._api=new Pt(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new it("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.eventType,n=t.response,r=t.headers,o=t.resolve,i=t.reject,a=u.fromHttpCode(n.status);this._handleRateLimit(r)&&N.warn("Too many requests, backing off till: "+this._disabledUntil(e)),a!==u.Success?i(n):o({status:a})},t.prototype._disabledUntil=function(t){return this._rateLimits[t]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,r,o,i=Date.now(),a=t["x-sentry-rate-limits"],s=t["retry-after"];if(a){try{for(var c=l(a.trim().split(",")),u=c.next();!u.done;u=c.next()){var p=u.value.split(":",2),f=parseInt(p[0],10),h=1e3*(isNaN(f)?60:f);try{for(var d=(r=void 0,l(p[1].split(";"))),v=d.next();!v.done;v=d.next()){var _=v.value;this._rateLimits[_||"all"]=new Date(i+h)}}catch(y){r={error:y}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}catch(g){e={error:g}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+Object(E.g)(i,s)),!0)},t}(),Ft=Object(E.e)(),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.sendEvent=function(t){var e=this,n=t.type||"event";if(this._isRateLimited(n))return Promise.reject({event:t,reason:"Transport locked till "+this._disabledUntil(n)+" due to too many requests.",status:429});var r=Lt(t,this._api),o={body:r.body,method:"POST",referrerPolicy:yt()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(o,this.options.fetchParameters),void 0!==this.options.headers&&(o.headers=this.options.headers),this._buffer.add(new m((function(t,i){Ft.fetch(r.url,o).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};e._handleResponse({eventType:n,response:r,headers:o,resolve:t,reject:i})})).catch(i)})))},e}(Ut),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.sendEvent=function(t){var e=this,n=t.type||"event";if(this._isRateLimited(n))return Promise.reject({event:t,reason:"Transport locked till "+this._disabledUntil(n)+" due to too many requests.",status:429});var r=Lt(t,this._api);return this._buffer.add(new m((function(t,o){var i=new XMLHttpRequest;for(var a in i.onreadystatechange=function(){if(4===i.readyState){var r={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};e._handleResponse({eventType:n,response:i,headers:r,resolve:t,reject:o})}},i.open("POST",r.url),e.options.headers)e.options.headers.hasOwnProperty(a)&&i.setRequestHeader(a,e.options.headers[a]);i.send(r.body)})))},e}(Ut),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.eventFromException=function(t,e){return It(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=c.Info),Nt(this._options,t,e,n)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=p(p({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(e):vt()?new Bt(e):new Mt(e)},e}(dt),qt=0;function Wt(){return qt>0}function Yt(){qt+=1,setTimeout((function(){qt-=1}))}function Gt(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(i){return t}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(t){return Gt(t,e)}));return t.handleEvent?t.handleEvent.apply(this,o):t.apply(this,o)}catch(i){throw Yt(),Q((function(t){t.addEventProcessor((function(t){var n=p({},t);return e.mechanism&&(Object(E.b)(n,void 0,void 0),Object(E.a)(n,e.mechanism)),n.extra=p(p({},n.extra),{arguments:r}),n})),H(i)})),i}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch(a){}t.prototype=t.prototype||{},r.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch(a){}return r}function Xt(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var e=document.createElement("script");e.async=!0,e.src=new Pt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}else N.error("Missing dsn option in showReportDialog call");else N.error("Missing eventId option in showReportDialog call")}var Jt,zt=n("pRiV"),Vt=Object(E.e)(),$t={},Kt={};function Qt(t){if(!Kt[t])switch(Kt[t]=!0,t){case"console":!function(){if(!("console"in Vt))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in Vt.console&&Object(ct.b)(Vt.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];te("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,Vt.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Vt))return;Vt.document.addEventListener("click",ae("click",te.bind(null,"dom")),