(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{77236:function(t,e,n){"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:p(t)?2:h(t)?3:0}function c(t,e){return 2===a(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){return 2===a(t)?t.get(e):t[e]}function l(t,e,n){var r=a(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function p(t){return H&&t instanceof Map}function h(t){return z&&t instanceof Set}function f(t){return t.o||t.t}function m(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Z(t);delete e[J];for(var n=Y(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=y),Object.freeze(t),e&&s(t,(function(t,e){return g(e,!0)}),!0)),t}function y(){r(2)}function _(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function v(t){var e=K[t];return e||r(18,t),e}function b(t,e){K[t]||(K[t]=e)}function S(){return U}function k(t,e){e&&(v("Patches"),t.u=[],t.s=[],t.v=e)}function w(t){T(t),t.p.forEach(x),t.p=null}function T(t){t===U&&(U=t.l)}function E(t){return U={p:[],l:U,h:t,m:!0,_:0}}function x(t){var e=t[J];0===e.i||1===e.i?e.j():e.g=!0}function I(t,e){e._=e.p.length;var n=e.p[0],i=void 0!==t&&t!==n;return e.h.O||v("ES5").S(e,t,i),i?(n[J].P&&(w(e),r(4)),o(t)&&(t=C(e,t),e.l||O(e,t)),e.u&&v("Patches").M(n[J].t,t,e.u,e.s)):t=C(e,n,[]),w(e),e.u&&e.v(e.u,e.s),t!==q?t:void 0}function C(t,e,n){if(_(e))return e;var r=e[J];if(!r)return s(e,(function(i,o){return R(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return O(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=m(r.k):r.o,o=i,a=!1;3===r.i&&(o=new Set(i),i.clear(),a=!0),s(o,(function(e,o){return R(t,r,i,e,o,n,a)})),O(t,i,!1),n&&t.u&&v("Patches").N(r,n,t.u,t.s)}return r.o}function R(t,e,n,r,s,a,u){if(i(s)){var d=C(t,s,a&&e&&3!==e.i&&!c(e.R,r)?a.concat(r):void 0);if(l(n,r,d),!i(d))return;t.m=!1}else u&&n.add(s);if(o(s)&&!_(s)){if(!t.h.D&&t._<1)return;C(t,s),e&&e.A.l||O(t,s)}}function O(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&g(e,n)}function M(t,e){var n=t[J];return(n?f(n):t)[e]}function A(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function D(t){t.P||(t.P=!0,t.l&&D(t.l))}function N(t){t.o||(t.o=m(t.t))}function P(t,e,n){var r=p(e)?v("MapSet").F(e,n):h(e)?v("MapSet").T(e,n):t.O?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:S(),P:!1,I:!1,R:{},l:e,t:t,k:null,o:null,j:null,C:!1},i=r,o=V;n&&(i=[r],o=Q);var s=Proxy.revocable(i,o),a=s.revoke,c=s.proxy;return r.k=c,r.j=a,c}(e,n):v("ES5").J(e,n);return(n?n.A:S()).p.push(r),r}function L(t){return i(t)||r(22,t),function t(e){if(!o(e))return e;var n,r=e[J],i=a(e);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=j(e,i),r.I=!1}else n=j(e,i);return s(n,(function(e,i){r&&u(r.t,e)===i||l(n,e,t(i))})),3===i?new Set(n):n}(t)}function j(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return m(t)}function $(){function t(t,e){var n=o[t];return n?n.enumerable=e:o[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[J];return V.get(e,t)},set:function(e){var n=this[J];V.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][J];if(!i.P)switch(i.i){case 5:r(i)&&D(i);break;case 4:n(i)&&D(i)}}}function n(t){for(var e=t.t,n=t.k,r=Y(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==J){var s=e[o];if(void 0===s&&!c(e,o))return!0;var a=n[o],u=a&&a[J];if(u?u.t!==s:!d(a,s))return!0}}var l=!!e[J];return r.length!==Y(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),o=1;o1?r-1:0),o=1;o=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var o=v("Patches").$;return i(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),et=new tt,nt=et.produce,rt=(et.produceWithPatches.bind(et),et.setAutoFreeze.bind(et),et.setUseProxies.bind(et),et.applyPatches.bind(et),et.createDraft.bind(et),et.finishDraft.bind(et),nt),it=n(45217);function ot(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"===typeof i?i(n,r,t):e(i)}}}}var st=ot();st.withExtraArgument=ot;var at=st,ct=(n(83454),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ut=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1][]))}function u(t){c().push(t)}function l(t,e,n,r=0){return new i.cW(((i,c)=>{const u=t[r];if(null===e||"function"!==typeof u)i(e);else{const d=u({...e},n);a.X&&u.id&&null===d&&o.kg.log(`Event processor "${u.id}" dropped event`),(0,s.J8)(d)?d.then((e=>l(t,e,n,r+1).then(i))).then(null,c):l(t,d,n,r+1).then(i).then(null,c)}}))}},64487:function(t,e,n){"use strict";n.d(e,{$e:function(){return m},Tb:function(){return l},YA:function(){return f},cg:function(){return k},eN:function(){return d},nZ:function(){return _},n_:function(){return p},s3:function(){return y},v:function(){return h},yj:function(){return v},yl:function(){return g}});var r=n(12343),i=n(71235),o=n(51131),s=n(81703),a=n(95659),c=n(9015),u=n(88942);function l(t,e){return(0,a.Gd)().captureException(t,(0,u.U0)(e))}function d(t,e){return(0,a.Gd)().captureEvent(t,e)}function p(t,e){(0,a.Gd)().addBreadcrumb(t,e)}function h(t,e){(0,a.Gd)().setContext(t,e)}function f(t,e){(0,a.Gd)().setTag(t,e)}function m(...t){const e=(0,a.Gd)();if(2===t.length){const[n,r]=t;return n?e.withScope((()=>(e.getStackTop().scope=n,r(n)))):e.withScope(r)}return e.withScope(t[0])}async function g(t){const e=y();return e?e.flush(t):(s.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function y(){return(0,a.Gd)().getClient()}function _(){return(0,a.Gd)().getScope()}function v(t){const e=y(),n=(0,a.aF)(),r=_(),{release:s,environment:u=o.J}=e&&e.getOptions()||{},{userAgent:l}=i.n2.navigator||{},d=(0,c.Hv)({release:s,environment:u,user:r.getUser()||n.getUser(),...l&&{userAgent:l},...t}),p=n.getSession();return p&&"ok"===p.status&&(0,c.CT)(p,{status:"exited"}),b(),n.setSession(d),r.setSession(d),d}function b(){const t=(0,a.aF)(),e=_(),n=e.getSession()||t.getSession();n&&(0,c.RJ)(n),S(),t.setSession(),e.setSession()}function S(){const t=(0,a.aF)(),e=_(),n=y(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function k(t=!1){t?b():S()}},95659:function(t,e,n){"use strict";n.d(e,{Gd:function(){return _},aF:function(){return v},cu:function(){return g}});var r=n(67597),i=n(62844),o=n(21170),s=n(12343),a=n(71235),c=n(51131),u=n(81703),l=n(10350),d=n(9015),p=n(40105);const h=parseFloat(p.J),f=100;class m{constructor(t,e,n,r=h){let i,o;this._version=r,e?i=e:(i=new l.sX,i.setClient(t)),n?o=n:(o=new l.sX,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:(0,i.DM)(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),o=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,i.DM)();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=f}=r.getOptions&&r.getOptions()||{};if(a<=0)return;const c={timestamp:(0,o.yW)(),...t},u=i?(0,s.Cf)((()=>i(c,e))):c;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=y(this);try{t(this)}finally{y(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return u.X&&s.kg.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if(u.X&&!n){this.getClient()?s.kg.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):s.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&(0,d.RJ)(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=c.J}=n&&n.getOptions()||{},{userAgent:o}=a.n2.navigator||{},s=(0,d.Hv)({release:r,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&(0,d.CT)(u,{status:"exited"}),this.endSession(),e.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=g().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[t])return n.extensions[t].apply(this,e);u.X&&s.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function g(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function y(t){const e=g(),n=k(e);return w(e,t),n}function _(){const t=g();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return b(t)}function v(){return _().getIsolationScope()}function b(t=g()){return S(t)&&!k(t).isOlderThan(h)||w(t,new m),k(t)}function S(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function k(t){return(0,a.YO)("hub",(()=>new m),t)}function w(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}},10350:function(t,e,n){"use strict";n.d(e,{lW:function(){return p},sX:function(){return d}});var r=n(67597),i=n(21170),o=n(62844),s=n(12343),a=n(71195),c=n(9015),u=n(73379);let l;class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=h()}static clone(t){return t?t.clone():new d}clone(){const t=new d;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"===typeof t?t(this):t;if(e instanceof d){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if((0,r.PO)(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=h(),this}addBreadcrumb(t,e){const n="number"===typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,i.yW)(),...t},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:i,_user:o,_level:s,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:d,_span:p}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:i,user:o,level:s,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:d,span:p}}applyToEvent(t,e={},n=[]){(0,u.gi)(t,this.getScopeData());const r=[...n,...(0,a.fH)(),...this._eventProcessors];return(0,a.RP)(r,t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:(0,o.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:(0,o.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,o.DM)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(s.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}function p(){return l||(l=new d),l}function h(){return{traceId:(0,o.DM)(),spanId:(0,o.DM)().substring(16)}}},9015:function(t,e,n){"use strict";n.d(e,{CT:function(){return a},Hv:function(){return s},RJ:function(){return c}});var r=n(21170),i=n(62844),o=n(20535);function s(t){const e=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,o.Jr)({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"===typeof t.did||"string"===typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&a(n,t),n}function a(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,r.ph)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"===typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"===typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"===typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},90454:function(t,e,n){"use strict";n.d(e,{_:function(){return c},j:function(){return u}});var r=n(20535),i=n(51131),o=n(64487),s=n(55102),a=n(93371);function c(t,e,n){const o=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:a}=n&&n.getUser()||{},c=(0,r.Jr)({environment:o.environment||i.J,release:o.release,user_segment:a,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",c),c}function u(t){const e=(0,o.s3)();if(!e)return{};const n=c((0,a.XU)(t).trace_id||"",e,(0,o.nZ)()),r=(0,s.G)(t);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:u,source:l}=r.metadata;null!=u&&(n.sample_rate=`${u}`);const d=(0,a.XU)(r);return l&&"url"!==l&&(n.transaction=d.description),n.sampled=String((0,a.Tt)(r)),e.emit&&e.emit("createDsc",n),n}},73379:function(t,e,n){"use strict";n.d(e,{gi:function(){return c},yo:function(){return u}});var r=n(20535),i=n(62844),o=n(90454),s=n(55102),a=n(93371);function c(t,e){const{fingerprint:n,span:c,breadcrumbs:u,sdkProcessingMetadata:l}=e;!function(t,e){const{extra:n,tags:i,user:o,contexts:s,level:a,transactionName:c}=e,u=(0,r.Jr)(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const l=(0,r.Jr)(i);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});const d=(0,r.Jr)(o);d&&Object.keys(d).length&&(t.user={...d,...t.user});const p=(0,r.Jr)(s);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts});a&&(t.level=a);c&&(t.transaction=c)}(t,e),c&&function(t,e){t.contexts={trace:(0,a.wy)(e),...t.contexts};const n=(0,s.G)(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:(0,o.j)(e),...t.sdkProcessingMetadata};const r=(0,a.XU)(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,c),function(t,e){t.fingerprint=t.fingerprint?(0,i.lE)(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,u),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,l)}function u(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:p,propagationContext:h,transactionName:f,span:m}=e;l(t,"extra",n),l(t,"tags",r),l(t,"user",i),l(t,"contexts",o),l(t,"sdkProcessingMetadata",a),s&&(t.level=s),f&&(t.transactionName=f),m&&(t.span=m),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...h}}function l(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}},55102:function(t,e,n){"use strict";function r(t){return t.transaction}n.d(e,{G:function(){return r}})},88942:function(t,e,n){"use strict";n.d(e,{R:function(){return h},U0:function(){return m}});var r=n(62844),i=n(21170),o=n(57321),s=n(71235),a=n(34754),c=n(51131),u=n(71195),l=n(10350),d=n(73379),p=n(93371);function h(t,e,n,h,m,g){const{normalizeDepth:y=3,normalizeMaxBreadth:_=1e3}=t,v={...e,event_id:e.event_id||n.event_id||(0,r.DM)(),timestamp:e.timestamp||(0,i.yW)()},b=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:c.J);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=(0,o.$G)(t.message,s));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,o.$G)(a.value,s));const u=t.request;u&&u.url&&(u.url=(0,o.$G)(u.url,s))}(v,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(v,b),void 0===e.type&&function(t,e){const n=s.n2._sentryDebugIds;if(!n)return;let r;const i=f.get(e);i?r=i:(r=new Map,f.set(e,r));const o=Object.keys(n).reduce(((t,i)=>{let o;const s=r.get(i);s?o=s:(o=e(i),r.set(i,o));for(let e=o.length-1;e>=0;e--){const r=o[e];if(r.filename){t[r.filename]=n[i];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(a){}}(v,t.stackParser);const S=function(t,e){if(!e)return t;const n=t?t.clone():new l.sX;return n.update(e),n}(h,n.captureContext);n.mechanism&&(0,r.EG)(v,n.mechanism);const k=m&&m.getEventProcessors?m.getEventProcessors():[],w=(0,l.lW)().getScopeData();if(g){const t=g.getScopeData();(0,d.yo)(w,t)}if(S){const t=S.getScopeData();(0,d.yo)(w,t)}const T=[...n.attachments||[],...w.attachments];T.length&&(n.attachments=T),(0,d.gi)(v,w);const E=[...k,...(0,u.fH)(),...w.eventProcessors];return(0,u.RP)(E,v,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(r){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"===typeof y&&y>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:(0,a.Fv)(t.data,e,n)}})))},...t.user&&{user:(0,a.Fv)(t.user,e,n)},...t.contexts&&{contexts:(0,a.Fv)(t.contexts,e,n)},...t.extra&&{extra:(0,a.Fv)(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,a.Fv)(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>{const r=(0,p.XU)(t).data;return r&&(t.data=(0,a.Fv)(r,e,n)),t})));return r}(t,y,_):t)))}const f=new WeakMap;function m(t){if(t)return function(t){return t instanceof l.sX||"function"===typeof t}(t)||function(t){return Object.keys(t).some((t=>g.includes(t)))}(t)?{captureContext:t}:t}const g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},93371:function(t,e,n){"use strict";n.d(e,{$k:function(){return l},Hb:function(){return u},Tt:function(){return h},XU:function(){return p},i0:function(){return a},ve:function(){return s},wy:function(){return c}});var r=n(20535),i=n(77638),o=n(21170);const s=0,a=1;function c(t){const{spanId:e,traceId:n}=t.spanContext(),{data:i,op:o,parent_span_id:s,status:a,tags:c,origin:u}=p(t);return(0,r.Jr)({data:i,op:o,parent_span_id:s,span_id:e,status:a,tags:c,trace_id:n,origin:u})}function u(t){const{traceId:e,spanId:n}=t.spanContext(),r=h(t);return(0,i.$p)(e,n,r)}function l(t){return"number"===typeof t?d(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?d(t.getTime()):(0,o.ph)()}function d(t){return t>9999999999?t/1e3:t}function p(t){return function(t){return"function"===typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"===typeof t.toJSON?t.toJSON():{}}function h(t){const{traceFlags:e}=t.spanContext();return Boolean(e&a)}},40105:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});const r="7.120.3"},99181:function(t,e,n){"use strict";n.d(e,{EN:function(){return u},IQ:function(){return l},bU:function(){return s}});var r=n(53897),i=n(67597),o=n(12343);const s="baggage",a="sentry-",c=/^sentry-/;function u(t){if(!(0,i.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>{const n=d(e);for(const r of Object.keys(n))t[r]=n[r];return t}),{});else{if(!t)return;e=d(t)}const n=Object.entries(e).reduce(((t,[e,n])=>{if(e.match(c)){t[e.slice(a.length)]=n}return t}),{});return Object.keys(n).length>0?n:void 0}function l(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[e,n],i)=>{const s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===i?s:`${t},${s}`;return a.length>8192?(r.X&&o.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`sentry-${e}`]=n),t)),{}))}function d(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}},58464:function(t,e,n){"use strict";n.d(e,{Rt:function(){return o},iY:function(){return u},l4:function(){return a},qT:function(){return c}});var r=n(67597);const i=(0,n(71235).Rf)();function o(t,e={}){if(!t)return"";try{let n=t;const r=5,i=[];let o=0,a=0;const c=" > ",u=c.length;let l;const d=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++1&&a+i.length*u+l.length>=p));)i.push(l),a+=l.length,n=n.parentNode;return i.reverse().join(c)}catch(n){return""}}function s(t,e){const n=t,o=[];let s,a,c,u,l;if(!n||!n.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;o.push(n.tagName.toLowerCase());const d=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(d&&d.length)d.forEach((t=>{o.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&o.push(`#${n.id}`),s=n.className,s&&(0,r.HD)(s))for(a=s.split(/\s+/),l=0;l{const r=s[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const c=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r.X?o.forEach((n=>{e[n]=(...e)=>{t&&a((()=>{i.n2.console[n](`Sentry Logger [${n}]:`,...e)}))}})):o.forEach((t=>{e[t]=()=>{}})),e}()},62844:function(t,e,n){"use strict";n.d(e,{DM:function(){return o},Db:function(){return c},EG:function(){return u},YO:function(){return l},jH:function(){return a},lE:function(){return d}});var r=n(20535),i=n(71235);function o(){const t=i.n2,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function s(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){const{message:e,event_id:n}=t;if(e)return e;const r=s(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function c(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function u(t,e){const n=s(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function l(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.xp)(t,"__sentry_captured__",!0)}catch(e){}return!1}function d(t){return Array.isArray(t)?t:[t]}},61422:function(t,e,n){"use strict";n.d(e,{KV:function(){return o}});var r=n(68518);t=n.hmd(t);var i=n(83454);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof i?i:0)}},34754:function(t,e,n){"use strict";n.d(e,{Fv:function(){return s},Qy:function(){return a}});var r=n(67597);var i=n(20535),o=n(30360);function s(t,e=100,n=1/0){try{return c("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function a(t,e=3,n=102400){const r=s(t,e);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?a(t,e-1,n):r;var i}function c(t,e,s=1/0,a=1/0,u=function(){const t="function"===typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t=a){m[n]="[MaxProperties ~]";break}const t=y[n];m[n]=c(n,t,h-1,a,u),g++}return d(e),m}},20535:function(t,e,n){"use strict";n.d(e,{$Q:function(){return l},HK:function(){return d},Jr:function(){return y},Sh:function(){return h},_j:function(){return p},hl:function(){return c},xp:function(){return u},zf:function(){return g}});var r=n(58464),i=n(53897),o=n(67597),s=n(12343),a=n(57321);function c(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);"function"===typeof i&&l(i,r),t[e]=i}function u(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){i.X&&s.kg.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function l(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}catch(n){}}function d(t){return t.__sentry_original__}function p(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function h(t){if((0,o.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...m(t)};if((0,o.cO)(t)){const e={type:t.type,target:f(t.target),currentTarget:f(t.currentTarget),...m(t)};return"undefined"!==typeof CustomEvent&&(0,o.V9)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function f(t){try{return(0,o.kK)(t)?(0,r.Rt)(t):Object.prototype.toString.call(t)}catch(e){return""}}function m(t){if("object"===typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function g(t,e=40){const n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.$G)(n[0],e);for(let r=n.length;r>0;r--){const t=n.slice(0,r).join(", ");if(!(t.length>e))return r===n.length?t:(0,a.$G)(t,e)}return""}function y(t){return _(t,new Map)}function _(t,e){if(function(t){if(!(0,o.PO)(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(e){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const i of Object.keys(t))"undefined"!==typeof t[i]&&(r[i]=_(t[i],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(_(t,e))})),r}return t}},30360:function(t,e,n){"use strict";n.d(e,{$P:function(){return c},Sq:function(){return s},pE:function(){return o}});const r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function o(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const o=[],s=t.split("\n");for(let i=n;i1024)continue;const n=r.test(t)?t.replace(r,"$1"):t;if(!n.match(/\S*Error: /)){for(const t of e){const e=t(n);if(e){o.push(e);break}}if(o.length>=50)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop();e.reverse(),i.test(e[e.length-1].function||"")&&(e.pop(),i.test(e[e.length-1].function||"")&&e.pop());return e.slice(0,50).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(o)}}function s(t){return Array.isArray(t)?o(...t):t}const a="";function c(t){try{return t&&"function"===typeof t&&t.name||a}catch(e){return a}}},57321:function(t,e,n){"use strict";n.d(e,{$G:function(){return i},U0:function(){return s},nK:function(){return o}});var r=n(67597);function i(t,e=0){return"string"!==typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function o(t,e){if(!Array.isArray(t))return"";const n=[];for(let o=0;ofunction(t,e,n=!1){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):!!(0,r.HD)(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}},96893:function(t,e,n){"use strict";n.d(e,{$2:function(){return s},WD:function(){return o},cW:function(){return a}});var r,i=n(67597);function o(t){return new a((e=>{e(t)}))}function s(t){return new a(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(r||(r={}));class a{constructor(t){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,e){return new a(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(i){r(i)}else n(e)},t=>{if(e)try{n(e(t))}catch(i){r(i)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new a(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(r.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(r.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===r.PENDING&&((0,i.J8)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===r.RESOLVED&&t[1](this._value),this._state===r.REJECTED&&t[2](this._value),t[0]=!0)}))}}}},21170:function(t,e,n){"use strict";n.d(e,{Z1:function(){return a},ph:function(){return o},yW:function(){return i}});var r=n(71235);function i(){return Date.now()/1e3}const o=function(){const{performance:t}=r.n2;if(!t||!t.now)return i;const e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let s;const a=(()=>{const{performance:t}=r.n2;if(!t||!t.now)return void(s="none");const e=36e5,n=t.now(),i=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,a=o({name:`${r}:@sentry/${t}`,version:o.J}))),version:o.J}),t._metadata=i}var a=n(64487);function c(t){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=(0,a.s3)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var u=n(20535),l=n(62844),d=n(12343),p=n(81703),h=n(71195),f=n(95659);const m=[];function g(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"===typeof n?(0,l.lE)(n(e)):e;const i=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(r),o=function(t,e){for(let n=0;n"Debug"===t.name));if(-1!==o){const[t]=i.splice(o,1);i.push(t)}return i}function y(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function _(t,e,n){if(n[e.name])p.X&&d.kg.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===m.indexOf(e.name)&&(e.setupOnce(h.cc,f.Gd),m.push(e.name)),e.setup&&"function"===typeof e.setup&&e.setup(t),t.on&&"function"===typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if(t.addEventProcessor&&"function"===typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}p.X&&d.kg.log(`Integration installed: ${e.name}`)}}function v(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}let b;const S="FunctionToString",k=new WeakMap,w=()=>({name:S,setupOnce(){b=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,u.HK)(this),n=k.has((0,a.s3)())&&void 0!==e?e:this;return b.apply(n,t)}}catch(t){}},setup(t){k.set(t,!0)}}),T=v(S,w);var E=n(57321);const x=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],I=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],C="InboundFilters",R=(t={})=>({name:C,setupOnce(){},processEvent(e,n,r){const i=r.getOptions(),o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:x],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:I],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,i);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t))return p.X&&d.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,l.jH)(t)}`),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(r){}n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`));p.X&&0===e.length&&d.kg.error(`Could not extract message for event ${(0,l.jH)(t)}`);return e}(t).some((t=>(0,E.U0)(t,e)))}(t,e.ignoreErrors))return p.X&&d.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,l.jH)(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,E.U0)(n,e)}(t,e.ignoreTransactions))return p.X&&d.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,l.jH)(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=M(t);return!!n&&(0,E.U0)(n,e)}(t,e.denyUrls))return p.X&&d.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,l.jH)(t)}.\nUrl: ${M(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=M(t);return!n||(0,E.U0)(n,e)}(t,e.allowUrls))return p.X&&d.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,l.jH)(t)}.\nUrl: ${M(t)}`),!0;return!1}(e,o)?null:e}}),O=v(C,R);function M(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(e){}return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return p.X&&d.kg.error(`Cannot extract url for event ${(0,l.jH)(t)}`),null}}var A=n(67597);function D(t,e,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!(0,A.V9)(s.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var c,u;a&&(o.exception.values=(c=N(t,e,i,s.originalException,r,o.exception.values,a,0),u=n,c.map((t=>(t.value&&(t.value=(0,E.$G)(t.value,u)),t)))))}function N(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let c=[...o];if((0,A.V9)(r[i],Error)){P(s,a);const o=t(e,r[i]),u=c.length;L(o,i,u,a),c=N(t,e,n,r[i],i,[o,...c],o,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if((0,A.V9)(r,Error)){P(s,a);const u=t(e,r),l=c.length;L(u,`errors[${o}]`,l,a),c=N(t,e,n,r,i,[u,...c],u,l)}})),c}function P(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function L(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function j(t,e){return t(e.stack||"",1)}function $(t,e){const n={type:e.name||e.constructor.name,value:e.message},r=j(t,e);return r.length&&(n.stacktrace={frames:r}),n}const F="LinkedErrors",U=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:F,setupOnce(){},preprocessEvent(t,r,i){const o=i.getOptions();D($,o.stackParser,o.maxValueLength,n,e,t,r)}}},B=v(F,U),H=r;var z=n(71235);const W=z.n2;let q=0;function X(){return q>0}function J(){q++,setTimeout((()=>{q--}))}function G(t,e={},n){if("function"!==typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"===typeof e?e:t;if((0,u.HK)(t))return t}catch(i){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const i=r.map((t=>G(t,e)));return t.apply(this,i)}catch(i){throw J(),(0,a.$e)((t=>{t.addEventProcessor((t=>(e.mechanism&&((0,l.Db)(t,void 0,void 0),(0,l.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),(0,a.Tb)(i)})),i}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(o){}(0,u.$Q)(r,t),(0,u.xp)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(o){}return r}var Y=n(53897),Z=n(30360);const K={},V={};function Q(t,e){K[t]=K[t]||[],K[t].push(e)}function tt(t,e){V[t]||(e(),V[t]=!0)}function et(t,e){const n=t&&K[t];if(n)for(const i of n)try{i(e)}catch(r){Y.X&&d.kg.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,Z.$P)(i)}\nError:`,r)}}let nt=null;function rt(t){const e="error";Q(e,t),tt(e,it)}function it(){nt=z.n2.onerror,z.n2.onerror=function(t,e,n,r,i){const o={column:r,error:i,line:n,msg:t,url:e};return et("error",o),!(!nt||nt.__SENTRY_LOADER__)&&nt.apply(this,arguments)},z.n2.onerror.__SENTRY_INSTRUMENTED__=!0}let ot=null;function st(t){const e="unhandledrejection";Q(e,t),tt(e,at)}function at(){ot=z.n2.onunhandledrejection,z.n2.onunhandledrejection=function(t){const e=t;return et("unhandledrejection",e),!(ot&&!ot.__SENTRY_LOADER__)||ot.apply(this,arguments)},z.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ct=n(58464);const ut="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var lt=n(34754),dt=n(96893);function pt(t,e){const n=ft(t,e),r={type:e&&e.name,value:gt(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ht(t,e){return{exception:{values:[pt(t,e)]}}}function ft(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"===typeof t.framesToPop)return t.framesToPop;if(mt.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(i){}return[]}const mt=/Minified React error #\d+;/i;function gt(t){const e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:e:"No error message"}function yt(t,e,n,r,i){let o;if((0,A.VW)(e)&&e.error){return ht(t,e.error)}if((0,A.TX)(e)||(0,A.fm)(e)){const i=e;if("stack"in e)o=ht(t,e);else{const e=i.name||((0,A.TX)(i)?"DOMError":"DOMException"),s=i.message?`${e}: ${i.message}`:e;o=_t(t,s,n,r),(0,l.Db)(o,s)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}if((0,A.VZ)(e))return ht(t,e);if((0,A.PO)(e)||(0,A.cO)(e)){return o=function(t,e,n,r){const i=(0,a.s3)(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:(0,A.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:vt(e,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,lt.Qy)(e,o)}};if(n){const e=ft(t,n);e.length&&(s.exception.values[0].stacktrace={frames:e})}return s}(t,e,n,i),(0,l.EG)(o,{synthetic:!0}),o}return o=_t(t,e,n,r),(0,l.Db)(o,`${e}`,void 0),(0,l.EG)(o,{synthetic:!0}),o}function _t(t,e,n,r){const i={};if(r&&n){const r=ft(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}if((0,A.Le)(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return i.logentry={message:t,params:n},i}return i.message=e,i}function vt(t,{isUnhandledRejection:e}){const n=(0,u.zf)(t),r=e?"promise rejection":"exception";if((0,A.VW)(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if((0,A.cO)(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const bt="GlobalHandlers",St=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:bt,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){rt((e=>{const{stackParser:n,attachStacktrace:r}=Et();if((0,a.s3)()!==t||X())return;const{msg:i,url:o,line:s,column:c,error:u}=e,l=void 0===u&&(0,A.HD)(i)?function(t,e,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=(0,A.VW)(t)?t.message:t,s="Error";const a=o.match(i);a&&(s=a[1],o=a[2]);return wt({exception:{values:[{type:s,value:o}]}},e,n,r)}(i,o,s,c):wt(yt(n,u||i,void 0,r,!1),o,s,c);l.level="error",(0,a.eN)(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(t),Tt("onerror")),e.onunhandledrejection&&(!function(t){st((e=>{const{stackParser:n,attachStacktrace:r}=Et();if((0,a.s3)()!==t||X())return;const i=function(t){if((0,A.pt)(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(n){}return t}(e),o=(0,A.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:yt(n,i,void 0,r,!0);o.level="error",(0,a.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),Tt("onunhandledrejection"))}}},kt=v(bt,St);function wt(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=(0,A.HD)(e)&&e.length>0?e:(0,ct.l4)();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function Tt(t){ut&&d.kg.log(`Global Handler attached: ${t}`)}function Et(){const t=(0,a.s3)();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const xt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],It="TryCatch",Ct=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:It,setupOnce(){e.setTimeout&&(0,u.hl)(W,"setTimeout",Ot),e.setInterval&&(0,u.hl)(W,"setInterval",Ot),e.requestAnimationFrame&&(0,u.hl)(W,"requestAnimationFrame",Mt),e.XMLHttpRequest&&"XMLHttpRequest"in W&&(0,u.hl)(XMLHttpRequest.prototype,"send",At);const t=e.eventTarget;if(t){(Array.isArray(t)?t:xt).forEach(Dt)}}}},Rt=v(It,Ct);function Ot(t){return function(...e){const n=e[0];return e[0]=G(n,{mechanism:{data:{function:(0,Z.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Mt(t){return function(e){return t.apply(this,[G(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Z.$P)(t)},handled:!1,type:"instrument"}})])}}function At(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"===typeof n[t]&&(0,u.hl)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,Z.$P)(e)},handled:!1,type:"instrument"}},r=(0,u.HK)(e);return r&&(n.mechanism.data.handler=(0,Z.$P)(r)),G(e,n)}))})),t.apply(this,e)}}function Dt(t){const e=W,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=G(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Z.$P)(r),target:t},handled:!1,type:"instrument"}}))}catch(o){}return e.apply(this,[n,G(r,{mechanism:{data:{function:"addEventListener",handler:(0,Z.$P)(r),target:t},handled:!1,type:"instrument"}}),i])}})),(0,u.hl)(n,"removeEventListener",(function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(o){}return t.call(this,e,i,r)}})))}function Nt(){"console"in z.n2&&d.RU.forEach((function(t){t in z.n2.console&&(0,u.hl)(z.n2.console,t,(function(e){return d.LD[t]=e,function(...e){et("console",{args:e,level:t});const n=d.LD[t];n&&n.apply(z.n2.console,e)}}))}))}const Pt=z.n2;let Lt,jt,$t;function Ft(t){Q("dom",t),tt("dom",Ut)}function Ut(){if(!Pt.document)return;const t=et.bind(null,"dom"),e=Bt(t,!0);Pt.document.addEventListener("click",e,!1),Pt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Pt[e]&&Pt[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){const r=Bt(t);s.handler=r,e.call(this,n,r,i)}s.refCount++}catch(o){}return e.call(this,n,r,i)}})),(0,u.hl)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return t.call(this,e,n,r)}})))}))}function Bt(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(e){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;(0,u.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,u.xp)(r,"_sentryId",(0,l.DM)());const i="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==jt)return!1;try{if(!t.target||t.target._sentryId!==$t)return!1}catch(e){}return!0}(n)){t({event:n,name:i,global:e}),jt=n.type,$t=r?r._sentryId:void 0}clearTimeout(Lt),Lt=Pt.setTimeout((()=>{$t=void 0,jt=void 0}),1e3)}}const Ht=z.n2;function zt(t){Q("xhr",t),tt("xhr",Wt)}function Wt(){if(!Ht.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;(0,u.hl)(t,"open",(function(t){return function(...e){const n=Date.now(),r=(0,A.HD)(e[0])?e[0].toUpperCase():void 0,i=function(t){if((0,A.HD)(t))return t;try{return t.toString()}catch(e){}return}(e[1]);if(!r||!i)return t.apply(this,e);this.__sentry_xhr_v3__={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const t=this.__sentry_xhr_v3__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(e){}et("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,u.hl)(this,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(this,e)}})):this.addEventListener("readystatechange",o),(0,u.hl)(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this.__sentry_xhr_v3__;return i&&(0,A.HD)(n)&&(0,A.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),(0,u.hl)(t,"send",(function(t){return function(...e){const n=this.__sentry_xhr_v3__;if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);return et("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}const qt=(0,z.Rf)();function Xt(){if(!("fetch"in qt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Jt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Gt(t){const e="fetch";Q(e,t),tt(e,Yt)}function Yt(){(function(){if("string"===typeof EdgeRuntime)return!0;if(!Xt())return!1;if(Jt(qt.fetch))return!0;let t=!1;const e=qt.document;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Jt(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Y.X&&d.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t})()&&(0,u.hl)(z.n2,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Kt(e),method:Zt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Kt(e),method:Zt(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return et("fetch",{...i}),t.apply(z.n2,e).then((t=>(et("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw et("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}function Zt(t,e){return!!t&&"object"===typeof t&&!!t[e]}function Kt(t){return"string"===typeof t?t:t?Zt(t,"url")?t.url:t.toString?t.toString():"":""}const Vt=(0,z.Rf)();const Qt=z.n2;let te;function ee(t){const e="history";Q(e,t),tt(e,ne)}function ne(){if(!function(){const t=Vt.chrome,e=t&&t.app&&t.app.runtime,n="history"in Vt&&!!Vt.history.pushState&&!!Vt.history.replaceState;return!e&&n}())return;const t=Qt.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=te,e=String(n);te=e;et("history",{from:t,to:e})}return t.apply(this,e)}}Qt.onpopstate=function(...e){const n=Qt.location.href,r=te;te=n;if(et("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(i){}},(0,u.hl)(Qt.history,"pushState",e),(0,u.hl)(Qt.history,"replaceState",e)}const re=["fatal","error","warning","log","info","debug"];function ie(t){return"warn"===t?"warning":re.includes(t)?t:"log"}function oe(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const se=1024,ae="Breadcrumbs",ce=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:ae,setupOnce(){},setup(t){e.console&&function(t){const e="console";Q(e,t),tt(e,Nt)}(function(t){return function(e){if((0,a.s3)()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:ie(e.level),message:(0,E.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,E.nK)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}(0,a.n_)(n,{input:e.args,level:e.level})}}(t)),e.dom&&Ft(function(t,e){return function(n){if((0,a.s3)()!==t)return;let r,i,o="object"===typeof e?e.serializeAttribute:void 0,s="object"===typeof e&&"number"===typeof e.maxStringLength?e.maxStringLength:void 0;s&&s>se&&(ut&&d.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=se),"string"===typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=(0,ct.Rt)(e,{keyAttrs:o,maxStringLength:s}),i=(0,ct.iY)(e)}catch(u){r=""}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};i&&(c.data={"ui.component_name":i}),(0,a.n_)(c,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&zt(function(t){return function(e){if((0,a.s3)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,i=e.xhr.__sentry_xhr_v3__;if(!n||!r||!i)return;const{method:o,url:s,status_code:c,body:u}=i,l={method:o,url:s,status_code:c},d={xhr:e.xhr,input:u,startTimestamp:n,endTimestamp:r};(0,a.n_)({category:"xhr",data:l,type:"http"},d)}}(t)),e.fetch&&Gt(function(t){return function(e){if((0,a.s3)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const t=e.fetchData,i={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};(0,a.n_)({category:"fetch",data:t,level:"error",type:"http"},i)}else{const t=e.response,i={...e.fetchData,status_code:t&&t.status},o={input:e.args,response:t,startTimestamp:n,endTimestamp:r};(0,a.n_)({category:"fetch",data:i,type:"http"},o)}}}(t)),e.history&&ee(function(t){return function(e){if((0,a.s3)()!==t)return;let n=e.from,r=e.to;const i=oe(W.location.href);let o=n?oe(n):void 0;const s=oe(r);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,a.n_)({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(e){(0,a.s3)()===t&&(0,a.n_)({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,l.jH)(e)},{event:e})}}(t))}}},ue=v(ae,ce);const le="LinkedErrors",de=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:le,setupOnce(){},preprocessEvent(t,r,i){const o=i.getOptions();D(pt,o.stackParser,o.maxValueLength,n,e,t,r)}}},pe=v(le,de),he="HttpContext",fe=()=>({name:he,setupOnce(){},preprocessEvent(t){if(!W.navigator&&!W.location&&!W.document)return;const e=t.request&&t.request.url||W.location&&W.location.href,{referrer:n}=W.document||{},{userAgent:r}=W.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};t.request=o}}),me=v(he,fe),ge="Dedupe",ye=()=>{let t;return{name:ge,setupOnce(){},processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!be(t,e))return!1;if(!ve(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Se(e),r=Se(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!be(t,e))return!1;if(!ve(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return ut&&d.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}},_e=v(ge,ye);function ve(t,e){let n=ke(t),r=ke(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,a.nZ)().update(e.initialScope);const n=new t(e);!function(t){const e=(0,f.Gd)().getStackTop();e.client=t,e.scope.setClient(t)}(n),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(n)}const xe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ie(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function Ce(t){const e=xe.exec(t);if(!e)return void(0,d.Cf)((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,i="",o,s="",a]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return Re({host:o,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function Re(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Oe(t){const e="string"===typeof t?Ce(t):Re(t);if(e&&function(t){if(!Y.X)return!0;const{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(d.kg.error(`Invalid Sentry Dsn: ${e} missing`),!0)))&&(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?!e||!isNaN(parseInt(e,10))||(d.kg.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(d.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(d.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}function Me(t,e=[]){return[t,e]}function Ae(t,e){const[n,r]=t;return[n,[...r,e]]}function De(t,e){const n=t[1];for(const r of n){if(e(r,r[0].type))return!0}return!1}function Ne(t,e){return(e||new TextEncoder).encode(t)}function Pe(t,e){const[n,r]=t;let i=JSON.stringify(n);function o(t){"string"===typeof i?i="string"===typeof t?i+t:[Ne(i,e),t]:i.push("string"===typeof t?Ne(t,e):t)}for(const a of r){const[t,e]=a;if(o(`\n${JSON.stringify(t)}\n`),"string"===typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch(s){t=JSON.stringify((0,lt.Fv)(e))}o(t)}}return"string"===typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}(i)}function Le(t,e){const n="string"===typeof t.data?Ne(t.data,e):t.data;return[(0,u.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const je={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function $e(t){return je[t]}function Fe(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Ue(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Ie(r)},...i&&{trace:(0,u.Jr)({...i})}}}class Be extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}function He(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function ze(t,e={}){const n="string"===typeof e?e:e.tunnel,r="string"!==typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${He(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,u._j)({sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,r)}`}function We(t,e,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(i.dsn=Ie(e));const o=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return Me(i,[o])}var qe=n(9015),Xe=n(90454),Je=n(88942);const Ge="Not capturing exception because it's already been captured.";function Ye(t){return void 0===t.type}function Ze(t){return"transaction"===t.type}var Ke=n(68518),Ve=n(21170);class Qe extends class{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Oe(t.dsn):p.X&&d.kg.warn("No DSN provided, client will not send events."),this._dsn){const e=ze(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if((0,l.YO)(t))return void(p.X&&d.kg.log(Ge));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const o=(0,A.Le)(t)?t:String(t),s=(0,A.pt)(t)?this.eventFromMessage(o,e,n):this.eventFromException(t,n);return this._process(s.then((t=>this._captureEvent(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,l.YO)(e.originalException))return void(p.X&&d.kg.log(Ge));let r=e&&e.event_id;const i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,i||n).then((t=>{r=t}))),r}captureSession(t){"string"!==typeof t.release?p.X&&d.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,qe.CT)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):(0,dt.WD)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return p.X&&d.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];_(this,t,this._integrations),e||y(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const i=Fe(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const s=Ue(t,i,r,e);return delete t.sdkProcessingMetadata,Me(s,[[{type:o},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of e.attachments||[])n=Ae(n,Le(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,r){const i=Fe(n);return Me({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:Ie(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const r="number"===typeof n?n:1,i=`${t}:${e}`;p.X&&d.kg.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(t){p.X&&d.kg.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const e=We(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&_(t,e,n)})),n}(this,t),y(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&((0,qe.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new dt.cW((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=(0,f.aF)()){const i=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),(0,Je.R)(i,t,e,n,this,r).then((t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&e){const{traceId:r,spanId:i,parentSpanId:o,dsc:s}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...t.contexts};const a=s||(0,Xe._)(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(p.X){const e=t;"log"===e.logLevel?d.kg.log(e.message):d.kg.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:i}=r,o=Ze(t),s=Ye(t),a=t.type||"error",c=`before send for type \`${a}\``;if(s&&"number"===typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,dt.$2)(new Be(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===a?"replay":a,l=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,l).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new Be("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const i=function(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;if(Ye(e)&&r)return r(e,n);if(Ze(e)&&i){if(e.spans){const t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(e,n)}return e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,A.J8)(t))return t.then((t=>{if(!(0,A.PO)(t)&&null!==t)throw new Be(n);return t}),(t=>{throw new Be(`${e} rejected with ${t}`)}));if(!(0,A.PO)(t)&&null!==t)throw new Be(n);return t}(i,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,t),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new Be(`${c} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const s=r.transaction_info;if(o&&s&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...s,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof Be)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new Be(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(t=>{p.X&&d.kg.error("Error while sending event:",t)}));p.X&&d.kg.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}{constructor(t){s(t,"browser",["browser"],W.SENTRY_SDK_SOURCE||(0,Ke.S)()),super(t),t.sendClientReports&&W.document&&W.document.addEventListener("visibilitychange",(()=>{"hidden"===W.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const i=yt(t,e,n&&n.syntheticException||void 0,r);return(0,l.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,dt.WD)(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){const o=_t(t,e,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,dt.WD)(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(ut&&d.kg.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:r}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Ie(r)}},o=function(t){return[{type:"user_report"},t]}(t);return Me(i,[o])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(ut&&d.kg.log("No outcomes to send"));if(!this._dsn)return void(ut&&d.kg.log("No dsn provided, will not send outcomes"));ut&&d.kg.log("Sending outcomes:",t);const e=(n=t,Me((r=this._options.tunnel&&Ie(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||(0,Ve.yW)(),discarded_events:n}]]));var n,r,i;this._sendEnvelope(e)}}const tn="?";function en(t,e,n,r){const i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const nn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rn=/\((\S*)(?::(\d+))(?::(\d+))\)/,on=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,an=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cn=[[30,t=>{const e=nn.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=rn.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=ln(e[1]||tn,e[2]);return en(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=on.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=sn.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||tn;return[n,t]=ln(n,t),en(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=an.exec(t);return e?en(e[2],e[1]||tn,+e[3],e[4]?+e[4]:void 0):void 0}]],un=(0,Z.pE)(...cn),ln=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:tn,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function dn(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new dt.cW(((n,r)=>{let i=e.length;if(!i)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,dt.WD)(t).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function pn(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}function hn(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[t,e,,,n]=a.split(":",5),o=parseInt(t,10),s=1e3*(isNaN(o)?60:o);if(e)for(const a of e.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(i[a]=r+s);else i.all=r+s}else s?i.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(s,r):429===e&&(i.all=r+6e4);return i}function fn(t,e,n=dn(t.bufferSize||30)){let r={};function i(i){const o=[];if(De(i,((e,n)=>{const i=$e(n);if(pn(r,i)){const r=mn(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(e)})),0===o.length)return(0,dt.WD)();const s=Me(i[0],o),a=e=>{De(s,((n,r)=>{const i=mn(n,r);t.recordDroppedEvent(e,$e(r),i)}))};return n.add((()=>e({body:Pe(s,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&p.X&&d.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=hn(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof Be)return p.X&&d.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,dt.WD)();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function mn(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let gn;function yn(t,e=function(){if(gn)return gn;if(Jt(W.fetch))return gn=W.fetch.bind(W);const t=W.document;let e=W.fetch;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){ut&&d.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return gn=e.bind(W)}()){let n=0,r=0;return fn(t,(function(i){const o=i.body.length;n+=o,r++;const s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,s).then((t=>(n-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(a){return gn=void 0,n-=o,r--,(0,dt.$2)(a)}}))}function _n(t){return fn(t,(function(e){return new dt.cW(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{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",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)}))}))}const vn=[R(),w(),Ct(),ce(),St(),de(),ye(),fe()];function bn(t){return[...vn]}function Sn(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=bn()),void 0===t.release&&("string"===typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),W.SENTRY_RELEASE&&W.SENTRY_RELEASE.id&&(t.release=W.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(0,Z.Sq)(t.stackParser||un),integrations:g(t),transport:t.transport||(Xt()?yn:_n)};Ee(Qe,e),t.autoSessionTracking&&function(){if("undefined"===typeof W.document)return void(ut&&d.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));(0,a.yj)({ignoreDuration:!0}),(0,a.cg)(),ee((({from:t,to:e})=>{void 0!==t&&t!==e&&((0,a.yj)({ignoreDuration:!0}),(0,a.cg)())}))}()}var kn=n(83454);function wn(t){const e=t?kn.env.NEXT_PUBLIC_VERCEL_ENV:kn.env.VERCEL_ENV;return e?`vercel-${e}`:void 0}var Tn=n(93371);let En;function xn(t){return En?En.get(t):void 0}function In(t){const e=xn(t);if(!e)return;const n={};for(const[,[r,i]]of e)n[r]||(n[r]=[]),n[r].push((0,u.Jr)(i));return n}const Cn="sentry.source",Rn="sentry.sample_rate",On="sentry.op",Mn="sentry.origin";var An,Dn=n(55102);function Nn(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(t){t.Ok="ok";t.DeadlineExceeded="deadline_exceeded";t.Unauthenticated="unauthenticated";t.PermissionDenied="permission_denied";t.NotFound="not_found";t.ResourceExhausted="resource_exhausted";t.InvalidArgument="invalid_argument";t.Unimplemented="unimplemented";t.Unavailable="unavailable";t.InternalError="internal_error";t.UnknownError="unknown_error";t.Cancelled="cancelled";t.AlreadyExists="already_exists";t.FailedPrecondition="failed_precondition";t.Aborted="aborted";t.OutOfRange="out_of_range";t.DataLoss="data_loss"}(An||(An={}));function Pn(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=Nn(e);"unknown_error"!==n&&t.setStatus(n)}class Ln{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class jn{constructor(t={}){this._traceId=t.traceId||(0,l.DM)(),this._spanId=t.spanId||(0,l.DM)().substring(16),this._startTime=t.startTimestamp||(0,Ve.ph)(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Mn]:t.origin||"manual",[On]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes["sentry.op"]}set op(t){this.setAttribute(On,t)}get origin(){return this._attributes["sentry.origin"]}set origin(t){this.setAttribute(Mn,t)}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?Tn.i0:Tn.ve}}startChild(t){const e=new jn({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);const n=(0,Dn.G)(this);if(e.transaction=n,p.X&&n){const r=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${(0,Tn.XU)(e).description||"< unknown name >"}' (${n.spanContext().spanId}).`;d.kg.log(r),this._logMessage=r}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach((e=>this.setAttribute(e,t[e])))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Pn(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;const e=(0,Dn.G)(this);if(p.X&&e&&e.spanContext().spanId!==this._spanId){const t=this._logMessage;t&&d.kg.log(t.replace("Starting","Finishing"))}this._endTime=(0,Tn.$k)(t)}toTraceparent(){return(0,Tn.Hb)(this)}toContext(){return(0,u.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return(0,Tn.wy)(this)}getSpanJSON(){return(0,u.Jr)({data:this._getData(),description:this._name,op:this._attributes["sentry.op"],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes["sentry.origin"],_metrics_summary:In(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;if(n||r)return n&&r?{...t,...e}:n?t:e}}function $n(t){if(!c())return;const e=Bn(t),n=(0,f.Gd)(),r=t.scope?t.scope.getSpan():Fn();if(t.onlyIfParent&&!r)return;const i=(t.scope||(0,a.nZ)()).clone();return Un(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:i})}function Fn(){return(0,a.nZ)().getSpan()}function Un(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:i}){if(!c())return;const o=(0,f.aF)();let s;if(e&&!r)s=e.startChild(n);else if(e){const r=(0,Xe.j)(e),{traceId:i,spanId:o}=e.spanContext(),a=(0,Tn.Tt)(e);s=t.startTransaction({traceId:i,parentSpanId:o,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:e,dsc:r,parentSpanId:a,sampled:c}={...o.getPropagationContext(),...i.getPropagationContext()};s=t.startTransaction({traceId:e,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(s),function(t,e,n){t&&((0,u.xp)(t,zn,n),(0,u.xp)(t,Hn,e))}(s,i,o),s}function Bn(t){if(t.startTime){const e={...t};return e.startTimestamp=(0,Tn.$k)(t.startTime),delete e.startTime,e}return t}const Hn="_sentryScope",zn="_sentryIsolationScope";class Wn extends jn{constructor(t,e){super(t),this._contexts={},this._hub=e||(0,f.Gd)(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes["sentry.source"]&&{source:this._attributes["sentry.source"]},...this._attributes["sentry.sample_rate"]&&{sampleRate:this._attributes["sentry.sample_rate"]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(Cn,e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ln(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const e=(0,Tn.$k)(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return(0,u.Jr)({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return(0,Xe.j)(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(p.X&&d.kg.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled)return p.X&&d.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&(0,Tn.XU)(t).timestamp)):[];if(this._trimEnd&&n.length>0){const t=n.map((t=>(0,Tn.XU)(t).timestamp)).filter(Boolean);this._endTime=t.reduce(((t,e)=>t>e?t:e))}const{scope:r,isolationScope:i}={scope:(o=this)._sentryScope,isolationScope:o._sentryIsolationScope};var o;const{metadata:s}=this,{source:a}=s,c={contexts:{...this._contexts,trace:(0,Tn.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:r,capturedSpanIsolationScope:i,...(0,u.Jr)({dynamicSamplingContext:(0,Xe.j)(this)})},_metrics_summary:In(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(p.X&&d.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),p.X&&d.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const qn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Xn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Jn extends Ln{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===(0,Tn.XU)(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class Gn extends Wn{constructor(t,e,n=qn.idleTimeout,r=qn.finalTimeout,i=qn.heartbeatInterval,o=!1,s=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Xn[4],this._autoFinishAllowed=!s,o&&(p.X&&d.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),e.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Xn[3],this.end())}),this._finalTimeout)}end(t){const e=(0,Tn.$k)(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){p.X&&d.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;(0,Tn.XU)(t).timestamp||(t.setStatus("cancelled"),t.end(e),p.X&&d.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const{start_timestamp:n,timestamp:r}=(0,Tn.XU)(t),i=n&&n{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new Jn(e,n,this.spanContext().spanId,t),p.X&&d.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Xn[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(p.X&&d.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Xn[1],this.end(t))}),this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),p.X&&d.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,p.X&&d.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(p.X&&d.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],p.X&&d.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=(0,Ve.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Xn[5],this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(p.X&&d.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Xn[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){p.X&&d.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Yn(t){return(t||(0,f.Gd)()).getScope().getTransaction()}let Zn=!1;function Kn(){const t=Yn();if(t){const e="internal_error";p.X&&d.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}function Vn(t,e,n){if(!c(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setAttribute(Rn,Number(t.sampled)),t;let r;return"function"===typeof e.tracesSampler?(r=e.tracesSampler(n),t.setAttribute(Rn,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:"undefined"!==typeof e.tracesSampleRate?(r=e.tracesSampleRate,t.setAttribute(Rn,Number(r))):(r=1,t.setAttribute(Rn,r)),Qn(r)?r?(t.sampled=Math.random()1)||(p.X&&d.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}function tr(){const t=this.getScope().getSpan();return t?{"sentry-trace":(0,Tn.Hb)(t)}:{}}function er(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=t.instrumenter||"sentry";i!==o&&(p.X&&d.kg.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.\nThe transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let s=new Wn(t,this);return s=Vn(s,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function nr(t,e,n,r,i,o,s,a=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let l=new Gn(e,t,n,r,s,i,a);return l=Vn(l,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...o}),l.isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function rr(){const t=(0,f.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=er),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=tr),Zn||(Zn=!0,rt(Kn),st(Kn)))}Kn.tag="sentry_tracingErrorCallback";var ir=n(77638);const or="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,sr=z.n2;function ar(){sr.document?sr.document.addEventListener("visibilitychange",(()=>{const t=Yn();if(sr.document.hidden&&t){const e="cancelled",{op:n,status:r}=(0,Tn.XU)(t);or&&d.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}})):or&&d.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const cr=(t,e,n)=>{let r,i;return o=>{e.value>=0&&(o||n)&&(i=e.value-(r||0),(i||void 0===r)&&(r=e.value,e.delta=i,t(e)))}},ur=()=>sr.__WEB_VITALS_POLYFILL__?sr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=sr.performance.timing,e=sr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const r in t)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n})()):sr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],lr=()=>{const t=ur();return t&&t.activationStart||0},dr=(t,e)=>{const n=ur();let r="navigate";return n&&(r=sr.document&&sr.document.prerendering||lr()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:"undefined"===typeof e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},pr=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{e(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(r){}},hr=(t,e)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==sr.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};sr.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))};let fr=-1;const mr=()=>(fr<0&&(sr.document&&sr.document.visibilityState&&(fr="hidden"!==sr.document.visibilityState||sr.document.prerendering?1/0:0),hr((({timeStamp:t})=>{fr=t}),!0)),{get firstHiddenTime(){return fr}});let gr=0,yr=1/0,_r=0;const vr=t=>{t.forEach((t=>{t.interactionId&&(yr=Math.min(yr,t.interactionId),_r=Math.max(_r,t.interactionId),gr=_r?(_r-yr)/7+1:0)}))};let br;const Sr=()=>{"interactionCount"in performance||br||(br=pr("event",vr,{type:"event",buffered:!0,durationThreshold:0}))},kr=()=>br?gr:performance.interactionCount||0,wr=[],Tr={},Er=t=>{const e=wr[wr.length-1],n=Tr[t.interactionId];if(n||wr.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Tr[e.id]=e,wr.push(e)}wr.sort(((t,e)=>e.latency-t.latency)),wr.splice(10).forEach((t=>{delete Tr[t.id]}))}},xr=(t,e)=>{e=e||{},Sr();const n=dr("INP");let r;const i=t=>{t.forEach((t=>{if(t.interactionId&&Er(t),"first-input"===t.entryType){!wr.some((e=>e.entries.some((e=>t.duration===e.duration&&t.startTime===e.startTime))))&&Er(t)}}));const e=(()=>{const t=Math.min(wr.length-1,Math.floor(kr()/50));return wr[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())},o=pr("event",i,{durationThreshold:e.durationThreshold||40});r=cr(t,n,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),hr((()=>{i(o.takeRecords()),n.value<0&&kr()>0&&(n.value=0,n.entries=[]),r(!0)})))},Ir={},Cr=t=>{sr.document&&(sr.document.prerendering?addEventListener("prerenderingchange",(()=>Cr(t)),!0):"complete"!==sr.document.readyState?addEventListener("load",(()=>Cr(t)),!0):setTimeout(t,0))},Rr={},Or={};let Mr,Ar,Dr,Nr,Pr;function Lr(t,e=!1){return Wr("lcp",t,Br,Dr,e)}function jr(t,e){return qr(t,e),Or[t]||(!function(t){const e={};"event"===t&&(e.durationThreshold=0);pr(t,(e=>{$r(t,{entries:e})}),e)}(t),Or[t]=!0),Xr(t,e)}function $r(t,e){const n=Rr[t];if(n&&n.length)for(const i of n)try{i(e)}catch(r){or&&d.kg.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,Z.$P)(i)}\nError:`,r)}}function Fr(){return((t,e={})=>{const n=dr("CLS",0);let r,i=0,o=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=o[0],s=o[o.length-1];i&&0!==o.length&&t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,o.push(t)):(i=t.value,o=[t]),i>n.value&&(n.value=i,n.entries=o,r&&r())}}))},a=pr("layout-shift",s);if(a){r=cr(t,n,e.reportAllChanges);const i=()=>{s(a.takeRecords()),r(!0)};return hr(i),i}})((t=>{$r("cls",{metric:t}),Mr=t}),{reportAllChanges:!0})}function Ur(){return(t=>{const e=mr(),n=dr("FID");let r;const i=t=>{t.startTime{t.forEach(i)},s=pr("first-input",o);r=cr(t,n),s&&hr((()=>{o(s.takeRecords()),s.disconnect()}),!0)})((t=>{$r("fid",{metric:t}),Ar=t}))}function Br(){return(t=>{const e=mr(),n=dr("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-lr(),0);t{Ir[n.id]||(i(o.takeRecords()),o.disconnect(),Ir[n.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{sr.document&&addEventListener(t,e,{once:!0,capture:!0})})),hr(e,!0),e}})((t=>{$r("lcp",{metric:t}),Dr=t}))}function Hr(){return((t,e)=>{e=e||{};const n=dr("TTFB"),r=cr(t,n,e.reportAllChanges);Cr((()=>{const t=ur();if(t){if(n.value=Math.max(t.responseStart-lr(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}}))})((t=>{$r("ttfb",{metric:t}),Nr=t}))}function zr(){return xr((t=>{$r("inp",{metric:t}),Pr=t}))}function Wr(t,e,n,r,i=!1){let o;return qr(t,e),Or[t]||(o=n(),Or[t]=!0),r&&e({metric:r}),Xr(t,e,i?o:void 0)}function qr(t,e){Rr[t]=Rr[t]||[],Rr[t].push(e)}function Xr(t,e,n){return()=>{n&&n();const r=Rr[t];if(!r)return;const i=r.indexOf(e);-1!==i&&r.splice(i,1)}}function Jr(t){return[{type:"span"},t]}function Gr(t){return"number"===typeof t&&isFinite(t)}function Yr(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function Zr(t){return t/1e3}function Kr(){return sr&&sr.addEventListener&&sr.performance}let Vr,Qr,ti=0,ei={};function ni(){const t=Kr();if(t&&Ve.Z1){t.mark&&sr.performance.mark("sentry-tracing-init");const e=function(){return t=({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=Zr(Ve.Z1),r=Zr(e.startTime);or&&d.kg.log("[Measurements] Adding FID"),ei.fid={value:t.value,unit:"millisecond"},ei["mark.fid"]={value:n+r,unit:"second"}},Wr("fid",t,Ur,Ar);var t}(),n=function(t,e=!1){return Wr("cls",t,Fr,Mr,e)}((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(or&&d.kg.log("[Measurements] Adding CLS"),ei.cls={value:t.value,unit:""},Qr=e)}),!0),r=Lr((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(or&&d.kg.log("[Measurements] Adding LCP"),ei.lcp={value:t.value,unit:"millisecond"},Vr=e)}),!0),i=function(){return t=({metric:t})=>{t.entries[t.entries.length-1]&&(or&&d.kg.log("[Measurements] Adding TTFB"),ei.ttfb={value:t.value,unit:"millisecond"})},Wr("ttfb",t,Hr,Nr);var t}();return()=>{e(),n(),r(),i()}}return()=>{}}function ri(){jr("longtask",(({entries:t})=>{for(const e of t){const t=Yn();if(!t)return;const n=Zr(Ve.Z1+e.startTime),r=Zr(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}))}function ii(){jr("event",(({entries:t})=>{for(const e of t){const t=Yn();if(!t)return;if("click"===e.name){const n=Zr(Ve.Z1+e.startTime),r=Zr(e.duration),i={description:(0,ct.Rt)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},o=(0,ct.iY)(e.target);o&&(i.attributes={"ui.component_name":o}),t.startChild(i)}}}))}function oi(t,e){if(Kr()&&Ve.Z1){const n=function(t,e){return n=({metric:n})=>{if(void 0===n.value)return;const r=n.entries.find((t=>t.duration===n.value&&void 0!==si[t.name])),i=(0,a.s3)();if(!r||!i)return;const o=si[r.name],s=i.getOptions(),u=Zr(Ve.Z1+r.startTime),l=Zr(n.value),p=void 0!==r.interactionId?t[r.interactionId]:void 0;if(void 0===p)return;const{routeName:h,parentContext:f,activeTransaction:m,user:g,replayId:y}=p,_=void 0!==g?g.email||g.id||g.ip_address:void 0,v=void 0!==m?m.getProfileId():void 0,b=new jn({startTimestamp:u,endTimestamp:u+l,op:`ui.interaction.${o}`,name:(0,ct.Rt)(r.target),attributes:{release:s.release,environment:s.environment,transaction:h,...void 0!==_&&""!==_?{user:_}:{},...void 0!==v?{profile_id:v}:{},...void 0!==y?{replay_id:y}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),S=function(t,e,n){if(!c(e))return!1;let r;return r=void 0!==t&&"function"===typeof e.tracesSampler?e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:sr.location}):void 0!==t&&void 0!==t.sampled?t.sampled:"undefined"!==typeof e.tracesSampleRate?e.tracesSampleRate:1,Qn(r)?!0===r?n:!1===r?0:r*n:(or&&d.kg.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(f,s,e);if(S&&Math.random(){or&&d.kg.error("Error while sending interaction:",t)}))}},Wr("inp",n,zr,Pr);var n}(t,e);return()=>{n()}}return()=>{}}const si={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ai(t){const e=Kr();if(!e||!sr.performance.getEntries||!Ve.Z1)return;or&&d.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=Zr(Ve.Z1),r=e.getEntries(),{op:i,start_timestamp:o}=(0,Tn.XU)(t);if(r.slice(ti).forEach((e=>{const r=Zr(e.startTime),i=Zr(e.duration);if(!("navigation"===t.op&&o&&n+r{ci(t,e,r,n)})),ci(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),ci(t,e,"fetch",n,"cache","domainLookupStart"),ci(t,e,"domainLookup",n,"DNS"),function(t,e,n){e.responseEnd&&(Yr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Zr(e.requestStart),endTimestamp:n+Zr(e.responseEnd)}),Yr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Zr(e.responseStart),endTimestamp:n+Zr(e.responseEnd)}))}(t,e,n)}(t,e,n);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,i){const o=i+n,s=o+r;Yr(t,{description:e.name,endTimestamp:s,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})}(t,e,r,i,n);const o=mr(),s=e.startTime{if(!ei[t]||!o||n>=o)return;const e=ei[t].value,r=n+Zr(e),i=Math.abs(1e3*(r-o)),s=i-e;or&&d.kg.log(`[Measurements] Normalized ${t} from ${e} to ${i} (${s})`),ei[t].value=i}));const e=ei["mark.fid"];e&&ei.fid&&(Yr(t,{description:"first input delay",endTimestamp:e.value+Zr(ei.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete ei["mark.fid"]),"fcp"in ei||delete ei.cls,Object.keys(ei).forEach((t=>{!function(t,e,n){const r=Yn();r&&r.setMeasurement(t,e,n)}(t,ei[t].value,ei[t].unit)})),function(t){Vr&&(or&&d.kg.log("[Measurements] Adding LCP Data"),Vr.element&&t.setTag("lcp.element",(0,ct.Rt)(Vr.element)),Vr.id&&t.setTag("lcp.id",Vr.id),Vr.url&&t.setTag("lcp.url",Vr.url.trim().slice(0,200)),t.setTag("lcp.size",Vr.size));Qr&&Qr.sources&&(or&&d.kg.log("[Measurements] Adding CLS Data"),Qr.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,(0,ct.Rt)(e.node)))))}(t)}Vr=void 0,Qr=void 0,ei={}}function ci(t,e,n,r,i,o){const s=o?e[o]:e[`${n}End`],a=e[`${n}Start`];a&&s&&Yr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+Zr(a),endTimestamp:r+Zr(s)})}function ui(t,e,n,r){const i=e[n];null!=i&&i<2147483647&&(t[r]=i)}var li=n(99181);function di(t,e,n,r,i="auto.http.browser"){if(!c()||!t.fetchData)return;const o=e(t.fetchData.url);if(t.endTimestamp&&o){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(!function(t,e){if(e.response){Pn(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus("internal_error");t.end()}(n,t),delete r[e]))}const s=(0,a.nZ)(),u=(0,a.s3)(),{method:l,url:d}=t.fetchData,p=function(t){try{return new URL(t).href}catch(e){return}}(d),h=p?oe(p).host:void 0,m=o?$n({name:`${l} ${d}`,onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":l,"http.url":p,"server.address":h,[Mn]:i},op:"http.client"}):void 0;if(m&&(t.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m),n(t.fetchData.url)&&u){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,r,i){const o=i||n.getSpan(),s=(0,f.aF)(),{traceId:a,spanId:c,sampled:u,dsc:l}={...s.getPropagationContext(),...n.getPropagationContext()},d=o?(0,Tn.Hb)(o):(0,ir.$p)(a,c,u),p=(0,li.IQ)(l||(o?(0,Xe.j)(o):(0,Xe._)(a,e,n))),h=r.headers||("undefined"!==typeof Request&&(0,A.V9)(t,Request)?t.headers:void 0);if(h){if("undefined"!==typeof Headers&&(0,A.V9)(h,Headers)){const t=new Headers(h);return t.append("sentry-trace",d),p&&t.append(li.bU,p),t}if(Array.isArray(h)){const t=[...h,["sentry-trace",d]];return p&&t.push([li.bU,p]),t}{const t="baggage"in h?h.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),p&&e.push(p),{...h,"sentry-trace":d,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":d,baggage:p}}(e,u,s,n,m)}return m}const pi=["localhost",/^\/(?!\/)/],hi={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:pi,tracePropagationTargets:pi};function fi(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s}={traceFetch:hi.traceFetch,traceXHR:hi.traceXHR,...t},u="function"===typeof o?o:t=>!0,l=t=>function(t,e){return(0,E.U0)(t,e||pi)}(t,r||i),d={};e&&Gt((t=>{const e=di(t,u,l,d);if(e){const n=yi(t.fetchData.url),r=n?oe(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}s&&e&&mi(e)})),n&&zt((t=>{const e=function(t,e,n,r){const i=t.xhr,o=i&&i.__sentry_xhr_v3__;if(!c()||!i||i.__sentry_own_request__||!o)return;const s=e(o.url);if(t.endTimestamp&&s){const t=i.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==o.status_code&&(Pn(e,o.status_code),e.end(),delete r[t]))}const u=(0,a.nZ)(),l=(0,f.aF)(),d=yi(o.url),p=d?oe(d).host:void 0,h=s?$n({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":d,url:o.url,"server.address":p,[Mn]:"auto.http.browser"},op:"http.client"}):void 0;h&&(i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h);const m=(0,a.s3)();if(i.setRequestHeader&&n(o.url)&&m){const{traceId:t,spanId:e,sampled:n,dsc:r}={...l.getPropagationContext(),...u.getPropagationContext()};!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(li.bU,n)}catch(r){}}(i,h?(0,Tn.Hb)(h):(0,ir.$p)(t,e,n),(0,li.IQ)(r||(h?(0,Xe.j)(h):(0,Xe._)(t,m,u))))}return h}(t,u,l,d);s&&e&&mi(e)}))}function mi(t){const{url:e}=(0,Tn.XU)(t).data||{};if(!e||"string"!==typeof e)return;const n=jr("resource",(({entries:r})=>{r.forEach((r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"===typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){const e=function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(const i of t){if("/"===i){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=i}r===t&&(e=r);return{name:e,version:n}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!Ve.Z1)return r;return[...r,["http.request.redirect_start",gi(t.redirectStart)],["http.request.fetch_start",gi(t.fetchStart)],["http.request.domain_lookup_start",gi(t.domainLookupStart)],["http.request.domain_lookup_end",gi(t.domainLookupEnd)],["http.request.connect_start",gi(t.connectStart)],["http.request.secure_connection_start",gi(t.secureConnectionStart)],["http.request.connection_end",gi(t.connectEnd)],["http.request.request_start",gi(t.requestStart)],["http.request.response_start",gi(t.responseStart)],["http.request.response_end",gi(t.responseEnd)]]}(r);e.forEach((e=>t.setAttribute(...e))),setTimeout(n)}}))}))}function gi(t=0){return((Ve.Z1||performance.timeOrigin)+t)/1e3}function yi(t){try{return new URL(t,sr.location.origin).href}catch(e){return}}const _i={...qn,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!sr||!sr.location)return void(or&&d.kg.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=sr.location.href;e&&(r=t({name:sr.location.pathname,startTimestamp:Ve.Z1?Ve.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&ee((({to:e,from:n})=>{void 0===n&&i&&-1!==i.indexOf(e)?i=void 0:n!==e&&(i=void 0,r&&(or&&d.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=t({name:sr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...hi};function vi(t){const e=(0,ct.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function bi(t){const e=t.attributes&&t.attributes["sentry.source"],n=t.data&&t.data["sentry.source"],r=t.metadata&&t.metadata.source;return e||n||r}const Si={...qn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...hi},ki=(t={})=>{const e=!!or&&!(!t.tracePropagationTargets&&!t.tracingOrigins);rr(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const n={...Si,...t},r=ni(),i={};n.enableInp&&oi(i,n.interactionsSampleRate),n.enableLongTask&&ri(),n._experiments.enableInteractions&&ii();const o={name:void 0,context:void 0};function s(t){const e=(0,f.Gd)(),{beforeStartSpan:i,idleTimeout:s,finalTimeout:a,heartbeatInterval:c}=n,u="pageload"===t.op;let l;if(u){const e=u?Ei("sentry-trace"):"",n=u?Ei("baggage"):void 0,{traceId:r,dsc:i,parentSpanId:o,sampled:s}=(0,ir.pT)(e,n);l={traceId:r,parentSpanId:o,parentSampled:s,...t,metadata:{...t.metadata,dynamicSamplingContext:i},trimEnd:!0}}else l={trimEnd:!0,...t};const p=i?i(l):l;p.metadata=p.name!==l.name?{...p.metadata,source:"custom"}:p.metadata,o.name=p.name,o.context=p,!1===p.sampled&&or&&d.kg.log(`[Tracing] Will not send ${p.op} transaction because of beforeNavigate.`),or&&d.kg.log(`[Tracing] Starting ${p.op} transaction on scope`);const{location:h}=sr,m=nr(e,p,s,a,!0,{location:h},c,u);return u&&sr.document&&(sr.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(sr.document.readyState)&&m.sendAutoFinishSignal()})),["interactive","complete"].includes(sr.document.readyState)&&m.sendAutoFinishSignal()),m.registerBeforeFinishCallback((t=>{r(),ai(t)})),m}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(t){const r=t.getOptions(),{markBackgroundSpan:c,traceFetch:u,traceXHR:l,shouldCreateSpanForRequest:p,enableHTTPTimings:h,_experiments:m}=n,g=r&&r.tracePropagationTargets,y=g||n.tracePropagationTargets;let _;or&&e&&g&&d.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let v=sr.location&&sr.location.href;if(t.on&&(t.on("startNavigationSpan",(t=>{_&&(or&&d.kg.log(`[Tracing] Finishing current transaction with op: ${(0,Tn.XU)(_).op}`),_.end()),_=s({op:"navigation",...t})})),t.on("startPageLoadSpan",(t=>{_&&(or&&d.kg.log(`[Tracing] Finishing current transaction with op: ${(0,Tn.XU)(_).op}`),_.end()),_=s({op:"pageload",...t})}))),n.instrumentPageLoad&&t.emit&&sr.location){const e={name:sr.location.pathname,startTimestamp:Ve.Z1?Ve.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[Cn]:"url"}};wi(t,e)}n.instrumentNavigation&&t.emit&&sr.location&&ee((({to:e,from:n})=>{if(void 0===n&&v&&-1!==v.indexOf(e))v=void 0;else if(n!==e){v=void 0;const e={name:sr.location.pathname,origin:"auto.navigation.browser",attributes:{[Cn]:"url"}};Ti(t,e)}})),c&&ar(),m.enableInteractions&&function(t,e){let n;const r=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=t,s="ui.action.click",a=Yn();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(or&&d.kg.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name)return void(or&&d.kg.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const{location:c}=sr,u={name:e.name,op:s,trimEnd:!0,data:{[Cn]:e.context?xi(e.context):"url"}};n=nr((0,f.Gd)(),u,r,i,!0,{location:c},o)};["click"].forEach((t=>{sr.document&&addEventListener(t,r,{once:!1,capture:!0})}))}(n,o),n.enableInp&&function(t,e){const n=({entries:n})=>{const r=(0,a.s3)(),i=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,o=void 0!==i?i.getReplayId():void 0,s=Yn(),c=(0,a.nZ)(),u=void 0!==c?c.getUser():void 0;n.forEach((n=>{if(function(t){return"duration"in t}(n)){const r=n.interactionId;if(void 0===r)return;const i=t[r],a=n.duration,c=n.startTime,l=Object.keys(t),d=l.length>0?l.reduce(((e,n)=>t[e].durationt[e])).some((t=>t.duration===a&&t.startTime===c)))return}if(!r)return;if(i)i.duration=Math.max(i.duration,a);else if(l.length<10||void 0===d||a>t[d].duration){const n=e.name,i=e.context;n&&i&&(d&&Object.keys(t).length>=10&&delete t[d],t[r]={routeName:n,duration:a,parentContext:i,user:u,activeTransaction:s,replayId:o,startTime:c})}}}))};jr("event",n),jr("first-input",n)}(i,o),fi({traceFetch:u,traceXHR:l,tracePropagationTargets:y,shouldCreateSpanForRequest:p,enableHTTPTimings:h})},options:n}};function wi(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);const n=Fn();return"pageload"===(n&&(0,Tn.XU)(n).op)?n:void 0}function Ti(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);const n=Fn();return"navigation"===(n&&(0,Tn.XU)(n).op)?n:void 0}function Ei(t){const e=(0,ct.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function xi(t){const e=t.attributes&&t.attributes["sentry.source"],n=t.data&&t.data["sentry.source"],r=t.metadata&&t.metadata.source;return e||n||r}const Ii={"routing.instrumentation":"next-app-router"};function Ci(t,e=!0,n=!0,r,i){let o,s=W.location.pathname;if(e){const e={name:s,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:Ii,startTimestamp:Ve.Z1?Ve.Z1/1e3:void 0,metadata:{source:"url"}};o=t(e),r(e)}n&&Gt((e=>{if(void 0!==e.endTimestamp)return;if("GET"!==e.fetchData.method)return;const n=function(t){if(!t[0]||"object"!==typeof t[0]||void 0===t[0].searchParams)return null;if(!t[1]||"object"!==typeof t[1]||!("headers"in t[1]))return null;try{const e=t[0],n=t[1].headers;return"1"!==n.RSC||"1"===n["Next-Router-Prefetch"]?null:{targetPathname:e.pathname}}catch(e){return null}}(e.args);if(null===n)return;const r=n.targetPathname,a={...Ii,from:s};s=r,o&&o.end();const c={name:r,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:a,metadata:{source:"url"}};t(c),i(c)}))}var Ri=n(11163),Oi=n.n(Ri);const Mi="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ai=W;const Di={"routing.instrumentation":"next-pages-router"};let Ni,Pi;const Li=(0,a.s3)();function ji(t,e=!0,n=!0,r,i){const{route:o,params:s,sentryTrace:c,baggage:u}=function(){let t;const e=Ai.document.getElementById("__NEXT_DATA__");if(e&&e.innerHTML)try{t=JSON.parse(e.innerHTML)}catch(s){Mi&&d.kg.warn("Could not extract __NEXT_DATA__")}if(!t)return{};const n={},{page:r,query:i,props:o}=t;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),{traceparentData:l,dynamicSamplingContext:p,propagationContext:h}=(0,ir.KA)(c,u);if((0,a.nZ)().setPropagationContext(h),Pi=o||Ai.location.pathname,e){const e=o?"route":"url",n={name:Pi,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:Di,startTimestamp:Ve.Z1?Ve.Z1/1e3:void 0,...s&&Li&&Li.getOptions().sendDefaultPii&&{data:s},...l,metadata:{source:e,dynamicSamplingContext:l&&!p?{}:p}};Ni=t(n),r(n)}n&&Oi().events.on("routeChangeStart",(e=>{const n=e.split(/[\?#]/,1)[0];const r=function(t){const e=(Ai.__BUILD_MANIFEST||{}).sortedPages;if(!e)return;return e.find((e=>{const n=function(t){const e=t.split("/");let n="";e[e.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(e.pop(),n="(?:/(.+?))?");const r=e.map((t=>t.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)"))).join("/");return new RegExp(`^${r}${n}(?:/)?$`)}(e);return t.match(n)}))}(n);let o,s;r?(o=r,s="route"):(o=n,s="url");const a={...Di,from:Pi};Pi=o,Ni&&Ni.end();const c={name:o,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:a,metadata:{source:s}},u=t(c);if(i(c),u){const t=u.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),e=()=>{t.end(),Oi().events.off("routeChangeComplete",e)};Oi().events.on("routeChangeComplete",e)}}))}function $i(t,e=!0,n=!0,r,i){!W.document.getElementById("__NEXT_DATA__")?Ci(t,e,n,r||(()=>{}),i||(()=>{})):ji(t,e,n,r||(()=>{}),i||(()=>{}))}class Fi extends class{constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,rr(),or&&(this._hasSetTracePropagationTargets=!(!t||!t.tracePropagationTargets&&!t.tracingOrigins)),this.options={..._i,...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=ni(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&oi(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&ri(),this.options._experiments.enableInteractions&&ii(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,e){this._getCurrentHub=e;const n=e().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:s,markBackgroundTransactions:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:p,_experiments:h}=this.options,f=r&&r.tracePropagationTargets,m=f||this.options.tracePropagationTargets;or&&this._hasSetTracePropagationTargets&&f&&d.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n}),s,o),a&&ar(),h.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),fi({traceFetch:c,traceXHR:u,tracePropagationTargets:m,shouldCreateSpanForRequest:l,enableHTTPTimings:p})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(or&&d.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const e=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,s="pageload"===t.op;let a;if(s){const e=s?vi("sentry-trace"):"",n=s?vi("baggage"):void 0,{traceId:r,dsc:i,parentSpanId:o,sampled:c}=(0,ir.pT)(e,n);a={traceId:r,parentSpanId:o,parentSampled:c,...t,metadata:{...t.metadata,dynamicSamplingContext:i},trimEnd:!0}}else a={trimEnd:!0,...t};const c="function"===typeof n?n(a):a,u=void 0===c?{...a,sampled:!1}:c;u.metadata=u.name!==a.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,!1===u.sampled&&or&&d.kg.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),or&&d.kg.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:l}=sr,p=nr(e,u,r,i,!0,{location:l},o,s);return s&&sr.document&&(sr.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(sr.document.readyState)&&p.sendAutoFinishSignal()})),["interactive","complete"].includes(sr.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback((t=>{this._collectWebVitals(),ai(t)})),p}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=Yn();if(o&&o.op&&["navigation","pageload"].includes(o.op))return void(or&&d.kg.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub)return void(or&&d.kg.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(or&&d.kg.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));const s=this._getCurrentHub(),{location:a}=sr,c={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[Cn]:this._latestRoute.context?bi(this._latestRoute.context):"url"}};t=nr(s,c,e,n,!0,{location:a},r)};["click"].forEach((t=>{sr.document&&addEventListener(t,e,{once:!1,capture:!0})}))}_registerInpInteractionListener(){const t=({entries:t})=>{const e=(0,a.s3)(),n=void 0!==e&&void 0!==e.getIntegrationByName?e.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,i=Yn(),o=(0,a.nZ)(),s=void 0!==o?o.getUser():void 0;t.forEach((t=>{if(function(t){return"duration"in t}(t)){const e=t.interactionId;if(void 0===e)return;const n=this._interactionIdToRouteNameMapping[e],o=t.duration,a=t.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),u=c.length>0?c.reduce(((t,e)=>this._interactionIdToRouteNameMapping[t].durationthis._interactionIdToRouteNameMapping[t])).some((t=>t.duration===o&&t.startTime===a)))return}if(!e)return;if(n)n.duration=Math.max(n.duration,o);else if(c.length<10||void 0===u||o>this._interactionIdToRouteNameMapping[u].duration){const t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:o,parentContext:n,user:s,activeTransaction:i,replayId:r,startTime:a})}}}))};jr("event",t),jr("first-input",t)}}{constructor(t){super({tracingOrigins:[...hi.tracingOrigins,/^(api\/)/],routingInstrumentation:$i,...t})}}function Ui(t){const e=ki({tracingOrigins:[...hi.tracingOrigins,/^(api\/)/],...t,instrumentNavigation:!1,instrumentPageLoad:!1}),n={...e.options,instrumentPageLoad:!0,instrumentNavigation:!0,...t};return{...e,options:n,afterAllSetup(t){const r=e=>{wi(t,e)},i=e=>{Ti(t,e)};$i((()=>{}),!1,n.instrumentNavigation,r,i),e.afterAllSetup(t),$i((()=>{}),n.instrumentPageLoad,!1,r,i)}}}function Bi(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}function Hi(t,e){let n=0;for(let r=t.length-1;r>=0;r--){const e=t[r];"."===e?t.splice(r,1):".."===e?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}const zi=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Wi(t){const e=t.length>1024?`${t.slice(-1024)}`:t,n=zi.exec(e);return n?n.slice(1):[]}function qi(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:"/";i&&(e=`${i}/${e}`,n="/"===i.charAt(0))}return e=Hi(e.split("/").filter((t=>!!t)),!n).join("/"),(n?"/":"")+e||"."}function Xi(t){let e=0;for(;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}const Ji="RewriteFrames",Gi=(t={})=>{const e=t.root,n=t.prefix||"app:///",r=t.iteratee||(t=>{if(!t.filename)return t;const r=/^[a-zA-Z]:\\/.test(t.filename)||t.filename.includes("\\")&&!t.filename.includes("/"),i=/^\//.test(t.filename);if(r||i){const i=r?t.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):t.filename,o=e?function(t,e){t=qi(t).slice(1),e=qi(e).slice(1);const n=Xi(t.split("/")),r=Xi(e.split("/")),i=Math.min(n.length,r.length);let o=i;for(let a=0;ar(t)))}}return{name:Ji,setupOnce(){},processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map((t=>({...t,...t.stacktrace&&{stacktrace:i(t.stacktrace)}})))}}}catch(e){return t}}(e)),e}}},Yi=(v(Ji,Gi),z.n2),Zi=t=>{const e=Yi.__rewriteFramesAssetPrefixPath__||"";return Gi({iteratee:t=>{try{const{origin:n}=new URL(t.filename);t.filename=Bi([t,"access",t=>t.filename,"optionalAccess",t=>t.replace,"call",t=>t(n,"app://"),"access",t=>t.replace,"call",t=>t(e,"")])}catch(n){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t},...t})},Ki=z.n2;function Vi(t){const e=t.find((t=>"BrowserTracing"===t.name));if(!e)return t;if((n=e).afterAllSetup&&n.options){const{options:n}=e;t[t.indexOf(e)]=Ui(n)}var n;if(!(e instanceof Fi)){const n=e.options;delete n.routingInstrumentation,delete n.tracingOrigins,t[t.indexOf(e)]=new Fi(n)}return t}function Qi(t){const e=[...bn(),Zi()];return("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&c(t)&&e.push(Ui()),e}function to(t,e){const n=e&&function(t){return void 0!==t.getClient}(e)?e.getClient():e,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,r)||function(t,e){if(!e)return!1;return eo(t)===eo(e)}(t,i)}function eo(t){return"/"===t[t.length-1]?t.slice(0,-1):t}var no=n(61422);function ro(){return"undefined"!==typeof window&&(!(0,no.KV)()||void 0!==z.n2.process&&"renderer"===z.n2.process.type)}const io=z.n2,oo="sentryReplaySession",so="Unable to send Replay",ao=15e4,co=5e3,uo=2e7,lo=36e5;function po(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}var ho;function fo(t){const e=po([t,"optionalAccess",t=>t.host]);return Boolean(po([e,"optionalAccess",t=>t.shadowRoot])===t)}function mo(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function go(t){try{const n=t.rules||t.cssRules;return n?((e=Array.from(n,yo).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e):null}catch(n){return null}var e}function yo(t){let e;if(function(t){return"styleSheet"in t}(t))try{e=go(t.styleSheet)||function(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(n){}else if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":"))return function(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}(t.cssText);return e||t.cssText}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(ho||(ho={}));class _o{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const e=po([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]);return r=()=>-1,null!=(n=e)?n:r();var n,r}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function vo({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),Boolean(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function bo({isMasked:t,element:e,value:n,maskInputFn:r}){let i=n||"";return t?(r&&(i=r(i,e)),"*".repeat(i.length)):i}function So(t){return t.toLowerCase()}function ko(t){return t.toUpperCase()}const wo="__rrweb_original__";function To(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?So(e):null}function Eo(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}let xo=1;const Io=new RegExp("[^a-z0-9-_:]");function Co(){return xo++}let Ro,Oo;const Mo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ao=/^(?:[a-z+]+:)?\/\//i,Do=/^www\..*/i,No=/^(data:)([^,]*),(.*)/i;function Po(t,e){return(t||"").replace(Mo,((t,n,r,i,o,s)=>{const a=r||o||s,c=n||i||"";if(!a)return t;if(Ao.test(a)||Do.test(a))return`url(${c}${a}${c})`;if(No.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+a}${c})`;const u=e.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const Lo=/^[^ \t\n\r\u000c]+/,jo=/^[, \t\n\r\u000c]+/;function $o(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Fo(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function Uo(){const t=document.createElement("a");return t.href="",t.href}function Bo(t,e,n,r,i,o){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?$o(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(jo),!(n>=e.length);){let o=r(Lo);if(","===o.slice(-1))o=$o(t,o.substring(0,o.length-1)),i.push(o);else{let r="";o=$o(t,o);let s=!1;for(;;){const t=e.charAt(n);if(""===t){i.push((o+r).trim());break}if(s)")"===t&&(s=!1);else{if(","===t){n+=1,i.push((o+r).trim());break}"("===t&&(s=!0)}r+=t,n+=1}}}return i.join(", ")}(t,r):"style"===n?Po(r,Uo()):"object"===e&&"data"===n?$o(t,r):"function"===typeof o?o(n,r,i):r:$o(t,r):r}function Ho(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function zo(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:zo(t.parentNode,e,n,r+1):-1}function Wo(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"===typeof t){if(r.matches(`.${t}`))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch(i){return!1}}}function qo(t,e,n,r,i,o){try{const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const t=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,c=-1;if(o){if(c=zo(s,Wo(r,i)),c<0)return!0;a=zo(s,Wo(e,n),c>=0?c:1/0)}else{if(a=zo(s,Wo(e,n)),a<0)return!1;c=zo(s,Wo(r,i),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!o}catch(s){}return!!o}function Xo(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=e,k=function(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:ho.Document,childNodes:[],compatMode:t.compatMode}:{type:ho.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ho.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:k};case t.ELEMENT_NODE:return function(t,e){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:b}=e,S=function(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"===typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(i){}return!1}(t,r,i,o),k=function(t){if(t instanceof HTMLFormElement)return"form";const e=So(t.tagName);return Io.test(e)?"div":e}(t);let w={};const T=t.attributes.length;for(let I=0;Ie.href===t.href));let r=null;e&&(r=go(e)),r&&(delete w.rel,delete w.href,w._cssText=Po(r,e.href))}if("style"===k&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=go(t.sheet);e&&(w._cssText=Po(e,Uo()))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const e=t,n=To(e),r=Eo(e,ko(k),n),i=e.checked;if("submit"!==n&&"button"!==n&&r){const t=qo(e,y,v,_,b,vo({type:n,tagName:ko(k),maskInputOptions:a}));w.value=bo({isMasked:t,element:e,value:r,maskInputFn:u})}i&&(w.checked=i)}"option"===k&&(t.selected&&!a.select?w.selected=!0:delete w.selected);if("canvas"===k&&p)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n0!==t)))return!1}return!0})(t)||(w.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(l.type,l.quality)&&(w.rr_dataURL=e)}if("img"===k&&d){Ro||(Ro=n.createElement("canvas"),Oo=Ro.getContext("2d"));const e=t,r=e.crossOrigin;e.crossOrigin="anonymous";const i=()=>{e.removeEventListener("load",i);try{Ro.width=e.naturalWidth,Ro.height=e.naturalHeight,Oo.drawImage(e,0,0),w.rr_dataURL=Ro.toDataURL(l.type,l.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}r?w.crossOrigin=r:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}"audio"!==k&&"video"!==k||(w.rr_mediaState=t.paused?"paused":"played",w.rr_mediaCurrentTime=t.currentTime);f||(t.scrollLeft&&(w.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(w.rr_scrollTop=t.scrollTop));if(S){const{width:e,height:n}=t.getBoundingClientRect();w={class:w.class,rr_width:`${e}px`,rr_height:`${n}px`}}"iframe"!==k||h(w.src)||(t.contentDocument||(w.rr_src=w.src),delete w.src);let E;try{customElements.get(k)&&(E=!0)}catch(x){}return{type:ho.Element,tagName:k,attributes:w,childNodes:[],isSVG:Fo(t)||void 0,needBlock:S,rootId:m,isCustom:E}}(t,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:k,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case t.TEXT_NODE:return function(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let p=t.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{t.nextSibling||t.previousSibling||po([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(p=go(t.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,t)}p=Po(p,Uo())}f&&(p="SCRIPT_PLACEHOLDER");const g=qo(t,r,o,i,s,n);h||f||m||!p||!g||(p=a?a(p,t.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=u?u(p,t.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=bo({isMasked:qo(t,r,o,i,s,vo({type:null,tagName:d,maskInputOptions:c})),element:t,value:p,maskInputFn:u})}return{type:ho.Text,textContent:p||"",isStyle:h,rootId:l}}(t,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case t.CDATA_SECTION_NODE:return{type:ho.CDATA,textContent:"",rootId:k};case t.COMMENT_NODE:return{type:ho.Comment,textContent:t.textContent||"",rootId:k};default:return!1}}function Jo(t){return void 0===t||null===t?"":t.toLowerCase()}function Go(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:I=(()=>!1),newlyAddedElement:C=!1}=e;let{preserveWhiteSpace:R=!0}=e;const O=Xo(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:I,newlyAddedElement:C});if(!O)return console.warn(t,"not serialized"),null;let M;M=r.hasNode(t)?r.getId(t):!function(t,e){if(e.comment&&t.type===ho.Comment)return!0;if(t.type===ho.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"===typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Jo(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Jo(t.attributes.name)||"icon"===Jo(t.attributes.rel)||"apple-touch-icon"===Jo(t.attributes.rel)||"shortcut icon"===Jo(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Jo(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Jo(t.attributes.property).match(/^(og|twitter|fb):/)||Jo(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Jo(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Jo(t.attributes.name)||"googlebot"===Jo(t.attributes.name)||"bingbot"===Jo(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Jo(t.attributes.name)||"generator"===Jo(t.attributes.name)||"framework"===Jo(t.attributes.name)||"publisher"===Jo(t.attributes.name)||"progid"===Jo(t.attributes.name)||Jo(t.attributes.property).match(/^article:/)||Jo(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Jo(t.attributes.name)||"yandex-verification"===Jo(t.attributes.name)||"csrf-token"===Jo(t.attributes.name)||"p:domain_verify"===Jo(t.attributes.name)||"verify-v1"===Jo(t.attributes.name)||"verification"===Jo(t.attributes.name)||"shopify-checkout-api-token"===Jo(t.attributes.name)))return!0}}return!1}(O,_)&&(R||O.type!==ho.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?Co():-2;const A=Object.assign(O,{id:M});if(r.add(t,A),-2===M)return null;k&&k(t);let D=!p;if(A.type===ho.Element){D=D&&!A.needBlock,delete A.needBlock;const e=t.shadowRoot;e&&mo(e)&&(A.isShadowHost=!0)}if((A.type===ho.Document||A.type===ho.Element)&&D){_.headWhitespace&&A.type===ho.Element&&"head"===A.tagName&&(R=!1);const e={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:R,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I};for(const n of Array.from(t.childNodes)){const t=Go(n,e);t&&A.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=Go(n,e);r&&(mo(t.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return t.parentNode&&fo(t.parentNode)&&mo(t.parentNode)&&(A.isShadow=!0),A.type===ho.Element&&"iframe"===A.tagName&&function(t,e,n){const r=t.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(a){return}if("complete"!==i){const r=setTimeout((()=>{o||(e(),o=!0)}),n);return void t.addEventListener("load",(()=>{clearTimeout(r),o=!0,e()}))}const s="about:blank";if(r.location.href!==s||t.src===s||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,(()=>{const e=t.contentDocument;if(e&&w){const n=Go(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:R,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I});n&&w(t,n)}}),T),A.type===ho.Element&&"link"===A.tagName&&"stylesheet"===A.attributes.rel&&function(t,e,n){let r,i=!1;try{r=t.sheet}catch(s){return}if(r)return;const o=setTimeout((()=>{i||(e(),i=!0)}),n);t.addEventListener("load",(()=>{clearTimeout(o),i=!0,e()}))}(t,(()=>{if(E){const e=Go(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:R,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I});e&&E(t,e)}}),x),A}function Yo(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}function Zo(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Ko="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Vo={map:{},getId:()=>(console.error(Ko),-1),getNode:()=>(console.error(Ko),null),removeNodeFromMap(){console.error(Ko)},has:()=>(console.error(Ko),!1),reset(){console.error(Ko)}};function Qo(t,e,n={}){let r=null,i=0;return function(...o){const s=Date.now();i||!1!==n.leading||(i=s);const a=e-(s-i),c=this;a<=0||a>e?(r&&(!function(...t){vs("clearTimeout")(...t)}(r),r=null),i=s,t.apply(c,o)):r||!1===n.trailing||(r=bs((()=>{i=!1===n.leading?0:Date.now(),r=null,t.apply(c,o)}),a))}}function ts(t,e,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(t){bs((()=>{n.set.call(this,t)}),0),o&&o.set&&o.set.call(this,t)}}),()=>ts(t,e,o||{},!0)}function es(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch(r){return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Vo=new Proxy(Vo,{get:(t,e,n)=>("map"===e&&console.error(Ko),Reflect.get(t,e,n))}));let ns=Date.now;function rs(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:Yo([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||Yo([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||Yo([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:Yo([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||Yo([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||Yo([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function is(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function os(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ss(t){if(!t)return null;return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}function as(t,e,n,r,i){if(!t)return!1;const o=ss(t);if(!o)return!1;const s=Wo(e,n);if(!i){const t=r&&o.matches(r);return s(o)&&!t}const a=zo(o,s);let c=-1;return!(a<0)&&(r&&(c=zo(o,Wo(null,r))),a>-1&&c<0||at.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ns=()=>(new Date).getTime());class fs{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return e=this.styleIDMap.get(t),n=()=>-1,null!=e?e:n();var e,n}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ms(t){let e=null;return Yo([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function gs(t){const e=t.ownerDocument;if(!e)return!1;const n=function(t){let e,n=t;for(;e=ms(n);)n=e;return n}(t);return e.contains(n)}function ys(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||gs(t))}const _s={};function vs(t){const e=_s[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"===typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(e)}catch(i){}return _s[t]=r.bind(window)}function bs(...t){return vs("setTimeout")(...t)}var Ss=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Ss||{}),ks=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ks||{}),ws=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(ws||{}),Ts=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Ts||{});function Es(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}function xs(t){return"__ln"in t}class Is{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;nt.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&xs(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&xs(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Cs=(t,e)=>`${t}@${e}`;class Rs{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new Is,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},i=i=>{if(!i.parentNode||!ys(i))return;const o=fo(i.parentNode)?this.mirror.getId(ms(i)):this.mirror.getId(i.parentNode),s=r(i);if(-1===o||-1===s)return n.addNode(i);const a=Go(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{ds(t,this.mirror)&&this.iframeManager.addIframe(t),ps(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),hs(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:o,nextId:s,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)Ms(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||i(a);for(const a of this.addedSet)Ds(this.droppedSet,a)||Ms(this.removes,a,this.mirror)?Ds(this.movedSet,a)?i(a):this.droppedSet.add(a):i(a);let o=null;for(;n.length;){let t=null;if(o){const e=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==e&&-1!==n&&(t=o)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}o=t.previous,n.removeNode(t.value),i(t.value)}const s={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"===typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=t=>{if(!cs(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:qo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,ss(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if("value"===r){const e=To(n),r=n.tagName;i=Eo(n,r,e);const o=vo({maskInputOptions:this.maskInputOptions,tagName:r,type:e});i=bo({isMasked:qo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:n,value:i,maskInputFn:this.maskInputFn})}if(as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let o=this.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(i)){if(n.contentDocument)return;r="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===r&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Ho(n.tagName,r)&&(o.attributes[r]=Bo(this.doc,So(n.tagName),So(r),i,n,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");t.oldValue&&r.setAttribute("style",t.oldValue);for(const t of Array.from(n.style)){const e=n.style.getPropertyValue(t),i=n.style.getPropertyPriority(t);e!==r.style.getPropertyValue(t)||i!==r.style.getPropertyPriority(t)?o.styleDiff[t]=""===i?e:[e,i]:o._unchangedStyles[t]=[e,i]}for(const t of Array.from(r.style))""===n.style.getPropertyValue(t)&&(o.styleDiff[t]=!1)}break}case"childList":if(as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=fo(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||cs(e,this.mirror)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Os(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||us(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Cs(n,r)]?Os(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!fo(t.target)||!mo(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(cs(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[Cs(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);as(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),hs(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((e=>{this[e]=t[e]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Os(t,e){t.delete(e),e.childNodes.forEach((e=>Os(t,e)))}function Ms(t,e,n){return 0!==t.length&&As(t,e,n)}function As(t,e,n){const{parentNode:r}=e;if(!r)return!1;const i=n.getId(r);return!!t.some((t=>t.id===i))||As(t,r,n)}function Ds(t,e){return 0!==t.size&&Ns(t,e)}function Ns(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||Ns(t,n))}let Ps;function Ls(t){Ps=t}function js(){Ps=void 0}const $s=t=>{if(!Ps)return t;return(...e)=>{try{return t(...e)}catch(n){if(Ps&&!0===Ps(n))return()=>{};throw n}}};function Fs(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const Us=[];function Bs(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(e){}return t&&t.target}function Hs(t,e){const n=new Rs;Us.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const i=Fs([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r($s((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function zs({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(ws).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((s=>{let a=So(s);const l=(e=>s=>{const a=Bs(s);if(as(a,r,i,o,!0))return;let c=null,l=e;if("pointerType"in s){switch(s.pointerType){case"mouse":c=Ts.Mouse;break;case"touch":c=Ts.Touch;break;case"pen":c=Ts.Pen}c===Ts.Touch?ws[e]===ws.MouseDown?l="TouchStart":ws[e]===ws.MouseUp&&(l="TouchEnd"):Ts.Pen}else ls(s)&&(c=Ts.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Ts.Touch||l.startsWith("Mouse")&&c===Ts.Mouse)&&(c=null)):ws[e]===ws.Click&&(c=u,u=null);const d=ls(s)?s.changedTouches[0]:s;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;$s(t)({type:ws[l],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(ws[s]){case ws.MouseDown:case ws.MouseUp:a=a.replace("mouse","pointer");break;case ws.TouchStart:case ws.TouchEnd:return}c.push(Zo(a,l,e))})),$s((()=>{c.forEach((t=>t()))}))}function Ws({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){return Zo("scroll",$s(Qo($s((s=>{const a=Bs(s);if(!a||as(a,r,i,o,!0))return;const c=n.getId(a);if(a===e&&e.defaultView){const n=rs(e.defaultView);t({id:c,x:n.left,y:n.top})}else t({id:c,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),e)}const qs=["INPUT","TEXTAREA","SELECT"],Xs=new WeakMap;function Js({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(t){let n=Bs(t);const l=t.isTrusted,g=n&&ko(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||qs.indexOf(g)<0||as(n,r,i,o,!0))return;const _=n;if(_.classList.contains(s)||a&&_.matches(a))return;const v=To(n);let b=Eo(_,g,v),S=!1;const k=vo({maskInputOptions:c,tagName:g,type:v}),w=qo(n,p,f,h,m,k);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=bo({isMasked:w,element:n,value:b,maskInputFn:u}),y(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S});const T=n.name;"radio"===v&&T&&S&&e.querySelectorAll(`input[type="radio"][name="${T}"]`).forEach((t=>{if(t!==n){const e=bo({isMasked:w,element:t,value:Eo(t,g,v),maskInputFn:u});y(t,d?{text:e,isChecked:!S,userTriggered:!1}:{text:e,isChecked:!S})}}))}function y(e,r){const i=Xs.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Xs.set(e,r);const i=n.getId(e);$s(t)({...r,id:i})}}const _=("last"===l.input?["change"]:["input","change"]).map((t=>Zo(t,$s(g),e))),v=e.defaultView;if(!v)return()=>{_.forEach((t=>t()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map((t=>ts(t[0],t[1],{set(){$s(g)({target:this,isTrusted:!1})}},!1,v)))),$s((()=>{_.forEach((t=>t()))}))}function Gs(t){return function(t,e){if(Vs("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Vs("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Vs("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Vs("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Ys(t,e,n){let r,i;return t?(t.ownerNode?r=e.getId(t.ownerNode):i=n.getId(t),{styleId:i,id:r}):{}}function Zs({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const i="#document"===n.nodeName?Fs([n,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):Fs([n,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),o=Fs([i,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(Fs([i,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Fs([o,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=Fs([o,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch(i){}return n}}),$s((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function Ks(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};const r=Hs(t,t.doc),i=function({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const i="number"===typeof e.mousemove?e.mousemove:50,o="number"===typeof e.mousemoveCallback?e.mousemoveCallback:500;let s,a=[];const c=Qo($s((e=>{const n=Date.now()-s;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],s=null})),o),u=$s(Qo($s((t=>{const e=Bs(t),{clientX:n,clientY:i}=ls(t)?t.changedTouches[0]:t;s||(s=ns()),a.push({x:n,y:i,id:r.getId(e),timeOffset:ns()-s}),c("undefined"!==typeof DragEvent&&t instanceof DragEvent?ks.Drag:t instanceof MouseEvent?ks.MouseMove:ks.TouchMove)})),i,{trailing:!1})),l=[Zo("mousemove",u,n),Zo("touchmove",u,n),Zo("drag",u,n)];return $s((()=>{l.forEach((t=>t()))}))}(t),o=zs(t),s=Ws(t),a=function({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return Zo("resize",$s(Qo($s((()=>{const e=is(),i=os();n===e&&r===i||(t({width:Number(i),height:Number(e)}),n=e,r=i)})),200)),e)}(t,{win:n}),c=Js(t),u=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=$s((s=>Qo($s((o=>{const a=Bs(o);if(!a||as(a,e,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;t({type:s,id:i.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),o.media||500))),c=[Zo("play",a(0),s),Zo("pause",a(1),s),Zo("seeked",a(2),s),Zo("volumechange",a(3),s),Zo("ratechange",a(4),s)];return $s((()=>{c.forEach((t=>t()))}))}(t),l=function({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:$s(((r,i,o)=>{const[s,a]=o,{id:c,styleId:u}=Ys(i,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:s,index:a}]}),r.apply(i,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:$s(((r,i,o)=>{const[s]=o,{id:a,styleId:c}=Ys(i,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:s}]}),r.apply(i,o)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:$s(((r,i,o)=>{const[s]=o,{id:a,styleId:c}=Ys(i,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replace:s}),r.apply(i,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$s(((r,i,o)=>{const[s]=o,{id:a,styleId:c}=Ys(i,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replaceSync:s}),r.apply(i,o)}))}));const c={};Qs("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Qs("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Qs("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Qs("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,i])=>{u[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[r].insertRule,{apply:$s(((r,i,o)=>{const[s,a]=o,{id:c,styleId:u}=Ys(i.parentStyleSheet,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:s,index:[...Gs(i),a||0]}]}),r.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:$s(((r,i,o)=>{const[s]=o,{id:a,styleId:c}=Ys(i.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:[...Gs(i),s]}]}),r.apply(i,o)}))})})),$s((()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([t,e])=>{e.prototype.insertRule=u[t].insertRule,e.prototype.deleteRule=u[t].deleteRule}))}))}(t,{win:n}),d=Zs(t,t.doc),p=function({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:$s(((i,s,a)=>{const[c,u,l]=a;if(n.has(c))return o.apply(s,[c,u,l]);const{id:d,styleId:p}=Ys(Fs([s,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&t({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Gs(s.parentRule)}),i.apply(s,a)}))});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:$s(((i,o,a)=>{const[c]=a;if(n.has(c))return s.apply(o,[c]);const{id:u,styleId:l}=Ys(Fs([o,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&t({id:u,styleId:l,remove:{property:c},index:Gs(o.parentRule)}),i.apply(o,a)}))}),$s((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s}))}(t,{win:n}),h=t.collectFonts?function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(t,e,n){const r=new o(t,e,n);return i.set(r,{family:t,buffer:"string"!==typeof e,descriptors:n,fontSource:"string"===typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const s=es(e.fonts,"add",(function(e){return function(n){return bs($s((()=>{const e=i.get(n);e&&(t(e),i.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(s),$s((()=>{r.forEach((t=>t()))}))}(t):()=>{},f=function(t){const{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=t;let a=!0;const c=$s((()=>{const t=e.getSelection();if(!t||a&&Fs([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;const c=[],u=t.rangeCount||0;for(let e=0;e{}}(t),g=[];for(const y of t.plugins)g.push(y.observer(y.callback,n,y.options));return $s((()=>{Us.forEach((t=>t.reset())),r.disconnect(),i(),o(),s(),a(),c(),u(),l(),d(),p(),h(),f(),m(),g.forEach((t=>t()))}))}function Vs(t){return"undefined"!==typeof window[t]}function Qs(t){return Boolean("undefined"!==typeof window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class ta{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const i=n||this.getIdToRemoteIdMap(t),o=r||this.getRemoteIdToIdMap(t);let s=i.get(e);return s||(s=this.generateIdFn(),i.set(e,s),o.set(s,e)),s}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!==typeof e)return e;const i=r.get(e);return i||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function ea(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class na{constructor(){this.crossOriginIframeMirror=new ta(Co),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ra{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ta(Co),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ta(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),ea([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case Ss.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:Ss.IncrementalSnapshot,data:{source:ks.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ss.Meta:case Ss.Load:case Ss.DomContentLoaded:return!1;case Ss.Plugin:return e;case Ss.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case Ss.IncrementalSnapshot:switch(e.data.source){case ks.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ks.Drag:case ks.TouchMove:case ks.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ks.ViewportResize:return!1;case ks.MediaInteraction:case ks.MouseInteraction:case ks.Scroll:case ks.CanvasMutation:case ks.Input:return this.replaceIds(e.data,t,["id"]),e;case ks.StyleSheetRule:case ks.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case ks.Font:return e;case ks.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case ks.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),ea([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e((e=>{this.replaceStyleIds(e,t,["styleId"])}))]),e}}return!1}replace(t,e,n,r){for(const i of r)(Array.isArray(e[i])||"number"===typeof e[i])&&(Array.isArray(e[i])?e[i]=t.getIds(n,e[i]):e[i]=t.getId(n,e[i]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type===ho.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class ia{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class oa{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!mo(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t);const n=Hs({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Ws({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),bs((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Zs({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(es(t.prototype,"attachShadow",(function(t){return function(r){const i=t.call(this,r);return this.shadowRoot&&ys(this)&&n.addShadowRoot(this.shadowRoot,e),i}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class sa{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class aa{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new fs,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const i of t){let t;this.styleMirror.has(i)?t=this.styleMirror.getId(i):(t=this.styleMirror.add(i),r.push({styleId:t,rules:Array.from(i.rules||CSSRule,((t,e)=>({rule:yo(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class ca{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...t){vs("requestAnimationFrame")(...t)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let ua,la;const da=new _o;function pa(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:k,sampling:w={},dataURLOptions:T={},mousemoveWait:E,recordCanvas:x=!1,recordCrossOriginIframes:I=!1,recordAfter:C=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:M=!1,plugins:A,keepIframeSrcFn:D=(()=>!1),ignoreCSSAttributes:N=new Set([]),errorHandler:P,onMutation:L,getCanvasManager:j}=t;Ls(P);const $=!I||window.parent===window;let F=!1;if(!$)try{window.parent.document&&(F=!1)}catch(tt){F=!0}if($&&!e)throw new Error("emit function is required");void 0!==E&&void 0===w.mousemove&&(w.mousemove=E),da.reset();const U=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},B=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let H;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let z=0;const W=t=>{for(const e of A||[])e.eventProcessor&&(t=e.eventProcessor(t));return k&&!F&&(t=k(t)),t};ua=(t,i)=>{const o=t;if(o.timestamp=ns(),!Bi([Us,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])||o.type===Ss.FullSnapshot||o.type===Ss.IncrementalSnapshot&&o.data.source===ks.Mutation||Us.forEach((t=>t.unfreeze())),$)Bi([e,"optionalCall",t=>t(W(o),i)]);else if(F){const t={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(o.type===Ss.FullSnapshot)H=o,z=0;else if(o.type===Ss.IncrementalSnapshot){if(o.data.source===ks.Mutation&&o.data.isAttachIframe)return;z++;const t=r&&z>=r,e=n&&H&&o.timestamp-H.timestamp>n;(t||e)&&Q(!0)}};const q=t=>{ua({type:Ss.IncrementalSnapshot,data:{source:ks.Mutation,...t}})},X=t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.Scroll,...t}}),J=t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.CanvasMutation,...t}}),G=new aa({mutationCb:q,adoptedStyleSheetCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.AdoptedStyleSheet,...t}})}),Y="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new na:new ra({mirror:da,mutationCb:q,stylesheetManager:G,recordCrossOriginIframes:I,wrappedEmit:ua});for(const nt of A||[])nt.getMirror&&nt.getMirror({nodeMirror:da,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Z=new ca,K=function(t,e){try{return t?t(e):new sa}catch(n){return console.warn("Unable to initialize CanvasManager"),new sa}}(j,{mirror:da,win:window,mutationCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.CanvasMutation,...t}}),recordCanvas:x,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:S,sampling:w.canvas,dataURLOptions:T,errorHandler:P}),V="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ia:new oa({mutationCb:q,scrollCb:X,bypassOptions:{onMutation:L,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:U,dataURLOptions:T,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,recordCanvas:x,inlineImages:M,sampling:w,slimDOMOptions:B,iframeManager:Y,stylesheetManager:G,canvasManager:K,keepIframeSrcFn:D,processedNodeManager:Z},mirror:da}),Q=(t=!1)=>{ua({type:Ss.Meta,data:{href:window.location.href,width:os(),height:is()}},t),G.reset(),V.init(),Us.forEach((t=>t.lock()));const e=function(t,e){const{mirror:n=new _o,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:x=(()=>!1)}=e||{};return Go(t,{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:da,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:U,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,slimDOM:B,dataURLOptions:T,recordCanvas:x,inlineImages:M,onSerialize:t=>{ds(t,da)&&Y.addIframe(t),ps(t,da)&&G.trackLinkElement(t),hs(t)&&V.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{Y.attachIframe(t,e),V.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:D});if(!e)return console.warn("Failed to snapshot the document");ua({type:Ss.FullSnapshot,data:{node:e,initialOffset:rs(window)}}),Us.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,da.getId(document))};la=Q;try{const t=[],e=t=>$s(Ks)({onMutation:L,mutationCb:q,mousemoveCb:(t,e)=>ua({type:Ss.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.MouseInteraction,...t}}),scrollCb:X,viewportResizeCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.ViewportResize,...t}}),inputCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.Input,...t}}),mediaInteractionCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.MediaInteraction,...t}}),styleSheetRuleCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.StyleSheetRule,...t}}),styleDeclarationCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.StyleDeclaration,...t}}),canvasMutationCb:J,fontCb:t=>ua({type:Ss.IncrementalSnapshot,data:{source:ks.Font,...t}}),selectionCb:t=>{ua({type:Ss.IncrementalSnapshot,data:{source:ks.Selection,...t}})},customElementCb:t=>{ua({type:Ss.IncrementalSnapshot,data:{source:ks.CustomElement,...t}})},blockClass:i,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:U,inlineStylesheet:f,sampling:w,recordCanvas:x,inlineImages:M,userTriggeredOnInput:R,collectFonts:O,doc:t,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:D,blockSelector:o,unblockSelector:s,slimDOMOptions:B,dataURLOptions:T,mirror:da,iframeManager:Y,stylesheetManager:G,shadowDomManager:V,processedNodeManager:Z,canvasManager:K,ignoreCSSAttributes:N,plugins:Bi([A,"optionalAccess",t=>t.filter,"call",t=>t((t=>t.observer)),"optionalAccess",t=>t.map,"call",t=>t((t=>({observer:t.observer,options:t.options,callback:e=>ua({type:Ss.Plugin,data:{plugin:t.name,payload:e}})})))])||[]},{});Y.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(r){console.warn(r)}}));const n=()=>{Q(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(Zo("DOMContentLoaded",(()=>{ua({type:Ss.DomContentLoaded,data:{}}),"DOMContentLoaded"===C&&n()}))),t.push(Zo("load",(()=>{ua({type:Ss.Load,data:{}}),"load"===C&&n()}),window))),()=>{t.forEach((t=>t())),Z.destroy(),la=void 0,js()}}catch(et){console.warn(et)}}pa.mirror=da,pa.takeFullSnapshot=function(t){if(!la)throw new Error("please take full snapshot after start recording");la(t)};function ha(t){return t>9999999999?t:1e3*t}function fa(t){return t>9999999999?t/1e3:t}function ma(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:Ss.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:(0,lt.Fv)(e,10,1e3)}}),"console"===e.category))))}function ga(t){return t.closest("button,a")||t}function ya(t){const e=_a(t);return e&&e instanceof Element?ga(e):e}function _a(t){return function(t){return"object"===typeof t&&!!t&&"target"in t}(t)?t.target:t}let va;function ba(t){return va||(va=[],(0,u.hl)(io,"open",(function(t){return function(...e){if(va)try{va.forEach((t=>t()))}catch(n){}return t.apply(io,e)}}))),va.push(t),()=>{const e=va?va.indexOf(t):-1;e>-1&&va.splice(e,1)}}class Sa{constructor(t,e,n=ma){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=ba((()=>{this._lastMutation=wa()}));this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(function(t,e){if(!ka.includes(t.tagName))return!0;if("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||""))return!0;if("A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))return!0;if(e&&t.matches(e))return!0;return!1}(e,this._ignoreSelector)||!function(t){return!(!t.data||"number"!==typeof t.data.nodeId||!t.timestamp)}(t))return;const n={timestamp:fa(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=fa(t)}registerScroll(t=Date.now()){this._lastScroll=fa(t)}registerClick(t){const e=ga(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach((t=>{t.clickCount++}))}_getClicks(t){return this._clicks.filter((e=>e.node===t))}_checkClicks(){const t=[],e=wa();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=e&&t.push(n)}));for(const n of t){const t=this._clicks.indexOf(n);t>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:s}=t;if(i){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:io.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(e,i)}else if(o>1){const t={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:io.location.href,route:e.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const ka=["A","BUTTON","INPUT"];function wa(){return Date.now()/1e3}function Ta(t,e){try{if(!function(t){return 3===t.type}(e))return;const{source:n}=e.data;if(n===ks.Mutation&&t.registerMutation(e.timestamp),n===ks.Scroll&&t.registerScroll(e.timestamp),function(t){return t.data.source===ks.MouseInteraction}(e)){const{type:n,id:r}=e.data,i=pa.mirror.getNode(r);i instanceof HTMLElement&&n===ws.Click&&t.registerClick(i)}}catch(n){}}function Ea(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var xa;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(xa||(xa={}));const Ia=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Ca(t){const e={};for(const n in t)if(Ia.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}const Ra=t=>e=>{if(!t.isEnabled())return;const n=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,r=null;try{r=e?ya(t.event):_a(t.event),n=(0,ct.Rt)(r,{maxStringLength:200})||""}catch(i){n=""}return{target:r,message:n}}(t);return Ea({category:`ui.${t.name}`,...Oa(e,n)})}(e);if(!n)return;const r="click"===e.name,i=r?e.event:void 0;!(r&&t.clickDetector&&i&&i.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||function(t,e,n){t.handleClick(e,n)}(t.clickDetector,n,ya(e.event)),ma(t,n)};function Oa(t,e){const n=pa.mirror.getId(t),r=n&&pa.mirror.getNode(n),i=r&&pa.mirror.getMeta(r),o=i&&function(t){return t.type===xa.Element}(i)?i:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((t=>t.type===xa.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:Ca(o.attributes)}}:{}}}function Ma(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:s}=t;if(!s||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(s)||!o)return null;const a=e||r||i,c=1===o.length;if(!a&&c)return null;const u=(0,ct.Rt)(s,{maxStringLength:200})||"",l=Oa(s,u);return Ea({category:"ui.keyDown",message:u,data:{...l.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}(e);n&&ma(t,n)}const Aa={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=t;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${e}.${n}`,start:Na(o),end:Na(i),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:i}=t,o=Na(i);return{type:n,name:r,start:o,end:o+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=t;if(0===i)return null;return{type:`${e}.${m}`,start:Na(h),end:Na(o),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function Da(t){return Aa[t.entryType]?Aa[t.entryType](t):null}function Na(t){return((Ve.Z1||io.performance.timeOrigin)+t)/1e3}function Pa(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(jr(t,n))})),r.push(Lr((({metric:e})=>{t.replayPerformanceEntries.push(function(t){const e=t.entries,n=e[e.length-1],r=n?n.element:void 0,i=t.value,o=Na(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:i,size:i,nodeId:r?pa.mirror.getId(r):void 0}}}(e))}))),()=>{r.forEach((t=>t()))}}const La="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ja(t,e){La&&(d.kg.info(t),e&&Fa(t))}function $a(t,e){La&&(d.kg.info(t),e&&setTimeout((()=>{Fa(t)}),0))}function Fa(t){(0,a.n_)({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}class Ua extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Ba{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>uo)throw new Ua;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?ha(t):null}}class Ha{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){ja("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:e})=>{const s=e;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",o),!s.success)return La&&d.kg.error("[Replay]",s.response),void i(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class za{constructor(t){this._worker=new Ha(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=ha(t.timestamp);(!this._earliestTimestamp||euo?Promise.reject(new Ua):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(t=>{La&&d.kg.warn('[Replay] Sending "clear" message to worker failed',t)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Wa{constructor(t){this._fallback=new Ba,this._compression=new za(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void ja("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e}=this._fallback,n=[];for(const i of t)n.push(this._compression.addEvent(i));this._compression.hasCheckout=e,this._used=this._compression;try{await Promise.all(n)}catch(r){La&&d.kg.warn("[Replay] Failed to add events when switching buffers.",r)}}}function qa({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=function(t){try{const e=t||function(){if("undefined"===typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const t=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(t)}();return""}();if(!e)return;ja("[Replay] Using compression worker"+(t?` from ${t}`:""));const n=new Worker(e);return new Wa(n)}catch(e){ja("[Replay] Failed to create compression worker")}}(e);if(t)return t}return ja("[Replay] Using simple buffer"),new Ba}function Xa(){try{return"sessionStorage"in io&&!!io.sessionStorage}catch(t){return!1}}function Ja(t){!function(){if(!Xa())return;try{io.sessionStorage.removeItem(oo)}catch(t){}}(),t.session=void 0}function Ga(t){return void 0!==t&&Math.random()t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(ja(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1))}function oc(t){return!t.type}function sc(t){return"transaction"===t.type}function ac(t){return"feedback"===t.type}function cc(t){const e=function(){const t=(0,a.s3)();if(!t)return!1;const e=t.getTransport();if(!e)return!1;return e.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!t.isEnabled()||!oc(n)&&!sc(n))return;const i=r&&r.statusCode;e&&(!i||i<200||i>=300)||(sc(n)?function(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}(t,n):function(t,e){const n=t.getContext();e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id);if("buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();if("function"===typeof r&&!r(e))return;setTimeout((()=>{t.sendBufferedReplayOrFlush()}))}(t,n))}}function uc(t){return e=>{t.isEnabled()&&oc(e)&&function(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0].value;if("string"!==typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){ma(t,Ea({category:"replay.hydrate-error"}))}}(t,e)}}function lc(t,e=!1){const n=e?cc(t):void 0;return Object.assign(((e,r)=>{if(!t.isEnabled())return e;if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!oc(e)&&!sc(e)&&!ac(e))return e;if(!t.checkAndHandleExpiredSession())return e;if(ac(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),function(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:Ss.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}(t,e),e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&!(!e.originalException||!e.originalException.__rrweb__)}(e,r)&&!t.getOptions()._experiments.captureExceptions)return La&&d.kg.log("[Replay] Ignoring error from rrweb internals",e),null;const i=function(t,e){return"buffer"===t.recordingMode&&e.message!==so&&!(!e.exception||e.type)&&Ga(t.getOptions().errorSampleRate)}(t,e);return(i||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),n&&n(e,{statusCode:200}),e}),{id:"Replay"})}function dc(t,e){return e.map((({type:e,start:n,end:r,name:i,data:o})=>{const s=t.throttledAddEvent({type:Ss.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"===typeof s?Promise.resolve(null):s}))}function pc(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(dc(t,[n]),!1))))}}function hc(t,e){t.isEnabled()&&null!==e&&(function(t,e){return(!La||!t.getOptions()._experiments.traceInternals)&&to(e,(0,a.s3)())}(t,e.name)||t.addUpdate((()=>(dc(t,[e]),!0))))}function fc(t,e){if(t)try{if("string"===typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=kc(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(n){}}function mc(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function gc(t){try{if("string"===typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[kc(t)];if(!t)return[void 0]}catch(e){return La&&d.kg.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return La&&d.kg.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function yc(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function _c(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:i,data:(0,u.Jr)({method:o,statusCode:s,request:a,response:c})}}function vc(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function bc(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:i,warnings:o}=function(t){if(!t||"string"!==typeof t)return{body:t};const e=t.length>ao,n=function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t);if(e){const e=t.slice(0,ao);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch(r){}return{body:t}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function Sc(t,e){return Object.keys(t).reduce(((n,r)=>{const i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=t[r]),n}),{})}function kc(t){return new URLSearchParams(t).toString()}function wc(t,e){const n=function(t,e=io.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(io.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;if(!t.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(t);return(0,E.U0)(n,e)}async function Tc(t,e,n){try{const r=await async function(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=e,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,p=wc(s,n.networkDetailAllowUrls)&&!wc(s,n.networkDetailDenyUrls),h=p?function({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const i=n?function(t,e){if(1===t.length&&"string"!==typeof t[0])return Ic(t[0],e);if(2===t.length)return Ic(t[1],e);return{}}(n,e):{};if(!t)return bc(i,r,void 0);const o=Ec(n),[s,a]=gc(o),c=bc(i,r,s);if(a)return yc(c,a);return c}(n,e.input,u):vc(u),f=await async function(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:r},i,o){if(!t&&void 0!==o)return vc(o);const s=i?xc(i.headers,r):{};if(!i||!e&&void 0!==o)return bc(s,o,void 0);const[a,c]=await async function(t){const e=function(t){try{return t.clone()}catch(e){La&&d.kg.warn("[Replay] Failed to clone response body",e)}}(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{const t=await function(t){return new Promise(((e,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(t){return await t.text()})(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}(e);return[t]}catch(n){return La&&d.kg.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}(i),u=function(t,{networkCaptureBodies:e,textEncoder:n,responseBodySize:r,captureDetails:i,headers:o}){try{const s=t&&t.length&&void 0===r?fc(t,n):r;return i?bc(o,s,e?t:void 0):vc(s)}catch(s){return La&&d.kg.warn("[Replay] Failed to serialize response body",s),bc(o,r,void 0)}}(a,{networkCaptureBodies:e,textEncoder:n,responseBodySize:o,captureDetails:t,headers:s});if(c)return yc(u,c);return u}(p,n,e.response,l);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:c,request:h,response:f}}(t,e,n),i=_c("resource.fetch",r);hc(n.replay,i)}catch(r){La&&d.kg.error("[Replay] Failed to capture fetch breadcrumb",r)}}function Ec(t=[]){if(2===t.length&&"object"===typeof t[1])return t[1].body}function xc(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function Ic(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?xc(n,e):Array.isArray(n)?{}:Sc(n,e):{}}async function Cc(t,e,n){try{const r=function(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:p,response_body_size:h}=t.data;if(!c)return null;if(!a||!wc(c,n.networkDetailAllowUrls)||wc(c,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:vc(p),response:vc(h)}}const f=a.__sentry_xhr_v3__,m=f?Sc(f.request_headers,n.networkRequestHeaders):{},g=Sc(function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return t[n.toLowerCase()]=r,t}),{})}(a),n.networkResponseHeaders),[y,_]=n.networkCaptureBodies?gc(s):[void 0],[v,b]=n.networkCaptureBodies?function(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return function(t,e){try{if("string"===typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"===typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return La&&d.kg.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return La&&d.kg.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}(t.response,t.responseType)}catch(n){e.push(n)}return La&&d.kg.warn("[Replay] Failed to get xhr response body",...e),[void 0]}(a):[void 0],S=bc(m,p,y),k=bc(g,h,v);return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:_?yc(S,_):S,response:b?yc(k,b):k}}(t,e,n),i=_c("resource.xhr",r);hc(n.replay,i)}catch(r){La&&d.kg.error("[Replay] Failed to capture xhr breadcrumb",r)}}function Rc(t,e,n){const{xhr:r,input:i}=e;if(!r)return;const o=fc(i,n.textEncoder),s=r.getResponseHeader("content-length")?mc(r.getResponseHeader("content-length")):function(t,e,n){try{return fc("json"===e&&t&&"object"===typeof t?JSON.stringify(t):t,n)}catch(r){return}}(r.response,r.responseType,n.textEncoder);void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}function Oc(t){const e=(0,a.s3)();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:a}=t.getOptions(),c={replay:t,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:a};e&&e.on?e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(!e.data)return;try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(Rc(e,n,t),Cc(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(!function(t,e,n){const{input:r,response:i}=e,o=fc(r?Ec(r):void 0,n.textEncoder),s=i?mc(i.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}(e,n,t),Tc(e,n,t))}catch(r){La&&d.kg.warn("Error when enriching network breadcrumb")}}(c,t,e))):(Gt(function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,fetchData:r,response:i}=t;if(!n)return null;const{method:o,url:s}=r;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:s,data:{method:o,statusCode:i?i.status:void 0}}}(e);hc(t,n)}}(t)),zt(function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,xhr:r}=t,i=r.__sentry_xhr_v3__;if(!e||!n||!i)return null;const{method:o,url:s,status_code:a}=i;return void 0===s?null:{type:"resource.xhr",name:s,start:e/1e3,end:n/1e3,data:{method:o,statusCode:a}}}(e);hc(t,n)}}(t)))}catch(n){}}let Mc=null;const Ac=t=>e=>{if(!t.isEnabled())return;const n=function(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();if(Mc===e||!e)return null;if(Mc=e,!function(t){return!!t.category}(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Ea(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"===typeof t)return t.length>co?(n=!0,`${t.slice(0,co)}\u2026`):t;if("object"===typeof t)try{const e=(0,lt.Fv)(t,7);return JSON.stringify(e).length>co?(n=!0,`${JSON.stringify(e,null,2).slice(0,co)}\u2026`):e}catch(e){}return t}));return Ea({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return Ea(e)}(e);n&&ma(t,n)};function Dc(t){const e=(0,a.nZ)(),n=(0,a.s3)();e.addScopeListener(Ac(t)),Ft(Ra(t)),ee(pc(t)),Oc(t);const r=lc(t,!Nc(n));n&&n.addEventProcessor?n.addEventProcessor(r):function(t){const e=(0,a.s3)();e&&e.addEventProcessor&&e.addEventProcessor(t)}(r),Nc(n)&&(n.on("beforeSendEvent",uc(t)),n.on("afterSendEvent",cc(t)),n.on("createDsc",(e=>{const n=t.getSessionId();if(n&&t.isEnabled()&&"session"===t.recordingMode){t.checkAndHandleExpiredSession()&&(e.replay_id=n)}})),n.on("startTransaction",(e=>{t.lastTransaction=e})),n.on("finishTransaction",(e=>{t.lastTransaction=e})),n.on("beforeSendFeedback",((e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)})))}function Nc(t){return!(!t||!t.on)}function Pc(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Lc(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(La&&d.kg.warn("[Replay] Received replay event after session expired."));const i=r||!e;e=!0,t.clickDetector&&Ta(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&i&&t.setInitialState(),!nc(t,n,i))return!0;if(!i)return!1;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return;nc(t,function(t){const e=t.getOptions();return{type:Ss.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,i),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(ja(`[Replay] Updating session start time to earliest event in buffer to ${new Date(e)}`,t.getOptions()._experiments.traceInternals),t.session.started=e,t.getOptions().stickySession&&Za(t.session))}return"session"===t.recordingMode&&t.flush(),!0}))}}async function jc({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=function({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"===typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:l,initialTimestamp:d}=r,p=(0,a.s3)(),h=(0,a.nZ)(),m=p&&p.getTransport(),g=p&&p.getDsn();if(!p||!m||!g||!o.sampled)return;const y={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:u,trace_ids:l,urls:c,replay_id:e,segment_id:n,replay_type:o.sampled},_=await async function({client:t,scope:e,replayId:n,event:r}){const i={event_id:n,integrations:"object"!==typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit&&t.emit("preprocessEvent",r,i);const o=await(0,Je.R)(t.getOptions(),r,i,e,t,(0,f.aF)());if(!o)return null;o.platform=o.platform||"javascript";const s=t.getSdkMetadata&&t.getSdkMetadata(),{name:a,version:c}=s&&s.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},o}({scope:h,client:p,replayId:e,event:y});if(!_)return p.recordDroppedEvent("event_processor","replay",y),void ja("An event processor returned `null`, will not send event.");delete _.sdkProcessingMetadata;const v=function(t,e,n,r){return Me(Ue(t,Fe(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"===typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(_,s,g,p.getOptions().tunnel);let b;try{b=await m.send(v)}catch(k){const t=new Error(so);try{t.cause=k}catch(w){}throw t}if(!b)return b;if("number"===typeof b.statusCode&&(b.statusCode<200||b.statusCode>=300))throw new $c(b.statusCode);const S=hn({},b);if(pn(S,"replay"))throw new Fc(S);return b}class $c extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Fc extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Uc(t,e={count:0,interval:5e3}){const{recordingData:n,options:r}=t;if(n.length)try{return await jc(t),!0}catch(i){if(i instanceof $c||i instanceof Fc)throw i;if((0,a.v)("Replays",{_retryCount:e.count}),La&&r._experiments&&r._experiments.captureExceptions&&(0,a.Tb)(i),e.count>=3){const t=new Error("Unable to send Replay - max retries exceeded");try{t.cause=i}catch(o){}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await Uc(t,e),n(!0)}catch(i){r(i)}}),e.interval)}))}}const Bc="__THROTTLED";function Hc(t,e,n){const r=new Map;let i=!1;return(...o)=>{const s=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{nt+e),0)>=e){const t=i;return i=!0,t?"__SKIPPED":Bc}i=!1;const a=r.get(s)||0;return r.set(s,a+1),t(...o)}}class zc{constructor({options:t,recordingOptions:e}){zc.prototype.__init.call(this),zc.prototype.__init2.call(this),zc.prototype.__init3.call(this),zc.prototype.__init4.call(this),zc.prototype.__init5.call(this),zc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let r,i,o;const s=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function u(){return i&&clearTimeout(i),i=setTimeout(a,e),s&&void 0===o&&(o=setTimeout(a,s)),r}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==o?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Hc(((t,e)=>function(t,e,n){return ic(t,e)?rc(t,e,n):Promise.resolve(null)}(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new Sa(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options;e<=0&&n<=0||(this._initializeSessionForSampling(t),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",$a(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");$a("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const t=ec({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");$a("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=ec({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=pa({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Lc(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{ja("[Replay] Stopping Replay"+(e?` triggered by ${e}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Ja(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ja("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),ja("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();ja("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Va(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${io.location.pathname}${io.location.hash}${io.location.search}`,e=`${io.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===Bc){const t=Ea({category:"replay.throttled"});this.addUpdate((()=>!nc(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastTransaction||(0,a.nZ)().getTransaction(),e=(t&&(0,Tn.XU)(t).data||{})["sentry.source"];if(t&&e&&["route","custom"].includes(e))return(0,Tn.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=qa({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){La&&d.kg.error("[Replay]",t),La&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,a.Tb)(t)}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=ec({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!tc(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{io.document.addEventListener("visibilitychange",this._handleVisibilityChange),io.addEventListener("blur",this._handleWindowBlur),io.addEventListener("focus",this._handleWindowFocus),io.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Dc(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=Pa(this)}_removeListeners(){try{io.document.removeEventListener("visibilitychange",this._handleVisibilityChange),io.removeEventListener("blur",this._handleWindowBlur),io.removeEventListener("focus",this._handleWindowFocus),io.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===io.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Ea({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Ea({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{Ma(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;Qa(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):ja("[Replay] Document has become active, but session has expired")}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{this.throttledAddEvent({type:Ss.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){const t=(e=this.performanceEntries,e.map(Da).filter(Boolean)).concat(this.replayPerformanceEntries);var e;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(dc(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await Uc({replayId:t,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:e})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=(0,a.s3)();t&&t.recordDroppedEvent("send_error","replay")}}else La&&d.kg.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return void(La&&d.kg.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const e=this.session.started,n=Date.now()-e;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||i)return ja(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&ja("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(s){La&&d.kg.error(s)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Za(this.session)}__init6(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=Ea({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Wc(t,e,n,r){const i=[...t,..."string"===typeof r?r.split(","):[],...e];return"undefined"!==typeof n&&("string"===typeof n&&i.push(`.${n}`),(0,d.Cf)((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),i.join(",")}const qc='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Xc=["content-length","content-type","accept"];let Jc=!1;const Gc=t=>new Yc(t);class Yc{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},sessionSampleRate:c,errorSampleRate:u,maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:_=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:S=[],mask:k=[],maskAttributes:w=["title","placeholder"],unmask:T=[],block:E=[],unblock:x=[],ignore:I=[],maskFn:C,beforeAddRecordingEvent:R,beforeErrorSampling:O,blockClass:M,blockSelector:A,maskInputOptions:D,maskTextClass:N,maskTextSelector:P,ignoreClass:L}={}){this.name=Yc.id;const j=function({mask:t,unmask:e,block:n,unblock:r,ignore:i,blockClass:o,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){const l={maskTextSelector:Wc(t,[".sentry-mask","[data-sentry-mask]"],a,c),unmaskTextSelector:Wc(e,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:Wc(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,s),unblockSelector:Wc(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Wc(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return o instanceof RegExp&&(l.blockClass=o),a instanceof RegExp&&(l.maskTextClass=a),l}({mask:k,unmask:T,block:E,unblock:x,ignore:I,blockClass:M,blockSelector:A,maskTextClass:N,maskTextSelector:P,ignoreClass:L});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{...D||{},password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(t,e,n)=>function({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return r?i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?o:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:w,maskAllText:l,privacyOptions:j,key:t,value:e,el:n}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,lo),stickySession:i,sessionSampleRate:c,errorSampleRate:u,useCompression:o,workerUrl:s,blockAllMedia:p,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:_,networkCaptureBodies:v,networkRequestHeaders:Zc(b),networkResponseHeaders:Zc(S),beforeAddRecordingEvent:R,beforeErrorSampling:O,_experiments:a},"number"===typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"===typeof u&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${qc}`:qc),this._isInitialized&&ro())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Jc}set _isInitialized(t){Jc=t}setupOnce(){ro()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=function(t){const e=(0,a.s3)(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,u.Jr)(t)};if(!n)return(0,d.Cf)((()=>{console.warn("SDK client is not available.")})),r;null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&(0,d.Cf)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"===typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate);"number"===typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate);return r}(this._initialOptions);this._replay=new zc({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const t=(0,a.s3)().getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(t){}}}function Zc(t){return[...Xc,...t.map((t=>t.toLowerCase()))]}Yc.__initStatic();var Kc=n(25582),Vc=n(83454),Qc=window;Qc.__sentryRewritesTunnelPath__=void 0,Qc.SENTRY_RELEASE={id:"7ae58a67f0b06fd75057c4120341f194eb6cb45c"},Qc.__sentryBasePath=void 0,Qc.__rewriteFramesAssetPrefixPath__="",function(t){const e={environment:wn(!0)||"production",defaultIntegrations:Qi(t),...t};!function(t){const{integrations:e}=t;e&&(Array.isArray(e)?t.integrations=Vi(e):t.integrations=t=>Vi(e(t)))}(e),function(t){const e=Ki.__sentryRewritesTunnelPath__;if(e&&t.dsn){const n=Ce(t.dsn);if(!n)return;const r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){const i=r[1],o=r[2];let s=`${e}?o=${i}&p=${n.projectId}`;o&&(s+=`&r=${o}`),t.tunnel=s,Mi&&d.kg.info(`Tunneling events to "${s}"`)}else Mi&&d.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(e),s(e,"nextjs",["nextjs","react"]),function(t){const e={...t};s(e,"react"),Sn(e)}(e);const n=(0,a.nZ)();n.setTag("runtime","browser");const r=t=>"transaction"===t.type&&"/404"===t.transaction?null:t;r.id="NextClient404Filter",n.addEventProcessor(r)}({dsn:Vc.env.SENTRY_DSN||Vc.env.NEXT_PUBLIC_SENTRY_DSN||"https://e3b9b0cbfce94dc0b921fd90eb175bb0@o157879.ingest.sentry.io/6275247",tracesSampleRate:.01,environment:"production-eu",replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,integrations:[Ui({enableInp:!0,interactionsSampleRate:.5}),Gc({maskAllText:!0,blockAllMedia:!1,beforeErrorSampling:function(t){return console.log("MVF Info - the error: ",t,"and its message: ",t.message),!0}})]}),window.__private__&&"object"===typeof window.__private__&&!Array.isArray(window.__private__)||(window.__private__={}),window.__private__.visitorId=(0,Kc.DO)(),a.YA("chameleon_visitor_id",window.__private__.visitorId)},92581:function(t,e,n){"use strict";n.r(e);var r=n(26042),i=n(85893),o=n(9008),s=n.n(o);e.default=function(t){var e=t.Component,n=t.pageProps;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s(),{children:[(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"}),(0,i.jsx)("meta",{name:"description",content:"Chameleon Form"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"true"})]}),(0,i.jsx)(e,(0,r.Z)({},n))]})}},48398:function(t,e,n){"use strict";n.d(e,{C1:function(){return l},Jc:function(){return p},Ke:function(){return f},Y$:function(){return g},pE:function(){return h},qp:function(){return m},vK:function(){return d}});var r=n(14924),i=n(26042),o=n(69396),s=n(29815),a=(0,n(77236).oM)({name:"NAVIGATION_CONTROLS",initialState:{},reducers:{setPendingMoveForwards:function(t,e){var n=e.payload.isAwaitingAsyncRequest;return(0,o.Z)((0,i.Z)({},t),{pendingMoveForwards:n})},setPendingMoveBackwards:function(t,e){var n=e.payload.isAwaitingAsyncRequest;return(0,o.Z)((0,i.Z)({},t),{pendingMoveBackwards:n})},setShouldNavigateForward:function(t,e){return(0,o.Z)((0,i.Z)({},t),{shouldNavigateForward:e.payload.shouldNavigateForward})},setShouldNavigateBackward:function(t,e){return(0,o.Z)((0,i.Z)({},t),{shouldNavigateBackward:e.payload.shouldNavigateBackward})},setBlockedDestinationPage:function(t,e){return(0,o.Z)((0,i.Z)({},t),{blockedDestinationPage:e.payload.pageNumber})},setNavigationBlockOnPage:function(t,e){var n=e.payload,a=n.pageNumber,c=n.blockName,u=n.isPreventingNavigation,l=t.pagesWithNavigationBlocks[a]||[],d=l.indexOf(c);return(0,o.Z)((0,i.Z)({},t),{pagesWithNavigationBlocks:(0,o.Z)((0,i.Z)({},t.pagesWithNavigationBlocks),(0,r.Z)({},a,u?(0,s.Z)(l).concat([c]):(0,s.Z)(l.slice(0,d)).concat((0,s.Z)(l.slice(d+1,l.length)))))})},setAttemptToNavigate:function(t,e){var n=e.payload.attemptToNavigate;return(0,o.Z)((0,i.Z)({},t),{attemptToNavigate:n})}}}),c=a.actions,u=a.reducer,l=c.setPendingMoveBackwards,d=c.setPendingMoveForwards,p=c.setShouldNavigateForward,h=c.setShouldNavigateBackward,f=c.setBlockedDestinationPage,m=c.setNavigationBlockOnPage,g=c.setAttemptToNavigate;e.ZP=u},25582:function(t,e,n){"use strict";n.d(e,{DO:function(){return o},Q8:function(){return c},Ud:function(){return a},Wu:function(){return l},pt:function(){return d},tI:function(){return s},w6:function(){return u},zJ:function(){return p}});var r=n(26042),i=n(48398),o=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},s=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},a=function(t){var e,n,o,s;if(window){window.__private__||(window.__private__={dynamicWidgetHeightData:{isDebugLoggingEnabled:!1,blockNavigation:!1,pendingNavigationInstruction:void 0,timeStampOfBlockNavigationUpdate:void 0,headerRef:{},inputAreaRef:{},footerRef:{},thankYouPageContentRef:{},newsletterSignupContainerRef:{},isCurrentPageTheNewsLetterSignupPage:!1,isLegalStatementMountingOrUnmounting:!1,requiredInputAreaHeight:"",shouldResizeInputArea:!1,shouldPostponeWidgetResize:!1,isComplexWidgetResizeInProgress:!1,hasDynamicHeightDomInitialisationStarted:!1,hasTheUserNavigatedAtLeastOnce:!1,isThereAStaticLoaderOnTheCurrentPage:!1,resizeObservers:[],widgetHeightOverrides:{},failsafeAlgorithmData:{intervalId:void 0,iterationSkipCounter:5,isRequiredWidgetHeightReExaminationPending:!1,timeStampOfLastUserInteraction:void 0,previousTimeSinceLastUserInteraction:void 0,totalIterationsToSkip:5,minimumIterationsToSkip:5,maximumIterationsToSkip:200,timeStampOfLastWidgetHeightReExamination:void 0}}});var c=null===(e=window.__private__)||void 0===e||null===(n=e.dynamicWidgetHeightData)||void 0===n?void 0:n.blockNavigation,u=null===t||void 0===t?void 0:t.blockNavigation,l=!0===c&&!1===u,d=null===(o=window.__private__.dynamicWidgetHeightData)||void 0===o?void 0:o.isComplexWidgetResizeInProgress,p=!1===(null===t||void 0===t?void 0:t.isComplexWidgetResizeInProgress),h=!0===d&&!0===p,f=null===(s=window.__private__.dynamicWidgetHeightData)||void 0===s?void 0:s.pendingNavigationInstruction;(l&&!d||h&&f)&&function(){var t,e=(null===window||void 0===window||null===(t=window.__private__)||void 0===t?void 0:t.dynamicWidgetHeightData)||{},n=e.pendingNavigationInstruction,r=e.isDebugLoggingEnabled,o=e.isThereAStaticLoaderOnTheCurrentPage;switch(n){case"forward":r&&console.log("DH: Resuming forward navigation"),window.__private__.forwardNavTimeoutId=setTimeout((function(){a({pendingNavigationInstruction:void 0}),window.__private__.dispatchFunctionRef((0,i.vK)({isAwaitingAsyncRequest:!1})),o||window.__private__.dispatchFunctionRef((0,i.Jc)({shouldNavigateForward:!0})),clearTimeout(window.__private__.forwardNavTimeoutId)}),0);break;case"backward":r&&console.log("DH: Resuming backward navigation"),window.__private__.backwardNavTimeoutId=setTimeout((function(){a({pendingNavigationInstruction:void 0}),window.__private__.dispatchFunctionRef((0,i.C1)({isAwaitingAsyncRequest:!1})),o||window.__private__.dispatchFunctionRef((0,i.pE)({shouldNavigateBackward:!0})),clearTimeout(window.__private__.backwardNavTimeoutId)}),0)}}(),window.__private__.dynamicWidgetHeightData=(0,r.Z)({},window.__private__.dynamicWidgetHeightData,t)}},c=function(t){var e=t.functionName,n=t.module;return n?1===Object.keys(n).length?!(!n[e]||"function"!==typeof n[e])||(console.warn("Lazy Loading failure - Function not found - Ensure that you provide a functionName argument matching the function name inside its exporting module"),!1):(console.warn("Lazy Loading failure - Misconfigured module - Ensure that you provide a path to a module exporting a function that is actually lazy loadable by ensuring that the provided module contains no more than a single function export"),!1):(console.warn("Lazy Loading failure - Module not found - Ensure that you moved the function into a module under `src/Helpers/lazyLoadable/` and that is gets exported from a module that is named identically to the functionName you have provided"),!1)},u=function(t,e){return Array.from({length:e-t+1},(function(e,n){return t+n}))},l=function(t,e){for(var n=e,r=0;r1)for(var n=1;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n