/*! For license information please see ad-viewer-vendors.0e0bf603.js.LICENSE.txt */ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3c67094a-d39d-406f-8570-cd6b6a476648",e._sentryDebugIdIdentifier="sentry-dbid-3c67094a-d39d-406f-8570-cd6b6a476648")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"64827e5b44a406d4dac6937ad7884ea5c22015a7"},(self.webpackChunkunity_ads_sdk_webview=self.webpackChunkunity_ads_sdk_webview||[]).push([[225],{14431:function(e,t,n){"use strict";n.d(t,{gE:function(){return de}}),n(92075),n(20462),n(11397),n(53133),n(86102),n(49922),n(20144),n(79730),n(7300),n(9347),n(48298),n(74837),n(66964),n(99143),n(3960),n(99029),n(95929),n(62141);var r=n(97962),i=n(22226),o=(n(2870),n(17326),n(81688),n(79537),new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$")),a=n(63319),u=n(13471),s=(n(24987),n(78291),n(1645),n(19349),n(21852),n(47977),n(77225),n(38428));function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("Not adding key: ".concat(i," with val: ").concat(o," to baggage header due to exceeding baggage size limits.")),e):s}),"")}(Object.entries(e).reduce((function(e,t){var n=l(t,2),r=n[0],i=n[1];return i&&(e["".concat(v).concat(r)]=i),e}),{}))}function b(e){return e.split(",").map((function(e){return e.split("=").map((function(e){return decodeURIComponent(e.trim())}))})).reduce((function(e,t){var n=l(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}var _=n(33459),w=n(34779).n2;n(42972);var S=n(21795),k=function(e,t,n){var r,i;return function(o){t.value>=0&&(o||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},E=function(){return w.__WEB_VITALS_POLYFILL__?w.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||function(){var e=w.performance.timing,t=w.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(var r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n}()):w.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},O=function(){var e=E();return e&&e.activationStart||0},T=function(e,t){var n=E(),r="navigate";return n&&(r=w.document.prerendering||O()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},x=(n(6035),n(60923),function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}}),j=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==w.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},A=-1,R=function(){return A<0&&(A="hidden"!==w.document.visibilityState||w.document.prerendering?1/0:0,j((function(e){var t=e.timeStamp;A=t}),!0)),{get firstHiddenTime(){return A}}},P={};function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}n(51216);var C=["startTimestamp"];function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===N(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){return"number"==typeof e&&isFinite(e)}function U(e,t){var n=t.startTimestamp,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,C);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild(function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn.value&&(n.value=r,n.entries=i,t&&t())}}))},a=x("layout-shift",o);if(a){t=k((function(e){var t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Measurements] Adding CLS"),$.cls={value:e.value,unit:""},V=t)}),n);var s=function(){o(a.takeRecords()),t(!0)};return j(s),s}}(),l=function(e){var t,n=R(),r=T("LCP"),i=function(e){var i=e[e.length-1];if(i){var o=Math.max(i.startTime-O(),0);oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(w&&w.location){var r,i=w.location.href;t&&(r=e({name:w.location.pathname,startTimestamp:S.Z1,op:"pageload",metadata:{source:"url"}})),n&&(0,K.oq)("history",(function(t){var n=t.to,o=t.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Tracing] Finishing current transaction with op: ".concat(r.op)),r.finish()),r=e({name:w.location.pathname,op:"navigation",metadata:{source:"url"}}))}))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}},oe),de=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.prototype.__init.call(this),(0,i.T)(),this.options=ce(ce({},pe),t),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=H(),this.options.enableLongTask&&x("longtask",(function(e){var t,n=B(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=(0,a.x1)();if(!i)return;var o=F(S.Z1+r.startTime),u=F(r.duration);i.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:o,endTimestamp:o+u})}}catch(e){n.e(e)}finally{n.f()}})),this.options._experiments.enableInteractions&&x("event",(function(e){var t,n=B(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=(0,a.x1)();if(!i)return;if("click"===r.name){var o=F(S.Z1+r.startTime),u=F(r.duration);i.startChild({description:(0,_.Rt)(r.target),op:"ui.interaction.".concat(r.name),startTimestamp:o,endTimestamp:o+u})}}}catch(e){n.e(e)}finally{n.f()}}),{durationThreshold:0})}var t,n;return t=e,n=[{key:"__init",value:function(){this.name="BrowserTracing"}},{key:"setupOnce",value:function(e,t){var n=this;this._getCurrentHub=t;var r=this.options,i=r.routingInstrumentation,o=r.startTransactionOnLocationChange,c=r.startTransactionOnPageLoad,l=r.markBackgroundTransactions,f=r.traceFetch,p=r.traceXHR,d=r.tracePropagationTargets,h=r.shouldCreateSpanForRequest,v=r._experiments;i((function(e){var r=n._createRouteTransaction(e);return n.options._experiments.onStartRouteTransaction&&n.options._experiments.onStartRouteTransaction(r,e,t),r}),c,o),l&&(w&&w.document?w.document.addEventListener("visibilitychange",(function(){var e=(0,a.x1)();if(w.document.hidden&&e){var t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(e.op)),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),v.enableInteractions&&this._registerInteractionListener(),function(e){var t=ne({traceFetch:oe.traceFetch,traceXHR:oe.traceXHR},e),n=t.traceFetch,r=t.traceXHR,i=t.tracePropagationTargets,o=t.tracingOrigins,a=t.shouldCreateSpanForRequest,u="function"==typeof a?a:function(e){return!0},c=function(e){return function(e,t){return(0,Q.U0)(e,t||ie)}(e,i||o)},l={};n&&(0,K.oq)("fetch",(function(e){!function(e,t,n,r){if((0,W.z)()&&e.fetchData&&t(e.fetchData.url))if(e.endTimestamp){var i=e.fetchData.__span;if(!i)return;var o=r[i];o&&(e.response?o.setHttpStatus(e.response.status):e.error&&o.setStatus("internal_error"),o.finish(),delete r[i])}else{var a=(0,J.Gd)().getScope(),u=a&&a.getSpan(),c=u&&u.transaction;if(u&&c){var l=u.startChild({data:ne(ne({},e.fetchData),{},{type:"fetch"}),description:"".concat(e.fetchData.method," ").concat(e.fetchData.url),op:"http.client"});e.fetchData.__span=l.spanId,r[l.spanId]=l;var f=e.args[0];e.args[1]=e.args[1]||{};var p=e.args[1];n(e.fetchData.url)&&(p.headers=function(e,t,n,r){var i=g(t),o=n.toTraceparent(),a="undefined"!=typeof Request&&(0,s.V9)(e,Request)?e.headers:r.headers;if(a){if("undefined"!=typeof Headers&&(0,s.V9)(a,Headers)){var u=new Headers(a);return u.append("sentry-trace",o),i&&u.append(y,i),u}if(Array.isArray(a)){var c=[].concat(Z(a),[["sentry-trace",o]]);return i&&c.push([y,i]),c}var l="baggage"in a?a.baggage:void 0,f=[];return Array.isArray(l)?f.push.apply(f,Z(l)):l&&f.push(l),i&&f.push(i),ne(ne({},a),{},{"sentry-trace":o,baggage:f.length>0?f.join(","):void 0})}return{"sentry-trace":o,baggage:i}}(f,c.getDynamicSamplingContext(),l,p))}}}(e,u,c,l)})),r&&(0,K.oq)("xhr",(function(e){!function(e,t,n,r){var i=e.xhr,o=i&&i[K.xU];if(!(!(0,W.z)()||i&&i.__sentry_own_request__)&&i&&o&&t(o.url))if(e.endTimestamp){var a=i.__sentry_xhr_span_id__;if(!a)return;var u=r[a];u&&(u.setHttpStatus(o.status_code),u.finish(),delete r[a])}else{var s=(0,J.Gd)().getScope(),c=s&&s.getSpan(),l=c&&c.transaction;if(c&&l){var f=c.startChild({data:ne(ne({},o.data),{},{type:"xhr",method:o.method,url:o.url}),description:"".concat(o.method," ").concat(o.url),op:"http.client"});if(i.__sentry_xhr_span_id__=f.spanId,r[i.__sentry_xhr_span_id__]=f,i.setRequestHeader&&n(o.url))try{i.setRequestHeader("sentry-trace",f.toTraceparent());var p=g(l.getDynamicSamplingContext());p&&i.setRequestHeader(y,p)}catch(e){}}}}(e,u,c,l)}))}({traceFetch:f,traceXHR:p,tracePropagationTargets:d,shouldCreateSpanForRequest:h})}},{key:"_createRouteTransaction",value:function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,a=n.idleTimeout,c=n.finalTimeout,f=n.heartbeatInterval,p="pageload"===e.op,h=p?he("sentry-trace"):null,y=p?he("baggage"):null,g=h?function(e){var t,n=e.match(o);if(e&&n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(h):void 0,k=y?function(e){if((0,s.HD)(e)||Array.isArray(e)){var t={};if(Array.isArray(e))t=e.reduce((function(e,t){var n=b(t);return d(d({},e),n)}),{});else{if(!e)return;t=b(e)}var n=Object.entries(t).reduce((function(e,t){var n=l(t,2),r=n[0],i=n[1];return r.match(m)&&(e[r.slice(v.length)]=i),e}),{});return Object.keys(n).length>0?n:void 0}}(y):void 0,E=ce(ce(ce({},e),g),{},{metadata:ce(ce({},e.metadata),{},{dynamicSamplingContext:g&&!k?{}:k}),trimEnd:!0}),O="function"==typeof r?r(E):E,T=void 0===O?ce(ce({},E),{},{sampled:!1}):O;T.metadata=T.name!==E.name?ce(ce({},T.metadata),{},{source:"custom"}):T.metadata,this._latestRouteName=T.name,this._latestRouteSource=T.metadata&&T.metadata.source,!1===T.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Tracing] Will not send ".concat(T.op," transaction because of beforeNavigate.")),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Tracing] Starting ".concat(T.op," transaction on scope"));var x=this._getCurrentHub(),j=w.location,A=(0,i.l)(x,T,a,c,!0,{location:j},f);return A.registerBeforeFinishCallback((function(e){t._collectWebVitals(),function(e){var t=z();if(t&&w.performance.getEntries&&S.Z1){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i=F(S.Z1),o=t.getEntries();if(o.slice(Y).forEach((function(t){var o=F(t.startTime),a=F(t.duration);if(!("navigation"===e.op&&i+o=e.startTimestamp)){var n=$[t].value,r=i+F(n),o=Math.abs(1e3*(r-e.startTimestamp)),a=o-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Measurements] Normalized ".concat(t," from ").concat(n," to ").concat(o," (").concat(a,")")),$[t].value=o}}));var a=$["mark.fid"];a&&$.fid&&(U(e,{description:"first input delay",endTimestamp:a.value+F($.fid.value),op:"ui.action",startTimestamp:a.value}),delete $["mark.fid"]),"fcp"in $||delete $.cls,Object.keys($).forEach((function(t){e.setMeasurement(t,$[t].value,$[t].unit)})),function(e){G&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Measurements] Adding LCP Data"),G.element&&e.setTag("lcp.element",(0,_.Rt)(G.element)),G.id&&e.setTag("lcp.id",G.id),G.url&&e.setTag("lcp.url",G.url.trim().slice(0,200)),e.setTag("lcp.size",G.size)),V&&V.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("[Measurements] Adding CLS Data"),V.sources.forEach((function(t,n){return e.setTag("cls.source.".concat(n+1),(0,_.Rt)(t.node))})))}(e)}G=void 0,V=void 0,$={}}}(e)})),A}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid."))}},{key:"_registerInteractionListener",value:function(){var e,t=this,n=function(){var n=t.options,r=n.idleTimeout,o=n.finalTimeout,s=n.heartbeatInterval,c="ui.action.click",l=(0,a.x1)();if(l&&l.op&&["navigation","pageload"].includes(l.op))("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("[Tracing] Did not create ".concat(c," transaction because a pageload or navigation transaction is in progress."));else if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),t._getCurrentHub)if(t._latestRouteName){var f=t._getCurrentHub(),p=w.location,d={name:t._latestRouteName,op:c,trimEnd:!0,metadata:{source:t._latestRouteSource||"url"}};e=(0,i.l)(f,d,r,o,!0,{location:p},s)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("[Tracing] Did not create ".concat(c," transaction because _latestRouteName is missing."));else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("[Tracing] Did not create ".concat(c," transaction because _getCurrentHub is invalid."))};["click"].forEach((function(e){addEventListener(e,n,{once:!1,capture:!0})}))}}],n&&ue(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function he(e){var t=(0,_.qT)("meta[name=".concat(e,"]"));return t?t.getAttribute("content"):null}},6616:function(e,t,n){"use strict";n.d(t,{S1:function(){return Dr}}),n(11397),n(53133),n(86102),n(49922),n(20462),n(20144),n(79730),n(7300),n(9347),n(48298),n(74837),n(66964),n(99143),n(3960),n(99029),n(95929),n(62141),n(47977),n(77225),n(1645),n(17326);var r=n(13471),i=n(57020),o=n(67525);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this._options=t,e.prototype.__init.call(this)}var t,n,u;return t=e,n=[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(t,n){var u=function(t){var u=n();if(u){var s=u.getIntegration(e);if(s){var c=u.getClient(),l=c?c.getOptions():{},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat(a(e.allowUrls||[]),a(t.allowUrls||[])),denyUrls:[].concat(a(e.denyUrls||[]),a(t.denyUrls||[])),ignoreErrors:[].concat(a(e.ignoreErrors||[]),a(t.ignoreErrors||[]),f),ignoreTransactions:[].concat(a(e.ignoreTransactions||[]),a(t.ignoreTransactions||[])),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(s._options,l);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,i.jH)(e))),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,o=void 0===n?"":n,a=t.value,u=void 0===a?"":a;return["".concat(u),"".concat(o,": ").concat(u)]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Cannot extract message for event ".concat((0,i.jH)(e))),[]}return[]}(e).some((function(e){return(0,o.U0)(e,t)}))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,i.jH)(e))),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;var n=e.transaction;return!!n&&(0,o.U0)(n,t)}(e,t.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat((0,i.jH)(e))),!0):function(e,t){if(!t||!t.length)return!1;var n=d(e);return!!n&&(0,o.U0)(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,i.jH)(e),".\nUrl: ").concat(d(e))),!0):!function(e,t){if(!t||!t.length)return!0;var n=d(e);return!n||(0,o.U0)(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,i.jH)(e),".\nUrl: ").concat(d(e))),!0)}(t,p)?null:t}}return t};u.id=this.name,t(u)}}],u=[{key:"__initStatic",value:function(){this.id="InboundFilters"}}],n&&l(t.prototype,n),u&&l(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}();function d(e){try{var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Cannot extract url for event ".concat((0,i.jH)(e))),null}}p.__initStatic();var h,y=n(86146);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"warn";return C(this,o),(t=i.call(this,e)).message=e,t.name=(this instanceof o?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf(I(t),(this instanceof o?this.constructor:void 0).prototype),t.logLevel=n,t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r}(L(Error));function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],n=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId,u=e.protocol,s=e.publicKey;return"".concat(u,"://").concat(s).concat(t&&i?":".concat(i):"")+"@".concat(n).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function $(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function H(e){var t="string"==typeof e?function(e){var t=V.exec(e);if(!t)throw new z("Invalid Sentry Dsn: ".concat(e));var n,r,i=(n=t.slice(1),r=6,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(n,r)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1],u=i[2],s=void 0===u?"":u,c=i[3],l=i[4],f=void 0===l?"":l,p="",d=i[5],h=d.split("/");if(h.length>1&&(p=h.slice(0,-1).join("/"),d=h.pop()),d){var y=d.match(/^\d+/);y&&(d=y[0])}return $({host:c,pass:s,path:p,projectId:d,port:f,protocol:o,publicKey:a})}(e):$(e);return function(e){if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new z("Invalid Sentry Dsn: ".concat(t," missing"))})),!n.match(/^\d+$/))throw new z("Invalid Sentry Dsn: Invalid projectId ".concat(n));if(!function(e){return"http"===e||"https"===e}(r))throw new z("Invalid Sentry Dsn: Invalid protocol ".concat(r));if(t&&isNaN(parseInt(t,10)))throw new z("Invalid Sentry Dsn: Invalid port ".concat(t))}}(t),t}var q=n(38428),W=n(81753);function J(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return te("",e,t,n)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,r=Z(e,t);return re(r)>n?ee(e,t-1,n):r}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:J(),o=Q(i,2),a=o[0],u=o[1];if(null===t||["number","boolean","string"].includes(K(t))&&!(0,q.i2)(t))return t;var s=ne(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;var c=n;if("number"==typeof t.__sentry_override_normalization_depth__&&(c=t.__sentry_override_normalization_depth__),0===c)return s.replace("object ","");if(a(t))return"[Circular ~]";var l=t;if(l&&"function"==typeof l.toJSON)try{var f=l.toJSON();return te("",f,c-1,r,i)}catch(e){}var p=Array.isArray(t)?[]:{},d=0,h=(0,y.Sh)(t);for(var v in h)if(Object.prototype.hasOwnProperty.call(h,v)){if(d>=r){p[v]="[MaxProperties ~]";break}var m=h[v];p[v]=te(v,m,c-1,r,i),d++}return u(t),p}function ne(e,t){try{return"domain"===e&&t&&"object"===K(t)&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,q.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: ".concat((0,j.$P)(t),"]"):"symbol"===K(t)?"[".concat(String(t),"]"):"bigint"==typeof t?"[BigInt: ".concat(String(t),"]"):"[object ".concat(function(e){var t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t),"]")}catch(e){return"**non-serializable** (".concat(e,")")}}function re(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){if(e){if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function de(e,t){var n,r=ce(e,2),i=r[0],o=r[1];return[i,[].concat((n=o,function(e){if(Array.isArray(e))return fe(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||le(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t])]}function he(e,t){var n,r=se(e[1]);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(t(i,i[0].type))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}function ye(e,t){return(t||new TextEncoder).encode(e)}function ve(e,t){var n=ce(e,2),r=n[0],i=n[1],o=JSON.stringify(r);function a(e){"string"==typeof o?o="string"==typeof e?o+e:[ye(o,t),e]:o.push("string"==typeof e?ye(e,t):e)}var u,s=se(i);try{for(s.s();!(u=s.n()).done;){var c=ce(u.value,2),l=c[0],f=c[1];if(a("\n".concat(JSON.stringify(l),"\n")),"string"==typeof f||f instanceof Uint8Array)a(f);else{var p=void 0;try{p=JSON.stringify(f)}catch(e){p=JSON.stringify(Z(f))}a(p)}}}catch(e){s.e(e)}finally{s.f()}return"string"==typeof o?o:function(e){var t,n=e.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),i=0,o=se(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;r.set(a,i),i+=a.length}}catch(e){o.e(e)}finally{o.f()}return r}(o)}function me(e,t){var n="string"==typeof e.data?ye(e.data,t):e.data;return[(0,y.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}n(92075),n(6035),n(36131),n(39211),n(97362),n(80717),n(5883),n(82982),n(24472),n(16719),n(17416),n(58860),n(99055),n(65946),n(97993),n(50502),n(32580),n(49788),n(2752),n(75438),n(89006),n(79100),n(84939),n(73472),n(55134),n(9101),n(24987),n(42026),n(42972),n(25065),n(59619),n(17867),n(36971);var ge={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function be(e){return ge[e]}function _e(e){if(e&&e.sdk){var t=e.sdk;return{name:t.name,version:t.version}}}function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==we(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===we(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return"".concat(function(e){var t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}(e)).concat(e.projectId,"/envelope/")}function Oe(e,t){return(0,y._j)(function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function He(e,t){if(e){if("string"==typeof e)return qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||"".concat(Ee(e),"?").concat(Oe(e,r))}(this._dsn,t);this._transport=t.transport(Je(Je({recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{},{url:n}))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("No DSN provided, client will not do anything.")}var t,n;return t=e,n=[{key:"__init",value:function(){this._integrations={}}},{key:"__init2",value:function(){this._integrationsInitialized=!1}},{key:"__init3",value:function(){this._numProcessing=0}},{key:"__init4",value:function(){this._outcomes={}}},{key:"__init5",value:function(){this._hooks={}}},{key:"captureException",value:function(e,t,n){var o=this;if(!(0,i.YO)(e)){var a=t&&t.event_id;return this._process(this.eventFromException(e,t).then((function(e){return o._captureEvent(e,t,n)})).then((function(e){a=e}))),a}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(Ze)}},{key:"captureMessage",value:function(e,t,n,r){var i=this,o=n&&n.event_id,a=(0,q.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o}},{key:"captureEvent",value:function(e,t,n){if(!(t&&t.originalException&&(0,i.YO)(t.originalException))){var o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){o=e}))),o}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(Ze)}},{key:"captureSession",value:function(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Ce.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("SDK not enabled, will not capture session.")}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getSdkMetadata",value:function(){return this._options._metadata}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((function(n){return t.flush(e).then((function(e){return n&&e}))})):(0,W.WD)(!0)}},{key:"close",value:function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))}},{key:"setupIntegrations",value:function(){var e,t;this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(e=this._options.integrations,t={},e.forEach((function(e){e&&T(e,t)})),t),this._integrationsInitialized=!0)}},{key:"getIntegrationById",value:function(e){return this._integrations[e]}},{key:"getIntegration",value:function(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}},{key:"addIntegration",value:function(e){T(e,this._integrations)}},{key:"sendEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._dsn){var r,i=Ne(e,this._dsn,this._options._metadata,this._options.tunnel),o=$e(n.attachments||[]);try{for(o.s();!(r=o.n()).done;){var a=r.value;i=de(i,me(a,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(e){o.e(e)}finally{o.f()}var u=this._sendEnvelope(i);u&&u.then((function(n){return t.emit("afterSendEvent",e,n)}),null)}}},{key:"sendSession",value:function(e){if(this._dsn){var t=function(e,t,n,r){var i=_e(n);return pe(je(je({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&{dsn:Y(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}},{key:"recordDroppedEvent",value:function(e,t,n){if(this._options.sendClientReports){var i="".concat(e,":").concat(t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log('Adding outcome: "'.concat(i,'"')),this._outcomes[i]=this._outcomes[i]+1||1}}},{key:"on",value:function(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=e&&(clearInterval(i),n(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}},{key:"_prepareEvent",value:function(e,t,n){var r=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),function(e,t,n,r){var a=e.normalizeDepth,u=void 0===a?3:a,s=e.normalizeMaxBreadth,c=void 0===s?1e3:s,l=ze(ze({},t),{},{event_id:t.event_id||n.event_id||(0,i.DM)(),timestamp:t.timestamp||(0,De.yW)()}),f=n.integrations||e.integrations.map((function(e){return e.name}));!function(e,t){var n=t.environment,r=t.release,i=t.dist,a=t.maxValueLength,u=void 0===a?250:a;"environment"in e||(e.environment="environment"in t?n:Le.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,o.$G)(e.message,u));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,u));var c=e.request;c&&c.url&&(c.url=(0,o.$G)(c.url,u))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat(Be(e.sdk.integrations||[]),Be(t)))}(l,f),void 0===t.type&&function(e,t){var n,r=Ie.n2._sentryDebugIds;if(r){var i=Ve.get(t);i?n=i:(n=new Map,Ve.set(t,n));var o=Object.keys(r).reduce((function(e,i){var o,a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(var u=o.length-1;u>=0;u--){var s=o[u];if(s.filename){e[s.filename]=r[i];break}}return e}),{}),a=new Set;try{e.exception.values.forEach((function(e){e.stacktrace.frames.forEach((function(e){e.filename&&a.add(e.filename)}))}))}catch(e){}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var u=e.debug_meta.images;a.forEach((function(e){o[e]&&u.push({type:"sourcemap",code_file:e,debug_id:o[e]})}))}}(l,e.stackParser);var p=r;n.captureContext&&(p=_.s.clone(p).update(n.captureContext));var d=(0,W.WD)(l);if(p){if(p.getAttachments){var h=[].concat(Be(n.attachments||[]),Be(p.getAttachments()));h.length&&(n.attachments=h)}d=p.applyToEvent(l,n)}return d.then((function(e){return"number"==typeof u&&u>0?function(e,t,n){if(!e)return null;var r=ze(ze(ze(ze(ze({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return ze(ze({},e),e.data&&{data:Z(e.data,t,n)})}))}),e.user&&{user:Z(e.user,t,n)}),e.contexts&&{contexts:Z(e.contexts,t,n)}),e.extra&&{extra:Z(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Z(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((function(e){return e.data&&(e.data=Z(e.data,t,n)),e}))),r}(e,u,c):e}))}(r,e,t,n)}},{key:"_captureEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?r.kg.log(t.message):r.kg.warn(t)}}))}},{key:"_processEvent",value:function(e,t,n){var r=this,i=this.getOptions(),o=i.sampleRate;if(!this._isEnabled())return(0,W.$2)(new z("SDK not enabled, will not capture event.","log"));var a=nt(e),u=tt(e),s=e.type||"error",c="before send for type `".concat(s,"`");if(u&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),(0,W.$2)(new z("Discarding event because it's not included in the random sample (sampling rate = ".concat(o,")"),"log"));var l="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((function(n){if(null===n)throw r.recordDroppedEvent("event_processor",l,e),new z("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;var o=function(e,t,n){var r=e.beforeSend,i=e.beforeSendTransaction;return tt(t)&&r?r(t,n):nt(t)&&i?i(t,n):t}(i,n,t);return function(e,t){var n="".concat(t," must return `null` or a valid event.");if((0,q.J8)(e))return e.then((function(e){if(!(0,q.PO)(e)&&null!==e)throw new z(n);return e}),(function(e){throw new z("".concat(t," rejected with ").concat(e))}));if(!(0,q.PO)(e)&&null!==e)throw new z(n);return e}(o,c)})).then((function(i){if(null===i)throw r.recordDroppedEvent("before_send",l,e),new z("".concat(c," returned `null`, will not send event."),"log");var o=n&&n.getSession();!a&&o&&r._updateSessionFromEvent(o,i);var u=i.transaction_info;return a&&u&&i.transaction!==e.transaction&&(i.transaction_info=Je(Je({},u),{},{source:"custom"})),r.sendEvent(i,t),i})).then(null,(function(e){if(e instanceof z)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new z("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}},{key:"_process",value:function(e){var t=this;this._numProcessing++,e.then((function(e){return t._numProcessing--,e}),(function(e){return t._numProcessing--,e}))}},{key:"_sendEnvelope",value:function(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(function(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Transport disabled")}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((function(t){var n,r,i=(n=t.split(":"),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(n,r)||He(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{reason:i[0],category:i[1],quantity:e[t]}}))}}],n&&Qe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tt(e){return void 0===e.type}function nt(e){return"transaction"===e.type}var rt=n(68659);function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=r&&r.syntheticException||void 0,a=yt(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,W.WD)(a)}function ht(e,t,n,r,o){var a;if((0,q.VW)(t)&&t.error)return ct(e,t.error);if((0,q.TX)(t)||(0,q.fm)(t)){var u=t;if("stack"in t)a=ct(e,t);else{var s=u.name||((0,q.TX)(u)?"DOMError":"DOMException"),c=u.message?"".concat(s,": ").concat(u.message):s;a=yt(e,c,n,r),(0,i.Db)(a,c)}return"code"in u&&(a.tags=at(at({},a.tags),{},{"DOMException.code":"".concat(u.code)})),a}return(0,q.VZ)(t)?ct(e,t):(0,q.PO)(t)||(0,q.cO)(t)?(a=function(e,t,n,r){var i=(0,b.Gd)().getClient(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,q.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error ".concat(r?"promise rejection":"exception"," captured with keys: ").concat((0,y.zf)(t))}]},extra:{__serialized__:ee(t,o)}};if(n){var u=lt(e,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}(e,t,n,o),(0,i.EG)(a,{synthetic:!0}),a):(a=yt(e,t,n,r),(0,i.Db)(a,"".concat(t),void 0),(0,i.EG)(a,{synthetic:!0}),a)}function yt(e,t,n,r){var i={message:t};if(r&&n){var o=lt(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}var vt=n(92928);function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t0}function Et(){St++,setTimeout((function(){St--}))}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,y.HK)(e))return e}catch(t){return e}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return Ot(e,t)}));return e.apply(this,o)}catch(e){throw Et(),(0,vt.$e)((function(n){n.addEventProcessor((function(e){return t.mechanism&&((0,i.Db)(e,void 0,void 0),(0,i.EG)(e,t.mechanism)),e.extra=bt(bt({},e.extra),{},{arguments:r}),e})),(0,vt.Tb)(e)})),e}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a])}catch(e){}(0,y.$Q)(o,e),(0,y.xp)(e,"__sentry_wrapped__",o);try{var u=Object.getOwnPropertyDescriptor(o,"name");u.configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(e){}return o}var Tt=n(33459),xt=["fatal","error","warning","log","info","debug"];function jt(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],search:n,hash:r,relative:t[5]+n+r}}function At(e){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At(e)}function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;tIt&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("`dom.maxStringLength` cannot exceed ".concat(It,", but a value of ").concat(o," was configured. Sentry will use ").concat(It," instead.")),o=It),"string"==typeof i&&(i=[i]);try{var a=t.event;n=function(e){return e&&!!e.target}(a)?(0,Tt.Rt)(a.target,{keyAttrs:i,maxStringLength:o}):(0,Tt.Rt)(a,{keyAttrs:i,maxStringLength:o})}catch(e){n=""}0!==n.length&&(0,b.Gd)().addBreadcrumb({category:"ui.".concat(t.name),message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&(0,R.oq)("xhr",Mt),this.options.fetch&&(0,R.oq)("fetch",Ft),this.options.history&&(0,R.oq)("history",zt)}},{key:"addSentryBreadcrumb",value:function(e){this.options.sentry&&(0,b.Gd)().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,i.jH)(e)},{event:e})}}])&&Ct(t.prototype,n),o&&Ct(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bt(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return dt(this._options.stackParser,e,t,n,this._options.attachStacktrace)}},{key:"sendEvent",value:function(e,t){var n=this.getIntegrationById(Lt);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),Wt(Xt(s.prototype),"sendEvent",this).call(this,e,t)}},{key:"captureUserFeedback",value:function(e){if(this._isEnabled()){var t=function(e,t){var n=t.metadata,r=t.tunnel,i=t.dsn,o=Yt(Yt({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}}),!!r&&!!i&&{dsn:Y(i)}),a=function(e){return[{type:"user_report"},e]}(e);return pe(o,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("SDK not enabled, will not capture user feedback.")}},{key:"_prepareEvent",value:function(e,t,n){return e.platform=e.platform||"javascript",Wt(Xt(s.prototype),"_prepareEvent",this).call(this,e,t,n)}},{key:"_flushOutcomes",value:function(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Sending outcomes:",e);var t,n,i=(t=e,pe((n=this._options.tunnel&&Y(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,De.yW)(),discarded_events:t}]]));this._sendEnvelope(i)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("No outcomes to send")}}],n&&qt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(et);function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?t:(0,Tt.l4)();return 0===s.length&&s.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function pn(e,t,n,r){(0,i.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function dn(){var e=(0,b.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}function hn(e){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hn(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e,t,n){return(t=gn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};jn(this,e),e.prototype.__init.call(this),this._key=t.key||Rn,this._limit=t.limit||5}var t,n,r;return t=e,r=[{key:"__initStatic",value:function(){this.id="LinkedErrors"}}],(n=[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var t=(0,b.Gd)().getClient();t&&(0,_.c)((function(n,r){var i=(0,b.Gd)().getIntegration(e);return i?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&(0,q.V9)(i.originalException,Error)))return r;var o=Nn(e,n,i.originalException,t);return r.exception.values=[].concat(On(o),On(r.exception.values)),r}(t.getOptions().stackParser,i._key,i._limit,n,r):n}))}}])&&An(t.prototype,n),r&&An(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Nn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!(0,q.V9)(n[r],Error)||i.length+1>=t)return i;var o=st(e,n[r]);return Nn(e,t,n[r],r,[o].concat(On(i)))}function Cn(e){return Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cn(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xn=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,er=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nr=[[30,function(e){var t=Qn.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Xn.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=qn(ir(t[1]||Jn,t[2]),2),i=r[0];return Kn(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Zn.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=er.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||Jn,o=qn(ir(i,r),2);return i=o[0],Kn(r=o[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=tr.exec(e);return t?Kn(t[2],t[1]||Jn,+t[3],t[4]?+t[4]:void 0):void 0}]],rr=j.pE.apply(void 0,nr),ir=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]:Jn,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function or(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length0&&n(!1)}),e);t.forEach((function(e){(0,W.WD)(e).then((function(){--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function ar(e){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ar(e)}function ur(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||cr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=cr(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function cr(e,t){if(e){if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lr(e,t):void 0}}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;var r=Date.parse("".concat(e));return isNaN(r)?6e4:r-t}function yr(e,t){return e[t]||e.all||0}function vr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return yr(e,t)>n}function mr(e,t){var n=t.statusCode,r=t.headers,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),o=pr({},e),a=r&&r["x-sentry-rate-limits"],u=r&&r["retry-after"];if(a){var s,c=sr(a.trim().split(","));try{for(c.s();!(s=c.n()).done;){var l=s.value,f=l.split(":",2),p=ur(f,2),d=p[0],h=p[1],y=parseInt(d,10),v=1e3*(isNaN(y)?60:y);if(h){var m,g=sr(h.split(";"));try{for(g.s();!(m=g.n()).done;){var b=m.value;o[b]=i+v}}catch(e){g.e(e)}finally{g.f()}}else o.all=i+v}}catch(e){c.e(e)}finally{c.f()}}else u?o.all=i+hr(u,i):429===n&&(o.all=i+6e4);return o}function gr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:or(e.bufferSize||30),i={},o=function(e){return n.drain(e)};function a(o){var a=[];if(he(o,(function(t,n){var r=be(n);if(vr(i,r)){var o=br(t,n);e.recordDroppedEvent("ratelimit_backoff",r,o)}else a.push(t)})),0===a.length)return(0,W.WD)();var u=pe(o[0],a),s=function(t){he(u,(function(n,r){var i=br(n,r);e.recordDroppedEvent(t,be(r),i)}))};return n.add((function(){return t({body:ve(u,e.textEncoder)}).then((function(e){return void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),i=mr(i,e),e}),(function(e){throw s("network_error"),e}))})).then((function(e){return e}),(function(e){if(e instanceof z)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,W.WD)();throw e}))}return a.__sentry__baseTransport__=!0,{send:a,flush:o}}function br(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}n(21852);var _r=void 0;function wr(){if(_r)return _r;if((0,A.Du)(wt.fetch))return _r=wt.fetch.bind(wt);var e=wt.document,t=wt.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return _r=t.bind(wt)}function Sr(){_r=void 0}function kr(e){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(e)}function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:wr(),n=0,r=0;function i(i){var o=i.body.length;n+=o,r++;var a=Or({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{return t(e.url,a).then((function(e){return n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}))}catch(e){return Sr(),n-=o,r--,(0,W.$2)(e)}}return gr(e,i)}function jr(e){return gr(e,(function(t){return new W.cW((function(n,r){var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=function(){4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};void 0===e.defaultIntegrations&&(e.defaultIntegrations=Cr),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),wt.SENTRY_RELEASE&&wt.SENTRY_RELEASE.id&&(e.release=wt.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var t=Pr(Pr({},e),{},{stackParser:(0,j.Sq)(e.stackParser||rr),integrations:O(e),transport:e.transport||((0,A.Ak)()?xr:jr)});x(Zt,t),e.autoSessionTracking&&Lr()}function Ir(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function Lr(){if(void 0!==wt.document){var e=(0,b.Gd)();e.captureSession&&(Ir(e),(0,R.oq)("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&Ir((0,b.Gd)())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}},56087:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r="production"},92928:function(e,t,n){"use strict";n.d(t,{$e:function(){return o},Tb:function(){return i}}),n(11397),n(53133),n(86102),n(49922),n(20462),n(20144),n(79730),n(7300),n(9347),n(48298),n(74837),n(66964),n(99143),n(3960),n(99029),n(95929),n(62141);var r=n(37578);function i(e,t){return(0,r.Gd)().captureException(e,{captureContext:t})}function o(e){(0,r.Gd)().withScope(e)}},37578:function(e,t,n){"use strict";n.d(t,{Gd:function(){return _},cu:function(){return g}}),n(11397),n(53133),n(86102),n(49922),n(20462),n(20144),n(79730),n(7300),n(9347),n(48298),n(74837),n(66964),n(99143),n(3960),n(99029),n(95929),n(62141);var r=n(57020),i=n(21795),o=n(13471),a=n(34779),u=n(56087),s=n(97139),c=n(68279);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:new s.s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;h(this,e),this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}var t,n;return t=e,n=[{key:"isOlderThan",value:function(e){return this._version0&&void 0!==arguments[0]&&arguments[0];if(e)return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var e=this.getStackTop().scope,t=e.getSession();t&&(0,c.RJ)(t),this._sendSessionUpdate(),e.setSession()}},{key:"startSession",value:function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,s=i.environment,l=void 0===s?u.J:s,f=(a.n2.navigator||{}).userAgent,d=(0,c.Hv)(p(p({release:o,environment:l,user:n.getUser()},f&&{userAgent:f}),e)),h=n.getSession&&n.getSession();return h&&"ok"===h.status&&(0,c.CT)(h,{status:"exited"}),this.endSession(),n.setSession(d),d}},{key:"shouldSendDefaultPii",value:function(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var e=this.getStackTop(),t=e.scope,n=e.client,r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},{key:"_withClient",value:function(e){var t=this.getStackTop(),n=t.scope,r=t.client;r&&e(r,n)}},{key:"_callExtensionMethod",value:function(e){var t=g(),n=t.__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e]){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:g();return w(e)&&!S(e).isOlderThan(4)||k(e,new m),S(e)}(e)}function w(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return(0,a.YO)("hub",(function(){return new m}),e)}function k(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},97139:function(e,t,n){"use strict";n.d(t,{c:function(){return _},s:function(){return g}}),n(7300),n(1645),n(47977),n(20462),n(74837),n(11397),n(53133),n(86102),n(49922),n(20144),n(79730),n(9347),n(48298),n(66964),n(99143),n(3960),n(99029),n(95929),n(62141),n(77225),n(17326);var r=n(38428),i=n(21795),o=n(81753),a=n(13471),u=n(57020),s=n(34779),c=n(68279);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(e.extra=h(h({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=h(h({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=h(h({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=h(h({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=h({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction;if(n){e.sdkProcessingMetadata=h({dynamicSamplingContext:n.getDynamicSamplingContext()},e.sdkProcessingMetadata);var r=n.name;r&&(e.tags=h({transaction:r},e.tags))}}return this._applyFingerprint(e),e.breadcrumbs=[].concat(f(e.breadcrumbs||[]),f(this._breadcrumbs)),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=h(h({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),this._notifyEventProcessors([].concat(f(b()),f(this._eventProcessors)),e,t)}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=h(h({},this._sdkProcessingMetadata),e),this}},{key:"_notifyEventProcessors",value:function(e,t,n){var i=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new o.cW((function(o,s){var c=e[u];if(null===t||"function"!=typeof c)o(t);else{var l=c(h({},t),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===l&&a.kg.log('Event processor "'.concat(c.id,'" dropped event')),(0,r.J8)(l)?l.then((function(t){return i._notifyEventProcessors(e,t,n,u+1).then(o)})).then(null,s):i._notifyEventProcessors(e,l,n,u+1).then(o).then(null,s)}}))}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value:function(e){e.fingerprint=e.fingerprint?(0,u.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}],s=[{key:"clone",value:function(t){var n=new e;return t&&(n._breadcrumbs=f(t._breadcrumbs),n._tags=h({},t._tags),n._extra=h({},t._extra),n._contexts=h({},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=f(t._eventProcessors),n._requestSession=t._requestSession,n._attachments=f(t._attachments),n._sdkProcessingMetadata=h({},t._sdkProcessingMetadata)),n}}],n&&v(t.prototype,n),s&&v(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(){return(0,s.YO)("globalEventProcessors",(function(){return[]}))}function _(e){b().push(e)}},68279:function(e,t,n){"use strict";n.d(t,{CT:function(){return u},Hv:function(){return a},RJ:function(){return s}});var r=n(21795),i=n(57020),o=n(86146);function a(e){var t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(e){return(0,o.Jr)({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)}};return e&&u(n,e),n}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function s(e,t){var n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),u(e,n)}},22226:function(e,t,n){"use strict";n.d(t,{T:function(){return w},l:function(){return _}}),n(20144),n(47977),n(86102),n(49922),n(20462),n(3960),n(99029),n(95929),n(62141),n(11397),n(53133),n(79730),n(7300),n(9347),n(48298),n(74837),n(66964),n(99143);var r=n(13471),i=n(38428),o=n(37578),a=n(20933),u=n(5562),s=n(63319),c=!1;function l(){var e=(0,s.x1)();if(e){var t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}l.tag="sentry_tracingErrorCallback";var f=n(97962),p=n(89326);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(o,".")),0))?u?(e.sampled=Math.random()=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:w.idleTimeout,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w.finalTimeout,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:w.heartbeatInterval,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return l(this,n),(o=t.call(this,e,r))._idleHub=r,o._idleTimeout=a,o._finalTimeout=u,o._heartbeatInterval=s,o._onScope=c,n.prototype.__init.call(b(o)),n.prototype.__init2.call(b(o)),n.prototype.__init3.call(b(o)),n.prototype.__init4.call(b(o)),n.prototype.__init5.call(b(o)),n.prototype.__init6.call(b(o)),c&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Setting idle transaction on scope. Span ID: ".concat(o.spanId)),r.configureScope((function(e){return e.setSpan(b(o))}))),o._restartIdleTimeout(),setTimeout((function(){o._finished||(o.setStatus("deadline_exceeded"),o._finishReason=k[3],o.finish())}),o._finalTimeout),o}return p(n,[{key:"__init",value:function(){this.activities={}}},{key:"__init2",value:function(){this._heartbeatCounter=0}},{key:"__init3",value:function(){this._finished=!1}},{key:"__init4",value:function(){this._idleTimeoutCanceledPermanently=!1}},{key:"__init5",value:function(){this._beforeFinishCallbacks=[]}},{key:"__init6",value:function(){this._finishReason=k[4]}},{key:"finish",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r._I)();if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag(S,this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);var o,a=s(this._beforeFinishCallbacks);try{for(a.s();!(o=a.n()).done;){var u=o.value;u(this,t)}}catch(e){a.e(e)}finally{a.f()}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(n){if(n.spanId===e.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));var r=n.startTimestamp1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0},n=t.restartOnChildSpanChange;this._idleTimeoutCanceledPermanently=!1===n,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=k[5],this.finish(e)))}},{key:"setFinishReason",value:function(e){this._finishReason=e}},{key:"_restartIdleTimeout",value:function(e){var t=this;this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((function(){t._finished||0!==Object.keys(t.activities).length||(t._finishReason=k[1],t.finish(e))}),this._idleTimeout)}},{key:"_pushActivity",value:function(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}},{key:"_popActivity",value:function(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,r._I)();this._idleTimeoutCanceledPermanently?(this._finishReason=k[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}},{key:"_beat",value:function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=k[0],this.finish()):this._pingHeartbeat()}}},{key:"_pingHeartbeat",value:function(){var e=this;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((function(){e._beat()}),this._heartbeatInterval)}}]),n}(a.Y)},66972:function(e,t,n){"use strict";n.d(t,{Dr:function(){return v},gB:function(){return y}}),n(11397),n(53133),n(86102),n(49922),n(20462),n(20144),n(47977),n(17326),n(42972),n(7300),n(79730),n(3960),n(99029),n(95929),n(62141),n(9347),n(48298),n(74837),n(66964),n(99143);var r=n(57020),i=n(21795),o=n(13471),a=n(86146);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1e3;f(this,e),e.prototype.__init.call(this),this._maxlen=t}return d(e,[{key:"__init",value:function(){this.spans=[]}},{key:"add",value:function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}]),e}(),v=function(){function e(t){if(f(this,e),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),e.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}return d(e,[{key:"__init2",value:function(){this.traceId=(0,r.DM)()}},{key:"__init3",value:function(){this.spanId=(0,r.DM)().substring(16)}},{key:"__init4",value:function(){this.startTimestamp=(0,i._I)()}},{key:"__init5",value:function(){this.tags={}}},{key:"__init6",value:function(){this.data={}}},{key:"__init7",value:function(){this.instrumenter="sentry"}},{key:"startChild",value:function(t){var n=new e(s(s({},t),{},{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.transaction){var r=t&&t.op||"< unknown op >",i=n.transaction.name||"< unknown name >",a=n.transaction.spanId,u="[Tracing] Starting '".concat(r,"' span on transaction '").concat(i,"' (").concat(a,").");n.transaction.metadata.spanMetadata[n.spanId]={logMessage:u},o.kg.log(u)}return n}},{key:"setTag",value:function(e,t){return this.tags=s(s({},this.tags),{},c({},e,t)),this}},{key:"setData",value:function(e,t){return this.data=s(s({},this.data),{},c({},e,t)),this}},{key:"setStatus",value:function(e){return this.status=e,this}},{key:"setHttpStatus",value:function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}},{key:"isSuccess",value:function(){return"ok"===this.status}},{key:"finish",value:function(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){var t=this.transaction.metadata.spanMetadata[this.spanId].logMessage;t&&o.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,i._I)()}},{key:"toTraceparent",value:function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),"".concat(this.traceId,"-").concat(this.spanId).concat(e)}},{key:"toContext",value:function(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}},{key:"updateWithContext",value:function(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}},{key:"getTraceContext",value:function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}},{key:"toJSON",value:function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}]),e}()},89326:function(e,t,n){"use strict";n.d(t,{Y:function(){return _}}),n(18548),n(9347),n(20462),n(24987),n(7300),n(47977),n(81688),n(37406),n(67238),n(69223),n(79730),n(87960),n(48298),n(11397),n(53133),n(86102),n(49922),n(20144),n(74837),n(66964),n(99143),n(3960),n(99029),n(95929),n(62141);var r=n(13471),i=n(86146),o=n(56087),a=n(37578),u=n(66972);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=e,this.metadata.source=t}},{key:"initSpanRecorder",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new u.gB(e)),this.spanRecorder.add(this)}},{key:"setContext",value:function(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}},{key:"setMeasurement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:n}}},{key:"setMetadata",value:function(e){this.metadata=l(l({},this.metadata),e)}},{key:"finish",value:function(e){var t=this;if(void 0===this.endTimestamp){this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Transaction has no name, falling back to ``."),this.name=""),h(b(d.prototype),"finish",this).call(this,e);var n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));var i=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==t&&e.endTimestamp})):[];this._trimEnd&&i.length>0&&(this.endTimestamp=i.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var o=this.metadata,a=l({contexts:l(l({},this._contexts),{},{trace:this.getTraceContext()}),spans:i,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:l(l({},o),{},{dynamicSamplingContext:this.getDynamicSamplingContext()})},o.source&&{transaction_info:{source:o.source}});return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),this._hub.captureEvent(a)}}},{key:"toContext",value:function(){var e=h(b(d.prototype),"toContext",this).call(this);return(0,i.Jr)(l(l({},e),{},{name:this.name,trimEnd:this._trimEnd}))}},{key:"updateWithContext",value:function(e){return h(b(d.prototype),"updateWithContext",this).call(this,e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}},{key:"getDynamicSamplingContext",value:function(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var e=this._hub||(0,a.Gd)(),t=e&&e.getClient();if(!t)return{};var n=t.getOptions()||{},r=n.environment,u=n.release,s=(t.getDsn()||{}).publicKey,c=this.metadata.sampleRate,l=void 0!==c?c.toString():void 0,f=(e.getScope().getUser()||{}).segment,p=this.metadata.source,d=p&&"url"!==p?this.name:void 0,h=(0,i.Jr)({environment:r||o.J,release:u,transaction:d,user_segment:f,public_key:s,trace_id:this.traceId,sample_rate:l});return t.emit&&t.emit("createDsc",h),h}},{key:"setHub",value:function(e){this._hub=e}}],n&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(u.Dr)},63319:function(e,t,n){"use strict";n.d(t,{x1:function(){return i}});var r=n(37578);function i(e){return(e||(0,r.Gd)()).getScope().getTransaction()}},20933:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(37578);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},94271:function(e,t,n){"use strict";n.d(t,{S:function(){return Y}}),n(7300),n(51216),n(20462),n(81688),n(25065),n(59619),n(11397),n(53133),n(86102),n(49922),n(20144),n(79730),n(9347),n(48298),n(74837),n(66964),n(99143),n(3960),n(99029),n(95929),n(62141);var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return s(e,Error)}}function o(e,t){return r.call(e)==="[object ".concat(t,"]")}function a(e){return o(e,"Object")}function u(e){return"number"==typeof e&&e!=e}function s(e,t){try{return e instanceof t}catch(e){return!1}}function c(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};try{for(var n,r=e,i=5,o=[],a=0,u=0,s=" > ",c=s.length,l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;r&&a++1&&u+o.length*c+n.length>=f);)o.push(n),u+=n.length,r=r.parentNode;return o.reverse().join(s)}catch(e){return""}}(e):Object.prototype.toString.call(e)}catch(e){return""}}function w(e){if("object"===h(e)&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}n(79537);var S="";function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return x("",e,t,n)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:c(),o=E(i,2),a=o[0],s=o[1];if(null===t||["number","boolean","string"].includes(k(t))&&!u(t))return t;var l=j(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;var f="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===f)return l.replace("object ","");if(a(t))return"[Circular ~]";var p=t;if(p&&"function"==typeof p.toJSON)try{var d=p.toJSON();return x("",d,f-1,r,i)}catch(e){}var h=Array.isArray(t)?[]:{},y=0,v=b(t);for(var m in v)if(Object.prototype.hasOwnProperty.call(v,m)){if(y>=r){h[m]="[MaxProperties ~]";break}var g=v[m];h[m]=x(m,g,f-1,r,i),y++}return s(t),h}function j(e,t){try{if("domain"===e&&t&&"object"===k(t)&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(a(i=t)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if(void 0===t)return"[undefined]";if("function"==typeof t)return"[Function: ".concat(function(e){try{return e&&"function"==typeof e&&e.name||S}catch(e){return S}}(t),"]");if("symbol"===k(t))return"[".concat(String(t),"]");if("bigint"==typeof t)return"[BigInt: ".concat(String(t),"]");var r=function(e){var t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?"[HTMLElement: ".concat(r,"]"):"[object ".concat(r,"]")}catch(e){return"**non-serializable** (".concat(e,")")}var i}var A,R,P,N,C,D="Sentry Logger ",I=["debug","info","warn","error","log","assert","trace"];function L(e){if(!("console"in p))return e();var t=p.console,n={};I.forEach((function(e){var r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((function(e){t[e]=n[e]}))}}function U(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?I.forEach((function(n){t[n]=function(){for(var t=arguments.length,r=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};if(!t.originalException||!i(t.originalException))return e;var n=t.originalException.name||t.originalException.constructor.name,r=this._extractErrorData(t.originalException);if(r){var o=F({},e.contexts),u=T(r,this._options.depth);return a(u)&&(g(u,"__sentry_skip_normalization__",!0),o[n]=u),F(F({},e),{},{contexts:o})}return e}},{key:"_extractErrorData",value:function(e){try{for(var t=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={},r=0,o=Object.keys(e);r1&&void 0!==arguments[1]?arguments[1]:{};try{for(var n,r=e,i=5,o=[],u=0,s=0,c=" > ",l=c.length,f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;r&&u++1&&s+o.length*l+n.length>=p);)o.push(n),s+=n.length,r=r.parentNode;return o.reverse().join(c)}catch(e){return""}}function a(e,t){var n,i,o,a,u,s=e,c=[];if(!s||!s.tagName)return"";c.push(s.tagName.toLowerCase());var l=t&&t.length?t.filter((function(e){return s.getAttribute(e)})).map((function(e){return[e,s.getAttribute(e)]})):null;if(l&&l.length)l.forEach((function(e){c.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(s.id&&c.push("#".concat(s.id)),(n=s.className)&&(0,r.HD)(n))for(i=n.split(/\s+/),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?n[2]:void 0;if(i){var o=v,a=String(i);v=a,E("history",{from:o,to:a})}return e.apply(this,n)}}}();break;case"error":P=b.onerror,b.onerror=function(e,t,n,r,i){return E("error",{column:r,error:i,line:n,msg:e,url:t}),!(!P||P.__SENTRY_LOADER__)&&P.apply(this,arguments)},b.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":N=b.onunhandledrejection,b.onunhandledrejection=function(e){return E("unhandledrejection",e),!(N&&!N.__SENTRY_LOADER__)||N.apply(this,arguments)},b.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("unknown instrumentation type:",e)}}(e)}function E(e,t){if(e&&w[e]){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(w[e]||[]);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{o(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,a.$P)(o),"\nError:"),t)}}}catch(e){r.e(e)}finally{r.f()}}}function O(e,t){return!!e&&"object"===l(e)&&!!e[t]}function T(e){return"string"==typeof e?e:e?O(e,"url")?e.url:e.toString?e.toString():"":""}function x(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){var t=(o=2,function(e){if(Array.isArray(e))return e}(i=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(i,o)||h(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=t[0],r=t[1];return{url:T(n),method:O(r,"method")?String(r.method).toUpperCase():"GET"}}var i,o,a=e[0];return{url:T(a),method:O(a,"method")?String(a.method).toUpperCase():"GET"}}function j(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}function A(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}function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){if(n&&g!==n&&!A(n)){var r="keypress"===n.type?"input":n.type;(void 0===m||j(g,n))&&(e({event:n,name:r,global:t}),g=n),clearTimeout(m),m=b.setTimeout((function(){m=void 0}),1e3)}}}var P=null,N=null},38428:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Cy:function(){return m},HD:function(){return l},J8:function(){return v},Kj:function(){return y},PO:function(){return p},TX:function(){return s},V9:function(){return b},VW:function(){return u},VZ:function(){return o},cO:function(){return d},fm:function(){return c},i2:function(){return g},kK:function(){return h},pt:function(){return f}}),n(20462),n(86102),n(49922),n(3960),n(99029),n(95929),n(62141);var i=Object.prototype.toString;function o(e){switch(i.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function a(e,t){return i.call(e)==="[object ".concat(t,"]")}function u(e){return a(e,"ErrorEvent")}function s(e){return a(e,"DOMError")}function c(e){return a(e,"DOMException")}function l(e){return a(e,"String")}function f(e){return null===e||"object"!==r(e)&&"function"!=typeof e}function p(e){return a(e,"Object")}function d(e){return"undefined"!=typeof Event&&b(e,Event)}function h(e){return"undefined"!=typeof Element&&b(e,Element)}function y(e){return a(e,"RegExp")}function v(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function m(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"==typeof e&&e!=e}function b(e,t){try{return e instanceof t}catch(e){return!1}}},13471:function(e,t,n){"use strict";n.d(t,{Cf:function(){return u},RU:function(){return a},kg:function(){return r}}),n(20462),n(74837),n(7300),n(47977);var r,i=n(34779),o="Sentry Logger ",a=["debug","info","warn","error","log","assert","trace"];function u(e){if(!("console"in i.n2))return e();var t=i.n2.console,n={};a.forEach((function(e){var r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((function(e){t[e]=n[e]}))}}function s(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((function(n){t[n]=function(){for(var t=arguments.length,r=new Array(t),a=0;a>e/4).toString(16)}))}function l(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function f(e){var t=e.message,n=e.event_id;if(t)return t;var r=l(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"":n||""}function p(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function d(e,t){var n=l(e);if(n){var r=n.mechanism;if(n.mechanism=u(u(u({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var i=u(u({},r&&r.data),t.data);n.mechanism.data=i}}}function h(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function y(e){return Array.isArray(e)?e:[e]}},11233:function(e,t,n){"use strict";n.d(t,{KV:function(){return i},l$:function(){return o}}),n(20462),n(47977);var r=n(68659);function i(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}e=n.hmd(e)},86146:function(e,t,n){"use strict";n.d(t,{$Q:function(){return p},HK:function(){return d},Jr:function(){return b},Sh:function(){return y},_j:function(){return h},hl:function(){return l},xp:function(){return f},zf:function(){return g}}),n(79730),n(19349),n(7300),n(47977),n(20462),n(65549),n(1645),n(99029),n(62474),n(95929),n(62141),n(74837),n(11397),n(53133),n(86102),n(49922),n(20144),n(9347),n(48298),n(66964),n(99143),n(3960);var r=n(33459),i=n(38428),o=n(67525);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t"}}function m(e){if("object"===a(e)&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(y(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.$G)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:(0,o.$G)(i,t)}return""}function b(e){return _(e,new Map)}function _(e,t){if((0,i.PO)(e)){var n=t.get(e);if(void 0!==n)return n;var r={};t.set(e,r);for(var o=0,a=Object.keys(e);o=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=e.split("\n"),o=t;o1024)){var s=l.test(a)?a.replace(l,"$1"):a;if(!s.match(/\S*Error: /)){var c,f=u(r);try{for(f.s();!(c=f.n()).done;){var p=c.value,h=p(s);if(h){n.push(h);break}}}catch(e){f.e(e)}finally{f.f()}if(n.length>=50)break}}}return d(n)}}function p(e){return Array.isArray(e)?f.apply(void 0,function(e){if(Array.isArray(e))return c(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):e;var t}function d(e){if(!e.length)return[];var t=e.slice(0,50),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();var r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map((function(e){return o(o({},e),{},{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})}))}var h="";function y(e){try{return e&&"function"==typeof e&&e.name||h}catch(e){return h}}},67525:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return u},nK:function(){return o}}),n(1645),n(17326),n(92075),n(6035),n(20462);var r=n(38428);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function o(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.some((function(t){return a(e,t,n)}))}},88551:function(e,t,n){"use strict";n.d(t,{Ak:function(){return o},Du:function(){return a},t$:function(){return u}}),n(17326),n(20462),n(81688);var r=n(13471),i=(0,n(34779).Rf)();function o(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function u(){if(!o())return!1;if(a(i.fetch))return!0;var e=!1,t=i.document;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},81753:function(e,t,n){"use strict";n.d(t,{$2:function(){return s},WD:function(){return u},cW:function(){return c}}),n(1645),n(20462),n(74837),n(11397),n(53133),n(86102),n(49922),n(20144),n(79730),n(3960),n(99029),n(95929),n(62141);var r,i=n(38428);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase()}(r)}},2896:function(e,t){!function(e){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id||null,adId:e.adId||null,sequence:e.sequence||null,apiFramework:e.apiFramework||null,universalAdIds:[],creativeExtensions:[]}}var v=["ADCATEGORIES","ADCOUNT","ADPLAYHEAD","ADSERVINGID","ADTYPE","APIFRAMEWORKS","APPBUNDLE","ASSETURI","BLOCKEDADCATEGORIES","BREAKMAXADLENGTH","BREAKMAXADS","BREAKMAXDURATION","BREAKMINADLENGTH","BREAKMINDURATION","BREAKPOSITION","CLICKPOS","CLICKTYPE","CLIENTUA","CONTENTID","CONTENTPLAYHEAD","CONTENTURI","DEVICEIP","DEVICEUA","DOMAIN","EXTENSIONS","GDPRCONSENT","IFA","IFATYPE","INVENTORYSTATE","LATLONG","LIMITADTRACKING","MEDIAMIME","MEDIAPLAYHEAD","OMIDPARTNER","PAGEURL","PLACEMENTTYPE","PLAYERCAPABILITIES","PLAYERSIZE","PLAYERSTATE","PODSEQUENCE","REGULATIONS","SERVERSIDE","SERVERUA","TRANSACTIONID","UNIVERSALADID","VASTVERSIONS","VERIFICATIONVENDORS"];function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],i=_(e);for(var o in!t.ERRORCODE||n.isCustomCode||/^[0-9]{3}$/.test(t.ERRORCODE)||(t.ERRORCODE=900),t.CACHEBUSTING=E(Math.round(1e8*Math.random())),t.TIMESTAMP=(new Date).toISOString(),t.RANDOM=t.random=t.CACHEBUSTING,t)t[o]=k(t[o]);for(var a in i){var u=i[a];"string"==typeof u&&r.push(g(u,t))}return r}function g(e,t){var n=(e=b(e,t)).match(/[^[\]]+(?=])/g);if(!n)return e;var r=n.filter((function(e){return v.indexOf(e)>-1}));return 0===r.length?e:b(e,r=r.reduce((function(e,t){return e[t]=-1,e}),{}))}function b(e,t){var n=e;for(var r in t){var i=t[r];n=n.replace(new RegExp("(?:\\[|%%)(".concat(r,")(?:\\]|%%)"),"g"),i)}return n}function _(e){return Array.isArray(e)?e.map((function(e){return e&&e.hasOwnProperty("url")?e.url:e})):e}function w(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:8;return e.toString().padStart(t,"0")}var O={track:function(e,t,n){m(e,t,n).forEach((function(e){"undefined"!=typeof window&&null!==window&&((new Image).src=e)}))},resolveURLTemplates:m,extractURLsFromTemplates:_,containsTemplateObject:w,isTemplateObjectEqual:S,encodeURIComponentRFC3986:k,replaceUrlMacros:g,isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},flatten:function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},joinArrayOfUniqueTemplateObjs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Array.isArray(e)?e:[],r=Array.isArray(t)?t:[];return n.concat(r).reduce((function(e,t){return w(t,e)||e.push(t),e}),[])},isValidTimeValue:function(e){return Number.isFinite(e)&&e>=-2},addLeadingZeros:E};function T(e){return-1!==["true","TRUE","True","1"].indexOf(e)}var x={childByName:function(e,t){var n=e.childNodes;for(var r in n){var i=n[r];if(i.nodeName===t)return i}},childrenByName:function(e,t){var n=[],r=e.childNodes;for(var i in r){var o=r[i];o.nodeName===t&&n.push(o)}return n},resolveVastAdTagURI:function(e,t){if(!t)return e;if(0===e.indexOf("//")){var n=location.protocol;return"".concat(n).concat(e)}if(-1===e.indexOf("://")){var r=t.slice(0,t.lastIndexOf("/"));return"".concat(r,"/").concat(e)}return e},parseBoolean:T,parseNodeText:function(e){return e&&(e.textContent||e.text||"").trim()},copyNodeAttribute:function(e,t,n){var r=t.getAttribute(e);r&&n.setAttribute(e,r)},parseAttributes:function(e){for(var t=e.attributes,n={},r=0;r3600||r>60?-1:o+i+r},splitVAST:function(e){var t=[],n=null;return e.forEach((function(r,i){if(r.sequence&&(r.sequence=parseInt(r.sequence,10)),r.sequence>1){var o=e[i-1];if(o&&o.sequence===r.sequence-1)return void(n&&n.push(r));delete r.sequence}n=[r],t.push(n)})),t},assignAttributes:function(e,t){if(e)for(var n in e){var r=e[n];if(r.nodeName&&r.nodeValue&&t.hasOwnProperty(r.nodeName)){var i=r.nodeValue;"boolean"==typeof t[r.nodeName]&&(i=T(i)),t[r.nodeName]=i}}},mergeWrapperAdData:function(e,t){e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),t.viewableImpression.length>0&&(e.viewableImpression=[].concat(d(e.viewableImpression),d(t.viewableImpression))),e.followAdditionalWrappers=t.followAdditionalWrappers,e.allowMultipleAds=t.allowMultipleAds,e.fallbackOnNoAd=t.fallbackOnNoAd;var n=(t.creatives||[]).filter((function(e){return e&&"companion"===e.type})),r=n.reduce((function(e,t){return(t.variations||[]).forEach((function(t){(t.companionClickTrackingURLTemplates||[]).forEach((function(t){O.containsTemplateObject(t,e)||e.push(t)}))})),e}),[]);e.creatives=n.concat(e.creatives);var i=t.videoClickTrackingURLTemplates&&t.videoClickTrackingURLTemplates.length,o=t.videoCustomClickURLTemplates&&t.videoCustomClickURLTemplates.length;e.creatives.forEach((function(e){if(t.trackingEvents&&t.trackingEvents[e.type])for(var n in t.trackingEvents[e.type]){var a=t.trackingEvents[e.type][n];Array.isArray(e.trackingEvents[n])||(e.trackingEvents[n]=[]),e.trackingEvents[n]=e.trackingEvents[n].concat(a)}"linear"===e.type&&(i&&(e.videoClickTrackingURLTemplates=e.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates)),o&&(e.videoCustomClickURLTemplates=e.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates)),!t.videoClickThroughURLTemplate||null!==e.videoClickThroughURLTemplate&&void 0!==e.videoClickThroughURLTemplate||(e.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate)),"companion"===e.type&&r.length&&(e.variations||[]).forEach((function(e){e.companionClickTrackingURLTemplates=O.joinArrayOfUniqueTemplateObjs(e.companionClickTrackingURLTemplates,r)}))})),t.adVerifications&&(e.adVerifications=e.adVerifications.concat(t.adVerifications)),t.blockedAdCategories&&(e.blockedAdCategories=e.blockedAdCategories.concat(t.blockedAdCategories))}};function j(e,t){var n=function(){var e=y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{id:e.id,adId:e.adId,sequence:e.sequence,apiFramework:e.apiFramework,type:"companion",required:null,variations:[]}}(t);return n.required=e.getAttribute("required")||null,n.variations=x.childrenByName(e,"Companion").map((function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id||null,adType:"companionAd",width:e.width||0,height:e.height||0,assetWidth:e.assetWidth||null,assetHeight:e.assetHeight||null,expandedWidth:e.expandedWidth||null,expandedHeight:e.expandedHeight||null,apiFramework:e.apiFramework||null,adSlotID:e.adSlotID||null,pxratio:e.pxratio||"1",renderingMode:e.renderingMode||"default",staticResources:[],htmlResources:[],iframeResources:[],adParameters:null,xmlEncoded:null,altText:null,companionClickThroughURLTemplate:null,companionClickTrackingURLTemplates:[],trackingEvents:{}}}(x.parseAttributes(e));t.htmlResources=x.childrenByName(e,"HTMLResource").reduce((function(e,t){var n=x.parseNodeText(t);return n?e.concat(n):e}),[]),t.iframeResources=x.childrenByName(e,"IFrameResource").reduce((function(e,t){var n=x.parseNodeText(t);return n?e.concat(n):e}),[]),t.staticResources=x.childrenByName(e,"StaticResource").reduce((function(e,t){var n=x.parseNodeText(t);return n?e.concat({url:n,creativeType:t.getAttribute("creativeType")||null}):e}),[]),t.altText=x.parseNodeText(x.childByName(e,"AltText"))||null;var n=x.childByName(e,"TrackingEvents");n&&x.childrenByName(n,"Tracking").forEach((function(e){var n=e.getAttribute("event"),r=x.parseNodeText(e);n&&r&&(Array.isArray(t.trackingEvents[n])||(t.trackingEvents[n]=[]),t.trackingEvents[n].push(r))})),t.companionClickTrackingURLTemplates=x.childrenByName(e,"CompanionClickTracking").map((function(e){return{id:e.getAttribute("id")||null,url:x.parseNodeText(e)}})),t.companionClickThroughURLTemplate=x.parseNodeText(x.childByName(e,"CompanionClickThrough"))||null;var r=x.childByName(e,"AdParameters");return r&&(t.adParameters=x.parseNodeText(r),t.xmlEncoded=r.getAttribute("xmlEncoded")||null),t})),n}function A(e){return"linear"===e.type}function R(e,t){var n,r=function(){var e=y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{id:e.id,adId:e.adId,sequence:e.sequence,apiFramework:e.apiFramework,type:"linear",duration:0,skipDelay:null,mediaFiles:[],mezzanine:null,interactiveCreativeFile:null,closedCaptionFiles:[],videoClickThroughURLTemplate:null,videoClickTrackingURLTemplates:[],videoCustomClickURLTemplates:[],adParameters:null,icons:[],trackingEvents:{}}}(t);r.duration=x.parseDuration(x.parseNodeText(x.childByName(e,"Duration")));var i=e.getAttribute("skipoffset");if(null==i)r.skipDelay=null;else if("%"===i.charAt(i.length-1)&&-1!==r.duration){var o=parseInt(i,10);r.skipDelay=r.duration*(o/100)}else r.skipDelay=x.parseDuration(i);var a=x.childByName(e,"VideoClicks");if(a){var u=x.childByName(a,"ClickThrough");r.videoClickThroughURLTemplate=u?{id:u.getAttribute("id")||null,url:x.parseNodeText(u)}:null,x.childrenByName(a,"ClickTracking").forEach((function(e){r.videoClickTrackingURLTemplates.push({id:e.getAttribute("id")||null,url:x.parseNodeText(e)})})),x.childrenByName(a,"CustomClick").forEach((function(e){r.videoCustomClickURLTemplates.push({id:e.getAttribute("id")||null,url:x.parseNodeText(e)})}))}var s=x.childByName(e,"AdParameters");s&&(r.adParameters=x.parseNodeText(s)),x.childrenByName(e,"TrackingEvents").forEach((function(e){x.childrenByName(e,"Tracking").forEach((function(e){var t=e.getAttribute("event"),i=x.parseNodeText(e);if(t&&i){if("progress"===t){if(!(n=e.getAttribute("offset")))return;t="%"===n.charAt(n.length-1)?"progress-".concat(n):"progress-".concat(Math.round(x.parseDuration(n)))}Array.isArray(r.trackingEvents[t])||(r.trackingEvents[t]=[]),r.trackingEvents[t].push(i)}}))})),x.childrenByName(e,"MediaFiles").forEach((function(e){x.childrenByName(e,"MediaFile").forEach((function(e){r.mediaFiles.push(function(e){var t={id:null,fileURL:null,fileSize:0,deliveryType:"progressive",mimeType:null,mediaType:null,codec:null,bitrate:0,minBitrate:0,maxBitrate:0,width:0,height:0,apiFramework:null,scalable:null,maintainAspectRatio:null};t.id=e.getAttribute("id"),t.fileURL=x.parseNodeText(e),t.deliveryType=e.getAttribute("delivery"),t.codec=e.getAttribute("codec"),t.mimeType=e.getAttribute("type"),t.mediaType=e.getAttribute("mediaType")||"2D",t.apiFramework=e.getAttribute("apiFramework"),t.fileSize=parseInt(e.getAttribute("fileSize")||0),t.bitrate=parseInt(e.getAttribute("bitrate")||0),t.minBitrate=parseInt(e.getAttribute("minBitrate")||0),t.maxBitrate=parseInt(e.getAttribute("maxBitrate")||0),t.width=parseInt(e.getAttribute("width")||0),t.height=parseInt(e.getAttribute("height")||0);var n=e.getAttribute("scalable");n&&"string"==typeof n&&(t.scalable=x.parseBoolean(n));var r=e.getAttribute("maintainAspectRatio");return r&&"string"==typeof r&&(t.maintainAspectRatio=x.parseBoolean(r)),t}(e))}));var t=x.childByName(e,"InteractiveCreativeFile");t&&(r.interactiveCreativeFile=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type||null,apiFramework:e.apiFramework||null,variableDuration:x.parseBoolean(e.variableDuration),fileURL:null}}(x.parseAttributes(e));return t.fileURL=x.parseNodeText(e),t}(t));var n=x.childByName(e,"ClosedCaptionFiles");n&&x.childrenByName(n,"ClosedCaptionFile").forEach((function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type||null,language:e.language||null,fileURL:null}}(x.parseAttributes(e));t.fileURL=x.parseNodeText(e),r.closedCaptionFiles.push(t)}));var i,o,a,u=x.childByName(e,"Mezzanine"),s=(i=u,o={},a=!1,["delivery","type","width","height"].forEach((function(e){i&&i.getAttribute(e)?o[e]=i.getAttribute(e):a=!0})),a?null:o);if(s){var c={id:null,fileURL:null,delivery:null,codec:null,type:null,width:0,height:0,fileSize:0,mediaType:"2D"};c.id=u.getAttribute("id"),c.fileURL=x.parseNodeText(u),c.delivery=s.delivery,c.codec=u.getAttribute("codec"),c.type=s.type,c.width=parseInt(s.width,10),c.height=parseInt(s.height,10),c.fileSize=parseInt(u.getAttribute("fileSize"),10),c.mediaType=u.getAttribute("mediaType")||"2D",r.mezzanine=c}}));var c=x.childByName(e,"Icons");return c&&x.childrenByName(c,"Icon").forEach((function(e){r.icons.push(function(e){var t={program:null,height:0,width:0,xPosition:0,yPosition:0,apiFramework:null,offset:null,duration:0,type:null,staticResource:null,htmlResource:null,iframeResource:null,pxratio:"1",iconClickThroughURLTemplate:null,iconClickTrackingURLTemplates:[],iconViewTrackingURLTemplate:null};t.program=e.getAttribute("program"),t.height=parseInt(e.getAttribute("height")||0),t.width=parseInt(e.getAttribute("width")||0),t.xPosition=function(e){return-1!==["left","right"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("xPosition")),t.yPosition=function(e){return-1!==["top","bottom"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("yPosition")),t.apiFramework=e.getAttribute("apiFramework"),t.pxratio=e.getAttribute("pxratio")||"1",t.offset=x.parseDuration(e.getAttribute("offset")),t.duration=x.parseDuration(e.getAttribute("duration")),x.childrenByName(e,"HTMLResource").forEach((function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=x.parseNodeText(e)})),x.childrenByName(e,"IFrameResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=x.parseNodeText(e)})),x.childrenByName(e,"StaticResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=x.parseNodeText(e)}));var n=x.childByName(e,"IconClicks");return n&&(t.iconClickThroughURLTemplate=x.parseNodeText(x.childByName(n,"IconClickThrough")),x.childrenByName(n,"IconClickTracking").forEach((function(e){t.iconClickTrackingURLTemplates.push({id:e.getAttribute("id")||null,url:x.parseNodeText(e)})}))),t.iconViewTrackingURLTemplate=x.parseNodeText(x.childByName(e,"IconViewTracking")),t}(e))})),r}function P(e,t){var n=function(){var e=y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{id:e.id,adId:e.adId,sequence:e.sequence,apiFramework:e.apiFramework,type:"nonlinear",variations:[],trackingEvents:{}}}(t);return x.childrenByName(e,"TrackingEvents").forEach((function(e){var t,r;x.childrenByName(e,"Tracking").forEach((function(e){t=e.getAttribute("event"),r=x.parseNodeText(e),t&&r&&(Array.isArray(n.trackingEvents[t])||(n.trackingEvents[t]=[]),n.trackingEvents[t].push(r))}))})),x.childrenByName(e,"NonLinear").forEach((function(e){var t={id:null,width:0,height:0,expandedWidth:0,expandedHeight:0,scalable:!0,maintainAspectRatio:!0,minSuggestedDuration:0,apiFramework:"static",adType:"nonLinearAd",type:null,staticResource:null,htmlResource:null,iframeResource:null,nonlinearClickThroughURLTemplate:null,nonlinearClickTrackingURLTemplates:[],adParameters:null};t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.expandedWidth=e.getAttribute("expandedWidth"),t.expandedHeight=e.getAttribute("expandedHeight"),t.scalable=x.parseBoolean(e.getAttribute("scalable")),t.maintainAspectRatio=x.parseBoolean(e.getAttribute("maintainAspectRatio")),t.minSuggestedDuration=x.parseDuration(e.getAttribute("minSuggestedDuration")),t.apiFramework=e.getAttribute("apiFramework"),x.childrenByName(e,"HTMLResource").forEach((function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=x.parseNodeText(e)})),x.childrenByName(e,"IFrameResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=x.parseNodeText(e)})),x.childrenByName(e,"StaticResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=x.parseNodeText(e)}));var r=x.childByName(e,"AdParameters");r&&(t.adParameters=x.parseNodeText(r)),t.nonlinearClickThroughURLTemplate=x.parseNodeText(x.childByName(e,"NonLinearClickThrough")),x.childrenByName(e,"NonLinearClickTracking").forEach((function(e){t.nonlinearClickTrackingURLTemplates.push({id:e.getAttribute("id")||null,url:x.parseNodeText(e)})})),n.variations.push(t)})),n}function N(e){var t=[];return e.forEach((function(e){var n=C(e);n&&t.push(n)})),t}function C(e){if("#comment"===e.nodeName)return null;var t,n={name:null,value:null,attributes:{},children:[]},r=e.attributes,i=e.childNodes;if(n.name=e.nodeName,e.attributes)for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];a.nodeName&&a.nodeValue&&(n.attributes[a.nodeName]=a.nodeValue)}for(var u in i)if(i.hasOwnProperty(u)){var s=C(i[u]);s&&n.children.push(s)}if(0===n.children.length||1===n.children.length&&["#cdata-section","#text"].indexOf(n.children[0].name)>=0){var c=x.parseNodeText(e);""!==c&&(n.value=c),n.children=[]}return null===(t=n).value&&0===Object.keys(t.attributes).length&&0===t.children.length?null:n}function D(e){var t=[];return e.forEach((function(e){var n,r={id:e.getAttribute("id")||null,adId:I(e),sequence:e.getAttribute("sequence")||null,apiFramework:e.getAttribute("apiFramework")||null},i=[];x.childrenByName(e,"UniversalAdId").forEach((function(e){var t={idRegistry:e.getAttribute("idRegistry")||"unknown",value:x.parseNodeText(e)};i.push(t)}));var o=x.childByName(e,"CreativeExtensions");for(var a in o&&(n=N(x.childrenByName(o,"CreativeExtension"))),e.childNodes){var u=e.childNodes[a],s=void 0;switch(u.nodeName){case"Linear":s=R(u,r);break;case"NonLinearAds":s=P(u,r);break;case"CompanionAds":s=j(u,r)}s&&(i&&(s.universalAdIds=i),n&&(s.creativeExtensions=n),t.push(s))}})),t}function I(e){return e.getAttribute("AdID")||e.getAttribute("adID")||e.getAttribute("adId")||null}var L={Wrapper:{subElements:["VASTAdTagURI","Impression"]},BlockedAdCategories:{attributes:["authority"]},InLine:{subElements:["AdSystem","AdTitle","Impression","AdServingId","Creatives"]},Category:{attributes:["authority"]},Pricing:{attributes:["model","currency"]},Verification:{oneOfinLineResources:["JavaScriptResource","ExecutableResource"],attributes:["vendor"]},UniversalAdId:{attributes:["idRegistry"]},JavaScriptResource:{attributes:["apiFramework","browserOptional"]},ExecutableResource:{attributes:["apiFramework","type"]},Tracking:{attributes:["event"]},Creatives:{subElements:["Creative"]},Creative:{subElements:["UniversalAdId"]},Linear:{subElements:["MediaFiles","Duration"]},MediaFiles:{subElements:["MediaFile"]},MediaFile:{attributes:["delivery","type","width","height"]},Mezzanine:{attributes:["delivery","type","width","height"]},NonLinear:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},Companion:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},StaticResource:{attributes:["creativeType"]},Icons:{subElements:["Icon"]},Icon:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"]}};function U(e,t){if(L[e.nodeName]&&L[e.nodeName].attributes){var n=L[e.nodeName].attributes.filter((function(t){return!e.getAttribute(t)}));n.length>0&&F({name:e.nodeName,parentName:e.parentNode.nodeName,attributes:n},t)}}function B(e,t,n){var r=L[e.nodeName],i=!n&&"Wrapper"!==e.nodeName;if(r&&!i){if(r.subElements){var o=r.subElements.filter((function(t){return!x.childByName(e,t)}));o.length>0&&F({name:e.nodeName,parentName:e.parentNode.nodeName,subElements:o},t)}n&&r.oneOfinLineResources&&(r.oneOfinLineResources.some((function(t){return x.childByName(e,t)}))||F({name:e.nodeName,parentName:e.parentNode.nodeName,oneOfResources:r.oneOfinLineResources},t))}}function M(e){return e.children&&0!==e.children.length}function F(e,t){var n=e.name,r=e.parentName,i=e.attributes,o=e.subElements,a=e.oneOfResources,u="Element '".concat(n,"'");t("VAST-warning",{message:u+=i?" missing required attribute(s) '".concat(i.join(", "),"' "):o?" missing required sub element(s) '".concat(o.join(", "),"' "):a?" must provide one of the following '".concat(a.join(", "),"' "):" is empty",parentElement:r,specVersion:4.1})}var z=function e(t,n,r){if(t&&t.nodeName)if("InLine"===t.nodeName&&(r=!0),U(t,n),M(t)){B(t,n,r);for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.allowMultipleAds,i=n.followAdditionalWrappers,o=e.childNodes;for(var a in o){var u=o[a];if(-1!==["Wrapper","InLine"].indexOf(u.nodeName)&&("Wrapper"!==u.nodeName||!1!==i)){if(x.copyNodeAttribute("id",e,u),x.copyNodeAttribute("sequence",e,u),x.copyNodeAttribute("adType",e,u),"Wrapper"===u.nodeName)return{ad:$(u,t),type:"WRAPPER"};if("InLine"===u.nodeName)return{ad:V(u,t,{allowMultipleAds:r}),type:"INLINE"}}}}function V(e,t){return!1===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allowMultipleAds&&e.getAttribute("sequence")?null:Y(e,t)}function Y(e,t){var n=[];t&&z(e,t);var r=e.childNodes,i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id||null,sequence:e.sequence||null,adType:e.adType||null,adServingId:null,categories:[],expires:null,viewableImpression:[],system:null,title:null,description:null,advertiser:null,pricing:null,survey:null,errorURLTemplates:[],impressionURLTemplates:[],creatives:[],extensions:[],adVerifications:[],blockedAdCategories:[],followAdditionalWrappers:!0,allowMultipleAds:!1,fallbackOnNoAd:null}}(x.parseAttributes(e));for(var o in r){var a=r[o];switch(a.nodeName){case"Error":i.errorURLTemplates.push(x.parseNodeText(a));break;case"Impression":i.impressionURLTemplates.push({id:a.getAttribute("id")||null,url:x.parseNodeText(a)});break;case"Creatives":i.creatives=D(x.childrenByName(a,"Creative"));break;case"Extensions":var u=x.childrenByName(a,"Extension");i.extensions=N(u),i.adVerifications.length||(n=q(u));break;case"AdVerifications":i.adVerifications=H(x.childrenByName(a,"Verification"));break;case"AdSystem":i.system={value:x.parseNodeText(a),version:a.getAttribute("version")||null};break;case"AdTitle":i.title=x.parseNodeText(a);break;case"AdServingId":i.adServingId=x.parseNodeText(a);break;case"Category":i.categories.push({authority:a.getAttribute("authority")||null,value:x.parseNodeText(a)});break;case"Expires":i.expires=parseInt(x.parseNodeText(a),10);break;case"ViewableImpression":i.viewableImpression.push(W(a));break;case"Description":i.description=x.parseNodeText(a);break;case"Advertiser":i.advertiser={id:a.getAttribute("id")||null,value:x.parseNodeText(a)};break;case"Pricing":i.pricing={value:x.parseNodeText(a),model:a.getAttribute("model")||null,currency:a.getAttribute("currency")||null};break;case"Survey":i.survey=x.parseNodeText(a);break;case"BlockedAdCategories":i.blockedAdCategories.push({authority:a.getAttribute("authority")||null,value:x.parseNodeText(a)})}}return n.length&&(i.adVerifications=i.adVerifications.concat(n)),i}function $(e,t){var n=Y(e,t),r=e.getAttribute("followAdditionalWrappers"),i=e.getAttribute("allowMultipleAds"),o=e.getAttribute("fallbackOnNoAd");n.followAdditionalWrappers=!r||x.parseBoolean(r),n.allowMultipleAds=!!i&&x.parseBoolean(i),n.fallbackOnNoAd=o?x.parseBoolean(o):null;var a=x.childByName(e,"VASTAdTagURI");if(a?n.nextWrapperURL=x.parseNodeText(a):(a=x.childByName(e,"VASTAdTagURL"))&&(n.nextWrapperURL=x.parseNodeText(x.childByName(a,"URL"))),n.creatives.forEach((function(e){if(-1!==["linear","nonlinear"].indexOf(e.type)){if(e.trackingEvents){n.trackingEvents||(n.trackingEvents={}),n.trackingEvents[e.type]||(n.trackingEvents[e.type]={});var t=function(t){var r=e.trackingEvents[t];Array.isArray(n.trackingEvents[e.type][t])||(n.trackingEvents[e.type][t]=[]),r.forEach((function(r){n.trackingEvents[e.type][t].push(r)}))};for(var r in e.trackingEvents)t(r)}e.videoClickTrackingURLTemplates&&(Array.isArray(n.videoClickTrackingURLTemplates)||(n.videoClickTrackingURLTemplates=[]),e.videoClickTrackingURLTemplates.forEach((function(e){n.videoClickTrackingURLTemplates.push(e)}))),e.videoClickThroughURLTemplate&&(n.videoClickThroughURLTemplate=e.videoClickThroughURLTemplate),e.videoCustomClickURLTemplates&&(Array.isArray(n.videoCustomClickURLTemplates)||(n.videoCustomClickURLTemplates=[]),e.videoCustomClickURLTemplates.forEach((function(e){n.videoCustomClickURLTemplates.push(e)})))}})),n.nextWrapperURL)return n}function H(e){var t=[];return e.forEach((function(e){var n={resource:null,vendor:null,browserOptional:!1,apiFramework:null,type:null,parameters:null,trackingEvents:{}},r=e.childNodes;for(var i in x.assignAttributes(e.attributes,n),r){var o=r[i];switch(o.nodeName){case"JavaScriptResource":case"ExecutableResource":n.resource=x.parseNodeText(o),x.assignAttributes(o.attributes,n);break;case"VerificationParameters":n.parameters=x.parseNodeText(o)}}var a=x.childByName(e,"TrackingEvents");a&&x.childrenByName(a,"Tracking").forEach((function(e){var t=e.getAttribute("event"),r=x.parseNodeText(e);t&&r&&(Array.isArray(n.trackingEvents[t])||(n.trackingEvents[t]=[]),n.trackingEvents[t].push(r))})),t.push(n)})),t}function q(e){var t=null,n=[];return e.some((function(e){return t=x.childByName(e,"AdVerifications")})),t&&(n=H(x.childrenByName(t,"Verification"))),n}function W(e){var t={};t.id=e.getAttribute("id")||null;var n=e.childNodes;for(var r in n){var i=n[r],o=i.nodeName,a=x.parseNodeText(i);if(("Viewable"===o||"NotViewable"===o||"ViewUndetermined"===o)&&a){var u=o.toLowerCase();Array.isArray(t[u])||(t[u]=[]),t[u].push(a)}}return t}var J=function(){function e(){i(this,e),this._handlers=[]}return a(e,[{key:"on",value:function(e,t){if("function"!=typeof t)throw new TypeError("The handler argument must be of type Function. Received type ".concat(r(t)));if(!e)throw new TypeError("The event argument must be of type String. Received type ".concat(r(e)));return this._handlers.push({event:e,handler:t}),this}},{key:"once",value:function(e,t){return this.on(e,function(e,t,n){var r={fired:!1,wrapFn:void 0};function i(){r.fired||(e.off(t,r.wrapFn),r.fired=!0,n.bind(e).apply(void 0,arguments))}return r.wrapFn=i,i}(this,e,t))}},{key:"off",value:function(e,t){return this._handlers=this._handlers.filter((function(n){return n.event!==e||n.handler!==t})),this}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new Promise((function(o,a){t.URLTemplateFilters.forEach((function(t){e=t(e)})),t.parentURLs.push(e);var u=Date.now();t.emit("VAST-resolving",{url:e,previousUrl:r,wrapperDepth:n,maxWrapperDepth:t.maxWrapperDepth,timeout:t.fetchingOptions.timeout,wrapperAd:i}),t.urlHandler.get(e,t.fetchingOptions,(function(i,s){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Math.round(Date.now()-u),f=Object.assign({url:e,previousUrl:r,wrapperDepth:n,error:i,duration:l},c);t.emit("VAST-resolved",f),oe(c.byteLength,l),i?a(i):o(s)}))}))}},{key:"initParsingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.errorURLTemplates=[],this.fetchingOptions={timeout:e.timeout||Q,withCredentials:e.withCredentials},this.maxWrapperDepth=e.wrapperLimit||10,this.parentURLs=[],this.parsingOptions={allowMultipleAds:e.allowMultipleAds},this.remainingAds=[],this.rootErrorURLTemplates=[],this.rootURL="",this.urlHandler=e.urlHandler||e.urlhandler||ne,this.vastVersion=null,oe(e.byteLength,e.requestDuration)}},{key:"getRemainingAds",value:function(e){var t=this;if(0===this.remainingAds.length)return Promise.reject(new Error("No more ads are available for the given VAST"));var n=e?O.flatten(this.remainingAds):this.remainingAds.shift();return this.errorURLTemplates=[],this.parentURLs=[],this.resolveAds(n,{wrapperDepth:0,url:this.rootURL}).then((function(e){return t.buildVASTResponse(e)}))}},{key:"getAndParseVAST",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(n),this.URLTemplateFilters.forEach((function(t){e=t(e)})),this.rootURL=e,this.fetchVAST(e).then((function(r){return n.previousUrl=e,n.isRootVAST=!0,n.url=e,t.parse(r,n).then((function(e){return t.buildVASTResponse(e)}))}))}},{key:"parseVAST",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(n),n.isRootVAST=!0,this.parse(e,n).then((function(e){return t.buildVASTResponse(e)}))}},{key:"buildVASTResponse",value:function(e){var t,n={ads:(t={ads:e,errorURLTemplates:this.getErrorURLTemplates(),version:this.vastVersion}).ads||[],errorURLTemplates:t.errorURLTemplates||[],version:t.version||null};return this.completeWrapperResolving(n),n}},{key:"parseVastXml",value:function(e,t){var n=t.isRootVAST,r=void 0!==n&&n,i=t.url,o=void 0===i?null:i,a=t.wrapperDepth,u=void 0===a?0:a,s=t.allowMultipleAds,c=t.followAdditionalWrappers;if(!e||!e.documentElement||"VAST"!==e.documentElement.nodeName)throw this.emit("VAST-ad-parsed",{type:"ERROR",url:o,wrapperDepth:u}),new Error("Invalid VAST XMLDocument");var l=[],f=e.documentElement.childNodes,p=e.documentElement.getAttribute("version");for(var d in r&&p&&(this.vastVersion=p),f){var h=f[d];if("Error"===h.nodeName){var y=x.parseNodeText(h);r?this.rootErrorURLTemplates.push(y):this.errorURLTemplates.push(y)}else if("Ad"===h.nodeName){if(this.vastVersion&&parseFloat(this.vastVersion)<3)s=!0;else if(!1===s&&l.length>1)break;var v=G(h,this.emit.bind(this),{allowMultipleAds:s,followAdditionalWrappers:c});v.ad?(l.push(v.ad),this.emit("VAST-ad-parsed",{type:v.type,url:o,wrapperDepth:u,adIndex:l.length-1,vastVersion:p})):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101})}}return l}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=void 0===n?null:n,i=t.resolveAll,o=void 0===i||i,a=t.wrapperSequence,u=void 0===a?null:a,s=t.previousUrl,c=void 0===s?null:s,l=t.wrapperDepth,f=void 0===l?0:l,p=t.isRootVAST,d=void 0!==p&&p,h=t.followAdditionalWrappers,y=t.allowMultipleAds,v=[];this.vastVersion&&parseFloat(this.vastVersion)<3&&d&&(y=!0);try{v=this.parseVastXml(e,{isRootVAST:d,url:r,wrapperDepth:f,allowMultipleAds:y,followAdditionalWrappers:h})}catch(e){return Promise.reject(e)}return 1===v.length&&null!=u&&(v[0].sequence=u),!1===o&&(this.remainingAds=x.splitVAST(v),v=this.remainingAds.shift()),this.resolveAds(v,{wrapperDepth:f,previousUrl:c,url:r})}},{key:"resolveAds",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=n.wrapperDepth,i=n.previousUrl,o=n.url,a=[];return i=o,t.forEach((function(t){var n=e.resolveWrappers(t,r,i);a.push(n)})),Promise.all(a).then((function(t){var n=O.flatten(t);if(!n&&e.remainingAds.length>0){var a=e.remainingAds.shift();return e.resolveAds(a,{wrapperDepth:r,previousUrl:i,url:o})}return n}))}},{key:"resolveWrappers",value:function(e,t,n){var r=this;return new Promise((function(i){var o;if(t++,!e.nextWrapperURL)return delete e.nextWrapperURL,i(e);if(t>=r.maxWrapperDepth||-1!==r.parentURLs.indexOf(e.nextWrapperURL))return e.errorCode=302,delete e.nextWrapperURL,i(e);e.nextWrapperURL=x.resolveVastAdTagURI(e.nextWrapperURL,n),r.URLTemplateFilters.forEach((function(t){e.nextWrapperURL=t(e.nextWrapperURL)}));var a=null!==(o=r.parsingOptions.allowMultipleAds)&&void 0!==o?o:e.allowMultipleAds,u=e.sequence;r.fetchVAST(e.nextWrapperURL,t,n,e).then((function(o){return r.parse(o,{url:e.nextWrapperURL,previousUrl:n,wrapperSequence:u,wrapperDepth:t,followAdditionalWrappers:e.followAdditionalWrappers,allowMultipleAds:a}).then((function(t){if(delete e.nextWrapperURL,0===t.length)return e.creatives=[],i(e);t.forEach((function(t){t&&x.mergeWrapperAdData(t,e)})),i(t)}))})).catch((function(t){e.errorCode=301,e.errorMessage=t.message,i(e)}))}))}},{key:"completeWrapperResolving",value:function(e){if(0===e.ads.length)this.trackVastError(e.errorURLTemplates,{ERRORCODE:303});else for(var t=e.ads.length-1;t>=0;t--){var n=e.ads[t];(n.errorCode||0===n.creatives.length)&&(this.trackVastError(n.errorURLTemplates.concat(e.errorURLTemplates),{ERRORCODE:n.errorCode||303},{ERRORMESSAGE:n.errorMessage||""},{extensions:n.extensions},{system:n.system}),e.ads.splice(t,1))}}}]),n}(J),se=null,ce={data:{},length:0,getItem:function(e){return this.data[e]},setItem:function(e,t){this.data[e]=t,this.length=Object.keys(this.data).length},removeItem:function(e){delete this.data[e],this.length=Object.keys(this.data).length},clear:function(){this.data={},this.length=0}},le=function(){function e(){i(this,e),this.storage=this.initStorage()}return a(e,[{key:"initStorage",value:function(){if(se)return se;try{se="undefined"!=typeof window&&null!==window?window.localStorage||window.sessionStorage:null}catch(e){se=null}return se&&!this.isStorageDisabled(se)||(se=ce).clear(),se}},{key:"isStorageDisabled",value:function(e){var t="__VASTStorage__";try{if(e.setItem(t,t),e.getItem(t)!==t)return e.removeItem(t),!0}catch(e){return!0}return e.removeItem(t),!1}},{key:"getItem",value:function(e){return this.storage.getItem(e)}},{key:"setItem",value:function(e,t){return this.storage.setItem(e,t)}},{key:"removeItem",value:function(e){return this.storage.removeItem(e)}},{key:"clear",value:function(){return this.storage.clear()}}]),e}(),fe=function(){function e(t,n,r){i(this,e),this.cappingFreeLunch=t||0,this.cappingMinimumTimeInterval=n||0,this.defaultOptions={withCredentials:!1,timeout:0},this.vastParser=new ue,this.storage=r||new le,void 0===this.lastSuccessfulAd&&(this.lastSuccessfulAd=0),void 0===this.totalCalls&&(this.totalCalls=0),void 0===this.totalCallsTimeout&&(this.totalCallsTimeout=0)}return a(e,[{key:"getParser",value:function(){return this.vastParser}},{key:"lastSuccessfulAd",get:function(){return this.storage.getItem("vast-client-last-successful-ad")},set:function(e){this.storage.setItem("vast-client-last-successful-ad",e)}},{key:"totalCalls",get:function(){return this.storage.getItem("vast-client-total-calls")},set:function(e){this.storage.setItem("vast-client-total-calls",e)}},{key:"totalCallsTimeout",get:function(){return this.storage.getItem("vast-client-total-calls-timeout")},set:function(e){this.storage.setItem("vast-client-total-calls-timeout",e)}},{key:"hasRemainingAds",value:function(){return this.vastParser.remainingAds.length>0}},{key:"getNextAds",value:function(e){return this.vastParser.getRemainingAds(e)}},{key:"get",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Date.now();return(n=Object.assign({},this.defaultOptions,n)).hasOwnProperty("resolveAll")||(n.resolveAll=!1),this.totalCallsTimeout=t.totalCalls)return o(new Error("VAST call canceled – FreeLunch capping not reached yet ".concat(t.totalCalls,"/").concat(t.cappingFreeLunch)));var a=r-t.lastSuccessfulAd;if(a<0)t.lastSuccessfulAd=0;else if(a3&&void 0!==arguments[3]?arguments[3]:null;for(var s in i(this,o),(a=t.call(this)).ad=n,a.creative=r,a.variation=u,a.muted=!1,a.impressed=!1,a.skippable=!1,a.trackingEvents={},a.lastPercentage=0,a._alreadyTriggeredQuartiles={},a.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"],a.creative.trackingEvents){var c=a.creative.trackingEvents[s];a.trackingEvents[s]=c.slice(0)}return A(a.creative)?a._initLinearTracking():a._initVariationTracking(),e&&a.on("start",(function(){e.lastSuccessfulAd=Date.now()})),a}return a(o,[{key:"_initLinearTracking",value:function(){this.linear=!0,this.skipDelay=this.creative.skipDelay,this.setDuration(this.creative.duration),this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates}},{key:"_initVariationTracking",value:function(){if(this.linear=!1,this.skipDelay=-1,this.variation){for(var e in this.variation.trackingEvents){var t=this.variation.trackingEvents[e];this.trackingEvents[e]?this.trackingEvents[e]=this.trackingEvents[e].concat(t.slice(0)):this.trackingEvents[e]=t.slice(0)}"nonLinearAd"===this.variation.adType?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates,this.setDuration(this.variation.minSuggestedDuration)):function(e){return"companionAd"===e.adType}(this.variation)&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates)}}},{key:"setDuration",value:function(e){O.isValidTimeValue(e)&&(this.assetDuration=e,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100})}},{key:"setProgress",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(O.isValidTimeValue(e)&&"object"===r(n)){var i=this.skipDelay||-1;if(-1===i||this.skippable||(i>e?this.emit("skip-countdown",i-e):(this.skippable=!0,this.emit("skip-countdown",0))),this.assetDuration>0){var o=Math.round(e/this.assetDuration*100),a=[];if(e>0){a.push("start");for(var u=this.lastPercentage;u1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===r(t)&&(this.muted!==e&&this.track(e?"mute":"unmute",{macros:t}),this.muted=e)}},{key:"setPaused",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===r(t)&&(this.paused!==e&&this.track(e?"pause":"resume",{macros:t}),this.paused=e)}},{key:"setFullscreen",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===r(t)&&(this.fullscreen!==e&&this.track(e?"fullscreen":"exitFullscreen",{macros:t}),this.fullscreen=e)}},{key:"setExpand",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===r(t)&&(this.expanded!==e&&(this.track(e?"expand":"collapse",{macros:t}),this.track(e?"playerExpand":"playerCollapse",{macros:t})),this.expanded=e)}},{key:"setSkipDelay",value:function(e){O.isValidTimeValue(e)&&(this.skipDelay=e)}},{key:"trackImpression",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&(this.impressed||(this.impressed=!0,this.trackURLs(this.ad.impressionURLTemplates,e),this.track("creativeView",{macros:e})))}},{key:"error",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"object"===r(e)&&"boolean"==typeof t&&this.trackURLs(this.ad.errorURLTemplates,e,{isCustomCode:t})}},{key:"errorWithCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"string"==typeof e&&"boolean"==typeof t&&(this.error({ERRORCODE:e},t),console.log("The method errorWithCode is deprecated, please use vast tracker error method instead"))}},{key:"complete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("complete",{macros:e})}},{key:"notUsed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&(this.track("notUsed",{macros:e}),this.trackingEvents=[])}},{key:"otherAdInteraction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("otherAdInteraction",{macros:e})}},{key:"acceptInvitation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("acceptInvitation",{macros:e})}},{key:"adExpand",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("adExpand",{macros:e})}},{key:"adCollapse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("adCollapse",{macros:e})}},{key:"minimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("minimize",{macros:e})}},{key:"verificationNotExecuted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e&&"object"===r(t)){if(!this.ad||!this.ad.adVerifications||!this.ad.adVerifications.length)throw new Error("No adVerifications provided");if(!e)throw new Error("No vendor provided, unable to find associated verificationNotExecuted");var n=this.ad.adVerifications.find((function(t){return t.vendor===e}));if(!n)throw new Error("No associated verification element found for vendor: ".concat(e));var i=n.trackingEvents;if(i&&i.verificationNotExecuted){var o=i.verificationNotExecuted;this.trackURLs(o,t),this.emit("verificationNotExecuted",{trackingURLTemplates:o})}}}},{key:"overlayViewDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&"object"===r(t)&&(t.ADPLAYHEAD=e,this.track("overlayViewDuration",{macros:t}))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track(this.linear?"closeLinear":"close",{macros:e})}},{key:"skip",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("skip",{macros:e})}},{key:"load",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===r(e)&&this.track("loaded",{macros:e})}},{key:"click",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null===e||"string"==typeof e)&&"object"===r(t)){this.clickTrackingURLTemplates&&this.clickTrackingURLTemplates.length&&this.trackURLs(this.clickTrackingURLTemplates,t);var i=this.clickThroughURLTemplate||e,o=n({},t);if(i){this.progress&&(o.ADPLAYHEAD=this.progressFormatted());var a=O.resolveURLTemplates([i],o)[0];this.emit("clickthrough",a)}}}},{key:"track",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.macros,i=void 0===n?{}:n,o=t.once,a=void 0!==o&&o;if("object"===r(i)){"closeLinear"===e&&!this.trackingEvents[e]&&this.trackingEvents.close&&(e="close");var u=this.trackingEvents[e],s=this.emitAlwaysEvents.indexOf(e)>-1;u?(this.emit(e,{trackingURLTemplates:u}),this.trackURLs(u,i)):s&&this.emit(e,null),a&&(delete this.trackingEvents[e],s&&this.emitAlwaysEvents.splice(this.emitAlwaysEvents.indexOf(e),1))}}},{key:"trackURLs",value:function(e){var t,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});this.linear&&(this.creative&&this.creative.mediaFiles&&this.creative.mediaFiles[0]&&this.creative.mediaFiles[0].fileURL&&(o.ASSETURI=this.creative.mediaFiles[0].fileURL),this.progress&&(o.ADPLAYHEAD=this.progressFormatted())),null!==(t=this.creative)&&void 0!==t&&null!==(r=t.universalAdIds)&&void 0!==r&&r.length&&(o.UNIVERSALADID=this.creative.universalAdIds.map((function(e){return e.idRegistry.concat(" ",e.value)})).join(",")),this.ad&&(this.ad.sequence&&(o.PODSEQUENCE=this.ad.sequence),this.ad.adType&&(o.ADTYPE=this.ad.adType),this.ad.adServingId&&(o.ADSERVINGID=this.ad.adServingId),this.ad.categories&&this.ad.categories.length&&(o.ADCATEGORIES=this.ad.categories.map((function(e){return e.value})).join(",")),this.ad.blockedAdCategories&&this.ad.blockedAdCategories.length&&(o.BLOCKEDADCATEGORIES=this.ad.blockedAdCategories)),O.track(e,o,i)}},{key:"convertToTimecode",value:function(e){if(!O.isValidTimeValue(e))return"";var t=1e3*e,n=Math.floor(t/36e5),r=Math.floor(t/6e4%60),i=Math.floor(t/1e3%60),o=Math.floor(t%1e3);return"".concat(O.addLeadingZeros(n,2),":").concat(O.addLeadingZeros(r,2),":").concat(O.addLeadingZeros(i,2),".").concat(O.addLeadingZeros(o,3))}},{key:"progressFormatted",value:function(){return this.convertToTimecode(this.progress)}}]),o}(J);e.VASTClient=fe,e.VASTParser=ue,e.VASTTracker=pe,Object.defineProperty(e,"__esModule",{value:!0})}(t)},78320:function(e,t,n){"use strict";n.d(t,{Z:function(){return ne}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?l(_,--g):0,v--,10===b&&(v=1,y--),b}function E(){return b=g2||j(b)>3?"":" "}function C(e,t){for(;--t&&E()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return x(e,T()+(t<6&&32==O()&&32==E()))}function D(e){for(;E();)switch(b){case e:return g;case 34:case 39:34!==e&&39!==e&&D(b);break;case 40:41===e&&D(e);break;case 92:E()}return g}function I(e,t){for(;E()&&e+b!==57&&(e+b!==84||47!==O()););return"/*"+x(t,g-1)+"*"+o(47===e?e:E())}function L(e){for(;!j(O());)E();return x(e,g)}var U="-ms-",B="-webkit-",M="comm",F="rule",z="decl",G="@keyframes";function V(e,t){for(var n="",r=d(e),i=0;i0&&p(B)-m&&h(b>32?J(B+";",r,n,m-1):J(s(B," ","")+";",r,n,m-2),d);break;case 59:B+=";";default:if(h(U=q(B,t,n,y,v,i,f,A,R=[],D=[],m),a),123===j)if(0===v)H(B,t,U,U,R,a,m,f,D);else switch(99===g&&110===l(B,3)?100:g){case 100:case 109:case 115:H(e,U,U,r&&h(q(e,U,U,0,0,i,f,A,i,R=[],m),D),i,D,m,f,r?R:D);break;default:H(B,U,U,U,[""],D,0,f,D)}}y=v=b=0,w=x=1,A=B="",m=u;break;case 58:m=1+p(B),b=_;default:if(w<1)if(123==j)--w;else if(125==j&&0==w++&&125==k())continue;switch(B+=o(j),j*w){case 38:x=v>0?1:(B+="\f",-1);break;case 44:f[y++]=(p(B)-1)*x,x=1;break;case 64:45===O()&&(B+=P(E())),g=O(),v=m=p(A=B+=L(T())),j++;break;case 45:45===_&&2==p(B)&&(w=0)}}return a}function q(e,t,n,r,o,a,c,l,p,h,y){for(var v=o-1,m=0===o?a:[""],g=d(m),b=0,_=0,S=0;b0?m[k]+" "+E:s(E,/&\f/g,m[k])))&&(p[S++]=O);return w(e,t,n,0===o?F:l,p,h,y)}function W(e,t,n){return w(e,t,n,M,o(b),f(e,2,-2),0)}function J(e,t,n,r){return w(e,t,n,z,f(e,0,r),f(e,r+1,-1),r)}var K=function(e,t,n){for(var r=0,i=0;r=i,i=O(),38===r&&12===i&&(t[n]=1),!j(i);)E();return x(e,g)},Q=new WeakMap,X=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],a=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch(j(r)){case 0:38===r&&12===O()&&(t[n]=1),e[n]+=K(g-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=E());return e}(A(e),t))}(t,i),u=n.props,s=0,c=0;s6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ee(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return s(e,":",":-webkit-")+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===l(e,14)?"inline-":"")+"box$3$1-webkit-$2$3$1-ms-$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return B+e+U+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+U+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+U+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+U+e+e}return e}var te=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=ee(e.value,e.length);break;case G:return V([S(e,{value:s(e.value,"@","@-webkit-")})],r);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([S(e,{props:[s(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([S(e,{props:[s(t,/:(plac\w+)/,":-webkit-input-$1")]}),S(e,{props:[s(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[s(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],ne=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||te,u={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(12944),a=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},l=(0,o.Z)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===i[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)d={name:r.name,styles:r.styles,next:d},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?p:d},y=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},v=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.hC)(t,n,r),(0,f.L)((function(){return(0,c.My)(t,n,r)})),null},m=function e(t,n){var o,a,u=t.__emotion_real===t,f=u&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var p=y(t,n,u),d=p||h(f),m=!d("as");return function(){var g=arguments,b=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==g[0]||void 0===g[0].raw)b.push.apply(b,g);else{b.push(g[0][0]);for(var _=g.length,w=1;w<_;w++)b.push(g[w],g[0][w])}var S=(0,s.w)((function(e,t,n){var r=m&&e.as||f,o="",u=[],y=e;if(null==e.theme){for(var g in y={},e)y[g]=e[g];y.theme=(0,i.useContext)(s.T)}"string"==typeof e.className?o=(0,c.fp)(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var _=(0,l.O)(b.concat(u),t.registered,y);o+=t.key+"-"+_.name,void 0!==a&&(o+=" "+a);var w=m&&void 0===p?h(r):d,S={};for(var k in e)m&&"as"===k||w(k)&&(S[k]=e[k]);return S.className=o,S.ref=n,(0,i.createElement)(i.Fragment,null,(0,i.createElement)(v,{cache:t,serialized:_,isStringTag:"string"==typeof r}),(0,i.createElement)(r,S))}));return S.displayName=void 0!==o?o:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=f,S.__emotion_styles=b,S.__emotion_forwardProp=p,Object.defineProperty(S,"toString",{value:function(){return"."+a}}),S.withComponent=function(t,i){return e(t,(0,r.Z)({},n,i,{shouldForwardProp:y(S,i,!0)})).apply(void 0,b)},S}}},86976:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return a},j:function(){return u}});var i=n(11963),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},u=o||i.useLayoutEffect},74907:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},51519:function(e){"use strict";e.exports=function(e,t){for(var n=new Array(arguments.length-1),r=0,i=2,o=!0;i1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),i=new Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(e,t,n){for(var i,o=null,a=[],u=0,s=0;t>2],i=(3&c)<<4,s=1;break;case 1:a[u++]=r[i|c>>4],i=(15&c)<<2,s=2;break;case 2:a[u++]=r[i|c>>6],a[u++]=r[63&c],s=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),u=0)}return s&&(a[u++]=r[i],a[u++]=61,1===s&&(a[u++]=61)),o?(u&&o.push(String.fromCharCode.apply(String,a.slice(0,u))),o.join("")):String.fromCharCode.apply(String,a.slice(0,u))};var a="invalid encoding";n.decode=function(e,t,n){for(var r,o=n,u=0,s=0;s1)break;if(void 0===(c=i[c]))throw Error(a);switch(u){case 0:r=c,u=1;break;case 1:t[n++]=r<<2|(48&c)>>4,r=c,u=2;break;case 2:t[n++]=(15&r)<<4|(60&c)>>2,r=c,u=3;break;case 3:t[n++]=(3&r)<<6|c,u=0}}if(1===u)throw Error(a);return n-o},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},24581:function(e){"use strict";function t(e,n){"string"==typeof e&&(n=e,e=void 0);var r=[];function i(e){if("string"!=typeof e){var n=o();if(t.verbose&&console.log("codegen: "+n),n="return "+n,e){for(var a=Object.keys(e),u=new Array(a.length+1),s=new Array(a.length),c=0;c0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),i=2*(r>>31)+1,o=r>>>23&255,a=8388607&r;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function o(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function u(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:o,e.writeDoubleBE=r?o:i,e.readDoubleLE=r?a:u,e.readDoubleBE=r?u:a}():function(){function t(e,t,n,r,i,o){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,i,o+t),e(1/r>0?0:2147483648,i,o+n);else if(isNaN(r))e(0,i,o+t),e(2146959360,i,o+n);else if(r>17976931348623157e292)e(0,i,o+t),e((a<<31|2146435072)>>>0,i,o+n);else{var u;if(r<22250738585072014e-324)e((u=r/5e-324)>>>0,i,o+t),e((a<<31|u/4294967296)>>>0,i,o+n);else{var s=Math.floor(Math.log(r)/Math.LN2);1024===s&&(s=1023),e(4503599627370496*(u=r*Math.pow(2,-s))>>>0,i,o+t),e((a<<31|s+1023<<20|1048576*u&1048575)>>>0,i,o+n)}}}function a(e,t,n,r,i){var o=e(r,i+t),a=e(r,i+n),u=2*(a>>31)+1,s=a>>>20&2047,c=4294967296*(1048575&a)+o;return 2047===s?c?NaN:u*(1/0):0===s?5e-324*u*c:u*Math.pow(2,s-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},14326:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},13773:function(e,t){"use strict";var n=t,r=n.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},i=n.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),n=r(e),i="";n&&(i=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):n?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return i+t.join("/")};n.resolve=function(e,t,n){return n||(t=i(t)),r(t)?t:(n||(e=i(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?i(e+"/"+t):t)}},34580:function(e){"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,o=null,a=r;return function(n){if(n<1||n>i)return e(n);a+n>r&&(o=e(r),a=0);var u=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),u}}},96157:function(e,t){"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r191&&r<224?o[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(r>>10),o[a++]=56320+(1023&r)):o[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},n.write=function(e,t,n){for(var r,i,o=n,a=0;a>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&i),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-o}},29722:function(e,t,n){var r,i;r=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n>8&255]},H=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},q=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},W=function(e){return G(e,23,4)},J=function(e){return G(e,52,8)},K=function(e,t,n){c(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},Q=function(e,t,n,r){var i=y(n),o=R(e);if(i+t>o.byteLength)throw M(j);var a=o.bytes,u=i+o.byteOffset,s=w(a,u,u+t);return r?s:z(s)},X=function(e,t,n,r,i,o){var a=y(n),u=R(e);if(a+t>u.byteLength)throw M(j);for(var s=u.bytes,c=a+u.byteOffset,l=r(+i),f=0;fne;)(ee=te[ne++])in C||s(C,ee,N[ee]);D.constructor=C}g&&m(L)!==U&&g(L,U);var re=new I(new C(2)),ie=i(L.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||l(L,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else D=(C=function(e){p(this,D);var t=y(e);P(this,{type:T,bytes:F(B(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,L=(I=function(e,t,n){p(this,L),p(e,D);var r=A(e),i=r.byteLength,a=d(t);if(a<0||a>i)throw M("Wrong offset");if(a+(n=void 0===n?i-a:h(n))>i)throw M("Wrong length");P(this,{type:x,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)}).prototype,o&&(K(C,"byteLength",A),K(I,"buffer",R),K(I,"byteLength",R),K(I,"byteOffset",R)),l(L,{getInt8:function(e){return Q(this,1,e)[0]<<24>>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return q(Q(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return q(Q(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return V(Q(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return V(Q(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){X(this,1,e,Y,t)},setUint8:function(e,t){X(this,1,e,Y,t)},setInt16:function(e,t){X(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){X(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){X(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){X(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){X(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){X(this,8,e,J,t,arguments.length>2?arguments[2]:void 0)}});S(C,T),S(I,x),e.exports={ArrayBuffer:C,DataView:I}},39643:function(e,t,n){"use strict";var r=n(85731),i=n(79213),o=n(91376),a=n(24618),u=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n),c=i(e,s),l=i(t,s),f=arguments.length>2?arguments[2]:void 0,p=u((void 0===f?s:i(f,s))-l,s-c),d=1;for(l0;)l in n?n[c]=n[l]:a(n,c),c+=d,l+=d;return n}},2210:function(e,t,n){"use strict";var r=n(85731),i=n(79213),o=n(91376);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,u=i(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:i(s,n);c>u;)t[u++]=e;return t}},66247:function(e,t,n){"use strict";var r=n(47672).forEach,i=n(79663)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},27855:function(e,t,n){var r=n(91376);e.exports=function(e,t){for(var n=0,i=r(t),o=new e(i);i>n;)o[n]=t[n++];return o}},94787:function(e,t,n){"use strict";var r=n(34871),i=n(8565),o=n(85731),a=n(3341),u=n(5637),s=n(87720),c=n(91376),l=n(35169),f=n(75702),p=n(86746),d=Array;e.exports=function(e){var t=o(e),n=s(this),h=arguments.length,y=h>1?arguments[1]:void 0,v=void 0!==y;v&&(y=r(y,h>2?arguments[2]:void 0));var m,g,b,_,w,S,k=p(t),E=0;if(!k||this===d&&u(k))for(m=c(t),g=n?new this(m):d(m);m>E;E++)S=v?y(t[E],E):t[E],l(g,E,S);else for(w=(_=f(t,k)).next,g=n?new this:[];!(b=i(w,_)).done;E++)S=v?a(_,y,[b.value,E],!0):b.value,l(g,E,S);return g.length=E,g}},49237:function(e,t,n){var r=n(89076),i=n(79213),o=n(91376),a=function(e){return function(t,n,a){var u,s=r(t),c=o(s),l=i(a,c);if(e&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},47672:function(e,t,n){var r=n(34871),i=n(39376),o=n(66691),a=n(85731),u=n(91376),s=n(67574),c=i([].push),l=function(e){var t=1==e,n=2==e,i=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,y,v,m){for(var g,b,_=a(h),w=o(_),S=r(y,v),k=u(w),E=0,O=m||s,T=t?O(h,k):n||p?O(h,0):void 0;k>E;E++)if((d||E in w)&&(b=S(g=w[E],E,_),e))if(t)T[E]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:c(T,g)}else switch(e){case 4:return!1;case 7:c(T,g)}return f?-1:i||l?l:T}};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)}},46136:function(e,t,n){"use strict";var r=n(95607),i=n(89076),o=n(45348),a=n(91376),u=n(79663),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=u("lastIndexOf"),p=l||!f;e.exports=p?function(e){if(l)return r(c,this,arguments)||0;var t=i(this),n=a(t),u=n-1;for(arguments.length>1&&(u=s(u,o(arguments[1]))),u<0&&(u=n+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:c},83816:function(e,t,n){var r=n(37709),i=n(31696),o=n(70400),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},79663:function(e,t,n){"use strict";var r=n(37709);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},29200:function(e,t,n){var r=n(13861),i=n(85731),o=n(66691),a=n(91376),u=TypeError,s=function(e){return function(t,n,s,c){r(n);var l=i(t),f=o(l),p=a(l),d=e?p-1:0,h=e?-1:1;if(s<2)for(;;){if(d in f){c=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw u("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(c=n(c,f[d],d,l));return c}};e.exports={left:s(!1),right:s(!0)}},60200:function(e,t,n){"use strict";var r=n(94946),i=n(71591),o=TypeError,a=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(i(e)&&!a(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},24180:function(e,t,n){var r=n(79213),i=n(91376),o=n(35169),a=Array,u=Math.max;e.exports=function(e,t,n){for(var s=i(e),c=r(t,s),l=r(void 0===n?s:n,s),f=a(u(l-c,0)),p=0;c0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},u=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,u=0;a1?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!!b(this,e)}}),o(p,n?{get:function(e){var t=b(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)}}),d&&i(p,"size",{configurable:!0,get:function(){return y(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);l(e,t,(function(e,t){v(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(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)?f("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),p(t)}}},56907:function(e,t,n){"use strict";var r=n(39376),i=n(6561),o=n(33323).getWeakData,a=n(53157),u=n(63244),s=n(19790),c=n(70814),l=n(78984),f=n(47672),p=n(40053),d=n(49297),h=d.set,y=d.getterFor,v=f.find,m=f.findIndex,g=r([].splice),b=0,_=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},S=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=S(this,e);if(t)return t[1]},has:function(e){return!!S(this,e)},set:function(e,t){var n=S(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var f=e((function(e,i){a(e,d),h(e,{type:t,id:b++,frozen:void 0}),s(i)||l(i,e[r],{that:e,AS_ENTRIES:n})})),d=f.prototype,v=y(t),m=function(e,t,n){var r=v(e),i=o(u(t),!0);return!0===i?_(r).set(t,n):i[r.id]=n,e};return i(d,{delete:function(e){var t=v(this);if(!c(e))return!1;var n=o(e);return!0===n?_(t).delete(e):n&&p(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!c(e))return!1;var n=o(e);return!0===n?_(t).has(e):n&&p(n,t.id)}}),i(d,n?{get:function(e){var t=v(this);if(c(e)){var n=o(e);return!0===n?_(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},75063:function(e,t,n){"use strict";var r=n(10118),i=n(49157),o=n(39376),a=n(87435),u=n(51635),s=n(33323),c=n(78984),l=n(53157),f=n(53637),p=n(19790),d=n(70814),h=n(37709),y=n(57499),v=n(7154),m=n(33566);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=g?"set":"add",w=i[e],S=w&&w.prototype,k=w,E={},O=function(e){var t=o(S[e]);u(S,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(w)||!(b||S.forEach&&!h((function(){(new w).entries().next()})))))k=n.getConstructor(t,e,g,_),s.enable();else if(a(e,!0)){var T=new k,x=T[_](b?{}:-0,1)!=T,j=h((function(){T.has(1)})),A=y((function(e){new w(e)})),R=!b&&h((function(){for(var e=new w,t=5;t--;)e[_](t,t);return!e.has(-0)}));A||((k=t((function(e,t){l(e,S);var n=m(new w,e,k);return p(t)||c(t,n[_],{that:n,AS_ENTRIES:g}),n}))).prototype=S,S.constructor=k),(j||R)&&(O("delete"),O("has"),g&&O("get")),(R||x)&&O(_),b&&S.clear&&delete S.clear}return E[e]=k,r({global:!0,constructor:!0,forced:k!=w},E),v(k,e),b||n.setStrong(k,e,g),k}},55034:function(e,t,n){var r=n(40053),i=n(27878),o=n(64790),a=n(57902);e.exports=function(e,t,n){for(var u=i(t),s=a.f,c=o.f,l=0;l9007199254740991)throw t("Maximum allowed index exceeded");return e}},44020:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},16154:function(e,t,n){var r=n(58198)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},1592:function(e,t,n){var r=n(95174).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},334:function(e,t,n){var r=n(47284),i=n(73337);e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},47284:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},21786:function(e,t,n){var r=n(95174);e.exports=/MSIE|Trident/.test(r)},17289:function(e,t,n){var r=n(95174);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},47892:function(e,t,n){var r=n(95174);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},73337:function(e,t,n){var r=n(16610);e.exports="undefined"!=typeof process&&"process"==r(process)},23113:function(e,t,n){var r=n(95174);e.exports=/web0s(?!.*chrome)/i.test(r)},95174:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},70400:function(e,t,n){var r,i,o=n(49157),a=n(95174),u=o.process,s=o.Deno,c=u&&u.versions||s&&s.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},14524:function(e,t,n){var r=n(95174).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},6971:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},10118:function(e,t,n){var r=n(49157),i=n(64790).f,o=n(17287),a=n(51635),u=n(78239),s=n(55034),c=n(87435);e.exports=function(e,t){var n,l,f,p,d,h=e.target,y=e.global,v=e.stat;if(n=y?r:v?r[h]||u(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(y?l:h+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(n,l,p,e)}}},37709:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},6727:function(e,t,n){"use strict";n(17326);var r=n(45491),i=n(51635),o=n(62509),a=n(37709),u=n(31696),s=n(17287),c=u("species"),l=RegExp.prototype;e.exports=function(e,t,n,f){var p=u(e),d=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=d&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!d||!h||n){var y=r(/./[p]),v=t(p,""[e],(function(e,t,n,i,a){var u=r(e),s=t.exec;return s===o||s===l.exec?d&&!a?{done:!0,value:y(t,n,i)}:{done:!0,value:u(n,t,i)}:{done:!1}}));i(String.prototype,e,v[0]),i(l,p,v[1])}f&&s(l[p],"sham",!0)}},88815:function(e,t,n){var r=n(37709);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},95607:function(e,t,n){var r=n(80369),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},34871:function(e,t,n){var r=n(45491),i=n(13861),o=n(80369),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},80369:function(e,t,n){var r=n(37709);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},10773:function(e,t,n){"use strict";var r=n(39376),i=n(13861),o=n(70814),a=n(40053),u=n(74638),s=n(80369),c=Function,l=r([].concat),f=r([].join),p={},d=function(e,t,n){if(!a(p,t)){for(var r=[],i=0;i]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,p){var d=n+e.length,h=r.length,y=l;return void 0!==f&&(f=i(f),y=c),u(p,y,(function(i,u){var c;switch(a(u,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,n);case"'":return s(t,d);case"<":c=f[s(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>h){var p=o(l/10);return 0===p?i:p<=h?void 0===r[p-1]?a(u,1):r[p-1]+a(u,1):i}c=r[l-1]}return void 0===c?"":c}))}},49157:function(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")()},40053:function(e,t,n){var r=n(39376),i=n(85731),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},74033:function(e){e.exports={}},77234:function(e){e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},59237:function(e,t,n){var r=n(53452);e.exports=r("document","documentElement")},18622:function(e,t,n){var r=n(94946),i=n(37709),o=n(58198);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},64253:function(e){var t=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,u,s){var c,l,f,p=t(s),d=8*s-u-1,h=(1<>1,v=23===u?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,g=0;for((e=n(e))!=e||e===1/0?(l=e!=e?1:0,c=h):(c=i(o(e)/a),e*(f=r(2,-c))<1&&(c--,f*=2),(e+=c+y>=1?v/f:v*r(2,1-y))*f>=2&&(c++,f/=2),c+y>=h?(l=0,c=h):c+y>=1?(l=(e*f-1)*r(2,u),c+=y):(l=e*r(2,y-1)*r(2,u),c=0));u>=8;)p[g++]=255&l,l/=256,u-=8;for(c=c<0;)p[g++]=255&c,c/=256,d-=8;return p[--g]|=128*m,p},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<>1,s=o-7,c=i-1,l=e[c--],f=127&l;for(l>>=7;s>0;)f=256*f+e[c--],s-=8;for(n=f&(1<<-s)-1,f>>=-s,s+=t;s>0;)n=256*n+e[c--],s-=8;if(0===f)f=1-u;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=r(2,t),f-=u}return(l?-1:1)*n*r(2,f-t)}}},66691:function(e,t,n){var r=n(39376),i=n(37709),o=n(16610),a=Object,u=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?u(e,""):a(e)}:a},33566:function(e,t,n){var r=n(53637),i=n(70814),o=n(2676);e.exports=function(e,t,n){var a,u;return o&&r(a=t.constructor)&&a!==n&&i(u=a.prototype)&&u!==n.prototype&&o(e,u),e}},47237:function(e,t,n){var r=n(39376),i=n(53637),o=n(12377),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},33323:function(e,t,n){var r=n(10118),i=n(39376),o=n(74033),a=n(70814),u=n(40053),s=n(57902).f,c=n(23888),l=n(30224),f=n(56390),p=n(6276),d=n(88815),h=!1,y=p("meta"),v=0,m=function(e){s(e,y,{value:{objectID:"O"+v++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},h=!0;var e=c.f,t=i([].splice),n={};n[y]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;ig;g++)if((_=R(e[g]))&&c(y,_))return _;return new h(!1)}v=l(e,m)}for(w=O?e.next:v.next;!(S=i(w,v)).done;){try{_=R(S.value)}catch(e){p(v,"throw",e)}if("object"==typeof _&&_&&c(y,_))return _}return new h(!1)}},45682:function(e,t,n){var r=n(8565),i=n(63244),o=n(69475);e.exports=function(e,t,n){var a,u;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw n;if(u)throw a;return i(a),n}},35217:function(e,t,n){"use strict";var r=n(52783).IteratorPrototype,i=n(21528),o=n(27065),a=n(7154),u=n(43783),s=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,l,!1,!0),u[l]=s,e}},80910:function(e,t,n){"use strict";var r=n(10118),i=n(8565),o=n(30035),a=n(6844),u=n(53637),s=n(35217),c=n(52530),l=n(2676),f=n(7154),p=n(17287),d=n(51635),h=n(31696),y=n(43783),v=n(52783),m=a.PROPER,g=a.CONFIGURABLE,b=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,w=h("iterator"),S="keys",k="values",E="entries",O=function(){return this};e.exports=function(e,t,n,a,h,v,T){s(n,t,a);var x,j,A,R=function(e){if(e===h&&I)return I;if(!_&&e in C)return C[e];switch(e){case S:case k:case E:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",N=!1,C=e.prototype,D=C[w]||C["@@iterator"]||h&&C[h],I=!_&&D||R(h),L="Array"==t&&C.entries||D;if(L&&(x=c(L.call(new e)))!==Object.prototype&&x.next&&(o||c(x)===b||(l?l(x,b):u(x[w])||d(x,w,O)),f(x,P,!0,!0),o&&(y[P]=O)),m&&h==k&&D&&D.name!==k&&(!o&&g?p(C,"name",k):(N=!0,I=function(){return i(D,this)})),h)if(j={values:R(k),keys:v?I:R(S),entries:R(E)},T)for(A in j)(_||N||!(A in C))&&d(C,A,j[A]);else r({target:t,proto:!0,forced:_||N},j);return o&&!T||C[w]===I||d(C,w,I,{name:h}),y[t]=I,j}},52783:function(e,t,n){"use strict";var r,i,o,a=n(37709),u=n(53637),s=n(70814),c=n(21528),l=n(52530),f=n(51635),p=n(31696),d=n(30035),h=p("iterator"),y=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):y=!0),!s(r)||a((function(){var e={};return r[h].call(e)!==e}))?r={}:d&&(r=c(r)),u(r[h])||f(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},43783:function(e){e.exports={}},91376:function(e,t,n){var r=n(40908);e.exports=function(e){return r(e.length)}},27677:function(e,t,n){var r=n(39376),i=n(37709),o=n(53637),a=n(40053),u=n(94946),s=n(6844).CONFIGURABLE,c=n(47237),l=n(49297),f=l.enforce,p=l.get,d=String,h=Object.defineProperty,y=r("".slice),v=r("".replace),m=r([].join),g=u&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===y(d(t),0,7)&&(t="["+v(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(u?h(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?u&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&p(this).source||c(this)}),"toString")},62268:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},76691:function(e,t,n){var r,i,o,a,u,s=n(49157),c=n(34871),l=n(64790).f,f=n(11532).set,p=n(24018),d=n(47892),h=n(17289),y=n(23113),v=n(73337),m=s.MutationObserver||s.WebKitMutationObserver,g=s.document,b=s.process,_=s.Promise,w=l(s,"queueMicrotask"),S=w&&w.value;if(!S){var k=new p,E=function(){var e,t;for(v&&(e=b.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&r(),e}e&&e.enter()};d||v||y||!m||!g?!h&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,u=c(a.then,a),r=function(){u(E)}):v?r=function(){b.nextTick(E)}:(f=c(f,s),r=function(){f(E)}):(i=!0,o=g.createTextNode(""),new m(E).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),S=function(e){k.head||r(),k.add(e)}}e.exports=S},37380:function(e,t,n){"use strict";var r=n(13861),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},46509:function(e,t,n){var r=n(4979),i=TypeError;e.exports=function(e){if(r(e))throw i("The method doesn't accept regular expressions");return e}},94302:function(e,t,n){var r=n(49157),i=n(37709),o=n(39376),a=n(65713),u=n(94715).trim,s=n(43605),c=o("".charAt),l=r.parseFloat,f=r.Symbol,p=f&&f.iterator,d=1/l(s+"-0")!=-1/0||p&&!i((function(){l(Object(p))}));e.exports=d?function(e){var t=u(a(e)),n=l(t);return 0===n&&"-"==c(t,0)?-0:n}:l},73379:function(e,t,n){var r=n(49157),i=n(37709),o=n(39376),a=n(65713),u=n(94715).trim,s=n(43605),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,p=/^[+-]?0x/i,d=o(p.exec),h=8!==c(s+"08")||22!==c(s+"0x16")||f&&!i((function(){c(Object(f))}));e.exports=h?function(e,t){var n=u(a(e));return c(n,t>>>0||(d(p,n)?16:10))}:c},31201:function(e,t,n){"use strict";var r=n(94946),i=n(39376),o=n(8565),a=n(37709),u=n(7847),s=n(86338),c=n(34204),l=n(85731),f=n(66691),p=Object.assign,d=Object.defineProperty,h=i([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||u(p({},t)).join("")!=i}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,p=s.f,d=c.f;i>a;)for(var y,v=f(arguments[a++]),m=p?h(u(v),p(v)):u(v),g=m.length,b=0;g>b;)y=m[b++],r&&!o(d,v,y)||(n[y]=v[y]);return n}:p},21528:function(e,t,n){var r,i=n(63244),o=n(95940),a=n(6971),u=n(74033),s=n(59237),c=n(58198),l=n(96671)("IE_PROTO"),f=function(){},p=function(e){return"