@daily-co/daily-js
Version:
Please check our [our documentation site](https://docs.daily.co/) to get started. If you're building a web app with our `daily-js` front-end JavaScript library, you may be particularly interested in:
1 lines • 258 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Daily=t():e.Daily=t()}(this,(function(){return function(){var e={781:function(e,t,n){var r=n(948);e.exports=r.default},948:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function p(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){h(o,r,i,a,s,"next",e)}function s(e){h(o,r,i,a,s,"throw",e)}a(void 0)}))}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||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.r(t),n.d(t,{DAILY_ACCESS_LEVEL_FULL:function(){return Yr},DAILY_ACCESS_LEVEL_LOBBY:function(){return $r},DAILY_ACCESS_LEVEL_NONE:function(){return qr},DAILY_ACCESS_UNKNOWN:function(){return Jr},DAILY_CAMERA_ERROR_CAM_AND_MIC_IN_USE:function(){return ai},DAILY_CAMERA_ERROR_CAM_IN_USE:function(){return ii},DAILY_CAMERA_ERROR_CONSTRAINTS:function(){return li},DAILY_CAMERA_ERROR_MIC_IN_USE:function(){return oi},DAILY_CAMERA_ERROR_NOT_FOUND:function(){return ui},DAILY_CAMERA_ERROR_PERMISSIONS:function(){return si},DAILY_CAMERA_ERROR_UNDEF_MEDIADEVICES:function(){return ci},DAILY_CAMERA_ERROR_UNKNOWN:function(){return di},DAILY_EVENT_ACCESS_STATE_UPDATED:function(){return Ai},DAILY_EVENT_ACTIVE_SPEAKER_CHANGE:function(){return Zi},DAILY_EVENT_ACTIVE_SPEAKER_MODE_CHANGE:function(){return eo},DAILY_EVENT_APP_MSG:function(){return qi},DAILY_EVENT_CAMERA_ERROR:function(){return _i},DAILY_EVENT_CPU_LOAD_CHANGE:function(){return ro},DAILY_EVENT_ERROR:function(){return go},DAILY_EVENT_EXIT_FULLSCREEN:function(){return ao},DAILY_EVENT_FACE_COUNTS_UPDATED:function(){return io},DAILY_EVENT_FULLSCREEN:function(){return oo},DAILY_EVENT_IFRAME_LAUNCH_CONFIG:function(){return pi},DAILY_EVENT_IFRAME_READY_FOR_LAUNCH_CONFIG:function(){return fi},DAILY_EVENT_INPUT_SETTINGS_UPDATED:function(){return ho},DAILY_EVENT_JOINED_MEETING:function(){return wi},DAILY_EVENT_JOINING_MEETING:function(){return bi},DAILY_EVENT_LANG_UPDATED:function(){return fo},DAILY_EVENT_LEFT_MEETING:function(){return Si},DAILY_EVENT_LIVE_STREAMING_ERROR:function(){return lo},DAILY_EVENT_LIVE_STREAMING_STARTED:function(){return so},DAILY_EVENT_LIVE_STREAMING_STOPPED:function(){return uo},DAILY_EVENT_LIVE_STREAMING_UPDATED:function(){return co},DAILY_EVENT_LOADED:function(){return mi},DAILY_EVENT_LOADING:function(){return vi},DAILY_EVENT_LOAD_ATTEMPT_FAILED:function(){return gi},DAILY_EVENT_LOCAL_SCREEN_SHARE_CANCELED:function(){return Xi},DAILY_EVENT_LOCAL_SCREEN_SHARE_STARTED:function(){return Ki},DAILY_EVENT_LOCAL_SCREEN_SHARE_STOPPED:function(){return Qi},DAILY_EVENT_MEETING_SESSION_DATA_ERROR:function(){return Pi},DAILY_EVENT_MEETING_SESSION_STATE_UPDATED:function(){return Oi},DAILY_EVENT_MEETING_SESSION_SUMMARY_UPDATED:function(){return Ci},DAILY_EVENT_NETWORK_CONNECTION:function(){return no},DAILY_EVENT_NETWORK_QUALITY_CHANGE:function(){return to},DAILY_EVENT_NONFATAL_ERROR:function(){return vo},DAILY_EVENT_PARTICIPANT_COUNTS_UPDATED:function(){return Ti},DAILY_EVENT_PARTICIPANT_JOINED:function(){return ki},DAILY_EVENT_PARTICIPANT_LEFT:function(){return Mi},DAILY_EVENT_PARTICIPANT_UPDATED:function(){return Ei},DAILY_EVENT_RECEIVE_SETTINGS_UPDATED:function(){return po},DAILY_EVENT_RECORDING_DATA:function(){return $i},DAILY_EVENT_RECORDING_ERROR:function(){return Ji},DAILY_EVENT_RECORDING_STARTED:function(){return Vi},DAILY_EVENT_RECORDING_STATS:function(){return Bi},DAILY_EVENT_RECORDING_STOPPED:function(){return Ui},DAILY_EVENT_RECORDING_UPLOAD_COMPLETED:function(){return Yi},DAILY_EVENT_REMOTE_MEDIA_PLAYER_STARTED:function(){return Gi},DAILY_EVENT_REMOTE_MEDIA_PLAYER_STOPPED:function(){return Hi},DAILY_EVENT_REMOTE_MEDIA_PLAYER_UPDATED:function(){return zi},DAILY_EVENT_STARTED_CAMERA:function(){return yi},DAILY_EVENT_THEME_UPDATED:function(){return hi},DAILY_EVENT_TRACK_STARTED:function(){return Ni},DAILY_EVENT_TRACK_STOPPED:function(){return ji},DAILY_EVENT_TRANSCRIPTION_ERROR:function(){return Fi},DAILY_EVENT_TRANSCRIPTION_MSG:function(){return Wi},DAILY_EVENT_TRANSCRIPTION_STARTED:function(){return Ri},DAILY_EVENT_TRANSCRIPTION_STOPPED:function(){return xi},DAILY_EVENT_WAITING_PARTICIPANT_ADDED:function(){return Ii},DAILY_EVENT_WAITING_PARTICIPANT_REMOVED:function(){return Di},DAILY_EVENT_WAITING_PARTICIPANT_UPDATED:function(){return Li},DAILY_FATAL_ERROR_CONNECTION:function(){return ri},DAILY_FATAL_ERROR_EJECTED:function(){return zr},DAILY_FATAL_ERROR_EOL:function(){return ti},DAILY_FATAL_ERROR_EXP_ROOM:function(){return Qr},DAILY_FATAL_ERROR_EXP_TOKEN:function(){return Xr},DAILY_FATAL_ERROR_MEETING_FULL:function(){return ei},DAILY_FATAL_ERROR_NBF_ROOM:function(){return Hr},DAILY_FATAL_ERROR_NBF_TOKEN:function(){return Kr},DAILY_FATAL_ERROR_NOT_ALLOWED:function(){return ni},DAILY_FATAL_ERROR_NO_ROOM:function(){return Zr},DAILY_RECEIVE_SETTINGS_ALL_PARTICIPANTS_KEY:function(){return Gr},DAILY_RECEIVE_SETTINGS_BASE_KEY:function(){return Wr},DAILY_STATE_ERROR:function(){return jr},DAILY_STATE_JOINED:function(){return Dr},DAILY_STATE_JOINING:function(){return Lr},DAILY_STATE_LEFT:function(){return Nr},DAILY_STATE_NEW:function(){return Or},DAILY_TRACK_STATE_BLOCKED:function(){return Rr},DAILY_TRACK_STATE_INTERRUPTED:function(){return Ur},DAILY_TRACK_STATE_LOADING:function(){return Vr},DAILY_TRACK_STATE_OFF:function(){return xr},DAILY_TRACK_STATE_PLAYABLE:function(){return Br},DAILY_TRACK_STATE_SENDABLE:function(){return Fr},default:function(){return hs}});var y=n(7),_=n.n(y),b=Object.prototype.hasOwnProperty;function w(e,t,n){for(n of e.keys())if(S(n,t))return n}function S(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&S(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((i=r)&&"object"==typeof i&&!(i=w(t,i)))return!1;if(!t.has(i))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((i=r[0])&&"object"==typeof i&&!(i=w(t,i)))return!1;if(!S(r[1],t.get(i)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(b.call(e,n)&&++r&&!b.call(t,n))return!1;if(!(n in t)||!S(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}var k=n(880),E=n.n(k);function M(){return Date.now()+Math.random().toString()}function T(){throw new Error("Method must be implemented in subclass")}function A(e,t){return null!=t&&t.proxyUrl?t.proxyUrl+("/"===t.proxyUrl.slice(-1)?"":"/")+e.substring(8):e}function C(e){if(null!=e&&e.callObjectBundleUrlOverride)return console.warn("The callObjectBundleUrlOverride property is deprecated and will be removed. Please use bundlePathOverride instead. When providing a bundlePathOverride, the URL should point to the directory containing all Daily bundles (call-machine-object-bundle.js and audio-processor-bundle.js)."),e.callObjectBundleUrlOverride;var t=function(e){if(null!=e&&e.bundlePathOverride){var t=e.bundlePathOverride;return t.endsWith("/")?t.slice(0,-1):t}if(null!=e&&e.callObjectBundleUrlOverride){var n=e.callObjectBundleUrlOverride,r=n.substring(0,n.lastIndexOf("/"));return r.endsWith("/")?r.slice(0,-1):r}var i=A("https://c.daily.co/call-machine/versioned/".concat("0.89.1","/static"),e);return i.endsWith("/")?i.slice(0,-1):i}(e)+"/call-machine-object-bundle.js";return t}function O(e){try{new URL(e)}catch(e){return!1}return!0}const P="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,I="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,L="8.55.0",D=globalThis;function N(e,t,n){const r=n||D,i=r.__SENTRY__=r.__SENTRY__||{},o=i[L]=i[L]||{};return o[e]||(o[e]=t())}const j=["debug","info","warn","error","log","assert","trace"],R={};function x(e){if(!("console"in D))return e();const t=D.console,n={},r=Object.keys(R);r.forEach((e=>{const r=R[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const F=N("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return I?j.forEach((n=>{t[n]=(...t)=>{e&&x((()=>{D.console[n](`Sentry Logger [${n}]:`,...t)}))}})):j.forEach((e=>{t[e]=()=>{}})),t})),V=[];function U(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function B(e,t,n){if(n[t.name])P&&F.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===V.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),V.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}P&&F.log(`Integration installed: ${t.name}`)}}const J=Object.prototype.toString;function Y(e){switch(J.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Z(e,Error)}}function $(e,t){return J.call(e)===`[object ${t}]`}function q(e){return $(e,"ErrorEvent")}function W(e){return $(e,"DOMError")}function G(e){return $(e,"String")}function z(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function H(e){return null===e||z(e)||"object"!=typeof e&&"function"!=typeof e}function K(e){return $(e,"Object")}function Q(e){return"undefined"!=typeof Event&&Z(e,Event)}function X(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Z(e,t){try{return e instanceof t}catch(e){return!1}}function ee(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const te=D;function ne(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",c=s.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(u=re(n,l),!("html"===u||o>1&&a+i.length*c+u.length>=d));)i.push(u),a+=u.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return"<unknown>"}}function re(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(te.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(i&&i.length)i.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&G(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function ie(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function oe(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{ee(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ae(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!G(e)&&($(t,"RegExp")?t.test(e):!!G(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function se(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&ue(i,r);try{e[t]=i}catch(n){I&&F.log(`Failed to replace method "${t}" in object`,e)}}function ce(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){I&&F.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ue(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ce(e,"__sentry_original__",t)}catch(e){}}function le(e){return e.__sentry_original__}function de(e){if(Y(e))return{message:e.message,name:e.name,stack:e.stack,...pe(e)};if(Q(e)){const t={type:e.type,target:fe(e.target),currentTarget:fe(e.currentTarget),...pe(e)};return"undefined"!=typeof CustomEvent&&Z(e,CustomEvent)&&(t.detail=e.detail),t}return e}function fe(e){try{return"undefined"!=typeof Element&&Z(e,Element)?ne(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function pe(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function he(e){return ve(e,new Map)}function ve(e,t){if(function(e){if(!K(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(r[n]=ve(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(ve(e,t))})),r}return e}function ge(){const e=D,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function me(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ye(e){const{message:t,event_id:n}=e;if(t)return t;const r=me(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function _e(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function be(e,t){const n=me(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function we(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{ce(e,"__sentry_captured__",!0)}catch(e){}return!1}const Se=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],ke=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const i=r.getOptions(),o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Se],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(P&&F.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ye(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}(e).some((e=>ae(e,t)))}(e,t.ignoreErrors)?(P&&F.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ye(e)}`),!0):function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}(e)?(P&&F.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ye(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&ae(n,t)}(e,t.ignoreTransactions)?(P&&F.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ye(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Ee(e);return!!n&&ae(n,t)}(e,t.denyUrls)?(P&&F.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ye(e)}.\nUrl: ${Ee(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Ee(e);return!n||ae(n,t)}(e,t.allowUrls)&&(P&&F.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ye(e)}.\nUrl: ${Ee(e)}`),!0)}(t,o)?null:t}});function Ee(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return P&&F.error(`Cannot extract url for event ${ye(e)}`),null}}function Me(){return Te(D),D}function Te(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||L,t[L]=t[L]||{}}function Ae(){return Date.now()/1e3}const Ce=function(){const{performance:e}=D;if(!e||!e.now)return Ae;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let Oe;function Pe(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ce(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ge()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ie(){return ge()}function Le(){return ge().substring(16)}function De(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=De(r[e],t[e],n-1));return r}(()=>{const{performance:e}=D;if(!e||!e.now)return void(Oe="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;o||s<t?i<=s?(Oe="timeOrigin",e.timeOrigin):Oe="navigationStart":Oe="dateNow"})();const Ne="_sentrySpan";function je(e,t){t?ce(e,Ne,t):delete e[Ne]}function Re(e){return e[Ne]}class xe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ie(),spanId:Le()}}clone(){const e=new xe;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,je(e,Re(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Pe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Fe?[t.getScopeData(),t.getRequestSession()]:K(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:a,contexts:s,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){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._session=void 0,je(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ie()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Ae(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){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:Re(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=De(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Le(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:ge();if(!this._client)return F.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:ge();if(!this._client)return F.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:ge();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(F.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Fe=xe;class Ve{constructor(e,t){let n,r;n=e||new Fe,r=t||new Fe,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return X(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function Ue(){const e=Te(Me());return e.stack=e.stack||new Ve(N("defaultCurrentScope",(()=>new Fe)),N("defaultIsolationScope",(()=>new Fe)))}function Be(e){return Ue().withScope(e)}function Je(e,t){const n=Ue();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Ye(e){return Ue().withScope((()=>e(Ue().getIsolationScope())))}function $e(e){const t=Te(e);return t.acs?t.acs:{withIsolationScope:Ye,withScope:Be,withSetScope:Je,withSetIsolationScope:(e,t)=>Ye(t),getCurrentScope:()=>Ue().getScope(),getIsolationScope:()=>Ue().getIsolationScope()}}function qe(){return $e(Me()).getCurrentScope()}function We(){return $e(Me()).getIsolationScope()}function Ge(){return qe().getClient()}function ze(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:i}=t;return he({trace_id:n,span_id:r,parent_span_id:i})}let He;const Ke=new WeakMap,Qe=()=>({name:"FunctionToString",setupOnce(){He=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=le(this),n=Ke.has(Ge())&&void 0!==t?t:this;return He.apply(n,e)}}catch(e){}},setup(e){Ke.set(e,!0)}}),Xe="?",Ze=/\(error: (.*)\)/,et=/captureMessage|captureException/;function tt(e){return e[e.length-1]||{}}const nt="<anonymous>";function rt(e){try{return e&&"function"==typeof e&&e.name||nt}catch(e){return nt}}function it(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}const ot=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!st(e,t)&&!!at(e,t))))}(e,t)||!!function(e,t){const n=ct(t),r=ct(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!st(e,t)&&!!at(e,t)))}(e,t))}(t,e))return P&&F.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function at(e,t){let n=it(e),r=it(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function st(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function ct(e){return e.exception&&e.exception.values&&e.exception.values[0]}const ut={},lt={};function dt(e,t){ut[e]=ut[e]||[],ut[e].push(t)}function ft(e,t){if(!lt[e]){lt[e]=!0;try{t()}catch(t){I&&F.error(`Error while instrumenting ${e}`,t)}}}function pt(e,t){const n=e&&ut[e];if(n)for(const r of n)try{r(t)}catch(t){I&&F.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${rt(r)}\nError:`,t)}}const ht=D;let vt,gt,mt;function yt(){if(!ht.document)return;const e=pt.bind(null,"dom"),t=_t(e,!0);ht.document.addEventListener("click",t,!1),ht.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=ht[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(se(r,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=_t(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}})),se(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function _t(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;ce(n,"_sentryCaptured",!0),r&&!r._sentryId&&ce(r,"_sentryId",ge());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==gt)return!1;try{if(!e.target||e.target._sentryId!==mt)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),gt=n.type,mt=r?r._sentryId:void 0),clearTimeout(vt),vt=ht.setTimeout((()=>{mt=void 0,gt=void 0}),1e3)}}const bt="__sentry_xhr_v3__";function wt(){if(!ht.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,i=1e3*Ce(),o=G(n[0])?n[0].toUpperCase():void 0,a=function(e){if(G(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!o||!a)return e.apply(t,n);t[bt]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const s=()=>{const e=t[bt];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}pt("xhr",{endTimestamp:1e3*Ce(),startTimestamp:i,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,i]=n,o=t[bt];return o&&G(r)&&G(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[bt];return r?(void 0!==n[0]&&(r.body=n[0]),pt("xhr",{startTimestamp:1e3*Ce(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}const St=D;let kt;function Et(e){const t="history";dt(t,e),ft(t,Mt)}function Mt(){if(!function(){const e=St.chrome,t=e&&e.app&&e.app.runtime,n="history"in St&&!!St.history.pushState&&!!St.history.replaceState;return!t&&n}())return;const e=ht.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=kt,t=String(n);kt=t,pt("history",{from:e,to:t})}return e.apply(this,t)}}ht.onpopstate=function(...t){const n=ht.location.href,r=kt;if(kt=n,pt("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},se(ht.history,"pushState",t),se(ht.history,"replaceState",t)}function Tt(){"console"in D&&j.forEach((function(e){e in D.console&&se(D.console,e,(function(t){return R[e]=t,function(...t){pt("console",{args:t,level:e});const n=R[e];n&&n.apply(D.console,t)}}))}))}const At=D;function Ct(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ot(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in At))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(Ct(At.fetch))return!0;let e=!1;const t=At.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ct(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){I&&F.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||se(D,"fetch",(function(t){return function(...n){const r=new Error,{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:It(t),method:Pt(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:It(t),method:Pt(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:o},startTimestamp:1e3*Ce(),virtualError:r};return e||pt("fetch",{...a}),t.apply(D,n).then((async t=>(e?e(t):pt("fetch",{...a,endTimestamp:1e3*Ce(),response:t}),t)),(e=>{throw pt("fetch",{...a,endTimestamp:1e3*Ce(),error:e}),Y(e)&&void 0===e.stack&&(e.stack=r.stack,ce(e,"framesToPop",1)),e}))}}))}function Pt(e,t){return!!e&&"object"==typeof e&&!!e[t]}function It(e){return"string"==typeof e?e:e?Pt(e,"url")?e.url:e.toString?e.toString():"":""}const Lt=100;function Dt(e,t){const n=Ge(),r=We();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Lt}=n.getOptions();if(o<=0)return;const a={timestamp:Ae(),...e},s=i?x((()=>i(a,t))):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function Nt(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}function jt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Rt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,xt="production";var Ft;function Vt(e){return new Bt((t=>{t(e)}))}function Ut(e){return new Bt(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Ft||(Ft={}));class Bt{constructor(e){Bt.prototype.__init.call(this),Bt.prototype.__init2.call(this),Bt.prototype.__init3.call(this),Bt.prototype.__init4.call(this),this._state=Ft.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Bt(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Bt(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Ft.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Ft.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Ft.PENDING&&(X(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Ft.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Ft.RESOLVED&&e[1](this._value),this._state===Ft.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Jt(e,t,n,r=0){return new Bt(((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);P&&a.id&&null===s&&F.log(`Event processor "${a.id}" dropped event`),X(s)?s.then((t=>Jt(e,t,n,r+1).then(i))).then(null,o):Jt(e,s,n,r+1).then(i).then(null,o)}}))}let Yt,$t,qt;function Wt(e,t=100,n=1/0){try{return zt("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Gt(e,t=3,n=102400){const r=Wt(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Gt(e,t-1,n):r;var i}function zt(e,t,n=1/0,r=1/0,i=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[o,a]=i;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof window&&t===window)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(ee(t))return"[VueViewModel]";if(K(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${rt(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return s.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return zt("",u.toJSON(),c-1,r,i)}catch(e){}const l=Array.isArray(t)?[]:{};let d=0;const f=de(t);for(const e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){l[e]="[MaxProperties ~]";break}const t=f[e];l[e]=zt(e,t,c-1,r,i),d++}return a(t),l}const Ht=/^sentry-/;function Kt(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}function Qt(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(he(r));return n}let Xt=!1;function Zt(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return he({parent_span_id:r?t:nn(e).parent_span_id,span_id:r?Le():t,trace_id:n})}function en(e){return"number"==typeof e?tn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tn(e.getTime()):Ce()}function tn(e){return e>9999999999?e/1e3:e}function nn(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:o,endTime:a,parentSpanId:s,status:c}=e;return he({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:en(i),timestamp:en(a)||void 0,status:rn(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Qt(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function rn(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function on(e){return e._sentryRootSpan||e}function an(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=he({environment:n.environment||xt,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function sn(e){const t=Ge();if(!t)return{};const n=on(e),r=n._frozenDsc;if(r)return r;const i=n.spanContext().traceState,o=i&&i.get("sentry.dsc"),a=o&&function(e){const t=function(e){if(e&&(G(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Kt(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Kt(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Ht)&&(e[t.slice(7)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(o);if(a)return a;const s=an(e.spanContext().traceId,t),c=nn(n),u=c.data||{},l=u["sentry.sample_rate"];null!=l&&(s.sample_rate=`${l}`);const d=u["sentry.source"],f=c.description;return"url"!==d&&f&&(s.transaction=f),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Ge(),t=e&&e.getOptions();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}()&&(s.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n))),t.emit("createDsc",s,n),s}function cn(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:h}=t;un(e,"extra",n),un(e,"tags",r),un(e,"user",i),un(e,"contexts",o),e.sdkProcessingMetadata=De(e.sdkProcessingMetadata,s,2),a&&(e.level=a),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function un(e,t,n){e[t]=De(e[t],n,1)}function ln(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ge(),timestamp:t.timestamp||Ae()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;e.environment=e.environment||n||xt,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&(e.message=ie(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=ie(a.value,o));const s=e.request;s&&s.url&&(s.url=ie(s.url,o))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=D._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return qt&&n.length===$t||($t=n.length,qt=n.reduce(((n,r)=>{Yt||(Yt={});const i=Yt[r];if(i)n[i[0]]=i[1];else{const i=e(r);for(let e=i.length-1;e>=0;e--){const o=i[e],a=o&&o.filename,s=t[r];if(a&&s){n[a]=s,Yt[r]=[a,s];break}}}return n}),{})),qt}(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch(e){}}(c,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new Fe;return n.update(t),n}(r,n.captureContext);n.mechanism&&be(c,n.mechanism);const d=i?i.getEventProcessors():[],f=N("globalScope",(()=>new Fe)).getScopeData();o&&cn(f,o.getScopeData()),l&&cn(f,l.getScopeData());const p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),function(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,c=he(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=he(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=he(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=he(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Zt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:sn(t),...e.sdkProcessingMetadata};const n=nn(on(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}(c,f),Jt([...d,...f.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Wt(e.data,t,n)}})))},...e.user&&{user:Wt(e.user,t,n)},...e.contexts&&{contexts:Wt(e.contexts,t,n)},...e.extra&&{extra:Wt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Wt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:Wt(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Wt(e.contexts.flags,3,n)),r}(e,a,s):e)))}const dn=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function fn(e,t){return qe().captureEvent(e,t)}function pn(e){const t=Ge(),n=We(),r=qe(),{release:i,environment:o=xt}=t&&t.getOptions()||{},{userAgent:a}=D.navigator||{},s=function(e){const t=Ce(),n={sid:ge(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return he({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Pe(n,e),n}({release:i,environment:o,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),c=n.getSession();return c&&"ok"===c.status&&Pe(c,{status:"exited"}),hn(),n.setSession(s),r.setSession(s),s}function hn(){const e=We(),t=qe(),n=t.getSession()||e.getSession();n&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Pe(e,t)}(n),vn(),e.setSession(),t.setSession()}function vn(){const e=We(),t=qe(),n=Ge(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function gn(e=!1){e?hn():vn()}const mn=D;let yn=0;function _n(){return yn>0}function bn(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(le(e))return e}catch(t){return e}const n=function(...n){try{const r=n.map((e=>bn(e,t)));return e.apply(this,r)}catch(e){throw yn++,setTimeout((()=>{yn--})),function(...e){const t=$e(Me());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}((r=>{var i;r.addEventProcessor((e=>(t.mechanism&&(_e(e,void 0,void 0),be(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),i=e,qe().captureException(i,function(e){if(e)return function(e){return e instanceof Fe||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>dn.includes(e)))}(e)?{captureContext:e}:e}(undefined))})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}ue(n,e),ce(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch(e){}return n}const wn=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";dt(t,e),ft(t,Tt)}(function(e){return function(t){if(Ge()!