!function(){"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var e={create:function(t){this.config=t},set:function(t,e){var n=this.get(t),r=this.config;if(Array.isArray(n))n.push(e);else{var o,i=t.split("."),a=i.length-1;for(o=0;o<a;o++)r=r[i[o]]={};r[i[a]]=e}return r},get:function(t){if(void 0===t)return this.config;for(var e=this.config||{},n=t.split(".");n.length&&void 0!==(e=e[n.shift()]););return e}};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var r={create:function(){this.productionDomains=e.get("productionDomains"),this.debug=e.get("debug")},isProduction:function(){if(!this.debug)return!0;var t,e=this.productionDomains,r=window.location.host,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}(e);try{for(o.s();!(t=o.n()).done;)if(t.value===r)return!0}catch(t){o.e(t)}finally{o.f()}return!1}},o=function(t,e){var n;r.isProduction()||console.log((n=e,"[".concat(t.toLowerCase(),"] ").concat(n)))};function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}var s=c((function t(e,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),new e(n)}));function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}var v=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.set(e),o("core.".concat(this.constructor.name,".bootstrap"),"Create application...")},n=[{key:"set",value:function(t){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);e.create(n),r.create(n.productionDomains)}},{key:"build",value:function(){var t=e.get("autoload");for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];new s(r).init()}}}],n&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),m=v,h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t){return t&&t.Math==Math?t:void 0}var _="object"==("undefined"==typeof globalThis?"undefined":b(globalThis))&&g(globalThis)||"object"==("undefined"==typeof window?"undefined":b(window))&&g(window)||"object"==("undefined"==typeof self?"undefined":b(self))&&g(self)||"object"==(void 0===t.g?"undefined":b(t.g))&&g(t.g)||function(){return this}()||{};function S(){return _}function O(t,e,n){var r=n||_,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}var w=["debug","info","warn","error","log","assert","trace"],j={};function P(t){if(!("console" in _))return t();var e=_.console,n={},r=Object.keys(j);r.forEach((function(t){var r=j[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((function(t){e[t]=n[t]}))}}var E,T,k=(E=!1,T={enable:function(){E=!0},disable:function(){E=!1},isEnabled:function(){return E}},h?w.forEach((function(t){T[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];E&&P((function(){var e;(e=_.console)[t].apply(e,["".concat("Sentry Logger ","[").concat(t,"]:")].concat(n))}))}})):w.forEach((function(t){T[t]=function(){}})),T);function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}var I=Object.prototype.toString;function A(t){switch(I.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return F(t,Error)}}function D(t,e){return I.call(t)==="[object ".concat(e,"]")}function C(t){return D(t,"ErrorEvent")}function R(t){return D(t,"DOMError")}function N(t){return D(t,"String")}function M(t){return"object"===x(t)&&null!==t&&"__sentry_template_string__" in t&&"__sentry_template_values__" in t}function L(t){return null===t||M(t)||"object"!==x(t)&&"function"!=typeof t}function U(t){return D(t,"Object")}function H(t){return"undefined"!=typeof Event&&F(t,Event)}function q(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function B(t){return"number"==typeof t&&t!=t}function F(t,e){try{return t instanceof e}catch(t){return!1}}function $(t){return!("object"!==x(t)||null===t||!t.__isVue&&!t._isVue)}var Y=S(),z=80;function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"<unknown>";try{for(var n,r=t,o=[],i=0,a=0,c=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||z;r&&i++<5&&!("html"===(n=J(r,c))||i>1&&a+3*o.length+n.length>=u);)o.push(n),a+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch(t){return"<unknown>"}}function J(t,e){var n,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(Y.HTMLElement&&c instanceof HTMLElement&&c.dataset&&c.dataset.sentryComponent)return c.dataset.sentryComponent;u.push(c.tagName.toLowerCase());var s=e&&e.length?e.filter((function(t){return c.getAttribute(t)})).map((function(t){return[t,c.getAttribute(t)]})):null;if(s&&s.length)s.forEach((function(t){u.push("[".concat(t[0],'="').concat(t[1],'"]'))}));else if(c.id&&u.push("#".concat(c.id)),(n=c.className)&&N(n))for(r=n.split(/\s+/),a=0;a<r.length;a++)u.push(".".concat(r[a]));var l=["aria-label","type","name","title","alt"];for(a=0;a<l.length;a++)o=l[a],(i=c.getAttribute(o))&&u.push("[".concat(o,'="').concat(i,'"]'));return u.join("")}function W(t){if(!Y.HTMLElement)return null;for(var e=t,n=0;n<5;n++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}function X(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}function V(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{$(o)?n.push("[VueViewModel]"):n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function K(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((function(n){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!N(t)&&(D(e,"RegExp")?e.test(t):!!N(e)&&(n?t===e:t.includes(e)))}(t,n,e)}))}function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function et(t,e,n){return(e=function(t){var e=function(t){if("object"!=Z(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Z(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t,e,n){if(e in t){var r=t[e],o=n(r);"function"==typeof o&&ot(o,r),t[e]=o}}function rt(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){h&&k.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}function ot(t,e){try{var n=e.prototype||{};t.prototype=e.prototype=n,rt(t,"__sentry_original__",e)}catch(t){}}function it(t){return t.__sentry_original__}function at(t){if(A(t))return tt({message:t.message,name:t.name,stack:t.stack},ut(t));if(H(t)){var e=tt({type:t.type,target:ct(t.target),currentTarget:ct(t.currentTarget)},ut(t));return"undefined"!=typeof CustomEvent&&F(t,CustomEvent)&&(e.detail=t.detail),e}return t}function ct(t){try{return"undefined"!=typeof Element&&F(t,Element)?G(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function ut(t){if("object"===Z(t)&&null!==t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function st(t){return lt(t,new Map)}function lt(t,e){if(function(t){if(!U(t))return!1;try{var e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){var n=e.get(t);if(void 0!==n)return n;var r={};e.set(t,r);for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o];void 0!==t[a]&&(r[a]=lt(t[a],e))}return r}if(Array.isArray(t)){var c=e.get(t);if(void 0!==c)return c;var u=[];return e.set(t,u),t.forEach((function(t){u.push(lt(t,e))})),u}return t}function ft(t){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(t)}function pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(n),!0).forEach((function(e){dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dt(t,e,n){return(e=function(t){var e=function(t){if("object"!=ft(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ft(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vt(){var t=_,e=t.crypto||t.msCrypto,n=function(){return 16*Math.random()};try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=function(){var t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(t){return(t^(15&n())>>t/4).toString(16)}))}function mt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ht(t){var e=t.message,n=t.event_id;if(e)return e;var r=mt(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function bt(t,e,n){var r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function gt(t,e){var n=mt(t);if(n){var r=n.mechanism;if(n.mechanism=yt(yt(yt({},{type:"generic",handled:!0}),r),e),e&&"data" in e){var o=yt(yt({},r&&r.data),e.data);n.mechanism.data=o}}}function _t(t){if(t&&t.__sentry_captured__)return!0;try{rt(t,"__sentry_captured__",!0)}catch(t){}return!1}function St(t){return Array.isArray(t)?t:[t]}var Ot,wt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function jt(t){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function Pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,Et(r.key),r)}}function Et(t){var e=function(t){if("object"!=jt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==jt(e)?e:e+""}function Tt(t){return new xt((function(e){e(t)}))}function kt(t){return new xt((function(e,n){n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(Ot||(Ot={}));var xt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._state=Ot.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}return e=t,n=[{key:"then",value:function(e,n){var r=this;return new t((function(t,o){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(t){o(t)}else t(n)},function(e){if(n)try{t(n(e))}catch(t){o(t)}else o(e)}]),r._executeHandlers()}))}},{key:"catch",value:function(t){return this.then((function(t){return t}),t)}},{key:"finally",value: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)}))}))}},{key:"__init",value:function(){var t=this;this._resolve=function(e){t._setResult(Ot.RESOLVED,e)}}},{key:"__init2",value:function(){var t=this;this._reject=function(e){t._setResult(Ot.REJECTED,e)}}},{key:"__init3",value:function(){var t=this;this._setResult=function(e,n){t._state===Ot.PENDING&&(q(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))}}},{key:"__init4",value:function(){var t=this;this._executeHandlers=function(){if(t._state!==Ot.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(t._state===Ot.RESOLVED&&e[1](t._value),t._state===Ot.REJECTED&&e[2](t._value),e[0]=!0)}))}}}}],n&&Pt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function It(t){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(t)}function At(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dt(t,e,n){return(e=function(t){var e=function(t){if("object"!=It(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=It(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==It(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ct(){return O("globalEventProcessors",(function(){return[]}))}function Rt(t){Ct().push(t)}function Nt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new xt((function(o,i){var a=t[r];if(null===e||"function"!=typeof a)o(e);else{var c=a(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?At(Object(n),!0).forEach((function(e){Dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e),n);wt&&a.id&&null===c&&k.log('Event processor "'.concat(a.id,'" dropped event')),q(c)?c.then((function(e){return Nt(t,e,n,r+1).then(o)})).then(null,i):Nt(t,c,n,r+1).then(o).then(null,i)}}))}var Mt=1e3;function Lt(){return Date.now()/Mt}var Ut=function(){var t=_.performance;if(!t||!t.now)return Lt;var e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return function(){return(n+t.now())/Mt}}(),Ht=function(){var t=_.performance;if(t&&t.now){var e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=o<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):e;return i||c<e?o<=c?t.timeOrigin:a:r}}(),qt="production";function Bt(t){var e=Ut(),n={sid:vt(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(t){return st({sid:"".concat(t.sid),init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?"".concat(t.did):void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)}};return t&&Ft(n,t),n}function Ft(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ut(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:vt()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{var n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function $t(t,e){var n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),Ft(t,n)}function Yt(t){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(t)}function zt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(n),!0).forEach((function(e){Jt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jt(t,e,n){return(e=function(t){var e=function(t){if("object"!=Yt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Yt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Xt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Xt(t,e){if(t){if("string"==typeof t)return Vt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(t,e):void 0}}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Kt=50,Zt=/\(error: (.*)\)/,Qt=/captureMessage|captureException/;function te(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=t.split("\n"),i=e;i<o.length;i++){var a=o[i];if(!(a.length>1024)){var c=Zt.test(a)?a.replace(Zt,"$1"):a;if(!c.match(/\S*Error: /)){var u,s=Wt(r);try{for(s.s();!(u=s.n()).done;){var l=(0,u.value)(c);if(l){n.push(l);break}}}catch(t){s.e(t)}finally{s.f()}if(n.length>=Kt)break}}}return function(t){if(!t.length)return[];var e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),Qt.test(e[e.length-1].function||"")&&(e.pop(),Qt.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,Kt).map((function(t){return Gt(Gt({},t),{},{filename:t.filename||e[e.length-1].filename,function:t.function||"?"})}))}(n)}}var ee="<anonymous>";function ne(t){try{return t&&"function"==typeof t&&t.name||ee}catch(t){return ee}}function re(t){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(t)}function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ie(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return ce("",t,e,n)}catch(t){return{ERROR:"**non-serializable** (".concat(t,")")}}}function ae(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,o=ie(t,n);return e=o,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(e))>r?ae(t,n-1,r):o}function ce(e,n){var r,o,i,a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(r="function"==typeof WeakSet,o=r?new WeakSet:[],[function(t){if(r)return!!o.has(t)||(o.add(t),!1);for(var e=0;e<o.length;e++)if(o[e]===t)return!0;return o.push(t),!1},function(t){if(r)o.delete(t);else for(var e=0;e<o.length;e++)if(o[e]===t){o.splice(e,1);break}}]),l=(a=2,function(t){if(Array.isArray(t))return t}(i=s)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(i,a)||function(t,e){if(t){if("string"==typeof t)return oe(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(t,e):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],p=l[1];if(null==n||["number","boolean","string"].includes(re(n))&&!B(n))return n;var y=function(e,n){try{if("domain"===e&&n&&"object"===re(n)&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==t.g&&n===t.g)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if($(n))return"[VueViewModel]";if(U(o=n)&&"nativeEvent" in o&&"preventDefault" in o&&"stopPropagation" in o)return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return"[Function: ".concat(ne(n),"]");if("symbol"===re(n))return"[".concat(String(n),"]");if("bigint"==typeof n)return"[BigInt: ".concat(String(n),"]");var r=function(t){var e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?"[HTMLElement: ".concat(r,"]"):"[object ".concat(r,"]")}catch(t){return"**non-serializable** (".concat(t,")")}var o}(e,n);if(!y.startsWith("[object "))return y;if(n.__sentry_skip_normalization__)return n;var d="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:c;if(0===d)return y.replace("object ","");if(f(n))return"[Circular ~]";var v=n;if(v&&"function"==typeof v.toJSON)try{return ce("",v.toJSON(),d-1,u,s)}catch(t){}var m=Array.isArray(n)?[]:{},h=0,b=at(n);for(var g in b)if(Object.prototype.hasOwnProperty.call(b,g)){if(h>=u){m[g]="[MaxProperties ~]";break}var _=b[g];m[g]=ce(g,_,d-1,u,s),h++}return p(n),m}function ue(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return se(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var le="baggage",fe="sentry-",pe=/^sentry-/,ye=8192;function de(t){if(t)return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((function(t,e,n){var r=ue(e,2),o=r[0],i=r[1],a="".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i)),c=0===n?a:"".concat(t,",").concat(a);return c.length>ye?(h&&k.warn("Not adding key: ".concat(o," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),t):c}),"")}(Object.entries(t).reduce((function(t,e){var n=ue(e,2),r=n[0],o=n[1];return o&&(t["".concat(fe).concat(r)]=o),t}),{}))}function ve(t){return t.split(",").map((function(t){return t.split("=").map((function(t){return decodeURIComponent(t.trim())}))})).reduce((function(t,e){var n=ue(e,2),r=n[0],o=n[1];return t[r]=o,t}),{})}var me=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function he(t,e){var n=function(t){if(t){var e,n=t.match(me);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}}(t),r=function(t){if(N(t)||Array.isArray(t)){var e={};if(Array.isArray(t))e=t.reduce((function(t,e){for(var n=ve(e),r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];t[i]=n[i]}return t}),{});else{if(!t)return;e=ve(t)}var n=Object.entries(e).reduce((function(t,e){var n=ue(e,2),r=n[0],o=n[1];return r.match(pe)&&(t[r.slice(fe.length)]=o),t}),{});return Object.keys(n).length>0?n:void 0}}(e),o=n||{},i=o.traceId,a=o.parentSpanId,c=o.parentSampled;return n?{traceId:i||vt(),parentSpanId:a||vt().substring(16),spanId:vt().substring(16),sampled:c,dsc:r||{}}:{traceId:i||vt(),spanId:vt().substring(16)}}function be(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vt(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vt().substring(16),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(t,"-").concat(e).concat(r)}var ge=1;function _e(t){var e=t.spanContext(),n=e.spanId,r=e.traceId,o=je(t);return st({data:o.data,op:o.op,parent_span_id:o.parent_span_id,span_id:n,status:o.status,tags:o.tags,trace_id:r,origin:o.origin})}function Se(t){var e=t.spanContext();return be(e.traceId,e.spanId,Pe(t))}function Oe(t){return"number"==typeof t?we(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?we(t.getTime()):Ut()}function we(t){return t>9999999999?t/1e3:t}function je(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function Pe(t){var e=t.spanContext().traceFlags;return Boolean(e&ge)}function Ee(t){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(t)}function Te(t){return function(t){if(Array.isArray(t))return ke(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ke(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(n),!0).forEach((function(e){Ae(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ae(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ee(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ee(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=new WeakMap;var Ce=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Re(t){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(t)}function Ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(n),!0).forEach((function(e){Le(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Le(t,e,n){return(e=function(t){var e=function(t){if("object"!=Re(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Re(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ue(t,e){return Tn().captureEvent(t,e)}function He(t,e){Tn().addBreadcrumb(t,e)}function qe(){return Tn().getClient()}function Be(){return Tn().getScope()}function Fe(t){var e=qe(),n=kn(),r=Be(),o=e&&e.getOptions()||{},i=o.release,a=o.environment,c=void 0===a?qt:a,u=(_.navigator||{}).userAgent,s=Bt(Me(Me({release:i,environment:c,user:r.getUser()||n.getUser()},u&&{userAgent:u}),t)),l=n.getSession();return l&&"ok"===l.status&&Ft(l,{status:"exited"}),$e(),n.setSession(s),r.setSession(s),s}function $e(){var t=kn(),e=Be(),n=e.getSession()||t.getSession();n&&$t(n),Ye(),t.setSession(),e.setSession()}function Ye(){var t=kn(),e=Be(),n=qe(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function ze(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?$e():Ye()}function Ge(t){return t.transaction}function Je(t,e,n){var r=e.getOptions(),o=(e.getDsn()||{}).publicKey,i=(n&&n.getUser()||{}).segment,a=st({environment:r.environment||qt,release:r.release,user_segment:i,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",a),a}function We(t){var e=qe();if(!e)return{};var n=Je(je(t).trace_id||"",e,Be()),r=Ge(t);if(!r)return n;var o=r&&r._frozenDynamicSamplingContext;if(o)return o;var i=r.metadata,a=i.sampleRate,c=i.source;null!=a&&(n.sample_rate="".concat(a));var u=je(r);return c&&"url"!==c&&(n.transaction=u.description),n.sampled=String(Pe(r)),e.emit&&e.emit("createDsc",n),n}function Xe(t){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xe(t)}function Ve(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ke(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(n),!0).forEach((function(e){Ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ze(t,e,n){return(e=function(t){var e=function(t){if("object"!=Xe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Xe(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qe(t){return function(t){if(Array.isArray(t))return tn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return tn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function en(t,e){var n=e.fingerprint,r=e.span,o=e.breadcrumbs,i=e.sdkProcessingMetadata;!function(t,e){var n=e.extra,r=e.tags,o=e.user,i=e.contexts,a=e.level,c=e.transactionName,u=st(n);u&&Object.keys(u).length&&(t.extra=Ke(Ke({},u),t.extra));var s=st(r);s&&Object.keys(s).length&&(t.tags=Ke(Ke({},s),t.tags));var l=st(o);l&&Object.keys(l).length&&(t.user=Ke(Ke({},l),t.user));var f=st(i);f&&Object.keys(f).length&&(t.contexts=Ke(Ke({},f),t.contexts)),a&&(t.level=a),c&&(t.transaction=c)}(t,e),r&&function(t,e){t.contexts=Ke({trace:_e(e)},t.contexts);var n=Ge(e);if(n){t.sdkProcessingMetadata=Ke({dynamicSamplingContext:We(e)},t.sdkProcessingMetadata);var r=je(n).description;r&&(t.tags=Ke({transaction:r},t.tags))}}(t,r),function(t,e){t.fingerprint=t.fingerprint?St(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){var n=[].concat(Qe(t.breadcrumbs||[]),Qe(e));t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata=Ke(Ke({},t.sdkProcessingMetadata),e)}(t,i)}function nn(t,e){var n=e.extra,r=e.tags,o=e.user,i=e.contexts,a=e.level,c=e.sdkProcessingMetadata,u=e.breadcrumbs,s=e.fingerprint,l=e.eventProcessors,f=e.attachments,p=e.propagationContext,y=e.transactionName,d=e.span;rn(t,"extra",n),rn(t,"tags",r),rn(t,"user",o),rn(t,"contexts",i),rn(t,"sdkProcessingMetadata",c),a&&(t.level=a),y&&(t.transactionName=y),d&&(t.span=d),u.length&&(t.breadcrumbs=[].concat(Qe(t.breadcrumbs),Qe(u))),s.length&&(t.fingerprint=[].concat(Qe(t.fingerprint),Qe(s))),l.length&&(t.eventProcessors=[].concat(Qe(t.eventProcessors),Qe(l))),f.length&&(t.attachments=[].concat(Qe(t.attachments),Qe(f))),t.propagationContext=Ke(Ke({},t.propagationContext),p)}function rn(t,e,n){if(n&&Object.keys(n).length)for(var r in t[e]=Ke({},t[e]),n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}function on(t){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(t)}function an(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function cn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?an(Object(n),!0).forEach((function(e){un(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function un(t,e,n){return(e=pn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sn(t){return function(t){if(Array.isArray(t))return ln(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ln(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function fn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,pn(r.key),r)}}function pn(t){var e=function(t){if("object"!=on(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==on(e)?e:e+""}var yn,dn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=vn()}return e=t,n=[{key:"clone",value:function(){var e=new t;return e._breadcrumbs=sn(this._breadcrumbs),e._tags=cn({},this._tags),e._extra=cn({},this._extra),e._contexts=cn({},this._contexts),e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=sn(this._eventProcessors),e._requestSession=this._requestSession,e._attachments=sn(this._attachments),e._sdkProcessingMetadata=cn({},this._sdkProcessingMetadata),e._propagationContext=cn({},this._propagationContext),e._client=this._client,e}},{key:"setClient",value:function(t){this._client=t}},{key:"getClient",value:function(){return this._client}},{key:"addScopeListener",value:function(t){this._scopeListeners.push(t)}},{key:"addEventProcessor",value:function(t){return this._eventProcessors.push(t),this}},{key:"setUser",value:function(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Ft(this._session,{user:t}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(t){return this._requestSession=t,this}},{key:"setTags",value:function(t){return this._tags=cn(cn({},this._tags),t),this._notifyScopeListeners(),this}},{key:"setTag",value:function(t,e){return this._tags=cn(cn({},this._tags),{},un({},t,e)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(t){return this._extra=cn(cn({},this._extra),t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(t,e){return this._extra=cn(cn({},this._extra),{},un({},t,e)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(t){return this._fingerprint=t,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(t){return this._level=t,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(t){return this._transactionName=t,this._notifyScopeListeners(),this}},{key:"setContext",value:function(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}},{key:"setSpan",value:function(t){return this._span=t,this._notifyScopeListeners(),this}},{key:"getSpan",value:function(){return this._span}},{key:"getTransaction",value:function(){var t=this._span;return t&&t.transaction}},{key:"setSession",value:function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(e){if(!e)return this;var n="function"==typeof e?e(this):e;if(n instanceof t){var r=n.getScopeData();this._tags=cn(cn({},this._tags),r.tags),this._extra=cn(cn({},this._extra),r.extra),this._contexts=cn(cn({},this._contexts),r.contexts),r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(U(n)){var o=e;this._tags=cn(cn({},this._tags),o.tags),this._extra=cn(cn({},this._extra),o.extra),this._contexts=cn(cn({},this._contexts),o.contexts),o.user&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint&&(this._fingerprint=o.fingerprint),o.requestSession&&(this._requestSession=o.requestSession),o.propagationContext&&(this._propagationContext=o.propagationContext)}return this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=vn(),this}},{key:"addBreadcrumb",value:function(t,e){var n="number"==typeof e?e:100;if(n<=0)return this;var r=cn({timestamp:Lt()},t),o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(t){return this._attachments.push(t),this}},{key:"getAttachments",value:function(){return this.getScopeData().attachments}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"getScopeData",value:function(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this._span}}},{key:"applyToEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return en(t,this.getScopeData()),Nt([].concat(sn(n),sn(Ct()),sn(this._eventProcessors)),t,e)}},{key:"setSDKProcessingMetadata",value:function(t){return this._sdkProcessingMetadata=cn(cn({},this._sdkProcessingMetadata),t),this}},{key:"setPropagationContext",value:function(t){return this._propagationContext=t,this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(t,e){var n=e&&e.event_id?e.event_id:vt();if(!this._client)return k.warn("No client configured on scope - will not capture exception!"),n;var r=new Error("Sentry syntheticException");return this._client.captureException(t,cn(cn({originalException:t,syntheticException:r},e),{},{event_id:n}),this),n}},{key:"captureMessage",value:function(t,e,n){var r=n&&n.event_id?n.event_id:vt();if(!this._client)return k.warn("No client configured on scope - will not capture message!"),r;var o=new Error(t);return this._client.captureMessage(t,e,cn(cn({originalException:t,syntheticException:o},n),{},{event_id:r}),this),r}},{key:"captureEvent",value:function(t,e){var n=e&&e.event_id?e.event_id:vt();return this._client?(this._client.captureEvent(t,cn(cn({},e),{},{event_id:n}),this),n):(k.warn("No client configured on scope - will not capture event!"),n)}},{key:"_notifyScopeListeners",value:function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)}}],r=[{key:"clone",value:function(e){return e?e.clone():new t}}],n&&fn(e.prototype,n),r&&fn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function vn(){return{traceId:vt(),spanId:vt().substring(16)}}var mn="7.119.0";function hn(t){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(t)}function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){_n(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _n(t,e,n){return(e=On(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,On(r.key),r)}}function On(t){var e=function(t){if("object"!=hn(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=hn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==hn(e)?e:e+""}var wn=parseFloat(mn),jn=function(){return t=function t(e,n,r){var o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wn;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._version=a,n?o=n:(o=new dn).setClient(e),r?i=r:(i=new dn).setClient(e),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i},e=[{key:"isOlderThan",value:function(t){return this._version<t}},{key:"bindClient",value:function(t){var e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}},{key:"pushScope",value:function(){var t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}},{key:"popScope",value:function(){return!(this.getStack().length<=1||!this.getStack().pop())}},{key:"withScope",value:function(t){var e,n=this,r=this.pushScope();try{e=t(r)}catch(t){throw this.popScope(),t}return q(e)?e.then((function(t){return n.popScope(),t}),(function(t){throw n.popScope(),t})):(this.popScope(),e)}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getIsolationScope",value:function(){return this._isolationScope}},{key:"getStack",value:function(){return this._stack}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"captureException",value:function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:vt(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,gn(gn({originalException:t,syntheticException:r},e),{},{event_id:n})),n}},{key:"captureMessage",value:function(t,e,n){var r=this._lastEventId=n&&n.event_id?n.event_id:vt(),o=new Error(t);return this.getScope().captureMessage(t,e,gn(gn({originalException:t,syntheticException:o},n),{},{event_id:r})),r}},{key:"captureEvent",value:function(t,e){var n=e&&e.event_id?e.event_id:vt();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,gn(gn({},e),{},{event_id:n})),n}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addBreadcrumb",value:function(t,e){var n=this.getStackTop(),r=n.scope,o=n.client;if(o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,c=void 0===a?null:a,u=i.maxBreadcrumbs,s=void 0===u?100:u;if(!(s<=0)){var l=gn({timestamp:Lt()},t),f=c?P((function(){return c(l,e)})):l;null!==f&&(o.emit&&o.emit("beforeAddBreadcrumb",f,e),r.addBreadcrumb(f,s))}}}},{key:"setUser",value:function(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}},{key:"setTags",value:function(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}},{key:"setExtras",value:function(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}},{key:"setTag",value:function(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}},{key:"setExtra",value:function(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}},{key:"setContext",value:function(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}},{key:"configureScope",value:function(t){var e=this.getStackTop(),n=e.scope;e.client&&t(n)}},{key:"run",value:function(t){var e=En(this);try{t(this)}finally{En(e)}}},{key:"getIntegration",value:function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return wt&&k.warn("Cannot retrieve integration ".concat(t.id," from the current Hub")),null}}},{key:"startTransaction",value:function(t,e){var n=this._callExtensionMethod("startTransaction",t,e);return wt&&!n&&(this.getClient()?k.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):k.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}},{key:"traceHeaders",value:function(){return this._callExtensionMethod("traceHeaders")}},{key:"captureSession",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var t=this.getStackTop().scope,e=t.getSession();e&&$t(e),this._sendSessionUpdate(),t.setSession()}},{key:"startSession",value:function(t){var e=this.getStackTop(),n=e.scope,r=e.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,c=void 0===a?qt:a,u=(_.navigator||{}).userAgent,s=Bt(gn(gn({release:i,environment:c,user:n.getUser()},u&&{userAgent:u}),t)),l=n.getSession&&n.getSession();return l&&"ok"===l.status&&Ft(l,{status:"exited"}),this.endSession(),n.setSession(s),s}},{key:"shouldSendDefaultPii",value:function(){var t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var t=this.getStackTop(),e=t.scope,n=t.client,r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},{key:"_callExtensionMethod",value:function(t){var e=Pn().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t]){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.extensions[t].apply(this,r)}wt&&k.warn("Extension method ".concat(t," couldn't be found, doing nothing."))}}],e&&Sn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Pn(){return _.__SENTRY__=_.__SENTRY__||{extensions:{},hub:void 0},_}function En(t){var e=Pn(),n=xn(e);return In(e,t),n}function Tn(){var t=Pn();if(t.__SENTRY__&&t.__SENTRY__.acs){var e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pn();return e=t,!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)&&!xn(t).isOlderThan(wn)||In(t,new jn),xn(t);var e}(t)}function kn(){return Tn().getIsolationScope()}function xn(t){return O("hub",(function(){return new jn}),t)}function In(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function An(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Dn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(t,e){if(t){if("string"==typeof t)return Cn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cn(t,e):void 0}}function Cn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Rn=[];function Nn(t){var e=t.defaultIntegrations||[],n=t.integrations;e.forEach((function(t){t.isDefaultInstance=!0}));var r,o,i,a,c=(r=Array.isArray(n)?[].concat(An(e),An(n)):"function"==typeof n?St(n(e)):e,o={},r.forEach((function(t){var e=t.name,n=o[e];n&&!n.isDefaultInstance&&t.isDefaultInstance||(o[e]=t)})),Object.keys(o).map((function(t){return o[t]}))),u=function(t){for(var e=0;e<t.length;e++)if(!0==("Debug"===t[e].name))return e;return-1}(c);if(-1!==u){var s=(i=c.splice(u,1),a=1,function(t){if(Array.isArray(t))return t}(i)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(i,a)||Dn(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];c.push(s)}return c}function Mn(t,e){var n,r=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=Dn(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==e.return||e.return()}finally{if(a)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;o&&o.afterAllSetup&&o.afterAllSetup(t)}}catch(t){r.e(t)}finally{r.f()}}function Ln(t,e,n){if(n[e.name])wt&&k.log("Integration skipped because it was already installed: ".concat(e.name));else{if(n[e.name]=e,-1===Rn.indexOf(e.name)&&(e.setupOnce(Rt,Tn),Rn.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){var r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(function(e,n){return r(e,n,t)}))}if(t.addEventProcessor&&"function"==typeof e.processEvent){var o=e.processEvent.bind(e),i=Object.assign((function(e,n){return o(e,n,t)}),{id:e.name});t.addEventProcessor(i)}wt&&k.log("Integration installed: ".concat(e.name))}}function Un(t,e){return Object.assign((function(){return e.apply(void 0,arguments)}),{id:t})}function Hn(t){return function(t){if(Array.isArray(t))return qn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Bn,Fn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],$n=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Yn="InboundFilters",zn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:Yn,setupOnce:function(){},processEvent:function(e,n,r){var o=r.getOptions(),i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat(Hn(t.allowUrls||[]),Hn(e.allowUrls||[])),denyUrls:[].concat(Hn(t.denyUrls||[]),Hn(e.denyUrls||[])),ignoreErrors:[].concat(Hn(t.ignoreErrors||[]),Hn(e.ignoreErrors||[]),Hn(t.disableErrorDefaults?[]:Fn)),ignoreTransactions:[].concat(Hn(t.ignoreTransactions||[]),Hn(e.ignoreTransactions||[]),Hn(t.disableTransactionDefaults?[]:$n)),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(wt&&k.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(ht(t))),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){var e,n=[];t.message&&n.push(t.message);try{e=t.exception.values[t.exception.values.length-1]}catch(t){}return e&&e.value&&(n.push(e.value),e.type&&n.push("".concat(e.type,": ").concat(e.value))),wt&&0===n.length&&k.error("Could not extract message for event ".concat(ht(t))),n}(t).some((function(t){return K(t,e)}))}(t,e.ignoreErrors)?(wt&&k.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(ht(t))),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;var n=t.transaction;return!!n&&K(n,e)}(t,e.ignoreTransactions)?(wt&&k.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(ht(t))),!0):function(t,e){if(!e||!e.length)return!1;var n=Gn(t);return!!n&&K(n,e)}(t,e.denyUrls)?(wt&&k.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(ht(t),".\nUrl: ").concat(Gn(t))),!0):!function(t,e){if(!e||!e.length)return!0;var n=Gn(t);return!n||K(n,e)}(t,e.allowUrls)&&(wt&&k.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(ht(t),".\nUrl: ").concat(Gn(t))),!0)}(e,i)?null:e}}};function Gn(t){try{var e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.length-1;e>=0;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return wt&&k.error("Cannot extract url for event ".concat(ht(t))),null}}Un(Yn,zn);var Jn="FunctionToString",Wn=new WeakMap,Xn=function(){return{name:Jn,setupOnce:function(){Bn=Function.prototype.toString;try{Function.prototype.toString=function(){for(var t=it(this),e=Wn.has(qe())&&void 0!==t?t:this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Bn.apply(e,r)}}catch(t){}},setup:function(t){Wn.set(t,!0)}}};Un(Jn,Xn);var Vn=S();function Kn(){if(!("fetch" in Vn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Zn(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var Qn=S();function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var er={},nr={};function rr(t,e){er[t]=er[t]||[],er[t].push(e)}function or(t,e){nr[t]||(e(),nr[t]=!0)}function ir(t,e){var n=t&&er[t];if(n){var r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return tr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;try{i(e)}catch(e){h&&k.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(ne(i),"\nError:"),e)}}}catch(t){o.e(t)}finally{o.f()}}}var ar,cr=_;function ur(t){var e="history";rr(e,t),or(e,sr)}function sr(){if(e=(t=Qn.chrome)&&t.app&&t.app.runtime,n="history" in Qn&&!!Qn.history.pushState&&!!Qn.history.replaceState,!e&&n){var t,e,n,r=cr.onpopstate;cr.onpopstate=function(){var t=cr.location.href,e=ar;if(ar=t,ir("history",{from:e,to:t}),r)try{for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r.apply(this,o)}catch(t){}},nt(cr.history,"pushState",o),nt(cr.history,"replaceState",o)}function o(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n.length>2?n[2]:void 0;if(o){var i=ar,a=String(o);ar=a,ir("history",{from:i,to:a})}return t.apply(this,n)}}}function lr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var fr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pr(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId,c=t.protocol,u=t.publicKey;return"".concat(c,"://").concat(u).concat(e&&o?":".concat(o):"")+"@".concat(n).concat(i?":".concat(i):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function yr(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function dr(t){var e="string"==typeof t?function(t){var e,n,r=fr.exec(t);if(r){var o=(e=r.slice(1),n=6,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,n)||function(t,e){if(t){if("string"==typeof t)return lr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lr(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1],c=o[2],u=void 0===c?"":c,s=o[3],l=o[4],f=void 0===l?"":l,p="",y=o[5],d=y.split("/");if(d.length>1&&(p=d.slice(0,-1).join("/"),y=d.pop()),y){var v=y.match(/^\d+/);v&&(y=v[0])}return yr({host:s,pass:u,path:p,projectId:y,port:f,protocol:i,publicKey:a})}P((function(){console.error("Invalid Sentry Dsn: ".concat(t))}))}(t):yr(t);if(e&&function(t){if(!h)return!0;var e=t.port,n=t.projectId,r=t.protocol;return!(["protocol","publicKey","host","projectId"].find((function(e){return!t[e]&&(k.error("Invalid Sentry Dsn: ".concat(e," missing")),!0)}))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(k.error("Invalid Sentry Dsn: Invalid port ".concat(e)),1):(k.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),1):(k.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),1)))}(e))return e}function vr(t){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(t)}function mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mr(Object(n),!0).forEach((function(e){br(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function br(t,e,n){return(e=function(t){var e=function(t){if("object"!=vr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==vr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gr(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Or(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function _r(t){return function(t){if(Array.isArray(t))return wr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Or(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||Or(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(t,e){if(t){if("string"==typeof t)return wr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(t,e):void 0}}function wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function jr(t){return[t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function Pr(t,e){var n,r=gr(t[1]);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(e(o,o[0].type))return!0}}catch(t){r.e(t)}finally{r.f()}return!1}function Er(t,e){return(e||new TextEncoder).encode(t)}function Tr(t,e){var n=Sr(t,2),r=n[0],o=n[1],i=JSON.stringify(r);function a(t){"string"==typeof i?i="string"==typeof t?i+t:[Er(i,e),t]:i.push("string"==typeof t?Er(t,e):t)}var c,u=gr(o);try{for(u.s();!(c=u.n()).done;){var s=Sr(c.value,2),l=s[0],f=s[1];if(a("\n".concat(JSON.stringify(l),"\n")),"string"==typeof f||f instanceof Uint8Array)a(f);else{var p=void 0;try{p=JSON.stringify(f)}catch(t){p=JSON.stringify(ie(f))}a(p)}}}catch(t){u.e(t)}finally{u.f()}return"string"==typeof i?i:function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),o=0,i=gr(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;r.set(a,o),o+=a.length}}catch(t){i.e(t)}finally{i.f()}return r}(i)}function kr(t,e){var n="string"==typeof t.data?Er(t.data,e):t.data;return[st({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}var xr={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Ir(t){return xr[t]}function Ar(t){if(t&&t.sdk){var e=t.sdk;return{name:e.name,version:e.version}}}function Dr(t){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(t)}function Cr(t){var e="function"==typeof Map?new Map:void 0;return Cr=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(Rr())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Nr(o,n.prototype),o}(t,arguments,Mr(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Nr(n,t)},Cr(t)}function Rr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rr=function(){return!!t})()}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nr(t,e)}function Mr(t){return Mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mr(t)}var Lr=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=Mr(e),function(t,e){if(e&&("object"==Dr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Rr()?Reflect.construct(e,n||[],Mr(t).constructor):e.apply(t,n))}(this,e,[t])).message=t,n.name=(this instanceof e?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf(n,(this instanceof e?this.constructor:void 0).prototype),n.logLevel=r,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nr(t,e)}(e,t),n=e,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(Cr(Error));function Ur(t){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(t)}function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qr(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ur(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ur(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Br="7";function Fr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||"".concat(function(t){return"".concat(function(t){var e=t.protocol?"".concat(t.protocol,":"):"",n=t.port?":".concat(t.port):"";return"".concat(e,"//").concat(t.host).concat(n).concat(t.path?"/".concat(t.path):"","/api/")}(t)).concat(t.projectId,"/envelope/")}(t),"?").concat(function(t,e){return n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hr(Object(n),!0).forEach((function(e){qr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({sentry_key:t.publicKey,sentry_version:Br},e&&{sentry_client:"".concat(e.name,"/").concat(e.version)}),Object.keys(n).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n[t]))})).join("&");var n}(t,r))}function $r(t){return $r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(t)}function Yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yr(Object(n),!0).forEach((function(e){Gr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gr(t,e,n){return(e=function(t){var e=function(t){if("object"!=$r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=$r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jr(t){return function(t){if(Array.isArray(t))return Wr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Wr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Xr(t,e){if(t){if("string"==typeof t)return Vr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vr(t,e):void 0}}function Vr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Kr(t,e,n,r){var o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(o.dsn=pr(e));var i=function(t){var e=function(t){var e,n="",r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Xr(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(r.s();!(e=r.n()).done;){var o=e.value,i=Object.entries(o.tags),a=i.length>0?"|#".concat(i.map((function(t){var e,n,r=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,n)||Xr(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return"".concat(o,":").concat(i)})).join(",")):"";n+="".concat(o.name,"@").concat(o.unit,":").concat(o.metric,"|").concat(o.metricType).concat(a,"|T").concat(o.timestamp,"\n")}}catch(t){r.e(t)}finally{r.f()}return n}(t);return[{type:"statsd",length:e.length},e]}(t);return jr(o,[i])}function Zr(t){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(t)}function Qr(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=to(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function to(t,e){if(t){if("string"==typeof t)return eo(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(t,e):void 0}}function eo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function no(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ro(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?no(Object(n),!0).forEach((function(e){oo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function oo(t,e,n){return(e=ao(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,ao(r.key),r)}}function ao(t){var e=function(t){if("object"!=Zr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zr(e)?e:e+""}var co="Not capturing exception because it's already been captured.",uo=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=dr(e.dsn):wt&&k.warn("No DSN provided, client will not send events."),this._dsn){var n=Fr(this._dsn,e);this._transport=e.transport(ro(ro({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{},{url:n}))}},e=[{key:"captureException",value:function(t,e,n){var r=this;if(!_t(t)){var o=e&&e.event_id;return this._process(this.eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){o=t}))),o}wt&&k.log(co)}},{key:"captureMessage",value:function(t,e,n,r){var o=this,i=n&&n.event_id,a=M(t)?t:String(t),c=L(t)?this.eventFromMessage(a,e,n):this.eventFromException(t,n);return this._process(c.then((function(t){return o._captureEvent(t,n,r)})).then((function(t){i=t}))),i}},{key:"captureEvent",value:function(t,e,n){if(!(e&&e.originalException&&_t(e.originalException))){var r=e&&e.event_id,o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,o||n).then((function(t){r=t}))),r}wt&&k.log(co)}},{key:"captureSession",value:function(t){"string"!=typeof t.release?wt&&k.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Ft(t,{init:!1}))}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getSdkMetadata",value:function(){return this._options._metadata}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(t){var e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then((function(n){return e.flush(t).then((function(t){return n&&t}))}))):Tt(!0)}},{key:"close",value:function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,e.metricsAggregator&&e.metricsAggregator.close(),t}))}},{key:"getEventProcessors",value:function(){return this._eventProcessors}},{key:"addEventProcessor",value:function(t){this._eventProcessors.push(t)}},{key:"setupIntegrations",value:function(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}},{key:"init",value:function(){this._isEnabled()&&this._setupIntegrations()}},{key:"getIntegrationById",value:function(t){return this.getIntegrationByName(t)}},{key:"getIntegrationByName",value:function(t){return this._integrations[t]}},{key:"getIntegration",value:function(t){try{return this._integrations[t.id]||null}catch(e){return wt&&k.warn("Cannot retrieve integration ".concat(t.id," from the current Client")),null}}},{key:"addIntegration",value:function(t){var e=this._integrations[t.name];Ln(this,t,this._integrations),e||Mn(this,[t])}},{key:"sendEvent",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",t,n);var r,o,i,a,c,u,s=function(t,e,n,r){var o=Ar(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[].concat(Jr(t.sdk.integrations||[]),Jr(e.integrations||[])),t.sdk.packages=[].concat(Jr(t.sdk.packages||[]),Jr(e.packages||[])))}(t,n&&n.sdk);var a=function(t,e,n,r){var o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return hr(hr(hr({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:pr(r)}),o&&{trace:st(hr({},o))})}(t,o,r,e);return delete t.sdkProcessingMetadata,jr(a,[[{type:i},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel),l=Qr(n.attachments||[]);try{for(l.s();!(r=l.n()).done;){var f=r.value;o=s,i=kr(f,this._options.transportOptions&&this._options.transportOptions.textEncoder),void 0,void 0,void 0,c=(a=Sr(o,2))[0],u=a[1],s=[c,[].concat(_r(u),[i])]}}catch(t){l.e(t)}finally{l.f()}var p=this._sendEnvelope(s);p&&p.then((function(n){return e.emit("afterSendEvent",t,n)}),null)}},{key:"sendSession",value:function(t){var e=function(t,e,n,r){var o=Ar(n);return jr(zr(zr({sent_at:(new Date).toISOString()},o&&{sdk:o}),!!r&&e&&{dsn:pr(e)}),["aggregates" in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}},{key:"recordDroppedEvent",value:function(t,e,n){if(this._options.sendClientReports){var r="number"==typeof n?n:1,o="".concat(t,":").concat(e);wt&&k.log('Recording outcome: "'.concat(o,'"').concat(r>1?" (".concat(r," times)"):"")),this._outcomes[o]=(this._outcomes[o]||0)+r}}},{key:"captureAggregateMetrics",value:function(t){wt&&k.log("Flushing aggregated metrics, number of metrics: ".concat(t.length));var e=Kr(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}},{key:"on",value:function(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this._hooks[t]&&this._hooks[t].forEach((function(t){return t.apply(void 0,n)}))}},{key:"_setupIntegrations",value:function(){var t=this._options.integrations;this._integrations=function(t,e){var n={};return e.forEach((function(e){e&&Ln(t,e,n)})),n}(this,t),Mn(this,t),this._integrationsInitialized=!0}},{key:"_updateSessionFromEvent",value:function(t,e){var n=!1,r=!1,o=e.exception&&e.exception.values;if(o){r=!0;var i,a=Qr(o);try{for(a.s();!(i=a.n()).done;){var c=i.value.mechanism;if(c&&!1===c.handled){n=!0;break}}}catch(t){a.e(t)}finally{a.f()}}var u="ok"===t.status;(u&&0===t.errors||u&&n)&&(Ft(t,ro(ro({},n&&{status:"crashed"}),{},{errors:t.errors||Number(r||n)})),this.captureSession(t))}},{key:"_isClientDoneProcessing",value:function(t){var e=this;return new xt((function(n){var r=0,o=setInterval((function(){0==e._numProcessing?(clearInterval(o),n(!0)):(r+=1,t&&r>=t&&(clearInterval(o),n(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._transport}},{key:"_prepareEvent",value:function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:kn(),i=this.getOptions(),a=Object.keys(this._integrations);return!e.integrations&&a.length>0&&(e.integrations=a),this.emit("preprocessEvent",t,e),function(t,e,n,r,o,i){var a=t.normalizeDepth,c=void 0===a?3:a,u=t.normalizeMaxBreadth,s=void 0===u?1e3:u,l=Ie(Ie({},e),{},{event_id:e.event_id||n.event_id||vt(),timestamp:e.timestamp||Lt()}),f=n.integrations||t.integrations.map((function(t){return t.name}));!function(t,e){var n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,a=void 0===i?250:i;"environment" in t||(t.environment="environment" in e?n:qt),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=X(t.message,a));var c=t.exception&&t.exception.values&&t.exception.values[0];c&&c.value&&(c.value=X(c.value,a));var u=t.request;u&&u.url&&(u.url=X(u.url,a))}(l,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[].concat(Te(t.sdk.integrations||[]),Te(e)))}(l,f),void 0===e.type&&function(t,e){var n,r=_._sentryDebugIds;if(r){var o=De.get(e);o?n=o:(n=new Map,De.set(e,n));var i=Object.keys(r).reduce((function(t,o){var i,a=n.get(o);a?i=a:(i=e(o),n.set(o,i));for(var c=i.length-1;c>=0;c--){var u=i[c];if(u.filename){t[u.filename]=r[o];break}}return t}),{});try{t.exception.values.forEach((function(t){t.stacktrace.frames.forEach((function(t){t.filename&&(t.debug_id=i[t.filename])}))}))}catch(t){}}}(l,t.stackParser);var p=function(t,e){if(!e)return t;var n=t?t.clone():new dn;return n.update(e),n}(r,n.captureContext);n.mechanism&&gt(l,n.mechanism);var y=o&&o.getEventProcessors?o.getEventProcessors():[],d=(yn||(yn=new dn),yn).getScopeData();i&&nn(d,i.getScopeData()),p&&nn(d,p.getScopeData());var v=[].concat(Te(n.attachments||[]),Te(d.attachments));return v.length&&(n.attachments=v),en(l,d),Nt([].concat(Te(y),Te(Ct()),Te(d.eventProcessors)),l,n).then((function(t){return t&&function(t){var e={};try{t.exception.values.forEach((function(t){t.stacktrace.frames.forEach((function(t){t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0!==Object.keys(e).length){t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];var n=t.debug_meta.images;Object.keys(e).forEach((function(t){n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}}(t),"number"==typeof c&&c>0?function(t,e,n){if(!t)return null;var r=Ie(Ie(Ie(Ie(Ie({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Ie(Ie({},t),t.data&&{data:ie(t.data,e,n)})}))}),t.user&&{user:ie(t.user,e,n)}),t.contexts&&{contexts:ie(t.contexts,e,n)}),t.extra&&{extra:ie(t.extra,e,n)});return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ie(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((function(t){var r=je(t).data;return r&&(t.data=ie(r,e,n)),t}))),r}(t,c,s):t}))}(i,t,e,n,this,o).then((function(t){if(null===t)return t;var e=ro(ro({},o.getPropagationContext()),n?n.getPropagationContext():void 0);if((!t.contexts||!t.contexts.trace)&&e){var i=e.traceId,a=e.spanId,c=e.parentSpanId,u=e.dsc;t.contexts=ro({trace:{trace_id:i,span_id:a,parent_span_id:c}},t.contexts);var s=u||Je(i,r,n);t.sdkProcessingMetadata=ro({dynamicSamplingContext:s},t.sdkProcessingMetadata)}return t}))}},{key:"_captureEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){if(wt){var e=t;"log"===e.logLevel?k.log(e.message):k.warn(e)}}))}},{key:"_processEvent",value:function(t,e,n){var r=this,o=this.getOptions(),i=o.sampleRate,a=lo(t),c=so(t),u=t.type||"error",s="before send for type `".concat(u,"`");if(c&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),kt(new Lr("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));var l="replay_event"===u?"replay":u,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,f).then((function(n){if(null===n)throw r.recordDroppedEvent("event_processor",l,t),new Lr("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;var i=function(t,e,n){var r=t.beforeSend,o=t.beforeSendTransaction;if(so(e)&&r)return r(e,n);if(lo(e)&&o){if(e.spans){var i=e.spans.length;e.sdkProcessingMetadata=ro(ro({},e.sdkProcessingMetadata),{},{spanCountBeforeProcessing:i})}return o(e,n)}return e}(o,n,e);return function(t,e){var n="".concat(e," must return `null` or a valid event.");if(q(t))return t.then((function(t){if(!U(t)&&null!==t)throw new Lr(n);return t}),(function(t){throw new Lr("".concat(e," rejected with ").concat(t))}));if(!U(t)&&null!==t)throw new Lr(n);return t}(i,s)})).then((function(o){if(null===o){if(r.recordDroppedEvent("before_send",l,t),a){var i=1+(t.spans||[]).length;r.recordDroppedEvent("before_send","span",i)}throw new Lr("".concat(s," returned `null`, will not send event."),"log")}var c=n&&n.getSession();if(!a&&c&&r._updateSessionFromEvent(c,o),a){var u=(o.sdkProcessingMetadata&&o.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);u>0&&r.recordDroppedEvent("before_send","span",u)}var f=o.transaction_info;return a&&f&&o.transaction!==t.transaction&&(o.transaction_info=ro(ro({},f),{},{source:"custom"})),r.sendEvent(o,e),o})).then(null,(function(t){if(t instanceof Lr)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new Lr("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(t))}))}},{key:"_process",value:function(t){var e=this;this._numProcessing++,t.then((function(t){return e._numProcessing--,t}),(function(t){return e._numProcessing--,t}))}},{key:"_sendEnvelope",value:function(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(function(t){wt&&k.error("Error while sending event:",t)}));wt&&k.error("Transport disabled")}},{key:"_clearOutcomes",value:function(){var t=this._outcomes;return this._outcomes={},Object.keys(t).map((function(e){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||to(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(":"),2);return{reason:n[0],category:n[1],quantity:t[e]}}))}}],e&&io(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function so(t){return void 0===t.type}function lo(t){return"transaction"===t.type}var fo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function po(t){return po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(t)}function yo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yo(Object(n),!0).forEach((function(e){mo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mo(t,e,n){return(e=function(t){var e=function(t){if("object"!=po(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=po(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==po(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ho(t,e){var n=go(t,e),r={type:e&&e.name,value:So(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function bo(t,e){return{exception:{values:[ho(t,e)]}}}function go(t,e){var n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(_o.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}var _o=/Minified React error #\d+;/i;function So(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Oo(t,e,n,r,o){var i;if(C(e)&&e.error)return bo(t,e.error);if(R(e)||D(e,"DOMException")){var a=e;if("stack" in e)i=bo(t,e);else{var c=a.name||(R(a)?"DOMError":"DOMException"),u=a.message?"".concat(c,": ").concat(a.message):c;bt(i=wo(t,u,n,r),u)}return"code" in a&&(i.tags=vo(vo({},i.tags),{},{"DOMException.code":"".concat(a.code)})),i}return A(e)?bo(t,e):U(e)||H(e)?(i=function(t,e,n,r){var o=qe(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:H(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:jo(e,{isUnhandledRejection:r})}]},extra:{__serialized__:ae(e,i)}};if(n){var c=go(t,n);c.length&&(a.exception.values[0].stacktrace={frames:c})}return a}(t,e,n,o),gt(i,{synthetic:!0}),i):(bt(i=wo(t,e,n,r),"".concat(e),void 0),gt(i,{synthetic:!0}),i)}function wo(t,e,n,r){var o={};if(r&&n){var i=go(t,n);i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]})}if(M(e)){var a=e.__sentry_template_string__,c=e.__sentry_template_values__;return o.logentry={message:a,params:c},o}return o.message=e,o}function jo(t,e){var n=e.isUnhandledRejection,r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(at(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return X(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:X(o,e)}return""}(t),o=n?"promise rejection":"exception";if(C(t))return"Event `ErrorEvent` captured as ".concat(o," with message `").concat(t.message,"`");if(H(t)){var i=function(t){try{var e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t);return"Event `".concat(i,"` (type=").concat(t.type,") captured as ").concat(o)}return"Object captured as ".concat(o," with keys: ").concat(r)}function Po(t){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(t)}function Eo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function To(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Eo(Object(n),!0).forEach((function(e){ko(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ko(t,e,n){return(e=function(t){var e=function(t){if("object"!=Po(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Po(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Po(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xo=_,Io=0;function Ao(){return Io>0}function Do(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if(it(t))return t}catch(e){return t}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(t){return Do(t,e)}));return t.apply(this,o)}catch(t){throw Io++,setTimeout((function(){Io--})),function(){for(var t=Tn(),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(2===n.length){var o=n[0],i=n[1];return o?t.withScope((function(){return t.getStackTop().scope=o,i(o)})):t.withScope(i)}t.withScope(n[0])}((function(n){var o;n.addEventProcessor((function(t){return e.mechanism&&(bt(t,void 0,void 0),gt(t,e.mechanism)),t.extra=To(To({},t.extra),{},{arguments:r}),t})),o=t,Tn().captureException(o,function(t){if(t)return function(t){return t instanceof dn||"function"==typeof t}(t)||function(t){return Object.keys(t).some((function(t){return Ce.includes(t)}))}(t)?{captureContext:t}:t}(undefined))})),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}catch(t){}ot(o,t),rt(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return t.name}})}catch(t){}return o}function Co(t){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(t)}function Ro(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function No(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ro(Object(n),!0).forEach((function(e){Mo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mo(t,e,n){return(e=function(t){var e=function(t){if("object"!=Co(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Co(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lo(t){return Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(t)}function Uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,Ho(r.key),r)}}function Ho(t){var e=function(t){if("object"!=Lo(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Lo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lo(e)?e:e+""}function qo(t,e,n){return e=$o(e),function(t,e){if(e&&("object"==Lo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Bo()?Reflect.construct(e,n||[],$o(t).constructor):e.apply(t,n))}function Bo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bo=function(){return!!t})()}function Fo(){return Fo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=$o(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Fo.apply(null,arguments)}function $o(t){return $o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$o(t)}function Yo(t,e){return Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yo(t,e)}var zo=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[e],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",o=t._metadata||{};o.sdk||(o.sdk={name:"sentry.javascript.".concat(e),packages:n.map((function(t){return{name:"".concat(r,":@sentry/").concat(t),version:mn}})),version:mn}),t._metadata=o}(t,"browser",["browser"],xo.SENTRY_SDK_SOURCE||"npm"),n=qo(this,e,[t]),t.sendClientReports&&xo.document&&xo.document.addEventListener("visibilitychange",(function(){"hidden"===xo.document.visibilityState&&n._flushOutcomes()})),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yo(t,e)}(e,t),n=e,r=[{key:"eventFromException",value:function(t,e){return function(t,e,n,r){var o=Oo(t,e,n&&n.syntheticException||void 0,r);return gt(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Tt(o)}(this._options.stackParser,t,e,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=wo(t,e,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Tt(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}},{key:"captureUserFeedback",value:function(t){if(this._isEnabled()){var e=function(t,e){var n=e.metadata,r=e.tunnel,o=e.dsn,i=No(No({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}}),!!r&&!!o&&{dsn:pr(o)}),a=function(t){return[{type:"user_report"},t]}(t);return jr(i,[a])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}else fo&&k.warn("SDK not enabled, will not capture user feedback.")}},{key:"_prepareEvent",value:function(t,n,r){return t.platform=t.platform||"javascript",(o=e,i=this,a=Fo($o(1&3?o.prototype:o),"_prepareEvent",i),function(t){return a.apply(i,t)})([t,n,r]);var o,i,a}},{key:"_flushOutcomes",value:function(){var t=this._clearOutcomes();if(0!==t.length)if(this._dsn){fo&&k.log("Sending outcomes:",t);var e,n,r=(e=t,jr((n=this._options.tunnel&&pr(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:Lt(),discarded_events:e}]]));this._sendEnvelope(r)}else fo&&k.log("No dsn provided, will not send outcomes");else fo&&k.log("No outcomes to send")}}],r&&Uo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(uo);function Go(){"console" in _&&w.forEach((function(t){t in _.console&&nt(_.console,t,(function(e){return j[t]=e,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];ir("console",{args:n,level:t});var o=j[t];o&&o.apply(_.console,n)}}))}))}var Jo,Wo,Xo,Vo=_,Ko=1e3;function Zo(){if(Vo.document){var t=ir.bind(null,"dom"),e=Qo(t,!0);Vo.document.addEventListener("click",e,!1),Vo.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=Vo[e]&&Vo[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(nt(n,"addEventListener",(function(e){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){var c=Qo(t);a.handler=c,e.call(this,n,c,o)}a.refCount++}catch(t){}return e.call(this,n,r,o)}})),nt(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete o[e]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}}function Qo(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){if(n&&!n._sentryCaptured){var r=function(t){try{return t.target}catch(t){return null}}(n);if(!function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r)){rt(n,"_sentryCaptured",!0),r&&!r._sentryId&&rt(r,"_sentryId",vt());var o="keypress"===n.type?"input":n.type;(function(t){if(t.type!==Wo)return!1;try{if(!t.target||t.target._sentryId!==Xo)return!1}catch(t){}return!0})(n)||(t({event:n,name:o,global:e}),Wo=n.type,Xo=r?r._sentryId:void 0),clearTimeout(Jo),Jo=Vo.setTimeout((function(){Xo=void 0,Wo=void 0}),Ko)}}}}var ti=_,ei="__sentry_xhr_v3__";function ni(t){rr("xhr",t),or("xhr",ri)}function ri(){if(ti.XMLHttpRequest){var t=XMLHttpRequest.prototype;nt(t,"open",(function(t){return function(){for(var e=this,n=Date.now(),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=N(o[0])?o[0].toUpperCase():void 0,c=function(t){if(N(t))return t;try{return t.toString()}catch(t){}}(o[1]);if(!a||!c)return t.apply(this,o);this[ei]={method:a,url:c,request_headers:{}},"POST"===a&&c.match(/sentry_key/)&&(this.__sentry_own_request__=!0);var u=function(){var t=e[ei];if(t&&4===e.readyState){try{t.status_code=e.status}catch(t){}ir("xhr",{args:[a,c],endTimestamp:Date.now(),startTimestamp:n,xhr:e})}};return"onreadystatechange" in this&&"function"==typeof this.onreadystatechange?nt(this,"onreadystatechange",(function(t){return function(){u();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(this,n)}})):this.addEventListener("readystatechange",u),nt(this,"setRequestHeader",(function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=this[ei];return a&&N(o)&&N(i)&&(a.request_headers[o.toLowerCase()]=i),t.apply(this,n)}})),t.apply(this,o)}})),nt(t,"send",(function(t){return function(){for(var e=this[ei],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e?(void 0!==r[0]&&(e.body=r[0]),ir("xhr",{args:[e.method,e.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,r)):t.apply(this,r)}}))}}function oi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ii(t){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(t)}function ai(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ci(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ai(Object(n),!0).forEach((function(e){ui(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ui(t,e,n){return(e=function(t){var e=function(t){if("object"!=ii(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ii(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ii(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function si(t){var e="fetch";rr(e,t),or(e,li)}function li(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Kn())return!1;if(Zn(Vn.fetch))return!0;var t=!1,e=Vn.document;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Zn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){h&&k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&nt(_,"fetch",(function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){var e=(i=2,function(t){if(Array.isArray(t))return t}(o=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(o,i)||function(t,e){if(t){if("string"==typeof t)return oi(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(t,e):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=e[0],r=e[1];return{url:pi(n),method:fi(r,"method")?String(r.method).toUpperCase():"GET"}}var o,i,a=t[0];return{url:pi(a),method:fi(a,"method")?String(a.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:o.method,url:o.url},startTimestamp:Date.now()};return ir("fetch",ci({},i)),t.apply(_,n).then((function(t){return ir("fetch",ci(ci({},i),{},{endTimestamp:Date.now(),response:t})),t}),(function(t){throw ir("fetch",ci(ci({},i),{},{endTimestamp:Date.now(),error:t})),t}))}}))}function fi(t,e){return!!t&&"object"===ii(t)&&!!t[e]}function pi(t){return"string"==typeof t?t:t?fi(t,"url")?t.url:t.toString?t.toString():"":""}var yi=["fatal","error","warning","log","info","debug"];function di(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],search:n,hash:r,relative:e[5]+n+r}}function vi(t){return vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(t)}function mi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mi(Object(n),!0).forEach((function(e){bi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bi(t,e,n){return(e=function(t){var e=function(t){if("object"!=vi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=vi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==vi(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gi=1024,_i="Breadcrumbs",Si=function(){var t=hi({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{name:_i,setupOnce:function(){},setup:function(e){var n;t.console&&(n=function(t){return function(e){if(qe()===t){var n={category:"console",data:{arguments:e.args,logger:"console"},level:(r=e.level,"warn"===r?"warning":yi.includes(r)?r:"log"),message:V(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: ".concat(V(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}He(n,{input:e.args,level:e.level})}var r}}(e),rr("console",n),or("console",Go)),t.dom&&function(t){rr("dom",t),or("dom",Zo)}(function(t,e){return function(n){if(qe()===t){var r,o,i="object"===vi(e)?e.serializeAttribute:void 0,a="object"===vi(e)&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>gi&&(fo&&k.warn("`dom.maxStringLength` cannot exceed ".concat(gi,", but a value of ").concat(a," was configured. Sentry will use ").concat(gi," instead.")),a=gi),"string"==typeof i&&(i=[i]);try{var c=n.event,u=function(t){return!!t&&!!t.target}(c)?c.target:c;r=G(u,{keyAttrs:i,maxStringLength:a}),o=W(u)}catch(t){r="<unknown>"}if(0!==r.length){var s={category:"ui.".concat(n.name),message:r};o&&(s.data={"ui.component_name":o}),He(s,{event:n.event,name:n.name,global:n.global})}}}}(e,t.dom)),t.xhr&&ni(function(t){return function(e){if(qe()===t){var n=e.startTimestamp,r=e.endTimestamp,o=e.xhr[ei];if(n&&r&&o){var i=o.method,a=o.url,c=o.status_code,u=o.body;He({category:"xhr",data:{method:i,url:a,status_code:c},type:"http"},{xhr:e.xhr,input:u,startTimestamp:n,endTimestamp:r})}}}}(e)),t.fetch&&si(function(t){return function(e){if(qe()===t){var n=e.startTimestamp,r=e.endTimestamp;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error)He({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r});else{var o=e.response;He({category:"fetch",data:hi(hi({},e.fetchData),{},{status_code:o&&o.status}),type:"http"},{input:e.args,response:o,startTimestamp:n,endTimestamp:r})}}}}(e)),t.history&&ur(function(t){return function(e){if(qe()===t){var n=e.from,r=e.to,o=di(xo.location.href),i=n?di(n):void 0,a=di(r);i&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),He({category:"navigation",data:{from:n,to:r}})}}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(t){return function(e){qe()===t&&He({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:ht(e)},{event:e})}}(e))}}};Un(_i,Si);var Oi="Dedupe",wi=function(){var t;return{name:Oi,setupOnce:function(){},processEvent:function(e){if(e.type)return e;try{if(function(t,e){return!!e&&(!!function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Pi(t,e)&&!!ji(t,e))))}(t,e)||!!function(t,e){var n=Ei(e),r=Ei(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Pi(t,e)&&!!ji(t,e)))}(t,e))}(e,t))return fo&&k.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};function ji(t,e){var n=Ti(t),r=Ti(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],a=n[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Pi(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Ei(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Ti(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}Un(Oi,wi);var ki=null;function xi(t){var e="error";rr(e,t),or(e,Ii)}function Ii(){ki=_.onerror,_.onerror=function(t,e,n,r,o){return ir("error",{column:r,error:o,line:n,msg:t,url:e}),!(!ki||ki.__SENTRY_LOADER__)&&ki.apply(this,arguments)},_.onerror.__SENTRY_INSTRUMENTED__=!0}var Ai=null;function Di(t){var e="unhandledrejection";rr(e,t),or(e,Ci)}function Ci(){Ai=_.onunhandledrejection,_.onunhandledrejection=function(t){return ir("unhandledrejection",t),!(Ai&&!Ai.__SENTRY_LOADER__)||Ai.apply(this,arguments)},_.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Ri(t){return Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(t)}function Ni(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mi(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ri(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ri(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Li="GlobalHandlers",Ui=function(){var t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ni(Object(n),!0).forEach((function(e){Mi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({onerror:!0,onunhandledrejection:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{name:Li,setupOnce:function(){Error.stackTraceLimit=50},setup:function(e){t.onerror&&(function(t){xi((function(e){var n=Bi(),r=n.stackParser,o=n.attachStacktrace;if(qe()===t&&!Ao()){var i=e.msg,a=e.url,c=e.line,u=e.column,s=e.error,l=void 0===s&&N(i)?function(t,e,n,r){var o=C(t)?t.message:t,i="Error",a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(i=a[1],o=a[2]),Hi({exception:{values:[{type:i,value:o}]}},e,n,r)}(i,a,c,u):Hi(Oo(r,s||i,void 0,o,!1),a,c,u);l.level="error",Ue(l,{originalException:s,mechanism:{handled:!1,type:"onerror"}})}}))}(e),qi("onerror")),t.onunhandledrejection&&(function(t){Di((function(e){var n=Bi(),r=n.stackParser,o=n.attachStacktrace;if(qe()===t&&!Ao()){var i=function(t){if(L(t))return t;var e=t;try{if("reason" in e)return e.reason;if("detail" in e&&"reason" in e.detail)return e.detail.reason}catch(t){}return t}(e),a=L(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:Oo(r,i,void 0,o,!0);a.level="error",Ue(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}}))}(e),qi("onunhandledrejection"))}}};function Hi(t,e,n,r){var o=t.exception=t.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},c=a.stacktrace=a.stacktrace||{},u=c.frames=c.frames||[],s=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=N(e)&&e.length>0?e:function(){try{return Y.document.location.href}catch(t){return""}}();return 0===u.length&&u.push({colno:s,filename:f,function:"?",in_app:!0,lineno:l}),t}function qi(t){fo&&k.log("Global Handler attached: ".concat(t))}function Bi(){var t=qe();return t&&t.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1}}function Fi(t){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(t)}function $i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$i(Object(n),!0).forEach((function(e){zi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zi(t,e,n){return(e=function(t){var e=function(t){if("object"!=Fi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Fi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Fi(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Un(Li,Ui);var Gi="HttpContext",Ji=function(){return{name:Gi,setupOnce:function(){},preprocessEvent:function(t){if(xo.navigator||xo.location||xo.document){var e=t.request&&t.request.url||xo.location&&xo.location.href,n=(xo.document||{}).referrer,r=(xo.navigator||{}).userAgent,o=Yi(Yi(Yi({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),i=Yi(Yi(Yi({},t.request),e&&{url:e}),{},{headers:o});t.request=i}}}};function Wi(t){return Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wi(t)}function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xi(Object(n),!0).forEach((function(e){Ki(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ki(t,e,n){return(e=function(t){var e=function(t){if("object"!=Wi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Wi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Wi(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zi(t){return function(t){if(Array.isArray(t))return Qi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Qi(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ta(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(i.exception&&i.exception.values&&a&&F(a.originalException,Error)){var c,u,s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=(c=ea(t,e,o,a.originalException,r,i.exception.values,s,0),u=n,c.map((function(t){return t.value&&(t.value=X(t.value,u)),t}))))}}function ea(t,e,n,r,o,i,a,c){if(i.length>=n+1)return i;var u=Zi(i);if(F(r[o],Error)){na(a,c);var s=t(e,r[o]),l=u.length;ra(s,o,l,c),u=ea(t,e,n,r[o],o,[s].concat(Zi(u)),s,l)}return Array.isArray(r.errors)&&r.errors.forEach((function(r,i){if(F(r,Error)){na(a,c);var s=t(e,r),l=u.length;ra(s,"errors[".concat(i,"]"),l,c),u=ea(t,e,n,r,o,[s].concat(Zi(u)),s,l)}})),u}function na(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=Vi(Vi(Vi({},t.mechanism),"AggregateError"===t.type&&{is_exception_group:!0}),{},{exception_id:e})}function ra(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=Vi(Vi({},t.mechanism),{},{type:"chained",source:e,exception_id:n,parent_id:r})}Un(Gi,Ji);var oa="LinkedErrors",ia=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.limit||5,n=t.key||"cause";return{name:oa,setupOnce:function(){},preprocessEvent:function(t,r,o){var i=o.getOptions();ta(ho,i.stackParser,i.maxValueLength,n,e,t,r)}}};function aa(t){return aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(t)}function ca(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ua(t,e,n){return(e=function(t){var e=function(t){if("object"!=aa(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=aa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==aa(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Un(oa,ia);var sa=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],la="TryCatch",fa=function(){var t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ca(Object(n),!0).forEach((function(e){ua(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{name:la,setupOnce:function(){t.setTimeout&&nt(xo,"setTimeout",pa),t.setInterval&&nt(xo,"setInterval",pa),t.requestAnimationFrame&&nt(xo,"requestAnimationFrame",ya),t.XMLHttpRequest&&"XMLHttpRequest" in xo&&nt(XMLHttpRequest.prototype,"send",da);var e=t.eventTarget;e&&(Array.isArray(e)?e:sa).forEach(va)}}};function pa(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0];return n[0]=Do(o,{mechanism:{data:{function:ne(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function ya(t){return function(e){return t.apply(this,[Do(e,{mechanism:{data:{function:"requestAnimationFrame",handler:ne(t)},handled:!1,type:"instrument"}})])}}function da(t){return function(){var e=this;["onload","onerror","onprogress","onreadystatechange"].forEach((function(t){t in e&&"function"==typeof e[t]&&nt(e,t,(function(e){var n={mechanism:{data:{function:t,handler:ne(e)},handled:!1,type:"instrument"}},r=it(e);return r&&(n.mechanism.data.handler=ne(r)),Do(e,n)}))}));for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(this,r)}}function va(t){var e=xo,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(nt(n,"addEventListener",(function(e){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Do(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ne(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,Do(r,{mechanism:{data:{function:"addEventListener",handler:ne(r),target:t},handled:!1,type:"instrument"}}),o])}})),nt(n,"removeEventListener",(function(t){return function(e,n,r){var o=n;try{var i=o&&o.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch(t){}return t.call(this,e,o,r)}})))}function ma(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ha(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}Un(la,fa);var ba="?";function ga(t,e,n,r){var o={filename:t,function:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var _a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sa=/\((\S*)(?::(\d+))(?::(\d+))\)/,Oa=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ja=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Pa=[[30,function(t){var e=_a.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=Sa.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=ma(Ta(e[1]||ba,e[2]),2),o=r[0];return ga(r[1],o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,function(t){var e=Oa.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=wa.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}var r=e[3],o=e[1]||ba,i=ma(Ta(o,r),2);return o=i[0],ga(r=i[1],o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,function(t){var e=ja.exec(t);return e?ga(e[2],e[1]||ba,+e[3],e[4]?+e[4]:void 0):void 0}]],Ea=te.apply(void 0,Pa),Ta=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:ba,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]};function ka(t){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(t)}function xa(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ia(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Ia(t,e){if(t){if("string"==typeof t)return Aa(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aa(t,e):void 0}}function Aa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Da(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ca(t,e,n){return(e=function(t){var e=function(t){if("object"!=ka(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ka(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ra=6e4;var Na=30;function Ma(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return kt(new Lr("Not adding Promise because buffer limit was reached."));var o=r();return-1===e.indexOf(o)&&e.push(o),o.then((function(){return n(o)})).then(null,(function(){return n(o).then(null,(function(){}))})),o},drain:function(t){return new xt((function(n,r){var o=e.length;if(!o)return n(!0);var i=setTimeout((function(){t&&t>0&&n(!1)}),t);e.forEach((function(t){Tt(t).then((function(){--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(t.bufferSize||Na),r={};function o(o){var i=[];if(Pr(o,(function(e,n){var o=Ir(n);if(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,o)){var a=La(e,n);t.recordDroppedEvent("ratelimit_backoff",o,a)}else i.push(e)})),0===i.length)return Tt();var a=jr(o[0],i),c=function(e){Pr(a,(function(n,r){var o=La(n,r);t.recordDroppedEvent(e,Ir(r),o)}))};return n.add((function(){return e({body:Tr(a,t.textEncoder)}).then((function(t){return void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&wt&&k.warn("Sentry responded with status code ".concat(t.statusCode," to sent event.")),r=function(t,e){var n,r,o=e.statusCode,i=e.headers,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Da(Object(n),!0).forEach((function(e){Ca(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),u=i&&i["x-sentry-rate-limits"],s=i&&i["retry-after"];if(u){var l,f=xa(u.trim().split(","));try{for(f.s();!(l=f.n()).done;){var p=(n=l.value.split(":",5),r=5,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(n,r)||Ia(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=p[0],d=p[1],v=p[4],m=parseInt(y,10),h=1e3*(isNaN(m)?60:m);if(d){var b,g=xa(d.split(";"));try{for(g.s();!(b=g.n()).done;){var _=b.value;"metric_bucket"===_&&v&&!v.split(";").includes("custom")||(c[_]=a+h)}}catch(t){g.e(t)}finally{g.f()}}else c.all=a+h}}catch(t){f.e(t)}finally{f.f()}}else s?c.all=a+function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(t),10);if(!isNaN(n))return 1e3*n;var r=Date.parse("".concat(t));return isNaN(r)?Ra:r-e}(s,a):429===o&&(c.all=a+6e4);return c}(r,t),t}),(function(t){throw c("network_error"),t}))})).then((function(t){return t}),(function(t){if(t instanceof Lr)return wt&&k.error("Skipped sending event because buffer is full."),c("queue_overflow"),Tt();throw t}))}return o.__sentry__baseTransport__=!0,{send:o,flush:function(t){return n.drain(t)}}}function La(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}var Ua=void 0;function Ha(t){return Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ha(t)}function qa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ba(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ha(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ha(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){if(Ua)return Ua;if(Zn(xo.fetch))return Ua=xo.fetch.bind(xo);var t=xo.document,e=xo.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){fo&&k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Ua=e.bind(xo)}(),n=0,r=0;return Ma(t,(function(o){var i=o.body.length;n+=i,r++;var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qa(Object(n),!0).forEach((function(e){Ba(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);try{return e(t.url,a).then((function(t){return n-=i,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}}))}catch(t){return Ua=void 0,n-=i,r--,kt(t)}}))}var $a=4;function Ya(t){return Ma(t,(function(e){return new xt((function(n,r){var o=new XMLHttpRequest;for(var i in o.onerror=r,o.onreadystatechange=function(){o.readyState===$a&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&o.setRequestHeader(i,t.headers[i]);o.send(e.body)}))}))}function za(t){return za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(t)}function Ga(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ja(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ga(Object(n),!0).forEach((function(e){Wa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wa(t,e,n){return(e=function(t){var e=function(t){if("object"!=za(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==za(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xa,Va=[zn(),Xn(),fa(),Si(),Ui(),ia(),wi(),Ji()];function Ka(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0===t.defaultIntegrations&&(t.defaultIntegrations=[].concat(Va)),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),xo.SENTRY_RELEASE&&xo.SENTRY_RELEASE.id&&(t.release=xo.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);var e,n,r=Ja(Ja({},t),{},{stackParser:(e=t.stackParser||Ea,Array.isArray(e)?te.apply(void 0,(n=e,function(t){if(Array.isArray(t))return Vt(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Xt(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e),integrations:Nn(t),transport:t.transport||(Kn()?Fa:Ya)});(function(t,e){!0===e.debug&&(wt?k.enable():P((function(){console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Be().update(e.initialScope);var n=new t(e);!function(t){var e=Tn().getStackTop();e.client=t,e.scope.setClient(t)}(n),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(n)})(zo,r),t.autoSessionTracking&&(void 0!==xo.document?(Fe({ignoreDuration:!0}),ze(),ur((function(t){var e=t.from,n=t.to;void 0!==e&&e!==n&&(Fe({ignoreDuration:!0}),ze())}))):fo&&k.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}function Za(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||Qa(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(t,e){if(t){if("string"==typeof t)return tc(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tc(t,e):void 0}}function tc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ec(t){var e=function(t){return Xa?Xa.get(t):void 0}(t);if(e){var n,r={},o=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=Qa(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==e.return||e.return()}finally{if(a)throw o}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=Za(n.value,2),a=Za(i[1],2),c=a[0],u=a[1];r[c]||(r[c]=[]),r[c].push(st(u))}}catch(t){o.e(t)}finally{o.f()}return r}}var nc,rc="sentry.source",oc="sentry.sample_rate",ic="sentry.op",ac="sentry.origin";function cc(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);var n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);"unknown_error"!==n&&t.setStatus(n)}function uc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uc(Object(n),!0).forEach((function(e){lc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lc(t,e,n){return(e=vc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fc(t){return fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(t)}function pc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,vc(r.key),r)}}function dc(t,e,n){return e&&yc(t.prototype,e),n&&yc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vc(t){var e=function(t){if("object"!=fc(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=fc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fc(e)?e:e+""}!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(nc||(nc={}));var mc=function(){return dc((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;pc(this,t),this._maxlen=e,this.spans=[]}),[{key:"add",value:function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}])}(),hc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};pc(this,t),this._traceId=e.traceId||vt(),this._spanId=e.spanId||vt().substring(16),this._startTime=e.startTimestamp||Ut(),this.tags=e.tags?sc({},e.tags):{},this.data=e.data?sc({},e.data):{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes(sc(lc(lc({},ac,e.origin||"manual"),ic,e.op),e.attributes)),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled" in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?sc({},e.measurements):{}}return dc(t,[{key:"name",get:function(){return this._name||""},set:function(t){this.updateName(t)}},{key:"description",get:function(){return this._name},set:function(t){this._name=t}},{key:"traceId",get:function(){return this._traceId},set:function(t){this._traceId=t}},{key:"spanId",get:function(){return this._spanId},set:function(t){this._spanId=t}},{key:"parentSpanId",get:function(){return this._parentSpanId},set:function(t){this._parentSpanId=t}},{key:"sampled",get:function(){return this._sampled},set:function(t){this._sampled=t}},{key:"attributes",get:function(){return this._attributes},set:function(t){this._attributes=t}},{key:"startTimestamp",get:function(){return this._startTime},set:function(t){this._startTime=t}},{key:"endTimestamp",get:function(){return this._endTime},set:function(t){this._endTime=t}},{key:"status",get:function(){return this._status},set:function(t){this._status=t}},{key:"op",get:function(){return this._attributes[ic]},set:function(t){this.setAttribute(ic,t)}},{key:"origin",get:function(){return this._attributes[ac]},set:function(t){this.setAttribute(ac,t)}},{key:"spanContext",value:function(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:this._sampled?ge:0}}},{key:"startChild",value:function(e){var n=new t(sc(sc({},e),{},{parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId}));n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);var r=Ge(this);if(n.transaction=r,wt&&r){var o=e&&e.op||"< unknown op >",i=je(n).description||"< unknown name >",a=r.spanContext().spanId,c="[Tracing] Starting '".concat(o,"' span on transaction '").concat(i,"' (").concat(a,").");k.log(c),this._logMessage=c}return n}},{key:"setTag",value:function(t,e){return this.tags=sc(sc({},this.tags),{},lc({},t,e)),this}},{key:"setData",value:function(t,e){return this.data=sc(sc({},this.data),{},lc({},t,e)),this}},{key:"setAttribute",value:function(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}},{key:"setAttributes",value:function(t){var e=this;Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))}},{key:"setStatus",value:function(t){return this._status=t,this}},{key:"setHttpStatus",value:function(t){return cc(this,t),this}},{key:"setName",value:function(t){this.updateName(t)}},{key:"updateName",value:function(t){return this._name=t,this}},{key:"isSuccess",value:function(){return"ok"===this._status}},{key:"finish",value:function(t){return this.end(t)}},{key:"end",value:function(t){if(!this._endTime){var e=Ge(this);if(wt&&e&&e.spanContext().spanId!==this._spanId){var n=this._logMessage;n&&k.log(n.replace("Starting","Finishing"))}this._endTime=Oe(t)}}},{key:"toTraceparent",value:function(){return Se(this)}},{key:"toContext",value:function(){return st({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}},{key:"updateWithContext",value:function(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}},{key:"getTraceContext",value:function(){return _e(this)}},{key:"getSpanJSON",value:function(){return st({data:this._getData(),description:this._name,op:this._attributes[ic],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ac],_metrics_summary:ec(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}},{key:"isRecording",value:function(){return!this._endTime&&!!this._sampled}},{key:"toJSON",value:function(){return this.getSpanJSON()}},{key:"_getData",value:function(){var t=this.data,e=this._attributes,n=Object.keys(t).length>0,r=Object.keys(e).length>0;if(n||r)return n&&r?sc(sc({},t),e):n?t:e}}])}();function bc(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var e=qe(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate" in n||"tracesSampler" in n)}function gc(t){return gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(t)}function _c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_c(Object(n),!0).forEach((function(e){Oc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oc(t,e,n){return(e=function(t){var e=function(t){if("object"!=gc(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=gc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==gc(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wc(t){if(bc()){var e=function(t){if(t.startTime){var e=Sc({},t);return e.startTimestamp=Oe(t.startTime),delete e.startTime,e}return t}(t),n=Tn(),r=t.scope?t.scope.getSpan():Be().getSpan();if(!t.onlyIfParent||r){var o=(t.scope||Be()).clone();return function(t,e){var n=e.parentSpan,r=e.spanContext,o=e.forceTransaction,i=e.scope;if(bc()){var a,c=kn();if(n&&!o)a=n.startChild(r);else if(n){var u=We(n),s=n.spanContext(),l=s.traceId,f=s.spanId,p=Pe(n);a=t.startTransaction(Sc(Sc({traceId:l,parentSpanId:f,parentSampled:p},r),{},{metadata:Sc({dynamicSamplingContext:u},r.metadata)}))}else{var y=Sc(Sc({},c.getPropagationContext()),i.getPropagationContext()),d=y.traceId,v=y.dsc,m=y.parentSpanId,h=y.sampled;a=t.startTransaction(Sc(Sc({traceId:d,parentSpanId:m,parentSampled:h},r),{},{metadata:Sc({dynamicSamplingContext:v},r.metadata)}))}return i.setSpan(a),function(t,e,n){t&&(rt(t,Pc,n),rt(t,jc,e))}(a,i,c),a}}(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:o})}}}var jc="_sentryScope",Pc="_sentryIsolationScope";function Ec(t){return Ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(t)}function Tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tc(Object(n),!0).forEach((function(e){xc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xc(t,e,n){return(e=Ac(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ic(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,Ac(r.key),r)}}function Ac(t){var e=function(t){if("object"!=Ec(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ec(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ec(e)?e:e+""}function Dc(t,e,n){return e=Mc(e),function(t,e){if(e&&("object"==Ec(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Cc()?Reflect.construct(e,n||[],Mc(t).constructor):e.apply(t,n))}function Cc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Cc=function(){return!!t})()}function Rc(t,e,n,r){var o=Nc(Mc(1&r?t.prototype:t),e,n);return 2&r?function(t){return o.apply(n,t)}:o}function Nc(){return Nc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Mc(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Nc.apply(null,arguments)}function Mc(t){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mc(t)}function Lc(t,e){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lc(t,e)}var Uc=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Dc(this,e,[t]))._contexts={},r._hub=n||Tn(),r._name=t.name||"",r._metadata=kc({},t.metadata),r._trimEnd=t.trimEnd,r.transaction=r;var o=r._metadata.dynamicSamplingContext;return o&&(r._frozenDynamicSamplingContext=kc({},o)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lc(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return this._name},set:function(t){this.setName(t)}},{key:"metadata",get:function(){return kc(kc(kc({source:"custom",spanMetadata:{}},this._metadata),this._attributes[rc]&&{source:this._attributes[rc]}),this._attributes[oc]&&{sampleRate:this._attributes[oc]})},set:function(t){this._metadata=t}},{key:"setName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=t,this.setAttribute(rc,e)}},{key:"updateName",value:function(t){return this._name=t,this}},{key:"initSpanRecorder",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new mc(t)),this.spanRecorder.add(this)}},{key:"setContext",value:function(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}},{key:"setMeasurement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[t]={value:e,unit:n}}},{key:"setMetadata",value:function(t){this._metadata=kc(kc({},this._metadata),t)}},{key:"end",value:function(t){var e=Oe(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}},{key:"toContext",value:function(){return st(kc(kc({},Rc(e,"toContext",this,3)([])),{},{name:this._name,trimEnd:this._trimEnd}))}},{key:"updateWithContext",value:function(t){return Rc(e,"updateWithContext",this,3)([t]),this._name=t.name||"",this._trimEnd=t.trimEnd,this}},{key:"getDynamicSamplingContext",value:function(){return We(this)}},{key:"setHub",value:function(t){this._hub=t}},{key:"getProfileId",value:function(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}},{key:"_finishTransaction",value:function(t){var n=this;if(void 0===this._endTime){this._name||(wt&&k.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),Rc(e,"end",this,3)([t]);var r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),!0!==this._sampled)return wt&&k.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(r&&r.recordDroppedEvent("sample_rate","transaction"));var o=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&je(t).timestamp})):[];if(this._trimEnd&&o.length>0){var i=o.map((function(t){return je(t).timestamp})).filter(Boolean);this._endTime=i.reduce((function(t,e){return t>e?t:e}))}var a={scope:this[jc],isolationScope:this[Pc]},c=a.scope,u=a.isolationScope,s=this.metadata,l=s.source,f=kc({contexts:kc(kc({},this._contexts),{},{trace:_e(this)}),spans:o,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:kc(kc({},s),{},{capturedSpanScope:c,capturedSpanIsolationScope:u},st({dynamicSamplingContext:We(this)})),_metrics_summary:ec(this)},l&&{transaction_info:{source:l}});return Object.keys(this._measurements).length>0&&(wt&&k.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),f.measurements=this._measurements),wt&&k.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this._name,".")),f}}}],r&&Ic(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(hc);function Hc(t){return Hc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hc(t)}function qc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,Yc(r.key),r)}}function $c(t,e,n){return e&&Fc(t.prototype,e),n&&Fc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yc(t){var e=function(t){if("object"!=Hc(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Hc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Hc(e)?e:e+""}function zc(t,e,n){return e=Xc(e),function(t,e){if(e&&("object"==Hc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Gc()?Reflect.construct(e,n||[],Xc(t).constructor):e.apply(t,n))}function Gc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gc=function(){return!!t})()}function Jc(t,e,n,r){var o=Wc(Xc(1&r?t.prototype:t),e,n);return 2&r?function(t){return o.apply(n,t)}:o}function Wc(){return Wc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Xc(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Wc.apply(null,arguments)}function Xc(t){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xc(t)}function Vc(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kc(t,e)}function Kc(t,e){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kc(t,e)}var Zc={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Qc=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],tu=function(t){function e(t,n,r,o){var i;return Bc(this,e),(i=zc(this,e,[o]))._pushActivity=t,i._popActivity=n,i.transactionSpanId=r,i}return Vc(e,t),$c(e,[{key:"add",value:function(t){var n=this;if(t.spanContext().spanId!==this.transactionSpanId){var r=t.end;t.end=function(){n._popActivity(t.spanContext().spanId);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return r.apply(t,o)},void 0===je(t).timestamp&&this._pushActivity(t.spanContext().spanId)}Jc(e,"add",this,3)([t])}}])}(mc),eu=function(t){function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zc.idleTimeout,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Zc.finalTimeout,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Zc.heartbeatInterval,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Bc(this,e),(r=zc(this,e,[t,n]))._idleHub=n,r._idleTimeout=o,r._finalTimeout=i,r._heartbeatInterval=a,r._onScope=c,r.activities={},r._heartbeatCounter=0,r._finished=!1,r._idleTimeoutCanceledPermanently=!1,r._beforeFinishCallbacks=[],r._finishReason=Qc[4],r._autoFinishAllowed=!u,c&&(wt&&k.log("Setting idle transaction on scope. Span ID: ".concat(r.spanContext().spanId)),n.getScope().setSpan(r)),u||r._restartIdleTimeout(),setTimeout((function(){r._finished||(r.setStatus("deadline_exceeded"),r._finishReason=Qc[3],r.end())}),r._finalTimeout),r}return Vc(e,t),$c(e,[{key:"end",value:function(t){var n=this,r=Oe(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){wt&&k.log("[Tracing] finishing IdleTransaction",new Date(1e3*r).toISOString(),this.op);var o,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return qc(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(this._beforeFinishCallbacks);try{for(i.s();!(o=i.n()).done;)(0,o.value)(this,r)}catch(t){i.e(t)}finally{i.f()}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanContext().spanId===n.spanContext().spanId)return!0;je(t).timestamp||(t.setStatus("cancelled"),t.end(r),wt&&k.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var e=je(t),o=e.start_timestamp,i=e.timestamp,a=o&&o<r,c=(n._finalTimeout+n._idleTimeout)/1e3,u=i&&o&&i-o<c;if(wt){var s=JSON.stringify(t,void 0,2);a?u||k.log("[Tracing] discarding Span since it finished after Transaction final timeout",s):k.log("[Tracing] discarding Span since it happened after Transaction was finished",s)}return a&&u})),wt&&k.log("[Tracing] flushing IdleTransaction")}else wt&&k.log("[Tracing] No active IdleTransaction");if(this._onScope){var a=this._idleHub.getScope();a.getTransaction()===this&&a.setSpan(void 0)}return Jc(e,"end",this,3)([t])}},{key:"registerBeforeFinishCallback",value:function(t){this._beforeFinishCallbacks.push(t)}},{key:"initSpanRecorder",value:function(t){var e=this;this.spanRecorder||(this.spanRecorder=new tu((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanContext().spanId,t),wt&&k.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}},{key:"cancelIdleTimeout",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0}).restartOnChildSpanChange;this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Qc[5],this.end(t)))}},{key:"setFinishReason",value:function(t){this._finishReason=t}},{key:"sendAutoFinishSignal",value:function(){this._autoFinishAllowed||(wt&&k.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}},{key:"_restartIdleTimeout",value:function(t){var e=this;this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((function(){e._finished||0!==Object.keys(e.activities).length||(e._finishReason=Qc[1],e.end(t))}),this._idleTimeout)}},{key:"_pushActivity",value:function(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),wt&&k.log("[Tracing] pushActivity: ".concat(t)),this.activities[t]=!0,wt&&k.log("[Tracing] new activities count",Object.keys(this.activities).length)}},{key:"_popActivity",value:function(t){if(this.activities[t]&&(wt&&k.log("[Tracing] popActivity ".concat(t)),delete this.activities[t],wt&&k.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=Ut();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Qc[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}},{key:"_beat",value:function(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(wt&&k.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Qc[0],this.end()):this._pingHeartbeat()}}},{key:"_pingHeartbeat",value:function(){var t=this;wt&&k.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((function(){t._beat()}),this._heartbeatInterval)}}])}(Uc);function nu(t){return(t||Tn()).getScope().getTransaction()}var ru=!1;function ou(){var t=nu();if(t){var e="internal_error";wt&&k.log("[Tracing] Transaction: ".concat(e," -> Global error occured")),t.setStatus(e)}}function iu(t){return iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(t)}function au(t,e,n){return bc(e)?void 0!==t.sampled?(t.setAttribute(oc,Number(t.sampled)),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setAttribute(oc,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setAttribute(oc,Number(r))):(r=1,t.setAttribute(oc,r)),cu(r)?r?(t.sampled=Math.random()<r,t.sampled?(wt&&k.log("[Tracing] starting ".concat(t.op," transaction - ").concat(je(t).description)),t):(wt&&k.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),t)):(wt&&k.log("[Tracing] Discarding transaction because ".concat("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(wt&&k.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function cu(t){return B(t)||"number"!=typeof t&&"boolean"!=typeof t?(wt&&k.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(t)," of type ").concat(JSON.stringify(iu(t)),".")),!1):!(t<0||t>1)||(wt&&k.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(t,".")),!1)}function uu(t){return uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(t)}function su(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?su(Object(n),!0).forEach((function(e){fu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fu(t,e,n){return(e=function(t){var e=function(t){if("object"!=uu(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=uu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==uu(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pu(){var t=this.getScope().getSpan();return t?{"sentry-trace":Se(t)}:{}}function yu(t,e){var n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=t.instrumenter||"sentry";o!==i&&(wt&&k.error("A transaction was started with instrumenter=`".concat(i,"`, but the SDK is configured with the `").concat(o,"` instrumenter.\nThe transaction will not be sampled. Please use the ").concat(o," instrumentation to start transactions.")),t.sampled=!1);var a=new Uc(t,this);return(a=au(a,r,lu({name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:lu(lu({},t.data),t.attributes)},e))).isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function du(t,e,n,r,o,i,a){var c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=t.getClient(),s=u&&u.getOptions()||{},l=new eu(e,t,n,r,a,o,c);return(l=au(l,s,lu({name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:lu(lu({},e.data),e.attributes)},i))).isRecording()&&l.initSpanRecorder(s._experiments&&s._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",l),l}ou.tag="sentry_tracingErrorCallback";var vu,mu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hu=_,bu=function(t,e,n){var r,o;return function(i){e.value>=0&&(i||n)&&((o=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=o,t(e))}},gu=function(){return hu.__WEB_VITALS_POLYFILL__?hu.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||function(){var t=hu.performance.timing,e=hu.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(var r in t)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n}()):hu.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},_u=function(){var t=gu();return t&&t.activationStart||0},Su=function(t,e){var n=gu(),r="navigate";return n&&(r=hu.document&&hu.document.prerendering||_u()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Ou=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){e(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},wu=function(t,e){var n=function(r){"pagehide"!==r.type&&"hidden"!==hu.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};hu.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},ju=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Su("CLS",0),o=0,i=[],a=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=i[0],a=i[i.length-1];o&&0!==i.length&&t.startTime-a.startTime<1e3&&t.startTime-n.startTime<5e3?(o+=t.value,i.push(t)):(o=t.value,i=[t]),o>r.value&&(r.value=o,r.entries=i,e&&e())}}))},c=Ou("layout-shift",a);if(c){e=bu(t,r,n.reportAllChanges);var u=function(){a(c.takeRecords()),e(!0)};return wu(u),u}},Pu=-1,Eu=function(){return Pu<0&&(hu.document&&hu.document.visibilityState&&(Pu="hidden"!==hu.document.visibilityState||hu.document.prerendering?1/0:0),wu((function(t){var e=t.timeStamp;Pu=e}),!0)),{get firstHiddenTime(){return Pu}}},Tu=function(t){var e,n=Eu(),r=Su("FID"),o=function(t){t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),e(!0))},i=function(t){t.forEach(o)},a=Ou("first-input",i);e=bu(t,r),a&&wu((function(){i(a.takeRecords()),a.disconnect()}),!0)},ku=0,xu=1/0,Iu=0,Au=function(t){t.forEach((function(t){t.interactionId&&(xu=Math.min(xu,t.interactionId),Iu=Math.max(Iu,t.interactionId),ku=Iu?(Iu-xu)/7+1:0)}))},Du=function(){"interactionCount" in performance||vu||(vu=Ou("event",Au,{type:"event",buffered:!0,durationThreshold:0}))},Cu=function(){return vu?ku:performance.interactionCount||0},Ru=[],Nu={},Mu=function(t){var e=Ru[Ru.length-1],n=Nu[t.interactionId];if(n||Ru.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};Nu[r.id]=r,Ru.push(r)}Ru.sort((function(t,e){return e.latency-t.latency})),Ru.splice(10).forEach((function(t){delete Nu[t.id]}))}},Lu=function(t,e){e=e||{},Du();var n,r=Su("INP"),o=function(t){t.forEach((function(t){t.interactionId&&Mu(t),"first-input"===t.entryType&&!Ru.some((function(e){return e.entries.some((function(e){return t.duration===e.duration&&t.startTime===e.startTime}))}))&&Mu(t)}));var e,o=(e=Math.min(Ru.length-1,Math.floor(Cu()/50)),Ru[e]);o&&o.latency!==r.value&&(r.value=o.latency,r.entries=o.entries,n())},i=Ou("event",o,{durationThreshold:e.durationThreshold||40});n=bu(t,r,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),wu((function(){o(i.takeRecords()),r.value<0&&Cu()>0&&(r.value=0,r.entries=[]),n(!0)})))},Uu={},Hu=function(t){var e,n=Eu(),r=Su("LCP"),o=function(t){var o=t[t.length-1];if(o){var i=Math.max(o.startTime-_u(),0);i<n.firstHiddenTime&&(r.value=i,r.entries=[o],e())}},i=Ou("largest-contentful-paint",o);if(i){e=bu(t,r);var a=function(){Uu[r.id]||(o(i.takeRecords()),i.disconnect(),Uu[r.id]=!0,e(!0))};return["keydown","click"].forEach((function(t){hu.document&&addEventListener(t,a,{once:!0,capture:!0})})),wu(a,!0),a}},qu=function(t){hu.document&&(hu.document.prerendering?addEventListener("prerenderingchange",(function(){return qu(t)}),!0):"complete"!==hu.document.readyState?addEventListener("load",(function(){return qu(t)}),!0):setTimeout(t,0))},Bu=function(t,e){e=e||{};var n=Su("TTFB"),r=bu(t,n,e.reportAllChanges);qu((function(){var t=gu();if(t){if(n.value=Math.max(t.responseStart-_u(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}}))};function Fu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var $u,Yu,zu,Gu,Ju,Wu={},Xu={};function Vu(t,e){return os(t,e),Xu[t]||(function(t){var e={};"event"===t&&(e.durationThreshold=0),Ou(t,(function(e){Ku(t,{entries:e})}),e)}(t),Xu[t]=!0),is(t,e)}function Ku(t,e){var n=Wu[t];if(n&&n.length){var r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Fu(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fu(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;try{i(e)}catch(e){mu&&k.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(ne(i),"\nError:"),e)}}}catch(t){o.e(t)}finally{o.f()}}}function Zu(){return ju((function(t){Ku("cls",{metric:t}),$u=t}),{reportAllChanges:!0})}function Qu(){return Tu((function(t){Ku("fid",{metric:t}),Yu=t}))}function ts(){return Hu((function(t){Ku("lcp",{metric:t}),zu=t}))}function es(){return Bu((function(t){Ku("ttfb",{metric:t}),Gu=t}))}function ns(){return Lu((function(t){Ku("inp",{metric:t}),Ju=t}))}function rs(t,e,n,r){var o,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return os(t,e),Xu[t]||(o=n(),Xu[t]=!0),r&&e({metric:r}),is(t,e,i?o:void 0)}function os(t,e){Wu[t]=Wu[t]||[],Wu[t].push(e)}function is(t,e,n){return function(){n&&n();var r=Wu[t];if(r){var o=r.indexOf(e);-1!==o&&r.splice(o,1)}}}function as(t){return[{type:"span"},t]}function cs(t){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cs(t)}var us=["startTimestamp"];function ss(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ls(t,e,n){return(e=function(t){var e=function(t){if("object"!=cs(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==cs(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fs(t){return"number"==typeof t&&isFinite(t)}function ps(t,e){var n=e.startTimestamp,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,us);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ss(Object(n),!0).forEach((function(e){ls(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({startTimestamp:n},r))}function ys(t){return ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(t)}function ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ds(Object(n),!0).forEach((function(e){ms(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ms(t,e,n){return(e=function(t){var e=function(t){if("object"!=ys(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ys(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ys(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hs(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return bs(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bs(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function bs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var gs=2147483647;function _s(t){return t/1e3}function Ss(){return hu&&hu.addEventListener&&hu.performance}var Os,ws,js=0,Ps={};function Es(){var t=Ss();if(t&&Ht){t.mark&&hu.performance.mark("sentry-tracing-init");var e=rs("fid",(function(t){var e=t.metric,n=e.entries[e.entries.length-1];if(n){var r=_s(Ht),o=_s(n.startTime);mu&&k.log("[Measurements] Adding FID"),Ps.fid={value:e.value,unit:"millisecond"},Ps["mark.fid"]={value:r+o,unit:"second"}}}),Qu,Yu),n=function(t){return rs("cls",t,Zu,$u,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}((function(t){var e=t.metric,n=e.entries[e.entries.length-1];n&&(mu&&k.log("[Measurements] Adding CLS"),Ps.cls={value:e.value,unit:""},ws=n)}),!0),r=function(t){return rs("lcp",t,ts,zu,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}((function(t){var e=t.metric,n=e.entries[e.entries.length-1];n&&(mu&&k.log("[Measurements] Adding LCP"),Ps.lcp={value:e.value,unit:"millisecond"},Os=n)}),!0),o=rs("ttfb",(function(t){var e=t.metric;e.entries[e.entries.length-1]&&(mu&&k.log("[Measurements] Adding TTFB"),Ps.ttfb={value:e.value,unit:"millisecond"})}),es,Gu);return function(){e(),n(),r(),o()}}return function(){}}var Ts={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ks(t,e,n,r,o,i){var a=i?e[i]:e["".concat(n,"End")],c=e["".concat(n,"Start")];c&&a&&ps(t,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+_s(c),endTimestamp:r+_s(a)})}function xs(t,e,n,r){var o=e[n];null!=o&&o<gs&&(t[r]=o)}function Is(t){return Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(t)}function As(t){return function(t){if(Array.isArray(t))return Ds(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ds(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ds(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ds(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Cs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cs(Object(n),!0).forEach((function(e){Ns(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ns(t,e,n){return(e=function(t){var e=function(t){if("object"!=Is(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Is(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Is(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ms(t){return Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(t)}function Ls(t,e){if(t){if("string"==typeof t)return Us(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Us(t,e):void 0}}function Us(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Hs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hs(Object(n),!0).forEach((function(e){Bs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bs(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ms(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ms(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fs=["localhost",/^\/(?!\/)/],$s={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Fs,tracePropagationTargets:Fs};function Ys(t){var e=qs({traceFetch:$s.traceFetch,traceXHR:$s.traceXHR},t),n=e.traceFetch,r=e.traceXHR,o=e.tracePropagationTargets,i=e.tracingOrigins,a=e.shouldCreateSpanForRequest,c=e.enableHTTPTimings,u="function"==typeof a?a:function(t){return!0},s=function(t){return function(t,e){return K(t,e||Fs)}(t,o||i)},l={};n&&si((function(t){var e=function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto.http.browser";if(bc()&&t.fetchData){var i=e(t.fetchData.url);if(!t.endTimestamp||!i){var a=Be(),c=qe(),u=t.fetchData,s=u.method,l=u.url,f=function(t){try{return new URL(t).href}catch(t){return}}(l),p=f?di(f).host:void 0,y=i?wc({name:"".concat(s," ").concat(l),onlyIfParent:!0,attributes:Ns({url:l,type:"fetch","http.method":s,"http.url":f,"server.address":p},ac,o),op:"http.client"}):void 0;if(y&&(t.fetchData.__span=y.spanContext().spanId,r[y.spanContext().spanId]=y),n(t.fetchData.url)&&c){var d=t.args[0];t.args[1]=t.args[1]||{};var v=t.args[1];v.headers=function(t,e,n,r,o){var i=o||n.getSpan(),a=Rs(Rs({},kn().getPropagationContext()),n.getPropagationContext()),c=a.traceId,u=a.spanId,s=a.sampled,l=a.dsc,f=i?Se(i):be(c,u,s),p=de(l||(i?We(i):Je(c,e,n))),y=r.headers||("undefined"!=typeof Request&&F(t,Request)?t.headers:void 0);if(y){if("undefined"!=typeof Headers&&F(y,Headers)){var d=new Headers(y);return d.append("sentry-trace",f),p&&d.append(le,p),d}if(Array.isArray(y)){var v=[].concat(As(y),[["sentry-trace",f]]);return p&&v.push([le,p]),v}var m="baggage" in y?y.baggage:void 0,h=[];return Array.isArray(m)?h.push.apply(h,As(m)):m&&h.push(m),p&&h.push(p),Rs(Rs({},y),{},{"sentry-trace":f,baggage:h.length>0?h.join(","):void 0})}return{"sentry-trace":f,baggage:p}}(d,c,a,v,y)}return y}var m=t.fetchData.__span;if(!m)return;var h=r[m];h&&(function(t,e){if(e.response){cc(t,e.response.status);var n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){var r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus("internal_error");t.end()}(h,t),delete r[m])}}(t,u,s,l);if(e){var n=Js(t.fetchData.url),r=n?di(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}c&&e&&zs(e)})),r&&ni((function(t){var e=function(t,e,n,r){var o=t.xhr,i=o&&o[ei];if(bc()&&o&&!o.__sentry_own_request__&&i){var a=e(i.url);if(!t.endTimestamp||!a){var c=Be(),u=kn(),s=Js(i.url),l=s?di(s).host:void 0,f=a?wc({name:"".concat(i.method," ").concat(i.url),onlyIfParent:!0,attributes:Bs({type:"xhr","http.method":i.method,"http.url":s,url:i.url,"server.address":l},ac,"auto.http.browser"),op:"http.client"}):void 0;f&&(o.__sentry_xhr_span_id__=f.spanContext().spanId,r[o.__sentry_xhr_span_id__]=f);var p=qe();if(o.setRequestHeader&&n(i.url)&&p){var y=qs(qs({},u.getPropagationContext()),c.getPropagationContext()),d=y.traceId,v=y.spanId,m=y.sampled,h=y.dsc;!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(le,n)}catch(t){}}(o,f?Se(f):be(d,v,m),de(h||(f?We(f):Je(d,p,c))))}return f}var b=o.__sentry_xhr_span_id__;if(!b)return;var g=r[b];g&&void 0!==i.status_code&&(cc(g,i.status_code),g.end(),delete r[b])}}(t,u,s,l);c&&e&&zs(e)}))}function zs(t){var e=(je(t).data||{}).url;if(e&&"string"==typeof e)var n=Vu("resource",(function(r){r.entries.forEach((function(r){var o,i,a,c,u;(function(t){return"resource"===t.entryType&&"initiatorType" in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)})(r)&&r.name.endsWith(e)&&((o=r,i=function(t){var e,n,r,o="unknown",i="unknown",a="",c=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=Ls(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==e.return||e.return()}finally{if(a)throw o}}}}(t);try{for(c.s();!(e=c.n()).done;){var u=e.value;if("/"===u){var s=(n=t.split("/"),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(n,r)||Ls(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());o=s[0],i=s[1];break}if(!isNaN(Number(u))){o="h"===a?"http":a,i=t.split(a)[1];break}a+=u}}catch(t){c.e(t)}finally{c.f()}return a===t&&(o=a),{name:o,version:i}}(o.nextHopProtocol),a=i.name,c=i.version,u=[],u.push(["network.protocol.version",c],["network.protocol.name",a]),Ht?[].concat(u,[["http.request.redirect_start",Gs(o.redirectStart)],["http.request.fetch_start",Gs(o.fetchStart)],["http.request.domain_lookup_start",Gs(o.domainLookupStart)],["http.request.domain_lookup_end",Gs(o.domainLookupEnd)],["http.request.connect_start",Gs(o.connectStart)],["http.request.secure_connection_start",Gs(o.secureConnectionStart)],["http.request.connection_end",Gs(o.connectEnd)],["http.request.request_start",Gs(o.requestStart)],["http.request.response_start",Gs(o.responseStart)],["http.request.response_end",Gs(o.responseEnd)]]):u).forEach((function(e){return t.setAttribute.apply(t,function(t){if(Array.isArray(t))return Us(t)}(n=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Ls(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n})),setTimeout(n))}))}))}function Gs(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((Ht||performance.timeOrigin)+t)/1e3}function Js(t){try{return new URL(t,hu.location.origin).href}catch(t){return}}function Ws(t){return Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(t)}function Xs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,Qs(r.key),r)}}function Vs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vs(Object(n),!0).forEach((function(e){Zs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zs(t,e,n){return(e=Qs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qs(t){var e=function(t){if("object"!=Ws(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ws(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ws(e)?e:e+""}var tl=Ks(Ks({},Zc),{},{markBackgroundTransactions:!0,routingInstrumentation:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(hu&&hu.location){var r,o=hu.location.href;e&&(r=t({name:hu.location.pathname,startTimestamp:Ht?Ht/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&ur((function(e){var n=e.to,i=e.from;void 0===i&&o&&-1!==o.indexOf(n)?o=void 0:i!==n&&(o=void 0,r&&(mu&&k.log("[Tracing] Finishing current transaction with op: ".concat(r.op)),r.end()),r=t({name:hu.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))}else mu&&k.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{}},$s),el=function(){return t=function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,(n=Pn()).__SENTRY__&&(n.__SENTRY__.extensions=n.__SENTRY__.extensions||{},n.__SENTRY__.extensions.startTransaction||(n.__SENTRY__.extensions.startTransaction=yu),n.__SENTRY__.extensions.traceHeaders||(n.__SENTRY__.extensions.traceHeaders=pu),ru||(ru=!0,xi(ou),Di(ou))),mu&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options=Ks(Ks({},tl),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Es(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&function(t,e){if(Ss()&&Ht){var n=function(t,e){return n=function(n){var r=n.metric;if(void 0!==r.value){var o=r.entries.find((function(t){return t.duration===r.value&&void 0!==Ts[t.name]})),i=qe();if(o&&i){var a=Ts[o.name],c=i.getOptions(),u=_s(Ht+o.startTime),s=_s(r.value),l=void 0!==o.interactionId?t[o.interactionId]:void 0;if(void 0!==l){var f=l.routeName,p=l.parentContext,y=l.activeTransaction,d=l.user,v=l.replayId,m=void 0!==d?d.email||d.id||d.ip_address:void 0,h=void 0!==y?y.getProfileId():void 0,b=new hc({startTimestamp:u,endTimestamp:u+s,op:"ui.interaction.".concat(a),name:G(o.target),attributes:vs(vs(vs({release:c.release,environment:c.environment,transaction:f},void 0!==m&&""!==m?{user:m}:{}),void 0!==h?{profile_id:h}:{}),void 0!==v?{replay_id:v}:{}),exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),g=function(t,e,n){return!!bc(e)&&(cu(r=void 0!==t&&"function"==typeof e.tracesSampler?e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:vs(vs({},t.data),t.attributes),location:hu.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1)?!0===r?n:!1===r?0:r*n:(mu&&k.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1));var r}(p,c,e);if(g)if(Math.random()<g){var _=b?(O=[b],w=i.getDsn(),j={sent_at:(new Date).toISOString()},w&&(j.dsn=pr(w)),jr(j,O.map(as))):void 0,S=i&&i.getTransport();S&&_&&S.send(_).then(null,(function(t){mu&&k.error("Error while sending interaction:",t)}))}else var O,w,j}}}},rs("inp",n,ns,Ju);var n}(t,e);return function(){n()}}}(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Vu("longtask",(function(t){var e,n=hs(t.entries);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=nu();if(!o)return;var i=_s(Ht+r.startTime),a=_s(r.duration);o.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+a})}}catch(t){n.e(t)}finally{n.f()}})),this.options._experiments.enableInteractions&&Vu("event",(function(t){var e,n=hs(t.entries);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=nu();if(!o)return;if("click"===r.name){var i=_s(Ht+r.startTime),a=_s(r.duration),c={description:G(r.target),op:"ui.interaction.".concat(r.name),origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+a},u=W(r.target);u&&(c.attributes={"ui.component_name":u}),o.startChild(c)}}}catch(t){n.e(t)}finally{n.f()}})),this._latestRoute={name:void 0,context:void 0}},(e=[{key:"setupOnce",value:function(t,e){var n=this;this._getCurrentHub=e;var r=e().getClient(),o=r&&r.getOptions(),i=this.options,a=i.routingInstrumentation,c=i.startTransactionOnLocationChange,u=i.startTransactionOnPageLoad,s=i.markBackgroundTransactions,l=i.traceFetch,f=i.traceXHR,p=i.shouldCreateSpanForRequest,y=i.enableHTTPTimings,d=i._experiments,v=o&&o.tracePropagationTargets,m=v||this.options.tracePropagationTargets;mu&&this._hasSetTracePropagationTargets&&v&&k.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),a((function(t){var r=n._createRouteTransaction(t);return n.options._experiments.onStartRouteTransaction&&n.options._experiments.onStartRouteTransaction(r,t,e),r}),u,c),s&&(hu.document?hu.document.addEventListener("visibilitychange",(function(){var t=nu();if(hu.document.hidden&&t){var e="cancelled",n=je(t),r=n.op,o=n.status;mu&&k.log("[Tracing] Transaction: ".concat(e," -> since tab moved to the background, op: ").concat(r)),o||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}})):mu&&k.warn("[Tracing] Could not set up background tab detection due to lack of global document")),d.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Ys({traceFetch:l,traceXHR:f,tracePropagationTargets:m,shouldCreateSpanForRequest:p,enableHTTPTimings:y})}},{key:"_createRouteTransaction",value:function(t){var e=this;if(this._getCurrentHub){var n,r=this._getCurrentHub(),o=this.options,i=o.beforeNavigate,a=o.idleTimeout,c=o.finalTimeout,u=o.heartbeatInterval,s="pageload"===t.op;if(s){var l=he(s?nl("sentry-trace"):"",s?nl("baggage"):void 0),f=l.traceId,p=l.dsc;n=Ks(Ks({traceId:f,parentSpanId:l.parentSpanId,parentSampled:l.sampled},t),{},{metadata:Ks(Ks({},t.metadata),{},{dynamicSamplingContext:p}),trimEnd:!0})}else n=Ks({trimEnd:!0},t);var y="function"==typeof i?i(n):n,d=void 0===y?Ks(Ks({},n),{},{sampled:!1}):y;d.metadata=d.name!==n.name?Ks(Ks({},d.metadata),{},{source:"custom"}):d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,!1===d.sampled&&mu&&k.log("[Tracing] Will not send ".concat(d.op," transaction because of beforeNavigate.")),mu&&k.log("[Tracing] Starting ".concat(d.op," transaction on scope"));var v=du(r,d,a,c,!0,{location:hu.location},u,s);return s&&hu.document&&(hu.document.addEventListener("readystatechange",(function(){["interactive","complete"].includes(hu.document.readyState)&&v.sendAutoFinishSignal()})),["interactive","complete"].includes(hu.document.readyState)&&v.sendAutoFinishSignal()),v.registerBeforeFinishCallback((function(t){e._collectWebVitals(),function(t){var e=Ss();if(e&&hu.performance.getEntries&&Ht){mu&&k.log("[Tracing] Adding & adjusting spans using Performance API");var n=_s(Ht),r=e.getEntries(),o=je(t),i=o.op,a=o.start_timestamp;if(r.slice(js).forEach((function(e){var r=_s(e.startTime),o=_s(e.duration);if(!("navigation"===t.op&&a&&n+r<a))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(r){ks(t,e,r,n)})),ks(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),ks(t,e,"fetch",n,"cache","domainLookupStart"),ks(t,e,"domainLookup",n,"DNS"),function(t,e,n){e.responseEnd&&(ps(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+_s(e.requestStart),endTimestamp:n+_s(e.responseEnd)}),ps(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+_s(e.responseStart),endTimestamp:n+_s(e.responseEnd)}))}(t,e,n)}(t,e,n);break;case"mark":case"paint":case"measure":!function(t,e,n,r,o){var i=o+n,a=i+r;ps(t,{description:e.name,endTimestamp:a,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i})}(t,e,r,o,n);var i=Eu(),c=e.startTime<i.firstHiddenTime;"first-paint"===e.name&&c&&(mu&&k.log("[Measurements] Adding FP"),Ps.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&c&&(mu&&k.log("[Measurements] Adding FCP"),Ps.fcp={value:e.startTime,unit:"millisecond"});break;case"resource":!function(t,e,n,r,o,i){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var a=di(n),c={};xs(c,e,"transferSize","http.response_transfer_size"),xs(c,e,"encodedBodySize","http.response_content_length"),xs(c,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus" in e&&(c["resource.render_blocking_status"]=e.renderBlockingStatus),a.protocol&&(c["url.scheme"]=a.protocol.split(":").pop()),a.host&&(c["server.address"]=a.host),c["url.same_origin"]=n.includes(hu.location.origin);var u=i+r,s=u+o;ps(t,{description:n.replace(hu.location.origin,""),endTimestamp:s,op:e.initiatorType?"resource.".concat(e.initiatorType):"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:c})}}(t,e,e.name,r,o,n)}})),js=Math.max(r.length-1,0),function(t){var e=hu.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),fs(n.rtt)&&(Ps["connection.rtt"]={value:n.rtt,unit:"millisecond"})),fs(e.deviceMemory)&&t.setTag("deviceMemory","".concat(e.deviceMemory," GB")),fs(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}}(t),"pageload"===i){!function(t){var e=gu();if(e){var n=e.responseStart,r=e.requestStart;r<=n&&(mu&&k.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}}(Ps),["fcp","fp","lcp"].forEach((function(t){if(Ps[t]&&a&&!(n>=a)){var e=Ps[t].value,r=n+_s(e),o=Math.abs(1e3*(r-a)),i=o-e;mu&&k.log("[Measurements] Normalized ".concat(t," from ").concat(e," to ").concat(o," (").concat(i,")")),Ps[t].value=o}}));var c=Ps["mark.fid"];c&&Ps.fid&&(ps(t,{description:"first input delay",endTimestamp:c.value+_s(Ps.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:c.value}),delete Ps["mark.fid"]),"fcp" in Ps||delete Ps.cls,Object.keys(Ps).forEach((function(t){!function(t,e,n){var r=nu();r&&r.setMeasurement(t,e,n)}(t,Ps[t].value,Ps[t].unit)})),function(t){Os&&(mu&&k.log("[Measurements] Adding LCP Data"),Os.element&&t.setTag("lcp.element",G(Os.element)),Os.id&&t.setTag("lcp.id",Os.id),Os.url&&t.setTag("lcp.url",Os.url.trim().slice(0,200)),t.setTag("lcp.size",Os.size)),ws&&ws.sources&&(mu&&k.log("[Measurements] Adding CLS Data"),ws.sources.forEach((function(e,n){return t.setTag("cls.source.".concat(n+1),G(e.node))})))}(t)}Os=void 0,ws=void 0,Ps={}}}(t)})),v}mu&&k.warn("[Tracing] Did not create ".concat(t.op," transaction because _getCurrentHub is invalid."))}},{key:"_registerInteractionListener",value:function(){var t,e=this,n=function(){var n=e.options,r=n.idleTimeout,o=n.finalTimeout,i=n.heartbeatInterval,a="ui.action.click",c=nu();if(c&&c.op&&["navigation","pageload"].includes(c.op))mu&&k.warn("[Tracing] Did not create ".concat(a," transaction because a pageload or navigation transaction is in progress."));else if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),e._getCurrentHub)if(e._latestRoute.name){var u=e._getCurrentHub(),s=hu.location,l={name:e._latestRoute.name,op:a,trimEnd:!0,data:Zs({},rc,e._latestRoute.context?rl(e._latestRoute.context):"url")};t=du(u,l,r,o,!0,{location:s},i)}else mu&&k.warn("[Tracing] Did not create ".concat(a," transaction because _latestRouteName is missing."));else mu&&k.warn("[Tracing] Did not create ".concat(a," transaction because _getCurrentHub is invalid."))};["click"].forEach((function(t){hu.document&&addEventListener(t,n,{once:!1,capture:!0})}))}},{key:"_registerInpInteractionListener",value:function(){var t=this,e=function(e){var n=e.entries,r=qe(),o=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,i=void 0!==o?o.getReplayId():void 0,a=nu(),c=Be(),u=void 0!==c?c.getUser():void 0;n.forEach((function(e){if(function(t){return"duration" in t}(e)){var n=e.interactionId;if(void 0===n)return;var r=t._interactionIdToRouteNameMapping[n],o=e.duration,c=e.startTime,s=Object.keys(t._interactionIdToRouteNameMapping),l=s.length>0?s.reduce((function(e,n){return t._interactionIdToRouteNameMapping[e].duration<t._interactionIdToRouteNameMapping[n].duration?e:n})):void 0;if("first-input"===e.entryType&&s.map((function(e){return t._interactionIdToRouteNameMapping[e]})).some((function(t){return t.duration===o&&t.startTime===c})))return;if(!n)return;if(r)r.duration=Math.max(r.duration,o);else if(s.length<10||void 0===l||o>t._interactionIdToRouteNameMapping[l].duration){var f=t._latestRoute.name,p=t._latestRoute.context;f&&p&&(l&&Object.keys(t._interactionIdToRouteNameMapping).length>=10&&delete t._interactionIdToRouteNameMapping[l],t._interactionIdToRouteNameMapping[n]={routeName:f,duration:o,parentContext:p,user:u,activeTransaction:a,replayId:i,startTime:c})}}}))};Vu("event",e),Vu("first-input",e)}}])&&Xs(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function nl(t){var e,n=(e="meta[name=".concat(t,"]"),Y.document&&Y.document.querySelector?Y.document.querySelector(e):null);return n?n.getAttribute("content"):void 0}function rl(t){var e=t.attributes&&t.attributes[rc],n=t.data&&t.data[rc],r=t.metadata&&t.metadata.source;return e||n||r}function ol(t){return ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(t)}function il(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,al(r.key),r)}}function al(t){var e=function(t){if("object"!=ol(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ol(e)?e:e+""}function cl(t){return cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(t)}function ul(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(t,sl(r.key),r)}}function sl(t){var e=function(t){if("object"!=cl(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=cl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==cl(e)?e:e+""}function ll(t,e,n){return e=pl(e),function(t,e){if(e&&("object"==cl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fl()?Reflect.construct(e,n||[],pl(t).constructor):e.apply(t,n))}function fl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fl=function(){return!!t})()}function pl(t){return pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pl(t)}function yl(t,e){return yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yl(t,e)}var dl,vl=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ll(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yl(t,e)}(e,t),n=e,(r=[{key:"create",value:function(){-1!==["ymere.nl","www.ymere.nl","acc.ymere.nl"].indexOf(window.location.hostname)&&Ka&&Ka({dsn:"https://29bf3a19791149a58b8b48e8310d8fb5@sentry.io/1877290",integrations:[new el({tracingOrigins:["*"]})],tracesSampleRate:0,ignoreErrors:["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage"],denyUrls:[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i],tracesSampler:function(t){}})}}])&&ul(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e||{}},(e=[{key:"init",value:function(){o("component.".concat(this.constructor.name,".init"),"Init component..."),this.create()}},{key:"create",value:function(){}},{key:"bind",value:function(){}}])&&il(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()),ml=new m({debug:!1,domain:"ymere.nl",autoload:{"component.sentry":vl}});dl=function(){ml.build()},"loading"!==document.readyState?dl():document.addEventListener?document.addEventListener("DOMContentLoaded",dl):document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&dl()}))}();;;
var APP=window.APP||{};APP.namespace=function(namespaceString){'use strict';var i;var parts=namespaceString.split('.');var length=parts.length;var parent=window;var currentPart='';for(i=0;i<length;i++){currentPart=parts[i];parent[currentPart]=parent[currentPart]||{};parent=parent[currentPart];}
return parent;};;;
APP.namespace('APP.Core.Components');APP.Core.Components.Accordion=(function(window){'use strict';var app,jqObj;app={events:{toggle:function(e){e.preventDefault();var el=$(e.target).closest('.expandable');if(el.hasClass('expanded')){app.methods.close(el);}else{app.methods.open(el);}}},methods:{init:function(){jqObj=$('.expandable');if(!jqObj.length){return false;}
app.methods.bind();app.methods.openHashID();return true;},bind:function(){jqObj.find('.expandable-toggle').off('click',app.events.toggle).on('click',app.events.toggle);},getExpandedHeight:function(el){el.removeClass('animated').css('height','auto');var height=el.height();el.css('height',0).addClass('animated');return height;},open:function(el){var contentEl=el.find('.expandable-content');var height=app.methods.getExpandedHeight(contentEl);setTimeout(function(){contentEl.css('height',height);el.addClass('expanded');setTimeout(function(){if(contentEl.hasClass('expanded')){contentEl.css('height','auto');}},500);});},close:function(el){var contentEl=el.find('.expandable-content');contentEl.css('height',contentEl.height());setTimeout(function(){contentEl.addClass('animated').css('height',0);el.removeClass('expanded');});},openHashID:function(){var hash=window.location.hash;var hashAt=hash.lastIndexOf('#');var hashBangAt=(hash.indexOf('#/')!==-1?hash.indexOf('#/'):hash.indexOf('#!/'));if(hashAt>-1&&hashBangAt!==hashAt){app.methods.openID(hash.substr(hashAt+1));app.methods.scrollToID(hash.substr(hashAt+1));}},openID:function(id){var target=$('#'+id);if(target.size()>0){if(target.hasClass('expanded')===false){target.find('.expandable-toggle').trigger('click');}}},scrollToID:function(id){var target=$('#'+id);if(target.size()>0){$('html, body').animate({scrollTop:target.offset().top},1000);}}}};return{init:app.methods.init,openID:app.methods.openID,scrollToID:app.methods.scrollToID};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.ConfirmButton=(function(document,window){var app,button;app={config:{},events:{onClick:function(evt){if(!app.methods.isValid()){return;}
evt.preventDefault();var el=$(this);var data;app.config.button={};app.config.button.action=el.data('confirm-action')||'submit';app.config.button.type=el.data('confirm-button');if(app.config.button.action==='redirect'){app.config.button.href=el.attr('href')||'';}
data=app.methods.getModalOptions();app.methods.createDialog(data);}},methods:{getConfig:function(){try{return APP.Core.Services.Config.get('ConfirmButton');}catch(err){return{};}},init:function(){button=$('[data-confirm-button]');if(!button.length){return;}
app.methods.create();return true;},getModalOptions:function(){var type=app.config.button.type;var data=(typeof type!=='undefined'&&typeof app.config[type]!=='undefined'?app.config[type]:undefined);var modalData;if(type==='radio_list'){$.each(data,function(k){var selectorId='#'+k;var jqSelector=$(selectorId);var isChecked=jqSelector.prop('checked');if(isChecked&&typeof data[k]!=='undefined'){modalData=data[k];}});}else{modalData=data;}
return modalData;},isValid:function(){return $('.error-message').is(':hidden')===false;},create:function(){$.extend(app.config,app.methods.getConfig());if($.isEmptyObject(app.config)){APP.Core.System.Log.error('[component.confirm-button] Configuration not specified...',app.config);return;}
app.methods.attach();},createDialog:function(modalOptions){if(typeof modalOptions!=='object'){return;}
APP.Core.Components.Modal.create({data:{type:modalOptions.modal,title:modalOptions.title,text:modalOptions.text,animation:true,button:[{text:modalOptions.button.confirm,callback:'confirm','class':'btn btn-default',dismiss:true},{text:modalOptions.button.cancel,'class':'btn btn-secondary',callback:'cancel',dismiss:true}]},callback:{confirm:{type:'click',fn:function(){switch(app.config.button.action){case'submit':app.methods.submitForm();break;case'redirect':window.location.href=app.config.button.href;break;}}},cancel:{type:'click'}}});},submitForm:function(){$('form').trigger('submit');},attach:function(){button.off('click',app.events.onClick).on('click',app.events.onClick);}}};return{init:app.methods.init};}(document,window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.FileInput=(function(window){var app,inputObj;app={events:{eventHandler:function(evt){evt.preventDefault();var jqObject=$(this);var focusClass='focus';var type=evt.type;switch(type){case'focus':jqObject.next('.custom-file-upload').addClass(focusClass);break;case'blur':jqObject.next('.custom-file-upload').removeClass(focusClass);break;case'change':app.methods.appendFileName.call(this);break;}}},methods:{init:function(){inputObj=$('.input-container input[type="file"]');if(!inputObj.length){return;}
app.methods.render();app.methods.attach();return true;},render:function(){inputObj.addClass('maxfilesize');inputObj.each(function(){app.methods.create.call(this);});},create:function(){var parent=$(this).parent();var customInput=$('<div/>',{'class':'custom-file-upload','html':'&nbsp;'});parent.addClass('input-file').append(customInput);},appendFileName:function(){var el=$(this);var inputValue=el.val().split('C:\\fakepath\\').join('');if(!inputValue.length){return;}
el.next('.custom-file-upload').text(inputValue);},attach:function(){inputObj.off('focus blur change',app.events.eventHandler).on('focus blur change',app.events.eventHandler);}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.Form=(function(window){'use strict';var app,jqObj;app={methods:{init:function(){jqObj=$('div[id^="umbraco_form_"]');if(!jqObj.length){return false;}
app.methods.enableCustomValidation();return true;},enableCustomValidation:function(){var isChecking=false;jqObj.on('DOMSubtreeModified',function(){if(isChecking===true||!$('.field-validation-error').is(':visible')){return;}
isChecking=true;setTimeout(function(){var validObj=$('.field-validation-valid');var errorObj=$('.field-validation-error');validObj.prev().removeClass('input-error');errorObj.prev().addClass('input-error');isChecking=false;},0);});}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.Hamburger=(function(window){var app,hamburgerObj,targetId;app={events:{eventHandler:function(evt){switch(evt.type){case'show':hamburgerObj.addClass('hb-active');break;case'hide':hamburgerObj.removeClass('hb-active');break;}}},methods:{init:function(){hamburgerObj=$('.hamburger');targetId=hamburgerObj.parent().data('target');if(!hamburgerObj.length||typeof targetId==='undefined'){return;}
app.methods.attach();return true;},attach:function(){$(targetId).on('show.bs.collapse',app.events.eventHandler);$(targetId).on('hide.bs.collapse',app.events.eventHandler);}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.Hyphenation=(function(window){'use strict';var app,jqObj;app={config:{selector:'.text-hyphenation',lang:'nl',autoload:false,items:[]},methods:{getSelectors:function(){var items=(APP.Core.Util.Array.isArray(app.config.items)?app.config.items:[]);items.push(app.config.selector);return items.join(',');},init:function(){$.extend(app.config,APP.Core.Services.Config.get('Hyphenation'));jqObj=$(app.methods.getSelectors());if(!jqObj.length){return false;}
app.methods.render();return true;},render:function(){if(!$.fn.hyphenate){APP.Core.System.Log.error('[core.components.hyphenation] Dependency not installed:','$.fn.hyphenate');}else{jqObj.hyphenate({lang:app.config.lang,autoload:app.config.autoload});}}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.Map=(function(window){'use strict';var app;var jqObj;var map;var markers=[];var config;var loaded=false;var iconBase='';var activeInfoWindow=null;var mapStyles;app={templates:{getH3:function(c,t){return $('<h3/>',{'class':c,'text':t});},getSpan:function(c,t){return $('<span/>',{'class':c,'text':t});},getImage:function(c,t){return $('<img/>',{'class':c,'src':t,'alt':''});},getLink:function(c,t,v){return $('<a/>',{'class':c,'href':t,'text':(typeof v!=='undefined'?v:t)});}},events:{onResize:function(){app.methods.createBound();var center=map.getCenter();google.maps.event.trigger(map,'resize');map.setCenter(center);}},methods:{init:function(){jqObj=$('#map');if(!jqObj.length){return false;}
config=app.methods.getConfig();if(typeof config.error!=='undefined'){APP.Core.System.Log.error('[core.components.map] Could not instantiate component...',config);return;}
var XHR=$.getJSON(config.baseUrl+'/app/core/components/map.json',function(data){mapStyles=data;});XHR.always(app.methods.bindOnViewport);return true;},getConfig:function(){var i;var mapConfig=APP.Core.Services.Config.get('map')||{};var validKeys=['api_key','markers','pois'];if(!Object.keys(mapConfig).length){return{'error':'Empty object','data':mapConfig};}else{for(i in validKeys){var key=validKeys[i];if(typeof mapConfig[key]==='undefined'){return{'error':'Missing configuration','data':key};}}}
mapConfig.baseUrl=APP.Core.Services.Config.get('baseUrl')||'/Scripts/js/app/core/';return mapConfig;},bindOnViewport:function(){jqObj.inViewport(function(px){if(!px||loaded)return;loaded=true;var file,s;file=document.createElement('script');file.type='text/javascript';file.async=true;file.src='//maps.google.com/maps/api/js?key='+config.api_key;s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(file,s);file.addEventListener('load',app.methods.onLoad);});},onLoad:function(){app.methods.createMap(function(){app.methods.initMarkers();app.methods.attach();});},getIcon:function(t){t=t.toUpperCase()||null;if(!t||config.markers[t]===undefined){return;}
return{url:iconBase+config.markers[t].url??'',size:new google.maps.Size(config.markers[t].size[0],config.markers[t].size[1]),origin:new google.maps.Point(config.markers[t].origin[0],config.markers[t].origin[1]),anchor:new google.maps.Point(config.markers[t].anchor[0],config.markers[t].anchor[1]),scaledSize:new google.maps.Size(config.markers[t].scaledSize[0],config.markers[t].scaledSize[1])};},getLatLng:function(coordinates){return{lat:parseFloat(coordinates.lat),lng:parseFloat(coordinates.lng)};},getDefaultMapConfig:function(){return{center:app.methods.getLatLng(config.pois[0].location)||{},zoom:(config.zoom||15),gestureHandling:(config.gestureHandling||false),draggable:(config.draggable||true),zoomControl:(config.zoomControl||true),zoomControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER},disableDefaultUI:(config.disableDefaultUI||true),styles:mapStyles};},createMap:function(cb){var mapConfig=app.methods.getDefaultMapConfig();map=new google.maps.Map(document.getElementById('map'),mapConfig);if(typeof cb==='function'){cb.call();}},createContent:function(data){var key,markerJqObj,routeUrl;markerJqObj=$('<div/>',{'class':'marker-content'});for(key in data){if(data.hasOwnProperty(key)){var fieldObj;switch(key){case'image':if(data[key]){fieldObj=app.templates.getImage(key,data[key]);}
break;case'name':case'title':fieldObj=app.templates.getH3(key,data[key]);break;case'website':case'email':fieldObj=app.templates.getLink(key,data[key]);break;case'routeUrl':routeUrl=data[key];routeUrl+=(data.address.length?data.address:'');routeUrl+=(data.zipcode.length?','+data.zipcode:'');routeUrl+=(data.city.length?' '+data.city:'');fieldObj=app.templates.getLink(key,routeUrl,'Route naar locatie');break;case'url':fieldObj=app.templates.getLink(key,data[key],'Bekijk details');break;case'address':case'zipcode':case'city':fieldObj=app.templates.getSpan(key,data[key]);break;case'type':var title='';switch(data[key]){case'project-nieuwbouw':title='Nieuwbouw';break;case'project-onderhoud':title='Onderhoud';break;case'project-renovatie':title='Renovatie';break;case'project-sloop':title='Sloop';break;case'project-woningverbeteren':title='Woningverbeteren';break;}
fieldObj=app.templates.getSpan(key,title);break;}
if(fieldObj){fieldObj.addClass('field');}
markerJqObj.append(fieldObj);}}
return markerJqObj[0];},createBound:function(){var i;var bound=new google.maps.LatLngBounds();if(markers.length>1){var coordinates;for(i=0;i<markers.length;i++){coordinates=app.methods.getLatLng(markers[i].location);bound.extend(new google.maps.LatLng(coordinates.lat,coordinates.lng));}
if(GLOBAL&&GLOBAL.map&&GLOBAL.map.area1&&GLOBAL.map.area2&&GLOBAL.map.area3){for(i=0;i<GLOBAL.map.area1.length;i++){coordinates=app.methods.getLatLng(GLOBAL.map.area1[i]);bound.extend(new google.maps.LatLng(coordinates.lat,coordinates.lng));}
for(i=0;i<GLOBAL.map.area2.length;i++){coordinates=app.methods.getLatLng(GLOBAL.map.area2[i]);bound.extend(new google.maps.LatLng(coordinates.lat,coordinates.lng));}
for(i=0;i<GLOBAL.map.area3.length;i++){coordinates=app.methods.getLatLng(GLOBAL.map.area3[i]);bound.extend(new google.maps.LatLng(coordinates.lat,coordinates.lng));}}
map.fitBounds(bound);}},initMarkers:function(){var i;for(i=0;i<config.pois.length;i++){var marker,markerConfig,icon,content;if(config.pois[i].type==='Office'){config.pois[i].routeUrl='https://www.google.com/maps/dir/Current+Location/';}
icon=app.methods.getIcon(config.pois[i].type);content=app.methods.createContent(config.pois[i]);if(config.pois[i].type){$(content).addClass('marker-'+config.pois[i].type);}
var coordinates=app.methods.getLatLng(config.pois[i].location);markerConfig={position:new google.maps.LatLng(coordinates.lat,coordinates.lng),map:map};if(icon.url!=='undefined'){markerConfig.icon=icon;}
marker=new google.maps.Marker(markerConfig);marker.location=config.pois[i].location;marker.infoWindow=new google.maps.InfoWindow({content:content});google.maps.event.addListener(marker,'click',app.methods.openInfoWindow);markers.push(marker);if(config.pois.length===1){google.maps.event.trigger(marker,'click');}}
if(GLOBAL&&GLOBAL.map&&GLOBAL.map.area1&&GLOBAL.map.area2&&GLOBAL.map.area3){var everythingElse=[new google.maps.LatLng(0,-90),new google.maps.LatLng(0,90),new google.maps.LatLng(90,-90),new google.maps.LatLng(90,90)];everythingElse.reverse();var area=new google.maps.Polygon({paths:[everythingElse,GLOBAL.map.area1,GLOBAL.map.area2,GLOBAL.map.area3],strokeColor:'#ff8c00',strokeOpacity:1.0,strokeWeight:2,fillColor:'#ffffff',fillOpacity:0.55});area.setMap(map);}
app.methods.createBound();},openInfoWindow:function(){if(this.infoWindow===activeInfoWindow&&this.infoWindow.isOpen){this.infoWindow.close();activeInfoWindow=null;}else{if(activeInfoWindow&&activeInfoWindow!==this.infoWindow){activeInfoWindow.close();}
this.infoWindow.open(map,this);activeInfoWindow=this.infoWindow;}},attach:function(){google.maps.event.addDomListener(window,'resize',app.events.onResize);}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.Modal=(function(window){'use strict';var app;var body=$('body');var config;var jqObject;app={config:{templateUrl:'/assets/js/app/core/components/modal.html'},methods:{isActive:function(){jqObject=$('.modal.'+config.data.type);return jqObject.length;},create:function(o){if(typeof o!=='object'){return;}
config=o;if(app.methods.isActive()){app.methods.render();}else{app.methods.get(function(html){jqObject=$(html);body.prepend(jqObject);app.methods.render();});}},get:function(callback){if(typeof callback==='function'){$.get(app.config.templateUrl,callback);}},render:function(){app.methods.ui.modal();app.methods.ui.closeButton();app.methods.ui.buttons();app.methods.ui.bind.events();app.methods.ui.bind.callbacks();app.methods.open();},ui:{modal:function(){if(config.data.animation===true){jqObject.addClass('fade');}
jqObject.find('.modal-inner').addClass(config.data.type);jqObject.find('.modal-inner > .modal-header > button').html('').hide();jqObject.find('.modal-inner > .modal-footer > ul > li').remove();jqObject.find('h2').text(config.data.title);jqObject.find('p').text(config.data.text);},closeButton:function(){if(typeof config.data.close!=='object'){return;}
var type,content,button;type=config.data.close.type;content=config.data.close.content;button=jqObject.find('.modal-inner > .modal-header > button');if(type==='icon'&&content instanceof jQuery){button.append(content);}
if(type==='text'&&typeof content==='string'){button.text(content);}
button.show();},buttons:function(){if(typeof config.data.button!=='object'){return;}
var ul;var list=[];$.each(config.data.button,function(index,value){if(typeof value!=='object'){return;}
var button,item;button=$('<button/>',{'text':value.text,'data-dismiss':(value.dismiss?'modal':null),'data-callback':value.callback,'class':value.class});item=$('<li/>');item.append(button);list.push(item);});ul=jqObject.find('.modal-footer > ul');ul.append.apply(ul,list);},bind:{events:function(){if(typeof config.events!=='object'){return;}
var evt;for(evt in config.events){if(config.events.hasOwnProperty(evt)&&typeof config.events[evt]==='function'){jqObject.off(evt,config.events[evt]).on(evt,config.events[evt]);}}},callbacks:function(){if(!jqObject.find('button[data-callback]').length){return;}
jqObject.find('button[data-callback]').each(function(){var button,cb;button=$(this);cb=button.data('callback');if(typeof config.callback[cb]==='object'){button.off(config.callback[cb].type,config.callback[cb].fn).on(config.callback[cb].type,config.callback[cb].fn);}});}}},open:function(){jqObject.modal('show');}}};return{create:app.methods.create};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.ResponsiveBgImage=(function(window){'use strict';var el=$('[data-background-image]');var widthSteps=[160,320,480,640,800,960,1120,1280,1440,1600,1760,1920,2080];var images={};var app;app={events:{onResize:function(){app.methods.setImage();}},methods:{init:function(){if(!el.length){return;}
app.methods.checkSlimmageVars();app.methods.setCenter();app.methods.setImage();app.methods.attach();return true;},getImageId:function(bg){var p=bg.split('/');return p[1]+'_'+p[2];},showImage:function(imageId,bg,newWidthStep){var jqObject=$(this);var image=images[imageId];var headerHeight=jqObject.find('.row-header-image').height();var adjustedHeight=(newWidthStep*image.height/image.width);if(adjustedHeight<headerHeight){adjustedHeight=Math.floor(headerHeight*1.5);newWidthStep=Math.floor(newWidthStep*1.5);bg=app.methods.adjustParameter(bg,'width=','width=',newWidthStep);bg=app.methods.adjustParameter(bg,'heightratio=','height=',adjustedHeight);}else if(newWidthStep<=480){newWidthStep=Math.floor(newWidthStep*1.5);bg=app.methods.adjustParameter(bg,'width=','width=',newWidthStep);}else{bg=app.methods.adjustParameter(bg,'width=','width=',newWidthStep);}
$('<img/>').attr('src',bg).on('load',function(e){jqObject.css({'background-image':'url('+bg+')','background-size':'cover'});$(this).remove();});},adjustParameter:function(inputString,param,replaceParam,appendValue){var parts=inputString.split(param);if(parts.length>1){parts[1]=parts[1].substr(parts[1].indexOf('&'));}
return parts.join(replaceParam+appendValue);},setImage:function(){var i;el.each(function(){var newWidthStep=0;var elWidth=$(this).get(0).clientWidth;for(i=0;i<widthSteps.length;i++){if(widthSteps[i]>=elWidth){newWidthStep=widthSteps[i];break;}}
var jqObject=$(this);var bg=jqObject.data('background-image');var imageId=app.methods.getImageId(bg);if(typeof images[imageId]!=='undefined'){app.methods.showImage.call(jqObject[0],imageId,bg,newWidthStep);}else{var data=jqObject.data();images[imageId]={};images[imageId].height=data.imageHeight||1600;images[imageId].width=data.imageWidth||900;app.methods.showImage.call(jqObject[0],imageId,bg,newWidthStep);}});},checkSlimmageVars:function(){el.each(function(){var _this=$(this);var styleString=_this.data('background-image');if(styleString.indexOf('width=')===-1&&styleString.indexOf('height=')===-1){_this.data('background-image',styleString+'?width=2000&quality=90&slimmage=true');}});},setCenter:function(){el.each(function(){var _this=$(this);var styleString=_this.data('background-image');if(!styleString)return;var startIndex=styleString.indexOf('rxy=');var endIndex=styleString.indexOf('&',startIndex);if(startIndex!==-1){startIndex+=4;var str=styleString.substr(startIndex,endIndex-startIndex);if(str==='center'){_this.css('background-position','center center');}else{var pos=str.split(',');if(pos.length===2){var bgy=(pos[0]*100)+'%';var bgx=(pos[1]*100)+'%';_this.css('background-position',bgx+' '+bgy);}}}else{_this.css('background-position','center center');}});},attach:function(){$(window).on('resize orientationChanged',app.events.onResize);}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.Tooltip=(function(window){'use strict';var app,jqObj;app={config:{init:false,trigger:'focus',placement:'top'},methods:{init:function(){$.extend(app.config,APP.Core.Services.Config.get('Tooltip'));jqObj=$('[data-toggle="tooltip"]');if(!jqObj.length){return false;}
app.methods.render();return true;},render:function(){if(!$.fn.tooltip){APP.Core.System.Log.error('[core.components.tooltip] Dependency not installed:','$.fn.tooltip');}else{app.methods.create();}},create:function(){$('[data-toggle="tooltip"]').tooltip();}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.OnAppear=(function(window){'use strict';var app,jqObj;var lastUpdate=0;app={methods:{init:function(){jqObj=$('.on-appear');if(!jqObj.length){return false;}
$(window).on('resize scroll orientationchange',app.methods.update);app.methods.update();setInterval(function(){app.methods.update();},10);return true;},update:function(){jqObj=$('.on-appear').not('.appeared');if(jqObj.length===0)return;var ms=new Date().getTime();if(ms-lastUpdate>100){lastUpdate=ms;var windowBottom=$(window).height()+$(window).scrollTop();jqObj.each(function(){if($(this).offset().top<windowBottom){$(this).addClass('appeared');return false;}});}}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.SlickSlider=(function(window){'use strict';var app,jqObj;app={config:{dots:true,prevArrow:false,nextArrow:false,slidesToShow:1,slidesToScroll:1,speed:300,autoplay:false,autoplaySpeed:7000},methods:{init:function(){$.extend(app.config,APP.Core.Services.Config.get('SlickSlider'));jqObj=$('.slick-slider');if(!jqObj.length){return false;}
app.methods.render();return true;},render:function(){if(!$.fn.slick){APP.Core.System.Log.error('[core.components.slick-slider] Dependency not installed:','$.fn.slick');}else{if(jqObj.hasClass('slick-initialized')){jqObj.slick('unslick');}
jqObj.slick(app.config);jqObj.on('beforeChange',function(){var current=$('.slick-current').find('.youtube-player');if(current){current.html(current.html());if(current.attr('data-background-image')){current.removeClass('visible');}}});}}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.SlickColumnSlider=(function(window){'use strict';var app,jqObj;app={config:{dots:true,prevArrow:false,nextArrow:false,slidesToShow:3,slidesToScroll:1,speed:300,autoplay:true,autoplaySpeed:4000,responsive:[{breakpoint:1000,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]},methods:{init:function(){$.extend(app.config,APP.Core.Services.Config.get('SlickColumnSlider'));jqObj=$('.column-slider');if(!jqObj.length){return false;}
app.methods.render();return true;},render:function(){if(!$.fn.slick){APP.Core.System.Log.error('[core.components.slick-column-slider] Dependency not installed:','$.fn.slick');}else{if(jqObj.hasClass('slick-initialized')){jqObj.slick('unslick');}
jqObj.slick(app.config);}}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Components');APP.Core.Components.YoutubePlayer=(function(window){'use strict';var app;var jqObj;app={methods:{init:function(){jqObj=$('[data-plyr-embed-id]');if(!jqObj.length){return false;}
app.methods.bind(function(){app.methods.ready();});return true;},ready:function(){var players=Plyr.setup('.v-player',{title:'video',youtube:{cc_load_policy:1,rel:0,showinfo:0,controls:0,autohide:1,modestbranding:1,noCookie:true,},captions:{active:true,language:'auto'},settings:['captions']});for(var i=0;i<players.length;i++){var poster=players[i].media.dataset.plyrPoster;if(poster){players[i].poster=poster;}}
window.players=players;},bind:function(callback){var script=document.createElement('script');var head=document.getElementsByTagName('head')[0];script.src='/scripts/js/vendor/plyr/dist/plyr.polyfilled.min.js';if(script.readyState){script.onreadystatechange=function(){if(script.readyState==='loaded'||script.readyState==='complete'){script.onreadystatechange=null;callback();}};}else{script.onload=function(){callback();};}
head.appendChild(script);return true;}}};return{init:app.methods.init};}(window));;;
APP.namespace('APP.Core.Services');APP.Core.Services.Config=(function(window){'use strict';var app,config;function getType(d){return APP.Core.Util.Array.isArray(d)?'array':typeof d;}
app={methods:{init:function(){config=$.extend({},window.GLOBAL);app.methods.set('debug',APP.Core.Util.Environment.get()==='development');if(!config.debug){window.GLOBAL=window.GLOBAL||{};}},set:function(key,value){var d=app.methods.get(key);var type=getType(d);var o=config;if(type==='array'){d.push(value);}else{var arr=key.split('.');var length=arr.length-1;for(var i=0;i<length;i++){o=o[arr[i]]={};}
o[arr[length]]=value;}
return o;},get:function(prop){if(typeof prop==='undefined'){return config;}
var p;var o=config;var props=prop.split('.');while(props.length){p=props.shift();o=o[p];if(typeof o==='undefined'){break;}}
return o;}}};return{init:app.methods.init,set:app.methods.set,get:app.methods.get};}(window));;;
APP.namespace('APP.Core.System');APP.Core.System.Autoload=(function(window){'use strict';var app;function capitalize(string){var str=$.camelCase(string);return str[0].toUpperCase()+str.slice(1);}
function getPackages(){return APP.Core.Services.Config.get('autoload');}
function getPackage(prop){if(typeof prop==='undefined'){return;}
var p;var o=APP;var props=prop.split('.');while(props.length){p=props.shift();o=o[capitalize(p)];if(typeof o==='undefined'){break;}}
return o;}
app={methods:{compile:function(){var autoload=getPackages();if(!APP.Core.Util.Array.isArray(autoload))return;app.methods.startAll(autoload);},startAll:function(packages){var i;for(i in packages){if(packages.hasOwnProperty(i)){app.methods.start(packages[i]);}}},start:function(i){var item=getPackage(i);if(typeof item==='undefined'){APP.Core.System.Log.error('[core.autoload.start] Could not start:',i+' [undefined]');}else if(typeof item.init!=='function'){APP.Core.System.Log.error('[core.autoload.start] Could not start:',i+' [init]');}else{if(item.init()){item.active=true;APP.Core.System.Log.trace('['+i+'.init] Instantiate component...');}}}}};return{compile:app.methods.compile,start:app.methods.start};}(window));;;
APP.namespace('APP.Core.System');APP.Core.System.Bootstrap=(function(window){'use strict';var app;app={methods:{getAction:function(){return(APP.Core.Services.Config.get('reload')?'Reload application...':'Run application...');},reload:function(o){o=(typeof o==='object'?o:APP.Core.Services.Config.get());o.reload=true;window.GLOBAL=o;app.methods.run();},run:function(){APP.Core.Services.Config.init();APP.Core.System.Log.trace('[core.system.bootstrap.run] '+app.methods.getAction());APP.Core.System.Autoload.compile();},start:function(type){APP.Core.System.Autoload.start(type);}}};return{run:app.methods.run,reload:app.methods.reload,start:app.methods.start};}(window));;;
APP.namespace('APP.Core.Util');APP.Core.System.Cookie=(function(window){'use strict';var app;function hasCookies(){var dep=typeof window.Cookies==='object';if(!dep){APP.Core.System.Log.error('[core.system.cookie] Error, dependency unavailable...',window.Cookies);}
return dep;}
function getCookieString(name,value){return name+'|'+value;}
app={methods:{set:function(name,value,params){if(!hasCookies())return;var cookieStr=getCookieString(name,(typeof value==='undefined'||!value.length?'null':value));APP.Core.System.Log.info('[core.system.cookie.set] Set cookie data: '+cookieStr);Cookies.set(name,value,params);},get:function(name){if(!hasCookies())return;return Cookies.get(name);}}};return{set:app.methods.set,get:app.methods.get};}(window));;;
APP.namespace('APP.Core');APP.Core.System.Log=(function(window){'use strict';function hasConsole(t){return(typeof window.console!=='undefined'&&typeof window.console[t]!=='undefined');}
function isDebug(t){return(APP.Core.Util.Device.isLowerIE9()!==true&&(APP.Core.Services.Config.get('debug')&&hasConsole(t)));}
function log(t,m,o){if(!isDebug(t))return;var prefix=APP.Core.Util.String.capitalize(t);var data=(typeof o!=='object'?(prefix+': '+m):m);switch(t){case'log':console.log(data);break;case'error':console.error(data,o);break;case'info':console.info(data);break;}}
return{trace:function(m){log('log',m);},error:function(m,o){log('error',m,o);},info:function(m){log('info',m);}};}(window));;;
APP.namespace('APP.Core');APP.Core.System.Observer=(function(window){'use strict';var app;function getName(fn){var v;v=fn.toString();v=v.substr('function '.length);v=v.substr(0,v.indexOf('('));return(v.length?' ('+v+')':'');}
function message(m,t,fn){switch(m){case'on':APP.Core.System.Log.info('[core.system.observer.on] Subscribe event: '+t+getName(fn));break;case'on.error':APP.Core.System.Log.trace('[core.system.observer.on] Could not subscribe event...');break;case'remove':APP.Core.System.Log.info('[core.system.observer.remove] Remove event: '+t);break;case'broadcast':APP.Core.System.Log.info('[core.system.observer.broadcast] Broadcast event: '+t);break;}}
app={subscribers:{},methods:{on:function(type,fn){if(typeof fn!=='function'){message('on.error');}else{var t=type||'any';if(typeof app.subscribers[t]==='undefined'){app.subscribers[t]=[];}
app.subscribers[t].push(fn);message('on',t,fn);}},broadcast:function(type,publication){app.methods.process('publish',type,publication);message('broadcast',type,publication);},remove:function(type,fn){app.methods.process('remove',type,fn);message('remove',type,fn);},process:function(action,type,arg){var pubType=type||'any';var subscribers=app.subscribers[pubType];var i;var max=subscribers?subscribers.length:0;for(i=0;i<max;i+=1){if(action==='publish'){subscribers[i].call(undefined,arg);}else{if(subscribers[i]===arg){subscribers.splice(i,1);}}}}}};return{on:app.methods.on,broadcast:app.methods.broadcast,remove:app.methods.remove};}(window));;;
APP.namespace('APP.Core.Util');APP.Core.Util.Array=(function(window){'use strict';return{isArray:function(obj){return!!obj&&Array===obj.constructor;}};}(window));;;
APP.namespace('APP.Core.Util');APP.Core.Util.Device=(function(window,document){'use strict';var DeviceManager;DeviceManager={isiPad:function(){return(navigator.platform.match(/iPad/i));},isiPod:function(){return(navigator.platform.match(/iPod/i));},isiPhone:function(){return(navigator.platform.match(/iPhone/i));},isMac:function(){return(navigator.platform.match(/Mac/i));},isChrome:function(){return(navigator.userAgent.match(/Chrome/i))?!DeviceManager.isAndroid():false;},isSafari:function(){return(navigator.userAgent.match(/Safari/i))?!DeviceManager.isChrome():false;},isAndroid:function(){return navigator.userAgent.match(/Android/i);},isIE:function(){var ua=navigator.userAgent.toLowerCase();return(ua.indexOf('msie')!==-1)?parseInt(ua.split('msie')[1]):false;},isLowerIE9:function(){return(DeviceManager.isIE()&&DeviceManager.isIE()<=9);},isBlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i);},isiOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i);},iOSVersion:function(){return DeviceManager.isiOS()?navigator.appVersion.match(/OS (.)/i)[1]:0;},isOpera:function(){return navigator.userAgent.match(/Opera Mini/i);},isWindows:function(){return navigator.userAgent.match(/IEMobile/i);},isMobile:function(){var a=navigator.userAgent||navigator.vendor||window.opera;return(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a.toLowerCase()));},isMobileAll:function(){var a=navigator.userAgent||navigator.vendor||window.opera;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.toLowerCase().substr(0,4)));},isDesktop:function(){return!DeviceManager.isMobile();}};return DeviceManager;}(window));;;
APP.namespace('APP.Core.Util');APP.Core.Util.Dom=(function(window){'use strict';var app;app={isElement:function(target,array){if(typeof array!=='object'){return;}
var i;var isElement=false;for(i in array){if(array.hasOwnProperty(i)){if(target.is(array[i])){isElement=true;}}}
return isElement;},isEmpty:function(el){return!$.trim(el.html());},inFrame:function(){try{return window.self!==window.top;}catch(e){return true;}}};return{isElement:app.isElement,isEmpty:app.isEmpty,inFrame:app.inFrame,inViewport:app.inViewport};}(window));;;
APP.namespace('APP.Core.Util');APP.Core.Util.Environment=(function(){'use strict';var app;var value='production';app={methods:{get:function(){var i,host,env;host=window.location.host;env=APP.Core.Services.Config.get('environments');for(i=0;i<env.length;i++){var s,r,m;s=env[i].toString();r=new RegExp(s,'gi');m=host.match(r)||undefined;if(typeof m!=='undefined'&&m[0].length){value='development';}}
return value;}}};return{get:app.methods.get};}());;;
APP.namespace('APP.Core.Util');APP.Core.Util.JSON=(function(window){'use strict';var app;function hasJson(){var dep=typeof window.JSON==='object'&&typeof JSON.stringify!=='function';if(!dep){APP.Core.System.Log.error('[core.util.json] Error, dependency unavailable...',window.JSON);}
return dep;}
app={methods:{toObject:function(string){if(!hasJson()||typeof string==='undefined'){return;}
return JSON.parse(string);},toString:function(object){if(!hasJson()||typeof object!=='object'){return;}
return JSON.stringify(object);},getCurrentId:function(currentId,jsonData,field){var i,id;for(i=0;i<jsonData.length;i++){if(jsonData.hasOwnProperty(i)){if(jsonData[i][field]===currentId){id=i;break;}}}
return id;},getNextId:function(currentId,jsonData,field){var i,id,total,nextId;total=jsonData.length-1;for(i=0;i<jsonData.length;i++){if(jsonData.hasOwnProperty(i)){if(jsonData[i][field]===currentId){nextId=i+1;if(nextId<=total){id=nextId;}
break;}}}
return id;},getPreviousId:function(currentId,jsonData,field){var i,id,previousId;for(i=0;i<jsonData.length;i++){if(jsonData.hasOwnProperty(i)){if(jsonData[i][field]===currentId){previousId=i-1;if(previousId>=0){id=previousId;}
break;}}}
return id;}}};return{toObject:app.methods.toObject,toString:app.methods.toString,getCurrentId:app.methods.getCurrentId,getNextId:app.methods.getNextId,getPreviousId:app.methods.getPreviousId};}(window));;;
APP.namespace('APP.Core.Util');APP.Core.Util.Responsive=(function(window){'use strict';var app;app={getWidth:function(){return $('.container').outerWidth();},isMobile:function(){return app.getWidth()<750&&('ontouchstart' in window);},isSmall:function(){return app.getWidth()>=750;},isMedium:function(){return app.getWidth()>=970;}};return{getWidth:app.getWidth,isMobile:app.isMobile,isSmall:app.isSmall,isMedium:app.isMedium};}(window));;;
APP.namespace('APP.Core.Util');APP.Core.Util.String=(function(window){'use strict';var app;app={capitalize:function(t){return t.toString().substring(0,1).toUpperCase()+t.substring(1);}};return{capitalize:app.capitalize};}(window));;;
APP.namespace('APP.Site.Components');APP.Site.Components.Nav=(function(window){'use strict';var app;var searchForm;var button;var input;var searchfocus;app={events:{toggle:function(e){e.preventDefault();e.stopPropagation();if(searchForm.classList.contains('active')){if(!input.value){return;}
searchForm.submit();}else{searchForm.classList.add('active');setTimeout(function(){input.focus();},300);}},remove:function(e){e.stopPropagation();if(searchForm.classList.contains('active')){searchForm.classList.remove('active');}}},methods:{init:function(){searchForm=document.querySelector('.main-menu__search');input=searchForm.querySelector('input#zoek');button=searchForm.querySelector('#searchform button');searchfocus=document.querySelector('.searchfocus');if(!searchForm.length){return false;}
app.methods.bind();return true;},bind:function(){button.addEventListener('touchstart',app.events.toggle);button.addEventListener('click',app.events.toggle);searchfocus.addEventListener('focus',app.events.toggle);searchForm.querySelector('.main-menu__search__close').addEventListener('click',app.events.remove);}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.SubMenu=(function(window){'use strict';var app;app={methods:{init:function(){var el=$('#sub-menu');if(el){el.closest('.column').className+=' d-none d-lg-block';}
return true;}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.Share=(function(window){'use strict';var app,jqObj;app={methods:{init:function(){jqObj=$('[data-share-link]');if(!jqObj.length){return false;}
app.methods.bind();return true;},bind:function(){var url=location.href;$('[data-share-link="twitter"]').attr('href','https://www.twitter.com/home?status='+url);$('[data-share-link="facebook"]').attr('href','https://www.facebook.com/sharer/sharer.php?u='+url);$('[data-share-link="linkedin"]').attr('href','https://www.linkedin.com/shareArticle?mini=true&url='+url);}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.IframeModal=(function(window){'use strict';var template='';template+='<div class="ul-modal loading" role="dialog" aria-labelledby="modal-title" aria-modal="true"><div class="ul-modal--content">';template+='<div class="ul-modal--header"><h2 id="modal-title">{{title}}</h2><a href="" class="ul-modal--close"><div class="icon-svg icon-30 icon-close-white" aria-label="Scherm sluiten">&nbsp;</div></a></div>';template+='<div class="ul-modal--iframe"><iframe src="{{url}}" frameborder="0" onload="APP.Site.Components.IframeModal.onload($(this));">Loading</iframe></div>';template+='</div></div>';var app;app={methods:{onload:function(obj){if(obj){var iframeObj=obj;var h=iframeObj.height();iframeObj.height(h-1);setTimeout(function(){iframeObj.height(h);});$('.ul-modal.loading').removeClass('loading');}},init:function(){$('[data-iframe-modal]').each(function(){var data=$(this).data('iframe-modal');console.log(data.title);$(this).click(function(e){var t=template;t=t.replace('{{title}}',data.title);t=t.replace('{{url}}',data.url);var el=$(t);e.preventDefault();$('body').append(el);$('body').addClass('modal-open');el.find('.ul-modal--close').on('click',function(event){$('body').removeClass('modal-open');event.preventDefault();el.remove();});});});}}};return{init:app.methods.init,onload:app.methods.onload};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.Feedback=(function(window){'use strict';var app,jqObj;app={config:{response:'Bedankt voor je feedback!'},events:{onClick:function(evt){evt.preventDefault();app.methods.handleClick.call(this);}},methods:{init:function(){jqObj=$('[data-feedback-rating]');if(!jqObj.length)return;app.methods.attach();return true;},getRating:function(i){switch(i){case 0:return'Thumbs down';case 1:return'Thumbs up';}
return undefined;},getResponse:function(){return $('<h5/>',{class:'margin-b10',text:app.config.response});},getData:function(el){var data=el.data()||{};var group=(data.feedbackGroup||'').trim();var title=(data.feedbackTitle||'').trim();var id=(data.feedbackId||'').trim();var rating=data.feedbackRating;return{group:group.length?group:null,title:title.length?title:null,id:id.length?'faq-'+id:null,rating:app.methods.getRating(rating)};},handleClick:function(){var el=$(this);var data=app.methods.getData(el);if(!data.group||!data.title||!data.id||typeof data.rating==='undefined'){APP.Core.System.Log.error('[site.components.feedback] Missing data...',data);}else{var response=app.methods.getResponse();GTM.trigger('feedback',{category:'Feedback',action:data.rating,label:data.id,item:data.group+' \xbb '+data.title});el.parent().html(response);}},attach:function(){jqObj.off('click',app.events.onClick).on('click',app.events.onClick);}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.CookieBar=(function(window,document){'use strict';var app;var html=$('html');var body=$('body');var jqObj;var selectedObj;function hasDependency(){var consent=window.CookieConsent;return(typeof consent!=='undefined'&&typeof consent.show==='function'&&consent.windowOnloadTriggered);}
app={config:{baseUrl:'/app_plugins/',template:'cookie-bar-placeholder.html',default:'.cookie-configuration-option[data-consent-type="necessary|preferences|statistics|marketing"]',key:{ESCAPE:27},states:{hidden:'is-hidden',visible:'is-visible',selected:'is-selected'},checkboxes:{necessary:'input#CybotCookiebotDialogBodyLevelButtonNecessary',preferences:'input#CybotCookiebotDialogBodyLevelButtonPreferences',statistics:'input#CybotCookiebotDialogBodyLevelButtonStatistics',marketing:'input#CybotCookiebotDialogBodyLevelButtonMarketing'},button:'#CybotCookiebotDialogBodyLevelButtonAccept',cookieBanner:'div#CybotCookiebotDialog',declarationPanel:'div#CookieDeclarationUserStatusPanel',consent:[]},events:{onResize:function(){},onToggleModal:function(evt){evt.preventDefault();var scroll=(evt.data&&evt.data.scroll?evt.data.scroll:false);app.methods.showModal(scroll);},onSelect:function(evt){selectedObj=$(this);app.methods.selectOption();},onApply:function(evt){evt.preventDefault();app.methods.applyConsent();},onKeyUp:function(evt){if(evt.keyCode!==app.config.key.ESCAPE)return;app.methods.set();app.methods.hideModal();}},methods:{init:function(){jqObj=body.find('.cookiebar');if(!jqObj.length){return;}
app.methods.create();return true;},getTemplatePath:function(){var lang=html.attr('lang')||'nl-NL';return(app.config.baseUrl||'')+app.config.template.replace('placeholder',lang);},getCookie:function(){return(APP.Core.System.Cookie.get('CookieConsent')||'');},getConsent:function(cookie){var data=cookie.replace(/{|}|'/g,'').split(',');var consent=[];$.each(data,function(k,v){var item={};item.type=v.split(':')[0];item.consent=v.split(':')[1];if(typeof app.config.checkboxes[item.type]!=='undefined'&&item.consent==='true'){consent.push(item.type);}});return consent;},applyConsent:function(){var consent=selectedObj.data('consent-type').split('|');var checkboxes=app.config.checkboxes;var button=$(app.config.button);$.each(checkboxes,function(k,v){var el=$(v);if(el.length){el.prop('checked',(consent.indexOf(k)!==-1));}});jqObj.removeClass(app.config.states.visible).addClass(app.config.states.hidden);if(button.length&&button[0]){button[0].click();}},create:function(){jqObj.addClass(app.config.states.hidden);var tpl=app.methods.getTemplatePath();$.get(tpl,app.methods.render);},changeUi:function(){},render:function(data){jqObj.append($(data));app.methods.initBanner();app.methods.attach();app.methods.set();},set:function(){var cookie=app.methods.getCookie();var selector;app.config.consent=app.methods.getConsent(cookie);if(!app.config.consent.length||app.config.consent.length===1){jqObj.removeClass(app.config.states.hidden);selector=jqObj.find(app.config.default)[0];}else{selector='[data-consent-type="placeholder"]'.replace('placeholder',app.config.consent.join('|'));}
$(selector).trigger('click');},showModal:function(scroll){jqObj.removeClass(app.config.states.hidden).addClass(app.config.states.visible);},hideModal:function(){jqObj.removeClass(app.config.states.visible);if(app.config.consent.length){jqObj.addClass(app.config.states.hidden);}},selectOption:function(){selectedObj.parents('.row:eq(0)').find('.cookie-configuration-option').removeClass(app.config.states.selected);selectedObj.addClass(app.config.states.selected);},initBanner:function(){var loader;var timer=400;loader=setInterval(function(){if(!hasDependency())return;setTimeout(function(){var banner=$(app.config.cookieBanner);var panel=$(app.config.declarationPanel);if(!banner.length||!banner.hasClass('active')){CookieConsent.show();}
if(panel.length){CookieConsent.renew=function(){app.methods.showModal(true);};}},timer);clearInterval(loader);},timer);},attach:function(){$(window).off('resize',app.events.onResize).on('resize',app.events.onResize);$('.cookie-settings').off('click',app.events.onToggleModal).on('click',{scroll:true},app.events.onToggleModal);$('a[href="#configuration"]').off('click',app.events.onToggleModal).on('click',app.events.onToggleModal);jqObj.find('.cookie-configuration .row .cookie-configuration-option').off('click',app.events.onSelect).on('click',app.events.onSelect);jqObj.find('button#apply-consent-1,button#apply-consent-2').off('click',app.events.onApply).on('click',app.events.onApply);$(document).off('keyup',app.events.onKeyUp).on('keyup',app.events.onKeyUp);}}};return{init:app.methods.init};}(window,document));;;
APP.namespace('APP.Site.Components');APP.Site.Components.CookieStatement=(function($,window){'use strict';var app,el;function hasDependency(){return(typeof window.CookieConsent!=='undefined');}
app={config:{table:'table.CookieDeclarationTable',cookieBotID:'02d30f59-8e49-414c-b47a-87cc3c295506'},methods:{init:function(){var _this=this;var contentPlaceholder=document.getElementById("cookiestatement");if(contentPlaceholder){var cookieDeclarationScript=document.createElement("script");cookieDeclarationScript.type="text/javascript";cookieDeclarationScript.id="CookiePolicy";cookieDeclarationScript.src="https://consent.cookiebot.com/"+app.config.cookieBotID+"/cd.js";contentPlaceholder.appendChild(cookieDeclarationScript);app.methods.create();}},create:function(){var loader,timer=400;var loader=setInterval(function(){console.log(1);if(!$('body').find(app.config.table)||!hasDependency())return;setTimeout(function(){app.methods.render();},timer);clearInterval(loader);},timer);},getWrapper:function(){return $('<div/>',{'class':'scroll-container'});},render:function(){var wrapper=app.methods.getWrapper();$('body').find(app.config.table).each(function(){$(this).addClass('table table-striped table-small').wrap(wrapper);});}}};return{init:app.methods.init};}(jQuery,window));;;
APP.namespace('APP.Site.Components');APP.Site.Components.Alert=(function(window){'use strict';var button;var alertEl;var app={methods:{init:function(){button=$('.alert-dismissible button.close');if(!button.length){return false;}
app.methods.bind();alertEl=button.closest('.alert-dismissible');alertEl.css('margin-top',-alertEl.outerHeight());return true;},bind:function(){if(APP.Core.System.Cookie.get('dismissedAlert')!=='true'){setTimeout(function(){alertEl.addClass('fade slide show');alertEl.css({'display':'block'});setTimeout(function(){alertEl.css('margin-top',0);});},500);}
button.click(function(e){alertEl.css({'margin-top':-alertEl.outerHeight()});APP.Core.System.Cookie.set('dismissedAlert','true');});}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.SelectSearch=(function(window){'use strict';var app;var forms=$('.select-search');app={events:{},methods:{init:function(){forms.each(function(){var select=this.querySelector('.select-search__input');var submit=this.querySelector('.select-search__button');submit.addEventListener('click',function(e){e.preventDefault();if(select.options.selectedIndex===0){return;}
window.open(select.options[select.options.selectedIndex].value,'_blank');});});}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.ScheduledMaintenance=(function(window){'use strict';var app,formEl;app={data:{liveUrls:[],apiUrlDev:'/umbraco/api/geplandonderhoud/get',apiUrlLive:'//data.ymere.nl/planmatigonderhoud/js/'},methods:{submit:function(e){e.preventDefault();if(!$("#scheduled-maintenance").valid())return;var postcode=document.getElementById('postcode').value;var housenumber=document.getElementById('housenumber').value;var suffix=document.getElementById('suffix').value;var hostName=window.location.hostname;var useDevUrl=app.data.liveUrls.indexOf(hostName)===-1;var url;if(useDevUrl){url=app.data.apiUrlDev;}else{url=app.data.apiUrlLive;}
$.ajax({dataType:'json',url:url,data:{pc:postcode,hn:housenumber,tv:suffix},success:function(data){if(data){app.methods.render(data);}else{app.methods.error(data);}},error:function(data){app.methods.error(data);}});},error:function(data){document.getElementById('scheduled-maintenance-submit').disabled=false;var el=document.querySelector('#scheduled-maintenance-result');if(el){el.innerHTML='<p>Fout bij het ophalen van de gegevens.</p>';}},render:function(data){document.getElementById('scheduled-maintenance-submit').disabled=false;var el=document.querySelector('#scheduled-maintenance-result');if(el&&data){if(data.maintenance_item.length===0){el.innerHTML='<p>Er is geen onderhoudsplanning bekend voor deze woning.</p>';}else{el.innerHTML='';if(data.maintenance_address){el.innerHTML='<h3>Gepland onderhoud voor '+app.methods.htmlEncode(data.maintenance_address)+'</h3>';}
for(var i in data.maintenance_item){var item=data.maintenance_item[i];el.innerHTML+='<div>'+app.methods.htmlEncode(item.maintenance_year)+' - '+app.methods.htmlEncode(item.maintanance_description)+'</div>';}}}},htmlEncode:function(value){return $('<div/>').text(value).html();},init:function(){formEl=document.querySelector('#scheduled-maintenance');if(formEl){formEl.onsubmit=app.methods.submit;}
return true;}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.NeighbourhoodAdministrators=(function(window){'use strict';var app,formEl;app={data:{apiUrl:'/umbraco/api/wijkbeheerder/get'},methods:{submit:function(e){e.preventDefault();if(!$("#neighbourhood-administrators").valid())return;var postcode=formEl.querySelector('#postcode').value;var housenumber=formEl.querySelector('#housenumber').value;var suffix=formEl.querySelector('#suffix').value;$.ajax({dataType:'json',url:app.data.apiUrl,data:{pc:postcode,hn:housenumber,tv:suffix},success:function(data){if(data){app.methods.render(data);}else{app.methods.error(data);}},error:function(data){app.methods.error(data);}});},error:function(data){document.querySelector('#neighbourhood-administrators-submit').disabled=false;var el=document.querySelector('#neighbourhood-administrators-result');if(el){el.innerHTML='<p>Fout bij het ophalen van de gegevens.</p>';}},render:function(data){document.querySelector('#neighbourhood-administrators-submit').disabled=false;var el=document.querySelector('#neighbourhood-administrators-result');el.innerHTML='';if(el&&data){if(Object.keys(data).length===0&&data.constructor===Object){el.innerHTML='';}else{if(data.wijkbeheerder_name){el.innerHTML='<h3> De wijkbeheerder is:</h3> <p>'+app.methods.htmlEncode(data.wijkbeheerder_name)+'</br> '+app.methods.htmlEncode(data.wijkbeheerder_phone)+' </p>';}else{el.innerHTML='<p>Er is geen wijkbeheerder gevonden.</p>';}}}},htmlEncode:function(value){return $('<div/>').text(value).html();},init:function(){formEl=document.querySelector('#neighbourhood-administrators');if(formEl){formEl.onsubmit=app.methods.submit;}
return true;}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.RentCalculator=(function(window){'use strict';var app,formEl;app={methods:{submit:function(e){if(e)e.preventDefault();var inpIncome1=document.getElementById('income_1').value||0;var inpHolidayPay1=document.getElementById('holiday_pay_1').value||0;var inp13thMonth1=document.getElementById('13th_month_1').checked;var totalRent=app.methods.getMaxRent(inpIncome1,inpHolidayPay1,inp13thMonth1);var income2Expanded=document.getElementById('collapse-income-partner').className==='collapse show';if(income2Expanded){var inpIncome2=document.getElementById('income_2').value||0;var inpHolidayPay2=document.getElementById('holiday_pay_2').value||0;var inp13thMonth2=document.getElementById('13th_month_2').checked;totalRent+=app.methods.getMaxRent(inpIncome2,inpHolidayPay2,inp13thMonth2);}
app.methods.render(totalRent);},inputToNumber:function(v){return parseFloat(v.toString().replace(',','.'));},getMaxRent:function(pIncome,pHolidayPay,p13thMonth){var valIncome=app.methods.inputToNumber(pIncome);var valHolydayPay=(valIncome/100)*app.methods.inputToNumber(pHolidayPay);var maxRent=(valIncome/4)+(valHolydayPay/4);if(p13thMonth===true)maxRent+=(valIncome/48);return maxRent;},calculateMaxRent:function(pIncome){return((pIncome/12)/4);},render:function(maxRent){var el=document.querySelector('#rent-calculator-result');if(isNaN(maxRent)){el.innerHTML='';el.style.display='none';}else{maxRent=Math.floor(maxRent);el.innerHTML='<span class="h4 float-left">Maximale huur:</span><span class="h2"> &euro;'+maxRent+' </span><span class="h4">p/m</span></p>';if(maxRent>710){el.innerHTML+='<p><a class="btn btn-secondary" href="https://aanbod.ymere.nl/aanbod/huurwoningen/#?gesorteerd-op=maxhuurprijs%2B&huurprijs=0&huurprijs='+maxRent+'">Toon woningen</a></p>';}
el.style.display='block';}},htmlEncode:function(value){return $('<div/>').text(value).html();},init:function(){formEl=document.querySelector('#rent-calculator');if(formEl){$(formEl).on('input',function(){app.methods.submit();});var el=document.querySelector('#rent-calculator-result');if(el){el.style.display='none';}}
return true;}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.SearchFilter=(function(window){'use strict';var app;app={methods:{init:function(){$('#searchFilter input[type="radio"]').on('change',function(e){$('#searchCategory').submit();});return true;}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');APP.Site.Components.ShareVacancy=(function(window){'use strict';var app;var services=[{name:'facebook',el:''},{name:'linkedin',el:''},{name:'twitter',el:''},{name:'whatsapp',el:''}];app={methods:{init:function(){var hasShareButtons=true;for(var i=0;i<services.length;i++){var service=services[i];var id='[data-vacancy-share='+service.name+']';var el=document.querySelector(id);if(!el){hasShareButtons=false;return;}else{service.el=el;}}
if(!hasShareButtons)return;app.methods.setUrls(services);return true;},setUrls:function(services){for(var i=0;i<services.length;i++){var service=services[i];var el=service.el;var currentLocation=encodeURIComponent(window.location.href);var referrer;switch(service.name){case'facebook':referrer='https://www.facebook.com/sharer/sharer.php?u=';break;case'linkedin':referrer='https://www.linkedin.com/shareArticle?mini=true&url=';break;case'twitter':referrer='https://twitter.com/intent/tweet?url=';break;case'whatsapp':referrer='https://api.whatsapp.com/send?text=';break;}
el.setAttribute('href',referrer+currentLocation);}}}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');window.rsConf={general:{usePost:true},ui:{tools:{dictionary:false}}};APP.Site.Components.Readspeaker=(function(window){'use strict';var app,rsButton,rsControls;app={methods:{init:function(){rsButton=$('#readspeaker_button1');rsControls=$('.readspeaker_fixed');if(!rsButton.length||!rsControls.length){return false;}
var h1=$('h1:visible').first();if(h1.length){rsButton.removeClass('rs-home');var parent=h1.parent();if(parent.hasClass('d-flex')){rsButton.insertAfter(parent);}else{rsButton.insertAfter(h1);}
rsButton.css({display:'inline-block'})
rsButton.removeClass('rs-home');rsControls.insertAfter(rsButton);}
rsButton.show();return true;},}};return{init:app.methods.init};})(window);;;
APP.namespace('APP.Site.Components');var HS={};HS.web_site_id=7185;HS.api_token='43B332C83063441D818384C64784D2C7';APP.Site.Components.Ubeeo=(function(){'use strict';var app={methods:{init:function(){var vacancyId=$('[data-ul-vacancy-id]').data('ul-vacancy-id');var platformArea=$('.hs_platform_area');if(vacancyId||platformArea.length){var s=document.createElement('script');s.type='text/javascript';s.src='//platform.hireserve.nl/incl/js/hireserve_api.js';document.head.appendChild(s);if(vacancyId){s=document.createElement('script');s.type='HIRESERVE/Apply';s.dataset.web_page_id=vacancyId;document.head.appendChild(s);}
s=document.createElement('link');s.type='text/css';s.rel='stylesheet';s.href='//platform.hireserve.nl/incl/css/hs_apply.css';document.head.appendChild(s);}
return true;}}};return{init:app.methods.init};}());;;
(function(window){'use strict';var GLOBAL=window.GLOBAL||{};GLOBAL.environments=['.windev4','.preview','.local','localhost'];GLOBAL.autoload=['core.components.confirm-button','core.components.file-input','core.components.form','core.components.hamburger','core.components.hyphenation','core.components.map','core.components.responsive-bg-image','core.components.tooltip','core.components.slick-slider','core.components.slick-column-slider','core.components.on-appear','core.components.youtube-player','site.components.nav','site.components.sub-menu','site.components.share','site.components.iframe-modal','site.components.feedback','site.components.cookie-bar','site.components.cookie-statement','site.components.alert','site.components.select-search','site.components.scheduled-maintenance','site.components.neighbourhood-administrators','site.components.rent-calculator','site.components.search-filter','site.components.share-vacancy','site.components.readspeaker','site.components.ubeeo'];})(window);;;
(function(window,document){window.onPageLoad=function(){APP.Core.System.Bootstrap.reload();};$(document).ready(function(){APP.Core.System.Bootstrap.run();});})(window,document);;;
