imposium-js-sdk 3.2.2 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>Imposium JS Landing Page Example</title>
|
|
7
|
+
<link rel="stylesheet" href="./css/styles.css">
|
|
8
|
+
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
|
|
13
|
+
<header>
|
|
14
|
+
<img class="logo" src="./img/imposium_logo@2x.png"/>
|
|
15
|
+
<h1>Pre-Loaded Landing Page Example</h1>
|
|
16
|
+
<p>This example demonstrates how Imposium.js can be used to pull in a pre-loaded video using the Experience ID. This flow is generally used for email marketing campaigns. The difference between this and the pre-rendered landing page is that these videos aren't pre-rendered, but the data for the videos has been pre-loaded into Imposium and assigned an Experience ID.</p>
|
|
17
|
+
</header>
|
|
18
|
+
|
|
19
|
+
<section id="player-wrapper">
|
|
20
|
+
<video id="dynamic-video" />
|
|
21
|
+
</section>
|
|
22
|
+
|
|
23
|
+
<script type = "text/javascript" src = "../../lib/imposium.js"></script>
|
|
24
|
+
<script type = "text/javascript">
|
|
25
|
+
|
|
26
|
+
//NOTE: PULL THIS EXPERIENCE ID FROM THE URL, this is hardcoded for sample purposes only
|
|
27
|
+
var experienceID = 'b8144874-ecc4-443d-f66e-00de89a19272';
|
|
28
|
+
|
|
29
|
+
//Store all required HTML refs
|
|
30
|
+
var videoNode = document.getElementById('dynamic-video');
|
|
31
|
+
|
|
32
|
+
//Create an instance of the Client and Player
|
|
33
|
+
var client = new Imposium.Client({
|
|
34
|
+
accessToken:'zooch5ja8fiejoojoo6AeQuahmex1wes',
|
|
35
|
+
storyId:'75e3ed80-7008-480e-ca39-6a3dab807fe9',
|
|
36
|
+
compositionId:'473df1b4-d9f5-4648-b08b-e0af03abb86e'
|
|
37
|
+
});
|
|
38
|
+
var player = new Imposium.Player(videoNode, client);
|
|
39
|
+
|
|
40
|
+
//Pass in the experience ID to render the video. If it has already rendered - it will pull it in immediately.
|
|
41
|
+
client.renderExperienceFromId(experienceID);
|
|
42
|
+
|
|
43
|
+
</script>
|
|
44
|
+
</body>
|
|
45
|
+
</html>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<header>
|
|
14
14
|
<img class="logo" src="./img/imposium_logo@2x.png"/>
|
|
15
|
-
<h1>Landing Page Example</h1>
|
|
15
|
+
<h1>Pre-Rendered Landing Page Example</h1>
|
|
16
16
|
<p>This example demonstrates how Imposium.js can be used to pull in a pre-rendered video using the Experience ID. This flow is generally used for email marketing campaigns.</p>
|
|
17
17
|
</header>
|
|
18
18
|
|
package/lib/imposium.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! IMPOSIUM-JS-SDK | Version 3.2.
|
|
1
|
+
/*! IMPOSIUM-JS-SDK | Version 3.2.4 */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
4
|
module.exports = factory();
|
|
@@ -17260,9 +17260,9 @@ exports.inventoryToFormData = inventoryToFormData;
|
|
|
17260
17260
|
|
|
17261
17261
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17262
17262
|
exports.printVersion = exports.version = void 0;
|
|
17263
|
-
exports.version = "3.2.
|
|
17263
|
+
exports.version = "3.2.4";
|
|
17264
17264
|
var printVersion = function () {
|
|
17265
|
-
console.log("%cPowered By%c Imposium%c v".concat("3.2.
|
|
17265
|
+
console.log("%cPowered By%c Imposium%c v".concat("3.2.4", "%c https://imposium.com"), 'text-transform: uppercase; padding: 5px 0px 5px 5px; background-color: black; color: white;', 'text-transform: uppercase; padding: 5px 0px 5px 0px; background-color: black; color: #a1b83a;', 'padding: 5px 5px 5px 0px; background-color: black; color: white;', 'padding: 5px 5px 5px 0px;');
|
|
17266
17266
|
};
|
|
17267
17267
|
exports.printVersion = printVersion;
|
|
17268
17268
|
|
package/lib/imposium.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see imposium.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Imposium",[],t):"object"==typeof exports?exports.Imposium=t():e.Imposium=t()}(self,(function(){return(()=>{var e={8969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BrowserClient:()=>Gt,Hub:()=>se,Integrations:()=>dn,SDK_NAME:()=>ln,SDK_VERSION:()=>je,Scope:()=>j,Severity:()=>c,Status:()=>u,Transports:()=>i,addBreadcrumb:()=>_e,addGlobalEventProcessor:()=>I,captureEvent:()=>ge,captureException:()=>ve,captureMessage:()=>ye,close:()=>cn,configureScope:()=>me,defaultIntegrations:()=>en,eventFromException:()=>rt,eventFromMessage:()=>ot,flush:()=>sn,forceLoad:()=>on,getCurrentHub:()=>le,getHubFromCarrier:()=>fe,init:()=>tn,injectReportDialog:()=>Tt,lastEventId:()=>rn,makeMain:()=>ue,onLoad:()=>an,setContext:()=>Ee,setExtra:()=>we,setExtras:()=>be,setTag:()=>Se,setTags:()=>xe,setUser:()=>Oe,showReportDialog:()=>nn,startTransaction:()=>Te,withScope:()=>ke,wrap:()=>un});var r={};n.r(r),n.d(r,{FunctionToString:()=>zt,InboundFilters:()=>Yt});var o={};n.r(o),n.d(o,{Breadcrumbs:()=>Ht,Dedupe:()=>$t,GlobalHandlers:()=>Xt,LinkedErrors:()=>Kt,TryCatch:()=>Vt,UserAgent:()=>Zt});var i={};n.r(i),n.d(i,{BaseTransport:()=>mt,FetchTransport:()=>_t,XHRTransport:()=>Et});var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c,u,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function h(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return w(e,Error)}}function v(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function y(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return"undefined"!=typeof Event&&w(e,Event)}function b(e){return"undefined"!=typeof Element&&w(e,Element)}function x(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function w(e,t){try{return e instanceof t}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(c||(c={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(c||(c={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(u||(u={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(u||(u={}));var S,O,k=n(1170),T=function(){function e(e){var t=this;this._state="PENDING",this._handlers=[],this._resolve=function(e){t._setResult("RESOLVED",e)},this._reject=function(e){t._setResult("REJECTED",e)},this._setResult=function(e,n){"PENDING"===t._state&&(x(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if("PENDING"!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||("RESOLVED"===t._state&&e.onfulfilled&&e.onfulfilled(t._value),"REJECTED"===t._state&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0==(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),P=n(2991),j=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=d(t._breadcrumbs),n._tags=l({},t._tags),n._extra=l({},t._extra),n._contexts=l({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=d(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=l(l({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=l(l({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=l(l({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=l(l({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=l(l({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=l(l({},this._tags),t._tags),this._extra=l(l({},this._extra),t._extra),this._contexts=l(l({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):_(t)&&(t=t,this._tags=l(l({},this._tags),t.tags),this._extra=l(l({},this._extra),t.extra),this._contexts=l(l({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=l({timestamp:(0,k.yW)()},e);return this._breadcrumbs=d(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=l(l({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=l(l({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=l(l({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=l(l({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=l({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=l({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(d(R(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new T((function(i,a){var s=e[r];if(null===t||"function"!=typeof s)i(t);else{var c=s(l({},t),n);x(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function R(){var e=(0,P.R)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function I(e){R().push(e)}function C(){var e=(0,P.R)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function A(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function N(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function D(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function L(e,t){var n;if(e.exception&&e.exception.values){var r=e.exception.values[0],o=r.mechanism;if(r.mechanism=l(l(l({},{type:"generic",handled:!0}),o),t),t&&"data"in t){var i=l(l({},null===(n=o)||void 0===n?void 0:n.data),t.data);r.mechanism.data=i}}}function U(e){var t;if(null===(t=e)||void 0===t?void 0:t.__sentry_captured__)return!0;try{Object.defineProperty(e,"__sentry_captured__",{value:!0})}catch(e){}return!1}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(S||(S={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(O||(O={}));var M=(0,P.R)(),F="Sentry Logger ";function q(e){var t=(0,P.R)();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}var B=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.log(F+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.warn(F+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.error(F+"[Error]: "+e.join(" "))}))},e}();M.__SENTRY__=M.__SENTRY__||{};var H=M.__SENTRY__.logger||(M.__SENTRY__.logger=new B),G=n(1422);function W(e,t){try{for(var n=e,r=[],o=0,i=0,a=" > ".length,s=void 0;n&&o++<5&&!("html"===(s=Y(n,t))||o>1&&i+r.length*a+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function Y(e,t){var n,r,o,i,a,s,c,u=e,l=[];if(!u||!u.tagName)return"";l.push(u.tagName.toLowerCase());var p=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return u.getAttribute(e)})).map((function(e){return[e,u.getAttribute(e)]})):null;if(null===(r=p)||void 0===r?void 0:r.length)p.forEach((function(e){l.push("["+e[0]+'="'+e[1]+'"]')}));else if(u.id&&l.push("#"+u.id),(o=u.className)&&g(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)l.push("."+i[c]);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)a=f[c],(s=u.getAttribute(a))&&l.push("["+a+'="'+s+'"]');return l.join("")}var z=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),J="<anonymous>";function V(e){try{return e&&"function"==typeof e&&e.name||J}catch(e){return J}}function X(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function K(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function $(e,t){return!!g(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}function Q(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function Z(e){if(h(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(E(e)){var o=e,i={};i.type=o.type;try{i.target=b(o.target)?W(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=b(o.currentTarget)?W(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var a in"undefined"!=typeof CustomEvent&&w(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a]);return i}return e}function ee(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,o=re(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?ee(e,t-1,n):o}function te(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":_(r=e)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+V(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var r}function ne(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new z),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=te(e);return m(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=te(t,e);if(m(o))return o;var i=Z(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a[s]=ne(s,i[s],n-1,r));return r.unmemoize(t),a}function re(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return ne(e,n,t)})))}catch(e){return"**non-serializable**"}}function oe(e,t){void 0===t&&(t=40);var n=Object.keys(Z(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return X(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:X(o,t)}return""}function ie(e){var t,n;if(_(e)){var r=e,o={};try{for(var i=p(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=ie(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(ie):e}var ae=function(){function e(e){this.errors=0,this.sid=C(),this.duration=0,this.status=S.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,k.ph)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,k.ph)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:C()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===S.Ok?this.update({status:S.Exited}):this.update()},e.prototype.toJSON=function(){return ie({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:ie({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),se=function(){function e(e,t,n){void 0===t&&(t=new j),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=j.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=C(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,l(l({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=C(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,l(l({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=C();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,l(l({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var p=(0,k.yW)(),f=l({timestamp:p},e),d=s?q((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,u)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=ue(this);try{e(this)}finally{ue(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return H.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,o;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(o=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===o||o.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,s=((0,P.R)().navigator||{}).userAgent,c=new ae(l(l(l({release:i,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var u=n.getSession&&n.getSession();u&&u.status===S.Ok&&u.update({status:S.Exited}),this.endSession(),n.setSession(c)}return c},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,d(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ce(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);H.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function ce(){var e=(0,P.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ue(e){var t=ce(),n=fe(t);return de(t,e),n}function le(){var e=ce();return pe(e)&&!fe(e).isOlderThan(4)||de(e,new se),(0,G.KV)()?function(e){var t,n,r;try{var o=null===(r=null===(n=null===(t=ce().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!o)return fe(e);if(!pe(o)||fe(o).isOlderThan(4)){var i=fe(e).getStackTop();de(o,new se(i.client,j.clone(i.scope)))}return fe(o)}catch(t){return fe(e)}}(e):fe(e)}function pe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function fe(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new se),e.__SENTRY__.hub}function de(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function he(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=le();if(r&&r[e])return r[e].apply(r,d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ve(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return he("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ye(e,t){var n;try{throw new Error(e)}catch(e){n=e}return he("captureMessage",e,"string"==typeof t?t:void 0,l({originalException:e,syntheticException:n},"string"!=typeof t?{captureContext:t}:void 0))}function ge(e){return he("captureEvent",e)}function me(e){he("configureScope",e)}function _e(e){he("addBreadcrumb",e)}function Ee(e,t){he("setContext",e,t)}function be(e){he("setExtras",e)}function xe(e){he("setTags",e)}function we(e,t){he("setExtra",e,t)}function Se(e,t){he("setTag",e,t)}function Oe(e){he("setUser",e)}function ke(e){he("withScope",e)}function Te(e,t){return he("startTransaction",l({},e),t)}var Pe,je="6.16.0";!function(e){e.BeforeSend="before_send",e.EventProcessor="event_processor",e.NetworkError="network_error",e.QueueOverflow="queue_overflow",e.RateLimitBackoff="ratelimit_backoff",e.SampleRate="sample_rate"}(Pe||(Pe={}));var Re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}),Ie=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Re(r,n.prototype),r}return s(t,e),t}(Error),Ce=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Ae=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=Ce.exec(e);if(!t)throw new Ie("Invalid Dsn");var n=f(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],c=n[4],u=void 0===c?"":c,l="",p=n[5],d=p.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),p=d.pop()),p){var h=p.match(/^\d+/);h&&(p=h[0])}this._fromComponents({host:s,pass:a,path:l,projectId:p,port:u,protocol:r,publicKey:o})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Ie("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new Ie("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Ie("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Ie("Invalid Dsn: Invalid port "+this.port)},e}(),Ne=[];function De(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var Le="Not capturing exception because it's already been captured.",Ue=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Ae(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!U(e)){var o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o}H.log(Le)},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,a=m(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r;if(!(null===(r=t)||void 0===r?void 0:r.originalException)||!U(t.originalException)){var o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){o=e}))),o}H.log(Le)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?H.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):H.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e,t;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(e=this._options,t={},function(e){var t=e.defaultIntegrations&&d(e.defaultIntegrations)||[],n=e.integrations,r=d(De(t));Array.isArray(n)?r=d(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),De(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name})),i="Debug";return-1!==o.indexOf(i)&&r.push.apply(r,d(r.splice(o.indexOf(i),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Ne.indexOf(e.name)&&(e.setupOnce(I,le),Ne.push(e.name),H.log("Integration installed: "+e.name))}(e)})),Object.defineProperty(t,"initialized",{value:!0}),t))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return H.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,i=!1,a=t.exception&&t.exception.values;if(a){i=!0;try{for(var s=p(a),c=s.next();!c.done;c=s.next()){var u=c.value.mechanism;if(u&&!1===u.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var f=e.status===S.Ok;(f&&0===e.errors||f&&o)&&(e.update(l(l({},o&&{status:S.Crashed}),{errors:e.errors||Number(i||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new T((function(n){var r=0,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=l(l({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:C()),timestamp:e.timestamp||(0,k.yW)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=j.clone(s).update(n.captureContext));var c=T.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=l(l(l(l(l({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return l(l({},e),e.data&&{data:re(e.data,t)})}))}),e.user&&{user:re(e.user,t)}),e.contexts&&{contexts:re(e.contexts,t)}),e.extra&&{extra:re(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var r=this.getOptions()._experiments;return(void 0===r?{}:r).ensureNoCircularStructures?re(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=X(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=X(s.value,a));var c=e.request;c&&c.url&&(c.url=X(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=d(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){H.error(e)}))},e.prototype._processEvent=function(e,t,n){var r,o,i=this,a=this.getOptions(),s=a.beforeSend,c=a.sampleRate,u=this.getTransport();if(!this._isEnabled())return T.reject(new Ie("SDK not enabled, will not capture event."));var l="transaction"===e.type;return!l&&"number"==typeof c&&Math.random()>c?(null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,Pe.SampleRate,"event"),T.reject(new Ie("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(e,n,t).then((function(n){var r,o;if(null===n)throw null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,Pe.EventProcessor,e.type||"event"),new Ie("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||l||!s)return n;var a=s(n,t);return i._ensureBeforeSendRv(a)})).then((function(t){var r,o;if(null===t)throw null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,Pe.BeforeSend,e.type||"event"),new Ie("`beforeSend` returned `null`, will not send event.");var a=n&&n.getSession&&n.getSession();return!l&&a&&i._updateSessionFromEvent(a,t),i._sendEvent(t),t})).then(null,(function(e){if(e instanceof Ie)throw e;throw i.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ie("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(x(e))return e.then((function(e){if(!_(e)&&null!==e)throw new Ie(t);return e}),(function(e){throw new Ie("beforeSend rejected with "+e)}));if(!_(e)&&null!==e)throw new Ie(t);return e},e}(),Me=function(){function e(){}return e.prototype.sendEvent=function(e){return T.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})},e.prototype.close=function(e){return T.resolve(!0)},e}(),Fe=function(){function e(e){this._options=e,this._options.dsn||H.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Ie("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Ie("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){H.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){H.error("Error while sending session: "+e)})):H.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Me},e}();function qe(){if(!("fetch"in(0,P.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Be(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function He(){if(!qe())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Ge="?",We=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ye=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ze=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Je=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ve=/\((\S*)(?::(\d+))(?::(\d+))\)/,Xe=/Minified React error #\d+;/i;function Ke(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Xe.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=e.stacktrace.split("\n"),i=[],a=0;a<o.length;a+=2){var s=null;(t=n.exec(o[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(o[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func=Ge),i.push(s))}return i.length?{message:Ze(e),name:e.name,stack:i}:null}(e))return Qe(t,n)}catch(e){}try{if(t=function(e){var t,n;if(!e||!e.stack)return null;for(var r,o,i,a=[],s=e.stack.split("\n"),c=0;c<s.length;++c){if(o=We.exec(s[c])){var u=o[2]&&0===o[2].indexOf("native");o[2]&&0===o[2].indexOf("eval")&&(r=Ve.exec(o[2]))&&(o[2]=r[1],o[3]=r[2],o[4]=r[3]);var l=o[2]&&0===o[2].indexOf("address at ")?o[2].substr("address at ".length):o[2],p=o[1]||Ge;p=(t=f($e(p,l),2))[0],i={url:l=t[1],func:p,args:u?[o[2]]:[],line:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}else if(o=ze.exec(s[c]))i={url:o[2],func:o[1]||Ge,args:[],line:+o[3],column:o[4]?+o[4]:null};else{if(!(o=Ye.exec(s[c])))continue;o[3]&&o[3].indexOf(" > eval")>-1&&(r=Je.exec(o[3]))?(o[1]=o[1]||"eval",o[3]=r[1],o[4]=r[2],o[5]=""):0!==c||o[5]||void 0===e.columnNumber||(a[0].column=e.columnNumber+1),l=o[3],p=o[1]||Ge,p=(n=f($e(p,l),2))[0],i={url:l=n[1],func:p,args:o[2]?o[2].split(","):[],line:o[4]?+o[4]:null,column:o[5]?+o[5]:null}}!i.func&&i.line&&(i.func=Ge),a.push(i)}return a.length?{message:Ze(e),name:e.name,stack:a}:null}(e))return Qe(t,n)}catch(e){}return{message:Ze(e),name:e&&e.name,stack:[],failed:!0}}var $e=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ge,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Qe(e,t){try{return l(l({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Ze(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function et(e){var t=nt(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function tt(e){return{exception:{values:[et(e)]}}}function nt(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function rt(e,t,n){var r=it(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return L(r),r.level=c.Error,n&&n.event_id&&(r.event_id=n.event_id),T.resolve(r)}function ot(e,t,n,r){void 0===n&&(n=c.Info);var o=at(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),T.resolve(o)}function it(e,t,n){var r,o;if(void 0===n&&(n={}),v(e)&&e.error)return tt(Ke(e=e.error));if(y(e)||(o=e,"[object DOMException]"===Object.prototype.toString.call(o))){var i=e;if("stack"in e)r=tt(Ke(e));else{var a=i.name||(y(i)?"DOMError":"DOMException"),s=i.message?a+": "+i.message:a;D(r=at(s,t,n),s)}return"code"in i&&(r.tags=l(l({},r.tags),{"DOMException.code":""+i.code})),r}return h(e)?r=tt(Ke(e)):_(e)||E(e)?(L(r=function(e,t,n){var r={exception:{values:[{type:E(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+oe(e)}]},extra:{__serialized__:ee(e)}};if(t){var o=nt(Ke(t).stack);r.stacktrace={frames:o}}return r}(e,t,n.rejection),{synthetic:!0}),r):(D(r=at(e,t,n),""+e,void 0),L(r,{synthetic:!0}),r)}function at(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=nt(Ke(t).stack);r.stacktrace={frames:o}}return r}function st(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function ct(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=d(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=d(e.sdk.packages||[],t.packages||[]),e):e}function ut(e,t){var n=st(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(l(l({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function lt(e,t){var n=st(t),r=e.type||"event",o="transaction"===r||t.forceEnvelope(),i=e.debug_meta||{},a=i.transactionSampling,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(i,["transactionSampling"]),c=a||{},u=c.method,p=c.rate;0===Object.keys(s).length?delete e.debug_meta:e.debug_meta=s;var f={body:JSON.stringify(n?ct(e,t.metadata.sdk):e),type:r,url:o?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(o){var d=JSON.stringify(l(l({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:u,rate:p}]})+"\n"+f.body;f.body=d}return f}var pt,ft=function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new Ae(e),this.metadata=t,this._tunnel=n}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){var e=this.getDsn(),t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this.getDsn();return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e,t={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e}(),dt=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;if(!this.isReady())return T.reject(new Ie("Not adding Promise due to buffer limit reached."));var n=e();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then((function(){return t.remove(n)})).then(null,(function(){return t.remove(n).then(null,(function(){}))})),n},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new T((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);T.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),ht=(0,P.R)();function vt(){var e,t;if(pt)return pt;if(Be(ht.fetch))return pt=ht.fetch.bind(ht);var n=ht.document,r=ht.fetch;if("function"==typeof(null===(e=n)||void 0===e?void 0:e.createElement))try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),(null===(t=o.contentWindow)||void 0===t?void 0:t.fetch)&&(r=o.contentWindow.fetch),n.head.removeChild(o)}catch(e){H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return pt=r.bind(ht)}var yt={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},gt=(0,P.R)(),mt=function(){function e(e){var t=this;this.options=e,this._buffer=new dt(30),this._rateLimits={},this._outcomes={},this._api=new ft(e.dsn,e._metadata,e.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&>.document&>.document.addEventListener("visibilitychange",(function(){"hidden"===gt.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){throw new Ie("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=yt[t]+":"+e;H.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){H.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),n=JSON.stringify(l({},this.options.tunnel&&{dsn:this._api.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:(0,k.yW)(),discarded_events:Object.keys(e).map((function(t){var n=f(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}}))});try{!function(e,t){if("[object Navigator]"===Object.prototype.toString.call(ht&&ht.navigator)&&"function"==typeof ht.navigator.sendBeacon)return ht.navigator.sendBeacon.bind(ht.navigator)(e,t);qe()&&vt()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}(t,n)}catch(e){H.error(e)}}else H.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,o=e.resolve,i=e.reject,a=u.fromHttpCode(n.status);this._handleRateLimit(r)&&H.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),a!==u.Success?i(n):o({status:a})},e.prototype._disabledUntil=function(e){var t=yt[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,o,i=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=p(a.trim().split(",")),u=c.next();!u.done;u=c.next()){var l=u.value.split(":",2),f=parseInt(l[0],10),d=1e3*(isNaN(f)?60:f);try{for(var h=(r=void 0,p(l[1].split(";"))),v=h.next();!v.done;v=h.next()){var y=v.value;this._rateLimits[y||"all"]=new Date(i+d)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(i,s)),!0)},e}(),_t=function(e){function t(t,n){void 0===n&&(n=vt());var r=e.call(this,t)||this;return r._fetch=n,r}return s(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(lt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent(Pe.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:He()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new T((function(t,o){n._fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)}))})).then(void 0,(function(t){throw t instanceof Ie?n.recordLostEvent(Pe.QueueOverflow,e.type):n.recordLostEvent(Pe.NetworkError,e.type),t}))},t}(mt),Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(lt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent(Pe.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new T((function(t,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)}))})).then(void 0,(function(t){throw t instanceof Ie?n.recordLostEvent(Pe.QueueOverflow,e.type):n.recordLostEvent(Pe.NetworkError,e.type),t}))},t}(mt),bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.eventFromException=function(e,t){return rt(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=c.Info),ot(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=l(l({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):qe()?new _t(t):new Et(t)},t}(Fe),xt=(0,P.R)(),wt=0;function St(){return wt>0}function Ot(){wt+=1,setTimeout((function(){wt-=1}))}function kt(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return kt(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(e){throw Ot(),ke((function(n){n.addEventProcessor((function(e){var n=l({},e);return t.mechanism&&(D(n,void 0,void 0),L(n,t.mechanism)),n.extra=l(l({},n.extra),{arguments:r}),n})),ve(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function Tt(e){if(void 0===e&&(e={}),xt.document)if(e.eventId)if(e.dsn){var t=xt.document.createElement("script");t.async=!0,t.src=new ft(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad);var n=xt.document.head||xt.document.body;n&&n.appendChild(t)}else H.error("Missing dsn option in showReportDialog call");else H.error("Missing eventId option in showReportDialog call")}var Pt,jt,Rt,It=(0,P.R)(),Ct={},At={};function Nt(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Ct[e.type]=Ct[e.type]||[],Ct[e.type].push(e.callback),function(e){if(!At[e])switch(At[e]=!0,e){case"console":"console"in It&&["debug","info","warn","error","log","assert"].forEach((function(e){e in It.console&&Q(It.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Dt("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,It.console,n)}}))}));break;case"dom":!function(){if("document"in It){var e=Dt.bind(null,"dom"),t=Mt(e,!0);It.document.addEventListener("click",t,!1),It.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=It[t]&&It[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Q(n,"addEventListener",(function(t){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 s=Mt(e);a.handler=s,t.call(this,n,s,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),Q(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in It){var e=[],t=[],n=XMLHttpRequest.prototype;Q(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=r[1];i.__sentry_xhr__={method:g(r[0])?r[0].toUpperCase():r[0],url:r[1]},g(a)&&"POST"===i.__sentry_xhr__.method&&a.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var s=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var o=t.splice(n)[0];i.__sentry_xhr__&&void 0!==o[0]&&(i.__sentry_xhr__.body=o[0])}}catch(e){}Dt("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Q(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(i,t)}})):i.addEventListener("readystatechange",s),n.apply(i,r)}})),Q(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.push(this),t.push(r),Dt("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!qe())return!1;var e=(0,P.R)();if(Be(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Be(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Q(It,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Lt(t),url:Ut(t)},startTimestamp:Date.now()};return Dt("fetch",l({},r)),e.apply(It,t).then((function(e){return Dt("fetch",l(l({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Dt("fetch",l(l({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=(0,P.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=It.onpopstate;It.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=It.location.href,o=Pt;if(Pt=r,Dt("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},Q(It.history,"pushState",t),Q(It.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=Pt,i=String(r);Pt=i,Dt("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":qt=It.onerror,It.onerror=function(e,t,n,r,o){return Dt("error",{column:r,error:o,line:n,msg:e,url:t}),!!qt&&qt.apply(this,arguments)};break;case"unhandledrejection":Bt=It.onunhandledrejection,It.onunhandledrejection=function(e){return Dt("unhandledrejection",e),!Bt||Bt.apply(this,arguments)};break;default:H.warn("unknown instrumentation type:",e)}}(e.type))}function Dt(e,t){var n,r;if(e&&Ct[e])try{for(var o=p(Ct[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){H.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+V(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Lt(e){return void 0===e&&(e=[]),"Request"in It&&w(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ut(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in It&&w(e[0],Request)?e[0].url:String(e[0])}function Mt(e,t){return void 0===t&&(t=!1),function(n){if(n&&Rt!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===jt||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Rt,n))&&(e({event:n,name:r,global:t}),Rt=n),clearTimeout(jt),jt=It.setTimeout((function(){jt=void 0}),1e3)}}}var Ft,qt=null,Bt=null,Ht=function(){function e(t){this.name=e.id,this._options=l({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&le().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:N(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,d(t))},type:"console"}),this._options.dom&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,d(t))},type:"dom"}),this._options.xhr&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,d(t))},type:"xhr"}),this._options.fetch&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,d(t))},type:"fetch"}),this._options.history&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,d(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:c.fromString(e.level),message:K(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(K(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}le().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t,n="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{t=e.event.target?W(e.event.target,n):W(e.event,n)}catch(e){t="<unknown>"}0!==t.length&&le().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,i=t.body;le().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:i})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?le().addBreadcrumb({category:"fetch",data:e.fetchData,level:c.Error,type:"http"},{data:e.error,input:e.args}):le().addBreadcrumb({category:"fetch",data:l(l({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,P.R)(),n=e.from,r=e.to,o=A(t.location.href),i=A(n),a=A(r);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),le().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),Gt=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:je}],version:je},e.call(this,bt,t)||this}return s(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,P.R)().document&&(this._isEnabled()?Tt(l(l({},e),{dsn:e.dsn||this.getDsn()})):H.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Ht);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Ue),Wt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Yt=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){I((function(t){var n=le();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(i):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(H.warn("Event dropped due to being internal Sentry Error.\nEvent: "+N(e)),!0):this._isIgnoredError(e,t)?(H.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+N(e)),!0):this._isDeniedUrl(e,t)?(H.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+N(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(H.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+N(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return $(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return $(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return $(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:d(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:d(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:d(this._options.ignoreErrors||[],e.ignoreErrors||[],Wt),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return H.error("Cannot extract message for event "+N(e)),[]}return[]},e.prototype._getLastValidUrl=function(e){var t,n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--){var o=e[r];if("<anonymous>"!==(null===(t=o)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(n=o)||void 0===n?void 0:n.filename))return o.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return H.error("Cannot extract url for event "+N(e)),null}},e.id="InboundFilters",e}(),zt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Ft=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Ft.apply(n,e)}},e.id="FunctionToString",e}(),Jt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Vt=function(){function e(t){this.name=e.id,this._options=l({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,P.R)();this._options.setTimeout&&Q(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Q(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Q(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Q(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Jt).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=kt(r,{mechanism:{data:{function:V(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,kt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:V(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=(0,P.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Q(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=kt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:V(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,kt(r,{mechanism:{data:{function:"addEventListener",handler:V(r),target:e},handled:!0,type:"instrument"}}),o)}})),Q(n,"removeEventListener",(function(e){return function(t,n,r){var o,i=n;try{var a=null===(o=i)||void 0===o?void 0:o.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&Q(r,e,(function(t){var n={mechanism:{data:{function:e,handler:V(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=V(t.__sentry_original__)),kt(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Xt=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=l({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(H.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(H.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Nt({callback:function(n){var r=n.error,o=le(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(i&&!St()&&!a){var s=o.getClient(),c=void 0===r&&g(n.msg)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(it(r||n.msg,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);L(c,{handled:!1,type:"onerror"}),o.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Nt({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var o=le(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!i||St()||a)return!0;var s=o.getClient(),u=m(r)?t._eventFromRejectionWithPrimitive(r):it(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});u.level=c.Error,L(u,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(u,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=v(e)?e.message:e,a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2]);var s={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,a=g(t)&&t.length>0?t:function(){var e=(0,P.R)();try{return e.document.location.href}catch(e){return""}}();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),Kt=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){I((function(t,n){var r=le().getIntegration(e);if(r){var o=r._handler&&r._handler.bind(r);return"function"==typeof o?o(t,n):t}return t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&w(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!w(e[t],Error)||n.length+1>=this._limit)return n;var r=et(Ke(e[t]));return this._walkErrorTree(e[t],t,d([r],n))},e.id="LinkedErrors",e}(),$t=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(r._shouldDropEvent(t,r._previousEvent))return H.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!(!t||!this._isSameMessageEvent(e,t)&&!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!this._isSameFingerprint(e,t)||!this._isSameStacktrace(e,t))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=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},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var n=this._getExceptionFromEvent(t),r=this._getExceptionFromEvent(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&this._isSameFingerprint(e,t)&&this._isSameStacktrace(e,t))},e.prototype._isSameFingerprint=function(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}},e.id="Dedupe",e}(),Qt=(0,P.R)(),Zt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){I((function(t){var n,r,o;if(le().getIntegration(e)){if(!Qt.navigator&&!Qt.location&&!Qt.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=Qt.location)||void 0===r?void 0:r.href),a=(Qt.document||{}).referrer,s=(Qt.navigator||{}).userAgent,c=l(l(l({},null===(o=t.request)||void 0===o?void 0:o.headers),a&&{Referer:a}),s&&{"User-Agent":s}),u=l(l({},i&&{url:i}),{headers:c});return l(l({},t),{request:u})}return t}))},e.id="UserAgent",e}(),en=[new Yt,new zt,new Vt,new Ht,new Xt,new Kt,new $t,new Zt];function tn(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=en),void 0===e.release){var t=(0,P.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){var n;!0===t.debug&&H.enable();var r=le();null===(n=r.getScope())||void 0===n||n.update(t.initialScope);var o=new e(t);r.bindClient(o)}(Gt,e),e.autoSessionTracking&&function(){if(void 0!==(0,P.R)().document){var e=le();"function"==typeof e.startSession&&"function"==typeof e.captureSession&&(e.startSession({ignoreDuration:!0}),e.captureSession(),Nt({callback:function(t){var n=t.from,r=t.to;void 0!==n&&n!==r&&(e.startSession({ignoreDuration:!0}),e.captureSession())},type:"history"}))}else H.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}function nn(e){void 0===e&&(e={});var t=le(),n=t.getScope();n&&(e.user=l(l({},n.getUser()),e.user)),e.eventId||(e.eventId=t.lastEventId());var r=t.getClient();r&&r.showReportDialog(e)}function rn(){return le().lastEventId()}function on(){}function an(e){e()}function sn(e){var t=le().getClient();return t?t.flush(e):(H.warn("Cannot flush events. No client defined."),T.resolve(!1))}function cn(e){var t=le().getClient();return t?t.close(e):(H.warn("Cannot flush events and disable SDK. No client defined."),T.resolve(!1))}function un(e){return kt(e)()}var ln="sentry.javascript.browser",pn={},fn=(0,P.R)();fn.Sentry&&fn.Sentry.Integrations&&(pn=fn.Sentry.Integrations);var dn=l(l(l({},pn),r),o)},2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(1422),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}},1422:(e,t,n)=>{"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}n.d(t,{KV:()=>r,l$:()=>o}),e=n.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>c,ph:()=>u});var r=n(2991),o=n(1422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}},a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},c=i.nowSeconds.bind(i),u=s.nowSeconds.bind(s);!function(){var e=(0,r.R)().performance;if(e&&e.now){var t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=i<t,s=e.timing&&e.timing.navigationStart,c="number"==typeof s?Math.abs(s+n-o):t;(a||c<t)&&(i<=c&&e.timeOrigin)}}()},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),u=n(7985),l=n(5061),p=n(5655),f=n(5263);e.exports=function(e){return new Promise((function(t,n){var d,h=e.data,v=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete v["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+E)}var b=s(e.baseURL,e.url);function x(){if(m){var r="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),m=null}}if(m.open(e.method.toUpperCase(),a(b,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(x)},m.onabort=function(){m&&(n(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||p.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var w=(e.withCredentials||u(b))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;w&&(v[e.xsrfHeaderName]=w)}"setRequestHeader"in m&&r.forEach(v,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete v[t]:m.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),y&&"json"!==y&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){m&&(n(!e||e&&e.type?new f("canceled"):e),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),m.send(h)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5655));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),s=n(7185),c=n(4875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var p=e;n.length;){var f=n.shift(),d=n.shift();try{p=f(p)}catch(e){d(e);break}}try{o=a(p)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655),s=n(5263);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},7288:e=>{e.exports={version:"0.24.0"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9116:(e,t,n)=>{n(9601);var r=n(857);e.exports=r.Object.assign},7633:(e,t,n)=>{n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var r=n(857);e.exports=r.Promise},1951:(e,t,n)=>{n(2526);var r=n(857);e.exports=r.Symbol.keyFor},6074:(e,t,n)=>{"use strict";n(6992),n(1532),n(4838);var r=n(857),o=n(2104),i=n(614),a=r.Map,s=a.of;e.exports=function(){return o(s,i(this)?this:a,arguments)}},7671:(e,t,n)=>{var r=n(4977);e.exports=r},8509:(e,t,n)=>{var r=n(6155);e.exports=r},9662:(e,t,n)=>{var r=n(7854),o=n(614),i=n(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,t,n)=>{var r=n(7854),o=n(4411),i=n(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,t,n)=>{var r=n(7854),o=n(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,t,n)=>{var r=n(5112),o=n(30),i=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},5787:(e,t,n)=>{var r=n(7854),o=n(7976),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},9670:(e,t,n)=>{var r=n(7854),o=n(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,t,n)=>{var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},1318:(e,t,n)=>{var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,t,n)=>{var r=n(9974),o=n(1702),i=n(8361),a=n(7908),s=n(6244),c=n(5417),u=o([].push),l=function(e){var t=1==e,n=2==e,o=3==e,l=4==e,p=6==e,f=7==e,d=5==e||p;return function(h,v,y,g){for(var m,_,E=a(h),b=i(E),x=r(v,y),w=s(b),S=0,O=g||c,k=t?O(h,w):n||f?O(h,0):void 0;w>S;S++)if((d||S in b)&&(_=x(m=b[S],S,E),e))if(t)k[S]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:u(k,m)}else switch(e){case 4:return!1;case 7:u(k,m)}return p?-1:o||l?l:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1589:(e,t,n)=>{var r=n(7854),o=n(1400),i=n(6244),a=n(6135),s=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=i(e),u=o(t,r),l=o(void 0===n?r:n,r),p=s(c(l-u,0)),f=0;u<l;u++,f++)a(p,f,e[u]);return p.length=f,p}},206:(e,t,n)=>{var r=n(1702);e.exports=r([].slice)},7475:(e,t,n)=>{var r=n(7854),o=n(3157),i=n(4411),a=n(111),s=n(5112)("species"),c=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(i(t)&&(t===c||o(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?c:t}},5417:(e,t,n)=>{var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},4326:(e,t,n)=>{var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,t,n)=>{var r=n(7854),o=n(1694),i=n(614),a=n(4326),s=n(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),s))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},7741:(e,t,n)=>{var r=n(1702),o=n(1589),i=r("".replace),a=r("".split),s=r([].join),c=String(Error("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,l=u.test(c),p=/@[^\n]*\n/.test(c)&&!/zxcasd/.test(c);e.exports=function(e,t){if("string"!=typeof e)return e;if(l)for(;t--;)e=i(e,u,"");else if(p)return s(o(a(e,"\n"),t),"\n");return e}},2044:(e,t,n)=>{"use strict";var r=n(206);e.exports=function(){return new this(r(arguments))}},5631:(e,t,n)=>{"use strict";var r=n(3070).f,o=n(30),i=n(2248),a=n(9974),s=n(5787),c=n(408),u=n(654),l=n(6340),p=n(9781),f=n(2423).fastKey,d=n(9909),h=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,d),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),d=l.prototype,y=v(t),g=function(e,t,n){var r,o,i=y(e),a=m(e,t);return a?a.value=n:(i.last=a={index:o=f(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},m=function(e,t){var n,r=y(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(d,{clear:function(){for(var e=y(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,n=y(t),r=m(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=y(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),i(d,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),p&&r(d,"size",{get:function(){return y(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},7710:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(1702),a=n(4705),s=n(1320),c=n(2423),u=n(408),l=n(5787),p=n(614),f=n(111),d=n(7293),h=n(7072),v=n(8003),y=n(9587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),_=g?"set":"add",E=o[e],b=E&&E.prototype,x=E,w={},S=function(e){var t=i(b[e]);s(b,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return m&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!p(E)||!(m||b.forEach&&!d((function(){(new E).entries().next()})))))x=n.getConstructor(t,e,g,_),c.enable();else if(a(e,!0)){var O=new x,k=O[_](m?{}:-0,1)!=O,T=d((function(){O.has(1)})),P=h((function(e){new E(e)})),j=!m&&d((function(){for(var e=new E,t=5;t--;)e[_](t,t);return!e.has(-0)}));P||((x=t((function(e,t){l(e,b);var n=y(new E,e,x);return null!=t&&u(t,n[_],{that:n,AS_ENTRIES:g}),n}))).prototype=b,b.constructor=x),(T||j)&&(S("delete"),S("has"),g&&S("get")),(j||k)&&S(_),m&&b.clear&&delete b.clear}return w[e]=x,r({global:!0,forced:x!=E},w),v(x,e),m||n.setStrong(x,e,g),x}},9920:(e,t,n)=>{var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},8544:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,n)=>{"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),a=n(8003),s=n(7497),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,l,!1,!0),s[l]=c,e}},8880:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,n)=>{"use strict";var r=n(4948),o=n(3070),i=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),i=n(1913),a=n(6530),s=n(614),c=n(4994),u=n(9518),l=n(7674),p=n(8003),f=n(8880),d=n(1320),h=n(5112),v=n(7497),y=n(3383),g=a.PROPER,m=a.CONFIGURABLE,_=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,b=h("iterator"),x="keys",w="values",S="entries",O=function(){return this};e.exports=function(e,t,n,a,h,y,k){c(n,t,a);var T,P,j,R=function(e){if(e===h&&D)return D;if(!E&&e in A)return A[e];switch(e){case x:case w:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",C=!1,A=e.prototype,N=A[b]||A["@@iterator"]||h&&A[h],D=!E&&N||R(h),L="Array"==t&&A.entries||N;if(L&&(T=u(L.call(new e)))!==Object.prototype&&T.next&&(i||u(T)===_||(l?l(T,_):s(T[b])||d(T,b,O)),p(T,I,!0,!0),i&&(v[I]=O)),g&&h==w&&N&&N.name!==w&&(!i&&m?f(A,"name",w):(C=!0,D=function(){return o(N,this)})),h)if(P={values:R(w),keys:y?D:R(x),entries:R(S)},k)for(j in P)(E||C||!(j in A))&&d(A,j,P[j]);else r({target:t,proto:!0,forced:E||C},P);return i&&!k||A[b]===D||d(A,b,D,{name:h}),v[t]=D,P}},7235:(e,t,n)=>{var r=n(857),o=n(2597),i=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7871:e=>{e.exports="object"==typeof window},1528:(e,t,n)=>{var r=n(8113),o=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:(e,t,n)=>{var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(e,t,n)=>{var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},1036:(e,t,n)=>{var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:(e,t,n)=>{var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,i=n(7854),a=n(8113),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:(e,t,n)=>{var r=n(7293),o=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},2109:(e,t,n)=>{var r=n(7854),o=n(1236).f,i=n(8880),a=n(1320),s=n(3505),c=n(9920),u=n(4705);e.exports=function(e,t){var n,l,p,f,d,h=e.target,v=e.global,y=e.stat;if(n=v?r:y?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(f=t[l],p=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!u(v?l:h+(y?".":"#")+l,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&i(f,"sham",!0),a(n,l,f,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6677:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var t=Function.prototype,n=t.apply,r=t.bind,o=t.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},9974:(e,t,n)=>{var r=n(1702),o=n(9662),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?i(e,t):function(){return e.apply(t,arguments)}}},6916:e=>{var t=Function.prototype.call;e.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},6530:(e,t,n)=>{var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},1702:e=>{var t=Function.prototype,n=t.bind,r=t.call,o=n&&n.bind(r);e.exports=n?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,t,n)=>{var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(8173),i=n(7497),a=n(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(9662),a=n(9670),s=n(6330),c=n(1246),u=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(o(n,e));throw u(s(e)+" is not iterable")}},8173:(e,t,n)=>{var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},7854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(e,t,n)=>{var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:(e,t,n)=>{var r=n(5005);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(7854),o=n(1702),i=n(7293),a=n(4326),s=r.Object,c=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},9587:(e,t,n)=>{var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},2788:(e,t,n)=>{var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},8340:(e,t,n)=>{var r=n(111),o=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},2423:(e,t,n)=>{var r=n(2109),o=n(1702),i=n(3501),a=n(111),s=n(2597),c=n(3070).f,u=n(8006),l=n(1156),p=n(2050),f=n(9711),d=n(6677),h=!1,v=f("meta"),y=0,g=function(e){c(e,v,{value:{objectID:"O"+y++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},h=!0;var e=u.f,t=o([].splice),n={};n[v]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===v){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!p(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!p(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},onFreeze:function(e){return d&&h&&p(e)&&!s(e,v)&&g(e),e}};i[v]=!0},9909:(e,t,n)=>{var r,o,i,a=n(8536),s=n(7854),c=n(1702),u=n(111),l=n(8880),p=n(2597),f=n(5465),d=n(6200),h=n(3501),v="Object already initialized",y=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g),_=c(m.get),E=c(m.has),b=c(m.set);r=function(e,t){if(E(m,e))throw new y(v);return t.facade=e,b(m,e,t),t},o=function(e){return _(m,e)||{}},i=function(e){return E(m,e)}}else{var x=d("state");h[x]=!0,r=function(e,t){if(p(e,x))throw new y(v);return t.facade=e,l(e,x,t),t},o=function(e){return p(e,x)?e[x]:{}},i=function(e){return p(e,x)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,t,n)=>{var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,t,n)=>{var r=n(1702),o=n(7293),i=n(614),a=n(648),s=n(5005),c=n(2788),u=function(){},l=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.exec(u),v=function(e){if(!i(e))return!1;try{return p(u,l,e),!0}catch(e){return!1}};e.exports=!p||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(f,c(e))}:v},4705:(e,t,n)=>{var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==l||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},111:(e,t,n)=>{var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},2190:(e,t,n)=>{var r=n(7854),o=n(5005),i=n(614),a=n(7976),s=n(3307),c=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,c(e))}},408:(e,t,n)=>{var r=n(7854),o=n(9974),i=n(6916),a=n(9670),s=n(6330),c=n(7659),u=n(6244),l=n(7976),p=n(8554),f=n(1246),d=n(9212),h=r.TypeError,v=function(e,t){this.stopped=e,this.result=t},y=v.prototype;e.exports=function(e,t,n){var r,g,m,_,E,b,x,w=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),T=o(t,w),P=function(e){return r&&d(r,"normal",e),new v(!0,e)},j=function(e){return S?(a(e),k?T(e[0],e[1],P):T(e[0],e[1])):k?T(e,P):T(e)};if(O)r=e;else{if(!(g=f(e)))throw h(s(e)+" is not iterable");if(c(g)){for(m=0,_=u(e);_>m;m++)if((E=j(e[m]))&&l(y,E))return E;return new v(!1)}r=p(e,g)}for(b=r.next;!(x=i(b,r)).done;){try{E=j(x.value)}catch(e){d(r,"throw",e)}if("object"==typeof E&&E&&l(y,E))return E}return new v(!1)}},9212:(e,t,n)=>{var r=n(6916),o=n(9670),i=n(8173);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},3383:(e,t,n)=>{"use strict";var r,o,i,a=n(7293),s=n(614),c=n(30),u=n(9518),l=n(1320),p=n(5112),f=n(1913),d=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:f&&(r=c(r)),s(r[d])||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,t,n)=>{var r=n(7466);e.exports=function(e){return r(e.length)}},5948:(e,t,n)=>{var r,o,i,a,s,c,u,l,p=n(7854),f=n(9974),d=n(1236).f,h=n(261).set,v=n(6833),y=n(1528),g=n(1036),m=n(5268),_=p.MutationObserver||p.WebKitMutationObserver,E=p.document,b=p.process,x=p.Promise,w=d(p,"queueMicrotask"),S=w&&w.value;S||(r=function(){var e,t;for(m&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},v||m||g||!_||!E?!y&&x&&x.resolve?((u=x.resolve(void 0)).constructor=x,l=f(u.then,u),a=function(){l(r)}):m?a=function(){b.nextTick(r)}:(h=f(h,p),a=function(){h(r)}):(s=!0,c=E.createTextNode(""),new _(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},3366:(e,t,n)=>{var r=n(7854);e.exports=r.Promise},133:(e,t,n)=>{var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,t,n)=>{var r=n(7854),o=n(614),i=n(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},8523:(e,t,n)=>{"use strict";var r=n(9662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},6277:(e,t,n)=>{var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(1702),i=n(6916),a=n(7293),s=n(1956),c=n(5181),u=n(5296),l=n(7908),p=n(8361),f=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,a=1,f=c.f,d=u.f;o>a;)for(var v,y=p(arguments[a++]),g=f?h(s(y),f(y)):s(y),m=g.length,_=0;m>_;)v=g[_++],r&&!i(d,y,v)||(n[v]=y[v]);return n}:f},30:(e,t,n)=>{var r,o=n(9670),i=n(6048),a=n(748),s=n(3501),c=n(490),u=n(317),l=n(6200)("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&r?d(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},6048:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9670),a=n(5656),s=n(1956);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=s(t),u=c.length,l=0;u>l;)o.f(e,n=c[l++],r[n]);return e}},3070:(e,t,n)=>{var r=n(7854),o=n(9781),i=n(4664),a=n(9670),s=n(4948),c=r.TypeError,u=Object.defineProperty;t.f=o?u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:(e,t,n)=>{var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),c=n(4948),u=n(2597),l=n(4664),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=s(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},1156:(e,t,n)=>{var r=n(4326),o=n(5656),i=n(8006).f,a=n(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8006:(e,t,n)=>{var r=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,n)=>{var r=n(7854),o=n(2597),i=n(614),a=n(7908),s=n(6200),c=n(8544),u=s("IE_PROTO"),l=r.Object,p=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=a(e);if(o(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?p:null}},2050:(e,t,n)=>{var r=n(7293),o=n(111),i=n(4326),a=n(7556),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},7976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:(e,t,n)=>{var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&c(l,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},1956:(e,t,n)=>{var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:(e,t,n)=>{var r=n(1702),o=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},288:(e,t,n)=>{"use strict";var r=n(1694),o=n(648);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(614),a=n(111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},3887:(e,t,n)=>{var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?c(t,n(e)):t}},857:(e,t,n)=>{var r=n(7854);e.exports=r},2534:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:(e,t,n)=>{var r=n(9670),o=n(111),i=n(8523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},2248:(e,t,n)=>{var r=n(1320);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},1320:(e,t,n)=>{var r=n(7854),o=n(614),i=n(2597),a=n(8880),s=n(3505),c=n(2788),u=n(9909),l=n(6530).CONFIGURABLE,p=u.get,f=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,c){var u,p=!!c&&!!c.unsafe,h=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet,y=c&&void 0!==c.name?c.name:t;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||l&&n.name!==y)&&a(n,"name",y),(u=f(n)).source||(u.source=d.join("string"==typeof y?y:""))),e!==r?(p?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=n:a(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||c(this)}))},4488:(e,t,n)=>{var r=n(7854).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},3505:(e,t,n)=>{var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:(e,t,n)=>{"use strict";var r=n(5005),o=n(3070),i=n(5112),a=n(9781),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:(e,t,n)=>{var r=n(3070).f,o=n(2597),i=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},6200:(e,t,n)=>{var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:(e,t,n)=>{var r=n(7854),o=n(3505),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:(e,t,n)=>{var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(e,t,n)=>{var r=n(9670),o=n(9483),i=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},8710:(e,t,n)=>{var r=n(1702),o=n(9303),i=n(1340),a=n(4488),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(a(t)),f=o(n),d=p.length;return f<0||f>=d?e?"":void 0:(r=c(p,f))<55296||r>56319||f+1===d||(l=c(p,f+1))<56320||l>57343?e?s(p,f):r:e?u(p,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},261:(e,t,n)=>{var r,o,i,a,s=n(7854),c=n(2104),u=n(9974),l=n(614),p=n(2597),f=n(7293),d=n(490),h=n(206),v=n(317),y=n(6833),g=n(5268),m=s.setImmediate,_=s.clearImmediate,E=s.process,b=s.Dispatch,x=s.Function,w=s.MessageChannel,S=s.String,O=0,k={};try{r=s.location}catch(e){}var T=function(e){if(p(k,e)){var t=k[e];delete k[e],t()}},P=function(e){return function(){T(e)}},j=function(e){T(e.data)},R=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};m&&_||(m=function(e){var t=h(arguments,1);return k[++O]=function(){c(l(e)?e:x(e),void 0,t)},o(O),O},_=function(e){delete k[e]},g?o=function(e){E.nextTick(P(e))}:b&&b.now?o=function(e){b.now(P(e))}:w&&!y?(a=(i=new w).port2,i.port1.onmessage=j,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(R)?(o=R,s.addEventListener("message",j,!1)):o="onreadystatechange"in v("script")?function(e){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),T(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:m,clear:_}},1400:(e,t,n)=>{var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:(e,t,n)=>{var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},7466:(e,t,n)=>{var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:(e,t,n)=>{var r=n(7854),o=n(4488),i=r.Object;e.exports=function(e){return i(o(e))}},7593:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(111),a=n(2190),s=n(8173),c=n(2140),u=n(5112),l=r.TypeError,p=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,p);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},4948:(e,t,n)=>{var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:(e,t,n)=>{var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:(e,t,n)=>{var r=n(7854),o=n(648),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:(e,t,n)=>{var r=n(7854).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},9711:(e,t,n)=>{var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:(e,t,n)=>{var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(e,t,n)=>{var r=n(5112);t.f=r},5112:(e,t,n)=>{var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(133),c=n(3307),u=o("wks"),l=r.Symbol,p=l&&l.for,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(l,e)?u[e]=l[e]:u[e]=c&&p?p(t):f(t)}return u[e]}},9170:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(7976),a=n(9518),s=n(7674),c=n(9920),u=n(30),l=n(8880),p=n(9114),f=n(7741),d=n(8340),h=n(408),v=n(6277),y=n(5112),g=n(2914),m=y("toStringTag"),_=o.Error,E=[].push,b=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=i(x,this);s?n=s(new _(void 0),o?a(this):x):(n=o?this:u(x),l(n,m,"Error")),l(n,"message",v(t,"")),g&&l(n,"stack",f(n.stack,1)),d(n,r);var c=[];return h(e,E,{that:c}),l(n,"errors",c),n};s?s(b,_):c(b,_);var x=b.prototype=u(_.prototype,{constructor:p(1,b),message:p(1,""),name:p(1,"AggregateError")});r({global:!0},{AggregateError:b})},6992:(e,t,n)=>{"use strict";var r=n(5656),o=n(1223),i=n(7497),a=n(9909),s=n(654),c="Array Iterator",u=a.set,l=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},1532:(e,t,n)=>{"use strict";n(7710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5631))},9601:(e,t,n)=>{var r=n(2109),o=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},1539:(e,t,n)=>{var r=n(1694),o=n(1320),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},7922:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),i=n(9662),a=n(8523),s=n(2534),c=n(408);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=s((function(){var n=i(t.resolve),a=[],s=0,u=1;c(e,(function(e){var i=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){c||(c=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return l.error&&u(l.value),n.promise}})},4668:(e,t,n)=>{"use strict";var r=n(2109),o=n(9662),i=n(5005),a=n(6916),s=n(8523),c=n(2534),u=n(408),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i("AggregateError"),r=s.f(t),p=r.resolve,f=r.reject,d=c((function(){var r=o(t.resolve),i=[],s=0,c=1,d=!1;u(e,(function(e){var o=s++,u=!1;c++,a(r,t,e).then((function(e){u||d||(d=!0,p(e))}),(function(e){u||d||(u=!0,i[o]=e,--c||f(new n(i,l)))}))})),--c||f(new n(i,l))}));return d.error&&f(d.value),r.promise}})},7727:(e,t,n)=>{"use strict";var r=n(2109),o=n(1913),i=n(3366),a=n(7293),s=n(5005),c=n(614),u=n(6707),l=n(9478),p=n(1320);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!o&&c(i)){var f=s("Promise").prototype.finally;i.prototype.finally!==f&&p(i.prototype,"finally",f,{unsafe:!0})}},8674:(e,t,n)=>{"use strict";var r,o,i,a,s=n(2109),c=n(1913),u=n(7854),l=n(5005),p=n(6916),f=n(3366),d=n(1320),h=n(2248),v=n(7674),y=n(8003),g=n(6340),m=n(9662),_=n(614),E=n(111),b=n(5787),x=n(2788),w=n(408),S=n(7072),O=n(6707),k=n(261).set,T=n(5948),P=n(9478),j=n(842),R=n(8523),I=n(2534),C=n(9909),A=n(4705),N=n(5112),D=n(7871),L=n(5268),U=n(7392),M=N("species"),F="Promise",q=C.getterFor(F),B=C.set,H=C.getterFor(F),G=f&&f.prototype,W=f,Y=G,z=u.TypeError,J=u.document,V=u.process,X=R.f,K=X,$=!!(J&&J.createEvent&&u.dispatchEvent),Q=_(u.PromiseRejectionEvent),Z="unhandledrejection",ee=!1,te=A(F,(function(){var e=x(W),t=e!==String(W);if(!t&&66===U)return!0;if(c&&!Y.finally)return!0;if(U>=51&&/native code/.test(e))return!1;var n=new W((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[M]=r,!(ee=n.then((function(){}))instanceof r)||!t&&D&&!Q})),ne=te||!S((function(e){W.all(e).catch((function(){}))})),re=function(e){var t;return!(!E(e)||!_(t=e.then))&&t},oe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;T((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,s,c,u=n[i++],l=o?u.ok:u.fail,f=u.resolve,d=u.reject,h=u.domain;try{l?(o||(2===e.rejection&&ce(e),e.rejection=1),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),c=!0)),a===u.promise?d(z("Promise-chain cycle")):(s=re(a))?p(s,a,f,d):f(a)):d(r)}catch(e){h&&!c&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},ie=function(e,t,n){var r,o;$?((r=J.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(o=u["on"+e])?o(r):e===Z&&j("Unhandled promise rejection",n)},ae=function(e){p(k,u,(function(){var t,n=e.facade,r=e.value;if(se(e)&&(t=I((function(){L?V.emit("unhandledRejection",r,n):ie(Z,n,r)})),e.rejection=L||se(e)?2:1,t.error))throw t.value}))},se=function(e){return 1!==e.rejection&&!e.parent},ce=function(e){p(k,u,(function(){var t=e.facade;L?V.emit("rejectionHandled",t):ie("rejectionhandled",t,e.value)}))},ue=function(e,t,n){return function(r){e(t,r,n)}},le=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,oe(e,!0))},pe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z("Promise can't be resolved itself");var r=re(t);r?T((function(){var n={done:!1};try{p(r,t,ue(pe,n,e),ue(le,n,e))}catch(t){le(n,t,e)}})):(e.value=t,e.state=1,oe(e,!1))}catch(t){le({done:!1},t,e)}}};if(te&&(Y=(W=function(e){b(this,Y),m(e),p(r,this);var t=q(this);try{e(ue(pe,t),ue(le,t))}catch(e){le(t,e)}}).prototype,(r=function(e){B(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(Y,{then:function(e,t){var n=H(this),r=n.reactions,o=X(O(this,W));return o.ok=!_(e)||e,o.fail=_(t)&&t,o.domain=L?V.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&oe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=q(e);this.promise=e,this.resolve=ue(pe,t),this.reject=ue(le,t)},R.f=X=function(e){return e===W||e===i?new o(e):K(e)},!c&&_(f)&&G!==Object.prototype)){a=G.then,ee||(d(G,"then",(function(e,t){var n=this;return new W((function(e,t){p(a,n,e,t)})).then(e,t)}),{unsafe:!0}),d(G,"catch",Y.catch,{unsafe:!0}));try{delete G.constructor}catch(e){}v&&v(G,Y)}s({global:!0,wrap:!0,forced:te},{Promise:W}),y(W,F,!1,!0),g(F),i=l(F),s({target:F,stat:!0,forced:te},{reject:function(e){var t=X(this);return p(t.reject,void 0,e),t.promise}}),s({target:F,stat:!0,forced:c||te},{resolve:function(e){return P(c&&this===i?W:this,e)}}),s({target:F,stat:!0,forced:ne},{all:function(e){var t=this,n=X(t),r=n.resolve,o=n.reject,i=I((function(){var n=m(t.resolve),i=[],a=0,s=1;w(e,(function(e){var c=a++,u=!1;s++,p(n,t,e).then((function(e){u||(u=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=X(t),r=n.reject,o=I((function(){var o=m(t.resolve);w(e,(function(e){p(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},8783:(e,t,n)=>{"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),a=n(654),s="String Iterator",c=i.set,u=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},2526:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(5005),a=n(2104),s=n(6916),c=n(1702),u=n(1913),l=n(9781),p=n(133),f=n(7293),d=n(2597),h=n(3157),v=n(614),y=n(111),g=n(7976),m=n(2190),_=n(9670),E=n(7908),b=n(5656),x=n(4948),w=n(1340),S=n(9114),O=n(30),k=n(1956),T=n(8006),P=n(1156),j=n(5181),R=n(1236),I=n(3070),C=n(5296),A=n(206),N=n(1320),D=n(2309),L=n(6200),U=n(3501),M=n(9711),F=n(5112),q=n(6061),B=n(7235),H=n(8003),G=n(9909),W=n(2092).forEach,Y=L("hidden"),z="Symbol",J=F("toPrimitive"),V=G.set,X=G.getterFor(z),K=Object.prototype,$=o.Symbol,Q=$&&$.prototype,Z=o.TypeError,ee=o.QObject,te=i("JSON","stringify"),ne=R.f,re=I.f,oe=P.f,ie=C.f,ae=c([].push),se=D("symbols"),ce=D("op-symbols"),ue=D("string-to-symbol-registry"),le=D("symbol-to-string-registry"),pe=D("wks"),fe=!ee||!ee.prototype||!ee.prototype.findChild,de=l&&f((function(){return 7!=O(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ne(K,t);r&&delete K[t],re(e,t,n),r&&e!==K&&re(K,t,r)}:re,he=function(e,t){var n=se[e]=O(Q);return V(n,{type:z,tag:e,description:t}),l||(n.description=t),n},ve=function(e,t,n){e===K&&ve(ce,t,n),_(e);var r=x(t);return _(n),d(se,r)?(n.enumerable?(d(e,Y)&&e[Y][r]&&(e[Y][r]=!1),n=O(n,{enumerable:S(0,!1)})):(d(e,Y)||re(e,Y,S(1,{})),e[Y][r]=!0),de(e,r,n)):re(e,r,n)},ye=function(e,t){_(e);var n=b(t),r=k(n).concat(Ee(n));return W(r,(function(t){l&&!s(ge,n,t)||ve(e,t,n[t])})),e},ge=function(e){var t=x(e),n=s(ie,this,t);return!(this===K&&d(se,t)&&!d(ce,t))&&(!(n||!d(this,t)||!d(se,t)||d(this,Y)&&this[Y][t])||n)},me=function(e,t){var n=b(e),r=x(t);if(n!==K||!d(se,r)||d(ce,r)){var o=ne(n,r);return!o||!d(se,r)||d(n,Y)&&n[Y][r]||(o.enumerable=!0),o}},_e=function(e){var t=oe(b(e)),n=[];return W(t,(function(e){d(se,e)||d(U,e)||ae(n,e)})),n},Ee=function(e){var t=e===K,n=oe(t?ce:b(e)),r=[];return W(n,(function(e){!d(se,e)||t&&!d(K,e)||ae(r,se[e])})),r};if(p||(N(Q=($=function(){if(g(Q,this))throw Z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,t=M(e),n=function(e){this===K&&s(n,ce,e),d(this,Y)&&d(this[Y],t)&&(this[Y][t]=!1),de(this,t,S(1,e))};return l&&fe&&de(K,t,{configurable:!0,set:n}),he(t,e)}).prototype,"toString",(function(){return X(this).tag})),N($,"withoutSetter",(function(e){return he(M(e),e)})),C.f=ge,I.f=ve,R.f=me,T.f=P.f=_e,j.f=Ee,q.f=function(e){return he(F(e),e)},l&&(re(Q,"description",{configurable:!0,get:function(){return X(this).description}}),u||N(K,"propertyIsEnumerable",ge,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:$}),W(k(pe),(function(e){B(e)})),r({target:z,stat:!0,forced:!p},{for:function(e){var t=w(e);if(d(ue,t))return ue[t];var n=$(t);return ue[t]=n,le[n]=t,n},keyFor:function(e){if(!m(e))throw Z(e+" is not a symbol");if(d(le,e))return le[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!l},{create:function(e,t){return void 0===t?O(e):ye(O(e),t)},defineProperty:ve,defineProperties:ye,getOwnPropertyDescriptor:me}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:_e,getOwnPropertySymbols:Ee}),r({target:"Object",stat:!0,forced:f((function(){j.f(1)}))},{getOwnPropertySymbols:function(e){return j.f(E(e))}}),te&&r({target:"JSON",stat:!0,forced:!p||f((function(){var e=$();return"[null]"!=te([e])||"{}"!=te({a:e})||"{}"!=te(Object(e))}))},{stringify:function(e,t,n){var r=A(arguments),o=t;if((y(t)||void 0!==e)&&!m(e))return h(t)||(t=function(e,t){if(v(o)&&(t=s(o,this,e,t)),!m(t))return t}),r[1]=t,a(te,null,r)}}),!Q[J]){var be=Q.valueOf;N(Q,J,(function(e){return s(be,this)}))}H($,z),U[Y]=!0},4838:(e,t,n)=>{n(2109)({target:"Map",stat:!0},{of:n(2044)})},4977:(e,t,n)=>{var r=n(9116);e.exports=r},6155:(e,t,n)=>{var r=n(1951);e.exports=r},6245:(e,t,n)=>{"use strict";function r(e){this.message=e}n.r(t),n.d(t,{default:()=>s,InvalidTokenError:()=>a}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},2081:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerEvents=t.Events=t.Player=t.Client=void 0,n(7633),n(8509),n(6074),n(7671);var i=n(9138);t.Client=i.default;var a=n(909);t.Player=a.default,(0,n(9773).printVersion)();var s=o([r({},i.default.eventNames),r({},a.default.events)],2),c=s[0],u=s[1];t.Events=c,t.PlayerEvents=u},9138:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(8237),a=n(1808),s=n(4479),c=n(3998),u=n(9259),l=n(3447),p=n(4348),f=o(n(4776).Lp,[]),d=function(){function e(t){var n=this;this.clientConfig=void 0,this.gaProperty="",this.directDeliveryPipe=void 0,this.player=void 0,this.renderHistory=f.emptyHistory,this.eventDelegateRefs=(0,p.cloneWithKeys)(e.eventNames),this.playerIsFallback=!1,this.setup=function(e){var t=f.defaultConfig,o=n.clientConfig||f.defaultConfig,a=new Map,d=null;try{if("object"!=typeof e)throw new l.ClientConfigurationError("badConfig",null);if(!e.hasOwnProperty("storyId")||"string"!=typeof e.storyId)throw new l.ClientConfigurationError("storyId",null);if(!e.hasOwnProperty("accessToken")||"string"!=typeof e.accessToken)throw new l.ClientConfigurationError("accessToken",null);(0,p.prepConfig)(e,t),n.clientConfig=r(r({},o),e),d=new i.default(n.clientConfig.accessToken,n.clientConfig.environment,n.clientConfig.storyId,n.clientConfig.compositionId),a.set("experienceCreated",(function(e){return n.experienceCreated(e)})),a.set("gotExperience",(function(e){return n.gotExperience(e)})),a.set("internalError",(function(e){return n.internalError(e)})),n.directDeliveryPipe=new u.default({api:d,clientDelegates:a,environment:n.clientConfig.environment}),d.getGAProperty().then((function(e){var t=e.gaTrackingId;"string"==typeof t&&t.length>0&&(s.default.initialize(n.clientConfig.gaPlacement),n.gaProperty=t,void 0!==n.player&&n.player.setGaProperty(t))})).catch((function(e){var t=new l.HTTPError("httpFailure",null,e);c.default.trapError(t,n.clientConfig.storyId,null)}))}catch(t){var h=e&&e.storyId?e.storyId:"";c.default.trapError(t,h)}},this.bindPlayer=function(e,t){if(void 0===t&&(t=!1),n.clientConfig){var r=n.clientConfig.storyId;n.playerIsFallback=t,n.player=e,e.setStoryId(r),n.gaProperty&&e.setGaProperty(n.gaProperty)}},this.on=function(t,r){var o=n,i=o.eventDelegateRefs,a=o.eventDelegateRefs.ERROR;if(n.clientConfig){var s=n.clientConfig.storyId;try{if(!(0,p.isFunc)(r))throw new l.ClientConfigurationError("invalidCallbackType",t);if(!(0,p.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);i[t]=r}catch(e){c.default.trapError(e,s,a)}}},this.off=function(t){void 0===t&&(t="");var r=n,o=r.eventDelegateRefs,i=r.eventDelegateRefs.ERROR;if(n.clientConfig){var a=n.clientConfig.storyId;try{if(t){if(!(0,p.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);o[t]=null}else Object.keys(e.eventNames).forEach((function(e){o[e]=null}))}catch(e){c.default.trapError(e,a,i)}}},this.captureAnalytics=function(e){void 0===e&&(e=null);var t=n.eventDelegateRefs.ERROR;if(n.clientConfig){var r=n.clientConfig.storyId;try{if(!(e instanceof HTMLVideoElement))throw new l.PlayerConfigurationError("invalidPlayerRef",null);n.bindPlayer(new a.default(e),!0)}catch(e){c.default.trapError(e,r,t)}}},this.getExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.clientConfig.storyId,a=r.eventDelegateRefs,s=a.GOT_EXPERIENCE,u=a.ERROR;try{if(null===o&&!(0,p.isFunc)(s))throw new l.ClientConfigurationError("badConfigOnGet",e.eventNames.GOT_EXPERIENCE);t.length>f.uuidLength&&(t=t.substring(0,f.uuidLength)),n.directDeliveryPipe.getExperience(t)}catch(e){c.default.trapError(e,i,u)}}},this.createExperience=function(t,r){if(void 0===r&&(r=!0),n.clientConfig){var o=n,i=o.player,a=o.playerIsFallback,s=o.clientConfig.storyId,u=o.eventDelegateRefs,f=u.GOT_EXPERIENCE,d=u.UPLOAD_PROGRESS,h=u.ERROR;try{if((null===i||a)&&!(0,p.isFunc)(f))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.createExperience(t,r,d)}catch(e){c.default.trapError(e,s,h)}}},this.renderExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.playerIsFallback,a=r.clientConfig.storyId,s=r.eventDelegateRefs,u=s.GOT_EXPERIENCE,f=s.UPLOAD_PROGRESS,d=s.ERROR;try{if((null===o||i)&&!(0,p.isFunc)(u))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.fetchExperience(t,f)}catch(e){c.default.trapError(e,a,d)}}},this.renderExperienceFromId=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.playerIsFallback,a=r.clientConfig.storyId,s=r.eventDelegateRefs,u=s.GOT_EXPERIENCE,f=s.UPLOAD_PROGRESS,d=s.ERROR;try{if((null===o||i)&&!(0,p.isFunc)(u))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.fetchExperience(null,f,1,t)}catch(e){c.default.trapError(e,a,d)}}},this.updateHistory=function(e,t){n.renderHistory[e]!==t&&(n.renderHistory[e]=t)},this.experienceCreated=function(e){var t=n.eventDelegateRefs.EXPERIENCE_CREATED,r=e.id;(0,p.isFunc)(t)&&t(e),n.updateHistory("prevExperienceId",r)},this.gotExperience=function(e){var t=n,r=t.player,o=t.clientConfig.storyId,i=t.eventDelegateRefs,a=i.GOT_EXPERIENCE,s=i.ERROR,u=e.id,f=e.moderation_status;try{if("rejected"===f)throw new l.ModerationError("rejection",u);(0,p.isFunc)(a)&&a(e),void 0!==r&&r.experienceGenerated(e),n.updateHistory("prevExperienceId",u),n.updateHistory("prevMessage","")}catch(e){c.default.trapError(e,o,s)}},this.internalError=function(e){var t=n,r=t.clientConfig.storyId,o=t.eventDelegateRefs.ERROR;c.default.trapError(e,r,o)},this.setup(t)}return e.eventNames=f.eventNames,e}();t.default=d},9259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4348),o=n(3447),i=function(){function e(e){var t=this;this.api=null,this.clientDelegates=null,this.configCache=new Map,this.getExperience=function(e){clearTimeout(t.killPollTimeout),t.killPollTimeout=setTimeout((function(){return t.killPoll(e)}),18e4),t.pollForExperience(e,(function(e){clearTimeout(t.killPollTimeout),t.clientDelegates.get("gotExperience")(e)}),(function(n){clearTimeout(t.killPollTimeout);var r=new o.HTTPError("httpFailure",e,n);t.clientDelegates.get("internalError")(r)}))},this.fetchExperience=function(e,n,i,a){void 0===i&&(i=1),void 0===a&&(a=null);var s=a||(0,r.generateUUID)();t.api.fetch(e,s,n).then((function(e){if(e.error){var n=new o.RenderError(e.error,s);t.clientDelegates.get("internalError")(n)}else t.configCache.delete(s),t.clientDelegates.get("gotExperience")(e)})).catch((function(r){var c,u;if(null===(u=null===(c=null==r?void 0:r.response)||void 0===c?void 0:c.data)||void 0===u?void 0:u.error){var l=new o.RenderError(r.response.data.error,s);t.clientDelegates.get("internalError")(l)}else r.response&&408===r.response.status?t.getExperience(s):r.response&&r.response.status>=500&&i<3?(i+=1,t.fetchExperience(e,n,i,a)):(l=new o.HTTPError("httpFailure",s,r),t.clientDelegates.get("internalError")(l))}))},this.createExperience=function(e,n,i,a){void 0===a&&(a=0);var s=(0,r.generateUUID)();t.api.create(e,n,s,i).then((function(e){t.configCache.delete(s),t.clientDelegates.get("experienceCreated")(e)})).catch((function(r){if(r.response&&r.response.status>=500&&a<3)a+=1,t.createExperience(e,n,i,a);else{var c=new o.HTTPError("httpFailure",s,r);t.clientDelegates.get("internalError")(c)}}))},this.api=e.api,this.clientDelegates=e.clientDelegates}return e.prototype.killPoll=function(e){clearTimeout(this.pollTimeout);var t=new o.HTTPError("pollTimeout",e);this.clientDelegates.get("internalError")(t)},e.prototype.pollForExperience=function(e,t,n,r){var i=this;void 0===r&&(r=1),this.api.get(e).then((function(a){if(a.rendering)clearTimeout(i.pollTimeout),i.pollTimeout=setTimeout((function(){i.pollForExperience(e,t,n,r)}),5e3);else if(clearTimeout(i.pollTimeout),a.error){var s=new o.RenderError(a.error,e);i.clientDelegates.get("internalError")(s)}else t(a)})).catch((function(o){clearTimeout(i.pollTimeout),o.response&&o.response.status>=500&&r<3?(r+=1,i.pollForExperience(e,t,n,r)):n(o)}))},e}();t.default=i},8237:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6245),a=n(9669),s=n(4348),c=o(n(4776).hi,[]);t.default=function(e,t,n,o){var u,l=this;void 0===o&&(o=null),this.http=null,this.storyId="",this.compositionId="",this.getGAProperty=function(){return new Promise((function(e,t){l.http.get("/story/".concat(l.storyId,"/property")).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.get=function(e){return new Promise((function(t,n){l.http.get("/story/".concat(l.storyId,"/experience/").concat(e,"?r=").concat(Math.random())).then((function(e){t(e.data)})).catch((function(e){n(e)}))}))},this.fetch=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=(0,s.inventoryToFormData)(l.storyId,e,l.compositionId),i={onUploadProgress:function(e){return l.uploadProgress(e,n)}};return o.append("id",t),new Promise((function(e,t){l.http.post("/experience/fetch",o,i).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.create=function(e,t,n,r){void 0===r&&(r=null);var o=t?"/experience/render":"/experience",i=(0,s.inventoryToFormData)(l.storyId,e,l.compositionId),a={onUploadProgress:function(e){return l.uploadProgress(e,r)}};return i.append("id",n),new Promise((function(e,t){l.http.post(o,i,a).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.getAuthHeader=function(e){var t,n,r=c.jwt,o=c.hmac;try{return(0,i.default)(e),(t={})[r]=e,t}catch(t){return(n={})[o]=e,n}},this.uploadProgress=function(e,t){if(void 0===t&&(t=null),t){var n=e.loaded,r=e.total;t(Math.round(n/r*100))}};var p=c.version,f=c.currentVersion;this.storyId=n,this.compositionId=o,this.http=a.default.create({baseURL:c[t],headers:r(r({},this.getAuthHeader(e)),(u={},u[p]=f,u))})}},3998:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(8969),i=n(3447),a=n(9773),s=r(n(3199),[]),c=n(4776).D_,u=function(){function e(){}return e.logWarning=function(e,t){console.warn("IMPOSIUM\n".concat(s[e][t]))},e.trapError=function(t,n,r){void 0===r&&(r=null),t=t.log?t:new i.UncaughtError("generic",t),n&&t.setStoryId(n),r&&r(t),t.log(),e.hub.run((function(e){e.configureScope((function(r){r.setTag("type",t.type),r.setTag("version",t.version),r.setTag("storyId",n||"<not_set>"),t.experienceId&&r.setTag("experienceId",t.experienceId),t.axiosError&&("object"==typeof t.axiosError.response?r.setExtra("response",t.axiosError.response):"object"==typeof t.axiosError.request?(r.setExtra("request",t.axiosError.request),r.setExtra("reuqestConfig",t.axiosError.config)):(r.setExtra("axiosErrorMessage",t.axiosError.message),r.setExtra("reuqestConfig",t.axiosError.config))),t.closeEvent&&r.setExtra("socketCloseEvent",{code:t.closeEvent.code,type:t.closeEvent.type,timestamp:t.closeEvent.timeStamp,wsUrl:t.closeEvent.target.url,wsBufferedAmount:t.closeEvent.target.bufferedAmount}),e.captureException(t)}))}))},e.sentryClient=new o.BrowserClient({debug:!1,dsn:c.dsn,integrations:[new o.Integrations.UserAgent],beforeSend:function(t){return e.cleanDucktype(t)},release:"".concat(c.projectName,"@").concat(a.version)}),e.hub=new o.Hub(e.sentryClient),e.cleanDucktype=function(e){return void 0===e.extra||e.extra.Error&&(delete e.extra.Error.log,delete e.extra.Error.logHeader,delete e.extra.Error.setStoryId,e.extra.Error.axiosError&&delete e.extra.Error.axiosError,e.extra.Error.closeEvent&&delete e.extra.Error.closeEvent),e},e}();t.default=u},3447:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UncaughtError=t.HTTPError=t.PlayerConfigurationError=t.ClientConfigurationError=t.ModerationError=t.RenderError=t.ImposiumError=void 0;var a=n(9773),s=i(n(4168),[]),c="moderation",u="clientConfiguration",l="playerConfiguration",p="network",f="uncaught",d=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="",o.version=a.version,o.storyId="<not_set>",o.logHeader="[IMPOSIUM ERROR]",o.setStoryId=function(e){o.storyId=e},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.type=r,o}return o(t,e),t}(Error);t.ImposiumError=d;var h=function(e){function t(n,r){var o=e.call(this,n,"render")||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Error rendering dynamic video\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(d);t.RenderError=h;var v=function(e){function t(n,r){var o=e.call(this,s.moderation[n],c)||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Failed to pass moderation\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(d);t.ModerationError=v;var y=function(e){function t(n,r){var o=e.call(this,s.clientConfiguration[n],u)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid client configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.ClientConfigurationError=y;var g=function(e){function t(n,r){var o=e.call(this,s.playerConfiguration[n],l)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid player configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.PlayerConfigurationError=g;var m=function(e){function t(n,r,o){var i,a,c=e.call(this,s.network[n],p)||this;return c.experienceId=null,c.axiosError=null,c.log=function(){console.error("".concat(c.logHeader,"\n \nReason: HTTP error\n \nMessage: ").concat(c.message,"\n \nExperience ID: ").concat(c.experienceId,"\n \nNetwork Error: ").concat(c.axiosError," "))},Error.captureStackTrace&&Error.captureStackTrace(c,t),(null===(a=null===(i=null==o?void 0:o.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.error)&&(c.message=o.response.data.error),c.experienceId=r||"<not_set>",c.axiosError=o||"<not_set>",c}return o(t,e),t}(d);t.HTTPError=m;var _=function(e){function t(n,r){var o=e.call(this,s.uncaught[n],f)||this;return o.uncaughtError=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Unknown\n \nMessage: ").concat(o.message,"\n \nError: "),o.uncaughtError)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.uncaughtError=r,o}return o(t,e),t}(d);t.UncaughtError=_},4479:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3998),s=n(9669),c=n(4348),u=o(n(4776).co,[]),l=function(){function e(){}return e.gaPlacement="",e.initialize=function(t){try{var n=new Date,r=JSON.parse(localStorage.getItem(e.CACHE_KEY))||{};if(e.gaPlacement=t,r.uuid&&r.expiry>=(new Date).valueOf())return void(e.CLIENT_ID=r.uuid);r.uuid=(0,c.generateUUID)(),r.expiry=n.setFullYear(n.getFullYear()+2),localStorage.setItem(e.CACHE_KEY,JSON.stringify(r)),e.CLIENT_ID=r.uuid}catch(t){e.CLIENT_ID=(0,c.generateUUID)()}},e.send=function(t){var n,o,c=e.BASE_URL,u=document.referrer;t=r({v:"1",ds:e.gaPlacement,cid:e.CLIENT_ID,z:"".concat(Math.round((new Date).getTime()/1e3))},t),""!==u&&(t.dr=u);try{for(var l=i(Object.keys(t)),p=l.next();!p.done;p=l.next()){var f=p.value,d=c===e.BASE_URL?"?":"&";c+="".concat(d).concat(f,"=").concat(encodeURIComponent(t[f]))}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}s.default.get(c).catch((function(){a.default.logWarning("analytics","requestFailed")}))},e.BASE_URL=u.baseUrl,e.CACHE_KEY=u.cacheKey,e.CLIENT_ID=u.cidPlaceholder,e}();t.default=l},4348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inventoryToFormData=t.generateUUID=t.calculateAverageMbps=t.calculateMbps=t.cloneWithKeys=t.keyExists=t.isFunc=t.inRangeNumeric=t.prepConfig=void 0,t.prepConfig=function(e,t){var n=Object.keys(t);for(var r in e)-1===n.indexOf(r)&&delete e[r]},t.inRangeNumeric=function(e,t,n){return(e-t)*(e-n)<=0},t.isFunc=function(e){return"[object Function]"===Object.prototype.toString.call(e)},t.keyExists=function(e,t){return~Object.keys(e).map((function(t){return e[t]})).indexOf(t)},t.cloneWithKeys=function(e){return Object.keys(e).reduce((function(e,t){return e[t]=null,e}),{})},t.calculateMbps=function(e,t){return 8*t/(((new Date).getTime()-e)/1e3)/Math.pow(1024,2)},t.calculateAverageMbps=function(e){var t=e.reduce((function(e,t){return e+t}));return parseFloat((t/e.length).toFixed(2))},t.generateUUID=function(){var e=window.performance,t=(new Date).getTime();return void 0!==e&&"function"==typeof e.now&&(t+=e.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:7&n|8).toString(16)}))},t.inventoryToFormData=function(e,t,n){void 0===n&&(n=null);var r=new FormData;for(var o in r.append("story_id",e),n&&r.append("composition_id",n),t)if(t[o]){var i=t[o];if(i&&"file"===i.type){var a=i.files;a.length>0?(t[o]="",r.append(o,a[0])):t[o]=""}else i&&i instanceof File&&(t[o]="",r.append(o,i,i.name));r.append("inventory[".concat(o,"]"),t[o])}return r}},9773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printVersion=t.version=void 0,t.version="3.2.2",t.printVersion=function(){console.log("%cPowered By%c Imposium%c v".concat("3.2.2","%c https://imposium.com"),"text-transform: uppercase; padding: 5px 0px 5px 5px; background-color: black; color: white;","text-transform: uppercase; padding: 5px 0px 5px 0px; background-color: black; color: #a1b83a;","padding: 5px 5px 5px 0px; background-color: black; color: white;","padding: 5px 5px 5px 0px;")}},1808:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,t)||this;return n.experienceGenerated=function(e){var t=e.id;n.setExperienceId(t)},n}return o(t,e),t}(n(917).default);t.default=i},909:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var s=n(9669),c=n(917),u=n(3998),l=n(3447),p=n(4348),f=n(4776).aq,d=window.hls,h=function(e){function t(n,r,o){void 0===o&&(o=f.defaultConfig);var c=e.call(this,n)||this;c.eventDelegateRefs={play:{callback:null,native:!0},pause:{callback:null,native:!0},ended:{callback:null,native:!0},error:{callback:null,native:!0},seeked:{callback:null,native:!0},timeupdate:{callback:null,native:!0},volumechanged:{callback:null,native:!0},muted:{callback:null,native:!1},controlsset:{callback:null,native:!1}},c.hlsSupport="",c.hlsPlayer=null,c.imposiumPlayerConfig=null,c.init=function(e){var t=f.defaultConfig;for(var n in(0,p.prepConfig)(e,t),c.imposiumPlayerConfig=i(i({},t),e),c.imposiumPlayerConfig)c.imposiumPlayerConfig[n]&&(c.node[n]=c.imposiumPlayerConfig[n])},c.experienceGenerated=function(e){var t=c.imposiumPlayerConfig.qualityOverride,n=e.id,r=e.output,o=r.videos,i=r.images,a="";c.setExperienceId(n),i&&i.hasOwnProperty("poster")&&(a=i.poster),t?c.doQualityOverride(o,a):c.doQualityAssessment(o,a)},c.on=function(e,n){var r=c,o=r.storyId,i=r.eventDelegateRefs;try{if(!(0,p.isFunc)(n))throw new l.PlayerConfigurationError("invalidCallbackType",e);if(!(0,p.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var a=i[e];a.callback=n,a.native&&c.node.addEventListener(e,a.callback)}catch(e){u.default.trapError(e,o)}},c.off=function(e){var n=c,r=n.storyId,o=n.eventDelegateRefs;try{if(!(0,p.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var i=o[e];i.native&&c.node.removeEventListener(e,i.callback),i.callback=null}catch(e){u.default.trapError(e,r)}},c.play=function(){c.node.play().catch((function(){console.error("Error playing video")}))},c.pause=function(){c.node.pause()},c.getPlaybackState=function(){return c.node.paused?"paused":"playing"},c.getPosition=function(){return c.node.currentTime},c.getDuration=function(){return c.node.duration},c.seek=function(e){var t=c.node.duration;isNaN(t)?u.default.logWarning("playerFailure","seekNotReady"):(e=Math.floor(e),(0,p.inRangeNumeric)(e,0,t)?c.node.currentTime=e:u.default.logWarning("playerFailure","invalidSeekTime"))},c.getMute=function(){return c.node.muted},c.setMute=function(e){var t=c.eventDelegateRefs.muted.callback;c.node.muted=e,t&&t()},c.getVolume=function(){return c.node.volume},c.setVolume=function(e){var t=f.volumeMin,n=f.volumeMax;e=Math.round(10*e)/10,(0,p.inRangeNumeric)(e,t,n)?c.node.volume=e:u.default.logWarning("playerFailure","invalidVolume")},c.getControls=function(){return c.node.controls},c.setControls=function(e){var t=c.eventDelegateRefs.controlsset;c.node.controls=e,t&&t.callback()},c.replay=function(){c.pauseIfPlaying(),c.node.currentTime=0,c.play()},c.remove=function(){var e,t,n=c.eventDelegateRefs,r=f.defaultConfig;c.pauseIfPlaying();try{for(var o=a(Object.keys(n)),s=o.next();!s.done;s=o.next()){var u=s.value;c.off(n[u])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}c.imposiumPlayerConfig=i({},r),c.node=null},c.setupHls=function(){var e=t.hlsSupportLevels,n=e.NATIVE,r=e.HLSJS;c.node.canPlayType(t.STREAM_TYPE)?c.hlsSupport=n:void 0!==d&&d.isSupported()&&(c.hlsSupport=r)},c.doQualityOverride=function(e,t){var n=c.storyId,r=c.imposiumPlayerConfig.qualityOverride;try{if(!e.hasOwnProperty(r))throw new l.PlayerConfigurationError("badQualityOverride",null);c.setPlayerData(e[r].url,!0,t)}catch(e){u.default.trapError(e,n)}},c.doQualityAssessment=function(e,n){var r=c.hlsSupport,o=t.compressionLevels.STREAM;if(e.hasOwnProperty(o)&&r)c.setPlayerData(e[o].url,!0,n);else{var i=Object.keys(e);1===i.length?c.setPlayerData(e[i[0]].url,!1,n):c.checkBandwidth(e).then((function(t){c.setPlayerData(e[t].url,!1,n)})).catch((function(t){c.setPlayerData(e[t].url,!1,n)}))}},c.sampleBandwidth=function(){var e="".concat(t.TEST_IMAGE,"?bust=").concat(Math.random()),n={responseType:"blob",timeout:1500};return new Promise((function(t,r){var o=(new Date).getTime();s.default.get(e,n).then((function(e){var n=e.data.size;t((0,p.calculateMbps)(o,n))})).catch((function(e){r(e)}))}))},c.checkBandwidth=function(e){for(var n=t.BANDWIDTH_SAMPLES,r=[],o=Object.keys(e).filter((function(e){return"m3u8"!==e})),i=0;i<n;i++)r.push(c.sampleBandwidth());return new Promise((function(t,n){Promise.all(r).then((function(n){var r=(0,p.calculateAverageMbps)(n),i={};o.forEach((function(t){var n=e[t],r=n.width,o=n.height;i[r*o/1e5]=t}));var a=Object.keys(i).map((function(e){return parseFloat(e)})).reduce((function(e,t){return Math.abs(e-r)<Math.abs(t-r)?e:t}));t(i[a])})).catch((function(){n(o.slice(-1).pop())}))}))},c.setPlayerData=function(e,n,r){void 0===r&&(r=null);var o=c.hlsSupport,i=t.hlsSupportLevels.HLSJS;n&&o===i?(c.hlsPlayer&&c.hlsPlayer.destroy(),c.hlsPlayer=new d,c.hlsPlayer.attachMedia(c.node),c.hlsPlayer.loadSource(e)):c.node.src=e,r&&(c.node.poster=r)},c.pauseIfPlaying=function(){c.node.paused||c.node.pause()};var h=!(!r||!r.clientConfig);try{if(!h)throw new l.PlayerConfigurationError("badClient",null);n instanceof HTMLVideoElement&&(r.bindPlayer(c),c.init(o),c.setupHls())}catch(e){var v=h?r.clientConfig.storyId:"";u.default.trapError(e,v)}return c}return o(t,e),t.events={PLAY:"play",PAUSE:"pause",COMPLETE:"ended",ERROR:"error",SEEK:"seeked",TIME:"timeupdate",VOLUME:"volumechange",MUTE:"muted",CONTROLS:"controlsset"},t.STREAM_TYPE=f.streamType,t.BANDWIDTH_SAMPLES=f.bandwidthSamples,t.TEST_IMAGE=f.testImage,t.bandwidthRatings={LOW:f.bandwidth.low,MID:f.bandwidth.mid},t.compressionLevels={STREAM:f.compression.stream,LOW:f.compression.low,MID:f.compression.mid,HIGH:f.compression.high},t.hlsSupportLevels={NATIVE:f.hlsSupportLevels.native,HLSJS:f.hlsSupportLevels.hlsjs},t}(c.default);t.default=h},917:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var i=n(3998),a=n(4479),s=n(3447),c=n(4776).aq,u=function(){function e(t){var n,c,u=this;this.node=null,this.storyId="",this.gaProperty="",this.playbackHandlers=new Map([["play",function(){return u.onPlay()}],["pause",function(){return u.onPause()}],["ended",function(){return u.onEnded()}],["loaded",function(){return u.onLoad()}],["volumechange",function(){return u.onVolumeChange()}]]),this.queuedGACalls=[],this.experienceId="",this.prevPlaybackEvent=0,this.playbackInterval=-1,this.muted=!1,this.remove=function(){var e,t;try{for(var n=r(u.playbackHandlers.entries()),i=n.next();!i.done;i=n.next()){var a=o(i.value,2),s=a[0],c=a[1];u.node.removeEventListener(s,c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},this.setGaProperty=function(e){for(u.gaProperty&&u.gaProperty!==e&&u.queuedGACalls.length>0&&(u.queuedGACalls=[]),u.gaProperty=e;u.queuedGACalls.length;)a.default.send(u.queuedGACalls.pop())},this.setStoryId=function(e){u.storyId=e},this.setExperienceId=function(e){u.experienceId=e},this.emitGAEventAction=function(t){var n=e.GA_EMIT_TYPE,r=e.GA_EMIT_CATEGORY,o=u,i={t:n,tid:o.gaProperty,ec:r,el:o.experienceId,ea:t};u.gaProperty?a.default.send(i):u.queuedGACalls.push(i)},this.onLoad=function(){u.emitGAEventAction("loaded")},this.onVolumeChange=function(){!u.muted&&u.node.muted&&(u.emitGAEventAction("muted"),u.muted=!0),u.muted&&!u.node.muted&&(u.emitGAEventAction("unmuted"),u.muted=!1)},this.onPlay=function(){var t=window.setInterval;clearInterval(u.playbackInterval),u.playbackInterval=t((function(){return u.checkPlayback()}),e.INTERVAL_RATE),u.emitGAEventAction("play")},this.onPause=function(){clearInterval(u.playbackInterval),u.node.duration!==u.node.currentTime&&u.emitGAEventAction("pause")},this.onEnded=function(){clearInterval(u.playbackInterval),u.emitGAEventAction("playback_1"),u.prevPlaybackEvent=0},this.checkPlayback=function(){if(u.node){var t=u.node,n=t.currentTime/t.duration,r=e.PLAYBACK_EVENTS[u.prevPlaybackEvent];n>r&&(u.emitGAEventAction("playback_".concat(r)),u.prevPlaybackEvent++)}else clearInterval(u.playbackInterval)};try{if(!(t instanceof HTMLVideoElement))throw new s.PlayerConfigurationError("invalidPlayerRef",null);try{for(var l=r(this.playbackHandlers.entries()),p=l.next();!p.done;p=l.next()){var f=o(p.value,2),d=f[0],h=f[1];t.addEventListener(d,h)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(c=l.return)&&c.call(l)}finally{if(n)throw n.error}}this.node=t,this.muted=t.muted}catch(e){i.default.trapError(e,this.storyId)}}return e.INTERVAL_RATE=c.checkPlaybackRateMs,e.PLAYBACK_EVENTS=c.playbackEvents,e.GA_EMIT_TYPE="event",e.GA_EMIT_CATEGORY="video_player",e}();t.default=u},4168:e=>{"use strict";e.exports=JSON.parse('{"moderation":{"rejection":"This experience was rejected."},"clientConfiguration":{"badConfig":"Your Imposium configuration is an invalid type.","storyId":"An undefined or invalid storyId was set in your Imposium configuration.","accessToken":"An undefined or invalid accessToken was set in your Imposium configuration.","invalidEventName":"Invalid client event name.","invalidCallbackType":"The callback reference set for this client event is not of type function.","badConfigOnGet":"You cannot call client.getExperience(...) without using the Imposium player or setting the GOT_EXPERIENCE event.","bagConfigOnPostRender":"You cannot call client.createExperience({...}) without using the Imposium player or setting the GOT_EXPERIENCE event.","badConfigOnPostNoRender":"You cannot call client.createExperience({...}, false) without setting the EXPERIENCE_CREATED event."},"playerConfiguration":{"badClient":"You must provide a valid Imposium client reference to the player.","invalidPlayerRef":"No reference to an HTML5 video element was detected.","invalidEventName":"Invalid player event name.","invalidCallbackType":"The callback reference set for this player event is not of type function.","eventNotConfigured":"You cannot invoke this player event without a callback set.","badQualityOverride":"The quality specified does not exist for this experience."},"network":{"httpFailure":"Unable to process request to the Imposium API.","pollTimeout":"Polling timeout exceeded.","tcpFailure":"Socket connection failed while processing the experience.","errorOverTcp":"An error occured on the Imposium web servers while processing the experience.","messageParseFailure":"Message data from Imposium was malformed."},"uncaught":{"generic":"Something unexpected went wrong."}}')},4776:e=>{"use strict";e.exports=JSON.parse('{"Lp":{"uuidLength":36,"defaultConfig":{"accessToken":"","storyId":"","compositionId":"","environment":"production","gaPlacement":"web"},"emptyHistory":{"prevExperienceId":"","prevMessage":""},"clientEmits":{"adding":"Adding job to queue...","added":"Added job to queue...","finishedPolling":"Video ready for viewing."},"eventNames":{"EXPERIENCE_CREATED":"EXPERIENCE_CREATED","UPLOAD_PROGRESS":"UPLOAD_PROGRESS","GOT_EXPERIENCE":"GOT_EXPERIENCE","STATUS_UPDATE":"STATUS_UPDATE","ERROR":"ERROR"}},"hi":{"production":"https://api.imposium.com","staging":"https://api.staging.imposium.com","local":"https://api","currentVersion":"2.0.0","version":"X-Imposium-Api-Version","hmac":"X-Imposium-Access-Key","jwt":"Authorization"},"D_":{"dsn":"https://17ffe982179e4d60a1df2062198d7ade@sentry.io/1411258","projectName":"imposium-js-sdk"},"co":{"exceptionProp":"UA-123315989-1","baseUrl":"https://ssl.google-analytics.com/collect","lsLookup":"imposium_js_ga_cid","gaPropPlaceholder":"[id_placeholder]","cidPlaceholder":"[cid_placeholder]"},"aq":{"defaultConfig":{"volume":1,"preload":"auto","loop":false,"muted":false,"autoLoad":true,"autoPlay":true,"controls":true,"crossOrigin":"anonymous","qualityOverride":null},"testImage":"https://cdn.imposium.com/SampleJPGImage_1mb.jpg","playbackEvents":[0,0.25,0.5,0.75],"checkPlaybackRateMs":100,"volumeMin":0,"volumeMax":1,"bandwidth":{"low":2.4,"mid":8},"compression":{"stream":"m3u8","low":"mp4_480","mid":"mp4_720","high":"mp4_1080"},"bandwidthSamples":5,"hlsSupportLevels":{"native":"native","hlsjs":"hls-js"},"streamType":"application/vnd.apple.mpegurl"}}')},3199:e=>{"use strict";e.exports=JSON.parse('{"client":{"nodeAnalytics":"Sorry, analytics are not currently available in NodeJS."},"network":{"tcpFailure":"Unable to reach Imposium while processing this experience, retrying..."},"playerFailure":{"seekNotReady":"Seek can\'t be called until the video metadata has loaded, please try again shortly.","invalidSeekTime":"Could not seek to time outside of current video duration.","invalidVolume":"Could not set volume outside of range (double) 0.0 - 1.0."},"analytics":{"requestFailed":"Failed to record Imposium metric."}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(2081)})()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Imposium",[],t):"object"==typeof exports?exports.Imposium=t():e.Imposium=t()}(self,(function(){return(()=>{var e={8969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BrowserClient:()=>Gt,Hub:()=>se,Integrations:()=>dn,SDK_NAME:()=>ln,SDK_VERSION:()=>je,Scope:()=>j,Severity:()=>c,Status:()=>u,Transports:()=>i,addBreadcrumb:()=>_e,addGlobalEventProcessor:()=>I,captureEvent:()=>ge,captureException:()=>ve,captureMessage:()=>ye,close:()=>cn,configureScope:()=>me,defaultIntegrations:()=>en,eventFromException:()=>rt,eventFromMessage:()=>ot,flush:()=>sn,forceLoad:()=>on,getCurrentHub:()=>le,getHubFromCarrier:()=>fe,init:()=>tn,injectReportDialog:()=>Tt,lastEventId:()=>rn,makeMain:()=>ue,onLoad:()=>an,setContext:()=>Ee,setExtra:()=>we,setExtras:()=>be,setTag:()=>Se,setTags:()=>xe,setUser:()=>Oe,showReportDialog:()=>nn,startTransaction:()=>Te,withScope:()=>ke,wrap:()=>un});var r={};n.r(r),n.d(r,{FunctionToString:()=>zt,InboundFilters:()=>Yt});var o={};n.r(o),n.d(o,{Breadcrumbs:()=>Ht,Dedupe:()=>$t,GlobalHandlers:()=>Xt,LinkedErrors:()=>Kt,TryCatch:()=>Vt,UserAgent:()=>Zt});var i={};n.r(i),n.d(i,{BaseTransport:()=>mt,FetchTransport:()=>_t,XHRTransport:()=>Et});var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c,u,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function h(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return w(e,Error)}}function v(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function y(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return"undefined"!=typeof Event&&w(e,Event)}function b(e){return"undefined"!=typeof Element&&w(e,Element)}function x(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function w(e,t){try{return e instanceof t}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(c||(c={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(c||(c={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(u||(u={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(u||(u={}));var S,O,k=n(1170),T=function(){function e(e){var t=this;this._state="PENDING",this._handlers=[],this._resolve=function(e){t._setResult("RESOLVED",e)},this._reject=function(e){t._setResult("REJECTED",e)},this._setResult=function(e,n){"PENDING"===t._state&&(x(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if("PENDING"!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||("RESOLVED"===t._state&&e.onfulfilled&&e.onfulfilled(t._value),"REJECTED"===t._state&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0==(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),P=n(2991),j=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=d(t._breadcrumbs),n._tags=l({},t._tags),n._extra=l({},t._extra),n._contexts=l({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=d(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=l(l({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=l(l({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=l(l({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=l(l({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=l(l({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=l(l({},this._tags),t._tags),this._extra=l(l({},this._extra),t._extra),this._contexts=l(l({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):_(t)&&(t=t,this._tags=l(l({},this._tags),t.tags),this._extra=l(l({},this._extra),t.extra),this._contexts=l(l({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=l({timestamp:(0,k.yW)()},e);return this._breadcrumbs=d(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=l(l({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=l(l({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=l(l({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=l(l({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=l({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=l({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(d(R(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new T((function(i,a){var s=e[r];if(null===t||"function"!=typeof s)i(t);else{var c=s(l({},t),n);x(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function R(){var e=(0,P.R)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function I(e){R().push(e)}function C(){var e=(0,P.R)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function A(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function N(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function D(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function L(e,t){var n;if(e.exception&&e.exception.values){var r=e.exception.values[0],o=r.mechanism;if(r.mechanism=l(l(l({},{type:"generic",handled:!0}),o),t),t&&"data"in t){var i=l(l({},null===(n=o)||void 0===n?void 0:n.data),t.data);r.mechanism.data=i}}}function U(e){var t;if(null===(t=e)||void 0===t?void 0:t.__sentry_captured__)return!0;try{Object.defineProperty(e,"__sentry_captured__",{value:!0})}catch(e){}return!1}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(S||(S={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(O||(O={}));var M=(0,P.R)(),F="Sentry Logger ";function q(e){var t=(0,P.R)();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}var B=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.log(F+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.warn(F+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.error(F+"[Error]: "+e.join(" "))}))},e}();M.__SENTRY__=M.__SENTRY__||{};var H=M.__SENTRY__.logger||(M.__SENTRY__.logger=new B),G=n(1422);function W(e,t){try{for(var n=e,r=[],o=0,i=0,a=" > ".length,s=void 0;n&&o++<5&&!("html"===(s=Y(n,t))||o>1&&i+r.length*a+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function Y(e,t){var n,r,o,i,a,s,c,u=e,l=[];if(!u||!u.tagName)return"";l.push(u.tagName.toLowerCase());var p=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return u.getAttribute(e)})).map((function(e){return[e,u.getAttribute(e)]})):null;if(null===(r=p)||void 0===r?void 0:r.length)p.forEach((function(e){l.push("["+e[0]+'="'+e[1]+'"]')}));else if(u.id&&l.push("#"+u.id),(o=u.className)&&g(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)l.push("."+i[c]);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)a=f[c],(s=u.getAttribute(a))&&l.push("["+a+'="'+s+'"]');return l.join("")}var z=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),J="<anonymous>";function V(e){try{return e&&"function"==typeof e&&e.name||J}catch(e){return J}}function X(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function K(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function $(e,t){return!!g(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}function Q(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function Z(e){if(h(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(E(e)){var o=e,i={};i.type=o.type;try{i.target=b(o.target)?W(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=b(o.currentTarget)?W(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var a in"undefined"!=typeof CustomEvent&&w(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a]);return i}return e}function ee(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,o=re(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?ee(e,t-1,n):o}function te(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":_(r=e)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+V(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var r}function ne(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new z),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=te(e);return m(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=te(t,e);if(m(o))return o;var i=Z(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a[s]=ne(s,i[s],n-1,r));return r.unmemoize(t),a}function re(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return ne(e,n,t)})))}catch(e){return"**non-serializable**"}}function oe(e,t){void 0===t&&(t=40);var n=Object.keys(Z(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return X(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:X(o,t)}return""}function ie(e){var t,n;if(_(e)){var r=e,o={};try{for(var i=p(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=ie(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(ie):e}var ae=function(){function e(e){this.errors=0,this.sid=C(),this.duration=0,this.status=S.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,k.ph)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,k.ph)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:C()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===S.Ok?this.update({status:S.Exited}):this.update()},e.prototype.toJSON=function(){return ie({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:ie({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),se=function(){function e(e,t,n){void 0===t&&(t=new j),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=j.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=C(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,l(l({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=C(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,l(l({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=C();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,l(l({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var p=(0,k.yW)(),f=l({timestamp:p},e),d=s?q((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,u)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=ue(this);try{e(this)}finally{ue(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return H.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,o;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(o=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===o||o.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,s=((0,P.R)().navigator||{}).userAgent,c=new ae(l(l(l({release:i,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var u=n.getSession&&n.getSession();u&&u.status===S.Ok&&u.update({status:S.Exited}),this.endSession(),n.setSession(c)}return c},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,d(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ce(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);H.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function ce(){var e=(0,P.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ue(e){var t=ce(),n=fe(t);return de(t,e),n}function le(){var e=ce();return pe(e)&&!fe(e).isOlderThan(4)||de(e,new se),(0,G.KV)()?function(e){var t,n,r;try{var o=null===(r=null===(n=null===(t=ce().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!o)return fe(e);if(!pe(o)||fe(o).isOlderThan(4)){var i=fe(e).getStackTop();de(o,new se(i.client,j.clone(i.scope)))}return fe(o)}catch(t){return fe(e)}}(e):fe(e)}function pe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function fe(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new se),e.__SENTRY__.hub}function de(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function he(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=le();if(r&&r[e])return r[e].apply(r,d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ve(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return he("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ye(e,t){var n;try{throw new Error(e)}catch(e){n=e}return he("captureMessage",e,"string"==typeof t?t:void 0,l({originalException:e,syntheticException:n},"string"!=typeof t?{captureContext:t}:void 0))}function ge(e){return he("captureEvent",e)}function me(e){he("configureScope",e)}function _e(e){he("addBreadcrumb",e)}function Ee(e,t){he("setContext",e,t)}function be(e){he("setExtras",e)}function xe(e){he("setTags",e)}function we(e,t){he("setExtra",e,t)}function Se(e,t){he("setTag",e,t)}function Oe(e){he("setUser",e)}function ke(e){he("withScope",e)}function Te(e,t){return he("startTransaction",l({},e),t)}var Pe,je="6.16.0";!function(e){e.BeforeSend="before_send",e.EventProcessor="event_processor",e.NetworkError="network_error",e.QueueOverflow="queue_overflow",e.RateLimitBackoff="ratelimit_backoff",e.SampleRate="sample_rate"}(Pe||(Pe={}));var Re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}),Ie=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Re(r,n.prototype),r}return s(t,e),t}(Error),Ce=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Ae=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=Ce.exec(e);if(!t)throw new Ie("Invalid Dsn");var n=f(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],c=n[4],u=void 0===c?"":c,l="",p=n[5],d=p.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),p=d.pop()),p){var h=p.match(/^\d+/);h&&(p=h[0])}this._fromComponents({host:s,pass:a,path:l,projectId:p,port:u,protocol:r,publicKey:o})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Ie("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new Ie("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Ie("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Ie("Invalid Dsn: Invalid port "+this.port)},e}(),Ne=[];function De(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var Le="Not capturing exception because it's already been captured.",Ue=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Ae(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!U(e)){var o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o}H.log(Le)},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,a=m(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r;if(!(null===(r=t)||void 0===r?void 0:r.originalException)||!U(t.originalException)){var o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){o=e}))),o}H.log(Le)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?H.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):H.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e,t;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(e=this._options,t={},function(e){var t=e.defaultIntegrations&&d(e.defaultIntegrations)||[],n=e.integrations,r=d(De(t));Array.isArray(n)?r=d(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),De(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name})),i="Debug";return-1!==o.indexOf(i)&&r.push.apply(r,d(r.splice(o.indexOf(i),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Ne.indexOf(e.name)&&(e.setupOnce(I,le),Ne.push(e.name),H.log("Integration installed: "+e.name))}(e)})),Object.defineProperty(t,"initialized",{value:!0}),t))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return H.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,i=!1,a=t.exception&&t.exception.values;if(a){i=!0;try{for(var s=p(a),c=s.next();!c.done;c=s.next()){var u=c.value.mechanism;if(u&&!1===u.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var f=e.status===S.Ok;(f&&0===e.errors||f&&o)&&(e.update(l(l({},o&&{status:S.Crashed}),{errors:e.errors||Number(i||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new T((function(n){var r=0,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=l(l({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:C()),timestamp:e.timestamp||(0,k.yW)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=j.clone(s).update(n.captureContext));var c=T.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=l(l(l(l(l({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return l(l({},e),e.data&&{data:re(e.data,t)})}))}),e.user&&{user:re(e.user,t)}),e.contexts&&{contexts:re(e.contexts,t)}),e.extra&&{extra:re(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var r=this.getOptions()._experiments;return(void 0===r?{}:r).ensureNoCircularStructures?re(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=X(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=X(s.value,a));var c=e.request;c&&c.url&&(c.url=X(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=d(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){H.error(e)}))},e.prototype._processEvent=function(e,t,n){var r,o,i=this,a=this.getOptions(),s=a.beforeSend,c=a.sampleRate,u=this.getTransport();if(!this._isEnabled())return T.reject(new Ie("SDK not enabled, will not capture event."));var l="transaction"===e.type;return!l&&"number"==typeof c&&Math.random()>c?(null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,Pe.SampleRate,"event"),T.reject(new Ie("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(e,n,t).then((function(n){var r,o;if(null===n)throw null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,Pe.EventProcessor,e.type||"event"),new Ie("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||l||!s)return n;var a=s(n,t);return i._ensureBeforeSendRv(a)})).then((function(t){var r,o;if(null===t)throw null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,Pe.BeforeSend,e.type||"event"),new Ie("`beforeSend` returned `null`, will not send event.");var a=n&&n.getSession&&n.getSession();return!l&&a&&i._updateSessionFromEvent(a,t),i._sendEvent(t),t})).then(null,(function(e){if(e instanceof Ie)throw e;throw i.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ie("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(x(e))return e.then((function(e){if(!_(e)&&null!==e)throw new Ie(t);return e}),(function(e){throw new Ie("beforeSend rejected with "+e)}));if(!_(e)&&null!==e)throw new Ie(t);return e},e}(),Me=function(){function e(){}return e.prototype.sendEvent=function(e){return T.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})},e.prototype.close=function(e){return T.resolve(!0)},e}(),Fe=function(){function e(e){this._options=e,this._options.dsn||H.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Ie("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Ie("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){H.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){H.error("Error while sending session: "+e)})):H.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Me},e}();function qe(){if(!("fetch"in(0,P.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Be(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function He(){if(!qe())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Ge="?",We=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ye=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ze=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Je=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ve=/\((\S*)(?::(\d+))(?::(\d+))\)/,Xe=/Minified React error #\d+;/i;function Ke(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Xe.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=e.stacktrace.split("\n"),i=[],a=0;a<o.length;a+=2){var s=null;(t=n.exec(o[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(o[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func=Ge),i.push(s))}return i.length?{message:Ze(e),name:e.name,stack:i}:null}(e))return Qe(t,n)}catch(e){}try{if(t=function(e){var t,n;if(!e||!e.stack)return null;for(var r,o,i,a=[],s=e.stack.split("\n"),c=0;c<s.length;++c){if(o=We.exec(s[c])){var u=o[2]&&0===o[2].indexOf("native");o[2]&&0===o[2].indexOf("eval")&&(r=Ve.exec(o[2]))&&(o[2]=r[1],o[3]=r[2],o[4]=r[3]);var l=o[2]&&0===o[2].indexOf("address at ")?o[2].substr("address at ".length):o[2],p=o[1]||Ge;p=(t=f($e(p,l),2))[0],i={url:l=t[1],func:p,args:u?[o[2]]:[],line:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}else if(o=ze.exec(s[c]))i={url:o[2],func:o[1]||Ge,args:[],line:+o[3],column:o[4]?+o[4]:null};else{if(!(o=Ye.exec(s[c])))continue;o[3]&&o[3].indexOf(" > eval")>-1&&(r=Je.exec(o[3]))?(o[1]=o[1]||"eval",o[3]=r[1],o[4]=r[2],o[5]=""):0!==c||o[5]||void 0===e.columnNumber||(a[0].column=e.columnNumber+1),l=o[3],p=o[1]||Ge,p=(n=f($e(p,l),2))[0],i={url:l=n[1],func:p,args:o[2]?o[2].split(","):[],line:o[4]?+o[4]:null,column:o[5]?+o[5]:null}}!i.func&&i.line&&(i.func=Ge),a.push(i)}return a.length?{message:Ze(e),name:e.name,stack:a}:null}(e))return Qe(t,n)}catch(e){}return{message:Ze(e),name:e&&e.name,stack:[],failed:!0}}var $e=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ge,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Qe(e,t){try{return l(l({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Ze(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function et(e){var t=nt(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function tt(e){return{exception:{values:[et(e)]}}}function nt(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function rt(e,t,n){var r=it(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return L(r),r.level=c.Error,n&&n.event_id&&(r.event_id=n.event_id),T.resolve(r)}function ot(e,t,n,r){void 0===n&&(n=c.Info);var o=at(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),T.resolve(o)}function it(e,t,n){var r,o;if(void 0===n&&(n={}),v(e)&&e.error)return tt(Ke(e=e.error));if(y(e)||(o=e,"[object DOMException]"===Object.prototype.toString.call(o))){var i=e;if("stack"in e)r=tt(Ke(e));else{var a=i.name||(y(i)?"DOMError":"DOMException"),s=i.message?a+": "+i.message:a;D(r=at(s,t,n),s)}return"code"in i&&(r.tags=l(l({},r.tags),{"DOMException.code":""+i.code})),r}return h(e)?r=tt(Ke(e)):_(e)||E(e)?(L(r=function(e,t,n){var r={exception:{values:[{type:E(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+oe(e)}]},extra:{__serialized__:ee(e)}};if(t){var o=nt(Ke(t).stack);r.stacktrace={frames:o}}return r}(e,t,n.rejection),{synthetic:!0}),r):(D(r=at(e,t,n),""+e,void 0),L(r,{synthetic:!0}),r)}function at(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=nt(Ke(t).stack);r.stacktrace={frames:o}}return r}function st(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function ct(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=d(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=d(e.sdk.packages||[],t.packages||[]),e):e}function ut(e,t){var n=st(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(l(l({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function lt(e,t){var n=st(t),r=e.type||"event",o="transaction"===r||t.forceEnvelope(),i=e.debug_meta||{},a=i.transactionSampling,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(i,["transactionSampling"]),c=a||{},u=c.method,p=c.rate;0===Object.keys(s).length?delete e.debug_meta:e.debug_meta=s;var f={body:JSON.stringify(n?ct(e,t.metadata.sdk):e),type:r,url:o?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(o){var d=JSON.stringify(l(l({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:u,rate:p}]})+"\n"+f.body;f.body=d}return f}var pt,ft=function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new Ae(e),this.metadata=t,this._tunnel=n}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){var e=this.getDsn(),t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this.getDsn();return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e,t={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e}(),dt=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;if(!this.isReady())return T.reject(new Ie("Not adding Promise due to buffer limit reached."));var n=e();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then((function(){return t.remove(n)})).then(null,(function(){return t.remove(n).then(null,(function(){}))})),n},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new T((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);T.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),ht=(0,P.R)();function vt(){var e,t;if(pt)return pt;if(Be(ht.fetch))return pt=ht.fetch.bind(ht);var n=ht.document,r=ht.fetch;if("function"==typeof(null===(e=n)||void 0===e?void 0:e.createElement))try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),(null===(t=o.contentWindow)||void 0===t?void 0:t.fetch)&&(r=o.contentWindow.fetch),n.head.removeChild(o)}catch(e){H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return pt=r.bind(ht)}var yt={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},gt=(0,P.R)(),mt=function(){function e(e){var t=this;this.options=e,this._buffer=new dt(30),this._rateLimits={},this._outcomes={},this._api=new ft(e.dsn,e._metadata,e.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&>.document&>.document.addEventListener("visibilitychange",(function(){"hidden"===gt.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){throw new Ie("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=yt[t]+":"+e;H.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){H.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),n=JSON.stringify(l({},this.options.tunnel&&{dsn:this._api.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:(0,k.yW)(),discarded_events:Object.keys(e).map((function(t){var n=f(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}}))});try{!function(e,t){if("[object Navigator]"===Object.prototype.toString.call(ht&&ht.navigator)&&"function"==typeof ht.navigator.sendBeacon)return ht.navigator.sendBeacon.bind(ht.navigator)(e,t);qe()&&vt()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}(t,n)}catch(e){H.error(e)}}else H.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,o=e.resolve,i=e.reject,a=u.fromHttpCode(n.status);this._handleRateLimit(r)&&H.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),a!==u.Success?i(n):o({status:a})},e.prototype._disabledUntil=function(e){var t=yt[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,o,i=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=p(a.trim().split(",")),u=c.next();!u.done;u=c.next()){var l=u.value.split(":",2),f=parseInt(l[0],10),d=1e3*(isNaN(f)?60:f);try{for(var h=(r=void 0,p(l[1].split(";"))),v=h.next();!v.done;v=h.next()){var y=v.value;this._rateLimits[y||"all"]=new Date(i+d)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(i,s)),!0)},e}(),_t=function(e){function t(t,n){void 0===n&&(n=vt());var r=e.call(this,t)||this;return r._fetch=n,r}return s(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(lt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent(Pe.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:He()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new T((function(t,o){n._fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)}))})).then(void 0,(function(t){throw t instanceof Ie?n.recordLostEvent(Pe.QueueOverflow,e.type):n.recordLostEvent(Pe.NetworkError,e.type),t}))},t}(mt),Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(lt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent(Pe.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new T((function(t,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)}))})).then(void 0,(function(t){throw t instanceof Ie?n.recordLostEvent(Pe.QueueOverflow,e.type):n.recordLostEvent(Pe.NetworkError,e.type),t}))},t}(mt),bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.eventFromException=function(e,t){return rt(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=c.Info),ot(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=l(l({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):qe()?new _t(t):new Et(t)},t}(Fe),xt=(0,P.R)(),wt=0;function St(){return wt>0}function Ot(){wt+=1,setTimeout((function(){wt-=1}))}function kt(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return kt(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(e){throw Ot(),ke((function(n){n.addEventProcessor((function(e){var n=l({},e);return t.mechanism&&(D(n,void 0,void 0),L(n,t.mechanism)),n.extra=l(l({},n.extra),{arguments:r}),n})),ve(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function Tt(e){if(void 0===e&&(e={}),xt.document)if(e.eventId)if(e.dsn){var t=xt.document.createElement("script");t.async=!0,t.src=new ft(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad);var n=xt.document.head||xt.document.body;n&&n.appendChild(t)}else H.error("Missing dsn option in showReportDialog call");else H.error("Missing eventId option in showReportDialog call")}var Pt,jt,Rt,It=(0,P.R)(),Ct={},At={};function Nt(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Ct[e.type]=Ct[e.type]||[],Ct[e.type].push(e.callback),function(e){if(!At[e])switch(At[e]=!0,e){case"console":"console"in It&&["debug","info","warn","error","log","assert"].forEach((function(e){e in It.console&&Q(It.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Dt("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,It.console,n)}}))}));break;case"dom":!function(){if("document"in It){var e=Dt.bind(null,"dom"),t=Mt(e,!0);It.document.addEventListener("click",t,!1),It.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=It[t]&&It[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Q(n,"addEventListener",(function(t){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 s=Mt(e);a.handler=s,t.call(this,n,s,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),Q(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in It){var e=[],t=[],n=XMLHttpRequest.prototype;Q(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=r[1];i.__sentry_xhr__={method:g(r[0])?r[0].toUpperCase():r[0],url:r[1]},g(a)&&"POST"===i.__sentry_xhr__.method&&a.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var s=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var o=t.splice(n)[0];i.__sentry_xhr__&&void 0!==o[0]&&(i.__sentry_xhr__.body=o[0])}}catch(e){}Dt("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Q(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(i,t)}})):i.addEventListener("readystatechange",s),n.apply(i,r)}})),Q(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.push(this),t.push(r),Dt("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!qe())return!1;var e=(0,P.R)();if(Be(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Be(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Q(It,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Lt(t),url:Ut(t)},startTimestamp:Date.now()};return Dt("fetch",l({},r)),e.apply(It,t).then((function(e){return Dt("fetch",l(l({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Dt("fetch",l(l({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=(0,P.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=It.onpopstate;It.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=It.location.href,o=Pt;if(Pt=r,Dt("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},Q(It.history,"pushState",t),Q(It.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=Pt,i=String(r);Pt=i,Dt("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":qt=It.onerror,It.onerror=function(e,t,n,r,o){return Dt("error",{column:r,error:o,line:n,msg:e,url:t}),!!qt&&qt.apply(this,arguments)};break;case"unhandledrejection":Bt=It.onunhandledrejection,It.onunhandledrejection=function(e){return Dt("unhandledrejection",e),!Bt||Bt.apply(this,arguments)};break;default:H.warn("unknown instrumentation type:",e)}}(e.type))}function Dt(e,t){var n,r;if(e&&Ct[e])try{for(var o=p(Ct[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){H.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+V(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Lt(e){return void 0===e&&(e=[]),"Request"in It&&w(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ut(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in It&&w(e[0],Request)?e[0].url:String(e[0])}function Mt(e,t){return void 0===t&&(t=!1),function(n){if(n&&Rt!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===jt||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Rt,n))&&(e({event:n,name:r,global:t}),Rt=n),clearTimeout(jt),jt=It.setTimeout((function(){jt=void 0}),1e3)}}}var Ft,qt=null,Bt=null,Ht=function(){function e(t){this.name=e.id,this._options=l({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&le().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:N(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,d(t))},type:"console"}),this._options.dom&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,d(t))},type:"dom"}),this._options.xhr&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,d(t))},type:"xhr"}),this._options.fetch&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,d(t))},type:"fetch"}),this._options.history&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,d(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:c.fromString(e.level),message:K(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(K(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}le().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t,n="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{t=e.event.target?W(e.event.target,n):W(e.event,n)}catch(e){t="<unknown>"}0!==t.length&&le().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,i=t.body;le().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:i})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?le().addBreadcrumb({category:"fetch",data:e.fetchData,level:c.Error,type:"http"},{data:e.error,input:e.args}):le().addBreadcrumb({category:"fetch",data:l(l({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,P.R)(),n=e.from,r=e.to,o=A(t.location.href),i=A(n),a=A(r);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),le().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),Gt=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:je}],version:je},e.call(this,bt,t)||this}return s(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,P.R)().document&&(this._isEnabled()?Tt(l(l({},e),{dsn:e.dsn||this.getDsn()})):H.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Ht);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Ue),Wt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Yt=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){I((function(t){var n=le();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(i):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(H.warn("Event dropped due to being internal Sentry Error.\nEvent: "+N(e)),!0):this._isIgnoredError(e,t)?(H.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+N(e)),!0):this._isDeniedUrl(e,t)?(H.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+N(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(H.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+N(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return $(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return $(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return $(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:d(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:d(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:d(this._options.ignoreErrors||[],e.ignoreErrors||[],Wt),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return H.error("Cannot extract message for event "+N(e)),[]}return[]},e.prototype._getLastValidUrl=function(e){var t,n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--){var o=e[r];if("<anonymous>"!==(null===(t=o)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(n=o)||void 0===n?void 0:n.filename))return o.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return H.error("Cannot extract url for event "+N(e)),null}},e.id="InboundFilters",e}(),zt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Ft=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Ft.apply(n,e)}},e.id="FunctionToString",e}(),Jt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Vt=function(){function e(t){this.name=e.id,this._options=l({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,P.R)();this._options.setTimeout&&Q(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Q(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Q(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Q(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Jt).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=kt(r,{mechanism:{data:{function:V(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,kt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:V(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=(0,P.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Q(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=kt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:V(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,kt(r,{mechanism:{data:{function:"addEventListener",handler:V(r),target:e},handled:!0,type:"instrument"}}),o)}})),Q(n,"removeEventListener",(function(e){return function(t,n,r){var o,i=n;try{var a=null===(o=i)||void 0===o?void 0:o.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&Q(r,e,(function(t){var n={mechanism:{data:{function:e,handler:V(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=V(t.__sentry_original__)),kt(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Xt=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=l({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(H.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(H.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Nt({callback:function(n){var r=n.error,o=le(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(i&&!St()&&!a){var s=o.getClient(),c=void 0===r&&g(n.msg)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(it(r||n.msg,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);L(c,{handled:!1,type:"onerror"}),o.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Nt({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var o=le(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!i||St()||a)return!0;var s=o.getClient(),u=m(r)?t._eventFromRejectionWithPrimitive(r):it(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});u.level=c.Error,L(u,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(u,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=v(e)?e.message:e,a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2]);var s={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,a=g(t)&&t.length>0?t:function(){var e=(0,P.R)();try{return e.document.location.href}catch(e){return""}}();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),Kt=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){I((function(t,n){var r=le().getIntegration(e);if(r){var o=r._handler&&r._handler.bind(r);return"function"==typeof o?o(t,n):t}return t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&w(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!w(e[t],Error)||n.length+1>=this._limit)return n;var r=et(Ke(e[t]));return this._walkErrorTree(e[t],t,d([r],n))},e.id="LinkedErrors",e}(),$t=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(r._shouldDropEvent(t,r._previousEvent))return H.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!(!t||!this._isSameMessageEvent(e,t)&&!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!this._isSameFingerprint(e,t)||!this._isSameStacktrace(e,t))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=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},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var n=this._getExceptionFromEvent(t),r=this._getExceptionFromEvent(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&this._isSameFingerprint(e,t)&&this._isSameStacktrace(e,t))},e.prototype._isSameFingerprint=function(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}},e.id="Dedupe",e}(),Qt=(0,P.R)(),Zt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){I((function(t){var n,r,o;if(le().getIntegration(e)){if(!Qt.navigator&&!Qt.location&&!Qt.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=Qt.location)||void 0===r?void 0:r.href),a=(Qt.document||{}).referrer,s=(Qt.navigator||{}).userAgent,c=l(l(l({},null===(o=t.request)||void 0===o?void 0:o.headers),a&&{Referer:a}),s&&{"User-Agent":s}),u=l(l({},i&&{url:i}),{headers:c});return l(l({},t),{request:u})}return t}))},e.id="UserAgent",e}(),en=[new Yt,new zt,new Vt,new Ht,new Xt,new Kt,new $t,new Zt];function tn(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=en),void 0===e.release){var t=(0,P.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){var n;!0===t.debug&&H.enable();var r=le();null===(n=r.getScope())||void 0===n||n.update(t.initialScope);var o=new e(t);r.bindClient(o)}(Gt,e),e.autoSessionTracking&&function(){if(void 0!==(0,P.R)().document){var e=le();"function"==typeof e.startSession&&"function"==typeof e.captureSession&&(e.startSession({ignoreDuration:!0}),e.captureSession(),Nt({callback:function(t){var n=t.from,r=t.to;void 0!==n&&n!==r&&(e.startSession({ignoreDuration:!0}),e.captureSession())},type:"history"}))}else H.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}function nn(e){void 0===e&&(e={});var t=le(),n=t.getScope();n&&(e.user=l(l({},n.getUser()),e.user)),e.eventId||(e.eventId=t.lastEventId());var r=t.getClient();r&&r.showReportDialog(e)}function rn(){return le().lastEventId()}function on(){}function an(e){e()}function sn(e){var t=le().getClient();return t?t.flush(e):(H.warn("Cannot flush events. No client defined."),T.resolve(!1))}function cn(e){var t=le().getClient();return t?t.close(e):(H.warn("Cannot flush events and disable SDK. No client defined."),T.resolve(!1))}function un(e){return kt(e)()}var ln="sentry.javascript.browser",pn={},fn=(0,P.R)();fn.Sentry&&fn.Sentry.Integrations&&(pn=fn.Sentry.Integrations);var dn=l(l(l({},pn),r),o)},2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(1422),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}},1422:(e,t,n)=>{"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}n.d(t,{KV:()=>r,l$:()=>o}),e=n.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>c,ph:()=>u});var r=n(2991),o=n(1422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}},a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},c=i.nowSeconds.bind(i),u=s.nowSeconds.bind(s);!function(){var e=(0,r.R)().performance;if(e&&e.now){var t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=i<t,s=e.timing&&e.timing.navigationStart,c="number"==typeof s?Math.abs(s+n-o):t;(a||c<t)&&(i<=c&&e.timeOrigin)}}()},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),u=n(7985),l=n(5061),p=n(5655),f=n(5263);e.exports=function(e){return new Promise((function(t,n){var d,h=e.data,v=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete v["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+E)}var b=s(e.baseURL,e.url);function x(){if(m){var r="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),m=null}}if(m.open(e.method.toUpperCase(),a(b,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(x)},m.onabort=function(){m&&(n(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||p.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var w=(e.withCredentials||u(b))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;w&&(v[e.xsrfHeaderName]=w)}"setRequestHeader"in m&&r.forEach(v,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete v[t]:m.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),y&&"json"!==y&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){m&&(n(!e||e&&e.type?new f("canceled"):e),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),m.send(h)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5655));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),s=n(7185),c=n(4875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var p=e;n.length;){var f=n.shift(),d=n.shift();try{p=f(p)}catch(e){d(e);break}}try{o=a(p)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655),s=n(5263);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},7288:e=>{e.exports={version:"0.24.0"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9116:(e,t,n)=>{n(9601);var r=n(857);e.exports=r.Object.assign},7633:(e,t,n)=>{n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var r=n(857);e.exports=r.Promise},1951:(e,t,n)=>{n(2526);var r=n(857);e.exports=r.Symbol.keyFor},6074:(e,t,n)=>{"use strict";n(6992),n(1532),n(4838);var r=n(857),o=n(2104),i=n(614),a=r.Map,s=a.of;e.exports=function(){return o(s,i(this)?this:a,arguments)}},7671:(e,t,n)=>{var r=n(4977);e.exports=r},8509:(e,t,n)=>{var r=n(6155);e.exports=r},9662:(e,t,n)=>{var r=n(7854),o=n(614),i=n(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,t,n)=>{var r=n(7854),o=n(4411),i=n(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,t,n)=>{var r=n(7854),o=n(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,t,n)=>{var r=n(5112),o=n(30),i=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},5787:(e,t,n)=>{var r=n(7854),o=n(7976),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},9670:(e,t,n)=>{var r=n(7854),o=n(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,t,n)=>{var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},1318:(e,t,n)=>{var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,t,n)=>{var r=n(9974),o=n(1702),i=n(8361),a=n(7908),s=n(6244),c=n(5417),u=o([].push),l=function(e){var t=1==e,n=2==e,o=3==e,l=4==e,p=6==e,f=7==e,d=5==e||p;return function(h,v,y,g){for(var m,_,E=a(h),b=i(E),x=r(v,y),w=s(b),S=0,O=g||c,k=t?O(h,w):n||f?O(h,0):void 0;w>S;S++)if((d||S in b)&&(_=x(m=b[S],S,E),e))if(t)k[S]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:u(k,m)}else switch(e){case 4:return!1;case 7:u(k,m)}return p?-1:o||l?l:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1589:(e,t,n)=>{var r=n(7854),o=n(1400),i=n(6244),a=n(6135),s=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=i(e),u=o(t,r),l=o(void 0===n?r:n,r),p=s(c(l-u,0)),f=0;u<l;u++,f++)a(p,f,e[u]);return p.length=f,p}},206:(e,t,n)=>{var r=n(1702);e.exports=r([].slice)},7475:(e,t,n)=>{var r=n(7854),o=n(3157),i=n(4411),a=n(111),s=n(5112)("species"),c=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(i(t)&&(t===c||o(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?c:t}},5417:(e,t,n)=>{var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},4326:(e,t,n)=>{var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,t,n)=>{var r=n(7854),o=n(1694),i=n(614),a=n(4326),s=n(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),s))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},7741:(e,t,n)=>{var r=n(1702),o=n(1589),i=r("".replace),a=r("".split),s=r([].join),c=String(Error("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,l=u.test(c),p=/@[^\n]*\n/.test(c)&&!/zxcasd/.test(c);e.exports=function(e,t){if("string"!=typeof e)return e;if(l)for(;t--;)e=i(e,u,"");else if(p)return s(o(a(e,"\n"),t),"\n");return e}},2044:(e,t,n)=>{"use strict";var r=n(206);e.exports=function(){return new this(r(arguments))}},5631:(e,t,n)=>{"use strict";var r=n(3070).f,o=n(30),i=n(2248),a=n(9974),s=n(5787),c=n(408),u=n(654),l=n(6340),p=n(9781),f=n(2423).fastKey,d=n(9909),h=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,d),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),d=l.prototype,y=v(t),g=function(e,t,n){var r,o,i=y(e),a=m(e,t);return a?a.value=n:(i.last=a={index:o=f(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},m=function(e,t){var n,r=y(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(d,{clear:function(){for(var e=y(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,n=y(t),r=m(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=y(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),i(d,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),p&&r(d,"size",{get:function(){return y(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},7710:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(1702),a=n(4705),s=n(1320),c=n(2423),u=n(408),l=n(5787),p=n(614),f=n(111),d=n(7293),h=n(7072),v=n(8003),y=n(9587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),_=g?"set":"add",E=o[e],b=E&&E.prototype,x=E,w={},S=function(e){var t=i(b[e]);s(b,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return m&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!p(E)||!(m||b.forEach&&!d((function(){(new E).entries().next()})))))x=n.getConstructor(t,e,g,_),c.enable();else if(a(e,!0)){var O=new x,k=O[_](m?{}:-0,1)!=O,T=d((function(){O.has(1)})),P=h((function(e){new E(e)})),j=!m&&d((function(){for(var e=new E,t=5;t--;)e[_](t,t);return!e.has(-0)}));P||((x=t((function(e,t){l(e,b);var n=y(new E,e,x);return null!=t&&u(t,n[_],{that:n,AS_ENTRIES:g}),n}))).prototype=b,b.constructor=x),(T||j)&&(S("delete"),S("has"),g&&S("get")),(j||k)&&S(_),m&&b.clear&&delete b.clear}return w[e]=x,r({global:!0,forced:x!=E},w),v(x,e),m||n.setStrong(x,e,g),x}},9920:(e,t,n)=>{var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},8544:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,n)=>{"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),a=n(8003),s=n(7497),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,l,!1,!0),s[l]=c,e}},8880:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,n)=>{"use strict";var r=n(4948),o=n(3070),i=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),i=n(1913),a=n(6530),s=n(614),c=n(4994),u=n(9518),l=n(7674),p=n(8003),f=n(8880),d=n(1320),h=n(5112),v=n(7497),y=n(3383),g=a.PROPER,m=a.CONFIGURABLE,_=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,b=h("iterator"),x="keys",w="values",S="entries",O=function(){return this};e.exports=function(e,t,n,a,h,y,k){c(n,t,a);var T,P,j,R=function(e){if(e===h&&D)return D;if(!E&&e in A)return A[e];switch(e){case x:case w:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",C=!1,A=e.prototype,N=A[b]||A["@@iterator"]||h&&A[h],D=!E&&N||R(h),L="Array"==t&&A.entries||N;if(L&&(T=u(L.call(new e)))!==Object.prototype&&T.next&&(i||u(T)===_||(l?l(T,_):s(T[b])||d(T,b,O)),p(T,I,!0,!0),i&&(v[I]=O)),g&&h==w&&N&&N.name!==w&&(!i&&m?f(A,"name",w):(C=!0,D=function(){return o(N,this)})),h)if(P={values:R(w),keys:y?D:R(x),entries:R(S)},k)for(j in P)(E||C||!(j in A))&&d(A,j,P[j]);else r({target:t,proto:!0,forced:E||C},P);return i&&!k||A[b]===D||d(A,b,D,{name:h}),v[t]=D,P}},7235:(e,t,n)=>{var r=n(857),o=n(2597),i=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7871:e=>{e.exports="object"==typeof window},1528:(e,t,n)=>{var r=n(8113),o=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:(e,t,n)=>{var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(e,t,n)=>{var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},1036:(e,t,n)=>{var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:(e,t,n)=>{var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,i=n(7854),a=n(8113),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:(e,t,n)=>{var r=n(7293),o=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},2109:(e,t,n)=>{var r=n(7854),o=n(1236).f,i=n(8880),a=n(1320),s=n(3505),c=n(9920),u=n(4705);e.exports=function(e,t){var n,l,p,f,d,h=e.target,v=e.global,y=e.stat;if(n=v?r:y?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(f=t[l],p=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!u(v?l:h+(y?".":"#")+l,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&i(f,"sham",!0),a(n,l,f,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6677:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var t=Function.prototype,n=t.apply,r=t.bind,o=t.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},9974:(e,t,n)=>{var r=n(1702),o=n(9662),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?i(e,t):function(){return e.apply(t,arguments)}}},6916:e=>{var t=Function.prototype.call;e.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},6530:(e,t,n)=>{var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},1702:e=>{var t=Function.prototype,n=t.bind,r=t.call,o=n&&n.bind(r);e.exports=n?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,t,n)=>{var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(8173),i=n(7497),a=n(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(9662),a=n(9670),s=n(6330),c=n(1246),u=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(o(n,e));throw u(s(e)+" is not iterable")}},8173:(e,t,n)=>{var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},7854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(e,t,n)=>{var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:(e,t,n)=>{var r=n(5005);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(7854),o=n(1702),i=n(7293),a=n(4326),s=r.Object,c=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},9587:(e,t,n)=>{var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},2788:(e,t,n)=>{var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},8340:(e,t,n)=>{var r=n(111),o=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},2423:(e,t,n)=>{var r=n(2109),o=n(1702),i=n(3501),a=n(111),s=n(2597),c=n(3070).f,u=n(8006),l=n(1156),p=n(2050),f=n(9711),d=n(6677),h=!1,v=f("meta"),y=0,g=function(e){c(e,v,{value:{objectID:"O"+y++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},h=!0;var e=u.f,t=o([].splice),n={};n[v]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===v){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!p(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!p(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},onFreeze:function(e){return d&&h&&p(e)&&!s(e,v)&&g(e),e}};i[v]=!0},9909:(e,t,n)=>{var r,o,i,a=n(8536),s=n(7854),c=n(1702),u=n(111),l=n(8880),p=n(2597),f=n(5465),d=n(6200),h=n(3501),v="Object already initialized",y=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g),_=c(m.get),E=c(m.has),b=c(m.set);r=function(e,t){if(E(m,e))throw new y(v);return t.facade=e,b(m,e,t),t},o=function(e){return _(m,e)||{}},i=function(e){return E(m,e)}}else{var x=d("state");h[x]=!0,r=function(e,t){if(p(e,x))throw new y(v);return t.facade=e,l(e,x,t),t},o=function(e){return p(e,x)?e[x]:{}},i=function(e){return p(e,x)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,t,n)=>{var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,t,n)=>{var r=n(1702),o=n(7293),i=n(614),a=n(648),s=n(5005),c=n(2788),u=function(){},l=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.exec(u),v=function(e){if(!i(e))return!1;try{return p(u,l,e),!0}catch(e){return!1}};e.exports=!p||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(f,c(e))}:v},4705:(e,t,n)=>{var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==l||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},111:(e,t,n)=>{var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},2190:(e,t,n)=>{var r=n(7854),o=n(5005),i=n(614),a=n(7976),s=n(3307),c=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,c(e))}},408:(e,t,n)=>{var r=n(7854),o=n(9974),i=n(6916),a=n(9670),s=n(6330),c=n(7659),u=n(6244),l=n(7976),p=n(8554),f=n(1246),d=n(9212),h=r.TypeError,v=function(e,t){this.stopped=e,this.result=t},y=v.prototype;e.exports=function(e,t,n){var r,g,m,_,E,b,x,w=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),T=o(t,w),P=function(e){return r&&d(r,"normal",e),new v(!0,e)},j=function(e){return S?(a(e),k?T(e[0],e[1],P):T(e[0],e[1])):k?T(e,P):T(e)};if(O)r=e;else{if(!(g=f(e)))throw h(s(e)+" is not iterable");if(c(g)){for(m=0,_=u(e);_>m;m++)if((E=j(e[m]))&&l(y,E))return E;return new v(!1)}r=p(e,g)}for(b=r.next;!(x=i(b,r)).done;){try{E=j(x.value)}catch(e){d(r,"throw",e)}if("object"==typeof E&&E&&l(y,E))return E}return new v(!1)}},9212:(e,t,n)=>{var r=n(6916),o=n(9670),i=n(8173);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},3383:(e,t,n)=>{"use strict";var r,o,i,a=n(7293),s=n(614),c=n(30),u=n(9518),l=n(1320),p=n(5112),f=n(1913),d=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:f&&(r=c(r)),s(r[d])||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,t,n)=>{var r=n(7466);e.exports=function(e){return r(e.length)}},5948:(e,t,n)=>{var r,o,i,a,s,c,u,l,p=n(7854),f=n(9974),d=n(1236).f,h=n(261).set,v=n(6833),y=n(1528),g=n(1036),m=n(5268),_=p.MutationObserver||p.WebKitMutationObserver,E=p.document,b=p.process,x=p.Promise,w=d(p,"queueMicrotask"),S=w&&w.value;S||(r=function(){var e,t;for(m&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},v||m||g||!_||!E?!y&&x&&x.resolve?((u=x.resolve(void 0)).constructor=x,l=f(u.then,u),a=function(){l(r)}):m?a=function(){b.nextTick(r)}:(h=f(h,p),a=function(){h(r)}):(s=!0,c=E.createTextNode(""),new _(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},3366:(e,t,n)=>{var r=n(7854);e.exports=r.Promise},133:(e,t,n)=>{var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,t,n)=>{var r=n(7854),o=n(614),i=n(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},8523:(e,t,n)=>{"use strict";var r=n(9662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},6277:(e,t,n)=>{var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(1702),i=n(6916),a=n(7293),s=n(1956),c=n(5181),u=n(5296),l=n(7908),p=n(8361),f=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,a=1,f=c.f,d=u.f;o>a;)for(var v,y=p(arguments[a++]),g=f?h(s(y),f(y)):s(y),m=g.length,_=0;m>_;)v=g[_++],r&&!i(d,y,v)||(n[v]=y[v]);return n}:f},30:(e,t,n)=>{var r,o=n(9670),i=n(6048),a=n(748),s=n(3501),c=n(490),u=n(317),l=n(6200)("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&r?d(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},6048:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9670),a=n(5656),s=n(1956);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=s(t),u=c.length,l=0;u>l;)o.f(e,n=c[l++],r[n]);return e}},3070:(e,t,n)=>{var r=n(7854),o=n(9781),i=n(4664),a=n(9670),s=n(4948),c=r.TypeError,u=Object.defineProperty;t.f=o?u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:(e,t,n)=>{var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),c=n(4948),u=n(2597),l=n(4664),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=s(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},1156:(e,t,n)=>{var r=n(4326),o=n(5656),i=n(8006).f,a=n(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8006:(e,t,n)=>{var r=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,n)=>{var r=n(7854),o=n(2597),i=n(614),a=n(7908),s=n(6200),c=n(8544),u=s("IE_PROTO"),l=r.Object,p=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=a(e);if(o(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?p:null}},2050:(e,t,n)=>{var r=n(7293),o=n(111),i=n(4326),a=n(7556),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},7976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:(e,t,n)=>{var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&c(l,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},1956:(e,t,n)=>{var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:(e,t,n)=>{var r=n(1702),o=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},288:(e,t,n)=>{"use strict";var r=n(1694),o=n(648);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(614),a=n(111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},3887:(e,t,n)=>{var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?c(t,n(e)):t}},857:(e,t,n)=>{var r=n(7854);e.exports=r},2534:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:(e,t,n)=>{var r=n(9670),o=n(111),i=n(8523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},2248:(e,t,n)=>{var r=n(1320);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},1320:(e,t,n)=>{var r=n(7854),o=n(614),i=n(2597),a=n(8880),s=n(3505),c=n(2788),u=n(9909),l=n(6530).CONFIGURABLE,p=u.get,f=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,c){var u,p=!!c&&!!c.unsafe,h=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet,y=c&&void 0!==c.name?c.name:t;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||l&&n.name!==y)&&a(n,"name",y),(u=f(n)).source||(u.source=d.join("string"==typeof y?y:""))),e!==r?(p?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=n:a(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||c(this)}))},4488:(e,t,n)=>{var r=n(7854).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},3505:(e,t,n)=>{var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:(e,t,n)=>{"use strict";var r=n(5005),o=n(3070),i=n(5112),a=n(9781),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:(e,t,n)=>{var r=n(3070).f,o=n(2597),i=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},6200:(e,t,n)=>{var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:(e,t,n)=>{var r=n(7854),o=n(3505),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:(e,t,n)=>{var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(e,t,n)=>{var r=n(9670),o=n(9483),i=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},8710:(e,t,n)=>{var r=n(1702),o=n(9303),i=n(1340),a=n(4488),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(a(t)),f=o(n),d=p.length;return f<0||f>=d?e?"":void 0:(r=c(p,f))<55296||r>56319||f+1===d||(l=c(p,f+1))<56320||l>57343?e?s(p,f):r:e?u(p,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},261:(e,t,n)=>{var r,o,i,a,s=n(7854),c=n(2104),u=n(9974),l=n(614),p=n(2597),f=n(7293),d=n(490),h=n(206),v=n(317),y=n(6833),g=n(5268),m=s.setImmediate,_=s.clearImmediate,E=s.process,b=s.Dispatch,x=s.Function,w=s.MessageChannel,S=s.String,O=0,k={};try{r=s.location}catch(e){}var T=function(e){if(p(k,e)){var t=k[e];delete k[e],t()}},P=function(e){return function(){T(e)}},j=function(e){T(e.data)},R=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};m&&_||(m=function(e){var t=h(arguments,1);return k[++O]=function(){c(l(e)?e:x(e),void 0,t)},o(O),O},_=function(e){delete k[e]},g?o=function(e){E.nextTick(P(e))}:b&&b.now?o=function(e){b.now(P(e))}:w&&!y?(a=(i=new w).port2,i.port1.onmessage=j,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(R)?(o=R,s.addEventListener("message",j,!1)):o="onreadystatechange"in v("script")?function(e){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),T(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:m,clear:_}},1400:(e,t,n)=>{var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:(e,t,n)=>{var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},7466:(e,t,n)=>{var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:(e,t,n)=>{var r=n(7854),o=n(4488),i=r.Object;e.exports=function(e){return i(o(e))}},7593:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(111),a=n(2190),s=n(8173),c=n(2140),u=n(5112),l=r.TypeError,p=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,p);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},4948:(e,t,n)=>{var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:(e,t,n)=>{var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:(e,t,n)=>{var r=n(7854),o=n(648),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:(e,t,n)=>{var r=n(7854).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},9711:(e,t,n)=>{var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:(e,t,n)=>{var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(e,t,n)=>{var r=n(5112);t.f=r},5112:(e,t,n)=>{var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(133),c=n(3307),u=o("wks"),l=r.Symbol,p=l&&l.for,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(l,e)?u[e]=l[e]:u[e]=c&&p?p(t):f(t)}return u[e]}},9170:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(7976),a=n(9518),s=n(7674),c=n(9920),u=n(30),l=n(8880),p=n(9114),f=n(7741),d=n(8340),h=n(408),v=n(6277),y=n(5112),g=n(2914),m=y("toStringTag"),_=o.Error,E=[].push,b=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=i(x,this);s?n=s(new _(void 0),o?a(this):x):(n=o?this:u(x),l(n,m,"Error")),l(n,"message",v(t,"")),g&&l(n,"stack",f(n.stack,1)),d(n,r);var c=[];return h(e,E,{that:c}),l(n,"errors",c),n};s?s(b,_):c(b,_);var x=b.prototype=u(_.prototype,{constructor:p(1,b),message:p(1,""),name:p(1,"AggregateError")});r({global:!0},{AggregateError:b})},6992:(e,t,n)=>{"use strict";var r=n(5656),o=n(1223),i=n(7497),a=n(9909),s=n(654),c="Array Iterator",u=a.set,l=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},1532:(e,t,n)=>{"use strict";n(7710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5631))},9601:(e,t,n)=>{var r=n(2109),o=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},1539:(e,t,n)=>{var r=n(1694),o=n(1320),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},7922:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),i=n(9662),a=n(8523),s=n(2534),c=n(408);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=s((function(){var n=i(t.resolve),a=[],s=0,u=1;c(e,(function(e){var i=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){c||(c=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return l.error&&u(l.value),n.promise}})},4668:(e,t,n)=>{"use strict";var r=n(2109),o=n(9662),i=n(5005),a=n(6916),s=n(8523),c=n(2534),u=n(408),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i("AggregateError"),r=s.f(t),p=r.resolve,f=r.reject,d=c((function(){var r=o(t.resolve),i=[],s=0,c=1,d=!1;u(e,(function(e){var o=s++,u=!1;c++,a(r,t,e).then((function(e){u||d||(d=!0,p(e))}),(function(e){u||d||(u=!0,i[o]=e,--c||f(new n(i,l)))}))})),--c||f(new n(i,l))}));return d.error&&f(d.value),r.promise}})},7727:(e,t,n)=>{"use strict";var r=n(2109),o=n(1913),i=n(3366),a=n(7293),s=n(5005),c=n(614),u=n(6707),l=n(9478),p=n(1320);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!o&&c(i)){var f=s("Promise").prototype.finally;i.prototype.finally!==f&&p(i.prototype,"finally",f,{unsafe:!0})}},8674:(e,t,n)=>{"use strict";var r,o,i,a,s=n(2109),c=n(1913),u=n(7854),l=n(5005),p=n(6916),f=n(3366),d=n(1320),h=n(2248),v=n(7674),y=n(8003),g=n(6340),m=n(9662),_=n(614),E=n(111),b=n(5787),x=n(2788),w=n(408),S=n(7072),O=n(6707),k=n(261).set,T=n(5948),P=n(9478),j=n(842),R=n(8523),I=n(2534),C=n(9909),A=n(4705),N=n(5112),D=n(7871),L=n(5268),U=n(7392),M=N("species"),F="Promise",q=C.getterFor(F),B=C.set,H=C.getterFor(F),G=f&&f.prototype,W=f,Y=G,z=u.TypeError,J=u.document,V=u.process,X=R.f,K=X,$=!!(J&&J.createEvent&&u.dispatchEvent),Q=_(u.PromiseRejectionEvent),Z="unhandledrejection",ee=!1,te=A(F,(function(){var e=x(W),t=e!==String(W);if(!t&&66===U)return!0;if(c&&!Y.finally)return!0;if(U>=51&&/native code/.test(e))return!1;var n=new W((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[M]=r,!(ee=n.then((function(){}))instanceof r)||!t&&D&&!Q})),ne=te||!S((function(e){W.all(e).catch((function(){}))})),re=function(e){var t;return!(!E(e)||!_(t=e.then))&&t},oe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;T((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,s,c,u=n[i++],l=o?u.ok:u.fail,f=u.resolve,d=u.reject,h=u.domain;try{l?(o||(2===e.rejection&&ce(e),e.rejection=1),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),c=!0)),a===u.promise?d(z("Promise-chain cycle")):(s=re(a))?p(s,a,f,d):f(a)):d(r)}catch(e){h&&!c&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},ie=function(e,t,n){var r,o;$?((r=J.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(o=u["on"+e])?o(r):e===Z&&j("Unhandled promise rejection",n)},ae=function(e){p(k,u,(function(){var t,n=e.facade,r=e.value;if(se(e)&&(t=I((function(){L?V.emit("unhandledRejection",r,n):ie(Z,n,r)})),e.rejection=L||se(e)?2:1,t.error))throw t.value}))},se=function(e){return 1!==e.rejection&&!e.parent},ce=function(e){p(k,u,(function(){var t=e.facade;L?V.emit("rejectionHandled",t):ie("rejectionhandled",t,e.value)}))},ue=function(e,t,n){return function(r){e(t,r,n)}},le=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,oe(e,!0))},pe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z("Promise can't be resolved itself");var r=re(t);r?T((function(){var n={done:!1};try{p(r,t,ue(pe,n,e),ue(le,n,e))}catch(t){le(n,t,e)}})):(e.value=t,e.state=1,oe(e,!1))}catch(t){le({done:!1},t,e)}}};if(te&&(Y=(W=function(e){b(this,Y),m(e),p(r,this);var t=q(this);try{e(ue(pe,t),ue(le,t))}catch(e){le(t,e)}}).prototype,(r=function(e){B(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(Y,{then:function(e,t){var n=H(this),r=n.reactions,o=X(O(this,W));return o.ok=!_(e)||e,o.fail=_(t)&&t,o.domain=L?V.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&oe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=q(e);this.promise=e,this.resolve=ue(pe,t),this.reject=ue(le,t)},R.f=X=function(e){return e===W||e===i?new o(e):K(e)},!c&&_(f)&&G!==Object.prototype)){a=G.then,ee||(d(G,"then",(function(e,t){var n=this;return new W((function(e,t){p(a,n,e,t)})).then(e,t)}),{unsafe:!0}),d(G,"catch",Y.catch,{unsafe:!0}));try{delete G.constructor}catch(e){}v&&v(G,Y)}s({global:!0,wrap:!0,forced:te},{Promise:W}),y(W,F,!1,!0),g(F),i=l(F),s({target:F,stat:!0,forced:te},{reject:function(e){var t=X(this);return p(t.reject,void 0,e),t.promise}}),s({target:F,stat:!0,forced:c||te},{resolve:function(e){return P(c&&this===i?W:this,e)}}),s({target:F,stat:!0,forced:ne},{all:function(e){var t=this,n=X(t),r=n.resolve,o=n.reject,i=I((function(){var n=m(t.resolve),i=[],a=0,s=1;w(e,(function(e){var c=a++,u=!1;s++,p(n,t,e).then((function(e){u||(u=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=X(t),r=n.reject,o=I((function(){var o=m(t.resolve);w(e,(function(e){p(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},8783:(e,t,n)=>{"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),a=n(654),s="String Iterator",c=i.set,u=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},2526:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(5005),a=n(2104),s=n(6916),c=n(1702),u=n(1913),l=n(9781),p=n(133),f=n(7293),d=n(2597),h=n(3157),v=n(614),y=n(111),g=n(7976),m=n(2190),_=n(9670),E=n(7908),b=n(5656),x=n(4948),w=n(1340),S=n(9114),O=n(30),k=n(1956),T=n(8006),P=n(1156),j=n(5181),R=n(1236),I=n(3070),C=n(5296),A=n(206),N=n(1320),D=n(2309),L=n(6200),U=n(3501),M=n(9711),F=n(5112),q=n(6061),B=n(7235),H=n(8003),G=n(9909),W=n(2092).forEach,Y=L("hidden"),z="Symbol",J=F("toPrimitive"),V=G.set,X=G.getterFor(z),K=Object.prototype,$=o.Symbol,Q=$&&$.prototype,Z=o.TypeError,ee=o.QObject,te=i("JSON","stringify"),ne=R.f,re=I.f,oe=P.f,ie=C.f,ae=c([].push),se=D("symbols"),ce=D("op-symbols"),ue=D("string-to-symbol-registry"),le=D("symbol-to-string-registry"),pe=D("wks"),fe=!ee||!ee.prototype||!ee.prototype.findChild,de=l&&f((function(){return 7!=O(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ne(K,t);r&&delete K[t],re(e,t,n),r&&e!==K&&re(K,t,r)}:re,he=function(e,t){var n=se[e]=O(Q);return V(n,{type:z,tag:e,description:t}),l||(n.description=t),n},ve=function(e,t,n){e===K&&ve(ce,t,n),_(e);var r=x(t);return _(n),d(se,r)?(n.enumerable?(d(e,Y)&&e[Y][r]&&(e[Y][r]=!1),n=O(n,{enumerable:S(0,!1)})):(d(e,Y)||re(e,Y,S(1,{})),e[Y][r]=!0),de(e,r,n)):re(e,r,n)},ye=function(e,t){_(e);var n=b(t),r=k(n).concat(Ee(n));return W(r,(function(t){l&&!s(ge,n,t)||ve(e,t,n[t])})),e},ge=function(e){var t=x(e),n=s(ie,this,t);return!(this===K&&d(se,t)&&!d(ce,t))&&(!(n||!d(this,t)||!d(se,t)||d(this,Y)&&this[Y][t])||n)},me=function(e,t){var n=b(e),r=x(t);if(n!==K||!d(se,r)||d(ce,r)){var o=ne(n,r);return!o||!d(se,r)||d(n,Y)&&n[Y][r]||(o.enumerable=!0),o}},_e=function(e){var t=oe(b(e)),n=[];return W(t,(function(e){d(se,e)||d(U,e)||ae(n,e)})),n},Ee=function(e){var t=e===K,n=oe(t?ce:b(e)),r=[];return W(n,(function(e){!d(se,e)||t&&!d(K,e)||ae(r,se[e])})),r};if(p||(N(Q=($=function(){if(g(Q,this))throw Z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,t=M(e),n=function(e){this===K&&s(n,ce,e),d(this,Y)&&d(this[Y],t)&&(this[Y][t]=!1),de(this,t,S(1,e))};return l&&fe&&de(K,t,{configurable:!0,set:n}),he(t,e)}).prototype,"toString",(function(){return X(this).tag})),N($,"withoutSetter",(function(e){return he(M(e),e)})),C.f=ge,I.f=ve,R.f=me,T.f=P.f=_e,j.f=Ee,q.f=function(e){return he(F(e),e)},l&&(re(Q,"description",{configurable:!0,get:function(){return X(this).description}}),u||N(K,"propertyIsEnumerable",ge,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:$}),W(k(pe),(function(e){B(e)})),r({target:z,stat:!0,forced:!p},{for:function(e){var t=w(e);if(d(ue,t))return ue[t];var n=$(t);return ue[t]=n,le[n]=t,n},keyFor:function(e){if(!m(e))throw Z(e+" is not a symbol");if(d(le,e))return le[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!l},{create:function(e,t){return void 0===t?O(e):ye(O(e),t)},defineProperty:ve,defineProperties:ye,getOwnPropertyDescriptor:me}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:_e,getOwnPropertySymbols:Ee}),r({target:"Object",stat:!0,forced:f((function(){j.f(1)}))},{getOwnPropertySymbols:function(e){return j.f(E(e))}}),te&&r({target:"JSON",stat:!0,forced:!p||f((function(){var e=$();return"[null]"!=te([e])||"{}"!=te({a:e})||"{}"!=te(Object(e))}))},{stringify:function(e,t,n){var r=A(arguments),o=t;if((y(t)||void 0!==e)&&!m(e))return h(t)||(t=function(e,t){if(v(o)&&(t=s(o,this,e,t)),!m(t))return t}),r[1]=t,a(te,null,r)}}),!Q[J]){var be=Q.valueOf;N(Q,J,(function(e){return s(be,this)}))}H($,z),U[Y]=!0},4838:(e,t,n)=>{n(2109)({target:"Map",stat:!0},{of:n(2044)})},4977:(e,t,n)=>{var r=n(9116);e.exports=r},6155:(e,t,n)=>{var r=n(1951);e.exports=r},6245:(e,t,n)=>{"use strict";function r(e){this.message=e}n.r(t),n.d(t,{default:()=>s,InvalidTokenError:()=>a}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},2081:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerEvents=t.Events=t.Player=t.Client=void 0,n(7633),n(8509),n(6074),n(7671);var i=n(9138);t.Client=i.default;var a=n(909);t.Player=a.default,(0,n(9773).printVersion)();var s=o([r({},i.default.eventNames),r({},a.default.events)],2),c=s[0],u=s[1];t.Events=c,t.PlayerEvents=u},9138:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(8237),a=n(1808),s=n(4479),c=n(3998),u=n(9259),l=n(3447),p=n(4348),f=o(n(4776).Lp,[]),d=function(){function e(t){var n=this;this.clientConfig=void 0,this.gaProperty="",this.directDeliveryPipe=void 0,this.player=void 0,this.renderHistory=f.emptyHistory,this.eventDelegateRefs=(0,p.cloneWithKeys)(e.eventNames),this.playerIsFallback=!1,this.setup=function(e){var t=f.defaultConfig,o=n.clientConfig||f.defaultConfig,a=new Map,d=null;try{if("object"!=typeof e)throw new l.ClientConfigurationError("badConfig",null);if(!e.hasOwnProperty("storyId")||"string"!=typeof e.storyId)throw new l.ClientConfigurationError("storyId",null);if(!e.hasOwnProperty("accessToken")||"string"!=typeof e.accessToken)throw new l.ClientConfigurationError("accessToken",null);(0,p.prepConfig)(e,t),n.clientConfig=r(r({},o),e),d=new i.default(n.clientConfig.accessToken,n.clientConfig.environment,n.clientConfig.storyId,n.clientConfig.compositionId),a.set("experienceCreated",(function(e){return n.experienceCreated(e)})),a.set("gotExperience",(function(e){return n.gotExperience(e)})),a.set("internalError",(function(e){return n.internalError(e)})),n.directDeliveryPipe=new u.default({api:d,clientDelegates:a,environment:n.clientConfig.environment}),d.getGAProperty().then((function(e){var t=e.gaTrackingId;"string"==typeof t&&t.length>0&&(s.default.initialize(n.clientConfig.gaPlacement),n.gaProperty=t,void 0!==n.player&&n.player.setGaProperty(t))})).catch((function(e){var t=new l.HTTPError("httpFailure",null,e);c.default.trapError(t,n.clientConfig.storyId,null)}))}catch(t){var h=e&&e.storyId?e.storyId:"";c.default.trapError(t,h)}},this.bindPlayer=function(e,t){if(void 0===t&&(t=!1),n.clientConfig){var r=n.clientConfig.storyId;n.playerIsFallback=t,n.player=e,e.setStoryId(r),n.gaProperty&&e.setGaProperty(n.gaProperty)}},this.on=function(t,r){var o=n,i=o.eventDelegateRefs,a=o.eventDelegateRefs.ERROR;if(n.clientConfig){var s=n.clientConfig.storyId;try{if(!(0,p.isFunc)(r))throw new l.ClientConfigurationError("invalidCallbackType",t);if(!(0,p.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);i[t]=r}catch(e){c.default.trapError(e,s,a)}}},this.off=function(t){void 0===t&&(t="");var r=n,o=r.eventDelegateRefs,i=r.eventDelegateRefs.ERROR;if(n.clientConfig){var a=n.clientConfig.storyId;try{if(t){if(!(0,p.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);o[t]=null}else Object.keys(e.eventNames).forEach((function(e){o[e]=null}))}catch(e){c.default.trapError(e,a,i)}}},this.captureAnalytics=function(e){void 0===e&&(e=null);var t=n.eventDelegateRefs.ERROR;if(n.clientConfig){var r=n.clientConfig.storyId;try{if(!(e instanceof HTMLVideoElement))throw new l.PlayerConfigurationError("invalidPlayerRef",null);n.bindPlayer(new a.default(e),!0)}catch(e){c.default.trapError(e,r,t)}}},this.getExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.clientConfig.storyId,a=r.eventDelegateRefs,s=a.GOT_EXPERIENCE,u=a.ERROR;try{if(null===o&&!(0,p.isFunc)(s))throw new l.ClientConfigurationError("badConfigOnGet",e.eventNames.GOT_EXPERIENCE);t.length>f.uuidLength&&(t=t.substring(0,f.uuidLength)),n.directDeliveryPipe.getExperience(t)}catch(e){c.default.trapError(e,i,u)}}},this.createExperience=function(t,r){if(void 0===r&&(r=!0),n.clientConfig){var o=n,i=o.player,a=o.playerIsFallback,s=o.clientConfig.storyId,u=o.eventDelegateRefs,f=u.GOT_EXPERIENCE,d=u.UPLOAD_PROGRESS,h=u.ERROR;try{if((null===i||a)&&!(0,p.isFunc)(f))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.createExperience(t,r,d)}catch(e){c.default.trapError(e,s,h)}}},this.renderExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.playerIsFallback,a=r.clientConfig.storyId,s=r.eventDelegateRefs,u=s.GOT_EXPERIENCE,f=s.UPLOAD_PROGRESS,d=s.ERROR;try{if((null===o||i)&&!(0,p.isFunc)(u))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.fetchExperience(t,f)}catch(e){c.default.trapError(e,a,d)}}},this.renderExperienceFromId=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.playerIsFallback,a=r.clientConfig.storyId,s=r.eventDelegateRefs,u=s.GOT_EXPERIENCE,f=s.UPLOAD_PROGRESS,d=s.ERROR;try{if((null===o||i)&&!(0,p.isFunc)(u))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.fetchExperience(null,f,1,t)}catch(e){c.default.trapError(e,a,d)}}},this.updateHistory=function(e,t){n.renderHistory[e]!==t&&(n.renderHistory[e]=t)},this.experienceCreated=function(e){var t=n.eventDelegateRefs.EXPERIENCE_CREATED,r=e.id;(0,p.isFunc)(t)&&t(e),n.updateHistory("prevExperienceId",r)},this.gotExperience=function(e){var t=n,r=t.player,o=t.clientConfig.storyId,i=t.eventDelegateRefs,a=i.GOT_EXPERIENCE,s=i.ERROR,u=e.id,f=e.moderation_status;try{if("rejected"===f)throw new l.ModerationError("rejection",u);(0,p.isFunc)(a)&&a(e),void 0!==r&&r.experienceGenerated(e),n.updateHistory("prevExperienceId",u),n.updateHistory("prevMessage","")}catch(e){c.default.trapError(e,o,s)}},this.internalError=function(e){var t=n,r=t.clientConfig.storyId,o=t.eventDelegateRefs.ERROR;c.default.trapError(e,r,o)},this.setup(t)}return e.eventNames=f.eventNames,e}();t.default=d},9259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4348),o=n(3447),i=function(){function e(e){var t=this;this.api=null,this.clientDelegates=null,this.configCache=new Map,this.getExperience=function(e){clearTimeout(t.killPollTimeout),t.killPollTimeout=setTimeout((function(){return t.killPoll(e)}),18e4),t.pollForExperience(e,(function(e){clearTimeout(t.killPollTimeout),t.clientDelegates.get("gotExperience")(e)}),(function(n){clearTimeout(t.killPollTimeout);var r=new o.HTTPError("httpFailure",e,n);t.clientDelegates.get("internalError")(r)}))},this.fetchExperience=function(e,n,i,a){void 0===i&&(i=1),void 0===a&&(a=null);var s=a||(0,r.generateUUID)();t.api.fetch(e,s,n).then((function(e){if(e.error){var n=new o.RenderError(e.error,s);t.clientDelegates.get("internalError")(n)}else t.configCache.delete(s),t.clientDelegates.get("gotExperience")(e)})).catch((function(r){var c,u;if(null===(u=null===(c=null==r?void 0:r.response)||void 0===c?void 0:c.data)||void 0===u?void 0:u.error){var l=new o.RenderError(r.response.data.error,s);t.clientDelegates.get("internalError")(l)}else r.response&&408===r.response.status?t.getExperience(s):r.response&&r.response.status>=500&&i<3?(i+=1,t.fetchExperience(e,n,i,a)):(l=new o.HTTPError("httpFailure",s,r),t.clientDelegates.get("internalError")(l))}))},this.createExperience=function(e,n,i,a){void 0===a&&(a=0);var s=(0,r.generateUUID)();t.api.create(e,n,s,i).then((function(e){t.configCache.delete(s),t.clientDelegates.get("experienceCreated")(e)})).catch((function(r){if(r.response&&r.response.status>=500&&a<3)a+=1,t.createExperience(e,n,i,a);else{var c=new o.HTTPError("httpFailure",s,r);t.clientDelegates.get("internalError")(c)}}))},this.api=e.api,this.clientDelegates=e.clientDelegates}return e.prototype.killPoll=function(e){clearTimeout(this.pollTimeout);var t=new o.HTTPError("pollTimeout",e);this.clientDelegates.get("internalError")(t)},e.prototype.pollForExperience=function(e,t,n,r){var i=this;void 0===r&&(r=1),this.api.get(e).then((function(a){if(a.rendering)clearTimeout(i.pollTimeout),i.pollTimeout=setTimeout((function(){i.pollForExperience(e,t,n,r)}),5e3);else if(clearTimeout(i.pollTimeout),a.error){var s=new o.RenderError(a.error,e);i.clientDelegates.get("internalError")(s)}else t(a)})).catch((function(o){clearTimeout(i.pollTimeout),o.response&&o.response.status>=500&&r<3?(r+=1,i.pollForExperience(e,t,n,r)):n(o)}))},e}();t.default=i},8237:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6245),a=n(9669),s=n(4348),c=o(n(4776).hi,[]);t.default=function(e,t,n,o){var u,l=this;void 0===o&&(o=null),this.http=null,this.storyId="",this.compositionId="",this.getGAProperty=function(){return new Promise((function(e,t){l.http.get("/story/".concat(l.storyId,"/property")).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.get=function(e){return new Promise((function(t,n){l.http.get("/story/".concat(l.storyId,"/experience/").concat(e,"?r=").concat(Math.random())).then((function(e){t(e.data)})).catch((function(e){n(e)}))}))},this.fetch=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=(0,s.inventoryToFormData)(l.storyId,e,l.compositionId),i={onUploadProgress:function(e){return l.uploadProgress(e,n)}};return o.append("id",t),new Promise((function(e,t){l.http.post("/experience/fetch",o,i).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.create=function(e,t,n,r){void 0===r&&(r=null);var o=t?"/experience/render":"/experience",i=(0,s.inventoryToFormData)(l.storyId,e,l.compositionId),a={onUploadProgress:function(e){return l.uploadProgress(e,r)}};return i.append("id",n),new Promise((function(e,t){l.http.post(o,i,a).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.getAuthHeader=function(e){var t,n,r=c.jwt,o=c.hmac;try{return(0,i.default)(e),(t={})[r]=e,t}catch(t){return(n={})[o]=e,n}},this.uploadProgress=function(e,t){if(void 0===t&&(t=null),t){var n=e.loaded,r=e.total;t(Math.round(n/r*100))}};var p=c.version,f=c.currentVersion;this.storyId=n,this.compositionId=o,this.http=a.default.create({baseURL:c[t],headers:r(r({},this.getAuthHeader(e)),(u={},u[p]=f,u))})}},3998:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(8969),i=n(3447),a=n(9773),s=r(n(3199),[]),c=n(4776).D_,u=function(){function e(){}return e.logWarning=function(e,t){console.warn("IMPOSIUM\n".concat(s[e][t]))},e.trapError=function(t,n,r){void 0===r&&(r=null),t=t.log?t:new i.UncaughtError("generic",t),n&&t.setStoryId(n),r&&r(t),t.log(),e.hub.run((function(e){e.configureScope((function(r){r.setTag("type",t.type),r.setTag("version",t.version),r.setTag("storyId",n||"<not_set>"),t.experienceId&&r.setTag("experienceId",t.experienceId),t.axiosError&&("object"==typeof t.axiosError.response?r.setExtra("response",t.axiosError.response):"object"==typeof t.axiosError.request?(r.setExtra("request",t.axiosError.request),r.setExtra("reuqestConfig",t.axiosError.config)):(r.setExtra("axiosErrorMessage",t.axiosError.message),r.setExtra("reuqestConfig",t.axiosError.config))),t.closeEvent&&r.setExtra("socketCloseEvent",{code:t.closeEvent.code,type:t.closeEvent.type,timestamp:t.closeEvent.timeStamp,wsUrl:t.closeEvent.target.url,wsBufferedAmount:t.closeEvent.target.bufferedAmount}),e.captureException(t)}))}))},e.sentryClient=new o.BrowserClient({debug:!1,dsn:c.dsn,integrations:[new o.Integrations.UserAgent],beforeSend:function(t){return e.cleanDucktype(t)},release:"".concat(c.projectName,"@").concat(a.version)}),e.hub=new o.Hub(e.sentryClient),e.cleanDucktype=function(e){return void 0===e.extra||e.extra.Error&&(delete e.extra.Error.log,delete e.extra.Error.logHeader,delete e.extra.Error.setStoryId,e.extra.Error.axiosError&&delete e.extra.Error.axiosError,e.extra.Error.closeEvent&&delete e.extra.Error.closeEvent),e},e}();t.default=u},3447:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UncaughtError=t.HTTPError=t.PlayerConfigurationError=t.ClientConfigurationError=t.ModerationError=t.RenderError=t.ImposiumError=void 0;var a=n(9773),s=i(n(4168),[]),c="moderation",u="clientConfiguration",l="playerConfiguration",p="network",f="uncaught",d=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="",o.version=a.version,o.storyId="<not_set>",o.logHeader="[IMPOSIUM ERROR]",o.setStoryId=function(e){o.storyId=e},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.type=r,o}return o(t,e),t}(Error);t.ImposiumError=d;var h=function(e){function t(n,r){var o=e.call(this,n,"render")||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Error rendering dynamic video\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(d);t.RenderError=h;var v=function(e){function t(n,r){var o=e.call(this,s.moderation[n],c)||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Failed to pass moderation\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(d);t.ModerationError=v;var y=function(e){function t(n,r){var o=e.call(this,s.clientConfiguration[n],u)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid client configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.ClientConfigurationError=y;var g=function(e){function t(n,r){var o=e.call(this,s.playerConfiguration[n],l)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid player configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.PlayerConfigurationError=g;var m=function(e){function t(n,r,o){var i,a,c=e.call(this,s.network[n],p)||this;return c.experienceId=null,c.axiosError=null,c.log=function(){console.error("".concat(c.logHeader,"\n \nReason: HTTP error\n \nMessage: ").concat(c.message,"\n \nExperience ID: ").concat(c.experienceId,"\n \nNetwork Error: ").concat(c.axiosError," "))},Error.captureStackTrace&&Error.captureStackTrace(c,t),(null===(a=null===(i=null==o?void 0:o.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.error)&&(c.message=o.response.data.error),c.experienceId=r||"<not_set>",c.axiosError=o||"<not_set>",c}return o(t,e),t}(d);t.HTTPError=m;var _=function(e){function t(n,r){var o=e.call(this,s.uncaught[n],f)||this;return o.uncaughtError=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Unknown\n \nMessage: ").concat(o.message,"\n \nError: "),o.uncaughtError)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.uncaughtError=r,o}return o(t,e),t}(d);t.UncaughtError=_},4479:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3998),s=n(9669),c=n(4348),u=o(n(4776).co,[]),l=function(){function e(){}return e.gaPlacement="",e.initialize=function(t){try{var n=new Date,r=JSON.parse(localStorage.getItem(e.CACHE_KEY))||{};if(e.gaPlacement=t,r.uuid&&r.expiry>=(new Date).valueOf())return void(e.CLIENT_ID=r.uuid);r.uuid=(0,c.generateUUID)(),r.expiry=n.setFullYear(n.getFullYear()+2),localStorage.setItem(e.CACHE_KEY,JSON.stringify(r)),e.CLIENT_ID=r.uuid}catch(t){e.CLIENT_ID=(0,c.generateUUID)()}},e.send=function(t){var n,o,c=e.BASE_URL,u=document.referrer;t=r({v:"1",ds:e.gaPlacement,cid:e.CLIENT_ID,z:"".concat(Math.round((new Date).getTime()/1e3))},t),""!==u&&(t.dr=u);try{for(var l=i(Object.keys(t)),p=l.next();!p.done;p=l.next()){var f=p.value,d=c===e.BASE_URL?"?":"&";c+="".concat(d).concat(f,"=").concat(encodeURIComponent(t[f]))}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}s.default.get(c).catch((function(){a.default.logWarning("analytics","requestFailed")}))},e.BASE_URL=u.baseUrl,e.CACHE_KEY=u.cacheKey,e.CLIENT_ID=u.cidPlaceholder,e}();t.default=l},4348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inventoryToFormData=t.generateUUID=t.calculateAverageMbps=t.calculateMbps=t.cloneWithKeys=t.keyExists=t.isFunc=t.inRangeNumeric=t.prepConfig=void 0,t.prepConfig=function(e,t){var n=Object.keys(t);for(var r in e)-1===n.indexOf(r)&&delete e[r]},t.inRangeNumeric=function(e,t,n){return(e-t)*(e-n)<=0},t.isFunc=function(e){return"[object Function]"===Object.prototype.toString.call(e)},t.keyExists=function(e,t){return~Object.keys(e).map((function(t){return e[t]})).indexOf(t)},t.cloneWithKeys=function(e){return Object.keys(e).reduce((function(e,t){return e[t]=null,e}),{})},t.calculateMbps=function(e,t){return 8*t/(((new Date).getTime()-e)/1e3)/Math.pow(1024,2)},t.calculateAverageMbps=function(e){var t=e.reduce((function(e,t){return e+t}));return parseFloat((t/e.length).toFixed(2))},t.generateUUID=function(){var e=window.performance,t=(new Date).getTime();return void 0!==e&&"function"==typeof e.now&&(t+=e.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:7&n|8).toString(16)}))},t.inventoryToFormData=function(e,t,n){void 0===n&&(n=null);var r=new FormData;for(var o in r.append("story_id",e),n&&r.append("composition_id",n),t)if(t[o]){var i=t[o];if(i&&"file"===i.type){var a=i.files;a.length>0?(t[o]="",r.append(o,a[0])):t[o]=""}else i&&i instanceof File&&(t[o]="",r.append(o,i,i.name));r.append("inventory[".concat(o,"]"),t[o])}return r}},9773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printVersion=t.version=void 0,t.version="3.2.4",t.printVersion=function(){console.log("%cPowered By%c Imposium%c v".concat("3.2.4","%c https://imposium.com"),"text-transform: uppercase; padding: 5px 0px 5px 5px; background-color: black; color: white;","text-transform: uppercase; padding: 5px 0px 5px 0px; background-color: black; color: #a1b83a;","padding: 5px 5px 5px 0px; background-color: black; color: white;","padding: 5px 5px 5px 0px;")}},1808:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,t)||this;return n.experienceGenerated=function(e){var t=e.id;n.setExperienceId(t)},n}return o(t,e),t}(n(917).default);t.default=i},909:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var s=n(9669),c=n(917),u=n(3998),l=n(3447),p=n(4348),f=n(4776).aq,d=window.hls,h=function(e){function t(n,r,o){void 0===o&&(o=f.defaultConfig);var c=e.call(this,n)||this;c.eventDelegateRefs={play:{callback:null,native:!0},pause:{callback:null,native:!0},ended:{callback:null,native:!0},error:{callback:null,native:!0},seeked:{callback:null,native:!0},timeupdate:{callback:null,native:!0},volumechanged:{callback:null,native:!0},muted:{callback:null,native:!1},controlsset:{callback:null,native:!1}},c.hlsSupport="",c.hlsPlayer=null,c.imposiumPlayerConfig=null,c.init=function(e){var t=f.defaultConfig;for(var n in(0,p.prepConfig)(e,t),c.imposiumPlayerConfig=i(i({},t),e),c.imposiumPlayerConfig)c.imposiumPlayerConfig[n]&&(c.node[n]=c.imposiumPlayerConfig[n])},c.experienceGenerated=function(e){var t=c.imposiumPlayerConfig.qualityOverride,n=e.id,r=e.output,o=r.videos,i=r.images,a="";c.setExperienceId(n),i&&i.hasOwnProperty("poster")&&(a=i.poster),t?c.doQualityOverride(o,a):c.doQualityAssessment(o,a)},c.on=function(e,n){var r=c,o=r.storyId,i=r.eventDelegateRefs;try{if(!(0,p.isFunc)(n))throw new l.PlayerConfigurationError("invalidCallbackType",e);if(!(0,p.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var a=i[e];a.callback=n,a.native&&c.node.addEventListener(e,a.callback)}catch(e){u.default.trapError(e,o)}},c.off=function(e){var n=c,r=n.storyId,o=n.eventDelegateRefs;try{if(!(0,p.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var i=o[e];i.native&&c.node.removeEventListener(e,i.callback),i.callback=null}catch(e){u.default.trapError(e,r)}},c.play=function(){c.node.play().catch((function(){console.error("Error playing video")}))},c.pause=function(){c.node.pause()},c.getPlaybackState=function(){return c.node.paused?"paused":"playing"},c.getPosition=function(){return c.node.currentTime},c.getDuration=function(){return c.node.duration},c.seek=function(e){var t=c.node.duration;isNaN(t)?u.default.logWarning("playerFailure","seekNotReady"):(e=Math.floor(e),(0,p.inRangeNumeric)(e,0,t)?c.node.currentTime=e:u.default.logWarning("playerFailure","invalidSeekTime"))},c.getMute=function(){return c.node.muted},c.setMute=function(e){var t=c.eventDelegateRefs.muted.callback;c.node.muted=e,t&&t()},c.getVolume=function(){return c.node.volume},c.setVolume=function(e){var t=f.volumeMin,n=f.volumeMax;e=Math.round(10*e)/10,(0,p.inRangeNumeric)(e,t,n)?c.node.volume=e:u.default.logWarning("playerFailure","invalidVolume")},c.getControls=function(){return c.node.controls},c.setControls=function(e){var t=c.eventDelegateRefs.controlsset;c.node.controls=e,t&&t.callback()},c.replay=function(){c.pauseIfPlaying(),c.node.currentTime=0,c.play()},c.remove=function(){var e,t,n=c.eventDelegateRefs,r=f.defaultConfig;c.pauseIfPlaying();try{for(var o=a(Object.keys(n)),s=o.next();!s.done;s=o.next()){var u=s.value;c.off(n[u])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}c.imposiumPlayerConfig=i({},r),c.node=null},c.setupHls=function(){var e=t.hlsSupportLevels,n=e.NATIVE,r=e.HLSJS;c.node.canPlayType(t.STREAM_TYPE)?c.hlsSupport=n:void 0!==d&&d.isSupported()&&(c.hlsSupport=r)},c.doQualityOverride=function(e,t){var n=c.storyId,r=c.imposiumPlayerConfig.qualityOverride;try{if(!e.hasOwnProperty(r))throw new l.PlayerConfigurationError("badQualityOverride",null);c.setPlayerData(e[r].url,!0,t)}catch(e){u.default.trapError(e,n)}},c.doQualityAssessment=function(e,n){var r=c.hlsSupport,o=t.compressionLevels.STREAM;if(e.hasOwnProperty(o)&&r)c.setPlayerData(e[o].url,!0,n);else{var i=Object.keys(e);1===i.length?c.setPlayerData(e[i[0]].url,!1,n):c.checkBandwidth(e).then((function(t){c.setPlayerData(e[t].url,!1,n)})).catch((function(t){c.setPlayerData(e[t].url,!1,n)}))}},c.sampleBandwidth=function(){var e="".concat(t.TEST_IMAGE,"?bust=").concat(Math.random()),n={responseType:"blob",timeout:1500};return new Promise((function(t,r){var o=(new Date).getTime();s.default.get(e,n).then((function(e){var n=e.data.size;t((0,p.calculateMbps)(o,n))})).catch((function(e){r(e)}))}))},c.checkBandwidth=function(e){for(var n=t.BANDWIDTH_SAMPLES,r=[],o=Object.keys(e).filter((function(e){return"m3u8"!==e})),i=0;i<n;i++)r.push(c.sampleBandwidth());return new Promise((function(t,n){Promise.all(r).then((function(n){var r=(0,p.calculateAverageMbps)(n),i={};o.forEach((function(t){var n=e[t],r=n.width,o=n.height;i[r*o/1e5]=t}));var a=Object.keys(i).map((function(e){return parseFloat(e)})).reduce((function(e,t){return Math.abs(e-r)<Math.abs(t-r)?e:t}));t(i[a])})).catch((function(){n(o.slice(-1).pop())}))}))},c.setPlayerData=function(e,n,r){void 0===r&&(r=null);var o=c.hlsSupport,i=t.hlsSupportLevels.HLSJS;n&&o===i?(c.hlsPlayer&&c.hlsPlayer.destroy(),c.hlsPlayer=new d,c.hlsPlayer.attachMedia(c.node),c.hlsPlayer.loadSource(e)):c.node.src=e,r&&(c.node.poster=r)},c.pauseIfPlaying=function(){c.node.paused||c.node.pause()};var h=!(!r||!r.clientConfig);try{if(!h)throw new l.PlayerConfigurationError("badClient",null);n instanceof HTMLVideoElement&&(r.bindPlayer(c),c.init(o),c.setupHls())}catch(e){var v=h?r.clientConfig.storyId:"";u.default.trapError(e,v)}return c}return o(t,e),t.events={PLAY:"play",PAUSE:"pause",COMPLETE:"ended",ERROR:"error",SEEK:"seeked",TIME:"timeupdate",VOLUME:"volumechange",MUTE:"muted",CONTROLS:"controlsset"},t.STREAM_TYPE=f.streamType,t.BANDWIDTH_SAMPLES=f.bandwidthSamples,t.TEST_IMAGE=f.testImage,t.bandwidthRatings={LOW:f.bandwidth.low,MID:f.bandwidth.mid},t.compressionLevels={STREAM:f.compression.stream,LOW:f.compression.low,MID:f.compression.mid,HIGH:f.compression.high},t.hlsSupportLevels={NATIVE:f.hlsSupportLevels.native,HLSJS:f.hlsSupportLevels.hlsjs},t}(c.default);t.default=h},917:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var i=n(3998),a=n(4479),s=n(3447),c=n(4776).aq,u=function(){function e(t){var n,c,u=this;this.node=null,this.storyId="",this.gaProperty="",this.playbackHandlers=new Map([["play",function(){return u.onPlay()}],["pause",function(){return u.onPause()}],["ended",function(){return u.onEnded()}],["loaded",function(){return u.onLoad()}],["volumechange",function(){return u.onVolumeChange()}]]),this.queuedGACalls=[],this.experienceId="",this.prevPlaybackEvent=0,this.playbackInterval=-1,this.muted=!1,this.remove=function(){var e,t;try{for(var n=r(u.playbackHandlers.entries()),i=n.next();!i.done;i=n.next()){var a=o(i.value,2),s=a[0],c=a[1];u.node.removeEventListener(s,c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},this.setGaProperty=function(e){for(u.gaProperty&&u.gaProperty!==e&&u.queuedGACalls.length>0&&(u.queuedGACalls=[]),u.gaProperty=e;u.queuedGACalls.length;)a.default.send(u.queuedGACalls.pop())},this.setStoryId=function(e){u.storyId=e},this.setExperienceId=function(e){u.experienceId=e},this.emitGAEventAction=function(t){var n=e.GA_EMIT_TYPE,r=e.GA_EMIT_CATEGORY,o=u,i={t:n,tid:o.gaProperty,ec:r,el:o.experienceId,ea:t};u.gaProperty?a.default.send(i):u.queuedGACalls.push(i)},this.onLoad=function(){u.emitGAEventAction("loaded")},this.onVolumeChange=function(){!u.muted&&u.node.muted&&(u.emitGAEventAction("muted"),u.muted=!0),u.muted&&!u.node.muted&&(u.emitGAEventAction("unmuted"),u.muted=!1)},this.onPlay=function(){var t=window.setInterval;clearInterval(u.playbackInterval),u.playbackInterval=t((function(){return u.checkPlayback()}),e.INTERVAL_RATE),u.emitGAEventAction("play")},this.onPause=function(){clearInterval(u.playbackInterval),u.node.duration!==u.node.currentTime&&u.emitGAEventAction("pause")},this.onEnded=function(){clearInterval(u.playbackInterval),u.emitGAEventAction("playback_1"),u.prevPlaybackEvent=0},this.checkPlayback=function(){if(u.node){var t=u.node,n=t.currentTime/t.duration,r=e.PLAYBACK_EVENTS[u.prevPlaybackEvent];n>r&&(u.emitGAEventAction("playback_".concat(r)),u.prevPlaybackEvent++)}else clearInterval(u.playbackInterval)};try{if(!(t instanceof HTMLVideoElement))throw new s.PlayerConfigurationError("invalidPlayerRef",null);try{for(var l=r(this.playbackHandlers.entries()),p=l.next();!p.done;p=l.next()){var f=o(p.value,2),d=f[0],h=f[1];t.addEventListener(d,h)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(c=l.return)&&c.call(l)}finally{if(n)throw n.error}}this.node=t,this.muted=t.muted}catch(e){i.default.trapError(e,this.storyId)}}return e.INTERVAL_RATE=c.checkPlaybackRateMs,e.PLAYBACK_EVENTS=c.playbackEvents,e.GA_EMIT_TYPE="event",e.GA_EMIT_CATEGORY="video_player",e}();t.default=u},4168:e=>{"use strict";e.exports=JSON.parse('{"moderation":{"rejection":"This experience was rejected."},"clientConfiguration":{"badConfig":"Your Imposium configuration is an invalid type.","storyId":"An undefined or invalid storyId was set in your Imposium configuration.","accessToken":"An undefined or invalid accessToken was set in your Imposium configuration.","invalidEventName":"Invalid client event name.","invalidCallbackType":"The callback reference set for this client event is not of type function.","badConfigOnGet":"You cannot call client.getExperience(...) without using the Imposium player or setting the GOT_EXPERIENCE event.","bagConfigOnPostRender":"You cannot call client.createExperience({...}) without using the Imposium player or setting the GOT_EXPERIENCE event.","badConfigOnPostNoRender":"You cannot call client.createExperience({...}, false) without setting the EXPERIENCE_CREATED event."},"playerConfiguration":{"badClient":"You must provide a valid Imposium client reference to the player.","invalidPlayerRef":"No reference to an HTML5 video element was detected.","invalidEventName":"Invalid player event name.","invalidCallbackType":"The callback reference set for this player event is not of type function.","eventNotConfigured":"You cannot invoke this player event without a callback set.","badQualityOverride":"The quality specified does not exist for this experience."},"network":{"httpFailure":"Unable to process request to the Imposium API.","pollTimeout":"Polling timeout exceeded.","tcpFailure":"Socket connection failed while processing the experience.","errorOverTcp":"An error occured on the Imposium web servers while processing the experience.","messageParseFailure":"Message data from Imposium was malformed."},"uncaught":{"generic":"Something unexpected went wrong."}}')},4776:e=>{"use strict";e.exports=JSON.parse('{"Lp":{"uuidLength":36,"defaultConfig":{"accessToken":"","storyId":"","compositionId":"","environment":"production","gaPlacement":"web"},"emptyHistory":{"prevExperienceId":"","prevMessage":""},"clientEmits":{"adding":"Adding job to queue...","added":"Added job to queue...","finishedPolling":"Video ready for viewing."},"eventNames":{"EXPERIENCE_CREATED":"EXPERIENCE_CREATED","UPLOAD_PROGRESS":"UPLOAD_PROGRESS","GOT_EXPERIENCE":"GOT_EXPERIENCE","STATUS_UPDATE":"STATUS_UPDATE","ERROR":"ERROR"}},"hi":{"production":"https://api.imposium.com","staging":"https://api.staging.imposium.com","local":"https://api","currentVersion":"2.0.0","version":"X-Imposium-Api-Version","hmac":"X-Imposium-Access-Key","jwt":"Authorization"},"D_":{"dsn":"https://17ffe982179e4d60a1df2062198d7ade@sentry.io/1411258","projectName":"imposium-js-sdk"},"co":{"exceptionProp":"UA-123315989-1","baseUrl":"https://ssl.google-analytics.com/collect","lsLookup":"imposium_js_ga_cid","gaPropPlaceholder":"[id_placeholder]","cidPlaceholder":"[cid_placeholder]"},"aq":{"defaultConfig":{"volume":1,"preload":"auto","loop":false,"muted":false,"autoLoad":true,"autoPlay":true,"controls":true,"crossOrigin":"anonymous","qualityOverride":null},"testImage":"https://cdn.imposium.com/SampleJPGImage_1mb.jpg","playbackEvents":[0,0.25,0.5,0.75],"checkPlaybackRateMs":100,"volumeMin":0,"volumeMax":1,"bandwidth":{"low":2.4,"mid":8},"compression":{"stream":"m3u8","low":"mp4_480","mid":"mp4_720","high":"mp4_1080"},"bandwidthSamples":5,"hlsSupportLevels":{"native":"native","hlsjs":"hls-js"},"streamType":"application/vnd.apple.mpegurl"}}')},3199:e=>{"use strict";e.exports=JSON.parse('{"client":{"nodeAnalytics":"Sorry, analytics are not currently available in NodeJS."},"network":{"tcpFailure":"Unable to reach Imposium while processing this experience, retrying..."},"playerFailure":{"seekNotReady":"Seek can\'t be called until the video metadata has loaded, please try again shortly.","invalidSeekTime":"Could not seek to time outside of current video duration.","invalidVolume":"Could not set volume outside of range (double) 0.0 - 1.0."},"analytics":{"requestFailed":"Failed to record Imposium metric."}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(2081)})()}));
|
|
3
3
|
//# sourceMappingURL=imposium.min.js.map
|
|
@@ -13,4 +13,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
|
-
/*! IMPOSIUM-JS-SDK | Version 3.2.
|
|
16
|
+
/*! IMPOSIUM-JS-SDK | Version 3.2.4 */
|