PageSourceSearch

https://static.chutcha.net/_next/static/chunks/pages/_app-a85110dd9c321dc5.js

js chutcha.net collected 2026-09-24 13:22:29 UTC 239,895 bytes, 5 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7116b2b8-687b-4adf-9b4c-14bef65bc1b7",e._sentryDebugIdIdentifier="sentry-dbid-7116b2b8-687b-4adf-9b4c-14bef65bc1b7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{3454:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(7663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(9645)}])},1242:function(e,t,n){"use strict";n.d(t,{D7:function(){return y},EP:function(){return m},Eh:function(){return g},JM:function(){return l},M:function(){return h},QO:function(){return o},RY:function(){return f},To:function(){return d},Vc:function(){return u},hH:function(){return c},j5:function(){return i},lP:function(){return a},nx:function(){return s}});var r=n(3454);let i="https://wv.chutcha.net",s="https://img.chutcha.kr",o="https://static.chutcha.net",a="G-KPXN4E1RT5",l="G-YHL5GL3XLH",c="G-G9LZDD6J3D",u="production",d="https://www.chutcha.net",p="600만",h="".concat(p,"이 선택한 중고차 서비스 - 첫차"),f="".concat(p," 이용자가 선택한 중고차 필수 서비스 첫차! | 중고차, 중고차구매, 중고차시세, 중고차검색, 중고차할부, 수입중고차, 내차팔기"),m="중고차, 중고차 시세, 중고차 가격, 중고차 매매, 중고차 허위매물, 중고차 사고이력조회, 중고 자동차, 수입 중고차, 500만원대 중고차, 신호등 검색, 중고차 이력조회, 내차팔기, 인증딜러",g="".concat(s,"/files/website/chutcha_web/common/og_chutcha.jpg"),y="중고차는 첫차";r.env.SENTRY_DSN},9066:function(e,t,n){"use strict";let r,i,s,o,a,l,c,u,d,p,h,f,m,g,y,_,v,b,S;let E="8.39.0";function w(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:E})),version:E}),e._metadata=i}let k=globalThis;function x(e,t,n){let r=n||k,i=r.__SENTRY__=r.__SENTRY__||{},s=i[E]=i[E]||{};return s[e]||(s[e]=t())}let T="production";function I(){return C(k),k}function C(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||E,t[E]=t[E]||{}}let A=Object.prototype.toString;function M(e){switch(A.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return U(e,Error)}}function R(e,t){return A.call(e)===`[object ${t}]`}function O(e){return R(e,"ErrorEvent")}function D(e){return R(e,"DOMError")}function N(e){return R(e,"String")}function L(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function P(e){return null===e||L(e)||"object"!=typeof e&&"function"!=typeof e}function j(e){return R(e,"Object")}function $(e){return"undefined"!=typeof Event&&U(e,Event)}function B(e){return!!(e&&e.then&&"function"==typeof e.then)}function U(e,t){try{return e instanceof t}catch(e){return!1}}function F(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function z(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],s=0,o=0,a=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&s++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(k.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let r=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(r&&r.length)r.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&N(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,a),"html"!==n&&(!(s>1)||!(o+3*i.length+n.length>=l)));)i.push(n),o+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function W(){try{return k.document.location.href}catch(e){return""}}function H(e){if(!k.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}let q=["debug","info","warn","error","log","assert","trace"],V={};function J(e){if(!("console"in k))return e();let t=k.console,n={},r=Object.keys(V);
1r.forEach(e=>{let r=V[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let Y=x("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return q.forEach(e=>{t[e]=()=>void 0}),t});function K(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function G(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{F(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function X(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!N(e)&&(R(t,"RegExp")?t.test(e):!!N(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function Q(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&ee(i,r),e[t]=i}function Z(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(e){}}function ee(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,Z(e,"__sentry_original__",t)}catch(e){}}function et(e){return e.__sentry_original__}function en(e){if(M(e))return{message:e.message,name:e.name,stack:e.stack,...ei(e)};if(!$(e))return e;{let t={type:e.type,target:er(e.target),currentTarget:er(e.currentTarget),...ei(e)};return"undefined"!=typeof CustomEvent&&U(e,CustomEvent)&&(t.detail=e.detail),t}}function er(e){try{return"undefined"!=typeof Element&&U(e,Element)?z(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function ei(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function es(e){return function e(t,n){if(function(e){if(!j(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}function eo(){let e=k.crypto||k.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function ea(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function el(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function ec(e,t){let n=ea(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function eu(e){if(e&&e.__sentry_captured__)return!0;try{Z(e,"__sentry_captured__",!0)}catch(e){}return!1}function ed(e){return Array.isArray(e)?e:[e]}function ep(){return{traceId:eo(),spanId:eo().substring(16)}}function eh(){return Date.now()/1e3}let ef=function(){let{performance:e}=k;if(!e||!e.now)return eh;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),em=(()=>{let{performance:e}=k;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+t-n):36e5;return r<36e5||s<36e5?r<=s?e.timeOrigin:i:n})();function eg(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ef(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:eo()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}let ey="_sentrySpan";function e_(e,t){t?Z(e,ey,t):delete e[ey]}class ev{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ep()}clone(){let e=new ev;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e_(e,this[ey]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&eg(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,r]=t instanceof eb?[t.getScopeData(),t.getRequestSession()]:j(t)?[e,e.requestSession]:[],{tags:i,extra:s,user:o,contexts:a,level:l,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,e_(this,void 0),this._attachments=[],this._propagationContext=ep(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:eh(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[ey]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:eo();
1if(!this._client)return Y.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:eo();if(!this._client)return Y.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:eo();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):Y.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let eb=ev;class eS{constructor(e,t){let n,r;n=e||new eb,r=t||new eb,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return B(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function eE(){let e=C(I());return e.stack=e.stack||new eS(x("defaultCurrentScope",()=>new eb),x("defaultIsolationScope",()=>new eb))}function ew(e){return eE().withScope(e)}function ek(e,t){let n=eE();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function ex(e){return eE().withScope(()=>e(eE().getIsolationScope()))}function eT(e){let t=C(e);return t.acs?t.acs:{withIsolationScope:ex,withScope:ew,withSetScope:ek,withSetIsolationScope:(e,t)=>ex(t),getCurrentScope:()=>eE().getScope(),getIsolationScope:()=>eE().getIsolationScope()}}function eI(){return eT(I()).getCurrentScope()}function eC(){return eT(I()).getIsolationScope()}function eA(...e){let t=eT(I());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function eM(){return eI().getClient()}let eR=new WeakMap,eO=/\(error: (.*)\)/,eD=/captureMessage|captureException/;function eN(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],s=e.split("\n");for(let e=n;e<s.length;e++){let n=s[e];if(n.length>1024)continue;let o=eO.test(n)?n.replace(eO,"$1"):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=50+r)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(eL(t).function||"")&&t.pop(),t.reverse(),eD.test(eL(t).function||"")&&(t.pop(),eD.test(eL(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||eL(t).filename,function:e.function||"?"}))}(i.slice(r))}}function eL(e){return e[e.length-1]||{}}let eP="<anonymous>";function ej(e){try{if(!e||"function"!=typeof e)return eP;return e.name||eP}catch(e){return eP}}function e$(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}function eB(e,t=100,n=Infinity){try{return function e(t,n,r=Infinity,i=Infinity,s=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[o,a]=s;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(F(t))return"[VueViewModel]";if(j(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${ej(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!l.startsWith("[object "))return l;if(n.__sentry_skip_normalization__)return n;let c="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===c)return l.replace("object ","");if(o(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,c-1,i,s)}catch(e){}let u=Array.isArray(n)?[]:{},d=0,p=en(n);for(let t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(d>=i){u[t]="[MaxProperties ~]";break}let n=p[t];u[t]=e(t,n,c-1,i,s),d++}return a(n),u}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function eU(e){return new ez(t=>{t(e)})}function eF(e){return new ez((t,n)=>{n(e)})}(n7=re||(re={}
1))[n7.PENDING=0]="PENDING",n7[n7.RESOLVED=1]="RESOLVED",n7[n7.REJECTED=2]="REJECTED";class ez{constructor(e){ez.prototype.__init.call(this),ez.prototype.__init2.call(this),ez.prototype.__init3.call(this),ez.prototype.__init4.call(this),this._state=re.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ez((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new ez((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(re.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(re.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===re.PENDING){if(B(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===re.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===re.RESOLVED&&e[1](this._value),this._state===re.REJECTED&&e[2](this._value),e[0]=!0)})}}}let eW="baggage",eH="sentry-",eq=/^sentry-/;function eV(e){let t=eY(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(eq)&&(e[t.slice(eH.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function eJ(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>8192?e:s},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${eH}${t}`]=n),e),{}))}function eY(e){return e&&(N(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(eK(t)).forEach(([t,n])=>{e[t]=n}),e),{}):eK(e):void 0}function eK(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}let eG="sentry.source",eX="sentry.sample_rate",eQ="sentry.op",eZ="sentry.origin",e0="sentry.idle_span_finish_reason",e1="sentry.measurement_unit",e2="sentry.measurement_value",e3="sentry.exclusive_time";function e5(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=eM(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}let e4=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function e8(e=eo(),t=eo().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function e6(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,r]]of t)(n[e]||(n[e]=[])).push(es(r));return n}function e9(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}function e7(e){let{traceId:t,spanId:n}=e.spanContext();return e8(t,n,tr(e))}function te(e){return"number"==typeof e?tt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tt(e.getTime()):ef()}function tt(e){return e>9999999999?e/1e3:e}function tn(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:r,startTime:i,name:s,endTime:o,parentSpanId:a,status:l}=e;return es({span_id:t,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:te(i),timestamp:te(o)||void 0,status:ti(l),op:r[eQ],origin:r[eZ],_metrics_summary:e6(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function tr(e){let{traceFlags:t}=e.spanContext();return 1===t}function ti(e){return e&&0!==e.code?1===e.code?"ok":e.message||"unknown_error":void 0}let ts="_sentryChildSpans",to="_sentryRootSpan";function ta(e,t){let n=e[to]||e;Z(t,to,n),e[ts]?e[ts].add(t):Z(e,ts,new Set([t]))}function tl(e){let t=new Set;return function e(n){if(!t.has(n)&&tr(n))for(let r of(t.add(n),n[ts]?Array.from(n[ts]):[]))e(r)}(e),Array.from(t)}function tc(e){return e[to]||e}function tu(){let e=eT(I());return e.getActiveSpan?e.getActiveSpan():eI()[ey]}let td="_frozenDsc";function tp(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=es({environment:n.environment||T,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function th(e){let t=eM();if(!t)return{};let n=tp(tn(e).trace_id||"",t),r=tc(e),i=r[td];if(i)return i;let s=r.spanContext().traceState,o=s&&s.get("sentry.dsc"),a=o&&eV(o);if(a)return a;let l=tn(r),c=l.data||{},u=c[eX];null!=u&&(n.sample_rate=`${u}`);let d=c[eG],p=l.description;return"url"!==d&&p&&(n.transaction=p),e5()&&(n.sampled=String(tr(r))),t.emit("createDsc",n,r),n}function tf(e,t){let{extra:n,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:f}=t;tm(e,"extra",n),tm(e,"tags",r),tm(e,"user",i),tm(e,"contexts",s),tm(e,"sdkProcessingMetadata",a),o&&(e.level=o),h&&(e.transactionName=h),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function tm(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}function tg(e,t,n,r,i,s){let{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||eo(),timestamp:t.timestamp||eh()},c=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:T),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=K(e.message,s));let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=K(o.value,s));let a=e.request;a&&a.url&&(a.url=K(a.url,s))})(l,e),c.length>0&&(l.sdk=l.sdk||{},l.sdk.integrations=[...l.sdk.integrations||[],...c]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=function(e){let t;let n=k._sentryDebugIds;if(!n)return{};let r=eR.get(e);return r?t=r:(t=new Map,eR.set(e,t)),Object.keys(n).reduce((r,i)=>{let s;let o=t.get(i);o?s=o:(s=e(i),t.set(i,s));for(let e=s.length-1;e>=0;e--){let t=s[e],o=t&&t.filename;if(t&&o){r[o]=n[i];break}}return r},{})}(t);
1try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}catch(e){}}(l,e.stackParser);let u=function(e,t){if(!t)return e;let n=e?e.clone():new eb;return n.update(t),n}(r,n.captureContext);n.mechanism&&ec(l,n.mechanism);let d=i?i.getEventProcessors():[],p=x("globalScope",()=>new eb).getScopeData();s&&tf(p,s.getScopeData()),u&&tf(p,u.getScopeData());let h=[...n.attachments||[],...p.attachments];return h.length&&(n.attachments=h),function(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=t,l=es(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let c=es(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let u=es(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=es(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),r&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=tn(e);return es({parent_span_id:r,span_id:t,trace_id:n})}(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:th(t),...e.sdkProcessingMetadata};let n=tn(tc(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),e.fingerprint=e.fingerprint?ed(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...s}}(l,p),(function e(t,n,r,i=0){return new ez((s,o)=>{let a=t[i];if(null===n||"function"!=typeof a)s(n);else{let l=a({...n},r);B(l)?l.then(n=>e(t,n,r,i+1).then(s)).then(null,o):e(t,l,r,i+1).then(s).then(null,o)}})})([...d,...p.eventProcessors],l,n).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof o&&o>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:eB(e.data,t,n)}}))},...e.user&&{user:eB(e.user,t,n)},...e.contexts&&{contexts:eB(e.contexts,t,n)},...e.extra&&{extra:eB(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=eB(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:eB(e.data,t,n)}}))),r}(e,o,a):e)}function ty(e,t){return eI().captureEvent(e,t)}function t_(e,t){eC().setContext(e,t)}function tv(e){eC().addEventProcessor(e)}function tb(e){let t=eM(),n=eC(),r=eI(),{release:i,environment:s=T}=t&&t.getOptions()||{},{userAgent:o}=k.navigator||{},a=function(e){let t=ef(),n={sid:eo(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>es({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&eg(n,e),n}({release:i,environment:s,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&"ok"===l.status&&eg(l,{status:"exited"}),tS(),n.setSession(a),r.setSession(a),a}function tS(){let e=eC(),t=eI(),n=t.getSession()||e.getSession();if(n){let e;e={},"ok"===n.status&&(e={status:"exited"}),eg(n,e)}tE(),e.setSession(),t.setSession()}function tE(){let e=eC(),t=eI(),n=eM(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}
1function tw(e=!1){if(e){tS();return}tE()}let tk=[];function tx(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function tT(e,t,n){if(!n[t.name]){if(n[t.name]=t,-1===tk.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),tk.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}}}let tI=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],tC=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>{var i,s;return(i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:tI],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)||(s=i.ignoreErrors,!t.type&&s&&s.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>X(e,s))||!t.type&&t.exception&&t.exception.values&&0!==t.exception.values.length&&!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)||function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&X(n,t)}(t,i.ignoreTransactions)||function(e,t){if(!t||!t.length)return!1;let n=tA(e);return!!n&&X(n,t)}(t,i.denyUrls))||!function(e,t){if(!t||!t.length)return!0;let n=tA(e);return!n||X(n,t)}(t,i.allowUrls)?null:t}});function tA(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(e){return null}}let tM=new WeakMap,tR=()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=et(this),n=tM.has(eM())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){tM.set(e,!0)}}),tO=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&tN(e,t)&&tD(e,t))}(t,n)||function(e,t){let n=tL(t),r=tL(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&tN(e,t)&&tD(e,t))}(t,n)))return null}catch(e){}return e=t}}};function tD(e,t){let n=e$(e),r=e$(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function tN(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function tL(e){return e.exception&&e.exception.values&&e.exception.values[0]}function tP(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let tj={},t$={};function tB(e,t){tj[e]=tj[e]||[],tj[e].push(t)}function tU(e,t){if(!t$[e]){t$[e]=!0;try{t()}catch(e){}}}function tF(e,t){let n=e&&tj[e];if(n)for(let e of n)try{e(t)}catch(e){}}function tz(e){let t="history";tB(t,e),tU(t,tW)}function tW(){if(!function(){let e=k.chrome,t=e&&e.app&&e.app.runtime,n="history"in k&&!!k.history.pushState&&!!k.history.replaceState;return!t&&n}())return;let e=k.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=i,t=String(n);i=t,tF("history",{from:e,to:t})}return e.apply(this,t)}}k.onpopstate=function(...t){let n=k.location.href,r=i;if(i=n,tF("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Q(k.history,"pushState",t),Q(k.history,"replaceState",t)}let tH=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tq(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${o}
1`}function tV(e){let t=tH.exec(e);if(!t){J(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",s="",o="",a=""]=t.slice(1),l="",c=a,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return tJ({host:s,pass:i,path:l,projectId:c,port:o,protocol:n,publicKey:r})}function tJ(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tY(e,t=[]){return[e,t]}function tK(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function tG(e){return k.__SENTRY__&&k.__SENTRY__.encodePolyfill?k.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}let tX={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function tQ(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function tZ(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:tq(r)},...i&&{trace:es({...i})}}}class t0 extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function t1(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}class t2{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn&&(this._dsn=function(e){let t="string"==typeof e?tV(e):tJ(e);if(t)return t}(e.dsn)),this._dsn){var t,n,r,i;let s=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${Object.keys(i={sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}}).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(i[e])}`).join("&")}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:s})}}captureException(e,t,n){let r=eo();if(eu(e))return r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:eo(),...n},s=L(e)?e:String(e),o=P(e)?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(o.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=eo();if(t&&t.originalException&&eu(t.originalException))return r;let i={event_id:r,...t},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,s||n)),i.event_id}captureSession(e){"string"!=typeof e.release||(this.sendSession(e),eg(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
1return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):eU(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];tT(this,e,this._integrations),t||tx(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let s=tQ(n),o=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let a=tZ(e,s,r,t);return delete e.sdkProcessingMetadata,tY(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e){let t="string"==typeof e.data?tG(e.data):e.data;return[es({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=tQ(n);return tY({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:tq(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=`${e}:${t}`;this._outcomes[r]=(this._outcomes[r]||0)+("number"==typeof n?n:1)}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>e):eU({})}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&tT(e,t,n)}),n}(this,e),tx(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&(eg(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ez(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=eC()){let i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),tg(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:r,parentSpanId:i,dsc:s}=t;e.contexts={trace:es({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};let o=s||tp(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,s=t5(e),o=t3(e),a=e.type||"error",l=`before send for type \`${a}\``,c=void 0===i?void 0:t1(i);if(o&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),eF(new t0(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new t0("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(B(e))return e.then(e=>{if(!j(e)&&null!==e)throw new t0(n);return e},e=>{throw new t0(`${t} rejected with ${e}`)});if(!j(e)&&null!==e)throw new t0(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o}=t;if(t3(n)&&i)return i(n,r);if(t5(n)){if(n.spans&&o){let t=[];for(let r of n.spans){let n=o(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(s){if(n.spans){let e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,e),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new t0(`${l} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!s&&i&&this._updateSessionFromEvent(i,r),s){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let o=r.transaction_info;return s&&o&&r.transaction!==e.transaction&&(r.transaction_info={...o,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof t0)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new t0(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
2Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length||!this._dsn)return;let n=tY((e=this._options.tunnel&&tq(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:eh(),discarded_events:t}]]);this.sendEnvelope(n)}}function t3(e){return void 0===e.type}function t5(e){return"transaction"===e.type}function t4(e,t){let n=t6(e,t),r={type:function(e){let t=e&&e.name;return!t&&t7(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t7(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function t8(e,t){return{exception:{values:[t4(e,t)]}}}function t6(e,t){let n=t.stacktrace||t.stack||"",r=t&&t9.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let t9=/Minified React error #\d+;/i;function t7(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ne(e,t,n,r,i){let s;if(O(t)&&t.error)return t8(e,t.error);if(D(t)||R(t,"DOMException")){if("stack"in t)s=t8(e,t);else{let i=t.name||(D(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;el(s=nt(e,o,n,r),o)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return M(t)?t8(e,t):(j(t)||$(t)?ec(s=function(e,t,n,r){let i=eM(),s=i&&i.getOptions().normalizeDepth,o=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:function e(t,n=3,r=102400){let i=eB(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,s)};if(o)return{exception:{values:[t4(e,o)]},extra:a};let l={exception:{values:[{type:$(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(en(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return K(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");
2if(!(r.length>t)){if(e===n.length)return r;return K(r,t)}}return""}(e),r=t?"promise rejection":"exception";if(O(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if($(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:a};if(n){let t=t6(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i),{synthetic:!0}):(el(s=nt(e,t,n,r),`${t}`,void 0),ec(s,{synthetic:!0})),s)}function nt(e,t,n,r){let i={};if(r&&n){let r=t6(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(L(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}let nn=0;function nr(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if(et(e))return e}catch(t){return e}let r=function(){let n=Array.prototype.slice.call(arguments);try{let r=n.map(e=>nr(e,t));return e.apply(this,r)}catch(e){throw nn++,setTimeout(()=>{nn--}),eA(r=>{var i,s;r.addEventProcessor(e=>(t.mechanism&&(el(e,void 0,void 0),ec(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),i=e,eI().captureException(i,void 0)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}ee(r,e),Z(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class ni extends t2{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};w(t,"browser",["browser"],k.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&k.document&&k.document.addEventListener("visibilitychange",()=>{"hidden"===k.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=ne(e,t,n&&n.syntheticException||void 0,r);return ec(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),eU(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=nt(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),eU(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,{metadata:t,tunnel:n,dsn:r}){return tY({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:tq(r)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}function ns(e){tB("dom",e),tU("dom",no)}function no(){if(!k.document)return;let e=tF.bind(null,"dom"),t=na(e,!0);k.document.addEventListener("click",t,!1),k.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=k[t]&&k[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Q(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=na(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch(e){}return t.call(this,n,r,i)}}),Q(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function na(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;Z(n,"_sentryCaptured",!0),r&&!r._sentryId&&Z(r,"_sentryId",eo());let i="keypress"===n.type?"input":n.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch(e){}return!0}(n)&&(e({event:n,name:i,global:t}),o=n.type,a=r?r._sentryId:void 0),clearTimeout(s),s=k.setTimeout(()=>{a=void 0,o=void 0},1e3)}}let nl="__sentry_xhr_v3__";function nc(e){tB("xhr",e),tU("xhr",nu)}
2function nu(){if(!k.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=1e3*ef(),i=N(n[0])?n[0].toUpperCase():void 0,s=function(e){if(N(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!i||!s)return e.apply(t,n);t[nl]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[nl];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}tF("xhr",{endTimestamp:1e3*ef(),startTimestamp:r,xhr:t})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(o(),e.apply(t,n))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,s=t[nl];return s&&N(r)&&N(i)&&(s.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[nl];return r&&(void 0!==n[0]&&(r.body=n[0]),tF("xhr",{startTimestamp:1e3*ef(),xhr:t})),e.apply(t,n)}})}function nd(e,t){let n=eM(),r=eC();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=n.getOptions();if(s<=0)return;let o={timestamp:eh(),...e},a=i?J(()=>i(o,t)):o;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}function np(){"console"in k&&q.forEach(function(e){e in k.console&&Q(k.console,e,function(t){return V[e]=t,function(...t){tF("console",{args:t,level:e});let n=V[e];n&&n.apply(k.console,t)}})})}function nh(e,t){let n="fetch";tB(n,e),tU(n,()=>nf(void 0,t))}function nf(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in k))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(tP(k.fetch))return!0;let e=!1,t=k.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");
2n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=tP(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){}return e}())&&Q(k,"fetch",function(t){return function(...n){let{method:r,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:n_(t),method:ny(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:n_(t),method:ny(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:r,url:i},startTimestamp:1e3*ef()};e||tF("fetch",{...s});let o=Error().stack;return t.apply(k,n).then(async t=>(e?e(t):tF("fetch",{...s,endTimestamp:1e3*ef(),response:t}),t),e=>{throw tF("fetch",{...s,endTimestamp:1e3*ef(),error:e}),M(e)&&void 0===e.stack&&(e.stack=o,Z(e,"framesToPop",1)),e})}})}async function nm(e,t){if(e&&e.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),s=!1)}catch(e){s=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function ng(e){let t;try{t=e.clone()}catch(e){return}nm(t,()=>{tF("fetch-body-resolved",{endTimestamp:1e3*ef(),response:e})})}function ny(e,t){return!!e&&"object"==typeof e&&!!e[t]}function n_(e){return"string"==typeof e?e:e?ny(e,"url")?e.url:e.toString?e.toString():"":""}let nv=["fatal","error","warning","log","info","debug"];function nb(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function nS(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}let nE=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";tB(t,e),tU(t,np)}(function(t){var n;if(eM()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":nv.includes(n)?n:"log",message:G(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${G(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}nd(r,{input:t.args,level:t.level})}),t.dom&&ns((n=t.dom,function(t){let r,i;if(eM()!==e)return;let s="object"==typeof n?n.serializeAttribute:void 0,o="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;o&&o>1024&&(o=1024),"string"==typeof s&&(s=[s]);try{let e=t.event,n=e&&e.target?e.target:e;r=z(n,{keyAttrs:s,maxStringLength:o}),i=H(n)}catch(e){r="<unknown>"}if(0===r.length)return;let a={category:`ui.${t.name}`,message:r};i&&(a.data={"ui.component_name":i}),nd(a,{event:t.event,name:t.name,global:t.global})})),t.xhr&&nc(function(t){if(eM()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[nl];if(!n||!r||!i)return;let{method:s,url:o,status_code:a,body:l}=i,c={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},u=nb(a);nd({category:"xhr",data:{method:s,url:o,status_code:a},type:"http",level:u},c)}),t.fetch&&nh(function(t){if(eM()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)nd({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:r},o=nb(i.status_code);nd({category:"fetch",data:i,type:"http",level:o},s)}}}),t.history&&tz(function(t){if(eM()!==e)return;let n=t.from,r=t.to,i=nS(k.location.href),s=n?nS(n):void 0,o=nS(r);s&&s.path||(s=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),nd({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){eM()===e&&nd({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:function(e){let{message:t,event_id:n}=e;if(t)return t;let r=ea(e);return r?r.type&&r.value?`${r.type}: ${r.value}
2`:r.type||r.value||n||"<unknown>":n||"<unknown>"}(t)},{event:t})})}}},nw=["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"],nk=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&Q(k,"setTimeout",nx),t.setInterval&&Q(k,"setInterval",nx),t.requestAnimationFrame&&Q(k,"requestAnimationFrame",nT),t.XMLHttpRequest&&"XMLHttpRequest"in k&&Q(XMLHttpRequest.prototype,"send",nI);let e=t.eventTarget;e&&(Array.isArray(e)?e:nw).forEach(nC)}}};function nx(e){return function(...t){let n=t[0];return t[0]=nr(n,{mechanism:{data:{function:ej(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function nT(e){return function(t){return e.apply(this,[nr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ej(e)},handled:!1,type:"instrument"}})])}}function nI(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Q(n,e,function(t){let n={mechanism:{data:{function:e,handler:ej(t)},handled:!1,type:"instrument"}},r=et(t);return r&&(n.mechanism.data.handler=ej(r)),nr(t,n)})}),e.apply(this,t)}}function nC(e){let t=k[e]&&k[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Q(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=nr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ej(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,nr(r,{mechanism:{data:{function:"addEventListener",handler:ej(r),target:e},handled:!1,type:"instrument"}}),i])}}),Q(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}let nA=null;function nM(e){let t="error";tB(t,e),tU(t,nR)}function nR(){nA=k.onerror,k.onerror=function(e,t,n,r,i){return tF("error",{column:r,error:i,line:n,msg:e,url:t}),!!nA&&!nA.__SENTRY_LOADER__&&nA.apply(this,arguments)},k.onerror.__SENTRY_INSTRUMENTED__=!0}let nO=null;function nD(e){let t="unhandledrejection";tB(t,e),tU(t,nN)}function nN(){nO=k.onunhandledrejection,k.onunhandledrejection=function(e){return tF("unhandledrejection",e),!nO||!!nO.__SENTRY_LOADER__||nO.apply(this,arguments)},k.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let nL=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50}
2,setup(e){t.onerror&&nM(t=>{let{stackParser:n,attachStacktrace:r}=nP();if(eM()!==e||nn>0)return;let{msg:i,url:s,line:o,column:a,error:l}=t,c=function(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=N(t)&&t.length>0?t:W();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}(ne(n,l||i,void 0,r,!1),s,o,a);c.level="error",ty(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&nD(t=>{let{stackParser:n,attachStacktrace:r}=nP();if(eM()!==e||nn>0)return;let i=function(e){if(P(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),s=P(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ne(n,i,void 0,r,!0);s.level="error",ty(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}};function nP(){let e=eM();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let nj=()=>({name:"HttpContext",preprocessEvent(e){if(!k.navigator&&!k.location&&!k.document)return;let t=e.request&&e.request.url||k.location&&k.location.href,{referrer:n}=k.document||{},{userAgent:r}=k.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:i};e.request=s}});function n$(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function nB(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let nU=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){let s=i.getOptions();!function(e,t,n=250,r,i,s,o){if(!s.exception||!s.exception.values||!o||!U(o.originalException,Error))return;let a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;a&&(s.exception.values=(function e(t,n,r,i,s,o,a,l){if(o.length>=r+1)return o;let c=[...o];if(U(i[s],Error)){n$(a,l);let o=t(n,i[s]),u=c.length;nB(o,s,u,l),c=e(t,n,r,i[s],s,[o,...c],o,u)}return Array.isArray(i.errors)&&i.errors.forEach((i,o)=>{if(U(i,Error)){n$(a,l);let u=t(n,i),d=c.length;nB(u,`errors[${o}]`,d,l),c=e(t,n,r,i,s,[u,...c],u,d)}}),c})(e,t,i,o.originalException,r,s.exception.values,a,0).map(e=>(e.value&&(e.value=K(e.value,n)),e)))}(t4,s.stackParser,s.maxValueLength,n,t,e,r)}}};function nF(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let nz=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nW=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nH=/\((\S*)(?::(\d+))(?::(\d+))\)/,nq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nV=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nJ=eN([30,e=>{let t=nz.exec(e);if(t){let[,e,n,r]=t;return nF(e,"?",+n,+r)}let n=nW.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=nH.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=nY(n[1]||"?",n[2]);return nF(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{let t=nq.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=nV.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=nY(n,e),nF(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),nY=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},nK={};function nG(e){let t=nK[e];if(t)return t;let n=k[e];if(tP(n))return nK[e]=n.bind(k);let r=k.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return n?nK[e]=n.bind(k):n}function nX(...e){return nG("setTimeout")(...e)}
2function nQ(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function nZ(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,n,,,s]=e.split(":",5),o=parseInt(t,10),a=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=r+a):i[e]=r+a;else i.all=r+a}else o?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(o,r):429===t&&(i.all=r+6e4);return i}function n0(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function n1(e,t=nG("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return eF(new t0("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new ez((n,r)=>{let i=t.length;if(!i)return n(!0);let s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{eU(e).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(i){let s=[];if(tK(i,(t,n)=>{let i=tX[n];if(nQ(r,i)){let r=n0(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(t)}),0===s.length)return eU({});let o=tY(i[0],s),a=t=>{tK(o,(n,r)=>{let i=n0(n,r);e.recordDroppedEvent(t,tX[r],i)})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[tG(r),e]:r.push("string"==typeof e?tG(e):e)}for(let e of n){let[t,n]=e;if(i(`
3${JSON.stringify(t)}
4`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(eB(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(o)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode),r=nZ(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof t0)return a("queue_overflow"),eU({});throw e})},flush:e=>n.drain(e)}}(e,function(i){let s=i.body.length;n+=s,r++;let o={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return nK.fetch=void 0,eF("No fetch implementation available");try{return t(e.url,o).then(e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return nK.fetch=void 0,n-=s,r--,eF(e)}})}function n2(e){return[tC(),tR(),nk(),nE(),nL(),nU(),tO(),nj()]}var n3,n5,n4,n8,n6,n9,n7,re,rt,rn,rr=n(7294),ri=n(3454);function rs(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[e1],i=n[e2];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}function ro(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}let ra=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",rl=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&((s=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=s,t.rating=ra(t.value,n),e(t))}},rc=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ru=()=>k.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],rd=()=>{let e=ru();return e&&e.activationStart||0},rp=(e,t)=>{let n=ru(),r="navigate";return n&&(k.document&&k.document.prerendering||rd()>0?r="prerender":k.document&&k.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:rc(),navigationType:r}},rh=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},rf=e=>{let t=t=>{("pagehide"===t.type||k.document&&"hidden"===k.document.visibilityState)&&e(t)};k.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},rm=e=>{let t=!1;return n=>{t||(e(n),t=!0)}},rg=-1,ry=()=>{rg="hidden"!==k.document.visibilityState||k.document.prerendering?1/0:0},r_=e=>{"hidden"===k.document.visibilityState&&rg>-1&&(rg="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",r_,!0),removeEventListener("prerenderingchange",r_,!0))},rv=()=>{addEventListener("visibilitychange",r_,!0),addEventListener("prerenderingchange",r_,!0)}
4,rb=()=>(k.document&&rg<0&&(ry(),rv()),{get firstHiddenTime(){return rg}}),rS=e=>{k.document&&k.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rE=[1800,3e3],rw=(e,t={})=>{rS(()=>{let n;let r=rb(),i=rp("FCP"),s=rh("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-rd(),0),i.entries.push(e),n(!0)))})});s&&(n=rl(e,i,rE,t.reportAllChanges))})},rk=[.1,.25],rx=(e,t={})=>{rw(rm(()=>{let n;let r=rp("CLS",0),i=0,s=[],o=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=s[0],n=s[s.length-1];i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e])}}),i>r.value&&(r.value=i,r.entries=s,n())},a=rh("layout-shift",o);a&&(n=rl(e,r,rk,t.reportAllChanges),rf(()=>{o(a.takeRecords()),n(!0)}),setTimeout(n,0))}))},rT=[100,300],rI=(e,t={})=>{rS(()=>{let n;let r=rb(),i=rp("FID"),s=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},o=e=>{e.forEach(s)},a=rh("first-input",o);n=rl(e,i,rT,t.reportAllChanges),a&&rf(rm(()=>{o(a.takeRecords()),a.disconnect()}))})},rC=0,rA=1/0,rM=0,rR=e=>{e.forEach(e=>{e.interactionId&&(rA=Math.min(rA,e.interactionId),rC=(rM=Math.max(rM,e.interactionId))?(rM-rA)/7+1:0)})},rO=()=>l?rC:performance.interactionCount||0,rD=()=>{"interactionCount"in performance||l||(l=rh("event",rR,{type:"event",buffered:!0,durationThreshold:0}))},rN=[200,500],rL=()=>rO()-0,rP=[],rj={},r$=e=>{let t=rP[rP.length-1],n=rj[e.interactionId];if(n||rP.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};rj[t.id]=t,rP.push(t)}rP.sort((e,t)=>t.latency-e.latency),rP.splice(10).forEach(e=>{delete rj[e.id]})}},rB=()=>{let e=Math.min(rP.length-1,Math.floor(rL()/50));return rP[e]},rU=(e,t={})=>{rS(()=>{let n;rD();let r=rp("INP"),i=e=>{e.forEach(e=>{e.interactionId&&r$(e),"first-input"!==e.entryType||rP.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||r$(e)});let t=rB();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},s=rh("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=rl(e,r,rN,t.reportAllChanges),s&&("PerformanceEventTiming"in k&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),rf(()=>{i(s.takeRecords()),r.value<0&&rL()>0&&(r.value=0,r.entries=[]),n(!0)}))})},rF=[2500,4e3],rz={},rW=(e,t={})=>{rS(()=>{let n;let r=rb(),i=rp("LCP"),s=e=>{let t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-rd(),0),i.entries=[t],n())},o=rh("largest-contentful-paint",s);if(o){n=rl(e,i,rF,t.reportAllChanges);let r=rm(()=>{rz[i.id]||(s(o.takeRecords()),o.disconnect(),rz[i.id]=!0,n(!0))});["keydown","click"].forEach(e=>{k.document&&addEventListener(e,()=>setTimeout(r,0),!0)}),rf(r)}})},rH=[800,1800],rq=e=>{k.document&&k.document.prerendering?rS(()=>rq(e)):k.document&&"complete"!==k.document.readyState?addEventListener("load",()=>rq(e),!0):setTimeout(e,0)},rV=(e,t={})=>{let n=rp("TTFB"),r=rl(e,n,rH,t.reportAllChanges);rq(()=>{let e=ru();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-rd(),0),n.entries=[e],r(!0)}})},rJ={},rY={};function rK(e,t=!1){return r8("cls",e,r1,c,t)}function rG(e,t=!1){return r8("lcp",e,r3,d,t)}function rX(e){return r8("fid",e,r2,u)}function rQ(e){return r8("inp",e,r4,h)}function rZ(e,t){return r6(e,t),rY[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),rh(e,t=>{r0(e,{entries:t})},t)}(e),rY[e]=!0),r9(e,t)}function r0(e,t){let n=rJ[e];if(n&&n.length)for(let e of n)try{e(t)}catch(e){}}function r1(){return rx(e=>{r0("cls",{metric:e}),c=e},{reportAllChanges:!0})}function r2(){return rI(e=>{r0("fid",{metric:e}),u=e})}function r3(){return rW(e=>{r0("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function r5(){return rV(e=>{r0("ttfb",{metric:e}),p=e})}function r4(){return rU(e=>{r0("inp",{metric:e}),h=e})}function r8(e,t,n,r,i=!1){let s;return r6(e,t),rY[e]||(s=n(),rY[e]=!0),r&&t({metric:r}),r9(e,t,i?s:void 0)}function r6(e,t){rJ[e]=rJ[e]||[],rJ[e].push(t)}function r9(e,t,n){return()=>{n&&n();let r=rJ[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}class r7{constructor(e={}){this._traceId=e.traceId||eo(),this._spanId=e.spanId||eo().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
4addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}let ie="_sentryScope",it="_sentryIsolationScope";function ir(e){return{scope:e[ie],isolationScope:e[it]}}class ii{constructor(e={}){this._traceId=e.traceId||eo(),this._spanId=e.spanId||eo().substring(16),this._startTime=e.startTimestamp||ef(),this._attributes={},this.setAttributes({[eZ]:"manual",[eQ]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=te(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eG,"custom"),this}end(e){this._endTime||(this._endTime=te(e),this._onSpanEnded())}getSpanJSON(){return es({data:this._attributes,description:this._name,op:this._attributes[eQ],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ti(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[eZ],_metrics_summary:e6(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[e3],measurements:rs(this._events),is_segment:this._isStandaloneSpan&&tc(this)===this||void 0,segment_id:this._isStandaloneSpan?tc(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){let r=is(t)?t:n||ef(),i=is(t)?{}:t||{},s={name:e,time:te(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=eM();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===tc(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=eM();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}(function(e,t){let n=th(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:tq(r)}},o=t&&t.getOptions().beforeSendSpan,a=o?e=>o(tn(e)):e=>tn(e),l=[];for(let t of e){let e=a(t);e&&l.push([{type:"span"},e])}return tY(s,l)}([this],e)):e&&e.recordDroppedEvent("sample_rate","span");return}let t=this._convertSpanToTransaction();t&&(ir(this).scope||eI()).captureEvent(t)}_convertSpanToTransaction(){if(!io(tn(this)))return;this._name||(this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=ir(this),n=(e||eI()).getClient()||eM();if(!0!==this._sampled){n&&n.recordDroppedEvent("sample_rate","transaction");return}let r=tl(this).filter(e=>e!==this&&!(e instanceof ii&&e.isStandaloneSpan())).map(e=>tn(e)).filter(io),i=this._attributes[eG],s={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:a}=tn(e);return es({parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:a})}(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...es({dynamicSamplingContext:th(this)})},_metrics_summary:e6(this),...i&&{transaction_info:{source:i}}},o=rs(this._events);return o&&Object.keys(o).length&&(s.measurements=o),s}}function is(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function io(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let ia="__SENTRY_SUPPRESS_TRACING__";function il(e){let t=eT(I());if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=te(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>eA(e.scope,t):void 0!==i?e=>ic(i,e):e=>e())(()=>{let t=eI(),i=function(e){let t=e[ey];if(!t)return;let n=eM();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?tc(t):t}(t);return e.onlyIfParent&&!i?new r7:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i;let s;if(!e5())return new r7;let o=eC();if(e&&!n)s=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[ia]&&tr(e),o=s?
4new ii({...n,parentSpanId:r,traceId:i,sampled:s}):new r7({traceId:i});ta(e,o);let a=eM();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}(e,r,t),ta(e,s);else if(e){let n=th(e),{traceId:i,spanId:o}=e.spanContext(),a=tr(e);Z(s=iu({traceId:i,parentSpanId:o,...t},r,a),td,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:a}={...o.getPropagationContext(),...r.getPropagationContext()};s=iu({traceId:e,parentSpanId:i,...t},r,a),n&&Z(s,td,n)}return(i=s)&&(Z(i,it,o),Z(i,ie,r)),s}({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}function ic(e,t){let n=eT(I());return n.withActiveSpan?n.withActiveSpan(e,t):eA(n=>(e_(n,e||void 0),t(n)))}function iu(e,t,n){let r=eM(),i=r&&r.getOptions()||{},{name:s="",attributes:o}=e,[a,l]=t.getScopeData().sdkProcessingMetadata[ia]?[!1]:function(e,t){if(!e5(e))return[!1];let n=t1("function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1);return void 0===n?[!1]:n&&Math.random()<n?[!0,n]:[!1,n]}(i,{name:s,parentSampled:n,attributes:o,transactionContext:{name:s,parentSampled:n}}),c=new ii({...e,attributes:{[eG]:"custom",...e.attributes},sampled:a});return void 0!==l&&c.setAttribute(eX,l),r&&r.emit("spanStart",c),c}function id(e){return"number"==typeof e&&isFinite(e)}function ip(e,t,n,{...r}){let i=tn(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),ic(e,()=>{let e=il({startTime:t,...r});return e&&e.end(n),e})}function ih(e){let t;let n=eM();if(!n)return;let{name:r,transaction:i,attributes:s,startTime:o}=e,{release:a,environment:l}=n.getOptions(),c=n.getIntegrationByName("Replay"),u=c&&c.getReplayId(),d=eI(),p=d.getUser(),h=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch(e){}return il({name:r,attributes:{release:a,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:u||void 0,transaction:i,"user_agent.original":k.navigator&&k.navigator.userAgent,...s},startTime:o,experimental:{standalone:!0}})}function im(){return k&&k.addEventListener&&k.performance}function ig(e){return e/1e3}let iy=0,i_={};function iv(e,t,n,r,i,s){let o=s?t[s]:t[`${n}End`],a=t[`${n}Start`];a&&o&&ip(e,r+ig(a),r+ig(o),{op:`browser.${i||n}`,name:t.name,attributes:{[eZ]:"auto.ui.browser.metrics"}})}function ib(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let iS=[],iE=new Map,iw={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"},ik={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function ix(e,t={}){let n;let r=new Map,i=!1,s="externalFinish",o=!t.disableAutoFinish,a=[],{idleTimeout:l=ik.idleTimeout,finalTimeout:c=ik.finalTimeout,childSpanTimeout:u=ik.childSpanTimeout,beforeSpanEnd:d}=t,p=eM();if(!p||!e5())return new r7;let h=eI(),f=tu(),m=function(e){let t=il(e);return e_(eI(),t),t}(e);function g(){n&&(clearTimeout(n),n=void 0)}function y(e){g(),n=setTimeout(()=>{!i&&0===r.size&&o&&(s="idleTimeout",m.end(e))},l)}function _(e){n=setTimeout(()=>{!i&&o&&(s="heartbeatFailed",m.end(e))},u)}function v(e){i=!0,r.clear(),a.forEach(e=>e()),e_(h,f);let t=tn(m),{start_timestamp:n}=t;if(!n)return;(t.data||{})[e0]||m.setAttribute(e0,s),Y.log(`[Tracing] Idle span "${t.op}" finished`);let o=tl(m).filter(e=>e!==m),u=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e));let{timestamp:n=0,start_timestamp:r=0}=tn(t),i=r<=e;(!(n-r<=(c+l)/1e3)||!i)&&(m[ts]&&m[ts].delete(t),u++)}),u>0&&m.setAttribute("sentry.idle_span_discarded_spans",u)}return m.end=new Proxy(m.end,{apply(e,t,n){d&&d(m);let[r,...i]=n,s=te(r||ef()),o=tl(m).filter(e=>e!==m);if(!o.length)return v(s),Reflect.apply(e,t,[s,...i]);let a=o.map(e=>tn(e).timestamp).filter(e=>!!e),l=a.length?Math.max(...a):void 0,u=tn(m).start_timestamp,p=Math.min(u?u+c/1e3:1/0,Math.max(u||-1/0,Math.min(s,l||1/0)));return v(p),Reflect.apply(e,t,[p,...i])}}),a.push(p.on("spanStart",e=>{if(!i&&e!==m&&!tn(e).timestamp&&tl(m).includes(e)){var t;t=e.spanContext().spanId,g(),r.set(t,!0),_(ef()+u/1e3)}})),a.push(p.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&y(ef()+l/1e3))})),a.push(p.on("idleSpanEnableAutoFinish",e=>{e===m&&(o=!0,y(),r.size&&_())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(m.setStatus({code:2,message:"deadline_exceeded"}),s="finalTimeout",m.end())},c),m}let iT=!1;function iI(){let e=tu(),t=e&&tc(e);t&&t.setStatus({code:2,message:"internal_error"})}function iC(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(eH)).join(",")}iI.tag="sentry_tracingErrorCallback";let iA=new WeakMap,iM=new Map,iR={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function iO(e){let{url:t}=tn(e).data||{};if(!t||"string"!=typeof t)return;let n=rZ("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,ver
4sion:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),em)?[...r,["http.request.redirect_start",iD(e.redirectStart)],["http.request.fetch_start",iD(e.fetchStart)],["http.request.domain_lookup_start",iD(e.domainLookupStart)],["http.request.domain_lookup_end",iD(e.domainLookupEnd)],["http.request.connect_start",iD(e.connectStart)],["http.request.secure_connection_start",iD(e.secureConnectionStart)],["http.request.connection_end",iD(e.connectEnd)],["http.request.request_start",iD(e.requestStart)],["http.request.response_start",iD(e.responseStart)],["http.request.response_end",iD(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function iD(e=0){return((em||performance.timeOrigin)+e)/1e3}function iN(e){try{return new URL(e,k.location.origin).href}catch(e){return}}let iL={...ik,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...iR},iP=(e={})=>{iT||(iT=!0,nM(iI),nD(iI));let{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:i,enableStandaloneClsSpans:s},beforeStartSpan:o,idleTimeout:a,finalTimeout:l,childSpanTimeout:c,markBackgroundSpan:u,traceFetch:d,traceXHR:h,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:y,enableHTTPTimings:_,instrumentPageLoad:v,instrumentNavigation:b}={...iL,...e},S=function({recordClsStandaloneSpans:e}){let t=im();if(t&&em){t.mark&&k.performance.mark("sentry-tracing-init");let n=rX(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=ig(em),r=ig(t.startTime);i_.fid={value:e.value,unit:"millisecond"},i_["mark.fid"]={value:n+r,unit:"second"}}),r=rG(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(i_.lcp={value:e.value,unit:"millisecond"},f=t)},!0),i=r8("ttfb",({metric:e})=>
4{e.entries[e.entries.length-1]&&(i_.ttfb={value:e.value,unit:"millisecond"})},r5,p),s=e?function(){let e,t,n=0;if(!function(){try{return ro([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let r=!1;function i(){r||(r=!0,t&&function(e,t,n){let r=ig((em||0)+(ro([t,"optionalAccess",e=>e.startTime])||0)),i=eI().getScopeData().transactionName,s=ih({name:t?z(ro([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",transaction:i,attributes:es({[eZ]:"auto.http.browser.cls",[eQ]:"ui.webvital.cls",[e3]:ro([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),startTime:r});ro([s,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[e1]:"",[e2]:e})]),ro([s,"optionalAccess",e=>e.end,"call",e=>e(r)])}(n,e,t),s())}let s=rK(({metric:t})=>{let r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);rf(()=>{i()}),setTimeout(()=>{let e=ro([eM(),"optionalAccess",e=>e.on,"call",t=>t("startNavigationSpan",()=>{i(),e&&e()})]),n=tu(),r=n&&tc(n),s=r&&tn(r);s&&"pageload"===s.op&&(t=r.spanContext().spanId)},0)}():rK(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(i_.cls={value:e.value,unit:""},m=t)},!0);return()=>{n(),r(),i(),s&&s()}}return()=>void 0}({recordClsStandaloneSpans:s||!1});t&&function(){if(im()&&em){let e=rQ(({metric:e})=>{if(void 0==e.value)return;let t=e.entries.find(t=>t.duration===e.value&&iw[t.name]);if(!t)return;let{interactionId:n}=t,r=iw[t.name],i=ig(em+t.startTime),s=ig(e.value),o=tu(),a=o?tc(o):void 0,l=(null!=n?iE.get(n):void 0)||a,c=l?tn(l).description:eI().getScopeData().transactionName,u=ih({name:z(t.target),transaction:c,attributes:es({[eZ]:"auto.http.browser.inp",[eQ]:`ui.interaction.${r}`,[e3]:t.duration}),startTime:i});ro([u,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[e1]:"millisecond",[e2]:e.value})]),ro([u,"optionalAccess",e=>e.end,"call",e=>e(i+s)])})}}(),r&&k.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=tu();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=ig(em+n.startTime),{start_timestamp:r,op:i}=tn(t);if("navigation"===i&&r&&e<r)continue;let s=ig(n.duration),o={[eZ]:"auto.ui.browser.metrics"},{invoker:a,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o["browser.script.invoker"]=a,o["browser.script.invoker_type"]=l,c&&(o["code.filepath"]=c),u&&(o["code.function"]=u),-1!==d&&(o["browser.script.source_char_position"]=d),ip(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):n&&rZ("longtask",({entries:e})=>{let t=tu();if(!t)return;let{op:n,start_timestamp:r}=tn(t);for(let i of e){let e=ig(em+i.startTime),s=ig(i.duration);"navigation"===n&&r&&e<r||ip(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[eZ]:"auto.ui.browser.metrics"}})}}),i&&rZ("event",({entries:e})=>{let t=tu();if(t){for(let n of e)if("click"===n.name){let e=ig(em+n.startTime),r=ig(n.duration),i={name:z(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[eZ]:"auto.ui.browser.metrics"}},s=H(n.target);s&&(i.attributes["ui.component_name"]=s),ip(t,e,e+r,i)}}});let E={name:void 0,source:void 0};function w(e,t){let n="pageload"===t.op,r=o?o(t):t,i=r.attributes||{};t.name!==r.name&&(i[eG]="custom",r.attributes=i),E.name=r.name,E.source=i[eG];let u=ix(r,{idleTimeout:a,finalTimeout:l,childSpanTimeout:c,disableAutoFinish:n,beforeSpanEnd:e=>{S(),function(e,t){let n=im();if(!n||!k.performance.getEntries||!em)return;let r=ig(em),i=n.getEntries(),{op:s,start_timestamp:o}=tn(e);if(i.slice(iy).forEach(t=>{let n=ig(t.startTime),i=ig(Math.max(0,t.duration));if("navigation"!==s||!o||!(r+n<o))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{iv(e,t,n,r)}),iv(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),iv(e,t,"fetch",r,"cache","domainLookupStart"),iv(e,t,"domainLookup",r,"DNS"),function(e,t,n){let r=n+ig(t.requestStart),i=n+ig(t.responseEnd),s=n+ig(t.responseStart);t.responseEnd&&(ip(e,r,i,{op:"browser.request",name:t.name,attributes:{[eZ]:"auto.ui.browser.metrics"}}),ip(e,s,i,{op:"browser.response",name:t.name,attributes:{[eZ]:"auto.ui.browser.metrics"}}))}(e,t,r);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let s=ru(),o=i+Math.max(n,ig(s?s.requestStart:0)),a=i+n,l={[eZ]:"auto.resource.browser.metrics"};o!==a&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=o),ip(e,o,a+r,{name:t.name,op:t.entryType,attributes:l})})(e,t,n,i,r);let s=rb(),o=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&o&&(i_.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(i_.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let o=nS(n),a={[eZ]:"auto.resource.browser.metrics"};ib(a,t,"transferSize","http.response_transfer_size"),ib(a,t,"encodedBodySize","http.response_content_length"),ib(a,t,"decodedBodySize","http.decoded_response_content_length"),null!=t.deliveryType&&(a["http.response_delivery_type"]=t.deliveryType),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(k.location.origin);let l=s+r;ip(e,l,l+i,{name:n.replace(k.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})})(e,t,t.name,n,i,r)}}),iy=Math.max(i.length-1,0),function(e){let t=k.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),id(n.rtt)&&(i_["connection.rtt"]={value:n.rtt,unit:"millisecond"})),id(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),id(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){(function(e){let t=ru();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(i_);let n=i_["mark.fid"];n&&i_.fid&&(ip(e,n.value,n.value+ig(i_.fid.value),{name:"first input delay",op:"ui.action",attributes:{[eZ]:"auto.ui.browser.metrics"}}),delete i_["mark.fid"]),"fcp"in i_&&t.recordClsOnPageloadSpan||delete i_.cls,Object.entries(i_).forEach(([e,t])=>{!function(e,t,n,r=tu()){let i=r&&tc(r);i&&i.addEvent(e,{[e2]:t,[e1]:n})}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",rd()),f&&(f.element&&e.setAttribute("lcp.element",z(f.element)),f.id&&e.setAttribute("lcp.id",f.id),f.url&&e.setAttribute("lcp.url",f.url.trim().slice(0,200)),e.setAttribute("lcp.size",f.size)),m&&m.sources&&m.sources.forEac
4h((t,n)=>e.setAttribute(`cls.source.${n+1}`,z(t.node)))}f=void 0,m=void 0,i_={}}(e,{recordClsOnPageloadSpan:!s})}});function d(){["interactive","complete"].includes(k.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return n&&k.document&&(k.document.addEventListener("readystatechange",()=>{d()}),d()),u}return{name:"BrowserTracing",afterAllSetup(e){let n,r;let s=k.location&&k.location.href;e.on("startNavigationSpan",t=>{eM()===e&&(n&&!tn(n).timestamp&&n.end(),n=w(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>{if(eM()!==e)return;n&&!tn(n).timestamp&&n.end();let i=function(e,t){let n=function(e){let t;if(!e)return;let n=e.match(e4);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=eV(t),{traceId:i,parentSpanId:s,parentSampled:o}=n||{};return n?{traceId:i||eo(),parentSpanId:s||eo().substring(16),spanId:eo().substring(16),sampled:o,dsc:r||{}}:{traceId:i||eo(),spanId:eo().substring(16)}}(r.sentryTrace||iB("sentry-trace"),r.baggage||iB("baggage"));eI().setPropagationContext(i),n=w(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=tn(e).op;if(e!==tc(e)||"navigation"!==t&&"pageload"!==t)return;let n=eI(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:tr(e),dsc:r.dsc||th(e)})}),k.location&&(v&&ij(e,{name:k.location.pathname,startTime:em?em/1e3:void 0,attributes:{[eG]:"url",[eZ]:"auto.pageload.browser"}}),b&&tz(({to:t,from:n})=>{if(void 0===n&&s&&-1!==s.indexOf(t)){s=void 0;return}n!==t&&(s=void 0,i$(e,{name:k.location.pathname,attributes:{[eG]:"url",[eZ]:"auto.navigation.browser"}}))})),u&&k&&k.document&&k.document.addEventListener("visibilitychange",()=>{let e=tu();if(!e)return;let t=tc(e);if(k.document.hidden&&t){let{op:e,status:n}=tn(t);n||t.setStatus({code:2,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),i&&k.document&&addEventListener("click",()=>{let e=tu(),t=e&&tc(e);!(t&&["navigation","pageload"].includes(tn(t).op))&&(r&&(r.setAttribute(e0,"interactionInterrupted"),r.end(),r=void 0),E.name&&(r=ix({name:E.name,op:"ui.action.click",attributes:{[eG]:E.source||"url"}},{idleTimeout:a,finalTimeout:l,childSpanTimeout:c})))},{once:!1,capture:!0}),t&&function(){let e=({entries:e})=>{let t=tu(),n=t&&tc(t);e.forEach(e=>{if(!("duration"in e)||!n)return;let t=e.interactionId;if(!(null==t||iE.has(t))){if(iS.length>10){let e=iS.shift();iE.delete(e)}iS.push(t),iE.set(t,n)}})};rZ("event",e),rZ("first-input",e)}(),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:a}={traceFetch:iR.traceFetch,traceXHR:iR.traceXHR,trackFetchStreamPerformance:iR.trackFetchStreamPerformance,...t},l="function"==typeof s?s:e=>!0,c=e=>(function(e,t){let n=k.location&&k.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let s=r.origin===i;return t?X(r.toString(),t)||s&&X(r.pathname,t):s}{let n=!!e.match(/^\/(?!\/)/);return t?X(e,t):n}})(e,a),u={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=iM.get(e.span_id);t&&(e.timestamp=t/1e3,iM.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";tB(t,e),tU(t,()=>nf(ng))}(e=>{if(e.response){let t=iA.get(e.response);t&&e.endTimestamp&&iM.set(t,e.endTimestamp)}}),nh(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;let s=e5()&&t(e.fetchData.url);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){e9(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let o=eI(),a=eM(),{method:l,url:c}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(c),d=u?nS(u).host:void 0,p=!!tu(),h=s&&p?il({name:`${l} ${c}`,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":d,[eZ]:i,[eQ]:"http.client"}}):new r7;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)&&a){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let{traceId:s,spanId:o,sampled:a,dsc:l}={...eC().getPropagationContext(),...n.getPropagationContext()},c=i?e7(i):e8(s,o,a),u=eJ(l||(i?th(i):tp(s,t))),d=r.headers||("undefined"!=typeof Request&&U(e,Request)?e.headers:void 0);if(!d)return{"sentry-trace":c,baggage:u};if("undefined"!=typeof Headers&&U(d,Headers)){let e=new Headers(d);if(e.set("sentry-trace",c),u){let t=e.get(eW);if(t){let n=iC(t);e.set(eW,n?`${n},${u}
4`:u)}else e.set(eW,u)}return e}if(Array.isArray(d)){let e=[...d.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(!Array.isArray(e)||e[0]!==eW||"string"!=typeof e[1])return e;{let[t,n,...r]=e;return[t,iC(n),...r]}}),["sentry-trace",c]];return u&&e.push([eW,u]),e}{let e="baggage"in d?d.baggage:void 0,t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?iC(e):e).filter(e=>""===e):e&&t.push(iC(e)),u&&t.push(u),{...d,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}(t,a,o,n,e5()&&p?h:void 0)}return h}(e,l,c,u);if(e.response&&e.fetchData.__span&&iA.set(e.response,e.fetchData.__span),t){let n=iN(e.fetchData.url),r=n?nS(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}o&&t&&iO(t)})),r&&nc(e=>{let t=function(e,t,n,r){let i=e.xhr,s=i&&i[nl];if(!i||i.__sentry_own_request__||!s)return;let o=e5()&&t(s.url);if(e.endTimestamp&&o){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==s.status_code&&(e9(t,s.status_code),t.end(),delete r[e]);return}let a=iN(s.url),l=a?nS(a).host:void 0,c=!!tu(),u=o&&c?il({name:`${s.method} ${s.url}`,attributes:{type:"xhr","http.method":s.method,"http.url":a,url:s.url,"server.address":l,[eZ]:"auto.http.browser",[eQ]:"http.client"}}):new r7;i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u;let d=eM();return i.setRequestHeader&&n(s.url)&&d&&function(e,t,n){let r=eI(),{traceId:i,spanId:s,sampled:o,dsc:a}={...eC().getPropagationContext(),...r.getPropagationContext()};(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(eW,n)}catch(e){}})(e,n&&e5()?e7(n):e8(i,s,o),eJ(a||(n?th(n):tp(i,t))))}(i,d,e5()&&c?u:void 0),u}(e,l,c,u);o&&t&&iO(t)})}(e,{traceFetch:d,traceXHR:h,trackFetchStreamPerformance:g,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:_})}}};function ij(e,t,n){e.emit("startPageLoadSpan",t,n),eI().setTransactionName(t.name);let r=tu();return"pageload"===(r&&tn(r).op)?r:void 0}function i$(e,t){eC().setPropagationContext(ep()),eI().setPropagationContext(ep()),e.emit("startNavigationSpan",t),eI().setTransactionName(t.name);let n=tu();return"navigation"===(n&&tn(n).op)?n:void 0}function iB(e){var t;let n=(t=`meta[name=${e}]`,k.document&&k.document.querySelector?k.document.querySelector(t):null);return n?n.getAttribute("content"):void 0}let iU="incomplete-app-router-transaction";function iF(e){try{return new URL(e,"http://some-random-base.com/").pathname}catch(e){return"/"}}var iz=n(1163);let iW=iz.events?iz:iz.default,iH=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function iq(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function iV(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let iJ=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in k&&void 0!==k.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||s){let e;let s=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,o=t?function(e,t){e=iq(e).slice(1),t=iq(t).slice(1);let n=iV(e.split("/")),r=iV(t.split("/")),i=Math.min(n.length,r.length),s=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){s=e;break}let o=[];for(let e=s;e<n.length;e++)o.push("..");return(o=o.concat(r.slice(s))).join("/")}(t,s):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=iH.exec(t);return n?n.slice(1):[]}(s)[2]||"";r.filename=`${n}${o}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}},iY=({assetPrefixPath:e})=>({...iJ({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=ro([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}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}}),name:"NextjsClientStackFrameNormalization"});function iK(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var iG=n(3454);function iX(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==iG?iG:0))||void 0!==k.process&&"renderer"===k.process.type)}let iQ="sentryReplaySession",iZ="Unable to send Replay";function i0(e,t){return null!=e?e:t()}function i1(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function i2(e){let t=i1([e,"optionalAccess",e=>e.host]);return i1([t,"optionalAccess",e=>e.shadowRoot])===e}function i3(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function i5(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,i4).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function i4(e){let t;if("styleSheet"in e)try{t=i5(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(n3=rt||(rt={}))[n3.Document=0]="Document",n3[n3.DocumentType=1]="DocumentType",n3[
4n3.Element=2]="Element",n3[n3.Text=3]="Text",n3[n3.CDATA=4]="CDATA",n3[n3.Comment=5]="Comment";class i8{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?i0(i1([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function i6({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function i9({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function i7(e){return e.toLowerCase()}function se(e){return e.toUpperCase()}let st="__rrweb_original__";function sn(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?i7(t):null}function sr(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function si(e,t){let n;try{n=new URL(e,i0(t,()=>window.location.href))}catch(e){return null}return i0(i1([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}let ss={};function so(e){let t=ss[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return ss[e]=r.bind(window)}function sa(...e){return so("setTimeout")(...e)}function sl(...e){return so("clearTimeout")(...e)}let sc=1,su=RegExp("[^a-z0-9-_:]");function sd(){return sc++}let sp=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,sh=/^(?:[a-z+]+:)?\/\//i,sf=/^www\..*/i,sm=/^(data:)([^,]*),(.*)/i;function sg(e,t){return(e||"").replace(sp,(e,n,r,i,s,o)=>{let a=r||s||o,l=n||i||"";if(!a)return e;if(sh.test(a)||sf.test(a)||sm.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let c=t.split("/"),u=a.split("/");for(let e of(c.pop(),u))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}let sy=/^[^ \t\n\r\u000c]+/,s_=/^[, \t\n\r\u000c]+/,sv=new WeakMap;function sb(e,t){return t&&""!==t.trim()?sS(e,t):t}function sS(e,t){let n=sv.get(e);if(n||(n=e.createElement("a"),sv.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function sE(e,t,n,r,i,s){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(s_),!(n>=t.length);){let s=r(sy);if(","===s.slice(-1))s=sb(e,s.substring(0,s.length-1)),i.push(s);else{let r="";s=sb(e,s);let o=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((s+r).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){n+=1,i.push((s+r).trim());break}"("===e&&(o=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?sg(r,sS(e)):"object"===t&&"data"===n?sb(e,r):"function"==typeof s?s(n,r,i):r:sb(e,r):r}function sw(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function sk(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:sk(e.parentNode,t,n,r+1)}function sx(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}function sT(e,t,n,r,i,s){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(s){if((l=sk(o,sx(r,i)))<0)return!0;a=sk(o,sx(t,n),l>=0?l:1/0)}else{if((a=sk(o,sx(t,n)))<0)return!1;l=sk(o,sx(r,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!s}catch(e){}return!!s}function sI(e){return null==e?"":e.toLowerCase()}function sC(e,t){let n;let{doc:r,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:h=!1,inl
4ineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E={},inlineImages:w=!1,recordCanvas:k=!1,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:R=!1}=t,{preserveWhiteSpace:O=!0}=t,D=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:_,dataURLOptions:v={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:w=!1}=t,k=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:rt.Document,childNodes:[],compatMode:e.compatMode};return{type:rt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:rt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:r,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:a,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:_,maskAllText:v,maskTextClass:b,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:w}=t,k=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,s,o),x=function(e){if(e instanceof HTMLFormElement)return"form";let t=i7(e.tagName);return su.test(t)?"div":t}(e),T={},I=e.attributes.length;for(let t=0;t<I;t++){let n=e.attributes[t];n.name&&!sw(x,n.name,n.value)&&(T[n.name]=sE(r,x,i7(n.name),n.value,e,c))}if("link"===x&&a){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=i5(t)),n&&(delete T.rel,delete T.href,T._cssText=sg(n,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=i5(e.sheet);t&&(T._cssText=sg(t,sS(r)))}if("input"===x||"textarea"===x||"select"===x||"option"===x){let t=sn(e),n=sr(e,se(x),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=sT(e,b,E,S,w,i6({type:t,tagName:se(x),maskInputOptions:l}));T.value=i9({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(T.checked=r)}if("option"===x&&(e.selected&&!l.select?T.selected=!0:delete T.selected),"canvas"===x&&h){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((st in i?i[st]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(T.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(T.rr_dataURL=t)}}if("img"===x&&p){g||(y=(g=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{g.width=e.naturalWidth,g.height=e.naturalHeight,y.drawImage(e,0,0),T.rr_dataURL=g.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?T.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===x||"video"===x)&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),k){let{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==x||f(T.src)||(k||e.contentDocument||(T.rr_src=T.src),delete T.src);try{customElements.get(x)&&(n=!0)}catch(e){}return{type:rt.Element,tagName:x,attributes:T,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:k,rootId:_,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:f,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:w,rootId:k,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||i1([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=i5(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=sg(p,sS(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=sT(e,r,s,i,o,n);return h||f||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=i9({isMasked:sT(e,r,s,i,o,i6({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:rt.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:_,rootId:k});case e.CDATA_SECTION_NODE:return{type:rt.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:rt.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:r,mirror:i,blockClass:s,blockSelector:o,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,dataURLOptions:E,inlineImages:w,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:R});if(!D)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===rt.Comment)return!0;
4if(e.type===rt.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===si(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(sI(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===sI(e.attributes.name)||"icon"===sI(e.attributes.rel)||"apple-touch-icon"===sI(e.attributes.rel)||"shortcut icon"===sI(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&sI(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(sI(e.attributes.property).match(/^(og|twitter|fb):/)||sI(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===sI(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===sI(e.attributes.name)||"googlebot"===sI(e.attributes.name)||"bingbot"===sI(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===sI(e.attributes.name)||"generator"===sI(e.attributes.name)||"framework"===sI(e.attributes.name)||"publisher"===sI(e.attributes.name)||"progid"===sI(e.attributes.name)||sI(e.attributes.property).match(/^article:/)||sI(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===sI(e.attributes.name)||"yandex-verification"===sI(e.attributes.name)||"csrf-token"===sI(e.attributes.name)||"p:domain_verify"===sI(e.attributes.name)||"verify-v1"===sI(e.attributes.name)||"verification"===sI(e.attributes.name)||"shopify-checkout-api-token"===sI(e.attributes.name)))return!0}}return!1}(D,S)&&(O||D.type!==rt.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?sd():-2;let N=Object.assign(D,{id:n});if(i.add(e,N),-2===n)return null;x&&x(e);let L=!h;if(N.type===rt.Element){L=L&&!N.needBlock,delete N.needBlock;let t=e.shadowRoot;t&&i3(t)&&(N.isShadowHost=!0)}if((N.type===rt.Document||N.type===rt.Element)&&L){S.headWhitespace&&N.type===rt.Element&&"head"===N.tagName&&(O=!1);let t={doc:r,mirror:i,blockClass:s,blockSelector:o,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:h,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:w,recordCanvas:k,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:M};for(let n of Array.from(e.childNodes)){let e=sC(n,t);e&&N.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=sC(n,t);r&&(i3(e.shadowRoot)&&(r.isShadow=!0),N.childNodes.push(r))}}return e.parentNode&&i2(e.parentNode)&&i3(e.parentNode)&&(N.isShadow=!0),N.type===rt.Element&&"iframe"===N.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let s=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=sa(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{sl(r),s=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return sa(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&T){let n=sC(t,{doc:t,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:w,recordCanvas:k,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:M});n&&T(e,n)}},I),N.type===rt.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===si(N.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let s=sa(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{sl(s),i=!0,t()})}(e,()=>{if(C){let t=sC(e,{doc:r,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:w,recordCanvas:k,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:M});t&&C(e,t)}},A),N}function sA(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function sM(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let sR="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.",sO={map:{},getId:()=>(console.error(sR),-1),getNode:()=>(console.error(sR),null),removeNodeFromMap(){console.error(sR)},has:()=>(console.error(sR),!1),reset(){console.error(sR)}};function sD(e,t,n={}){let r=null,i=0;return function(...s){let o=Date.now();i||!1!==n.leading||(i=o);let a=t-(o-i),l=this;a<=0||a>t?(r&&(function(...e){sG("clearTimeout")(...e)}
4(r),r=null),i=o,e.apply(l,s)):r||!1===n.trailing||(r=sX(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},a))}}function sN(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(sO=new Proxy(sO,{get:(e,t,n)=>("map"===t&&console.error(sR),Reflect.get(e,t,n))}));let sL=Date.now;function sP(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:sA([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||sA([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||sA([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:sA([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||sA([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||sA([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function sj(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function s$(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sB(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function sU(e,t,n,r,i){if(!e)return!1;let s=sB(e);if(!s)return!1;let o=sx(t,n);if(!i){let e=r&&s.matches(r);return o(s)&&!e}let a=sk(s,o),l=-1;return!(a<0)&&(r&&(l=sk(s,sx(null,r))),a>-1&&l<0||a<l)}function sF(e,t){return -2===t.getId(e)}function sz(e){return!!e.changedTouches}function sW(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function sH(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function sq(e){return!!sA([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(sL=()=>new Date().getTime());class sV{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return t=this.styleIDMap.get(e),null!=t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function sJ(e){let t=null;return sA([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function sY(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=sJ(n);)n=t;return n}(e);return t.contains(n)}(e))}let sK={};function sG(e){let t=sK[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return sK[e]=r.bind(window)}function sX(...e){return sG("setTimeout")(...e)}var sQ=((n5=sQ||{})[n5.DomContentLoaded=0]="DomContentLoaded",n5[n5.Load=1]="Load",n5[n5.FullSnapshot=2]="FullSnapshot",n5[n5.IncrementalSnapshot=3]="IncrementalSnapshot",n5[n5.Meta=4]="Meta",n5[n5.Custom=5]="Custom",n5[n5.Plugin=6]="Plugin",n5),sZ=((n4=sZ||{})[n4.Mutation=0]="Mutation",n4[n4.MouseMove=1]="MouseMove",n4[n4.MouseInteraction=2]="MouseInteraction",n4[n4.Scroll=3]="Scroll",n4[n4.ViewportResize=4]="ViewportResize",n4[n4.Input=5]="Input",n4[n4.TouchMove=6]="TouchMove",n4[n4.MediaInteraction=7]="MediaInteraction",n4[n4.StyleSheetRule=8]="StyleSheetRule",n4[n4.CanvasMutation=9]="CanvasMutation",n4[n4.Font=10]="Font",n4[n4.Log=11]="Log",n4[n4.Drag=12]="Drag",n4[n4.StyleDeclaration=13]="StyleDeclaration",n4[n4.Selection=14]="Selection",n4[n4.AdoptedStyleSheet=15]="AdoptedStyleSheet",n4[n4.CustomElement=16]="CustomElement",n4),s0=((n8=s0||{})[n8.MouseUp=0]="MouseUp",n8[n8.MouseDown=1]="MouseDown",n8[n8.Click=2]="Click",n8[n8.ContextMenu=3]="ContextMenu",n8[n8.DblClick=4]="DblClick",n8[n8.Focus=5]="Focus",n8[n8.Blur=6]="Blur",n8[n8.TouchStart=7]="TouchStart",n8[n8.TouchMove_Departed=8]="TouchMove_Departed",n8[n8.TouchEnd=9]="TouchEnd",n8[n8.TouchCancel=10]="TouchCancel",n8),s1=((n6=s1||{})[n6.Mouse=0]="Mouse",n6[n6.Pen=1]="Pen",n6[n6.Touch=2]="Touch",n6);class s2{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
4(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let s3=(e,t)=>`${e}@${t}`;class s5{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=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new s2,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!sY(i))return;let s=i2(i.parentNode)?this.mirror.getId(sJ(i)):this.mirror.getId(i.parentNode),o=r(i);if(-1===s||-1===o)return n.addNode(i);let a=sC(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:e=>{sW(e,this.mirror)&&!sU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),sH(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),sq(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{sU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!s8(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)s6(this.droppedSet,e)||s8(this.removes,e,this.mirror)?s6(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;n.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.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(o))},this.processMutation=e=>{if(!sF(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;sU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:sT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,sB(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=sn(t),i=t.tagName;r=sr(t,i,n);let s=i6({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=i9({isMasked:sT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(sU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
4if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!sw(t.tagName,n)&&(i.attributes[n]=sE(this.doc,i7(t.tagName),i7(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),s=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||s!==n.style.getPropertyPriority(r)?""===s?i.styleDiff[r]=e:i.styleDiff[r]=[e,s]:i._unchangedStyles[r]=[e,s]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(sU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=i2(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);sU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||sF(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(s4(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(i2(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[s3(n,r)]?s4(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(i2(e.target)&&i3(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(sF(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[s3(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!sU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),sq(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["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(t=>{this[t]=e[t]})}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 s4(e,t){e.delete(t),t.childNodes.forEach(t=>s4(e,t))}function s8(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function s6(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let s9=e=>_?(...t)=>{try{return e(...t)}catch(e){if(_&&!0===_(e))return()=>{};throw e}}:e;function s7(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}let oe=[];function ot(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function on(e,t){let n=new s5;oe.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=s7([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let s=new r(s9(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function or({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){return sM("scroll",s9(sD(s9(o=>
4{let a=ot(o);if(!a||sU(a,r,i,s,!0))return;let l=n.getId(a);if(a===t&&t.defaultView){let n=sP(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100)),t)}let oi=["INPUT","TEXTAREA","SELECT"],os=new WeakMap;function oo(e){var t;return t=[],ou("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ou("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ou("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ou("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function oa(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function ol({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?s7([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):s7([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=s7([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(s7([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s7([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=s7([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),s9(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function oc(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=on(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=sD(s9(t=>{let n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),o),c=s9(sD(s9(e=>{let t=ot(e),{clientX:n,clientY:s}=sz(e)?e.changedTouches[0]:e;i||(i=sL()),a.push({x:n,y:s,id:r.getId(t),timeOffset:sL()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?sZ.Drag:e instanceof MouseEvent?sZ.MouseMove:sZ.TouchMove)}),s,{trailing:!1})),u=[sM("mousemove",c,n),sM("touchmove",c,n),sM("drag",c,n)];return s9(()=>{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],c=null,u=t=>o=>{let a=ot(o);if(sU(a,r,i,s,!0))return;let l=null,u=t;if("pointerType"in o){switch(o.pointerType){case"mouse":l=s1.Mouse;break;case"touch":l=s1.Touch;break;case"pen":l=s1.Pen}l===s1.Touch?s0[t]===s0.MouseDown?u="TouchStart":s0[t]===s0.MouseUp&&(u="TouchEnd"):s1.Pen}else sz(o)&&(l=s1.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===s1.Touch||u.startsWith("Mouse")&&l===s1.Mouse)&&(l=null)):s0[t]===s0.Click&&(l=c,c=null);let d=sz(o)?o.changedTouches[0]:o;if(!d)return;let p=n.getId(a),{clientX:h,clientY:f}=d;s9(e)({type:s0[u],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};return Object.keys(s0).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let n=i7(e),r=u(e);if(window.PointerEvent)switch(s0[e]){case s0.MouseDown:case s0.MouseUp:n=n.replace("mouse","pointer");break;case s0.TouchStart:case s0.TouchEnd:return}l.push(sM(n,r,t))}),s9(()=>{l.forEach(e=>e())})}(e),o=or(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return sM("resize",s9(sD(s9(()=>{let t=sj(),i=s$();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=ot(e),u=e.isTrusted,g=n&&se(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>oi.indexOf(g)||sU(n,r,i,s,!0))return;let _=n;if(_.classList.contains(o)||a&&_.matches(a))return;let v=sn(n),b=sr(_,g,v),S=!1,E=i6({maskInputOptions:l,tagName:g,type:v}),w=sT(n,p,f,h,m,E);("radio"===v||"checkbox"===v)&&(S=n.checked),b=i9({isMasked:w,element:n,value:b,maskInputFn:c}),y(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});let k=n.name;"radio"===v&&k&&S&&t.querySelectorAll(`input[type="radio"][name="${k}
4"]`).forEach(e=>{if(e!==n){let t=i9({isMasked:w,element:e,value:sr(e,g,v),maskInputFn:c});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let i=os.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){os.set(t,r);let i=n.getId(t);s9(e)({...r,id:i})}}let _=("last"===u.input?["change"]:["input","change"]).map(e=>sM(e,s9(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};let 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(e=>(function e(t,n,r,i,s=window){let o=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,i?r:{set(e){sX(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,n,o||{},!0)})(e[0],e[1],{set(){s9(g)({target:this,isTrusted:!1})}},!1,v))),s9(()=>{_.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:o}){let a=s9(o=>sD(s9(s=>
4{let a=ot(s);if(!a||sU(a,t,n,r,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=a;e({type:o,id:i.getId(a),currentTime:l,volume:c,muted:u,playbackRate:d})}),s.media||500)),l=[sM("play",a(0),o),sM("pause",a(1),o),sM("seeked",a(2),o),sM("volumechange",a(3),o),sM("ratechange",a(4),o)];return s9(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,s;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:s9((r,i,s)=>{let[o,a]=s,{id:l,styleId:c}=oa(i,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),r.apply(i,s)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:s9((r,i,s)=>{let[o]=s,{id:a,styleId:l}=oa(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),r.apply(i,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:s9((r,i,s)=>{let[o]=s,{id:a,styleId:l}=oa(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),r.apply(i,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:s9((r,i,s)=>{let[o]=s,{id:a,styleId:l}=oa(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),r.apply(i,s)})}));let l={};od("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(od("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),od("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),od("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(l).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:s9((r,i,s)=>{let[o,a]=s,{id:l,styleId:c}=oa(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...oo(i),a||0]}]}),r.apply(i,s)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:s9((r,i,s)=>{let[o]=s,{id:a,styleId:l}=oa(i.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...oo(i),o]}]}),r.apply(i,s)})})}),s9(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=ol(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:s9((i,o,a)=>{let[l,c,u]=a;if(n.has(l))return s.apply(o,[l,c,u]);let{id:d,styleId:p}=oa(s7([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:oo(o.parentRule)}),i.apply(o,a)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:s9((i,s,a)=>{let[l]=a;if(n.has(l))return o.apply(s,[l]);let{id:c,styleId:u}=oa(s7([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:oo(s.parentRule)}),i.apply(s,a)})}),s9(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){let r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=sN(t.fonts,"add",function(t){return function(n){return sX(s9(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(o),s9(()=>
4{r.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:o}=e,a=!0,l=s9(()=>{let e=t.getSelection();if(!e||a&&s7([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:o,startOffset:a,endContainer:c,endOffset:u}=e.getRangeAt(t);sU(o,r,i,s,!0)||sU(c,r,i,s,!0)||l.push({start:n.getId(o),startOffset:a,end:n.getId(c),endOffset:u})}o({ranges:l})});return l(),sM("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?sN(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return s9(()=>{oe.forEach(e=>e.reset()),s7([n,"optionalAccess",e=>e.disconnect,"call",e=>e()]),i(),s(),o(),a(),l(),c(),u(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function ou(e){return void 0!==window[e]}function od(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class op{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),s.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
4getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function oh(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}class of{constructor(){this.crossOriginIframeMirror=new op(sd),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class om{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new op(sd),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new op(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),oh([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case sQ.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:sQ.IncrementalSnapshot,data:{source:sZ.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case sQ.Meta:case sQ.Load:case sQ.DomContentLoaded:break;case sQ.Plugin:return t;case sQ.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case sQ.IncrementalSnapshot:switch(t.data.source){case sZ.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sZ.Drag:case sZ.TouchMove:case sZ.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sZ.ViewportResize:return!1;case sZ.MediaInteraction:case sZ.MouseInteraction:case sZ.Scroll:case sZ.CanvasMutation:case sZ.Input:return this.replaceIds(t.data,e,["id"]),t;case sZ.StyleSheetRule:case sZ.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case sZ.Font:return t;case sZ.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case sZ.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),oh([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
4h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===rt.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class og{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class oy{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!i3(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=on({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(or({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),sX(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ol({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(sN(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&sY(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class o_{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class ov{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new sV,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:i4(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ob{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){sG("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=ro([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let oS=new i8;function oE(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:w,maskTextFn:k,maxCanvasSize:x=null,packFn:T,sampling:I={},dataURLOptions:C={},mousemoveWait:A,recordDOM:M=!0,recordCanvas:R=!1,recordCrossOriginIframes:O=!1,recordAfter:D="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:L=!1,inlineImages:P=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:B=new Set([]),errorHandler:U,onMutation:F,getCanvasManager:z}=e;_=U;let W=!O||window.parent===window,H=!1;if(!W)try{window.parent.document&&(H=!1)}catch(e){H=!0}if(W&&!n)throw Error("emit function is required");if(!W&&!H)return()=>{};void 0!==A&&void 0===I.mousemove&&(I.mousemove=A),oS.reset();let q=!0===g?{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!==y?y:{},V=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let J=0,Y=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return T&&!H&&(e=T(e)),e};v=(e,s)=>{if(e.timestamp=sL(),ro([oe,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==sQ.FullSnapshot&&!(e.type===sQ.IncrementalSnapshot&&e.data.source===sZ.Mutation)&&oe.forEach(e
4=>e.unfreeze()),W)ro([n,"optionalCall",t=>t(Y(e),s)]);else if(H){let t={type:"rrweb",event:Y(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===sQ.FullSnapshot)t=e,J=0;else if(e.type===sQ.IncrementalSnapshot){if(e.data.source===sZ.Mutation&&e.data.isAttachIframe)return;J++;let n=i&&J>=i,s=r&&t&&e.timestamp-t.timestamp>r;(n||s)&&er(!0)}};let K=e=>{v({type:sQ.IncrementalSnapshot,data:{source:sZ.Mutation,...e}})},G=e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.Scroll,...e}}),X=e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.CanvasMutation,...e}}),Q=new ov({mutationCb:K,adoptedStyleSheetCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new of:new om({mirror:oS,mutationCb:K,stylesheetManager:Q,recordCrossOriginIframes:O,wrappedEmit:v});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:oS,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new ob,et=function(e,t){try{return e?e(t):new o_}catch(e){return console.warn("Unable to initialize CanvasManager"),new o_}}(z,{mirror:oS,win:window,mutationCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.CanvasMutation,...e}}),recordCanvas:R,blockClass:s,blockSelector:o,unblockSelector:a,maxCanvasSize:x,sampling:I.canvas,dataURLOptions:C,errorHandler:U}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new og:new oy({mutationCb:K,scrollCb:G,bypassOptions:{onMutation:F,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:q,dataURLOptions:C,maskAttributeFn:E,maskTextFn:k,maskInputFn:w,recordCanvas:R,inlineImages:P,sampling:I,slimDOMOptions:V,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:$,processedNodeManager:ee},mirror:oS}),er=(e=!1)=>{if(!M)return;v({type:sQ.Meta,data:{href:window.location.href,width:s$(),height:sj()}},e),Q.reset(),en.init(),oe.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new i8,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=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:E,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:x,keepIframeSrcFn:T=()=>!1}=t||{};return sC(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,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:E,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:x,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:oS,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:q,maskAttributeFn:E,maskInputFn:w,maskTextFn:k,slimDOM:V,dataURLOptions:C,recordCanvas:R,inlineImages:P,onSerialize:e=>{sW(e,oS)&&Z.addIframe(e),sH(e,oS)&&Q.trackLinkElement(e),sq(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:$});if(!t)return console.warn("Failed to snapshot the document");v({type:sQ.FullSnapshot,data:{node:t,initialOffset:sP(window)}}
4),oe.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,oS.getId(document))};b=er;try{let e=[],t=e=>s9(oc)({onMutation:F,mutationCb:K,mousemoveCb:(e,t)=>v({type:sQ.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.ViewportResize,...e}}),inputCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.Input,...e}}),mediaInteractionCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.MediaInteraction,...e}}),styleSheetRuleCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.StyleSheetRule,...e}}),styleDeclarationCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>v({type:sQ.IncrementalSnapshot,data:{source:sZ.Font,...e}}),selectionCb:e=>{v({type:sQ.IncrementalSnapshot,data:{source:sZ.Selection,...e}})},customElementCb:e=>{v({type:sQ.IncrementalSnapshot,data:{source:sZ.CustomElement,...e}})},blockClass:s,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:q,inlineStylesheet:m,sampling:I,recordDOM:M,recordCanvas:R,inlineImages:P,userTriggeredOnInput:N,collectFonts:L,doc:e,maskAttributeFn:E,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:$,blockSelector:o,unblockSelector:a,slimDOMOptions:V,dataURLOptions:C,mirror:oS,iframeManager:Z,stylesheetManager:Q,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:B,plugins:ro([j,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>v({type:sQ.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(sM("DOMContentLoaded",()=>{v({type:sQ.DomContentLoaded,data:{}}),"DOMContentLoaded"===D&&n()})),e.push(sM("load",()=>{v({type:sQ.Load,data:{}}),"load"===D&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),b=void 0,_=void 0}}catch(e){console.warn(e)}}oE.mirror=oS,oE.takeFullSnapshot=function(e){if(!b)throw Error("please take full snapshot after start recording");b(e)};let ow=["info","warn","error","log"];function ok(e){return e>9999999999?e:1e3*e}function ox(e){return e>9999999999?e/1e3:e}function oT(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:sQ.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:eB(t,10,1e3)}}),"console"===t.category)))}function oI(e){return e.closest("button,a")||e}function oC(e){let t=oA(e);return t&&t instanceof Element?oI(t):t}function oA(e){return"object"==typeof e&&e&&"target"in e?e.target:e}(function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};ow.forEach(t=>{e[t]=()=>void 0})})();let oM=new Set([sZ.Mutation,sZ.StyleSheetRule,sZ.StyleDeclaration,sZ.AdoptedStyleSheet,sZ.CanvasMutation,sZ.Selection,sZ.MediaInteraction]);class oR{constructor(e,t,n=oT){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=oD()},S||(S=[],Q(k,"open",function(e){return function(...t){if(S)try{S.forEach(e=>e())}catch(e){}return e.apply(k,t)}})),S.push(e),()=>{let t=S?S.indexOf(e):-1;t>-1&&S.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!oO.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:ox(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>
4Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=ox(e)}registerScroll(e=Date.now()){this._lastScroll=ox(e)}registerClick(e){let t=oI(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=oD();for(let n of(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<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:k.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:k.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=nX(()=>this._checkClicks(),1e3)}}let oO=["A","BUTTON","INPUT"];function oD(){return Date.now()/1e3}function oN(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(n9=rn||(rn={}))[n9.Document=0]="Document",n9[n9.DocumentType=1]="DocumentType",n9[n9.Element=2]="Element",n9[n9.Text=3]="Text",n9[n9.CDATA=4]="CDATA",n9[n9.Comment=5]="Comment";let oL=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),oP=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?oC(e.event):oA(e.event),t=z(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return oN({category:`ui.${e.name}`,...oj(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,oC(t.event)),oT(e,n)};function oj(e,t){let n=oE.mirror.getId(e),r=n&&oE.mirror.getNode(n),i=r&&oE.mirror.getMeta(r),s=i&&i.type===rn.Element?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===rn.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(oL.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(s.attributes)}}:{}}}let o$={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:oF(s),end:oF(i),name:r,data:{size:c,statusCode:l,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,s=oF(i);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:oF(h),end:oF(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function oB(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function oU(e){let t=o$[e.entryType];return t?t(e):null}function oF(e){return((em||k.performance.timeOrigin)+e)/1e3}function oz(e){let t=e.entries[e.entries.length-1];return oV(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function oW(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=oE.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return oV(e,"cumulative-layout-shift",n,t)}function oH(e){let t=e.entries[e.entries.length-1];return oV(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function oq(e){let t=e.entries[e.entries.length-1];return oV(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function oV(e,t,n,r){let i=e.value,s=e.rating,o=oF(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:n?n.map(e=>oE.mirror.getId(e)):void 0,attributions:r}}}
4class oJ extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class oY{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(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new oJ;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?ok(e):null}}class oK{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let s=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",s),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class oG{constructor(e){this._worker=new oK(e),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(e){let t=ok(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new oJ):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class oX{constructor(e){this._fallback=new oY,this._compression=new oG(e),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(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function oQ(){try{return"sessionStorage"in k&&!!k.sessionStorage}catch(e){return!1}}function oZ(e){return void 0!==e&&Math.random()<e}function o0(e){let t=Date.now(),n=e.id||eo(),r=e.started||t,i=e.lastActivity||t;return{id:n,started:r,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function o1(e){if(oQ())try{k.sessionStorage.setItem(iQ,JSON.stringify(e))}catch(e){}}function o2({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=o0({sampled:oZ(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&o1(i),i}function o3(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function o5(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return o3(e.started,t,r)||o3(e.lastActivity,n,r)}function o4(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!o5(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function o8({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!oQ())return null;try{let e=k.sessionStorage.getItem(iQ);if(!e)return null;let t=JSON.parse(e);return o0(t)}catch(e){return null}}();return i?o4(i,{sessionIdleExpire:e,maxReplayDuration:t})?o2(r,{previousSessionId:i.id}):i:o2(r,{previousSessionId:n})}function o6(e,t,n){return!!o7(e,t)&&(o9(e,t,n),!0)}async function o9(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===sQ.Custom)return t(e)}catch(e){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(r){let t=r&&r instanceof oJ?"addEventSizeExceeded":"addEvent";e.handleException(r),await e.stop({reason:t});let n=eM();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}
4function o7(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=ok(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function ae(e){return"transaction"===e.type}function at(e){return"feedback"===e.type}function an(e){return!!e.category}function ar(){let e=eI().getPropagationContext().dsc;e&&delete e.replay_id;let t=tu();if(t){let e=th(t);delete e.replay_id}}function ai(e,t){return t.map(({type:t,start:n,end:r,name:i,data:s})=>{let o=e.throttledAddEvent({type:sQ.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function as(e,t){e.isEnabled()&&null!==t&&!function(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&iK(e)===iK(r)}(t.name,eM())&&e.addUpdate(()=>(ai(e,[t]),!0))}function ao(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=af(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function aa(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function al(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[af(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function ac(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function au(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:a,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:es({method:s,statusCode:o,request:a,response:l})}}function ad(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ap(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=i,s&&s.length>0&&(r._meta={warnings:s}),r}function ah(e,t){return Object.entries(e).reduce((n,[r,i])=>{let s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function af(e){return new URLSearchParams(e).toString()}function am(e,t=k.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(k.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function ag(e,t,n){try{let r=await ay(e,t,n),i=au("resource.fetch",r);as(n.replay,i)}catch(e){}}async function ay(e,t,n){var r,i;let s=Date.now(),{startTimestamp:o=s,endTimestamp:a=s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data,h=(r=n.networkDetailAllowUrls,X(am(l),r)&&(i=n.networkDetailDenyUrls,!X(am(l),i)));return{startTimestamp:o,endTimestamp:a,url:l,method:c,statusCode:u,request:h?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?aE(n[0],t):2===n.length?aE(n[1],t):{}:{};if(!e)return ap(i,r,void 0);let[s,o]=al(ab(n)),a=ap(i,r,s);return o?ac(a,o):a}(n,t.input,d):ad(d),response:await a_(h,n,t.response,p)}}async function a_(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return ad(i);let s=r?aS(r.headers,n):{};if(!r||!t&&void 0!==i)return ap(s,i,void 0);let[o,a]=await av(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let s=e&&e.length&&void 0===n?ao(e):n;if(!r)return ad(s);if(t)return ap(i,s,e);return ap(i,s,void 0)}catch(e){return ap(i,n,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return a?ac(l,a):l}async function av(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];
4try{return[await new Promise((e,n)=>{let r=nX(()=>n(Error("Timeout while trying to read response body")),500);aw(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function ab(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function aS(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function aE(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?aS(n,t):Array.isArray(n)?{}:ah(n,t):{}}async function aw(e){return await e.text()}async function ak(e,t,n){try{let r=function(e,t,n){var r,i;let s=Date.now(),{startTimestamp:o=s,endTimestamp:a=s,input:l,xhr:c}=t,{url:u,method:d,status_code:p=0,request_body_size:h,response_body_size:f}=e.data;if(!u)return null;if(!c||(r=n.networkDetailAllowUrls,!X(am(u),r))||(i=n.networkDetailDenyUrls,X(am(u),i))){let e=ad(h);return{startTimestamp:o,endTimestamp:a,url:u,method:d,statusCode:p,request:e,response:ad(f)}}let m=c[nl],g=m?ah(m.request_headers,n.networkRequestHeaders):{},y=ah(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(c),n.networkResponseHeaders),[_,v]=n.networkCaptureBodies?al(l):[void 0],[b,S]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(c):[void 0],E=ap(g,h,_),w=ap(y,f,b);return{startTimestamp:o,endTimestamp:a,url:u,method:d,statusCode:p,request:v?ac(E,v):E,response:S?ac(w,S):w}}(e,t,n),i=au("resource.xhr",r);as(n.replay,i)}catch(e){}}async function ax(e){try{return Promise.all(ai(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(k.performance.memory)]))}catch(e){return[]}}async function aT({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let s=await tg(e.getOptions(),r,i,t,e,eC());if(!s)return null;s.platform=s.platform||"javascript";let o=e.getSdkMetadata(),{name:a,version:l}=o&&o.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0"},s}async function aI({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){var o;let a;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
5`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:p}=r,h=eM(),f=eI(),m=h&&h.getTransport(),g=h&&h.getDsn();if(!h||!m||!g||!s.sampled)return eU({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},_=await aT({scope:f,client:h,replayId:t,event:y});if(!_)return h.recordDroppedEvent("event_processor","replay",y),eU({});delete _.sdkProcessingMetadata;let v=(o=h.getOptions().tunnel,tY(tZ(_,tQ(_),o,g),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await m.send(v)}catch(t){let e=Error(iZ);try{e.cause=t}catch(e){}throw e}if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new aC(a.statusCode);let b=nZ({},a);if(nQ(b,"replay"))throw new aA(b);return a}
5class aC extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class aA extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function aM(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await aI(e),!0}catch(n){if(n instanceof aC||n instanceof aA)throw n;if(t_("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${iZ} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{nX(async()=>{try{await aM(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let aR="__THROTTLED";class aO{constructor({options:e,recordingOptions:t}){aO.prototype.__init.call(this),aO.prototype.__init2.call(this),aO.prototype.__init3.call(this),aO.prototype.__init4.call(this),aO.prototype.__init5.call(this),aO.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._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,s;let o=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=nX(a,t),o&&void 0===s&&(s=nX(a,o)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==s?a():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},s=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),s()>=300){let e=o;return o=!0,e?"__SKIPPED":aR}o=!1;let a=r.get(n)||0;return r.set(n,a+1),e(...t)}}((e,t)=>o7(this,e)?o9(this,e,t):Promise.resolve(null),0,0);let{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 oR(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,!r&&(this._initializeSessionForSampling(e),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=o8({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=o8({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let n=this._canvas;this._stopRecording=oE({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(oM.has(n)&&e.registerMutation(t.timestamp),n===sZ.Scroll&&e.registerScroll(t.timestamp),t.data.source===sZ.MouseInteraction){let{type:n,id:r}=t.data,i=oE.mirror.getNode(r);i instanceof HTMLElement&&n===s0.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!o6(e,n,i))return!0;
5if(!i)return!1;let t=e.session;if(i&&e.session&&0===e.session.segmentId&&o6(e,function(e){let t=e.getOptions();return{type:sQ.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&o1(t))}return!!t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{ar(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(oQ())try{k.sessionStorage.removeItem(iQ)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}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&&o3(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${k.location.pathname}${k.location.hash}${k.location.search}`,t=`${k.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===aR){let e=oN({category:"replay.throttled"});this.addUpdate(()=>!o6(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||tu(),t=e&&tc(e),n=(t&&tn(t).data||{})[eG];if(t&&n&&["route","custom"].includes(n))return tn(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=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<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}
vendor: 5,457 bytes, line 5
5},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>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<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>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==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},_=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},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!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,U)+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+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=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<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>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}}},O=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=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
5++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=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)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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(e)}());if(!t)return;let n=new Worker(t);return new oX(n)}catch(e){}}(t);if(e)return e}return new oY}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=o8({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!o4(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{k.document.addEventListener("visibilitychange",this._handleVisibilityChange),k.addEventListener("blur",this._handleWindowBlur),k.addEventListener("focus",this._handleWindowFocus),k.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=eM();ns(oP(e)),tz(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ai(e,[n]),!1)))}),function(e){let t=eM();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!an(t))return;let n=!an(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return oN(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=eB(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return oN({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):oN(t);n&&oT(e,n)})(e,t))}(e),function(e){let t=eM();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=ao(r),s=n.getResponseHeader("content-length")?aa(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return ao(n)}catch(e){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),ak(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t){let{input
5:n,response:r}=t,i=ao(n?ab(n):void 0),s=r?aa(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),ag(t,n,e))}catch(e){}})(a,e,t))}catch(e){}}(e),tv(Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||ae(t)||at(t)?e.checkAndHandleExpiredSession()?at(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:sQ.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==iZ&&t.exception&&!t.type&&oZ(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(ar(),t):t,{id:"Replay"})),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&oT(e,oN({category:"replay.hydrate-error",data:{url:W()}}))}(e,t)}),t.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!ae(t))return;let r=n&&n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(ae(t)){(function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&nX(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),t.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(rZ(e,n))}),r.push(rG(oB(oz,e)),rK(oB(oW,e)),rX(oB(oH,e)),rQ(oB(oq,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{k.document.removeEventListener("visibilitychange",this._handleVisibilityChange),k.removeEventListener("blur",this._handleWindowBlur),k.removeEventListener("focus",this._handleWindowFocus),k.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===k.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=oN({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=oN({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:o,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=n||i||s,c=1===o.length;if(!l&&c)return null;let u=z(a,{maxStringLength:200})||"<unknown>",d=oj(a,u);return oN({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:o}})}(t);n&&oT(e,n)}(this,e)}}
5_doChangeToBackgroundTasks(e){!this.session||o5(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:sQ.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(oU).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(ai(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
5_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await ax(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await aM({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=eM();e&&e.recordDroppedEvent(t instanceof aA?"ratelimit_backoff":"send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){r&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&s.hasCheckout;let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&o1(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=oN({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function aD(e,t){return[...e,...t].join(",")}let aN='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',aL=["content-length","content-type","accept"],aP=!1;class aj{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:o,_experiments:a={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:E=[],block:w=[],unblock:k=[],ignore:x=[],maskFn:T,beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:A}={}){this.name=aj.id;let M=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:aD(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:aD(t,[]),blockSelector:aD(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:aD(r,[]),ignoreSelector:aD(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:w,unblock:k,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:S,maskAllText:l,privacyOptions:M,key:e,value:t,el:n}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
56e5),stickySession:i,useCompression:s,workerUrl:o,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:a$(_),networkResponseHeaders:a$(v),beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:A,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${aN}`:aN),this._isInitialized&&iX())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return aP}set _isInitialized(e){aP=e}afterAllSetup(e){iX()&&!this._replay&&(this._setup(e),this._initialize(e))}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(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...es(e)},i=t1(n.replaysSessionSampleRate),s=t1(n.replaysOnErrorSampleRate);return null==i&&null==s&&J(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=s&&(r.errorSampleRate=s),r}(this._initialOptions,e);this._replay=new aO({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function a$(e){return[...aL,...e.map(e=>e.toLowerCase())]}aj.__initStatic();var aB=n(3454);globalThis._sentryRewritesTunnelPath="/monitoring",globalThis.SENTRY_RELEASE={id:"55OC8B2TwxcMf89q5Ht0s"},globalThis._sentryBasePath=void 0,globalThis._sentryRewriteFramesAssetPrefixPath="",function(e){let t={environment:function(e){let t=e?ri.env.NEXT_PUBLIC_VERCEL_ENV:ri.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=n2(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=iP({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){var i;r&&(i=e,k.document.getElementById("__NEXT_DATA__")?iW.events.on("routeChangeStart",e=>{let t,n;let r=e.split(/[?#]/,1)[0],s=function(e){let t=(k.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";ro([t,"access",e=>e[t.length-1],"optionalAccess",e=>e.match,"call",e=>e(/^\[\[\.\.\..+\]\]$/)])&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(r);s?(t=s,n="route"):(t=r,n="url"),i$(i,{name:t,attributes:{[eQ]:"navigation",[eZ]:"auto.navigation.nextjs.pages_router_instrumentation",[eG]:n}})}):function(e){let t;k.addEventListener("popstate",()=>{t&&t.isRecording()?(t.updateName(k.location.pathname),t.setAttribute(eG,"url")):t=i$(e,{name:k.location.pathname,attributes:{[eQ]:"navigation",[eZ]:"auto.navigation.nextjs.app_router_instrumentation",[eG]:"url","navigation.type":"browser.popstate"}})});let n=!1,r=0,i=setInterval(()=>{var s,o;r++;let a=(s=ro([k,"optionalAccess",e=>e.next,"optionalAccess",e=>e.router]),o=()=>ro([k,"optionalAccess",e=>e.nd,"optionalAccess",e=>e.router]),null!=s?s:o());n||r>500?clearInterval(i):a&&(clearInterval(i),n=!0,["back","forward","push","replace"].forEach(n=>{ro([a,"optionalAccess",e=>e[n]])&&(a[n]=new Proxy(a[n],{apply(r,i,s){let o=i$(e,{name:iU,attributes:{[eQ]:"navigation",[eZ]:"auto.navigation.nextjs.app_router_instrumentation",[eG]:"url"}});return t=o,"push"===n?(ro([o,"optionalAccess",e=>e.updateName,"call",e=>e(iF(s[0]))]),ro([o,"optionalAccess",e=>e.setAttribute,"call",e=>e(eG,"url")]),ro([o,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.push")])):"replace"===n?(ro([o,"optionalAccess",e=>e.updateName,"call",e=>e(iF(s[0]))]),ro([o,"optionalAccess",e=>e.setAttribute,"call",e=>e(eG,"url")]),ro([o,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.replace")])):"back"===n?ro([o,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.back")]):"forward"===n&&ro([o,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.forward")]),r.apply(i,s)}}))}))},20)}(i)),t.afterAllSetup(e),n&&(k.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e;let t=k.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){}if(!e)return{};let n={},{page:r,query:i,props:s}=e;return n.route=r,n.params=i,s&&s.pageProps&&(n.sentryTrace=s.pageProps._sentryTraceData,n.baggage=s.pageProps._sentryBaggage),n}(),s=eY(i),o=t||k.location.pathname;s&&s["sentry-transaction"]&&"/_error"===o&&(o=(o=s["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,"")),ij(e,{name:o,startTime:em?em/1e3:void 0,attributes:{[eQ]:"pageload",[eZ]:"auto.pageload.nextjs.pages_router_instrumentation",[eG]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e):ij(e,{name:k.location.pathname,startTime:em?em/1e3:void 0,attributes:{[eQ]:"pageload",[eZ]:"auto.pageload.nextjs.app_router_instrumentation",[eG]:"url"}}))}}}());let n=k._sentryRewriteFramesAssetPrefixPath||"";return t.push(iY({assetPrefixPath:n})),t}(e),...e};(function(e){let t="/monitoring";if(t&&e.dsn){let n=tV(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],s=r[2],o=`${t}?o=${i}&p=${n.projectId}`;s&&(o+=`&r=${s}`),e.tunnel=o}}})(t),w(t,"nextjs",["nextjs","react"]),function(e){let t={...e};w(t,"react"),t_("react",{version:rr.version}),function(e={}){var t;let n=function(e={}){let t={defaultIntegrations:n2(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:k.SENTRY_RELEASE&&k.SENTRY_RELEASE.id?k.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(!n.skipBrowserExtensionCheck&&function(){let e=void 0!==k.window&&k;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=k.location&&k.location.href||"",s=!!r&&k===k.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),o=void 0!==e.nw;return!!r&&!s&&!o}()){J(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}(function(e,t){!0===t.debug&&J(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),eI().update(t.initialScope);let n=new e(t);eI().setClient(n),n.init()})(ni,{...n,stackParser:Array.isArray(t=n.stackParser||nJ)?eN(...t):t,integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;
5t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(Array.isArray(n)?[...t,...n]:"function"==typeof n?ed(n(t)):t),i=r.findIndex(e=>"Debug"===e.name);if(i>-1){let[e]=r.splice(i,1);r.push(e)}return r}(n),transport:n.transport||n1}),n.autoSessionTracking&&void 0!==k.document&&(tb({ignoreDuration:!0}),tw(),tz(({from:e,to:t})=>{void 0!==e&&e!==t&&(tb({ignoreDuration:!0}),tw())}))}(t)}(t);let n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",tv(n);let r=e=>"transaction"===e.type&&e.transaction===iU?null:e;r.id="IncompleteTransactionFilter",tv(r)}({dsn:aB.env.SENTRY_DSN,tracesSampleRate:1,debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,environment:"production",integrations:[new aj({maskAllText:!0,blockAllMedia:!0})]})},9645:function(e,t,n){"use strict";n.r(t);var r=n(5893);n(168),n(7610),n(7034);var i=n(9008),s=n.n(i),o=n(1242),a=n(6476);n(7294);var l=n(8583);t.default=function(e){let{Component:t,pageProps:n}=e,i={"@context":"https://schema.org","@type":"WebSite",name:o.D7,alternateName:"첫차",url:"https://www.chutcha.net/"},c={"@context":"https://schema.org","@type":"SoftwareApplication",name:o.D7,operatingSystem:"iOS",applicationCategory:"https://schema.org/LifestyleApplication",author:{"@type":"Organization",name:"미스터픽"},installUrl:"https://apps.apple.com/kr/app/%EC%A4%91%EA%B3%A0%EC%B0%A8%EB%8A%94-%EC%B2%AB%EC%B0%A8-%EB%94%9C%EB%9F%AC%EC%9A%A9-%EC%A4%91%EA%B3%A0%EC%B0%A8-%EB%A7%A4%EC%9E%85-%ED%8C%90%EB%A7%A4-%EB%94%9C%EB%9F%AC%EC%A0%84%EC%9A%A9/id1535904093",offers:{"@type":"Offer",price:"0",priceCurrency:"KRW"}},u={"@context":"https://schema.org","@type":"SoftwareApplication",name:o.D7,operatingSystem:"ANDROID",applicationCategory:"https://schema.org/LifestyleApplication",author:{"@type":"Organization",name:"미스터픽"},installUrl:"https://play.google.com/store/apps/details?id=com.mrpic.chutcha",offers:{"@type":"Offer",price:"0",priceCurrency:"KRW"}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)("title",{children:o.M}),(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge, chrome=1"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),!1,(0,r.jsx)("meta",{name:"naver-site-verification",content:"5940983ea89aecbd31d8a47a0949336ba6d17d1e"}),(0,r.jsx)("meta",{name:"description",content:o.RY},"description"),(0,r.jsx)("meta",{name:"keywords",content:o.EP},"keywords"),(0,r.jsx)("meta",{name:"viewport",content:"user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width, viewport-fit=cover"},"viewport"),(0,r.jsx)("meta",{property:"al:ios:url",content:"https://itunes.apple.com/kr/app/%EC%A4%91%EA%B3%A0%EC%B0%A8%EB%8A%94-%EC%B2%AB%EC%B0%A8-%EC%A4%91%EA%B3%A0%EC%B0%A8%EA%B5%AC%EC%9E%85-%EC%A4%91%EA%B3%A0%EC%B0%A8%EC%8B%9C%EC%84%B8-%EB%94%9C%EB%9F%AC%EC%A0%95%EB%B3%B4%EA%B9%8C%EC%A7%80/id982096152?mt=8"},"alIosUrl"),(0,r.jsx)("meta",{property:"al:ios:app_store_id",content:"982096152"},"alIosAppstoreId"),(0,r.jsx)("meta",{property:"al:ios:app_name",content:o.D7},"alIosAppName"),(0,r.jsx)("meta",{property:"al:android:url",content:"https://play.google.com/store/apps/details?id=com.mrpic.chutcha&hl=ko"},"alAndroidUrl"),(0,r.jsx)("meta",{property:"al:android:app_name",content:o.D7},"alAndroidAppName"),(0,r.jsx)("meta",{property:"al:android:package",content:"com.mrpic.chutcha"},"alAndroidPackage"),(0,r.jsx)("meta",{property:"al:web:url",content:"https://www.chutcha.net"},"alWebUrl"),(0,r.jsx)("meta",{property:"og:site_name",content:o.D7},"ogSiteName"),(0,r.jsx)("meta",{property:"og:title",content:o.M},"ogTitle"),(0,r.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,r.jsx)("meta",{property:"og:description",content:o.RY},"ogDescription"),(0,r.jsx)("meta",{property:"og:url",content:"https://www.chutcha.net"},"ogUrl"),(0,r.jsx)("meta",{property:"og:locale",content:"ko_KR"},"ogLocale"),(0,r.jsx)("meta",{property:"og:image",content:o.Eh},"ogImage"),(0,r.jsx)("link",{rel:"shortcut icon",href:"https://img.chutcha.kr/files/website/common/icon/chutcha.ico"},"shortcutIcon"),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Organization",url:"https://www.chutcha.net",logo:"https://img.chutcha.kr/files/website/common/logo/img-logo-round_blue.png"})}}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(c)}}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(u)}})]}),(0,r.jsx)(l.zt,{children:(0,r.jsx)(a.default,{children:(0,r.jsx)(t,{...n})})})]})}},6476:function(e,t,n){"use strict";n.r(t);var r=n(5893),i=n(7294);class s extends i.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.log({error:e,errorInfo:t})}render(){return this.state.hasError?(console.log(this.state.hasError),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{children:"Oops, there is an error!"}),(0,r.jsx)("button",{type:"button",onClick:()=>this.setState({hasError:!1}),children:"Try again?"})]})):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}t.default=s},168:function(){},7034:function(){},7610:function(){},7663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}
5catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}},o=!0;try{t[e](s,s.exports,r),o=!1}finally{o&&delete n[e]}return s.exports}r.ab="//";var i=r(229);e.exports=i}()},9008:function(e,t,n){e.exports=n(3867)},1163:function(e,t,n){e.exports=n(3079)},8583:function(e,t,n){"use strict";n.d(t,{Dv:function(){return h},KO:function(){return f},zt:function(){return a}});var r=n(7294),i=n(5103);let s=(0,r.createContext)(void 0),o=e=>{let t=(0,r.useContext)(s);return(null==e?void 0:e.store)||t||(0,i.K7)()},a=({children:e,store:t})=>{let n=(0,r.useRef)();return t||n.current||(n.current=(0,i.MT)()),(0,r.createElement)(s.Provider,{value:t||n.current},e)},l=e=>"function"==typeof(null==e?void 0:e.then),c=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},u=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw c(e),e}),d=new WeakMap,p=e=>{let t=d.get(e);return t||(t=new Promise((n,r)=>{let i=e,s=e=>t=>{i===e&&n(t)},o=e=>t=>{i===e&&r(t)},a=e=>{"onCancel"in e&&"function"==typeof e.onCancel&&e.onCancel(r=>{if(r===e)throw Error("[Bug] p is not updated even after cancelation");l(r)?(d.set(r,t),i=r,r.then(s(r),o(r)),a(r)):n(r)})};e.then(s(e),o(e)),a(e)}),d.set(e,t)),t};function h(e,t){let n=o(t),[[i,s,a],d]=(0,r.useReducer)(t=>{let r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]},void 0,()=>[n.get(e),n,e]),h=i;(s!==n||a!==e)&&(d(),h=n.get(e));let f=null==t?void 0:t.delay;return((0,r.useEffect)(()=>{let t=n.sub(e,()=>{if("number"==typeof f){let t=n.get(e);l(t)&&c(p(t)),setTimeout(d,f);return}d()});return d(),t},[n,e,f]),(0,r.useDebugValue)(h),l(h))?u(p(h)):h}function f(e,t){return[h(e,t),function(e,t){let n=o(t);return(0,r.useCallback)((...t)=>{if(!("write"in e))throw Error("not writable atom");return n.set(e,...t)},[n,e])}(e,t)]}},5103:function(e,t,n){"use strict";let r;n.d(t,{K7:function(){return C},MT:function(){return I},cn:function(){return s}});let i=0;function s(e,t){let n=`atom${++i}`,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=o,r.write=a),t&&(r.write=t),r}function o(e){return e(this)}function a(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}let l=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,c=e=>"init"in e,u=e=>!!e.write,d=new WeakMap,p=e=>{var t;return m(e)&&!(null==(t=d.get(e))?void 0:t[1])},h=(e,t)=>{let n=d.get(e);if(n)n[1]=!0,n[0].forEach(e=>e(t));else throw Error("[Bug] cancelable promise not found")},f=e=>{if(d.has(e))return;let t=[new Set,!1];d.set(e,t);let n=()=>{t[1]=!0};e.then(n,n),e.onCancel=e=>{t[0].add(e)}},m=e=>"function"==typeof(null==e?void 0:e.then),g=e=>"v"in e||"e"in e,y=e=>{if("e"in e)throw e.e;if(!("v"in e))throw Error("[Bug] atom state is not initialized");return e.v}
5,_=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},v=(e,t,n,r,i)=>{var s;if(r===t)throw Error("[Bug] atom cannot depend on itself");n.d.set(r,i.n),p(n.v)&&_(t,n.v,i),null==(s=i.m)||s.t.add(t),e&&E(e,r,t)},b=()=>[new Map,new Map,new Set],S=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},E=(e,t,n)=>{let r=e[0].get(t);r&&r.add(n)},w=(e,t)=>e[0].get(t),k=(e,t)=>{e[2].add(t)},x=e=>{let t;let n=!1,r=e=>{try{e()}catch(e){n||(t=e,n=!0)}};for(;e[1].size||e[2].size;){e[0].clear();let t=new Set(e[1].values());e[1].clear();let n=new Set(e[2]);e[2].clear(),t.forEach(e=>{var t;return null==(t=e.m)?void 0:t.l.forEach(r)}),n.forEach(r)}if(n)throw t},T=(...[e,t,n,r])=>{let i;i=new Set;let s=(t,n,r)=>{let i="v"in n,s=n.v,o=p(n.v)?n.v:null;if(m(r)){for(let i of(f(r),n.d.keys()))_(t,r,e(i));n.v=r,delete n.e}else n.v=r,delete n.e;i&&Object.is(s,n.v)||(++n.n,o&&h(o,r))},o=(n,r,i)=>{var a;let d,p;let h=e(r);if(g(h)&&(h.m&&!(null==i?void 0:i.has(r))||Array.from(h.d).every(([e,t])=>o(n,e,i).n===t)))return h;h.d.clear();let f=!0;try{let _=t(r,t=>{if(l(r,t)){let n=e(t);if(!g(n)){if(c(t))s(t,n,t.init);else throw Error("no atom init")}return y(n)}let a=o(n,t,i);try{return y(a)}finally{if(f)v(n,r,h,t,a);else{let e=b();v(e,r,h,t,a),C(e,r,h),x(e)}}},{get signal(){return d||(d=new AbortController),d.signal},get setSelf(){return u(r)||console.warn("setSelf function cannot be used with read-only atom"),!p&&u(r)&&(p=(...e)=>{if(f&&console.warn("setSelf function cannot be called in sync"),!f)return I(r,...e)}),p}});if(s(r,h,_),m(_)){null==(a=_.onCancel)||a.call(_,()=>null==d?void 0:d.abort());let e=()=>{if(h.m){let e=b();C(e,r,h),x(e)}};_.then(e,e)}return h}catch(e){return delete h.v,h.e=e,++h.n,h}finally{f=!1}},a=(t,n,r)=>{var i,s;let o=new Map;for(let t of(null==(i=r.m)?void 0:i.t)||[])o.set(t,e(t));for(let t of r.p)o.set(t,e(t));return null==(s=w(t,n))||s.forEach(t=>{o.set(t,e(t))}),o},d=(e,t,n)=>{let[r,i]=function(e,t,n){let r=[],i=new Set,s=new Set,o=[[t,n]];for(;o.length>0;){let[t,n]=o[o.length-1];if(s.has(t)){o.pop();continue}if(i.has(t)){r.push([t,n,n.n]),s.add(t),o.pop();continue}for(let[r,s]of(i.add(t),a(e,t,n)))t===r||i.has(r)||o.push([r,s])}return[r,s]}(e,t,n),s=new Set([t]);for(let t=r.length-1;t>=0;--t){let[n,a,l]=r[t],c=!1;for(let e of a.d.keys())if(e!==n&&s.has(e)){c=!0;break}c&&(o(e,n,i),C(e,n,a),l!==a.n&&(S(e,n,a),s.add(n))),i.delete(n)}},E=(t,r,...i)=>{let a=!0;try{return n(r,e=>y(o(t,e)),(n,...i)=>{let o=e(n);try{if(!l(r,n))return E(t,n,...i);{if(!c(n))throw Error("atom not writable");let e=o.n,r=i[0];s(n,o,r),C(t,n,o),e!==o.n&&(S(t,n,o),d(t,n,o));return}}finally{a||x(t)}},...i)}finally{a=!1}
5},I=(e,...t)=>{let n=b();try{return E(n,e,...t)}finally{x(n)}},C=(t,n,r)=>{if(r.m&&!p(r.v)){for(let i of r.d.keys())r.m.d.has(i)||(A(t,i,e(i)).t.add(n),r.m.d.add(i));for(let i of r.m.d||[])if(!r.d.has(i)){r.m.d.delete(i);let s=M(t,i,e(i));null==s||s.t.delete(n)}}},A=(t,n,s)=>{if(!s.m){for(let r of(o(t,n),s.d.keys()))A(t,r,e(r)).t.add(n);if(s.m={l:new Set,d:new Set(s.d.keys()),t:new Set},i.add(n),u(n)){let e;let i=s.m,o=(t,r)=>{let i=!0;e=(...e)=>{try{return E(t,n,...e)}finally{i||x(t)}};try{return r()}finally{i=!1}};k(t,()=>{let s=o(t,()=>r(n,(...t)=>e(...t)));s&&(i.u=e=>o(e,s))})}}return s.m},M=(t,n,r)=>{if(r.m&&!r.m.l.size&&!Array.from(r.m.t).some(t=>{var r;return null==(r=e(t).m)?void 0:r.d.has(n)})){let s=r.m.u;for(let o of(s&&k(t,()=>s(t)),delete r.m,i.delete(n),r.d.keys())){let r=M(t,o,e(o));null==r||r.t.delete(n)}return}return r.m},R={get:e=>y(o(void 0,e)),set:I,sub:(t,n)=>{let r=b(),i=e(t),s=A(r,t,i).l;return s.add(n),x(r),()=>{s.delete(n);let e=b();M(e,t,i),x(e)}},unstable_derive:i=>T(...i(e,t,n,r))};return Object.assign(R,{dev4_get_internal_weak_map:()=>({get:t=>{let n=e(t);if(0!==n.n)return n}}),dev4_get_mounted_atoms:()=>i,dev4_restore_atoms:t=>{let n=b();for(let[r,i]of t)if(c(r)){let t=e(r),o=t.n;s(r,t,i),C(n,r,t),o!==t.n&&(S(n,r,t),d(n,r,t))}x(n)}}),R},I=()=>{let e=new WeakMap;return T(t=>{if(!t)throw Error("Atom is undefined or null");let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n)),n},(e,...t)=>e.read(...t),(e,...t)=>e.write(...t),(e,...t)=>{var n;return null==(n=e.onMount)?void 0:n.call(e,...t)})},C=()=>(r||(r=I(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=r),globalThis.__JOTAI_DEFAULT_STORE__!==r&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),r)}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(9066),t(6840),t(3079)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.