Comparing sensitive data, confidential files or internal emails?

Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.

Untitled diff

Created Diff never expires
0 removals
2 lines
0 additions
2 lines
/*! @sentry/browser 4.6.6 (df72946f) | https://github.com/getsentry/sentry-javascript */
/*! @sentry/browser 4.6.6 (df72946f) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var e=function(t,n){return(e=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,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,o,i=function(){return(i=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,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}u((r=r.apply(t,e||[])).next())})}function a(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-->0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}function p(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function f(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function h(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function d(t){return void 0===t}function v(t){return"function"==typeof t}function g(t){return"[object String]"===Object.prototype.toString.call(t)}function m(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function y(t){return"[object Array]"===Object.prototype.toString.call(t)}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function E(t){return t!=t}(r=t.Severity||(t.Severity={})).Fatal="fatal",r.Error="error",r.Warning="warning",r.Log="log",r.Info="info",r.Debug="debug",r.Critical="critical",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}}}(t.Severity||(t.Severity={})),(o=t.Status||(t.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",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}}(t.Status||(t.Status={}));var x={};function _(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:x}function S(){var t=_(),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 w(t){var e,n,r,o,i,s=[];if(!t||!t.tagName)return"";if(s.push(t.tagName.toLowerCase()),t.id&&s.push("#"+t.id),(e=t.className)&&g(e))for(n=e.split(/\s+/),i=0;i<n.length;i++)s.push("."+n[i]);var a=["type","name","title","alt"];for(i=0;i<a.length;i++)r=a[i],(o=t.getAttribute(r))&&s.push("["+r+'="'+o+'"]');return s.join("")}function k(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 O(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 T(t){var e=_();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var j=function(){function t(){this.hasWeakSet="function"==typeof WeakSet,this.inner=this.hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.hasWeakSet)return!!this.inner.has(t)||(this.inner.add(t),!1);for(var e=0;e<this.inner.length;e++){if(this.inner[e]===t)return!0}return this.inner.push(t),!1},t.prototype.unmemoize=function(t){if(this.hasWeakSet)this.inner.delete(t);else for(var e=0;e<this.inner.length;e++)if(this.inner[e]===t){this.inner.splice(e,1);break}},t}();function I(t,e){return void 0===e&&(e=0),0!==e&&g(t)?t.length<=e?t:t.substr(0,e)+"...":t}function R(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(t){n.push("[value cannot be serialized]")}}return n.join(e)}function F(t,e){return!(e.length>t.length)&&-1!==t.indexOf(e)}function C(t){return JSON.stringify(t,W({normalize:!1}))}function D(t,e,n){if(e in t&&!t[e].__sentry__){var r=t[e],o=n(r);"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:o}})),t[e]=o}}var P=3,N=102400,U=40;function L(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function M(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return I(t,40);if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=H(t);return m(n)?""+n:e}function A(t,e,n){void 0===e&&(e=P),void 0===n&&(n=N);var r=function t(e,n){if(0===n)return M(e);if(b(e)){var r={},o=e;return Object.keys(o).forEach(function(e){r[e]=t(o[e],n-1)}),r}return y(e)?e.map(function(e){return t(e,n-1)}):M(e)}(t,e);return L(C(r))>n?A(t,e-1):r}function B(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null===t||void 0===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),o=0;o<e.length;o++){var i=e[o];if(null!==i)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r}function H(t,e){return"domain"===e&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":b(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":E(t)?"[NaN]":d(t)?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t;var n}function $(t,e,n){if(void 0===e&&(e=1/0),void 0===n&&(n=new j),0===e)return M(t);var r=H(t);if(m(r))return r;var o=p(t)?function(t){var e={message:t.message,name:t.name,stack:t.stack};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(t):t,i=y(t)?[]:{};if(n.memoize(t))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=$(o[s],e-1,n));return n.unmemoize(t),i}function W(t){return void 0===t&&(t={normalize:!0}),function(e,n){return t.normalize?H($(n,t.depth),e):$(n,t.depth)}}function q(t,e){try{return JSON.parse(JSON.stringify(t,W({normalize:!0,depth:e})))}catch(t){return"**non-serializable**"}}var V=function(){function t(){this.notifyingListeners=!1,this.scopeListeners=[],this.eventProcessors=[],this.breadcrumbs=[],this.user={},this.tags={},this.extra={}}return t.prototype.addScopeListener=function(t){this.scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this.eventProcessors.push(t),this},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.notifyEventProcessors=function(t,e){return s(this,void 0,void 0,function(){var n,r,o,s,c,p,f;return a(this,function(a){switch(a.label){case 0:o=t,a.label=1;case 1:a.trys.push([1,8,9,10]),s=u(l(z(),this.eventProcessors)),c=s.next(),a.label=2;case 2:if(c.done)return[3,7];p=c.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,p(i({},o),e)];case 4:return null===(o=a.sent())?[2,null]:[3,6];case 5:return a.sent(),[3,6];case 6:return c=s.next(),[3,2];case 7:return[3,10];case 8:return f=a.sent(),n={error:f},[3,10];case 9:try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}return[7];case 10:return[2,o]}})})},t.prototype.setUser=function(t){return this.user=q(t),this.notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this.tags=i({},this.tags,((n={})[t]=q(e),n)),this.notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this.extra=i({},this.extra,((n={})[t]=q(e),n)),this.notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this.fingerprint=q(t),this.notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this.level=q(t),this.notifyScopeListeners(),this},t.clone=function(e){var n=new t;return B(n,e,{scopeListeners:[]}),e&&(n.extra=B(e.extra),n.tags=B(e.tags),n.breadcrumbs=l(e.breadcrumbs),n.eventProcessors=l(e.eventProcessors)),n},t.prototype.clear=function(){this.breadcrumbs=[],this.tags={},this.extra={},this.user={},this.level=void 0,this.fingerprint=void 0,this.notifyScopeListeners()},t.prototype.addBreadcrumb=function(t,e){this.breadcrumbs=void 0!==e&&e>=0?l(this.breadcrumbs,[q(t)]).slice(-e):l(this.breadcrumbs,[q(t)]),this.notifyScopeListeners()},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.message&&(t.fingerprint=t.fingerprint.concat(t.message)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,e,n){return s(this,void 0,void 0,function(){return a(this,function(r){return this.extra&&Object.keys(this.extra).length&&(t.extra=i({},this.extra,t.extra)),this.tags&&Object.keys(this.tags).length&&(t.tags=i({},this.tags,t.tags)),this.user&&Object.keys(this.user).length&&(t.user=i({},this.user,t.user)),this.level&&(t.level=this.level),this.applyFingerprint(t),(!t.breadcrumbs||0===t.breadcrumbs.length)&&this.breadcrumbs.length>0&&(t.breadcrumbs=void 0!==n&&n>=0?this.breadcrumbs.slice(-n):this.breadcrumbs),[2,this.notifyEventProcessors(t,e)]})})},t}();function z(){var t=_();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Y(t){z().push(t)}var G=_(),X=new(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&&T(function(){G.console.log("Sentry Logger [Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&T(function(){G.console.warn("Sentry Logger [Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&T(function(){G.console.error("Sentry Logger [Error]: "+t.join(" "))})},t}()),J=3,K=function(){function t(t,e,n){void 0===e&&(e=new V),void 0===n&&(n=J),this.version=n,this.stack=[],this.stack.push({client:t,scope:e})}return t.prototype.invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,l(n,[o.scope]))},t.prototype.invokeClientAsync=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,l(n,[o.scope])).catch(function(t){X.error(t)})},t.prototype.isOlderThan=function(t){return this.version<t},t.prototype.bindClient=function(t){var e=this.getStackTop();e.client=t,e&&e.scope&&t&&e.scope.addScopeListener(function(e){if(t.getBackend)try{t.getBackend().storeScope(e)}catch(t){}})},t.prototype.pushScope=function(){var t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=V.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n},t.prototype.popScope=function(){return void 0!==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=S();return this.invokeClientAsync("captureException",t,i({},e,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=S();return this.invokeClientAsync("captureMessage",t,e,i({},n,{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=S();return this.invokeClientAsync("captureEvent",t,i({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){this.invokeClient("addBreadcrumb",t,i({},e))},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=Q(this);try{t(this)}finally{Q(e)}},t.prototype.getIntegration=function(t){try{return this.getClient().getIntegration(t)}catch(e){return X.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t}();function Z(){var t=_();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function Q(t){var e=Z(),n=nt(e);return rt(e,t),n}function tt(){var t,e,n=Z();et(n)&&!nt(n).isOlderThan(J)||rt(n,new K);try{var r=(t=module,e="domain",t.require(e)).active;if(!r)return nt(n);if(!et(r)||nt(r).isOlderThan(J)){var o=nt(n).getStackTop();rt(r,new K(o.client,V.clone(o.scope)))}return nt(r)}catch(t){return nt(n)}}function et(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function nt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__={},t.__SENTRY__.hub=new K,t.__SENTRY__.hub)}function rt(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function ot(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=tt();if(r&&r[t])return r[t].apply(r,l(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function captureException(t){var e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}return ot("captureException",t,{originalException:t,syntheticException:e})}function captureMessage(t,e){var n;try{throw new Error(t)}catch(t){n=t}return ot("captureMessage",t,e,{originalException:t,syntheticException:n})}function it(t){ot("withScope",t)}var st=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,Object.setPrototypeOf(r,n.prototype),r}return n(e,t),e}(Error),at=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,ut=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,s=e.projectId;return e.protocol+"://"+e.user+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+s},t.prototype.fromString=function(t){var e=at.exec(t);if(!e)throw new st("Invalid Dsn");var n=c(e.slice(1),6),r=n[0],o=n[1],i=n[2],s=void 0===i?"":i,a=n[3],u=n[4],l=void 0===u?"":u,p="",f=n[5],h=f.split("/");h.length>1&&(p=h.slice(0,-1).join("/"),f=h.pop()),B(this,{host:a,pass:s,path:p,projectId:f,port:l,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,e;try{for(var n=u(["protocol","user","host","projectId"]),r=n.next();!r.done;r=n.next()){var o=r.value;if(!this[o])throw new st("Invalid Dsn: Missing "+o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}if("http"!==this.protocol&&"https"!==this.protocol)throw new st('Invalid Dsn: Unsupported protocol "'+this.protocol+'"');if(this.port&&E(parseInt(this.port,10)))throw new st('Invalid Dsn: Invalid port number "'+this.port+'"')},t}(),ct=function(){function t(t){this.dsn=t,this.dsnObject=new ut(t)}return t.prototype.getDsn=function(){return this.dsnObject},t.prototype.getStoreEndpoint=function(){return""+this.getBaseUrl()+this.getStoreEndpointPath()},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var t,e={sentry_key:this.dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(t=e,Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"))},t.prototype.getBaseUrl=function(){var t=this.dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n},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_timestamp="+(new Date).getTime()),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.getBaseUrl()+(e.path?"/"+e.path:"")+"/api/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}();var lt=[];function pt(t){var e={};return function(t){var e,n,r,o,i=t.defaultIntegrations&&l(t.defaultIntegrations)||[],s=t.integrations,a=[];if(Array.isArray(s)){var c=s.map(function(t){return t.name}),p=[];try{for(var f=u(i),h=f.next();!h.done;h=f.next()){var d=h.value;-1===c.indexOf(ft(d))&&-1===p.indexOf(ft(d))&&(a.push(d),p.push(ft(d)))}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}try{for(var v=u(s),g=v.next();!g.done;g=v.next()){var m=g.value;-1===p.indexOf(ft(m))&&(a.push(m),p.push(ft(m)))}}catch(t){r={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else{if("function"!=typeof s)return l(i);a=s(i),a=Array.isArray(a)?a:[a]}return a}(t).forEach(function(n){e[ft(n)]=n,function(t,e){if(-1===lt.indexOf(ft(t))){try{t.setupOnce()}catch(n){t.install&&(X.warn("Integration "+ft(t)+': The install method is deprecated. Use "setupOnce".'),t.install(e))}lt.push(ft(t)),X.log("Integration installed: "+ft(t))}}(n,t)}),e}function ft(t){return t.constructor.id||t.name}var ht,dt=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){return s(this,void 0,void 0,function(){var e=this;return a(this,function(n){return this.isReady()?(-1===this.buffer.indexOf(t)&&this.buffer.push(t),t.then(function(){return s(e,void 0,void 0,function(){return a(this,function(e){return[2,this.remove(t)]})})}).catch(function(){return s(e,void 0,void 0,function(){return a(this,function(e){return[2,this.remove(t).catch(function(){})]})})}),[2,t]):[2,Promise.reject(new st("Not adding Promise due to buffer limit reached."))]})})},t.prototype.remove=function(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,this.buffer.splice(this.buffer.indexOf(t),1)[0]]})})},t.prototype.length=function(){return this.buffer.length},t.prototype.drain=function(t){return s(this,void 0,void 0,function(){var e=this;return a(this,function(n){return[2,new Promise(function(n){var r=setTimeout(function(){t&&t>0&&n(!1)},t);Promise.all(e.buffer).then(function(){clearTimeout(r),n(!0)}).catch(function(){n(!0)})})]})})},t}(),vt=function(){function e(t,e){this.buffer=new dt,this.backend=new t(e),this.options=e,e.dsn&&(this.dsn=new ut(e.dsn)),this.integrations=pt(this.options)}return e.prototype.install=function(){if(!this.isEnabled())return this.installed=!1;var t=this.getBackend();return!this.installed&&t.install&&t.install(),this.installed=!0},e.prototype.captureException=function(t,e,n){return s(this,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.buffer.add(s(r,void 0,void 0,function(){var r;return a(this,function(o){switch(o.label){case 0:return[4,this.getBackend().eventFromException(t,e)];case 1:return r=o.sent(),[2,this.captureEvent(r,e,n)]}})}))]})})},e.prototype.captureMessage=function(t,e,n,r){return s(this,void 0,void 0,function(){var o=this;return a(this,function(i){return[2,this.buffer.add(s(o,void 0,void 0,function(){var o,i;return a(this,function(s){switch(s.label){case 0:return m(t)?[4,this.getBackend().eventFromMessage(""+t,e,n)]:[3,2];case 1:return i=s.sent(),[3,4];case 2:return[4,this.getBackend().eventFromException(t,n)];case 3:i=s.sent(),s.label=4;case 4:return o=i,[2,this.captureEvent(o,n,r)]}})}))]})})},e.prototype.captureEvent=function(t,e,n){return s(this,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.buffer.add(s(r,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.processEvent(t,function(t){return s(r,void 0,void 0,function(){return a(this,function(e){return[2,this.getBackend().sendEvent(t)]})})},e,n)]})}))]})})},e.prototype.addBreadcrumb=function(t,e,n){var r=this.getOptions(),o=r.beforeBreadcrumb,s=r.maxBreadcrumbs,a=void 0===s?30:s;if(!(a<=0)){var u=(new Date).getTime()/1e3,c=i({timestamp:u},t),l=o?T(function(){return o(c,e)}):c;null!==l&&this.getBackend().storeBreadcrumb(l)&&n&&n.addBreadcrumb(l,Math.min(a,100))}},e.prototype.getDsn=function(){return this.dsn},e.prototype.getOptions=function(){return this.options},e.prototype.getBackend=function(){return this.backend},e.prototype.isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this.dsn},e.prototype.prepareEvent=function(t,e,n){return s(this,void 0,void 0,function(){var r,o,s,u,c,l,p,f,h;return a(this,function(a){return r=this.getOptions(),o=r.environment,s=r.maxBreadcrumbs,u=void 0===s?30:s,c=r.release,l=r.dist,void 0===(p=i({},t)).environment&&void 0!==o&&(p.environment=o),void 0===p.release&&void 0!==c&&(p.release=c),void 0===p.dist&&void 0!==l&&(p.dist=l),p.message&&(p.message=I(p.message,250)),(f=p.exception&&p.exception.values&&p.exception.values[0])&&f.value&&(f.value=I(f.value,250)),(h=p.request)&&h.url&&(h.url=I(h.url,250)),void 0===p.event_id&&(p.event_id=S()),this._addIntegrations(p.sdk),e?[2,e.applyToEvent(p,n,Math.min(u,100))]:[2,p]})})},e.prototype._addIntegrations=function(t){var e=Object.keys(this.integrations);t&&e.length>0&&(t.integrations=e)},e.prototype.processEvent=function(e,n,r,o){return s(this,void 0,void 0,function(){var i,s,u,c,l,p,f,h;return a(this,function(a){switch(a.label){case 0:return this.isEnabled()?(i=this.getOptions(),s=i.beforeSend,"number"==type
var Sentry=function(t){"use strict";var e=function(t,n){return(e=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,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,o,i=function(){return(i=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,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}u((r=r.apply(t,e||[])).next())})}function a(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-->0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}function p(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function f(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function h(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function d(t){return void 0===t}function v(t){return"function"==typeof t}function g(t){return"[object String]"===Object.prototype.toString.call(t)}function m(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function y(t){return"[object Array]"===Object.prototype.toString.call(t)}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function E(t){return t!=t}(r=t.Severity||(t.Severity={})).Fatal="fatal",r.Error="error",r.Warning="warning",r.Log="log",r.Info="info",r.Debug="debug",r.Critical="critical",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}}}(t.Severity||(t.Severity={})),(o=t.Status||(t.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",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}}(t.Status||(t.Status={}));var x={};function _(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:x}function S(){var t=_(),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 w(t){var e,n,r,o,i,s=[];if(!t||!t.tagName)return"";if(s.push(t.tagName.toLowerCase()),t.id&&s.push("#"+t.id),(e=t.className)&&g(e))for(n=e.split(/\s+/),i=0;i<n.length;i++)s.push("."+n[i]);var a=["type","name","title","alt"];for(i=0;i<a.length;i++)r=a[i],(o=t.getAttribute(r))&&s.push("["+r+'="'+o+'"]');return s.join("")}function k(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 O(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 T(t){var e=_();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var j=function(){function t(){this.hasWeakSet="function"==typeof WeakSet,this.inner=this.hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.hasWeakSet)return!!this.inner.has(t)||(this.inner.add(t),!1);for(var e=0;e<this.inner.length;e++){if(this.inner[e]===t)return!0}return this.inner.push(t),!1},t.prototype.unmemoize=function(t){if(this.hasWeakSet)this.inner.delete(t);else for(var e=0;e<this.inner.length;e++)if(this.inner[e]===t){this.inner.splice(e,1);break}},t}();function I(t,e){return void 0===e&&(e=0),0!==e&&g(t)?t.length<=e?t:t.substr(0,e)+"...":t}function R(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(t){n.push("[value cannot be serialized]")}}return n.join(e)}function F(t,e){return!(e.length>t.length)&&-1!==t.indexOf(e)}function C(t){return JSON.stringify(t,W({normalize:!1}))}function D(t,e,n){if(e in t&&!t[e].__sentry__){var r=t[e],o=n(r);"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:o}})),t[e]=o}}var P=3,N=102400,U=40;function L(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function M(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return I(t,40);if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=H(t);return m(n)?""+n:e}function A(t,e,n){void 0===e&&(e=P),void 0===n&&(n=N);var r=function t(e,n){if(0===n)return M(e);if(b(e)){var r={},o=e;return Object.keys(o).forEach(function(e){r[e]=t(o[e],n-1)}),r}return y(e)?e.map(function(e){return t(e,n-1)}):M(e)}(t,e);return L(C(r))>n?A(t,e-1):r}function B(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null===t||void 0===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),o=0;o<e.length;o++){var i=e[o];if(null!==i)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r}function H(t,e){return"domain"===e&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":b(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":E(t)?"[NaN]":d(t)?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t;var n}function $(t,e,n){if(void 0===e&&(e=1/0),void 0===n&&(n=new j),0===e)return M(t);var r=H(t);if(m(r))return r;var o=p(t)?function(t){var e={message:t.message,name:t.name,stack:t.stack};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(t):t,i=y(t)?[]:{};if(n.memoize(t))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=$(o[s],e-1,n));return n.unmemoize(t),i}function W(t){return void 0===t&&(t={normalize:!0}),function(e,n){return t.normalize?H($(n,t.depth),e):$(n,t.depth)}}function q(t,e){try{return JSON.parse(JSON.stringify(t,W({normalize:!0,depth:e})))}catch(t){return"**non-serializable**"}}var V=function(){function t(){this.notifyingListeners=!1,this.scopeListeners=[],this.eventProcessors=[],this.breadcrumbs=[],this.user={},this.tags={},this.extra={}}return t.prototype.addScopeListener=function(t){this.scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this.eventProcessors.push(t),this},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.notifyEventProcessors=function(t,e){return s(this,void 0,void 0,function(){var n,r,o,s,c,p,f;return a(this,function(a){switch(a.label){case 0:o=t,a.label=1;case 1:a.trys.push([1,8,9,10]),s=u(l(z(),this.eventProcessors)),c=s.next(),a.label=2;case 2:if(c.done)return[3,7];p=c.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,p(i({},o),e)];case 4:return null===(o=a.sent())?[2,null]:[3,6];case 5:return a.sent(),[3,6];case 6:return c=s.next(),[3,2];case 7:return[3,10];case 8:return f=a.sent(),n={error:f},[3,10];case 9:try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}return[7];case 10:return[2,o]}})})},t.prototype.setUser=function(t){return this.user=q(t),this.notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this.tags=i({},this.tags,((n={})[t]=q(e),n)),this.notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this.extra=i({},this.extra,((n={})[t]=q(e),n)),this.notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this.fingerprint=q(t),this.notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this.level=q(t),this.notifyScopeListeners(),this},t.clone=function(e){var n=new t;return B(n,e,{scopeListeners:[]}),e&&(n.extra=B(e.extra),n.tags=B(e.tags),n.breadcrumbs=l(e.breadcrumbs),n.eventProcessors=l(e.eventProcessors)),n},t.prototype.clear=function(){this.breadcrumbs=[],this.tags={},this.extra={},this.user={},this.level=void 0,this.fingerprint=void 0,this.notifyScopeListeners()},t.prototype.addBreadcrumb=function(t,e){this.breadcrumbs=void 0!==e&&e>=0?l(this.breadcrumbs,[q(t)]).slice(-e):l(this.breadcrumbs,[q(t)]),this.notifyScopeListeners()},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.message&&(t.fingerprint=t.fingerprint.concat(t.message)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,e,n){return s(this,void 0,void 0,function(){return a(this,function(r){return this.extra&&Object.keys(this.extra).length&&(t.extra=i({},this.extra,t.extra)),this.tags&&Object.keys(this.tags).length&&(t.tags=i({},this.tags,t.tags)),this.user&&Object.keys(this.user).length&&(t.user=i({},this.user,t.user)),this.level&&(t.level=this.level),this.applyFingerprint(t),(!t.breadcrumbs||0===t.breadcrumbs.length)&&this.breadcrumbs.length>0&&(t.breadcrumbs=void 0!==n&&n>=0?this.breadcrumbs.slice(-n):this.breadcrumbs),[2,this.notifyEventProcessors(t,e)]})})},t}();function z(){var t=_();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Y(t){z().push(t)}var G=_(),X=new(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&&T(function(){G.console.log("Sentry Logger [Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&T(function(){G.console.warn("Sentry Logger [Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&T(function(){G.console.error("Sentry Logger [Error]: "+t.join(" "))})},t}()),J=3,K=function(){function t(t,e,n){void 0===e&&(e=new V),void 0===n&&(n=J),this.version=n,this.stack=[],this.stack.push({client:t,scope:e})}return t.prototype.invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,l(n,[o.scope]))},t.prototype.invokeClientAsync=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,l(n,[o.scope])).catch(function(t){X.error(t)})},t.prototype.isOlderThan=function(t){return this.version<t},t.prototype.bindClient=function(t){var e=this.getStackTop();e.client=t,e&&e.scope&&t&&e.scope.addScopeListener(function(e){if(t.getBackend)try{t.getBackend().storeScope(e)}catch(t){}})},t.prototype.pushScope=function(){var t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=V.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n},t.prototype.popScope=function(){return void 0!==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=S();return this.invokeClientAsync("captureException",t,i({},e,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=S();return this.invokeClientAsync("captureMessage",t,e,i({},n,{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=S();return this.invokeClientAsync("captureEvent",t,i({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){this.invokeClient("addBreadcrumb",t,i({},e))},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=Q(this);try{t(this)}finally{Q(e)}},t.prototype.getIntegration=function(t){try{return this.getClient().getIntegration(t)}catch(e){return X.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t}();function Z(){var t=_();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function Q(t){var e=Z(),n=nt(e);return rt(e,t),n}function tt(){var t,e,n=Z();et(n)&&!nt(n).isOlderThan(J)||rt(n,new K);try{var r=(t=module,e="domain",t.require(e)).active;if(!r)return nt(n);if(!et(r)||nt(r).isOlderThan(J)){var o=nt(n).getStackTop();rt(r,new K(o.client,V.clone(o.scope)))}return nt(r)}catch(t){return nt(n)}}function et(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function nt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__={},t.__SENTRY__.hub=new K,t.__SENTRY__.hub)}function rt(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function ot(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=tt();if(r&&r[t])return r[t].apply(r,l(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function captureException(t){var e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}return ot("captureException",t,{originalException:t,syntheticException:e})}function captureMessage(t,e){var n;try{throw new Error(t)}catch(t){n=t}return ot("captureMessage",t,e,{originalException:t,syntheticException:n})}function it(t){ot("withScope",t)}var st=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,Object.setPrototypeOf(r,n.prototype),r}return n(e,t),e}(Error),at=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,ut=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,s=e.projectId;return e.protocol+"://"+e.user+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+s},t.prototype.fromString=function(t){var e=at.exec(t);if(!e)throw new st("Invalid Dsn");var n=c(e.slice(1),6),r=n[0],o=n[1],i=n[2],s=void 0===i?"":i,a=n[3],u=n[4],l=void 0===u?"":u,p="",f=n[5],h=f.split("/");h.length>1&&(p=h.slice(0,-1).join("/"),f=h.pop()),B(this,{host:a,pass:s,path:p,projectId:f,port:l,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,e;try{for(var n=u(["protocol","user","host","projectId"]),r=n.next();!r.done;r=n.next()){var o=r.value;if(!this[o])throw new st("Invalid Dsn: Missing "+o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}if("http"!==this.protocol&&"https"!==this.protocol)throw new st('Invalid Dsn: Unsupported protocol "'+this.protocol+'"');if(this.port&&E(parseInt(this.port,10)))throw new st('Invalid Dsn: Invalid port number "'+this.port+'"')},t}(),ct=function(){function t(t){this.dsn=t,this.dsnObject=new ut(t)}return t.prototype.getDsn=function(){return this.dsnObject},t.prototype.getStoreEndpoint=function(){return""+this.getBaseUrl()+this.getStoreEndpointPath()},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var t,e={sentry_key:this.dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(t=e,Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"))},t.prototype.getBaseUrl=function(){var t=this.dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n},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_timestamp="+(new Date).getTime()),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.getBaseUrl()+(e.path?"/"+e.path:"")+"/api/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}();var lt=[];function pt(t){var e={};return function(t){var e,n,r,o,i=t.defaultIntegrations&&l(t.defaultIntegrations)||[],s=t.integrations,a=[];if(Array.isArray(s)){var c=s.map(function(t){return t.name}),p=[];try{for(var f=u(i),h=f.next();!h.done;h=f.next()){var d=h.value;-1===c.indexOf(ft(d))&&-1===p.indexOf(ft(d))&&(a.push(d),p.push(ft(d)))}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}try{for(var v=u(s),g=v.next();!g.done;g=v.next()){var m=g.value;-1===p.indexOf(ft(m))&&(a.push(m),p.push(ft(m)))}}catch(t){r={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else{if("function"!=typeof s)return l(i);a=s(i),a=Array.isArray(a)?a:[a]}return a}(t).forEach(function(n){e[ft(n)]=n,function(t,e){if(-1===lt.indexOf(ft(t))){try{t.setupOnce()}catch(n){t.install&&(X.warn("Integration "+ft(t)+': The install method is deprecated. Use "setupOnce".'),t.install(e))}lt.push(ft(t)),X.log("Integration installed: "+ft(t))}}(n,t)}),e}function ft(t){return t.constructor.id||t.name}var ht,dt=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){return s(this,void 0,void 0,function(){var e=this;return a(this,function(n){return this.isReady()?(-1===this.buffer.indexOf(t)&&this.buffer.push(t),t.then(function(){return s(e,void 0,void 0,function(){return a(this,function(e){return[2,this.remove(t)]})})}).catch(function(){return s(e,void 0,void 0,function(){return a(this,function(e){return[2,this.remove(t).catch(function(){})]})})}),[2,t]):[2,Promise.reject(new st("Not adding Promise due to buffer limit reached."))]})})},t.prototype.remove=function(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,this.buffer.splice(this.buffer.indexOf(t),1)[0]]})})},t.prototype.length=function(){return this.buffer.length},t.prototype.drain=function(t){return s(this,void 0,void 0,function(){var e=this;return a(this,function(n){return[2,new Promise(function(n){var r=setTimeout(function(){t&&t>0&&n(!1)},t);Promise.all(e.buffer).then(function(){clearTimeout(r),n(!0)}).catch(function(){n(!0)})})]})})},t}(),vt=function(){function e(t,e){this.buffer=new dt,this.backend=new t(e),this.options=e,e.dsn&&(this.dsn=new ut(e.dsn)),this.integrations=pt(this.options)}return e.prototype.install=function(){if(!this.isEnabled())return this.installed=!1;var t=this.getBackend();return!this.installed&&t.install&&t.install(),this.installed=!0},e.prototype.captureException=function(t,e,n){return s(this,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.buffer.add(s(r,void 0,void 0,function(){var r;return a(this,function(o){switch(o.label){case 0:return[4,this.getBackend().eventFromException(t,e)];case 1:return r=o.sent(),[2,this.captureEvent(r,e,n)]}})}))]})})},e.prototype.captureMessage=function(t,e,n,r){return s(this,void 0,void 0,function(){var o=this;return a(this,function(i){return[2,this.buffer.add(s(o,void 0,void 0,function(){var o,i;return a(this,function(s){switch(s.label){case 0:return m(t)?[4,this.getBackend().eventFromMessage(""+t,e,n)]:[3,2];case 1:return i=s.sent(),[3,4];case 2:return[4,this.getBackend().eventFromException(t,n)];case 3:i=s.sent(),s.label=4;case 4:return o=i,[2,this.captureEvent(o,n,r)]}})}))]})})},e.prototype.captureEvent=function(t,e,n){return s(this,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.buffer.add(s(r,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.processEvent(t,function(t){return s(r,void 0,void 0,function(){return a(this,function(e){return[2,this.getBackend().sendEvent(t)]})})},e,n)]})}))]})})},e.prototype.addBreadcrumb=function(t,e,n){var r=this.getOptions(),o=r.beforeBreadcrumb,s=r.maxBreadcrumbs,a=void 0===s?30:s;if(!(a<=0)){var u=(new Date).getTime()/1e3,c=i({timestamp:u},t),l=o?T(function(){return o(c,e)}):c;null!==l&&this.getBackend().storeBreadcrumb(l)&&n&&n.addBreadcrumb(l,Math.min(a,100))}},e.prototype.getDsn=function(){return this.dsn},e.prototype.getOptions=function(){return this.options},e.prototype.getBackend=function(){return this.backend},e.prototype.isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this.dsn},e.prototype.prepareEvent=function(t,e,n){return s(this,void 0,void 0,function(){var r,o,s,u,c,l,p,f,h;return a(this,function(a){return r=this.getOptions(),o=r.environment,s=r.maxBreadcrumbs,u=void 0===s?30:s,c=r.release,l=r.dist,void 0===(p=i({},t)).environment&&void 0!==o&&(p.environment=o),void 0===p.release&&void 0!==c&&(p.release=c),void 0===p.dist&&void 0!==l&&(p.dist=l),p.message&&(p.message=I(p.message,250)),(f=p.exception&&p.exception.values&&p.exception.values[0])&&f.value&&(f.value=I(f.value,250)),(h=p.request)&&h.url&&(h.url=I(h.url,250)),void 0===p.event_id&&(p.event_id=S()),this._addIntegrations(p.sdk),e?[2,e.applyToEvent(p,n,Math.min(u,100))]:[2,p]})})},e.prototype._addIntegrations=function(t){var e=Object.keys(this.integrations);t&&e.length>0&&(t.integrations=e)},e.prototype.processEvent=function(e,n,r,o){return s(this,void 0,void 0,function(){var i,s,u,c,l,p,f,h;return a(this,function(a){switch(a.label){case 0:return this.isEnabled()?(i=this.getOptions(),s=i.beforeSend,"number"==type