PageSourceSearch

https://cdn.nextgenclassroom.se/_next/static/chunks/d959cc94b041124d.js

js nextgenclassroom.se collected 2026-10-08 00:15:23 UTC 343,536 bytes, 23 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,187076,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getAssetPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(456198);function a(){let e=document.currentScript;if(!(e instanceof HTMLScriptElement))throw Object.defineProperty(new n.InvariantError(`Expected document.currentScript to be a <script> element. Received ${e} instead.`),"__NEXT_ERROR_CODE",{value:"E783",enumerable:!1,configurable:!0});let{pathname:t}=new URL(e.src),r=t.indexOf("/_next/");if(-1===r)throw Object.defineProperty(new n.InvariantError(`Expected document.currentScript src to contain '/_next/'. Received ${e.src} instead.`),"__NEXT_ERROR_CODE",{value:"E784",enumerable:!1,configurable:!0});return t.slice(0,r)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},570460,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"appBootstrap",{enumerable:!0,get:function(){return i}});let n=e.r(187076),a=e.r(828434);function i(e){var t,r;let i=(0,n.getAssetPrefix)();t=self.__next_s,r=()=>{e(i)},t&&t.length?t.reduce((e,[t,r])=>e.then(()=>new Promise((e,n)=>{let i=document.createElement("script");r&&(0,a.setAttributesFromProps)(i,r),t?(i.src=t,i.onload=()=>e(),i.onerror=n):r&&(i.innerHTML=r.children,setTimeout(e)),document.head.appendChild(i)})),Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}window.next={version:"16.0.10",appDir:!0},("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},515196,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getObjectClassLabel:function(){return i},isPlainObject:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function i(e){return Object.prototype.toString.call(e)}function s(e){if("[object Object]"!==i(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},845529,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return s},getProperError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(515196);function s(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){let t;return s(e)?e:Object.defineProperty(Error((0,i.isPlainObject)(e)?(t=new WeakSet,JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},229601,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"reportGlobalError",{enumerable:!0,get:function(){return n}});let n="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},335426,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRecoverableError:function(){return c},onRecoverableError:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(481258),s=e.r(49611),o=i._(e.r(845529)),l=e.r(229601),u=new WeakSet;function c(e){return u.has(e)}let d=e=>{let t=(0,o.default)(e)&&"cause"in e?e.cause:e;(0,s.isBailoutToCSRError)(t)||(0,l.reportGlobalError)(t)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},628605,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}static from(e,t=1e-4){let r=new n(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(n)}return t}}},412362,(e,t,r)=>{"use strict";function n(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},185854,(e,t,r)=>{"use strict";let n;function a(e){return(void 0===n&&"undefined"!=typeof window&&(n=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),n)?.createScriptURL(e)||e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return a}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},334659,(e,t,r)=>{"use strict";function n(){return""}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},644,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createRouteLoader:function(){return y},getClientBuildManifest:function(){return g},isAssetError:function(){return p},markAssetError:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});e.r(481258),e.r(412362);let i=e.r(185854),s=e.r(72856),o=e.r(334659),l=e.r(410436);function u(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let i=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:i}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):i}let c=Symbol("ASSET_LOAD_ERROR");function d(e){return Object.defineProperty(e,c,{})}function p(e){return e&&c in e}let h=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}(),f=()=>(0,o.getDeploymentIdQueryOrEmptyString)();function m(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,s.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function g(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):m(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,d(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function _(e,t){return g().then(r=>{if(!(t in r))throw d(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let n=r[t].map(t=>e+"/_next/"+(0,l.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,i.__unsafeCreateTrustedScriptURL)(e)+f()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function y(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(d(Object.defineProperty(Error(`Failed to load script: ${e}
1`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function o(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw d(e)})),t}return{whenEntrypoint:e=>u(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return u(r,a,()=>{let a;return m(_(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(i)),Promise.all(n.map(o))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,d(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>a?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(h?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let i=`
2      link[rel="prefetch"][href^="${t}"],
3      link[rel="preload"][href^="${t}"],
4      script[src^="${t}"]`;if(document.querySelector(i))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>a(d(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,s.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},342497,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let i=n.slice(1,-1),s=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),s=!0),i.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${i}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${i}
4').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(i.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${i}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(r)if(s){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,i),this.optionalRestSlugName=i,n="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,i),this.restSlugName=i,n="[...]"}else{if(s)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,i),this.slugName=i,n="[]"}}this.children.has(n)||this.children.set(n,new i),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function s(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},n=[];for(let a=0;a<e.length;a++){let i=t(e[a]);r[i]=a,n[a]=i}return s(n).map(t=>e[r[t]])}},171443,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let n=e.r(480259),a=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,i=/\/\[[^/]+\](?=\/|$)/;function s(e,t=!0){return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?i.test(e):a.test(e)}},598933,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return i.getSortedRouteObjects},getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(342497),s=e.r(171443)},466493,(e,t,r)=>{"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathSep",{enumerable:!0,get:function(){return n}})},399754,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return i}});let n=e.r(598933),a=e.r(466493);function i(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},963236,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e,t){let r;if(!t)return{pathname:e};let a=n.get(t);a||(a=t.map(e=>e.toLowerCase()),n.set(t,a));let i=e.split("/",2);if(!i[1])return{pathname:e};let s=i[1].toLowerCase(),o=a.indexOf(s);return o<0?{pathname:e}:(r=t[o],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},980928,(e,t,r)=>{"use strict";function n(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}
4Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},337386,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return i}});let n=e.r(716884),a=e.r(44488);function i(e,t,r=!0){let s=new URL("undefined"==typeof window?"http://n":(0,n.getLocationOrigin)()),o=t?new URL(t,s):e.startsWith(".")?new URL("undefined"==typeof window?"http://n":window.location.href):s,{pathname:l,searchParams:u,search:c,hash:d,href:p,origin:h}=new URL(e,o);if(h!==s.origin)throw Object.defineProperty(Error(`invariant: invalid relative URL, router received ${e}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:l,query:r?(0,a.searchParamsToUrlQuery)(u):void 0,search:c,hash:d,href:p.slice(h.length),slashes:void 0}}},393385,(e,t,r)=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/path-to-regexp/");var e={};(()=>{function t(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var a="",i=r+1;i<e.length;){var s=e.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s){a+=e[i++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=i;continue}if("("===n){var o=1,l="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if("\\"===e[i]){l+=e[i++]+e[i++];continue}if(")"===e[i]){if(0==--o){i++;break}}else if("("===e[i]&&(o++,"?"!==e[i+1]))throw TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(o)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,i=void 0===n?"./":n,s=t.delimiter,o=void 0===s?"/#?":s,l=[],u=0,c=0,d="",p=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},h=function(e){var t=p(e);if(void 0!==t)return t;var n=r[c],a=n.type,i=n.index;throw TypeError("Unexpected ".concat(a," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<o.length;t++){var r=o[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(a(o),"]+?"):"(?:(?!".concat(a(r),")[^").concat(a(o),"])+?")};c<r.length;){var _=p("CHAR"),y=p("NAME"),v=p("PATTERN");if(y||v){var E=_||"";-1===i.indexOf(E)&&(d+=E,E=""),d&&(l.push(d),d=""),l.push({name:y||u++,prefix:E,suffix:"",pattern:v||g(E),modifier:p("MODIFIER")||""});continue}var S=_||p("ESCAPED_CHAR");if(S){d+=S;continue}if(d&&(l.push(d),d=""),p("OPEN")){var E=f(),b=p("NAME")||"",T=p("PATTERN")||"",I=f();h("CLOSE"),l.push({name:b||(T?u++:""),pattern:b&&!T?g(E):T,prefix:E,suffix:I,modifier:p("MODIFIER")||""});continue}h("END")}return l}function r(e,t){void 0===t&&(t={});var r=i(t),n=t.encode,a=void 0===n?function(e){return e}:n,s=t.validate,o=void 0===s||s,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var i=e[n];if("string"==typeof i){r+=i;continue}var s=t?t[i.name]:void 0,u="?"===i.modifier||"*"===i.modifier,c="*"===i.modifier||"+"===i.modifier;if(Array.isArray(s)){if(!c)throw TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===s.length){if(u)continue;throw TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var d=0;d<s.length;d++){var p=a(s[d],i);if(o&&!l[n].test(p))throw TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(p,'"'));r+=i.prefix+p+i.suffix}continue}if("string"==typeof s||"number"==typeof s){var p=a(String(s),i);if(o&&!l[n].test(p))throw TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(p,'"'));r+=i.prefix+p+i.suffix;continue}if(!u){var h=c?"an array":"a string";throw TypeError('Expected "'.concat(i.name,'" to be ').concat(h))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,a=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var i=n[0],s=n.index,o=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?o[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return a(e,r)}):o[r.name]=a(n[e],r)}}(l);return{path:i,index:s,params:o}}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function s(e,t,r){void 0===r&&(r={});for(var n=r.strict,s=void 0!==n&&n,o=r.start,l=r.end,u=r.encode,c=void 0===u?function(e){return e}:u,d=r.delimiter,p=r.endsWith,h="[".concat(a(void 0===p?"":p),"]|$"),f="[".concat(a(void 0===d?"/#?":d),"]"),m=void 0===o||o?"^":"",g=0;g<e.length;g++){var _=e[g];if("string"==typeof _)m+=a(c(_));else{var y=a(c(_.prefix)),v=a(c(_.suffix));if(_.pattern)if(t&&t.push(_),y||v)if("+"===_.modifier||"*"===_.modifier){var E="*"===_.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(_.pattern,")(?:").concat(v).concat(y,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(E)}else m+="(?:".concat(y,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else{if("+"===_.modifier||"*"===_.modifier)throw TypeError('Can not repeat "'.concat(_.name,'" without a prefix and suffix'));m+="(".concat(_.pattern,")").concat(_.modifier)}else m+="(?:".concat(y).concat(v,")").concat(_.modifier)}}if(void 0===l||l)s||(m+="".concat(f,"?")),m+=r.endsWith?"(?=".concat(h,")"):"$";else{var S=e[e.length-1],b="string"==typeof S?f.indexOf(S[S.length-1])>-1:void 0===S;s||(m+="(?:".concat(f,"(?=").concat(h,"))?")),b||(m+="(?=".concat(f,"|").concat(h,")"))}return new RegExp(m,i(r))}function o(e,r,n){if(e instanceof RegExp){var a;if(!r)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,c=l.exec(e.source);c;)r.push({name:c[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(e.source);return e}return Array.isArray(e)?(a=e.map(function(e){return o(e,r,n).source}),new RegExp("(?:".concat(a.join("|"),")"),i(n))):s(t(e,n),r,n)}
4Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=t,e.compile=function(e,n){return r(t(e,n),n)},e.tokensToFunction=r,e.match=function(e,t){var r=[];return n(o(e,r,t),r,t)},e.regexpToFunction=n,e.tokensToRegexp=s,e.pathToRegexp=o})(),t.exports=e})()},262498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAM_SEPARATOR:function(){return i},hasAdjacentParameterIssues:function(){return s},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return u},stripParameterSeparators:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="_NEXTSEP_";function s(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${i}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${i}`)}function l(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function u(e){return e.replace(RegExp(`\\)${i}`,"g"),")")}function c(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=n.replace(RegExp(`^${i}`),""):Array.isArray(n)?t[r]=n.map(e=>"string"==typeof e?e.replace(RegExp(`^${i}`),""):e):t[r]=n;return t}},373474,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={safeCompile:function(){return l},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return u},safeRouteMatcher:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(393385),s=e.r(262498);function o(e,t,r){if("string"!=typeof e)return(0,i.pathToRegexp)(e,t,r);let n=(0,s.hasAdjacentParameterIssues)(e),a=n?(0,s.normalizeAdjacentParameters)(e):e;try{return(0,i.pathToRegexp)(a,t,r)}catch(a){if(!n)try{let n=(0,s.normalizeAdjacentParameters)(e);return(0,i.pathToRegexp)(n,t,r)}catch(e){}throw a}}function l(e,t){let r=(0,s.hasAdjacentParameterIssues)(e),n=r?(0,s.normalizeAdjacentParameters)(e):e;try{let e=(0,i.compile)(n,t);if(r)return t=>(0,s.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,s.normalizeAdjacentParameters)(e),n=(0,i.compile)(r,t);return e=>(0,s.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function u(e,t){let r=(0,i.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,s.stripParameterSeparators)(t.params)}}}function c(e){return t=>{let r=e(t);return!!r&&(0,s.stripParameterSeparators)(r)}}},938573,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let n=e.r(716884),a=e.r(373474);function i({re:e,groups:t}){return(0,a.safeRouteMatcher)(r=>{let a=e.exec(r);if(!a)return!1;let i=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},s={};for(let[e,r]of Object.entries(t)){let t=a[r.pos];void 0!==t&&(r.repeat?s[e]=t.split("/").map(e=>i(e)):s[e]=i(t))}return s})}},689951,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_SUFFIX:function(){return _},APP_DIR_ALIAS:function(){return B},CACHE_ONE_YEAR:function(){return N},DOT_NEXT_ALIAS:function(){return U},ESLINT_DEFAULT_DIRS:function(){return ei},GSP_NO_RETURNED_VALUE:function(){return Z},GSSP_COMPONENT_MEMBER_ERROR:function(){return er},GSSP_NO_RETURNED_VALUE:function(){return ee},HTML_CONTENT_TYPE_HEADER:function(){return s},INFINITE_CACHE:function(){return C},INSTRUMENTATION_HOOK_FILENAME:function(){return D},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return c},MIDDLEWARE_FILENAME:function(){return P},MIDDLEWARE_LOCATION_REGEXP:function(){return k},NEXT_BODY_SUFFIX:function(){return E},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return O},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return b},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return T},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return x},NEXT_CACHE_TAGS_HEADER:function(){return S},NEXT_CACHE_TAG_MAX_ITEMS:function(){return R},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return y},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return u}
4,NEXT_META_SUFFIX:function(){return v},NEXT_QUERY_PARAM_PREFIX:function(){return l},NEXT_RESUME_HEADER:function(){return I},NON_STANDARD_NODE_ENV:function(){return en},PAGES_DIR_ALIAS:function(){return L},PRERENDER_REVALIDATE_HEADER:function(){return d},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return p},PROXY_FILENAME:function(){return A},PROXY_LOCATION_REGEXP:function(){return M},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Y},ROOT_DIR_ALIAS:function(){return $},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return q},RSC_ACTION_ENCRYPTION_ALIAS:function(){return G},RSC_ACTION_PROXY_ALIAS:function(){return H},RSC_ACTION_VALIDATE_ALIAS:function(){return F},RSC_CACHE_WRAPPER_ALIAS:function(){return W},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return z},RSC_MOD_REF_PROXY_ALIAS:function(){return j},RSC_PREFETCH_SUFFIX:function(){return h},RSC_SEGMENTS_DIR_SUFFIX:function(){return f},RSC_SEGMENT_SUFFIX:function(){return m},RSC_SUFFIX:function(){return g},SERVER_PROPS_EXPORT_ERROR:function(){return Q},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return J},SERVER_PROPS_SSG_CONFLICT:function(){return V},SERVER_RUNTIME:function(){return es},SSG_FALLBACK_EXPORT_ERROR:function(){return ea},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return X},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return K},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return i},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return et},WEBPACK_LAYERS:function(){return eu},WEBPACK_RESOURCE_QUERIES:function(){return ec},WEB_SOCKET_MAX_RECONNECTIONS:function(){return eo}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="text/plain",s="text/html; charset=utf-8",o="application/json; charset=utf-8",l="nxtP",u="nxtI",c="x-matched-path",d="x-prerender-revalidate",p="x-prerender-revalidate-if-generated",h=".prefetch.rsc",f=".segments",m=".segment.rsc",g=".rsc",_=".action",y=".json",v=".meta",E=".body",S="x-next-cache-tags",b="x-next-revalidated-tags",T="x-next-revalidate-tag-token",I="next-resume",R=128,w=256,x=1024,O="_N_T_",N=31536e3,C=0xfffffffe,P="middleware",k=`(?:src/)?${P}`,A="proxy",M=`(?:src/)?${A}`,D="instrumentation",L="private-next-pages",U="private-dot-next",$="private-next-root-dir",B="private-next-app-dir",j="private-next-rsc-mod-ref-proxy",F="private-next-rsc-action-validate",H="private-next-rsc-server-reference",W="private-next-rsc-cache-wrapper",z="private-next-rsc-track-dynamic-import",G="private-next-rsc-action-encryption",q="private-next-rsc-action-client-wrapper",Y="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",X="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",J="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",V="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",K="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Q="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Z="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",ee="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",et="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",er="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",en='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ea="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ei=["app","pages","components","lib","src"],es={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},eo=12,el={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},eu={...el,GROUP:{builtinReact:[el.reactServerComponents,el.actionBrowser],serverOnly:[el.reactServerComponents,el.actionBrowser,el.instrument,el.middleware],neutralTarget:[el.apiNode,el.apiEdge],clientOnly:[el.serverSideRendering,el.appPagesBrowser],bundled:[el.reactServerComponents,el.actionBrowser,el.serverSideRendering,el.appPagesBrowser,el.shared,el.instrument,el.middleware],appPages:[el.reactServerComponents,el.serverSideRendering,el.appPagesBrowser,el.actionBrowser]}},ec={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},771133,(e,t,r)=>{"use strict";
4Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,a=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(a,"\\$&"):e}},202585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return a}});let n=e.r(573690);function a(e){let[t,r,a]=e,{layout:i,template:s}=a,{page:o}=a;o=t===n.DEFAULT_SEGMENT_KEY?a.defaultPage:o;let l=i?.[1]||s?.[1]||o?.[1];return{page:o,segment:t,modules:a,conventionPath:l,parallelRoutes:r}}},829178,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return s},isCatchAll:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(480259);function s(e){let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?`catchall-intercepted-${t}`:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?`dynamic-intercepted-${t}`:"dynamic",param:e.slice(1,-1)}:null}function o(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},474778,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAMETER_PATTERN:function(){return c},getDynamicParam:function(){return u},interpolateParallelRouteParams:function(){return l},parseMatchedParameter:function(){return p},parseParameter:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(456198),s=e.r(202585),o=e.r(829178);function l(e,t,r,n){let a=structuredClone(t),i=[{tree:e,depth:0}],l=r.split("/").slice(1);for(;i.length>0;){let{tree:e,depth:t}=i.pop(),{segment:r,parallelRoutes:u}=(0,s.parseLoaderTree)(e),c=(0,o.getSegmentParam)(r);if(c&&!a.hasOwnProperty(c.param)&&!n?.has(c.param))switch(c.type){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let d=l.slice(t).flatMap(e=>{let t=(0,o.getSegmentParam)(e);return t?a[t.param]:e}).filter(e=>void 0!==e);d.length>0&&(a[c.param]=d);break;case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(t<l.length){let e=l[t],r=(0,o.getSegmentParam)(e);a[c.param]=r?a[r.param]:e}break;default:c.type}let p=t;for(let e of(!(r.startsWith("(")&&r.endsWith(")"))&&""!==r&&p++,Object.values(u)))i.push({tree:e,depth:p})}return a}function u(e,t,r,n){let a=function(e,t,r){let n=e[t];if(r?.has(t)){let[e]=r.get(t);n=e}else Array.isArray(n)?n=n.map(e=>encodeURIComponent(e)):"string"==typeof n&&(n=encodeURIComponent(n));return n}(e,t,n);if(!a||0===a.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r]};throw Object.defineProperty(new i.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:t,value:a,treeSegment:[t,Array.isArray(a)?a.join("/"):a,r],type:r}}let c=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function d(e){let t=e.match(c);return t?p(t[2]):p(e)}function p(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},398547,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(689951),s=e.r(480259),o=e.r(771133),l=e.r(916908),u=e.r(474778);function c(e,t,r){let n={},a=1,i=[];for(let c of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=s.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),l=c.match(u.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:s}=(0,u.parseMatchedParameter)(l[2]);n[t]={pos:a++,repeat:s,optional:r},i.push(`/${(0,o.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:s}=(0,u.parseMatchedParameter)(l[2]);n[e]={pos:a++,repeat:t,optional:s},r&&l[1]&&i.push(`/${(0,o.escapeStringRegexp)(l[1])}`);let c=t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(c=c.substring(1)),i.push(c)}else i.push(`/${(0,o.escapeStringRegexp)(c)}`);t&&l&&l[3]&&i.push((0,o.escapeStringRegexp)(l[3]))}return{parameterizedRoute:i.join(""),groups:n}}function d(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:a,groups:i}=c(e,t,r),s=a;return n||(s+="(?:/)?"),{re:RegExp(`^${s}$`),groups:i}}function p({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:a,backreferenceDuplicateKeys:i}){let s,{key:l,optional:c,repeat:d}=(0,u.parseMatchedParameter)(r),p=l.replace(/\W/g,"");a&&(p=`${a}${p}`);let h=!1;(0===p.length||p.length>30)&&(h=!0),isNaN(parseInt(p.slice(0,1)))||(h=!0),h&&(p=t());let f=p in n;a?n[p]=`${a}${l}`:n[p]=l;let m=e?(0,o.escapeStringRegexp)(e):"";return s=f&&i?`\\k<${p}>`:d?`(?<${p}>.+?)`:`(?<${p}>
4[^/]+?)`,{key:l,pattern:c?`(?:/${m}${s})?`:`/${m}${s}`,cleanedKey:p,optional:c,repeat:d}}function h(e,t,r,n,a,c={names:{},intercepted:{}}){let d,f=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],_=[];for(let d of(c=structuredClone(c),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=s.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),h=d.match(u.PARAMETER_PATTERN),y=l?h?.[1]:void 0;if(y&&h?.[2]?(e=t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,c.intercepted[h[2]]=y):e=h?.[2]&&c.intercepted[h[2]]?t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?i.NEXT_QUERY_PARAM_PREFIX:void 0,y&&h&&h[2]){let{key:t,pattern:r,cleanedKey:n,repeat:i,optional:s}=p({getSafeRouteKey:f,interceptionMarker:y,segment:h[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a});g.push(r),_.push(`/${h[1]}:${c.names[t]??n}${i?s?"*":"+":""}`),c.names[t]??=n}else if(h&&h[2]){n&&h[1]&&(g.push(`/${(0,o.escapeStringRegexp)(h[1])}`),_.push(`/${h[1]}`));let{key:t,pattern:r,cleanedKey:i,repeat:s,optional:l}=p({getSafeRouteKey:f,segment:h[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a}),u=r;n&&h[1]&&(u=u.substring(1)),g.push(u),_.push(`/:${c.names[t]??i}${s?l?"*":"+":""}`),c.names[t]??=i}else g.push(`/${(0,o.escapeStringRegexp)(d)}`),_.push(`/${d}`);r&&h&&h[3]&&(g.push((0,o.escapeStringRegexp)(h[3])),_.push(h[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:_.join(""),reference:c}}
4function f(e,t){let r=h(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),n=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(n+="(?:/)?"),{...d(e,t),namedRegex:`^${n}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=c(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:a}=h(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${a}${n?"(?:(/.*)?)":""}$`}}},488144,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=(...e)=>{};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},853799,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return n}}),e.r(74664);let n=(e,...t)=>e;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},64088,(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeLocale",{enumerable:!0,get:function(){return n}}),e.r(264160),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},44174,(e,t,r)=>{"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"omit",{enumerable:!0,get:function(){return n}})},829856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return i}});let n=e.r(938573),a=e.r(398547);function i(e,t,r){let i="",s=(0,a.getRouteRegex)(e),o=s.groups,l=(t!==e?(0,n.getRouteMatcher)(s)(t):"")||r;i=e;let u=Object.keys(o);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=o[e],a=`[${r?"...":""}${e}]`;return n&&(a=`${!t?"/":""}[${a}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(i=i.replace(a,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:u,result:i}}},151530,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return h}});let n=e.r(44488),a=e.r(713421),i=e.r(44174),s=e.r(716884),o=e.r(74664),l=e.r(837636),u=e.r(598933),c=e.r(829856),d=e.r(398547),p=e.r(938573);function h(e,t,r){let h,f="string"==typeof t?t:(0,a.formatWithValidation)(t),m=f.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?f.slice(m[0].length):f;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${f}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,s.normalizeRepeatedSlashes)(g);f=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(f))return r?[f]:f;try{let t=f.startsWith("#")?e.asPath:e.pathname;if(f.startsWith("?")&&(t=e.asPath,(0,u.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,p.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}h=new URL(t,"http://n")}catch(e){h=new URL("/","http://n")}try{let e=new URL(f,h);e.pathname=(0,o.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:s,params:o}=(0,c.interpolateAs)(e.pathname,e.pathname,r);s&&(t=(0,a.formatWithValidation)({pathname:s,hash:e.hash,query:(0,i.omit)(r,o)}))}let s=e.origin===h.origin?e.href.slice(e.origin.length):e.href;return r?[s,t||s]:s}catch(e){return r?[f]:f}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
4dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},416552,(e,t,r)=>{"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isAPIRoute",{enumerable:!0,get:function(){return n}})},369608,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(266445);function a(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},209586,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=e.r(963236),a=e.r(369608),i=e.r(266445);function s(e,t){let{basePath:r,i18n:s,trailingSlash:o}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):o};r&&(0,i.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,a.removePathPrefix)(l.pathname,r),l.basePath=r);let u=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],u="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=u)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,s.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(u):(0,n.normalizeLocalePath)(u,s.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},664075,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return a}});let n=e.r(264160);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:i}=(0,n.parsePath)(e);return`${r}${t}${a}${i}`}},381534,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return i}});let n=e.r(615295),a=e.r(266445);function i(e,t,r,i){if(!t||t===r)return e;let s=e.toLowerCase();return!i&&((0,a.pathHasPrefix)(s,"/api")||(0,a.pathHasPrefix)(s,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},549131,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=e.r(916908),a=e.r(615295),i=e.r(664075),s=e.r(381534);function o(e){let t=(0,s.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,i.addPathSuffix)((0,a.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,i.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},71663,(e,t,r)=>{"use strict";function n(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let a=r[n];if("query"===a){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let a=r[n];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return n}})},48967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getPathMatch",{enumerable:!0,get:function(){return a}});let n=e.r(393385);function a(e,t){let r=[],a=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),i=(0,n.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(a.source),a.flags):a,r);return(e,n)=>{if("string"!=typeof e)return!1;let a=i(e);if(!a)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete a.params[e.name];return{...n,...a.params}}}},38645,(e,t,r)=>{"use strict";
4Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseUrl",{enumerable:!0,get:function(){return i}});let n=e.r(44488),a=e.r(337386);function i(e){if(e.startsWith("/"))return(0,a.parseRelativeUrl)(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:t.search,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},960874,(e,t,r)=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/cookie/");var e,r,n,a,i={};i.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var a={},i=t.split(n),s=(r||{}).decode||e,o=0;o<i.length;o++){var l=i[o],u=l.indexOf("=");if(!(u<0)){var c=l.substr(0,u).trim(),d=l.substr(++u,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==a[c]&&(a[c]=function(e,t){try{return t(e)}catch(t){return e}}(d,s))}}return a},i.serialize=function(e,t,n){var i=n||{},s=i.encode||r;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!a.test(e))throw TypeError("argument name is invalid");var o=s(t);if(o&&!a.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=i.maxAge){var u=i.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(i.domain){if(!a.test(i.domain))throw TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!a.test(i.path))throw TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invali
4d");l+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l},e=decodeURIComponent,r=encodeURIComponent,n=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,t.exports=i})()},461675,(e,t,r)=>{"use strict";function n(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:n}=e.r(960874);return n(Array.isArray(r)?r.join("; "):r)}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCookieParser",{enumerable:!0,get:function(){return n}})},427469,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compileNonPath:function(){return p},matchHas:function(){return d},parseDestination:function(){return h},prepareDestination:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(771133),s=e.r(38645),o=e.r(480259),l=e.r(461675),u=e.r(373474);function c(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t,r=[],n=[]){let a={},i=r=>{let n,i=r.key;switch(r.type){case"header":i=i.toLowerCase(),n=e.headers[i];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[i];break;case"host":{let{host:t}=e?.headers||{};n=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return a[function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(i)]=n,!0;if(n){let e=RegExp(`^${r.value}$`),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{a[e]=t.groups[e]}):"host"===r.type&&t[0]&&(a.host=t[0])),!0}return!1};return!(!r.every(e=>i(e))||n.some(e=>i(e)))&&a}function p(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,u.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function h(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(`:${(0,i.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,s.parseUrl)(t),n=r.pathname;n&&(n=c(n));let a=r.href;a&&(a=c(a));let o=r.hostname;o&&(o=c(o));let l=r.hash;l&&(l=c(l));let u=r.search;u&&(u=c(u));let d=r.origin;return d&&(d=c(d)),{...r,pathname:n,hostname:o,href:a,hash:l,search:u,origin:d}}function f(e){let t,r,n=h(e),{hostname:a,query:i,search:s}=n,l=n.pathname;n.hash&&(l=`${l}${n.hash}`);let d=[],f=[];for(let e of((0,u.safePathToRegexp)(l,f),f))d.push(e.name);if(a){let e=[];for(let t of((0,u.safePathToRegexp)(a,e),e))d.push(t.name)}let m=(0,u.safeCompile)(l,{validate:!1});for(let[r,n]of(a&&(t=(0,u.safeCompile)(a,{validate:!1})),Object.entries(i)))Array.isArray(n)?i[r]=n.map(t=>p(c(t),e.params)):"string"==typeof n&&(i[r]=p(c(n),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>d.includes(e)))for(let t of g)t in i||(i[t]=e.params[t]);if((0,o.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=o.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[a,i]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=a,n.hash=`${i?"#":""}${i||""}`,n.search=s?p(s,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,
4configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:i,parsedDestination:n}}},863291,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(48967),a=e.r(427469),i=e.r(916908),s=e.r(963236),o=e.r(252415),l=e.r(337386);function u(e,t,r,u,c,d){let p,h=!1,f=!1,m=(0,l.parseRelativeUrl)(e),g=(0,i.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.removeBasePath)(m.pathname),d).pathname),_=r=>{let l=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,a.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return f=!0,!0;let n=(0,a.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:u});if(m=n.parsedDestination,e=n.newUrl,Object.assign(u,n.parsedDestination.query),g=(0,i.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.removeBasePath)(e),d).pathname),t.includes(g))return h=!0,p=g,!0;if((p=c(g))!==e&&t.includes(p))return h=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)_(r.beforeFiles[e]);if(!(h=t.includes(g))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(_(r.afterFiles[e])){y=!0;break}}if(y||(p=c(g),y=h=t.includes(p)),!y){for(let e=0;e<r.fallback.length;e++)if(_(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:h,resolvedHref:p,externalDest:f}}},234379,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createKey:function(){return X},default:function(){return K},matchesMiddleware:function(){return B}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let s=e.r(481258),o=e.r(744066),l=e.r(916908),u=e.r(644),c=e.r(211050),d=o._(e.r(845529)),p=e.r(399754),h=e.r(963236),f=s._(e.r(980928)),m=e.r(716884),g=e.r(171443),_=e.r(337386),y=e.r(938573),v=e.r(398547),E=e.r(713421);e.r(488144);let S=e.r(264160),b=e.r(853799),T=e.r(64088),I=e.r(252415),R=e.r(994461),w=e.r(812526),x=e.r(151530),O=e.r(416552),N=e.r(209586),C=e.r(549131),P=e.r(71663),k=e.r(837636),A=e.r(324877),M=e.r(44174),D=e.r(829856),L=e.r(416340),U=e.r(689951);function $(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function B(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,S.parsePath)(e.asPath),n=(0,w.hasBasePath)(r)?(0,I.removeBasePath)(r):r,a=(0,R.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function j(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[n,a]=(0,x.resolveHref)(e,t,!0),i=(0,m.getLocationOrigin)(),s=n.startsWith(i),o=a&&a.startsWith(i);n=j(n),a=a?j(a):a;let l=s?n:(0,R.addBasePath)(n),u=r?j((0,x.resolveHref)(e,r)):a||n;return{url:l,as:o?u:(0,R.addBasePath)(u)}}function H(e,t){let r=(0,l.removeTrailingSlash)((0,p.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,v.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function W(e){if(!await B(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let a={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),s=i||t.headers.get("x-nextjs-matched-path"),o=t.headers.get(U.MATCHED_PATH_HEADER);if(!o||s||o.includes("__next_data_catchall")||o.includes("/_error")||o.includes("/404")||(s=o),s){if(s.startsWith("/")){let t=(0,_.parseRelativeUrl)(s),o=(0,N.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),c=(0,l.removeTrailingSlash)(o.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,u.getClientBuildManifest)()]).then(([a,{__rewrites:s}])=>{let l=(0,b.addLocale)(o.pathname,o.locale);if((0,g.isDynamicRoute)(l)||!i&&a.includes((0,h.normalizeLocalePath)((0,I.removeBasePath)(l),r.router.locales).pathname)){let r=(0,N.getNextPathnameInfo)((0,_.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0}
4);t.pathname=l=(0,R.addBasePath)(r.pathname)}{let e=n(l,a,s,t.query,e=>H(e,a),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,l=t.pathname,Object.assign(t.query,e.parsedAs.query))}let u=a.includes(c)?c:H((0,h.normalizeLocalePath)((0,I.removeBasePath)(t.pathname),r.router.locales).pathname,a);if((0,g.isDynamicRoute)(u)){let e=(0,y.getRouteMatcher)((0,v.getRouteRegex)(u))(l);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:u}})}let t=(0,S.parsePath)(e),o=(0,C.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${o}${t.query}${t.hash}`})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,S.parsePath)(c),t=(0,C.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(e.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}n=e.r(863291).default;let z="undefined"!=typeof window&&"scrollRestoration"in window.history&&!!function(){try{let e="__next";return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){}}(),G=Symbol("SSG_DATA_NOT_FOUND");function q(e){try{return JSON.parse(e)}catch(e){return null}}function Y({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:a,parseJSON:i,persistCache:s,isBackground:o,unstable_skipClientCache:l}){let{href:c}=new URL(e,window.location.href),d=o=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(e,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},{}),method:o?.method??"GET"}).then(t=>t.ok&&o?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:c}:t.text().then(r=>{if(!t.ok){if(n&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:c};if(404===t.status&&q(r)?.notFound)return{dataHref:e,json:{notFound:G},response:t,text:r,cacheKey:c};let i=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,u.markAssetError)(i),i}return{dataHref:e,json:i?q(r):null,response:t,text:r,cacheKey:c}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[c],e)).catch(e=>{throw l||delete t[c],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,u.markAssetError)(e),e});return l&&s?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[c]=Promise.resolve(e)),e)):void 0!==t[c]?t[c]:t[c]=d(o?{method:"HEAD"}:{})}function X(){return Math.random().toString(36).slice(2,10)}function J({url:e,router:t}){if(e===(0,R.addBasePath)((0,b.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let V=({route:e,router:t})=>{let r=!1,n=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}n===t.clc&&(t.clc=null)}};class K{static{this.events=(0,f.default)()}constructor(e,t,r,{initialProps:n,pageLoader:a,App:i,wrapApp:s,Component:o,err:u,subscription:c,isFallback:d,locale:p,locales:h,defaultLocale:f,domainLocales:y,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=X(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,E.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),(0,m.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:a,as:i,options:s,key:o}=n;if(z&&this._key!==o){try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}try{let e=sessionStorage.getItem("__next_scroll_"+o);t=JSON.parse(e)}catch{t={x:0,y:0}}}this._key=o;let{pathname:l}=(0,_.parseRelativeUrl)(a);this.isSsr&&i===(0,R.addBasePath)(this.asPath)&&l===(0,R.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",a,i,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};const S=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:o,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=K.events,this.pageLoader=a;const b=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!b&&!self.location.search&&0),this.state={route:S,pathname:e,query:t,asPath:b?e:r,isPreview:!!v,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"undefined"!=typeof window){if(!r.startsWith("//")){const n={locale:p},a=(0,m.getURL)();this._initialMatchesMiddlewarePromise=B({router:this,locale:p,asPath:a}).then(i=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",i?a:(0,E.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}
4),a,n),i))}window.addEventListener("popstate",this.onPopState),z&&(window.history.scrollRestoration="manual")}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if(z)try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}return{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){return{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(t,r,n,a){{if(!this._bfl_s&&!this._bfl_d){let r,i,{BloomFilter:s}=e.r(628605);try{({__routerFilterStatic:r,__routerFilterDynamic:i}=await (0,u.getClientBuildManifest)())}catch(e){if(console.error(e),a)return!0;return J({url:(0,R.addBasePath)((0,b.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let o={numItems:115,errorRate:1e-4,numBits:2205,numHashes:14,bitArray:[0,0,1,1,1,1,1,0,0,0,0,0,1,0,0,0,1,1,0,1,1,0,0,1,0,0,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,0,0,0,1,0,0,1,0,1,0,0,0,0,0,1,0,1,1,1,1,1,1,0,1,1,0,0,1,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,1,0,1,0,0,0,1,0,0,1,1,1,1,0,1,0,0,0,1,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,0,1,0,1,1,0,1,0,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,1,1,1,0,1,0,1,0,0,0,1,1,0,0,1,0,0,1,0,0,0,1,1,1,0,0,1,1,0,1,0,0,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,0,0,1,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1,0,0,0,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,0,0,1,1,1,0,1,1,0,1,1,1,1,1,0,1,1,1,1,0,1,1,0,0,0,1,1,1,1,0,1,0,1,1,0,0,1,1,1,0,1,0,1,1,0,1,1,1,1,0,1,0,1,1,1,1,0,0,1,0,1,1,0,0,0,0,0,1,0,0,1,1,1,1,1,1,0,1,0,0,1,1,1,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,1,1,0,1,0,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,1,0,0,0,0,1,0,1,1,1,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,0,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,0,1,1,0,1,0,0,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,0,0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,0,1,0,1,1,1,0,0,1,0,0,0,1,1,1,1,1,0,1,1,0,0,0,1,0,0,0,1,1,0,1,0,0,1,0,1,1,1,0,1,1,1,0,0,0,0,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,1,0,0,1,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,1,1,0,1,0,0,0,1,1,0,1,1,1,1,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1,1,1,0,1,1,0,0,1,1,1,1,1,0,1,1,1,1,0,1,1,0,0,0,0,0,0,0,1,0,0,1,1,0,1,1,1,0,0,1,1,0,1,1,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,0,0,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,1,1,1,1,1,1,0,1,1,0,1,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,0,0,1,1,1,0,0,0,0,0,1,0,0,1,1,1,0,1,1,1,1,0,1,1,0,1,0,0,0,0,0,0,1,1,1,1,0,1,0,0,1,1,0,1,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,0,1,0,1,0,1,0,0,0,1,0,0,1,0,1,0,1,1,0,1,1,0,1,0,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,0,1,1,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,0,0,1,1,0,1,0,0,0,0,1,1,0,1,1,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,1,1,1,1,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,1,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,1,0,1,1,0,0,1,1,0,1,1,1,0,1,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,1,1,0,1,0,0,1,0,0,1,0,0,0,1,1,1,0,1,1,1,0,1,0,0,1,1,0,1,1,0,1,0,0,0,1,0,1,1,0,1,1,0,1,1,1,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,1,1,0,1,1,0,0,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,1,0,1,1,1,0,0,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0,1,0,1,0,1,0,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,0,0,1,1,0,1,1,0,1,1,1,1,0,1,1,1,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,1,1,0,1,1,1,1,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,1,0,0,0,1,1,0,1,0,1,1,1,1,1,1,0,1,0,1,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,1,1,1,0,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,0,1,1,1,1,0,1,0,1,0,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1,1,0,0,1,1,1,0,0,1,0,0,0,0,1,1,1,0,1,1,1,1,1,0,0,0,0,1,1,0,0,1,1,0,1,1,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,1,1,0,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,1,1,0,0,0,1,0,1,1,0,0,0,1,0,0,0,1,1,1,1,0,1,1,1,1,1,1,0,1,0,1,1,0,1,0,1,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1,1,0,1,1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,1,1,0,1,1,1,1,0,1,1,1,0,1,1,0,0,1,1,1,1,1,0,1,1,0,1,1,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,1,0,1,0,0,1,0,1,0,1,1,0,0,0,1,0,1,1,0,0,1,1,0,1,1,1,1,0,1,0,0,1,1,1,0,0,1,1,1,1,1,1,0,1,0,1,0,0,0,0,1,1,0,0,0,0,0,1,0,1,1,1,0,0,0,1,1,0,1,1,1,0,1,1,0,1,0,1,1,1,0,0,0,1,1,0,0,0,1,1,1,1,0,0,1,1,1,1,0,1,0,0,1,1,0,0,1,0,0,0,1,1,1,1,0,1,0,1,1,1,1,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,0,1,1,0,0,1,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,1,0,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,1,1,1,0,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1,0,1,1,1,0,0,1,0,1,1,0,0,0,1,0,0,0,0,1,0,1,1,1,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,1,1,0,1,1,1,1,0,0,0,1,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,1,0,0,1,1,0,1,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,1,0,0,1,1,0,1,1,1,0,0,1,0,0,0,0,0,1,1,0,1,0,1,1,0,1,0,0,1,0,0,1,1,0,1,1,0,1,0,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,1,0,1,1,1,0,1,1,0,1,0,0,0,1,0,1,1,0,1,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,1,0,1,1,1,1,0,1,0,0,1,1,0,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,1,1,0,0,1,0,0,0,1,1,1,0,1,0,0,1,0,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,1,1,1,1,1,1,0,0,1,0,1,1,0,1,0,1,1,1,1,0,1]};!r&&o&&(r=o||void 0);let l={numItems:30,errorRate:1e-4,numBits:576,numHashes:14,bitArray:[0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,0,1,0,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,0,1,0,1,1,0,1,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,1,1,1,1,1,1,0,0,0,1,0,0,1,0,1,1,1,0,1,1,0,0,1,0,1,0,0,1,1,1,0,0,0,0,1,0,0,0,1,1,1,0,1,1,0,1,0,1,0,0,0,1,0,1,1,1,1,0,1,0,0,0,1,1,1,1,1,0,1,0,0,1,1,1,1,1,0,0,1,1,0,0,0,0,1,1,1,1,1,0,1,1,0,0,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,1,0,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,1,1,1,0,1,0,1,0,1,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,1,1,0,0,0,0,0,1,0,0,0,1,1,1,1,0,1,0,0,0,0,1,1,0,0,1,0,1,0,1,1,1,1,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,1,0,0,1,1,1,1,1,1,1,1,1,0,1,0,0,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0,0,0,1,0,1,0,1,0,0,1,0,1,1,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,1,0,0,1,0,0,0,1,0,1,1,1,1,1,0,1,0,0,1,0,0,0,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,1,1,1,0,1,1,1,1,1,0,1,0,0,1,1,0,1,1,1,0,0,1,0,1,0,0,1,0,0,1,1,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,1]};!i&&l&&(i=l||void 0),r?.numHashes&&(this._bfl_s=new s(r.numItems,r.errorRate),this._bfl_s.import(r)),i?.numHashes&&(this._bfl_d=new s(i.numItems,i.errorRate),this._bfl_d.import(i))}let i=!1,s=!1;for(let{as:e,allowMatchCurrent:o}of[{as:t},{as:r}])if(e){let r=(0,l.removeTrailingSlash)(new URL(e,"http://n").pathname),u=(0,R.addBasePath)((0,b.addLocale)(r,n||this.locale));if(o||r!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(i=i||!!this._bfl_s?.contains(r)||!!this._bfl_s?.contains(u),[r,u])){let t=e.split("/");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){s=!0;break}}}
4if(i||s){if(a)return!0;return J({url:(0,R.addBasePath)((0,b.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,a,i){let s,o;if(!(0,k.isLocalURL)(t))return J({url:t,router:this}),!1;let p=1===a._h;p||a.shallow||await this._bfl(r,void 0,a.locale);let h=p||a._shouldResolveHref||(0,S.parsePath)(t).pathname===(0,S.parsePath)(r).pathname,f={...this.state},x=!0!==this.isReady;this.isReady=!0;let O=this.isSsr;if(p||(this.isSsr=!1),p&&this.clc)return!1;let N=f.locale;m.ST&&performance.mark("routeChange");let{shallow:C=!1,scroll:A=!0}=a,L={shallow:C};this._inFlightRoute&&this.clc&&(O||K.events.emit("routeChangeError",$(),this._inFlightRoute,L),this.clc(),this.clc=null),r=(0,R.addBasePath)((0,b.addLocale)((0,w.hasBasePath)(r)?(0,I.removeBasePath)(r):r,a.locale,this.defaultLocale));let U=(0,T.removeLocale)((0,w.hasBasePath)(r)?(0,I.removeBasePath)(r):r,f.locale);this._inFlightRoute=r;let j=N!==f.locale;if(!p&&this.onlyAHashChange(U)&&!j){f.asPath=U,K.events.emit("hashChangeStart",r,L),this.changeState(e,t,r,{...a,scroll:!1}),A&&this.scrollToHash(U);try{await this.set(f,this.components[f.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&K.events.emit("routeChangeError",e,U,L),e}return K.events.emit("hashChangeComplete",r,L),!0}let W=(0,_.parseRelativeUrl)(t),{pathname:z,query:q}=W;try{[s,{__rewrites:o}]=await Promise.all([this.pageLoader.getPageList(),(0,u.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return J({url:r,router:this}),!1}this.urlIsNew(U)||j||(e="replaceState");let Y=r;z=z?(0,l.removeTrailingSlash)((0,I.removeBasePath)(z)):z;let X=(0,l.removeTrailingSlash)(z),V=r.startsWith("/")&&(0,_.parseRelativeUrl)(r).pathname;if(this.components[z]?.__appRouter)return J({url:r,router:this}),new Promise(()=>{});let Q=!!(V&&X!==V&&(!(0,g.isDynamicRoute)(X)||!(0,y.getRouteMatcher)((0,v.getRouteRegex)(X))(V))),Z=!a.shallow&&await B({asPath:r,locale:f.locale,router:this});if(p&&Z&&(h=!1),h&&"/_error"!==z)if(a._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,R.addBasePath)((0,b.addLocale)(U,f.locale),!0),s,o,q,e=>H(e,s),this.locales);if(e.externalDest)return J({url:r,router:this}),!0;Z||(Y=e.asPath),e.matchedPage&&e.resolvedHref&&(z=e.resolvedHref,W.pathname=(0,R.addBasePath)(z),Z||(t=(0,E.formatWithValidation)(W)))}else W.pathname=H(z,s),W.pathname!==z&&(z=W.pathname,W.pathname=(0,R.addBasePath)(z),Z||(t=(0,E.formatWithValidation)(W)));if(!(0,k.isLocalURL)(r))return J({url:r,router:this}),!1;Y=(0,T.removeLocale)((0,I.removeBasePath)(Y),f.locale),X=(0,l.removeTrailingSlash)(z);let ee=!1;if((0,g.isDynamicRoute)(X)){let e=(0,_.parseRelativeUrl)(Y),n=e.pathname,a=(0,v.getRouteRegex)(X);ee=(0,y.getRouteMatcher)(a)(n);let i=X===n,s=i?(0,D.interpolateAs)(X,n,q):{};if(ee&&(!i||s.result))i?r=(0,E.formatWithValidation)(Object.assign({},e,{pathname:s.result,query:(0,M.omit)(q,s.params)})):Object.assign(q,ee);else{let e=Object.keys(a.groups).filter(e=>!q[e]&&!a.groups[e].optional);if(e.length>0&&!Z)throw Object.defineProperty(Error((i?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${X}). `)+`Read more: https://nextjs.org/docs/messages/${i?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}p||K.events.emit("routeChangeStart",r,L);let et="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:X,pathname:z,query:q,as:r,resolvedAs:Y,routeProps:L,locale:f.locale,isPreview:f.isPreview,hasMiddleware:Z,unstable_skipClientCache:a.unstable_skipClientCache,isQueryUpdating:p&&!this.isFallback,isMiddlewareRewrite:Q});if(p||a.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,f.locale),"route"in n&&Z){X=z=n.route||X,L.shallow||(q=Object.assign({},n.query||{},q));let e=(0,w.hasBasePath)(W.pathname)?(0,I.removeBasePath)(W.pathname):W.pathname;if(ee&&z!==e&&Object.keys(ee).forEach(e=>{ee&&q[e]===ee[e]&&delete q[e]}),(0,g.isDynamicRoute)(z)){let e=!L.shallow&&n.resolvedAs?n.resolvedAs:(0,R.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,f.locale),!0);(0,w.hasBasePath)(e)&&(e=(0,I.removeBasePath)(e));let t=(0,v.getRouteRegex)(z),a=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);a&&Object.assign(q,a)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,
4n.newAs,a);else return J({url:n.destination,router:this}),new Promise(()=>{});let o=n.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.unstable_scriptLoader()).forEach(e=>{(0,c.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){a.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,_.parseRelativeUrl)(t);r.pathname=H(r.pathname,s);let{url:n,as:i}=F(this,t,t);return this.change(e,n,i,a)}return J({url:t,router:this}),new Promise(()=>{})}if(f.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===G){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:q,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}p&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);let l=a.shallow&&f.route===(n.route??X),u=a.scroll??(!p&&!l),h=i??(u?{x:0,y:0}:null),m={...f,route:X,pathname:z,query:q,asPath:U,isFallback:!1};if(p&&et){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:q,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isQueryUpdating:p&&!this.isFallback}),"type"in n)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);try{await this.set(m,n,h)}catch(e){throw(0,d.default)(e)&&e.cancelled&&K.events.emit("routeChangeError",e,U,L),e}return!0}if(K.events.emit("beforeHistoryChange",r,L),this.changeState(e,t,r,a),!(p&&!h&&!x&&!j&&(0,P.compareRouterStates)(m,this.state))){try{await this.set(m,n,h)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw p||K.events.emit("routeChangeError",n.error,U,L),n.error;p||K.events.emit("routeChangeComplete",r,L),u&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,d.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n={}){("pushState"!==e||(0,m.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:X()},"",r))}async handleRouteInfoError(e,t,r,n,a,i){if(e.cancelled)throw e;if((0,u.isAssetError)(e)||i)throw K.events.emit("routeChangeError",e,n,a),J({url:n,router:this}),$();console.error(e);try{let n,{page:a,styleSheets:i}=await this.fetchComponent("/_error"),s={props:n,Component:a,styleSheets:i,err:e,error:e};if(!s.props)try{s.props=await this.getInitialProps(a,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),s.props={}}return s}catch(e){return this.handleRouteInfoError((0,d.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,a,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:a,routeProps:i,locale:s,hasMiddleware:o,isPreview:u,unstable_skipClientCache:c,isQueryUpdating:p,isMiddlewareRewrite:f,isNotFound:m}){let g=e;try{let e=this.components[g];if(i.shallow&&e&&this.route===g)return e;let d=V({route:g,router:this});o&&(e=void 0);let _=!e||"initial"in e?void 0:e,y={dataHref:this.pageLoader.getDataHref({href:(0,E.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":a,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c,isBackground:p},v=p&&!f?null:await W({fetchData:()=>Y(y),asPath:m?"/404":a,locale:s,router:this}).catch(e=>{if(p)return null;throw e});if(v&&("/_error"===t||"/404"===t)&&(v.effect=void 0),p&&(v?v.json=self.__NEXT_DATA__.props:v={json:self.__NEXT_DATA__.props}),d(),v?.effect?.type==="redirect-internal"||v?.effect?.type==="redirect-external")return v.effect;if(v?.effect?.type==="rewrite"){let n=(0,l.removeTrailingSlash)(v.effect.resolvedHref),s=await this.pageLoader.getPageList(
4);if((!p||s.includes(n))&&(g=n,t=v.effect.resolvedHref,r={...r,...v.effect.parsedAs.query},a=(0,I.removeBasePath)((0,h.normalizeLocalePath)(v.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],i.shallow&&e&&this.route===g&&!o))return{...e,route:g}}if((0,O.isAPIRoute)(g))return J({url:n,router:this}),new Promise(()=>{});let S=_||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),b=v?.response?.headers.get("x-middleware-skip"),T=S.__N_SSG||S.__N_SSP;b&&v?.dataHref&&delete this.sdc[v.dataHref];let{props:R,cacheKey:w}=await this._getData(async()=>{if(T){if(v?.json&&!b)return{cacheKey:v.cacheKey,props:v.json};let e=v?.dataHref?v.dataHref:this.pageLoader.getDataHref({href:(0,E.formatWithValidation)({pathname:t,query:r}),asPath:a,locale:s}),n=await Y({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:b?{}:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(S.Component,{pathname:t,query:r,asPath:n,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return S.__N_SSP&&y.dataHref&&w&&delete this.sdc[w],this.isPreview||!S.__N_SSG||p||Y(Object.assign({},y,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),S.props=R,S.route=g,S.query=r,S.resolvedAs=a,this.components[g]=S,S}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),t,r,n,i)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,a]=e.split("#",2);return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#",2);(0,L.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if("undefined"!=typeof window&&(0,A.isBot)(window.navigator.userAgent))return;let a=(0,_.parseRelativeUrl)(e),i=a.pathname,{pathname:s,query:o}=a,c=s,d=await this.pageLoader.getPageList(),p=t,h=void 0!==r.locale?r.locale||void 0:this.locale,f=await B({asPath:t,locale:h,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,u.getClientBuildManifest)());let i=n((0,R.addBasePath)((0,b.addLocale)(t,this.locale),!0),d,r,a.query,e=>H(e,d),this.locales);if(i.externalDest)return;f||(p=(0,T.removeLocale)((0,I.removeBasePath)(i.asPath),this.locale)),i.matchedPage&&i.resolvedHref&&(a.pathname=s=i.resolvedHref,f||(e=(0,E.formatWithValidation)(a)))}a.pathname=H(a.pathname,d),(0,g.isDynamicRoute)(a.pathname)&&(s=a.pathname,a.pathname=s,Object.assign(o,(0,y.getRouteMatcher)((0,v.getRouteRegex)(a.pathname))((0,S.parsePath)(t).pathname)||{}),f||(e=(0,E.formatWithValidation)(a)));let m=await W({fetchData:()=>Y({dataHref:this.pageLoader.getDataHref({href:(0,E.formatWithValidation)({pathname:c,query:o}),skipInterpolation:!0,asPath:p,locale:h}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:h,router:this});if(m?.effect.type==="rewrite"&&(a.pathname=m.effect.resolvedHref,s=m.effect.resolvedHref,o={...o,...m.effect.parsedAs.query},p=m.effect.parsedAs.pathname,e=(0,E.formatWithValidation)(a)),m?.effect.type==="redirect-external")return;let w=(0,l.removeTrailingSlash)(s);await this._bfl(t,p,r.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(w).then(t=>!!t&&Y({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:h}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](w)])}async fetchComponent(e){let t=V({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,
4configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,m.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},344092,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(481258);let n=e.r(923511);e.r(386834);let a=e.r(843152);function i(e){function t(t){return(0,n.jsx)(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},843152,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Router:function(){return o.default},createRouter:function(){return _},default:function(){return m},makePublicRouterInstance:function(){return y},useRouter:function(){return g},withRouter:function(){return c.default}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(481258),s=i._(e.r(386834)),o=i._(e.r(234379)),l=e.r(333565),u=i._(e.r(845529)),c=i._(e.r(344092)),d={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],h=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!d.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>o.default.events}),p.forEach(e=>{Object.defineProperty(d,e,{get:()=>f()[e]})}),h.forEach(e=>{d[e]=(...t)=>f()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{o.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(d[r])try{d[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,u.default)(e)?`${e.message}
5${e.stack}`:e+"")}})})});let m=d;function g(){let e=s.default.useContext(l.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function _(...e){return d.router=new o.default(...e),d.readyCallbacks.forEach(e=>e()),d.readyCallbacks=[],d.router}function y(e){let t={};for(let r of p){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=o.default.events,h.forEach(r=>{t[r]=(...t)=>e[r](...t)}),t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},214233,(e,t,r)=>{t.exports=e.r(843152)},435687,e=>{"use strict";let t,r,n,a,i,s,o,l,u,c,d,p,h,f,m,g,_,y,v,E,S,b,T;var I,R,w,x,O,N,C,P,k,A=e.i(776642),M=e.i(297959),D=e.i(287578);function L(e,t,r=[t],n="npm"){let a=e._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:D.SDK_VERSION})),version:D.SDK_VERSION}),e._metadata=a}var U=e.i(76084),$=e.i(60077),B=e.i(280284),j=e.i(725204);let F=[];function H(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function W(e,t,r){if(r[t.name]){j.DEBUG_BUILD&&B.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===F.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),F.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}j.DEBUG_BUILD&&B.debug.log(`Integration installed: ${t.name}`)}function z(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var G=e.i(635495),q=e.i(114133);let Y=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/];function X(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Y],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function J(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return j.DEBUG_BUILD&&B.debug.error(`Cannot extract url for event ${(0,G.getEventDescription)(e)}`),null}}var V=e.i(440680);let K=new WeakMap;var Q=e.i(395943);function Z(e,t){let r=(0,Q.getFramesFromEvent)(e),n=(0,Q.getFramesFromEvent)(t);
5if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],a=r[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function ee(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function et(e){return e.exception?.values?.[0]}var er=e.i(555509),en=e.i(142579),ea=e.i(22097),ei=e.i(184891),es=e.i(381239);function eo(e,t=[]){return[e,t]}function el(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function eu(e){let t=(0,ei.getSentryCarrier)(M.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let ec={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",raw_security:"security",log:"log_item"};function ed(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function ep(e,t,r,n){let a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,er.dsnToString)(n)},...a&&{trace:a}}}var eh=e.i(511905),ef=e.i(968637),em=e.i(913659),eg=e.i(129017),e_=e.i(468228),ey=e.i(653180),ev=e.i(266908),eE=e.i(565600),eS=e.i(586530);let eb="Not capturing exception because it's already been captured.",eT="Discarded session because of missing or non-string release",eI=Symbol.for("SentryInternalError"),eR=Symbol.for("SentryDoNotSendEventError");function ew(e){return{message:e,[eI]:!0}}function ex(e){return{message:e,[eR]:!0}}function eO(e){return!!e&&"object"==typeof e&&eI in e}function eN(e){return!!e&&"object"==typeof e&&eR in e}class eC{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,er.makeDsn)(e.dsn):j.DEBUG_BUILD&&B.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,r){let n,a,i;return t||`${n=e.protocol?`${e.protocol}:`:"",a=e.port?`:${e.port}`:"",`${n}//${e.host}${a}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${i={sentry_version:"7"},e.publicKey&&(i.sentry_key=e.publicKey),r&&(i.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(i).toString()}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){let n=(0,G.uuid4)();if((0,G.checkOrSetAlreadyCaught)(e))return j.DEBUG_BUILD&&B.debug.log(eb),n;let a={event_id:n,...t};return this._process(this.eventFromException(e,a).then(e=>this._captureEvent(e,a,r))),a.event_id}captureMessage(e,t,r,n){let a={event_id:(0,G.uuid4)(),...r},i=(0,eg.isParameterizedString)(e)?e:String(e),s=(0,eg.isPrimitive)(e)?this.eventFromMessage(i,t,a):this.eventFromException(e,a);return this._process(s.then(e=>this._captureEvent(e,a,n))),a.event_id}captureEvent(e,t,r){let n=(0,G.uuid4)();if(t?.originalException&&(0,G.checkOrSetAlreadyCaught)(t.originalException))return j.DEBUG_BUILD&&B.debug.log(eb),n;let a={event_id:n,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,o=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,a,s||r,o)),a.event_id}captureSession(e){this.sendSession(e),(0,ef.updateSession)(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;
5return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):(0,eE.resolvedSyncPromise)(!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];W(this,e,this._integrations),t||H(this,[e])}sendEvent(e,t={}){var r,n,a,i;let s,o,l;this.emit("beforeSendEvent",e,t);let u=(r=this._dsn,n=this._options._metadata,a=this._options.tunnel,s=ed(n),o=e.type&&"replay_event"!==e.type?e.type:"event",(i=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||[]]),l=ep(e,s,a,r),delete e.sdkProcessingMetadata,eo(l,[[{type:o},e]]));for(let e of t.attachments||[])u=function(e,t){let[r,n]=e;return[r,[...n,t]]}(u,function(e){let t="string"==typeof e.data?eu(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));let c=this.sendEnvelope(u);c&&c.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){var t,r,n;let a,{release:i,environment:s=en.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!i){j.DEBUG_BUILD&&B.debug.warn(eT);return}t.release=t.release||i,t.environment=t.environment||s,e.attrs=t}else{if(!e.release&&!i){j.DEBUG_BUILD&&B.debug.warn(eT);return}e.release=e.release||i,e.environment=e.environment||s}this.emit("beforeSendSession",e);let o=(t=this._dsn,r=this._options._metadata,n=this._options.tunnel,a=ed(r),eo({sent_at:new Date().toISOString(),...a&&{sdk:a},...!!n&&t&&{dsn:(0,er.dsnToString)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(o)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;j.DEBUG_BUILD&&B.debug.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{let e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(j.DEBUG_BUILD&&B.debug.error("Error while sending envelope:",e),e)):(j.DEBUG_BUILD&&B.debug.error("Transport disabled"),(0,eE.resolvedSyncPromise)({}))}_setupIntegrations(){var e;let t,{integrations:r}=this._options;this._integrations=(e=this,t={},r.forEach(r=>{r&&W(e,r,t)}),t),H(this,r)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,a=t.exception?.values;if(a)for(let e of(n=!0,a)){let t=e.mechanism;if(t?.handled===!1){r=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&r)&&((0,ef.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new eE.SyncPromise(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let a=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,ev.prepareEvent)(a,e,t,r,this,n).then(e=>
5(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:(0,$.getTraceContextFromScope)(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,ea.getDynamicSamplingContextFromScope)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,$.getCurrentScope)(),n=(0,$.getIsolationScope)()){return j.DEBUG_BUILD&&eP(e)&&B.debug.log(`Captured error event \`${z(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{j.DEBUG_BUILD&&(eN(e)?B.debug.log(e.message):eO(e)?B.debug.warn(e.message):B.debug.warn(e))})}_processEvent(e,t,r,n){let a=this.getOptions(),{sampleRate:i}=a,s=ek(e),o=eP(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===i?void 0:(0,ey.parseSampleRate)(i);if(o&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error"),(0,eE.rejectedSyncPromise)(ex(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));let d="replay_event"===l?"replay":l;return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),ex("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,eg.isThenable)(e))return e.then(e=>{if(!(0,eg.isPlainObject)(e)&&null!==e)throw ew(r);return e},e=>{throw ew(`${t} rejected with ${e}`)});if(!(0,eg.isPlainObject)(e)&&null!==e)throw ew(r);return e}(function(e,t,r,n){let{beforeSend:a,beforeSendTransaction:i,beforeSendSpan:s}=t,o=r;if(eP(o)&&a)return a(o,n);if(ek(o)){if(s){let e=s(function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:a,origin:i,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[eS.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[eS.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(o));if(e)o=(0,e_.merge)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[eS.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[eS.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,eh.showSpanDropWarning)();if(o.spans){let e=[];for(let t of o.spans){let r=s(t);r?e.push(r):((0,eh.showSpanDropWarning)(),e.push(t))}o.spans=e}}if(i){if(o.spans){let e=o.spans.length;o.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(o,n)}}return o}(0,a,e,t),u)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw ex(`${u} returned \`null\`, will not send event.`)}let i=r.getSession()||n.getSession();if(o&&i&&this._updateSessionFromEvent(i,a),s){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=a.transaction_info;return s&&l&&a.transaction!==e.transaction&&(a.transaction_info={...l,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{if(eN(e)||eO(e))throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),ew(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
6Reason: ${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[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;j.DEBUG_BUILD&&B.debug.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){j.DEBUG_BUILD&&B.debug.log("No outcomes to send");return}if(!this._dsn){j.DEBUG_BUILD&&B.debug.log("No dsn provided, will not send outcomes");return}j.DEBUG_BUILD&&B.debug.log("Sending outcomes:",t);let r=eo((e=this._options.tunnel&&(0,er.dsnToString)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,em.dateTimestampInSeconds)(),discarded_events:t}]]);this.sendEnvelope(r)}}function eP(e){return void 0===e.type}function ek(e){return"transaction"===e.type}e.i(743403);var eA=e.i(954337);function eM(e,t){var r,n,a,i;let s,o=t??(i=e,eD().get(i))??[];if(0===o.length)return;let l=e.getOptions(),u=(r=l._metadata,n=l.tunnel,a=e.getDsn(),s={},r?.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),n&&a&&(s.dsn=(0,er.dsnToString)(a)),eo(s,[[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}]]));eD().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(u)}function eD(){return(0,ei.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function eL(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function eU(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function e$(e,t){var r,n;let a,i,s=ej(e,t),o={type:(r=t,!(a=r?.name)&&eH(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":a),value:(n=t,i=n?.message,eH(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":i?i.error&&"string"==typeof i.error.message?i.error.message:i:"No error message")};return s.length&&(o.stacktrace={frames:s}
6),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function eB(e,t){return{exception:{values:[e$(e,t)]}}}function ej(e,t){var r,n;let a=t.stacktrace||t.stack||"",i=(r=t)&&eF.test(r.message)?1:0,s="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(a,i,s)}catch{}return[]}let eF=/Minified React error #\d+;/i;function eH(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function eW(e,t,r,n,a){let i;if((0,eg.isErrorEvent)(t)&&t.error)return eB(e,t.error);if((0,eg.isDOMError)(t)||(0,eg.isDOMException)(t)){if("stack"in t)i=eB(e,t);else{let a=t.name||((0,eg.isDOMError)(t)?"DOMError":"DOMException"),s=t.message?`${a}: ${t.message}`:a;i=ez(e,s,r,n),(0,G.addExceptionTypeValue)(i,s)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return(0,eg.isError)(t)?eB(e,t):((0,eg.isPlainObject)(t)||(0,eg.isEvent)(t)?i=function(e,t,r,n){let a=(0,$.getClient)(),i=a?.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),o={__serialized__:(0,es.normalizeToSize)(t,i)};if(s)return{exception:{values:[e$(e,s)]},extra:o};let l={exception:{values:[{type:(0,eg.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,V.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,eg.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,eg.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:o};if(r){let t=ej(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,a):(i=ez(e,t,r,n),(0,G.addExceptionTypeValue)(i,`${t}`,void 0)),(0,G.addExceptionMechanism)(i,{synthetic:!0}),i)}function ez(e,t,r,n){let a={};if(n&&r){let n=ej(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,G.addExceptionMechanism)(a,{synthetic:!0})}if((0,eg.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}var eG=e.i(245850);let eq=M.GLOBAL_OBJ,eY=0;function eX(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if((0,V.getOriginalFunction)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>eX(e,t));return e.apply(this,n)}catch(e){throw eY++,setTimeout(()=>{eY--}),(0,$.withScope)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,G.addExceptionTypeValue)(e,void 0,void 0),(0,G.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,U.captureException)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,V.markFunctionWrapped)(r,e),(0,V.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function eJ(){let e=(0,eG.getLocationHref)(),{referrer:t}=eq.document||{},{userAgent:r}=eq.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class eV extends eC{constructor(e){var t;const r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eq.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});L(r,"browser",["browser"],eq.SENTRY_SDK_SOURCE||"npm"),super(r);const{sendDefaultPii:n,sendClientReports:a,enableLogs:i}=this._options;eq.document&&(a||i)&&eq.document.addEventListener("visibilitychange",()=>{"hidden"===eq.document.visibilityState&&(a&&this._flushOutcomes(),i&&eM(this))}),i&&(this.on("flush",()=>{eM(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{eM(this)},5e3)})),n&&(this.on("postprocessEvent",eL),this.on("beforeSendSession",eU))}eventFromException(e,t){var r,n;let a;return r=this._options.stackParser,n=this._options.attachStacktrace,a=eW(r,e,t?.syntheticException||void 0,n),(0,G.addExceptionMechanism)(a),a.level="error",t?.event_id&&(a.event_id=t.event_id),(0,eE.resolvedSyncPromise)(a)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,a){let i=ez(e,t,n?.syntheticException||void 0,a);return i.level=r,n?.event_id&&(i.event_id=n.event_id),(0,eE.resolvedSyncPromise)(i)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let eK={},eQ={};function eZ(e,t){eK[e]=eK[e]||[],eK[e].push(t)}function e0(e,t){if(!eQ[e]){eQ[e]=!0;try{t()}catch(t){j.DEBUG_BUILD&&B.debug.error(`Error while instrumenting ${e}`,t)}}}function e1(e,t){let r=e&&eK[e];if(r)for(let n of r)try{n(t)}catch(t){j.DEBUG_BUILD&&B.debug.error(`Error while triggering instrumentation handler.
7Type: ${e}
8Name: ${(0,Q.getFunctionName)(n)}
9Error:`,t)}}function e2(){"console"in M.GLOBAL_OBJ&&B.CONSOLE_LEVELS.forEach(function(e){e in M.GLOBAL_OBJ.console&&(0,V.fill)(M.GLOBAL_OBJ.console,e,function(t){return B.originalConsoleMethods[e]=t,function(...t){e1("console",{args:t,level:e});let r=B.originalConsoleMethods[e];r?.apply(M.GLOBAL_OBJ.console,t)}})})}let e3=M.GLOBAL_OBJ;function e4(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function e5(){if("string"==typeof EdgeRuntime)return!0;
9if(!function(){if(!("fetch"in e3))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(e4(e3.fetch))return!0;let e=!1,t=e3.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=e4(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){j.DEBUG_BUILD&&B.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function e8(e,t){let r="fetch";eZ(r,e),e0(r,()=>e6(void 0,t))}function e6(e,t=!1){(!t||e5())&&(0,V.fill)(M.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:a,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tt(t),method:te(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:tt(t),method:te(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:a,url:i},startTimestamp:1e3*(0,em.timestampInSeconds)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,eg.isRequest)(t))return new Headers(t.headers)}catch{}}(r)};return e||e1("fetch",{...s}),t.apply(M.GLOBAL_OBJ,r).then(async t=>(e?e(t):e1("fetch",{...s,endTimestamp:1e3*(0,em.timestampInSeconds)(),response:t}),t),e=>{if(e1("fetch",{...s,endTimestamp:1e3*(0,em.timestampInSeconds)(),error:e}),(0,eg.isError)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,V.addNonEnumerableProperty)(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(s.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function e9(e,t){if(e?.body){let r=e.body,n=r.getReader(),a=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),i=!0;for(;i;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(e),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(a),n.releaseLock(),r.cancel().then(null,()=>{})}}function e7(e){let t;try{t=e.clone()}catch{return}e9(t,()=>{e1("fetch-body-resolved",{endTimestamp:1e3*(0,em.timestampInSeconds)(),response:e})})}function te(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tt(e){return"string"==typeof e?e:e?te(e,"url")?e.url:e.toString?e.toString():"":""}function tr(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function tn(e,t){let r=(0,$.getClient)(),n=(0,$.getIsolationScope)();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=100}=r.getOptions();if(i<=0)return;let s={timestamp:(0,em.dateTimestampInSeconds)(),...e},o=a?(0,B.consoleSandbox)(()=>a(s,t)):s;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,i))}function ta(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function ti(e){return"isRelative"in e}function ts(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function to(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function tl(e){return e.split(/[?#]/,1)[0]}let tu=M.GLOBAL_OBJ;function tc(e){eZ("dom",e),e0("dom",td)}function td(){if(!tu.document)return;let e=e1.bind(null,"dom"),t=tp(e,!0);tu.document.addEventListener("click",t,!1),tu.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=tu[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,V.fill)(r,"addEventListener",function(t){return function(r,n,a){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=n[r]=n[r]||{refCount:0};if(!i.handler){let n=tp(e);i.handler=n,t.call(this,r,n,a)}i.refCount++}catch{}return t.call(this,r,n,a)}}),(0,V.fill)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},a=r[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function tp(e,t=!1){return i=>{var s;if(!i||i._sentryCaptured)return;let o=function(e){try{return e.target}catch{return null}}(i);if(s=i.type,"keypress"===s&&(!o?.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;(0,V.addNonEnumerableProperty)(i,"_sentryCaptured",!0),o&&!o._sentryId&&(0,V.addNonEnumerableProperty)(o,"_sentryId",(0,G.uuid4)());
9let l="keypress"===i.type?"input":i.type;!function(e){if(e.type!==n)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}(i)&&(e({event:i,name:l,global:t}),n=i.type,a=o?o._sentryId:void 0),clearTimeout(r),r=tu.setTimeout(()=>{a=void 0,n=void 0},1e3)}}let th="__sentry_xhr_v3__";function tf(e){eZ("xhr",e),e0("xhr",tm)}function tm(){if(!tu.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),a=1e3*(0,em.timestampInSeconds)(),i=(0,eg.isString)(r[0])?r[0].toUpperCase():void 0,s=function(e){if((0,eg.isString)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!i||!s)return e.apply(t,r);t[th]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[th];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}e1("xhr",{endTimestamp:1e3*(0,em.timestampInSeconds)(),startTimestamp:a,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(o(),e.apply(t,r))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,a]=r,i=t[th];return i&&(0,eg.isString)(n)&&(0,eg.isString)(a)&&(i.request_headers[n.toLowerCase()]=a),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[th];return n&&(void 0!==r[0]&&(n.body=r[0]),e1("xhr",{startTimestamp:1e3*(0,em.timestampInSeconds)(),xhr:t})),e.apply(t,r)}})}function tg(e){let t="history";eZ(t,e),e0(t,t_)}function t_(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=i,a=function(e){try{return new URL(e,tu.location.origin).toString()}catch{return e}}(String(r));if(i=a,n===a)return e.apply(this,t);e1("history",{from:n,to:a})}return e.apply(this,t)}}tu.addEventListener("popstate",()=>{let e=tu.location.href,t=i;i=e,t===e||e1("history",{from:t,to:e})}),"history"in e3&&e3.history&&((0,V.fill)(tu.history,"pushState",e),(0,V.fill)(tu.history,"replaceState",e))}let ty="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tv=["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"];function tE(e){return function(...t){let r=t[0];return t[0]=eX(r,{mechanism:{data:{function:(0,Q.getFunctionName)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tS(e){return function(t){return e.apply(this,[eX(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Q.getFunctionName)(e)},handled:!1,type:"instrument"}})])}}function tb(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,V.fill)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,Q.getFunctionName)(t)},handled:!1,type:"instrument"}},n=(0,V.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,Q.getFunctionName)(n)),eX(t,r)})}),e.apply(this,t)}}let tT=null;function tI(e){let t="error";eZ(t,e),e0(t,tR)}function tR(){tT=M.GLOBAL_OBJ.onerror,M.GLOBAL_OBJ.onerror=function(e,t,r,n,a){return e1("error",{column:n,error:a,line:r,msg:e,url:t}),!!tT&&tT.apply(this,arguments)},M.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let tw=null;function tx(e){let t="unhandledrejection";eZ(t,e),e0(t,tO)}function tO(){tw=M.GLOBAL_OBJ.onunhandledrejection,M.GLOBAL_OBJ.onunhandledrejection=function(e){return e1("unhandledrejection",e),!tw||tw.apply(this,arguments)},M.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function tN(e){ty&&B.debug.log(`Global Handler attached: ${e}`)}function tC(){let e=(0,$.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function tP(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0}
9,exception_id:t}}function tk(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function tA(e,t,r,n){let a={filename:e,function:"<anonymous>"===t?Q.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==n&&(a.colno=n),a}let tM=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tD=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tL=/\((\S*)(?::(\d+))(?::(\d+))\)/,tU=[30,e=>{let t=tM.exec(e);if(t){let[,e,r,n]=t;return tA(e,Q.UNKNOWN_FUNCTION,+r,+n)}let r=tD.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){let e=tL.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=tH(r[1]||Q.UNKNOWN_FUNCTION,r[2]);return tA(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],t$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tB=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tj=[50,e=>{let t=t$.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tB.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||Q.UNKNOWN_FUNCTION;return[r,e]=tH(r,e),tA(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tF=(0,Q.createStackParser)(tU,tj),tH=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Q.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tW=Symbol.for("SentryBufferFullError");function tz(e,t,r=Date.now()){return(e[t]||e.all||0)>r}function tG(e,{statusCode:t,headers:r},n=Date.now()){let a={...e},i=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,r,,,i]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(a[e]=n+o):a[e]=n+o;else a.all=n+o}else s?a.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(a.all=n+6e4);return a}let tq="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tY={};function tX(e){let t=tY[e];if(t)return t;let r=tu[e];if(e4(r))return tY[e]=r.bind(tu);let n=tu.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a?.[e]&&(r=a[e]),n.head.removeChild(t)}catch(t){tq&&B.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?tY[e]=r.bind(tu):r}function tJ(...e){return tX("setTimeout")(...e)}function tV(e,t=tX("fetch")){let r=0,n=0;return function(e,t,r=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return(0,eE.rejectedSyncPromise)(tW);let a=n();return -1===t.indexOf(a)&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a},drain:function(e){return new eE.SyncPromise((r,n)=>{let a=t.length;if(!a)return r(!0);let i=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{(0,eE.resolvedSyncPromise)(e).then(()=>{--a||(clearTimeout(i),r(!0))},n)})})}}}(e.bufferSize||64)){let n={};return{send:function(a){let i=[];if(el(a,(t,r)=>{let a=ec[r];tz(n,a)?e.recordDroppedEvent("ratelimit_backoff",a):i.push(t)}),0===i.length)return(0,eE.resolvedSyncPromise)({});let s=eo(a[0],i),o=t=>{el(s,(r,n)=>{e.recordDroppedEvent(t,ec[n])})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function a(e){"string"==typeof n?n="string"==typeof e?n+e:[eu(n),e]:n.push("string"==typeof e?eu(e):e)}for(let e of r){let[t,r]=e;if(a(`
10${JSON.stringify(t)}
11`),"string"==typeof r||r instanceof Uint8Array)a(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,es.normalize)(r))}a(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&j.DEBUG_BUILD&&B.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=tG(n,e),e),e=>{throw o("network_error"),j.DEBUG_BUILD&&B.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
11{if(e===tW)return j.DEBUG_BUILD&&B.debug.error("Skipped sending event because buffer is full."),o("queue_overflow"),(0,eE.resolvedSyncPromise)({});throw e})},flush:e=>r.drain(e)}}(e,function(a){let i=a.body.length;r+=i,n++;let s={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};if(!t)return tY.fetch=void 0,(0,eE.rejectedSyncPromise)("No fetch implementation available");try{return t(e.url,s).then(e=>(r-=i,n--,{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 tY.fetch=void 0,r-=i,n--,(0,eE.rejectedSyncPromise)(e)}})}function tK(e){let r;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=X(e,r.getOptions())},processEvent:(r,n,a)=>(t||(t=X(e,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,q.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return j.DEBUG_BUILD&&B.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
12Event: ${(0,G.getEventDescription)(e)}`),!0}else{var r,n,a;if(r=e,n=t.ignoreErrors,n?.length&&z(r).some(e=>(0,q.stringMatchesSomePattern)(e,n)))return j.DEBUG_BUILD&&B.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
13Event: ${(0,G.getEventDescription)(e)}`),!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return j.DEBUG_BUILD&&B.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
14Event: ${(0,G.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=J(e);return!!r&&(0,q.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return j.DEBUG_BUILD&&B.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
15Event: ${(0,G.getEventDescription)(e)}.
16Url: ${J(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=J(e);return!r||(0,q.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return j.DEBUG_BUILD&&B.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
17Event: ${(0,G.getEventDescription)(e)}.
18Url: ${J(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){t=Function.prototype.toString;try{Function.prototype.toString=function(...e){let r=(0,V.getOriginalFunction)(this),n=K.has((0,$.getClient)())&&void 0!==r?r:this;return t.apply(n,e)}}catch{}},setup(e){K.set(e,!0)}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,V.fill)(eq,"setTimeout",tE),t.setInterval&&(0,V.fill)(eq,"setInterval",tE),t.requestAnimationFrame&&(0,V.fill)(eq,"requestAnimationFrame",tS),t.XMLHttpRequest&&"XMLHttpRequest"in eq&&(0,V.fill)(XMLHttpRequest.prototype,"send",tb);let e=t.eventTarget;e&&(Array.isArray(e)?e:tv).forEach(e=>{var r,n;let a;return r=e,n=t,a=eq[r]?.prototype,void(a?.hasOwnProperty?.("addEventListener")&&((0,V.fill)(a,"addEventListener",function(e){return function(t,a,i){var s,o,l,u;try{s=a,"function"==typeof s.handleEvent&&(a.handleEvent=eX(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Q.getFunctionName)(a),target:r},handled:!1,type:"instrument"}}))}catch{}return n.unregisterOriginalCallbacks&&(o=this,l=t,u=a,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,u)),e.apply(this,[t,eX(a,{mechanism:{data:{function:"addEventListener",handler:(0,Q.getFunctionName)(a),target:r},handled:!1,type:"instrument"}}),i])}}),(0,V.fill)(a,"removeEventListener",function(e){return function(t,r,n){try{let a=r.__sentry_wrapped__;a&&e.call(this,t,a,n)}catch{}return e.call(this,t,r,n)}})))})}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,a,i,s,o,l;let u;t.console&&(r=e,eZ(u="console",function(e){if((0,$.getClient)()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:tr(e.level),message:(0,q.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,q.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);tn(t,{input:e.args,level:e.level})}),e0(u,e2)),t.dom&&tc((n=e,a=t.dom,function(e){let t,r;if((0,$.getClient)()!==n)return;let i="object"==typeof a?a.serializeAttribute:void 0,s="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;s&&s>1024&&(ty&&B.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof i&&(i=[i]);try{var o;let n=e.event,a=(o=n)&&o.target?n.target:n;t=(0,eG.htmlTreeAsString)(a,{keyAttrs:i,maxStringLength:s}),r=(0,eG.getComponentName)(a)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),tn(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&tf((i=e,function(e){if((0,$.getClient)()!==i)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[th];if(!t||!r||!n)return;let{method:a,url:s,status_code:o,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:a,url:s,status_code:o},type:"http",level:ta(o)};i.emit("beforeOutgoingRequestBreadcrumb",c,u),tn(c,u)})),t.fetch&&e8((s=e,function(e){if((0,$.getClient)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e;
18if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let n=e.fetchData,a={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},i={category:"fetch",data:n,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",i,a),tn(i,a)}else{let n=e.response,a={...e.fetchData,status_code:n?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,n?.status;let i={input:e.args,response:n,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:a,type:"http",level:ta(a.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",o,i),tn(o,i)}})),t.history&&tg((o=e,function(e){if((0,$.getClient)()!==o)return;let t=e.from,r=e.to,n=to(eq.location.href),a=t?to(t):void 0,i=to(r);a?.path||(a=n),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),n.protocol===a.protocol&&n.host===a.host&&(t=a.relative),tn({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,$.getClient)()===l&&tn({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,G.getEventDescription)(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,tI(e=>{var t,n,a,i;let s,o,l,u,c,d,{stackParser:p,attachStacktrace:h}=tC();if((0,$.getClient)()!==r||eY>0)return;let{msg:f,url:m,line:g,column:_,error:y}=e,v=(t=eW(p,y||f,void 0,h,!1),n=m,a=g,i=_,c=(u=(l=(o=(s=t.exception=t.exception||{}).values=s.values||[])[0]=o[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[],d=(0,eg.isString)(n)&&n.length>0?n:(0,eG.getLocationHref)(),0===c.length&&c.push({colno:i,filename:d,function:Q.UNKNOWN_FUNCTION,in_app:!0,lineno:a}),t);v.level="error",(0,U.captureEvent)(v,{originalException:y,mechanism:{handled:!1,type:"onerror"}})}),tN("onerror")),t.onunhandledrejection&&(n=e,tx(e=>{var t;let{stackParser:r,attachStacktrace:a}=tC();if((0,$.getClient)()!==n||eY>0)return;let i=function(e){if((0,eg.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),s=(0,eg.isPrimitive)(i)?(t=i,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):eW(r,i,void 0,a,!0);s.level="error",(0,U.captureEvent)(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),tN("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){!function(e,t,r,n,a,i){if(!a.exception?.values||!i||!(0,eg.isInstanceOf)(i.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=function e(t,r,n,a,i,s,o,l){if(s.length>=n+1)return s;let u=[...s];if((0,eg.isInstanceOf)(a[i],Error)){tP(o,l);let s=t(r,a[i]),c=u.length;tk(s,i,c,l),u=e(t,r,n,a[i],i,[s,...u],s,c)}return Array.isArray(a.errors)&&a.errors.forEach((a,s)=>{if((0,eg.isInstanceOf)(a,Error)){tP(o,l);let c=t(r,a),d=u.length;tk(c,`errors[${s}]`,d,l),u=e(t,r,n,a,i,[c,...u],c,d)}}),u}(e,t,n,i.originalException,r,a.exception.values,s,0))}(e$,a.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,n,a,i,s,o;let l,u,c,d;if(t=e,(n=r)&&(a=t,i=n,l=a.message,u=i.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&ee(a,i)&&Z(a,i)&&1||(s=t,o=n,c=et(o),d=et(s),c&&d&&c.type===d.type&&c.value===d.value&&ee(s,o)&&Z(s,o))))return j.DEBUG_BUILD&&B.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return r=e}},{name:"HttpContext",preprocessEvent(e){if(!eq.navigator&&!eq.location&&!eq.document)return;let t=eJ(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}},{name:"BrowserSession",setupOnce(){if(void 0===eq.document){ty&&B.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,U.startSession)({ignoreDuration:!0}),(0,U.captureSession)(),tg(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,U.startSession)({ignoreDuration:!0}),(0,U.captureSession)())})}}]}var tQ=e.i(386834),tZ=e.i(592154),t0=e.i(354794);class t1{constructor(e={}){this._traceId=e.traceId||(0,t0.generateTraceId)(),this._spanId=e.spanId||(0,t0.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:eh.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
18addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function t2(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],a=r[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof a&&(t[e.name]={value:a,unit:n})}),t}var t3=e.i(79679);class t4{constructor(e={}){this._traceId=e.traceId||(0,t0.generateTraceId)(),this._spanId=e.spanId||(0,t0.generateSpanId)(),this._startTime=e.startTimestamp||(0,em.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]: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._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?eh.TRACE_FLAG_SAMPLED:eh.TRACE_FLAG_NONE}}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=(0,eh.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,eh.spanTimeInputToSeconds)(e),function(e){if(!j.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,eh.spanToJSON)(e),{spanId:n}=e.spanContext(),a=(0,eh.getRootSpan)(e)===e,i=`[Tracing] Finishing "${r}" ${a?"root ":""}span "${t}" with ID ${n}`;B.debug.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,eh.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[eS.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[eS.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:t2(this._events),is_segment:this._isStandaloneSpan&&(0,eh.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,eh.getRootSpan)(this).spanContext().spanId:void 0,links:(0,eh.convertSpanLinksForEnvelope)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){j.DEBUG_BUILD&&B.debug.log("[Tracing] Adding an event to span:",e);let n=t5(t)?t:r||(0,em.timestampInSeconds)(),a=t5(t)?{}:t||{},i={name:e,time:(0,eh.spanTimeInputToSeconds)(n),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,$.getClient)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,eh.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,$.getClient)();if(!t)return;let r=e[1];r&&0!==r.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let r=(0,ea.getDynamicSamplingContextFromSpan)(e[0]),n=t?.getDsn(),a=t?.getOptions().tunnel,i={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!a&&n&&{dsn:(0,er.dsnToString)(n)}},s=t?.getOptions().beforeSendSpan,o=s?e=>{let t=(0,eh.spanToJSON)(e),r=s(t);return r||((0,eh.showSpanDropWarning)(),t)}:eh.spanToJSON,l=[];for(let t of e){let e=o(t);e&&l.push([{type:"span"},e])}return eo(i,l)}([this],e)):(j.DEBUG_BUILD&&B.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&((0,t3.getCapturedScopesOnSpan)(this).scope||(0,$.getCurrentScope)()).captureEvent(t)}_convertSpanToTransaction(){if(!t8((0,eh.spanToJSON)(this)))return;this._name||(j.DEBUG_BUILD&&B.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,t3.getCapturedScopesOnSpan)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;
18let n=(0,eh.getSpanDescendants)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof t4&&t.isStandaloneSpan())}).map(e=>(0,eh.spanToJSON)(e)).filter(t8),a=this._attributes[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[eS.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],n.forEach(e=>{delete e.data[eS.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});let i={contexts:{trace:(0,eh.spanToTransactionTraceContext)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,ea.getDynamicSamplingContextFromSpan)(this)},request:r,...a&&{transaction_info:{source:a}}},s=t2(this._events);return s&&Object.keys(s).length&&(j.DEBUG_BUILD&&B.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),i.measurements=s),i}}function t5(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function t8(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var t6=e.i(475797),t9=e.i(543355),t7=e.i(217454),re=e.i(695574);let rt="__SENTRY_SUPPRESS_TRACING__";function rr(e){let t=rs();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=ri(e),{forceTransaction:n,parentSpan:a}=e;return(e.scope?t=>(0,$.withScope)(e.scope,t):void 0!==a?e=>rn(a,e):e=>e())(()=>{let t=(0,$.getCurrentScope)(),i=rl(t,a);return e.onlyIfParent&&!i?new t1:ra({parentSpan:i,spanArguments:r,forceTransaction:n,scope:t})})}function rn(e,t){let r=rs();return r.withActiveSpan?r.withActiveSpan(e,t):(0,$.withScope)(r=>((0,eA._setSpanForScope)(r,e||void 0),t(r)))}function ra({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let a;if(!(0,tZ.hasSpansEnabled)()){let n=new t1;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,ea.getDynamicSamplingContextFromSpan)(n)};(0,ea.freezeDscOnSpan)(n,e)}return n}let i=(0,$.getIsolationScope)();if(e&&!r)a=function(e,t,r){let{spanId:n,traceId:a}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[rt]&&(0,eh.spanIsSampled)(e),s=i?new t4({...r,parentSpanId:n,traceId:a,sampled:i}):new t1({traceId:a});(0,eh.addChildSpanToSpan)(e,s);let o=(0,$.getClient)();return o&&(o.emit("spanStart",s),r.endTimestamp&&o.emit("spanEnd",s)),s}(e,n,t),(0,eh.addChildSpanToSpan)(e,a);else if(e){let r=(0,ea.getDynamicSamplingContextFromSpan)(e),{traceId:i,spanId:s}=e.spanContext(),o=(0,eh.spanIsSampled)(e);a=ro({traceId:i,parentSpanId:s,...t},n,o),(0,ea.freezeDscOnSpan)(a,r)}else{let{traceId:e,dsc:r,parentSpanId:s,sampled:o}={...i.getPropagationContext(),...n.getPropagationContext()};a=ro({traceId:e,parentSpanId:s,...t},n,o),r&&(0,ea.freezeDscOnSpan)(a,r)}return!function(e){if(!j.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,eh.spanToJSON)(e),{spanId:a}=e.spanContext(),i=(0,eh.spanIsSampled)(e),s=(0,eh.getRootSpan)(e),o=s===e,l=`[Tracing] Starting ${i?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(n&&u.push(`parent ID: ${n}`),!o){let{op:e,description:t}=(0,eh.spanToJSON)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}B.debug.log(`${l}
19  ${u.join("\n  ")}`)}(a),(0,t3.setCapturedScopesOnSpan)(a,n,i),a}function ri(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,eh.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function rs(){let e=(0,ei.getMainCarrier)();return(0,t9.getAsyncContextStrategy)(e)}function ro(e,t,r){let n=(0,$.getClient)(),a=n?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:r};n?.emit("beforeSampling",s,{decision:!1});let o=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),[c,d,p]=t.getScopeData().sdkProcessingMetadata[rt]?[!1]:function(e,t,r){let n,a;if(!(0,tZ.hasSpansEnabled)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),a=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,a=!0);let i=(0,ey.parseSampleRate)(n);if(void 0===i)return j.DEBUG_BUILD&&B.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!i)return j.DEBUG_BUILD&&B.debug.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,a];let s=r<i;return!s&&j.DEBUG_BUILD&&B.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[s,i,a]}(a,{name:i,parentSampled:o,attributes:l,parentSampleRate:(0,ey.parseSampleRate)(u.dsc?.sample_rate)},u.sampleRand),h=new t4({...e,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==d&&p?d:void 0,...l},sampled:c});return!c&&n&&(j.DEBUG_BUILD&&B.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",h),h}function rl(e,t){if(t)return t;if(null===t)return;let r=(0,eA._getSpanForScope)(e);if(!r)return;let n=(0,$.getClient)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,eh.getRootSpan)(r):r}let ru={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function rc(e,t={}){let r,n,a=new Map,i=!1,s="externalFinish",o=!t.disableAutoFinish,l=[],{idleTimeout:u=ru.idleTimeout,finalTimeout:c=ru.finalTimeout,childSpanTimeout:d=ru.childSpanTimeout,beforeSpanEnd:p}=t,h=(0,$.getClient)();if(!h||!(0,tZ.hasSpansEnabled)()){let e=new t1,t={sample_rate:"0",sampled:"false",...(0,ea.getDynamicSamplingContextFromSpan)(e)};return(0,ea.freezeDscOnSpan)(e,t),e}let f=(0,$.getCurrentScope)(),m=(0,eh.getActiveSpan)(),g=(r=rr(e),(0,eA._setSpanForScope)((0,$.getCurrentScope)(),r),j.DEBUG_BUILD&&B.debug.log("[Tracing] Started span is an i
19dle span"),r);function _(){n&&(clearTimeout(n),n=void 0)}function y(e){_(),n=setTimeout(()=>{!i&&0===a.size&&o&&(s="idleTimeout",g.end(e))},u)}function v(e){n=setTimeout(()=>{!i&&o&&(s="heartbeatFailed",g.end(e))},d)}function E(e){i=!0,a.clear(),l.forEach(e=>e()),(0,eA._setSpanForScope)(f,m);let t=(0,eh.spanToJSON)(g),{start_timestamp:r}=t;if(!r)return;t.data[eS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||g.setAttribute(eS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s),B.debug.log(`[Tracing] Idle span "${t.op}" finished`);let n=(0,eh.getSpanDescendants)(g).filter(e=>e!==g),o=0;n.forEach(t=>{t.isRecording()&&(t.setStatus({code:t6.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),j.DEBUG_BUILD&&B.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,eh.spanToJSON)(t),a=n<=e,i=r-n<=(c+u)/1e3;if(j.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);a?i||B.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):B.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!i||!a)&&((0,eh.removeChildSpanFromSpan)(g,t),o++)}),o>0&&g.setAttribute("sentry.idle_span_discarded_spans",o)}return g.end=new Proxy(g.end,{apply(e,t,r){if(p&&p(g),t instanceof t1)return;let[n,...a]=r,i=n||(0,em.timestampInSeconds)(),s=(0,eh.spanTimeInputToSeconds)(i),o=(0,eh.getSpanDescendants)(g).filter(e=>e!==g);if(!o.length)return E(s),Reflect.apply(e,t,[s,...a]);let l=o.map(e=>(0,eh.spanToJSON)(e).timestamp).filter(e=>!!e),u=l.length?Math.max(...l):void 0,d=(0,eh.spanToJSON)(g).start_timestamp,h=Math.min(d?d+c/1e3:1/0,Math.max(d||-1/0,Math.min(s,u||1/0)));return E(h),Reflect.apply(e,t,[h,...a])}}),l.push(h.on("spanStart",e=>{var t;!(i||e===g||(0,eh.spanToJSON)(e).timestamp||e instanceof t4&&e.isStandaloneSpan())&&(0,eh.getSpanDescendants)(g).includes(e)&&(t=e.spanContext().spanId,_(),a.set(t,!0),v((0,em.timestampInSeconds)()+d/1e3))})),l.push(h.on("spanEnd",e=>{if(!i){var t;t=e.spanContext().spanId,a.has(t)&&a.delete(t),0===a.size&&y((0,em.timestampInSeconds)()+u/1e3)}})),l.push(h.on("idleSpanEnableAutoFinish",e=>{e===g&&(o=!0,y(),a.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(g.setStatus({code:t6.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",g.end())},c),g}let rd=!1,rp=(e,t,r,n)=>{let a,i;return s=>{if(t.value>=0&&(s||n)&&((i=t.value-(a??0))||void 0===a)){var o;a=t.value,t.delta=i,o=t.value,t.rating=o>r[1]?"poor":o>r[0]?"needs-improvement":"good",e(t)}}},rh=(e=!0)=>{let t=tu.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},rf=()=>{let e=rh();return e?.activationStart??0},rm=(e,t=-1)=>{let r=rh(),n="navigate";return r&&(tu.document?.prerendering||rf()>0?n="prerender":tu.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},rg=new WeakMap;function r_(e,t){return rg.get(e)||rg.set(e,new t),rg.get(e)}class ry{constructor(){ry.prototype.__init.call(this),ry.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let rv=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},rE=e=>{let t=!1;return()=>{t||(e(),t=!0)}},rS=-1,rb=e=>{"hidden"===tu.document.visibilityState&&rS>-1&&(rS="visibilitychange"===e.type?e.timeStamp:0,rT())},rT=()=>{removeEventListener("visibilitychange",rb,!0),removeEventListener("prerenderingchange",rb,!0)},rI=()=>
19{if(tu.document&&rS<0){let e=rf();rS=(tu.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(tu.document?.visibilityState!=="hidden"||tu.document?.prerendering?1/0:0),addEventListener("visibilitychange",rb,!0),addEventListener("prerenderingchange",rb,!0)}return{get firstHiddenTime(){return rS}}},rR=e=>{tu.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rw=[1800,3e3],rx=[.1,.25],rO=0,rN=1/0,rC=0,rP=e=>{e.forEach(e=>{e.interactionId&&(rN=Math.min(rN,e.interactionId),rO=(rC=Math.max(rC,e.interactionId))?(rC-rN)/7+1:0)})},rk=()=>s?rO:performance.interactionCount||0,rA=0;class rM{constructor(){rM.prototype.__init.call(this),rM.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rA=rk(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((rk()-rA)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let rD=e=>{let t=t=>{("pagehide"===t.type||tu.document?.visibilityState==="hidden")&&e(t)};tu.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},rL=e=>{let t=tu.requestIdleCallback||tu.setTimeout;tu.document?.visibilityState==="hidden"?e():(t(e=rE(e)),rD(e))},rU=[200,500];class r${_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let rB=[2500,4e3],rj=[800,1800],rF=e=>{tu.document?.prerendering?rR(()=>rF(e)):tu.document?.readyState!=="complete"?addEventListener("load",()=>rF(e),!0):setTimeout(e)},rH={},rW={};function rz(e,t=!1){return rZ("cls",e,rJ,o,t)}function rG(e,t=!1){return rZ("lcp",e,rV,l,t)}function rq(e){return rZ("inp",e,rQ,c)}function rY(e,t){var r;let n;return r0(e,t),rW[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),rv(r,e=>{rX(r,{entries:e})},n),rW[e]=!0),r1(e,t)}function rX(e,t){let r=rH[e];if(r?.length)for(let n of r)try{n(t)}catch(t){tq&&B.debug.error(`Error while triggering instrumentation handler.
20Type: ${e}
21Name: ${(0,Q.getFunctionName)(n)}
22Error:`,t)}}function rJ(){return((e,t={})=>{((e,t={})=>{rR(()=>{let r,n=rI(),a=rm("FCP"),i=rv("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(a.value=Math.max(t.startTime-rf(),0),a.entries.push(t),r(!0)))});i&&(r=rp(e,a,rw,t.reportAllChanges))})})(rE(()=>{let r,n=rm("CLS",0),a=r_(t,ry),i=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=rv("layout-shift",i);s&&(r=rp(e,n,rx,t.reportAllChanges),tu.document?.addEventListener("visibilitychange",()=>{tu.document?.visibilityState==="hidden"&&(i(s.takeRecords()),r(!0))}),tu?.setTimeout?.(r))}))})(e=>{rX("cls",{metric:e}),o=e},{reportAllChanges:!0})}function rV(){return((e,t={})=>{rR(()=>{let r,n=rI(),a=rm("LCP"),i=r_(t,r$),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))i._processEntry(s),s.startTime<n.firstHiddenTime&&(a.value=Math.max(s.startTime-rf(),0),a.entries=[s],r())},o=rv("largest-contentful-paint",s);if(o){r=rp(e,a,rB,t.reportAllChanges);let n=rE(()=>{s(o.takeRecords()),o.disconnect(),r(!0)});for(let e of["keydown","click","visibilitychange"])tu.document&&addEventListener(e,()=>rL(n),{capture:!0,once:!0})}})})(e=>{rX("lcp",{metric:e}),l=e},{reportAllChanges:!0})}function rK(){return((e,t={})=>{let r=rm("TTFB"),n=rp(e,r,rj,t.reportAllChanges);rF(()=>{let e=rh();e&&(r.value=Math.max(e.responseStart-rf(),0),r.entries=[e],n(!0))})})(e=>{rX("ttfb",{metric:e}),u=e})}function rQ(){return((e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&rR(()=>{let r;"interactionCount"in performance||s||(s=rv("event",rP,{type:"event",buffered:!0,durationThreshold:0}));let n=rm("INP"),a=r_(t,rM),i=e=>{rL(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,r())})},o=rv("event",i,{durationThreshold:t.durationThreshold??40});r=rp(e,n,rU,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),rD(()=>{i(o.takeRecords()),r(!0)}))})})(e=>{rX("inp",{metric:e}),c=e})}function rZ(e,t,r,n,a=!1){let i;return r0(e,t),rW[e]||(i=r(),rW[e]=!0),n&&t({metric:n}),r1(e,t,a?i:void 0)}function r0(e,t){rH[e]=rH[e]||[],rH[e].push(t)}function r1(e,t,r){return()=>{r&&r();let n=rH[e];if(!n)return;let a=n.indexOf(t);-1!==a&&n.splice(a,1)}}function r2(e){return"number"==typeof e&&isFinite(e)}function r3(e,t,r,{...n}){let a=(0,eh.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),rn(e,()=>{let e=rr({startTime:t,...n});return e&&e.end(r),e})}function r4(e){let t,r=(0,$.getClient)();if(!r)return;let{name:n,transaction:a,attributes:i,startTime:s}=e,{release:o,environment:l,sendDefaultPii:u}=r.getOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,$.getCurrentScope)(),h=p.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return rr({name:n,attributes:{release:o,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":tu.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...i},startTime:s,experimental:{standalone:!0}})}function r5(){return tu.addEventListener&&tu.performance}function r8(e){return e/1e3}function r6(e){let t="unknown",r="unknown",n="";for(let a of e){if("/"===a){[t,r]=e.split("/");break}if(!isNaN(Number(a))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=a}
22return n===e&&(t=n),{name:t,version:r}}function r9(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function r7(e,t){let r,n=!1;function a(e){!n&&r&&t(e,r),n=!0}rD(()=>{a("pagehide")});let i=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(a("navigation"),ne(i,s))}),s=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,ne(s)})}function ne(...e){e.forEach(e=>e&&setTimeout(e,0))}let nt=[],nr=new Map,nn={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"},na=({metric:e})=>{if(void 0==e.value)return;let t=r8(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&nn[t.name]);if(!r)return;let{interactionId:n}=r,a=nn[r.name],i=r8((0,em.browserPerformanceTimeOrigin)()+r.startTime),s=(0,eh.getActiveSpan)(),o=s?(0,eh.getRootSpan)(s):void 0,l=(null!=n?nr.get(n):void 0)||o,u=l?(0,eh.spanToJSON)(l).description:(0,$.getCurrentScope)().getScopeData().transactionName,c=r4({name:(0,eG.htmlTreeAsString)(r.target),transaction:u,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${a}`,[eS.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},startTime:i});c&&(c.addEvent("inp",{[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),c.end(i+t))},ni=0,ns={};function no(e,t,r,n,a=r){var i;let s=t["secureConnection"===(i=r)?"connectEnd":"fetch"===i?"domainLookupStart":`${i}End`],o=t[`${r}Start`];o&&s&&r3(e,n+r8(o),n+r8(s),{op:`browser.${a}`,name:t.name,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function nl(e,t,r,n){let a=t[r];null!=a&&a<0x7fffffff&&(e[n]=a)}let nu=({entries:e})=>{let t=(0,eh.getActiveSpan)(),r=t?(0,eh.getRootSpan)(t):void 0,n=r?(0,eh.spanToJSON)(r).description:(0,$.getCurrentScope)().getScopeData().transactionName;e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,a=e.loadTime,[i,s]=a?[r8(a),"load-time"]:r?[r8(r),"render-time"]:[(0,em.timestampInSeconds)(),"entry-emission"],o="image-paint"===t?r8(Math.max(0,(r??0)-(a??0))):0,l={[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.elementtiming",[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.elementtiming",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"component","sentry.span_start_time_source":s,"sentry.transaction_name":n,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":a,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let r=rs();if(r.startSpan)return r.startSpan(e,t);let n=ri(e),{forceTransaction:a,parentSpan:i,scope:s}=e,o=s?.clone();(0,$.withScope)(o,()=>{var r;return(void 0!==(r=i)?e=>rn(r,e):e=>e())(()=>{let r=(0,$.getCurrentScope)(),s=rl(r,i),o=e.onlyIfParent&&!s?new t1:ra({parentSpan:s,spanArguments:n,forceTransaction:a,scope:r});return(0,eA._setSpanForScope)(r,o),function(e,t,r=()=>{}){var n,a,i;let s;try{s=e()}catch(e){throw t(e),r(),e}return n=s,a=t,i=r,(0,eg.isThenable)(n)?n.then(e=>(i(),e),e=>{throw a(e),i(),e}):(i(),n)}(()=>t(o),()=>{let{status:e}=(0,eh.spanToJSON)(o);o.isRecording()&&(!e||"ok"===e)&&o.setStatus({code:t6.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{o.end()})})})}({name:`element[${e.identifier}]`,attributes:l,startTime:i,onlyIfParent:!0},e=>{e.end(i+o)})})},nc="sentry_previous_trace";function nd(e){return 1===e.traceFlags}function np(e={}){let t=e.client||(0,$.getClient)();if(!(0,U.isEnabled)()||!t)return{};let r=(0,ei.getMainCarrier)(),n=(0,t9.getAsyncContextStrategy)(r);if(n.getTraceData)return n.getTraceData(e);let a=e.scope||(0,$.getCurrentScope)(),i=e.span||(0,eh.getActiveSpan)(),s=i?(0,eh.spanToTraceHeader)(i):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,re.generateSentryTraceHeader)(t,n,r)}(a),o=i?(0,ea.getDynamicSamplingContextFromSpan)(i):(0,ea.getDynamicSamplingContextFromScope)(t,a),l=(0,t7.dynamicSamplingContextToSentryBaggageHeader)(o);return re.TRACEPARENT_REGEXP.test(s)?{"sentry-trace":s,baggage:l}:(B.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function nh(e){return e.split(",").some(e=>e.trim().startsWith(t7.SENTRY_BAGGAGE_KEY_PREFIX))}function nf(e=0){return(((0,em.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3}let nm=new WeakMap,ng=new Map,n_={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ny(e){let{url:t}=(0,eh.spanToJSON)(e).data;if(!t||"string"!=typeof t)return;let r=rY("resource",({entries:n})=>
22{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&((function(e){let t=[];if(void 0!=e.nextHopProtocol){let{name:r,version:n}=r6(e.nextHopProtocol);t.push(["network.protocol.version",n],["network.protocol.name",r])}return(0,em.browserPerformanceTimeOrigin)()?[...t,["http.request.redirect_start",nf(e.redirectStart)],["http.request.fetch_start",nf(e.fetchStart)],["http.request.domain_lookup_start",nf(e.domainLookupStart)],["http.request.domain_lookup_end",nf(e.domainLookupEnd)],["http.request.connect_start",nf(e.connectStart)],["http.request.secure_connection_start",nf(e.secureConnectionStart)],["http.request.connection_end",nf(e.connectEnd)],["http.request.request_start",nf(e.requestStart)],["http.request.response_start",nf(e.responseStart)],["http.request.response_end",nf(e.responseEnd)]]:t})(n).forEach(t=>e.setAttribute(...t)),setTimeout(r))})})}function nv(e){try{return new URL(e,eq.location.origin).href}catch{return}}let nE={...ru,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...n_};function nS(e,t,r){e.emit("startPageLoadSpan",t,r),(0,$.getCurrentScope)().setTransactionName(t.name);let n=e[nI];return n&&e.emit("afterStartPageLoadSpan",n),n}function nb(e,t,r){let{url:n,isRedirect:a}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a}),e.emit("startNavigationSpan",t,{isRedirect:a});let i=(0,$.getCurrentScope)();return i.setTransactionName(t.name),n&&!a&&i.setSDKProcessingMetadata({normalizedRequest:{...eJ(),url:n}}),e[nI]}function nT(e){let t=eq.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}let nI="_sentry_idleSpan";function nR(e,t){(0,V.addNonEnumerableProperty)(e,nI,t)}let nw="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nx=M.GLOBAL_OBJ,nO=null,nN=new Map,nC=new Map;function nP(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return r}let nk=e=>{let t=function(){if(!nx?._sentryRouteManifest||"string"!=typeof nx._sentryRouteManifest)return null;let e=nx._sentryRouteManifest;if(nO&&v===e)return nO;nN.clear(),nC.clear();let t={staticRoutes:[],dynamicRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return nO=t,v=e,t}catch{return nw&&B.debug.warn("Could not extract route manifest"),null}}();if(!t)return;if(nC.has(e))return nC.get(e);let{staticRoutes:r,dynamicRoutes:n}=t;if(!Array.isArray(r)||!Array.isArray(n))return;let a=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=function(e){if(nN.has(e))return nN.get(e)??null;try{let t=new RegExp(e);return nN.set(e,t),t}catch(t){return nw&&B.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}(t.regex);r?.test(e)&&n.push(t.path)}return n})(e,r,n).sort((e,t)=>nP(e)-nP(t))[0];return nC.set(e,a),a},nA="incomplete-app-router-transaction",nM="router-patch",nD={current:void 0},nL=M.GLOBAL_OBJ;function nU(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let n$=new WeakSet;function nB(e,t,r){n$.has(t)||(n$.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,a,i){if("router-patch"!==nM)return t.apply(a,i);let s=nA,o={[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};"push"===n?(s=nU(i[0]),o["navigation.type"]="router.push"):"replace"===n?(s=nU(i[0]),o["navigation.type"]="router.replace"):"back"===n?o["navigation.type"]="router.back":"forward"===n&&(o["navigation.type"]="router.forward");let l=nk(s);return r.current=nb(e,{name:l??s,attributes:{...o,[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l?"route":"url"}}),t.apply(a,i)}}))}))}var nj=e.i(214233);let nF=nj.default.events?nj.default:nj.default.default,nH=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function nW(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let a=n>=0?e[n]:"/";a&&(t=`${a}/${t}`,r="/"===a.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function nz(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}M.GLOBAL_OBJ;let nG=!1,nq=M.GLOBAL_OBJ;function nY(e,t){var r,n,a,i;let s=t?.getDsn(),o=t?.getOptions().tunnel;return r=e,!!(n=s)&&r.includes(n.host)||(a=e,!!(i=o)&&nX(a)===nX(i))}function nX(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function nJ(){let e;return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==A.default?A.default:0))||(e=M.GLOBAL_OBJ.process,e?.type==="renderer"))}function nV(e){return new URLSearchParams(e).toString()}function nK(e,t=B.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nV(e)];if(!e)return[void 0]}catch(r){return tq&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tq&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function nQ(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}let nZ=M.GLOBAL_OBJ,n0="sentryReplaySession",n1="Unable to send Replay";var n2=Object.defineProperty,n3=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?n2(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},n4=((I=n4||{})[I.Document=0]="Document",I[I.DocumentType=1]="DocumentType",I[I.Element=2]="Element",I[I.Text=3]="Text",I[I.CDATA=4]="CDATA",I[I.Comment=5]="Comment",I);function n5(e){let t=e?.host;return t?.shadowRoot===e}function n8(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function n6(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,n9).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 n9(e){let t;if("styleSheet"in e)try{t=n6(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,a=n[r],i=n.getPropertyPriority(a);t+=`${a}:${n.getPropertyValue(a)}
22${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class n7{constructor(){n3(this,"idNodeMap",new Map),n3(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(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 r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ae({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function at({isMasked:e,element:t,value:r,maskInputFn:n}){let a=r||"";return e?(n&&(a=n(a,t)),"*".repeat(a.length)):a}function ar(e){return e.toLowerCase()}function an(e){return e.toUpperCase()}let aa="__rrweb_original__";function ai(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ar(t):null}function as(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function ao(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let al={};function au(e){let t=al[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return al[e]=n.bind(window)}function ac(...e){return au("setTimeout")(...e)}function ad(...e){return au("clearTimeout")(...e)}function ap(e){try{return e.contentDocument}catch(e){}}let ah=1,af=RegExp("[^a-z0-9-_:]");function am(){return ah++}let ag=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,a_=/^(?:[a-z+]+:)?\/\//i,ay=/^www\..*/i,av=/^(data:)([^,]*),(.*)/i;function aE(e,t){return(e||"").replace(ag,(e,r,n,a,i,s)=>{let o=n||i||s,l=r||a||"";if(!o)return e;if(a_.test(o)||ay.test(o)||av.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let u=t.split("/"),c=o.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let aS=/^[^ \t\n\r\u000c]+/,ab=/^[, \t\n\r\u000c]+/,aT=new WeakMap;function aI(e,t){return t&&""!==t.trim()?aR(e,t):t}function aR(e,t){let r=aT.get(e);if(r||(r=e.createElement("a"),aT.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function aw(e,t,r,n,a,i){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return aI(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return aI(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,a=e.exec(t.substring(r));return a?(n=a[0],r+=n.length,n):""}let a=[];for(;n(ab),!(r>=t.length);){let i=n(aS);if(","===i.slice(-1))i=aI(e,i.substring(0,i.length-1)),a.push(i);else{let n="";i=aI(e,i);let s=!1;for(;;){let e=t.charAt(r);if(""===e){a.push((i+n).trim());break}if(s)")"===e&&(s=!1);else if(","===e){r+=1,a.push((i+n).trim());break}else"("===e&&(s=!0);n+=e,r+=1}}}return a.join(", ")}(e,n);if("style"===r)return aE(n,aR(e));else if("object"===t&&"data"===r)return aI(e,n);return"function"==typeof i?i(r,n,a):n}function ax(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function aO(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}function aN(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:aN(e.parentNode,t,r,n+1)}function aC(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function aP(e,t,r,n,a,i){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,l=-1;if(i){if((l=aN(s,aC(n,a)))<0)return!0;o=aN(s,aC(t,r),l>=0?l:1/0)}else{if((o=aN(s,aC(t,r)))<0)return!1;l=aN(s,aC(n,a),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!i}catch(e){}return!!i}function ak(e){return null==e?"":e.toLowerCase()}function aA(e,t){let r,{doc:n,mirror:a,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:v,maskInputFn:E,slimDOMOptions:S,dataURLOptions:b={},inlineImages:T=!1,recordCanvas:I=!1,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:O,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:P=!1}=t,{preserveWhiteSpace:k=!0}=t,A=function(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:i,unblockSelector:s,maskAllText:o,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:_,maskInputFn:y,dataURLOptions:v={},inlineImages:E,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:T=!1}=t,I=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:n4.Document,childNodes:[],compatMode:e.compatMode};return{type:n4.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:n4.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:a,blockSelector:i,unblockSelector:s,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:_=!1,rootId:y,maskTextClass:v,unmaskTextClass:E,maskTextSelector:S,unmaskTextSelector:b}=t,T=aO(e,a,i,s),I=function(e){if(e instanceof HTMLFormElement)return"form";let t=ar(e.tagName);return af.test(t)?"div":t}(e),R={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];
22r.name&&!ax(I,r.name,r.value)&&(R[r.name]=aw(n,I,ar(r.name),r.value,e,u))}if("link"===I&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=n6(t)),r&&(R.rel=null,R.href=null,R.crossorigin=null,R._cssText=aE(r,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=n6(e.sheet);t&&(R._cssText=aE(t,aR(n)))}if("input"===I||"textarea"===I||"select"===I||"option"===I){let t=ai(e),r=as(e,an(I),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=aP(e,v,S,E,b,ae({type:t,tagName:an(I),maskInputOptions:l}));R.value=at({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(R.checked=n)}if("option"===I&&(e.selected&&!l.select?R.selected=!0:delete R.selected),"canvas"===I&&m){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let a=t.getImageData;if(new Uint32Array((aa in a?a[aa]:a).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(R.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(R.rr_dataURL=t)}}if("img"===I&&p){h||(f=(h=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{h.width=e.naturalWidth,h.height=e.naturalHeight,f.drawImage(e,0,0),R.rr_dataURL=h.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?R.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===I||"video"===I)&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),T){let{width:t,height:r}=e.getBoundingClientRect();R={class:R.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==I||g(R.src)||(T||ap(e)||(R.rr_src=R.src),delete R.src);try{customElements.get(I)&&(r=!0)}catch(e){}return{type:n4.Element,tagName:I,attributes:R,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:T,rootId:y,isCustom:r}}(e,{doc:r,blockClass:a,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:l,maskInputOptions:g,maskInputFn:y,dataURLOptions:v,inlineImages:E,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:T,rootId:I,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:a,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:l,maskInputFn:u,rootId:c}=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||e.parentNode.sheet?.cssRules&&(p=n6(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=aE(p,aR(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=aP(e,n,i,a,s,r);return h||f||m||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=at({isMasked:aP(e,n,i,a,s,ae({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:n4.Text,textContent:p||"",isStyle:h,rootId:c}}(e,{doc:r,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:g,maskInputFn:y,rootId:I});case e.CDATA_SECTION_NODE:return{type:n4.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:n4.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}(e,{doc:n,mirror:a,blockClass:i,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:E,dataURLOptions:b,inlineImages:T,recordCanvas:I,keepIframeSrcFn:C,newlyAddedElement:P});if(!A)return console.warn(e,"not serialized"),null;r=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===n4.Comment)return!0;
22if(e.type===n4.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===ao(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ak(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ak(e.attributes.name)||"icon"===ak(e.attributes.rel)||"apple-touch-icon"===ak(e.attributes.rel)||"shortcut icon"===ak(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ak(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ak(e.attributes.property).match(/^(og|twitter|fb):/)||ak(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ak(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ak(e.attributes.name)||"googlebot"===ak(e.attributes.name)||"bingbot"===ak(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ak(e.attributes.name)||"generator"===ak(e.attributes.name)||"framework"===ak(e.attributes.name)||"publisher"===ak(e.attributes.name)||"progid"===ak(e.attributes.name)||ak(e.attributes.property).match(/^article:/)||ak(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ak(e.attributes.name)||"yandex-verification"===ak(e.attributes.name)||"csrf-token"===ak(e.attributes.name)||"p:domain_verify"===ak(e.attributes.name)||"verify-v1"===ak(e.attributes.name)||"verification"===ak(e.attributes.name)||"shopify-checkout-api-token"===ak(e.attributes.name)))return!0}}return!1}(A,S)&&(k||A.type!==n4.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?am():-2;let M=Object.assign(A,{id:r});if(a.add(e,M),-2===r)return null;R&&R(e);let D=!m;if(M.type===n4.Element){D=D&&!M.needBlock,delete M.needBlock;let t=e.shadowRoot;t&&n8(t)&&(M.isShadowHost=!0)}if((M.type===n4.Document||M.type===n4.Element)&&D){S.headWhitespace&&M.type===n4.Element&&"head"===M.tagName&&(k=!1);let t={doc:n,mirror:a,blockClass:i,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:m,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:E,slimDOMOptions:S,dataURLOptions:b,inlineImages:T,recordCanvas:I,preserveWhiteSpace:k,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:N,keepIframeSrcFn:C};for(let r of Array.from(e.childNodes)){let e=aA(r,t);e&&M.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=aA(r,t);n&&(n8(e.shadowRoot)&&(n.isShadow=!0),M.childNodes.push(n))}}return e.parentNode&&n5(e.parentNode)&&n8(e.parentNode)&&(M.isShadow=!0),M.type!==n4.Element||"iframe"!==M.tagName||aO(e,i,s,o)||function(e,t,r){let n,a=e.contentWindow;if(!a)return;let i=!1;try{n=a.document.readyState}catch(e){return}if("complete"!==n){let n=ac(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{ad(n),i=!0,t()});return}let s="about:blank";if(a.location.href!==s||e.src===s||""===e.src)return ac(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=ap(e);if(t&&w){let r=aA(t,{doc:t,mirror:a,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:E,slimDOMOptions:S,dataURLOptions:b,inlineImages:T,recordCanvas:I,preserveWhiteSpace:k,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:N,keepIframeSrcFn:C});r&&w(e,r)}},x),M.type===n4.Element&&"link"===M.tagName&&"string"==typeof M.attributes.rel&&("stylesheet"===M.attributes.rel||"preload"===M.attributes.rel&&"string"==typeof M.attributes.href&&"css"===ao(M.attributes.href))&&function(e,t,r){let n,a=!1;try{n=e.sheet}catch(e){return}if(n)return;let i=ac(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{ad(i),a=!0,t()})}(e,()=>{if(O){let t=aA(e,{doc:n,mirror:a,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:E,slimDOMOptions:S,dataURLOptions:b,inlineImages:T,recordCanvas:I,preserveWhiteSpace:k,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:N,keepIframeSrcFn:C});t&&O(e,t)}},N),M}function aM(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let aD="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.",aL={map:{},getId:()=>(console.error(aD),-1),getNode:()=>(console.error(aD),null),removeNodeFromMap(){console.error(aD)},has:()=>(console.error(aD),!1),reset(){console.error(aD)}};function aU(e,t,r={}){let n=null,a=0;return function(...i){let s=Date.now();a||!1!==r.leading||(a=s);let o=t-(s-a),l=this;o<=0||o>t?(n&&(function(...e){a0("clearTimeout")(...e)}
22(n),n=null),a=s,e.apply(l,i)):n||!1===r.trailing||(n=a1(()=>{a=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},o))}}function a$(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(aL=new Proxy(aL,{get:(e,t,r)=>("map"===t&&console.error(aD),Reflect.get(e,t,r))}));let aB=Date.now;function aj(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function aF(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function aH(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function aW(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function az(e,t,r,n,a){if(!e)return!1;let i=aW(e);if(!i)return!1;let s=aC(t,r);if(!a){let e=n&&i.matches(n);return s(i)&&!e}let o=aN(i,s),l=-1;return!(o<0)&&(n&&(l=aN(i,aC(null,n))),o>-1&&l<0||o<l)}function aG(e,t){return -2===t.getId(e)}function aq(e){return!!e.changedTouches}function aY(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function aX(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function aJ(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(aB=()=>new Date().getTime());class aV{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}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 aK(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function aQ(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=aK(r);)r=t;return r}(e);return t.contains(r)}(e))}let aZ={};function a0(e){let t=aZ[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return aZ[e]=n.bind(window)}function a1(...e){return a0("setTimeout")(...e)}var a2=((R=a2||{})[R.DomContentLoaded=0]="DomContentLoaded",R[R.Load=1]="Load",R[R.FullSnapshot=2]="FullSnapshot",R[R.IncrementalSnapshot=3]="IncrementalSnapshot",R[R.Meta=4]="Meta",R[R.Custom=5]="Custom",R[R.Plugin=6]="Plugin",R),a3=((w=a3||{})[w.Mutation=0]="Mutation",w[w.MouseMove=1]="MouseMove",w[w.MouseInteraction=2]="MouseInteraction",w[w.Scroll=3]="Scroll",w[w.ViewportResize=4]="ViewportResize",w[w.Input=5]="Input",w[w.TouchMove=6]="TouchMove",w[w.MediaInteraction=7]="MediaInteraction",w[w.StyleSheetRule=8]="StyleSheetRule",w[w.CanvasMutation=9]="CanvasMutation",w[w.Font=10]="Font",w[w.Log=11]="Log",w[w.Drag=12]="Drag",w[w.StyleDeclaration=13]="StyleDeclaration",w[w.Selection=14]="Selection",w[w.AdoptedStyleSheet=15]="AdoptedStyleSheet",w[w.CustomElement=16]="CustomElement",w),a4=((x=a4||{})[x.MouseUp=0]="MouseUp",x[x.MouseDown=1]="MouseDown",x[x.Click=2]="Click",x[x.ContextMenu=3]="ContextMenu",x[x.DblClick=4]="DblClick",x[x.Focus=5]="Focus",x[x.Blur=6]="Blur",x[x.TouchStart=7]="TouchStart",x[x.TouchMove_Departed=8]="TouchMove_Departed",x[x.TouchEnd=9]="TouchEnd",x[x.TouchCancel=10]="TouchCancel",x),a5=((O=a5||{})[O.Mouse=0]="Mouse",O[O.Pen=1]="Pen",O[O.Touch=2]="Touch",O),a8=((N=a8||{})[N.Play=0]="Play",N[N.Pause=1]="Pause",N[N.Seeked=2]="Seeked",N[N.VolumeChange=3]="VolumeChange",N[N.RateChange=4]="RateChange",N);function a6(e){try{return e.contentDocument}catch(e){}}class a9{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 r=0;r<e;r++)t=t?.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 r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.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;
22this.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 a7=(e,t)=>`${e}@${t}`;class ie{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,r=new a9,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},a=a=>{if(!a.parentNode||!aQ(a))return;let i=n5(a.parentNode)?this.mirror.getId(aK(a)):this.mirror.getId(a.parentNode),s=n(a);if(-1===i||-1===s)return r.addNode(a);let o=aA(a,{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=>{aY(e,this.mirror)&&!az(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),aX(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),aJ(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{az(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)}});o&&(e.push({parentId:i,nextId:s,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!ir(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&a(e);for(let e of this.addedSet)ia(this.droppedSet,e)||ir(this.removes,e,this.mirror)?ia(this.movedSet,e)?a(e):this.droppedSet.add(e):a(e);let i=null;for(;r.length;){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),a(e.value)}let s={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 r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).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};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!aG(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;az(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:aP(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,aW(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=ai(t),a=t.tagName;n=as(t,a,r);let i=ae({maskInputOptions:this.maskInputOptions,tagName:a,type:r});n=at({isMasked:aP(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(az(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let a=this.attributeMap.get(e.target);
22if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(a6(t))return;r="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ax(t.tagName,r)&&(a.attributes[r]=aw(this.doc,ar(t.tagName),ar(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),i=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||i!==r.style.getPropertyPriority(n)?""===i?a.styleDiff[n]=e:a.styleDiff[n]=[e,i]:a._unchangedStyles[n]=[e,i]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(az(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=n5(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);az(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||aG(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(it(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(n5(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[a7(r,n)]?it(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(n5(e.target)&&n8(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(aG(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[a7(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!az(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),aJ(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 it(e,t){e.delete(t),t.childNodes.forEach(t=>it(e,t))}function ir(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function ia(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let ii=e=>m?(...t)=>{try{return e(...t)}catch(e){if(m&&!0===m(e))return()=>{};throw e}}:e,is=[];function io(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{}return e&&e.target}function il(e,t){let r=new ie;is.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,a=window?.Zone?.__symbol__?.("MutationObserver");a&&window[a]&&(n=window[a]);let i=new n(ii(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function iu({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:s}){return aM("scroll",ii(aU(ii(s=>{let o=io(s);if(!o||az(o,n,a,i,!0))return;let l=r.getId(o);if(o===t&&t.defaultView){let r=aj(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),s.scroll||100)),t)}let ic=["INPUT","TEXTAREA","SELECT"],id=new WeakMap;function ip(e){var t=[];if(i_("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||i_("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||i_("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||i_("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function ih(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function im({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&a&&i?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){let r=i.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),ii(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}
22function ig(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=il(e,e.doc));let a=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let a;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=aU(ii(t=>{let r=Date.now()-a;e(o.map(e=>(e.timeOffset-=r,e)),t),o=[],a=null}),s),u=ii(aU(ii(e=>{let t=io(e),{clientX:r,clientY:i}=aq(e)?e.changedTouches[0]:e;a||(a=aB()),o.push({x:r,y:i,id:n.getId(t),timeOffset:aB()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?a3.Drag:e instanceof MouseEvent?a3.MouseMove:a3.TouchMove)}),i,{trailing:!1})),c=[aM("mousemove",u,r),aM("touchmove",u,r),aM("drag",u,r)];return ii(()=>{c.forEach(e=>e())})}(e),i=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],u=null;return Object.keys(a4).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(s=>{let o=ar(s),c=t=>{let o=io(t);if(az(o,n,a,i,!0))return;let l=null,c=s;
22if("pointerType"in t){switch(t.pointerType){case"mouse":l=a5.Mouse;break;case"touch":l=a5.Touch;break;case"pen":l=a5.Pen}l===a5.Touch?a4[s]===a4.MouseDown?c="TouchStart":a4[s]===a4.MouseUp&&(c="TouchEnd"):a5.Pen}else aq(t)&&(l=a5.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===a5.Touch||c.startsWith("Mouse")&&l===a5.Mouse)&&(l=null)):a4[s]===a4.Click&&(l=u,u=null);let d=aq(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(o),{clientX:h,clientY:f}=d;ii(e)({type:a4[c],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(a4[s]){case a4.MouseDown:case a4.MouseUp:o=o.replace("mouse","pointer");break;case a4.TouchStart:case a4.TouchEnd:return}l.push(aM(o,c,t))}),ii(()=>{l.forEach(e=>e())})}(e),s=iu(e),o=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return aM("resize",ii(aU(ii(()=>{let t=aF(),a=aH();(r!==t||n!==a)&&(e({width:Number(a),height:Number(t)}),r=t,n=a)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=io(e),c=e.isTrusted,g=r&&an(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>ic.indexOf(g)||az(r,n,a,i,!0))return;let y=r;if(y.classList.contains(s)||o&&y.matches(o))return;let v=ai(r),E=as(y,g,v),S=!1,b=ae({maskInputOptions:l,tagName:g,type:v}),T=aP(r,p,f,h,m,b);("radio"===v||"checkbox"===v)&&(S=r.checked),E=at({isMasked:T,element:r,value:E,maskInputFn:u}),_(r,d?{text:E,isChecked:S,userTriggered:c}:{text:E,isChecked:S});let I=r.name;"radio"===v&&I&&S&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(e=>{if(e!==r){let t=at({isMasked:T,element:e,value:as(e,g,v),maskInputFn:u});_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function _(t,n){let a=id.get(t);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){id.set(t,n);let a=r.getId(t);ii(e)({...n,id:a})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>aM(e,ii(g),t)),v=t.defaultView;if(!v)return()=>{y.forEach(e=>e())};let E=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 E&&E.set&&y.push(...S.map(e=>(function e(t,r,n,a,i=window){let s=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,a?n:{set(e){a1(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){ii(g)({target:this,isTrusted:!1})}},!1,v))),ii(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:a,sampling:i,doc:s}){let o=ii(s=>aU(ii(i=>{let o=io(i);if(!o||az(o,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=o;e({type:s,id:a.getId(o),currentTime:l,volume:u,muted:c,playbackRate:d})}),i.media||500)),l=[aM("play",o(a8.Play),s),aM("pause",o(a8.Pause),s),aM("seeked",o(a8.Seeked),s),aM("volumechange",o(a8.VolumeChange),s),aM("ratechange",o(a8.RateChange),s)];return ii(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let a,i;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ii((n,a,i)=>{let[s,o]=i,{id:l,styleId:u}=ih(a,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:o}]}),n.apply(a,i)})});let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ii((n,a,i)=>{let[s]=i,{id:o,styleId:l}=ih(a,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:s}]}),n.apply(a,i)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:ii((n,a,i)=>{let[s]=i,{id:o,styleId:l}=ih(a,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:s}),n.apply(a,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(i=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:ii((n,a,i)=>{let[s]=i,{id:o,styleId:l}=ih(a,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:s}),n.apply(a,i)})}));let l={};iy("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(iy("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),iy("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),iy("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,a])=>{u[n]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(u[n].insertRule,{apply:ii((n,a,i)=>{let[s,o]=i,{id:l,styleId:u}=ih(a.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:[...ip(a),o||0]}]}),n.apply(a,i)})}),a.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:ii((n,a,i)=>{let[s]=i,{id:o,styleId:l}=ih(a.parentStyleSheet,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...ip(a),s]}]}),n.apply(a,i)})})}),ii(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),i&&(n.CSSStyleSheet.prototype.replaceSync=i),Ob
22ject.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=im(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let i=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:ii((a,s,o)=>{let[l,u,c]=o;if(r.has(l))return i.apply(s,[l,u,c]);let{id:d,styleId:p}=ih(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:ip(s.parentRule)}),a.apply(s,o)})});let s=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:ii((a,i,o)=>{let[l]=o;if(r.has(l))return s.apply(i,[l]);let{id:u,styleId:c}=ih(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:ip(i.parentRule)}),a.apply(i,o)})}),ii(()=>{a.CSSStyleDeclaration.prototype.setProperty=i,a.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){let n=new i(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let s=a$(t.fonts,"add",function(t){return function(r){return a1(ii(()=>{let t=a.get(r);t&&(e(t),a.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(s),ii(()=>{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,selectionCb:s}=e,o=!0,l=ii(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:s,startOffset:o,endContainer:u,endOffset:c}=e.getRangeAt(t);az(s,n,a,i,!0)||az(u,n,a,i,!0)||l.push({start:r.getId(s),startOffset:o,end:r.getId(u),endOffset:c})}s({ranges:l})});return l(),aM("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?a$(r.customElements,"define",function(e){return function(r,n,a){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,a])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ii(()=>{is.forEach(e=>e.reset()),r?.disconnect(),a(),i(),s(),o(),l(),u(),c(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function i_(e){return void 0!==window[e]}function iy(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class iv{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let a=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),s=a.get(t);return s||(s=this.generateIdFn(),a.set(t,s),i.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let a=n.get(t);return a||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}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}}class iE{constructor(){this.crossOriginIframeMirror=new iv(am),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class iS{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iv(am),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=ne
22w iv(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}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=a6(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}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 r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case a2.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:a2.IncrementalSnapshot,data:{source:a3.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case a2.Meta:case a2.Load:case a2.DomContentLoaded:break;case a2.Plugin:return t;case a2.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case a2.IncrementalSnapshot:switch(t.data.source){case a3.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),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 a3.Drag:case a3.TouchMove:case a3.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case a3.ViewportResize:return!1;case a3.MediaInteraction:case a3.MouseInteraction:case a3.Scroll:case a3.CanvasMutation:case a3.Input:return this.replaceIds(t.data,e,["id"]),t;case a3.StyleSheetRule:case a3.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case a3.Font:return t;case a3.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case a3.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let a of n)(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===n4.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ib{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class iT{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(!n8(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=il({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(iu({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),a1(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(im({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=a6(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(a$(e.prototype,"attachShadow",function(e){return function(n){let a=e.call(this,n);return this.shadowRoot&&aQ(this)&&r.addShadowRoot(this.shadowRoot,t),a}}))}
22reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var iI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iR="undefined"==typeof Uint8Array?[]:new Uint8Array(256),iw=0;iw<iI.length;iw++)iR[iI.charCodeAt(iw)]=iw;class ix{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class iO{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new aV,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 r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:n9(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class iN{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){a0("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=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let iC=new n7;function iP(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:y=!0,maskAllInputs:v,maskInputOptions:E,slimDOMOptions:S,maskAttributeFn:b,maskInputFn:T,maskTextFn:I,maxCanvasSize:R=null,packFn:w,sampling:x={},dataURLOptions:O={},mousemoveWait:N,recordDOM:C=!0,recordCanvas:P=!1,recordCrossOriginIframes:k=!1,recordAfter:A="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:D=!1,inlineImages:L=!1,plugins:U,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:B=new Set([]),errorHandler:j,onMutation:F,getCanvasManager:H}=e;m=j;let W=!k||window.parent===window,z=!1;if(!W)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(W&&!r)throw Error("emit function is required");if(!W&&!z)return()=>{};void 0!==N&&void 0===x.mousemove&&(x.mousemove=N),iC.reset();let G=!0===v?{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!==E?E:{},q=!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 Y=0,X=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!z&&(e=w(e)),e};g=(e,i)=>{if(e.timestamp=aB(),is[0]?.isFrozen()&&e.type!==a2.FullSnapshot&&(e.type!==a2.IncrementalSnapshot||e.data.source!==a3.Mutation)&&is.forEach(e
22=>e.unfreeze()),W)r?.(X(e),i);else if(z){let t={type:"rrweb",event:X(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===a2.FullSnapshot)t=e,Y=0;else if(e.type===a2.IncrementalSnapshot){if(e.data.source===a3.Mutation&&e.data.isAttachIframe)return;Y++;let r=a&&Y>=a,i=n&&t&&e.timestamp-t.timestamp>n;(r||i)&&en(!0)}};let J=e=>{g({type:a2.IncrementalSnapshot,data:{source:a3.Mutation,...e}})},V=e=>g({type:a2.IncrementalSnapshot,data:{source:a3.Scroll,...e}}),K=e=>g({type:a2.IncrementalSnapshot,data:{source:a3.CanvasMutation,...e}}),Q=new iO({mutationCb:J,adoptedStyleSheetCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new iE:new iS({mirror:iC,mutationCb:J,stylesheetManager:Q,recordCrossOriginIframes:k,wrappedEmit:g});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:iC,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new iN,et=function(e,t){try{return e?e(t):new ix}catch{return console.warn("Unable to initialize CanvasManager"),new ix}}(H,{mirror:iC,win:window,mutationCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.CanvasMutation,...e}}),recordCanvas:P,blockClass:i,blockSelector:s,unblockSelector:o,maxCanvasSize:R,sampling:x.canvas,dataURLOptions:O,errorHandler:j}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ib:new iT({mutationCb:J,scrollCb:V,bypassOptions:{onMutation:F,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:y,maskInputOptions:G,dataURLOptions:O,maskAttributeFn:b,maskTextFn:I,maskInputFn:T,recordCanvas:P,inlineImages:L,sampling:x,slimDOMOptions:q,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:$,processedNodeManager:ee},mirror:iC}),en=(e=!1)=>{if(!C)return;g({type:a2.Meta,data:{href:window.location.href,width:aH(),height:aF()}},e),Q.reset(),er.init(),is.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new n7,blockClass:n="rr-block",blockSelector:a=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:T,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:w=()=>!1}=t||{};return aA(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:o,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,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:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:T,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:iC,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:y,maskAllInputs:G,maskAttributeFn:b,maskInputFn:T,maskTextFn:I,slimDOM:q,dataURLOptions:O,recordCanvas:P,inlineImages:L,onSerialize:e=>{aY(e,iC)&&Z.addIframe(e),aX(e,iC)&&Q.trackLinkElement(e),aJ(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:$});if(!t)return console.warn("Failed to snapshot the document");g({type:a2.FullSnapshot,data:{node:t,initialOffset:aj(window)}}
22),is.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,iC.getId(document))};_=en;try{let e=[],t=e=>ii(ig)({onMutation:F,mutationCb:J,mousemoveCb:(e,t)=>g({type:a2.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.ViewportResize,...e}}),inputCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.Input,...e}}),mediaInteractionCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.MediaInteraction,...e}}),styleSheetRuleCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.StyleSheetRule,...e}}),styleDeclarationCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>g({type:a2.IncrementalSnapshot,data:{source:a3.Font,...e}}),selectionCb:e=>{g({type:a2.IncrementalSnapshot,data:{source:a3.Selection,...e}})},customElementCb:e=>{g({type:a2.IncrementalSnapshot,data:{source:a3.CustomElement,...e}})},blockClass:i,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:G,inlineStylesheet:y,sampling:x,recordDOM:C,recordCanvas:P,inlineImages:L,userTriggeredOnInput:M,collectFonts:D,doc:e,maskAttributeFn:b,maskInputFn:T,maskTextFn:I,keepIframeSrcFn:$,blockSelector:s,unblockSelector:o,slimDOMOptions:q,dataURLOptions:O,mirror:iC,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:B,plugins:U?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>g({type:a2.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(aM("DOMContentLoaded",()=>{g({type:a2.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&r()})),e.push(aM("load",()=>{g({type:a2.Load,data:{}}),"load"===A&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),_=void 0,m=void 0}}catch(e){console.warn(e)}}function ik(e){return e>0x2540be3ff?e:1e3*e}function iA(e){return e>0x2540be3ff?e/1e3:e}function iM(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:a2.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,es.normalize)(t,10,1e3)}}),"console"===t.category)))}function iD(e){return e.closest("button,a")||e}function iL(e){let t=iU(e);return t&&t instanceof Element?iD(t):t}function iU(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}iP.mirror=iC,iP.takeFullSnapshot=function(e){if(!_)throw Error("please take full snapshot after start recording");_(e)},(C=k||(k={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";let i$=new Set([a3.Mutation,a3.StyleSheetRule,a3.StyleDeclaration,a3.AdoptedStyleSheet,a3.CanvasMutation,a3.Selection,a3.MediaInteraction]);class iB{constructor(e,t,r=iM){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=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=iF()},y||(y=[],(0,V.fill)(nZ,"open",function(e){return function(...t){if(y)try{y.forEach(e=>e())}catch{}return e.apply(nZ,t)}})),y.push(e),()=>{let t=y?y.indexOf(e):-1;t>-1&&y.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 r,n,a;if(r=t,n=this._ignoreSelector,!ij.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((a=e).data&&"number"==typeof a.data.nodeId&&a.timestamp))return;let i={timestamp:iA(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===i.node&&1>
22Math.abs(e.timestamp-i.timestamp))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=iA(e)}registerScroll(e=Date.now()){this._lastScroll=iA(e)}registerClick(e){let t=iD(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=iF();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:a,clickBreadcrumb:i}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:nZ.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,s);return}if(a>1){let e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:nZ.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=tJ(()=>this._checkClicks(),1e3)}}let ij=["A","BUTTON","INPUT"];function iF(){return Date.now()/1e3}function iH(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var iW=((P=iW||{})[P.Document=0]="Document",P[P.DocumentType=1]="DocumentType",P[P.Element=2]="Element",P[P.Text=3]="Text",P[P.CDATA=4]="CDATA",P[P.Comment=5]="Comment",P);let iz=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function iG(e,t){let r=iP.mirror.getId(e),n=r&&iP.mirror.getNode(r),a=n&&iP.mirror.getMeta(n),i=a&&a.type===iW.Element?a:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===iW.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(iz.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(i.attributes)}}:{}}}let iq={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:a,startTime:i,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:iJ(i),end:iJ(a),name:n,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:a}=e,i=iJ(a);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:a,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:iJ(h),end:iJ(i),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:s,duration:a,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function iY(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function iX(e){let t=iq[e.entryType];return t?t(e):null}function iJ(e){return(((0,em.browserPerformanceTimeOrigin)()||nZ.performance.timeOrigin)+e)/1e3}function iV(e){let t=e.entries[e.entries.length-1];return iZ(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function iK(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];
22for(let t of n.sources)if(t.node){r.push(t.node);let n=iP.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return iZ(e,"cumulative-layout-shift",r,t)}function iQ(e){let t=e.entries[e.entries.length-1];return iZ(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function iZ(e,t,r,n){let a=e.value,i=e.rating,s=iJ(a);return{type:"web-vital",name:t,start:s,end:s,data:{value:a,size:a,rating:i,nodeIds:r?r.map(e=>iP.mirror.getId(e)):void 0,attributions:n}}}let i0="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,i1=["log","warn","error"],i2="[Replay] ";function i3(e,t="info"){tn({category:"console",data:{logger:"replay"},level:t,message:`${i2}${e}`},{level:t})}let i4=(S=!1,b=!1,T={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{S=!!e.captureExceptions,b=!!e.traceInternals}},i0?(i1.forEach(e=>{T[e]=(...t)=>{B.debug[e](i2,...t),b&&i3(t.join(""),tr(e))}}),T.exception=(e,...t)=>{t.length&&T.error&&T.error(...t),B.debug.error(i2,e),S?(0,U.captureException)(e):b&&i3(e,"error")},T.infoTick=(...e)=>{B.debug.log(i2,...e),b&&setTimeout(()=>i3(e[0]),0)}):i1.forEach(e=>{T[e]=()=>void 0}),T);class i5 extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class i8{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!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 i5;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?ik(e):null}}class i6{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){i0&&i4.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,a)=>{let i=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",i),!t.success){i0&&i4.error("Error in compression worker: ",t.response),a(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class i9{constructor(e){this._worker=new i6(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=ik(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new i5):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{i0&&i4.exception(e,'Sending "clear" message to worker failed',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 i7{constructor(e){this._fallback=new i8,this._compression=new i9(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}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}set waitForCheckout(e){this._used.waitForCheckout=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)}
22async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){i0&&i4.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){i0&&i4.exception(e,"Failed to add events when switching buffers.")}}}function se(){try{return"sessionStorage"in nZ&&!!nZ.sessionStorage}catch{return!1}}function st(e){return void 0!==e&&Math.random()<e}function sr(e){if(se())try{nZ.sessionStorage.setItem(n0,JSON.stringify(e))}catch{}}function sn(e){let t=Date.now(),r=e.id||(0,G.uuid4)(),n=e.started||t,a=e.lastActivity||t,i=e.segmentId||0;return{id:r,started:n,lastActivity:a,segmentId:i,sampled:e.sampled,previousSessionId:e.previousSessionId}}function sa({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let a=sn({sampled:st(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&sr(a),a}function si(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function ss(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return si(e.started,t,n)||si(e.lastActivity,r,n)}function so(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!ss(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function sl({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let a=n.stickySession&&function(){if(!se())return null;try{let e=nZ.sessionStorage.getItem(n0);if(!e)return null;let t=JSON.parse(e);return i0&&i4.infoTick("Loading existing session"),sn(t)}catch{return null}}();return a?so(a,{sessionIdleExpire:e,maxReplayDuration:t})?(i0&&i4.infoTick("Session in sessionStorage is expired, creating new one..."),sa(n,{previousSessionId:a.id})):a:(i0&&i4.infoTick("Creating new session"),sa(n,{previousSessionId:r}))}function su(e,t,r){return!!sd(e,t)&&(sc(e,t,r),!0)}async function sc(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let a="buffer"===e.recordingMode;try{r&&a&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let i=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===a2.Custom)return t(e)}catch(e){return i0&&i4.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,i.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}catch(i){let t=i&&i instanceof i5;if(t&&a)return n.clear(),n.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"});let r=(0,$.getClient)();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function sd(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=ik(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(i0&&i4.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function sp(e){return"transaction"===e.type}function sh(e){return"feedback"===e.type}function sf(e){return!!e.category}function sm(){let e=(0,$.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,eh.getActiveSpan)();if(t){let e=(0,ea.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function sg(e,t){return t.map(({type:t,start:r,end:n,name:a,data:i})=>{let s=e.throttledAddEvent({type:a2.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:r,endTimestamp:n,data:i}}});return"string"==typeof s?Promise.resolve(null):s})}function s_(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(!i0||!e.getOptions()._experiments.traceInternals)&&nY(r,(0,$.getClient)())||e.addUpdate(()=>(sg(e,[t]),!0)))}function sy(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 r=nV(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function sv(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function sE(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function sS(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:a,method:i,statusCode:s,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:a,data:{method:i,statusCode:s,request:o,response:l}}}
22function sb(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sT(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:a,warnings:i}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let a=e.length>15e4,i=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(a){let t=e.slice(0,15e4);return i?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(i)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=a,i?.length&&(n._meta={warnings:i}),n}function sI(e,t){return Object.entries(e).reduce((r,[n,a])=>{let i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=a),r},{})}function sR(e,t){let r=function(e,t=nZ.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(nZ.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,q.stringMatchesSomePattern)(r,t)}async function sw(e,t,r){try{let n=await sx(e,t,r),a=sS("resource.fetch",n);s_(r.replay,a)}catch(e){i0&&i4.exception(e,"Failed to capture fetch breadcrumb")}}async function sx(e,t,r){let n=Date.now(),{startTimestamp:a=n,endTimestamp:i=n}=t,{url:s,method:o,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=sR(s,r.networkDetailAllowUrls)&&!sR(s,r.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:i,url:s,method:o,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var a,i;let s=r?(a=r,i=t,1===a.length&&"string"!=typeof a[0]?sP(a[0],i):2===a.length?sP(a[1],i):{}):{};if(!e)return sT(s,n,void 0);let[o,l]=nK(nQ(r),i4),u=sT(s,n,o);return l?sE(u,l):u}(r,t.input,u):sb(u),response:await sO(d,r,t.response,c)}}async function sO(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,a){if(!e&&void 0!==a)return sb(a);let i=n?sC(n.headers,r):{};if(!n||!t&&void 0!==a)return sT(i,a,void 0);let[s,o]=await sN(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:a}){try{let i=e?.length&&void 0===r?sy(e):r;if(!n)return sb(i);if(t)return sT(a,i,e);return sT(a,i,void 0)}catch(e){return i0&&i4.exception(e,"Failed to serialize response body"),sT(a,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:i});return o?sE(l,o):l}async function sN(e){let t=function(e){try{return e.clone()}catch(e){i0&&i4.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>{let n=tJ(()=>t(Error("Timeout while trying to read response body")),500);sk(r).then(t=>e(t),e=>
22t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return i0&&i4.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return i0&&i4.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function sC(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function sP(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?sC(r,t):Array.isArray(r)?{}:sI(r,t):{}}async function sk(e){return await e.text()}async function sA(e,t,r){try{let n=function(e,t,r){let n,a=Date.now(),{startTimestamp:i=a,endTimestamp:s=a,input:o,xhr:l}=t,{url:u,method:c,status_code:d=0,request_body_size:p,response_body_size:h}=e.data;if(!u)return null;if(!l||!sR(u,r.networkDetailAllowUrls)||sR(u,r.networkDetailDenyUrls)){let e=sb(p);return{startTimestamp:i,endTimestamp:s,url:u,method:c,statusCode:d,request:e,response:sb(h)}}let f=l[th],m=f?sI(f.request_headers,r.networkRequestHeaders):{},g=sI((n=l.getAllResponseHeaders())?n.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{},r.networkResponseHeaders),[_,y]=r.networkCaptureBodies?nK(o,i4):[void 0],[v,E]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return i0&&i4.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return i0&&i4.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return i0&&i4.warn("Failed to get xhr response body",...t),[void 0]}(l):[void 0],S=sT(m,p,_),b=sT(g,h,v);return{startTimestamp:i,endTimestamp:s,url:u,method:c,statusCode:d,request:y?sE(S,y):S,response:E?sE(b,E):b}}(e,t,r),a=sS("resource.xhr",n);s_(r.replay,a)}catch(e){i0&&i4.exception(e,"Failed to capture xhr breadcrumb")}}async function sM(e){try{return Promise.all(sg(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(nZ.performance.memory)]))}catch{return[]}}let sD=M.GLOBAL_OBJ.navigator;async function sL({client:e,scope:t,replayId:r,event:n}){let a={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,a);let i=await (0,ev.prepareEvent)(e.getOptions(),n,a,t,e,(0,$.getIsolationScope)());if(!i)return null;e.emit("postprocessEvent",i,a),i.platform=i.platform||"javascript";let s=e.getSdkMetadata(),{name:o,version:l}=s?.sdk||{};return i.sdk={...i.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function sU({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:a,session:i}){var s;let o,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
23`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=n,h=(0,$.getClient)(),f=(0,$.getCurrentScope)(),m=h?.getTransport(),g=h?.getDsn();if(!h||!m||!g||!i.sampled)return(0,eE.resolvedSyncPromise)({});let _={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:a/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:i.sampled},y=await sL({scope:f,client:h,replayId:t,event:_});if(!y)return h.recordDroppedEvent("event_processor","replay"),i0&&i4.log("An event processor returned `null`, will not send event."),(0,eE.resolvedSyncPromise)({});delete y.sdkProcessingMetadata;let v=(s=h.getOptions().tunnel,eo(ep(y,ed(y),s,g),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await m.send(v)}catch(t){let e=Error(n1);try{e.cause=t}catch{}throw e}if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new s$(o.statusCode);let E=tG({},o);if(tz(E,"replay"))throw new sB(E);return o}
23class s$ extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class sB extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function sj(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await sU(e),!0}catch(r){if(r instanceof s$||r instanceof sB)throw r;if((0,U.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${n1} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{tJ(async()=>{try{await sj(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let sF="__THROTTLED";class sH{constructor({options:e,recordingOptions:t}){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,r){let n,a,i,s=r?.maxWait?Math.max(r.maxWait,t):0,o=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function c(){return a&&clearTimeout(a),a=o(l,t),s&&void 0===i&&(i=o(l,s)),n}return c.cancel=u,c.flush=function(){return void 0!==a||void 0!==i?l():n},c}(()=>this._flush(),this._options.flushMinDelay,{...{maxWait:this._options.flushMaxDelay},setTimeoutImpl:tJ}),this._throttledAddEvent=function(e,t,r){let n=new Map,a=!1;return(...t)=>{let r,i=Math.floor(Date.now()/1e3);if(r=i-5,n.forEach((e,t)=>{t<r&&n.delete(t)}),[...n.values()].reduce((e,t)=>e+t,0)>=300){let e=a;return a=!0,e?"__SKIPPED":sF}a=!1;let s=n.get(i)||0;return n.set(i,s+1),e(...t)}}((e,t)=>sd(this,e)?sc(this,e,t):Promise.resolve(null),0,0);const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),a=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(a&&(this.clickDetector=new iB(this,a)),i0){const t=e._experiments;i4.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===nZ.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=iH({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=iH({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:s,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=r||a||i,u=1===s.length;if(!l&&u)return null;let c=(0,eG.htmlTreeAsString)(o,{maxStringLength:200})||"<unknown>",d=iG(o,c);return iH({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:s}})}(t);r&&iM(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){i0&&i4.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n){if(this._initializeSessionForSampling(e),!this.session){i0&&i4.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",i0&&i4.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){i0&&i4.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){i0&&i4.log("Buffering is in progress, call `flush()` to save the replay");return}i0&&i4.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=sl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
23startBuffering(){if(this._isEnabled){i0&&i4.log("Buffering is in progress, call `flush()` to save the replay");return}i0&&i4.infoTick("Starting replay in buffer mode");let e=sl({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,r=this._canvas;this._stopRecording=iP({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){i0&&i4.warn("Received replay event after session expired.");return}let a=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(i$.has(n)&&e.registerMutation(t.timestamp),n===a3.Scroll&&e.registerScroll(t.timestamp),t.data.source===a3.MouseInteraction){let{type:r,id:n}=t.data,a=iP.mirror.getNode(n);a instanceof HTMLElement&&r===a4.Click&&e.registerClick(a)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!su(e,r,a))return!0;if(!a)return!1;let t=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;su(e,(t=e.getOptions(),{type:a2.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}}}),!1)}}(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){let r=e.eventBuffer.getEarliestTimestamp();r&&(i0&&i4.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&sr(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(sD?.userAgent??"")||/Macintosh/i.test(sD?.userAgent??"")&&sD?.maxTouchPoints&&sD?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.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,this.recordingMode="buffer";try{i0&&i4.log(`Stopping Replay${t?` triggered by ${t}`:""}`),sm(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(se())try{nZ.sessionStorage.removeItem(n0)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),i0&&i4.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),i0&&i4.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();i0&&i4.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"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&&this._isEnabled&&!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?.id}
23checkAndHandleExpiredSession(){return this._lastActivity&&si(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${nZ.location.pathname}${nZ.location.hash}${nZ.location.search}`,t=`${nZ.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 r=this._throttledAddEvent(e,t);if(r===sF){let e=iH({category:"replay.throttled"});this.addUpdate(()=>!su(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,eh.getActiveSpan)(),t=e&&(0,eh.getRootSpan)(e),r=(t&&(0,eh.spanToJSON)(t).data||{})[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,eh.spanToJSON)(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||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 23
23var 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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,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=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,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[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,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[s[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=w,P=p,Q=y,R=g;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,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-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(s[t]^s[t+1]<<A^s[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||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++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|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(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 B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
23']),URL.createObjectURL(e)}return""}();if(!t)return;i0&&i4.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new i7(r)}catch(e){i0&&i4.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return i0&&i4.log("Using simple buffer"),new i8}({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,r=sl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!so(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{nZ.document.addEventListener("visibilitychange",this._handleVisibilityChange),nZ.addEventListener("blur",this._handleWindowBlur),nZ.addEventListener("focus",this._handleWindowFocus),nZ.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,$.getClient)();tc(t=>{var r,n;if(!e.isEnabled())return;let a=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?iL(e.event):iU(e.event),t=(0,eG.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return iH({category:`ui.${e.name}`,...iG(t,r)})}(t);if(!a)return;let i="click"===t.name,s=i?t.event:void 0;i&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&(r=e.clickDetector,n=iL(t.event),r.handleClick(a,n)),iM(e,a)}),tg(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(sg(e,[r]),!1)))}),(t=(0,$.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!sf(t))return;let n=(r=t,!sf(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return iH(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,es.normalize)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return iH({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):iH(r));n&&iM(e,n)})(e,t));let n=(0,$.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),o={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:s};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,a,i,s;n=t,"xhr"===n.category&&(a=r,a?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let a=sy(n),i=r.getResponseHeader("content-length")?sv(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return sy(r)}catch{return}}(r.response,r.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,r),sA(t,r,e)),i=t,"fetch"===i.category&&(s=r,s?.response)&&(!function(e,t){let{input:r,response:n}=t,a=sy(r?nQ(r):void 0),i=n?sv(n.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,r),sw(t,r,e))}
23catch(e){i0&&i4.exception(e,"Error when enriching network breadcrumb")}})(o,e,t))}catch{}let a=Object.assign((t,r)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||sp(t)||sh(t)?e.checkAndHandleExpiredSession()?sh(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:a2.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?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions?(i0&&i4.log("Ignoring error from rrweb internals",t),null):(("buffer"===e.recordingMode&&t.message!==n1&&t.exception&&!t.type&&st(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(sm(),t):t,{id:"Replay"});(0,U.addEventProcessor)(a),r&&(r.on("beforeSendEvent",t=>{var r,n;let a;e.isEnabled()&&!t.type&&(r=e,n=t,a=n.exception?.values?.[0]?.value,"string"==typeof a&&(a.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||a.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&iM(r,iH({category:"replay.hydrate-error",data:{url:(0,eG.getLocationHref)()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!sp(t))return;let n=r?.statusCode;if(n&&!(n<200)&&!(n>=300)){if(sp(t)){var a,i;let r;return void(a=e,i=t,r=a.getContext(),i.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(i.contexts.trace.trace_id))}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&tJ(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.flush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.flush()}))}(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 r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(rY(e,r))}),n.push(rG(iY(iV,e)),rz(iY(iK,e)),rq(iY(iQ,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{nZ.document.removeEventListener("visibilitychange",this._handleVisibilityChange),nZ.removeEventListener("blur",this._handleWindowBlur),nZ.removeEventListener("focus",this._handleWindowFocus),nZ.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||ss(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){i0&&i4.log("Document has become active, but session has expired");return}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:a2.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(iX).filter(
23Boolean).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(sg(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 r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_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){i0&&i4.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await sM(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 r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await sj({replayId:e,recordingData:a,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,$.getClient)();e&&e.recordDroppedEvent(t instanceof sB?"ratelimit_backoff":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){i0&&i4.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,a=r>this._options.maxReplayDuration+5e3;if(n||a){i0&&i4.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&i0&&i4.log("Flushing initial segment without checkout.");let s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&sr(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,i=n&&r>n;if(r>a||i){let e=iH({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function sW(e,t){return[...e,...t].join(",")}let sz='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',sG=["content-length","content-type","accept"],sq=!1;function sY(e){return[...sG,...e.map(e=>e.toLowerCase())]}function sX(e,t){var r;let n,a,i=(r=t.headers,n={},r.forEach((e,t)=>{n[t]=e}),n);try{let t=i[e]||i[e.toLowerCase()]||void 0;t&&(a=sJ(t))}catch{}return[i,a]}function sJ(e){return e.split("; ").reduce((e,t)=>{let[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function sV(e,t,r){var n,a;return n=e.failedRequestStatusCodes,n.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(a=e.failedRequestTargets,a.some(e=>"string"==typeof e?r.includes(e):e.test(r)))&&!nY(r,(0,$.getClient)())}function sK(e){let t=(0,$.getClient)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,i={message:a,exception:{values:[{type:"Error",value:a,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,G.addExceptionMechanism)(i,{type:"http.client",handled:!1}),i}function sQ(){let e=(0,$.getClient)();return!!e&&!!e.getOptions().sendDefaultPii}function sZ(){}globalThis._sentryRouteManifest='{"dynamicRoutes":[{"path":"/admin/aigrader2/:groupId/:taskInstanceId","regex":"^/admin/aigrader2/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/admin/aigrader2/:groupId/:taskInstanceId/:userId","regex":"^/admin/aigrader2/([^/]+)/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/admin/docs/:slug","regex":"^/admin/docs/([^/]+)$","paramNames":["slug"]},{"path":"/admin/task-packages/edit/:slug","regex":"^/admin/task-packages/edit/([^/]+)$","paramNames":["slug"]},{"path":"/elev/:groupId","regex":"^/elev/([^/]+)$","paramNames":["groupId"]},{"path":"/elev/:groupId/ai-grader","regex":"^/elev/([^/]+)/ai-grader$","paramNames":["groupId"]},{"path":"/elev/:groupId/ai-grader/:taskInstanceId","regex":"^/elev/([^/]+)/ai-grader/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/ai-grader2","regex":"^/elev/([^/]+)/ai-grader2$","paramNames":["groupId"]},{"path":"/elev/:groupId/ai-grader2/:taskInstanceId","regex":"^/elev/([^/]+)/ai-grader2/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/bedomningar","regex":"^/elev/([^/]+)/bedomningar$","paramNames":["groupId"]},{"path":"/elev/:groupId/chattar","regex":"^/elev/([^/]+)/chattar$","paramNames":["groupId"]},{"path":"/elev/:groupId/chattar/:taskResultId","regex":"^/elev/([^/]+)/chattar/([^/]+)$","paramNames":["groupId","taskResultId"]},{"path":"/elev/:groupId/cloze","regex":"^/elev/([^/]+)/cloze$","paramNames":["groupId"]},{"path":"/elev/:groupId/cloze/:taskInstanceId","regex":"^/elev/([^/]+)/cloze/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/conversations","regex":"^/elev/([^/]+)/conversations$","paramNames":["groupId"]},{"path":"/elev/:groupId/conversations/:conversationId","regex":"^/elev/([^/]+)/conversations/([^/]+)$","paramNames":["groupId","conversationId"]},{"path":"/elev/:groupId/exit-tickets","regex":"^/elev/([^/]+)/exit-tickets$","paramNames":["groupId"]},{"path":"/elev/:groupId/exit-tickets/:taskInstanceId","regex":"^/elev/([^/]+)/exit-tickets/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/guided/:categoryId","regex":"^/elev/([^/]+)/guided/([^/]+)$","paramNames":["groupId","categoryId"]},{"path":"/elev/:groupId/guided/:categoryId/:taskInstanceId","regex":"^/elev/([^/]+)/guided/([^/]+)/([^/]+)$","paramNames":["groupId","categoryId","taskInstanceId"]},{"path":"/elev/:groupId/icebreakers","regex":"^/elev/([^/]+)/icebreakers$","paramNames":["groupId"]},{"path":"/elev/:groupId/icebreakers/:taskInstanceId","regex":"^/elev/([^/]+)/icebreakers/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/kursinfo","regex":"^/elev/([^/]+)/kursinfo$","paramNames":["groupId"]},{"path":"/elev/:groupId/medlemmar","regex":"^/elev/([^/]+)/medlemmar$","paramNames":["groupId"]},{"path":"/elev/:groupId/ritning","regex":"^/elev/([^/]+)/ritning$","paramNames":["groupId"]},{"path":"/elev/:groupId/uppgift/:taskInstanceId","regex":"^/elev/([^/]+)/uppgift/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/uppgifter","regex":"^/elev/([^/]+)/uppgifter$","paramNames":["groupId"]},{"path":"/elev/:groupId/uppgifter/dictation","regex":"^/elev/([^/]+)/uppgifter/dictation$","paramNames":["groupId"]},{"path":"/elev/:groupId/uppgifter/dictation/:taskInstanceId","regex":"^/elev/([^/]+)/uppgifter/dictation/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/uppgifter/read","regex":"^/elev/([^/]+)/uppgifter/read$","paramNames":["groupId"]},{"path":"/elev/:groupId/uppgifter/read/:taskInstanceId","regex":"^/elev/([^/]+)/uppgifter/read/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/uppgifter/word","regex":"^/elev/([^/]+)/uppgifter/word$","paramNames":["groupId"]},{"path":"/elev/:groupId/uppgifter/word/:taskInstanceId","regex":"^/elev/([^/]+)/uppgifter/word/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/uppgifter/word2","regex":"^/elev/([^/]+)/uppgifter/word2$","paramNames":["groupId"]},{"path":"/elev/:groupId/uppgifter/word2/:taskInstanceId","regex":"^/elev/([^/]+)/uppgifter/word2/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/:groupId/video","regex":"^/elev/([^/]+)/video$","paramNames":["groupId"]},{"path":"/elev/:groupId/video/:taskInstanceId","regex":"^/elev/([^/]+)/video/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/elev/edit/:taskId","regex":"^/elev/edit/([^/]+)$","paramNames":["taskId"]},{"path":"/elev/skapa-uppgift/:slug","regex":"^/elev/skapa-uppgift/([^/]+)$","paramNames":["slug"]},{"path":"/larare/:groupId","regex":"^/larare/([^/]+)$","paramNames":["groupId"]},{"path":"/larare/:groupId/bedomningar","regex":"^/larare/([^/]+)/bedomningar$","paramNames":["groupId"]},{"path":"/larare/:groupId/bedomningar/:assessmentId","regex":"^/larare/([^/]+)/bedomningar/([^/]+)$","paramNames":["groupId","assessmentId"]},{"path":"/larare/:groupId/bedomningar/skapa","regex":"^/larare/([^/]+)/bedomningar/skapa$","paramNames":["groupId"]},{"path":"/larare/:groupId/conversations","regex":"^/larare/([^/]+)/conversations$","paramNames":["groupId"]},{"path":"/larare/:groupId/conversations/:conversationId","regex":"^/larare/([^/]+)/conversations/([^/]+)$","paramNames":["groupId","conversationId"]},{"path":"/larare/:groupId/dashboard","regex":"^/larare/([^/]+)/dashboard$","paramNames":["groupId"]},{"path":"/larare/:groupId/installningar","regex":"^/larare/([^/]+)/installningar$","paramNames":["groupId"]},{"path":"/larare/:groupId/installningar/copy","regex":"^/larare/([^/]+)/installningar/copy$","paramNames":["groupId"]},{"path":"/larare/:groupId/kursinfo","regex":"^/larare/([^/]+)/kursinfo$","paramNames":["groupId"]},{"path":"/larare/:groupId/kursinfo/edit/:id","regex":"^/larare/([^/]+)/kursinfo/edit/([^/]+)$","paramNames":["groupId","id"]},{"path":"/larare/:groupId/kursinfo/skapa","regex":"^/larare/([^/]+)/kursinfo/skapa$","paramNames":["groupId"]},{"path":"/larare/:groupId/matriser","regex":"^/larare/([^/]+)/matriser$","paramNames":["groupId"]},{"path":"/larare/:groupId/matriser/setup","regex":"^/larare/([^/]+)/matriser/setup$","paramNames":["groupId"]},{"path":"/larare/:groupId/medlemmar","regex":"^/larare/([^/]+)/medlemmar$","paramNames":["groupId"]},{"path":"/larare/:groupId/medlemmar/:userId","regex":"^/larare/([^/]+)/medlemmar/([^/]+)$","paramNames":["groupId","userId"]},{"path":"/larare/:groupId/medlemmar/indelning","regex":"^/larare/([^/]+)/medlemmar/indelning$","paramNames":["groupId"]},{"path":"/larare/:groupId/medlemmar/narvaro","regex":"^/larare/([^/]+)/medlemmar/narvaro$","paramNames":["groupId"]},{"path":"/larare/:groupId/medlemmar/ritning","regex":"^/larare/([^/]+)/medlemmar/ritning$","paramNames":["groupId"]},{"path":"/larare/:groupId/todo","regex":"^/larare/([^/]+)/todo$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter","regex":"^/larare/([^/]+)/uppgifter$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/ai-grader","regex":"^/larare/([^/]+)/uppgifter/ai-grader$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/ai-grader/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/ai-grader/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/ai-grader/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/ai-grader/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/:groupId/uppgifter/ai-grader2","regex":"^/larare/([^/]+)/uppgifter/ai-grader2$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/ai-grader2/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/ai-grader2/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/ai-grader2/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/ai-grader2/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/:groupId/uppgifter/ai-grader2/live/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/ai-grader2/live/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/ai-grader2/live/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/ai-grader2/live/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/:groupId/uppgifter/ai-voice","regex":"^/larare/([^/]+)/uppgifter/ai-voice$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/ai-voice/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/ai-voice/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/aichat","regex":"^/larare/([^/]+)/uppgifter/aichat$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/aichat/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/aichat/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/aichat/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/aichat/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/:groupId/uppgifter/cloze","regex":"^/larare/([^/]+)/uppgifter/cloze$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/cloze/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/cloze/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/cloze/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/cloze/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/:groupId/uppgifter/dictation","regex":"^/larare/([^/]+)/uppgifter/dictation$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/dictation/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/dictation/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/dictation/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/dictation/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/:groupId/uppgifter/exit-tickets","regex":"^/larare/([^/]+)/uppgifter/exit-tickets$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/exit-tickets/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/exit-tickets/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/icebreakers","regex":"^/larare/([^/]+)/uppgifter/icebreakers$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/icebreakers/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/icebreakers/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/read","regex":"^/larare/([^/]+)/uppgifter/read$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/read/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/read/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/read/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/read/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/:groupId/uppgifter/students","regex":"^/larare/([^/]+)/uppgifter/students$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/video","regex":"^/larare/([^/]+)/uppgifter/video$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/video/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/video/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/word/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/word/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/word/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/word/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId
23"]},{"path":"/larare/:groupId/uppgifter/word2","regex":"^/larare/([^/]+)/uppgifter/word2$","paramNames":["groupId"]},{"path":"/larare/:groupId/uppgifter/word2/:taskInstanceId","regex":"^/larare/([^/]+)/uppgifter/word2/([^/]+)$","paramNames":["groupId","taskInstanceId"]},{"path":"/larare/:groupId/uppgifter/word2/:taskInstanceId/:userId","regex":"^/larare/([^/]+)/uppgifter/word2/([^/]+)/([^/]+)$","paramNames":["groupId","taskInstanceId","userId"]},{"path":"/larare/chat/:chatId","regex":"^/larare/chat/([^/]+)$","paramNames":["chatId"]},{"path":"/larare/edit/:taskId","regex":"^/larare/edit/([^/]+)$","paramNames":["taskId"]},{"path":"/larare/skapa-uppgift/:slug","regex":"^/larare/skapa-uppgift/([^/]+)$","paramNames":["slug"]},{"path":"/login/forgot-password/:token","regex":"^/login/forgot-password/([^/]+)$","paramNames":["token"]},{"path":"/kunskapsbanken/:taskId","regex":"^/kunskapsbanken/([^/]+)$","paramNames":["taskId"]},{"path":"/kunskapsbanken/arbetsomraden/:categoryId","regex":"^/kunskapsbanken/arbetsomraden/([^/]+)$","paramNames":["categoryId"]},{"path":"/kunskapsbanken/p/:slug","regex":"^/kunskapsbanken/p/([^/]+)$","paramNames":["slug"]},{"path":"/:slug","regex":"^/([^/]+)$","paramNames":["slug"]},{"path":"/blogg/:slug*","regex":"^/blogg/(.+)$","paramNames":["slug"]},{"path":"/cosmos/:fixture","regex":"^/cosmos/([^/]+)$","paramNames":["fixture"]},{"path":"/seb/:taskInstanceId","regex":"^/seb/([^/]+)$","paramNames":["taskInstanceId"]}],"staticRoutes":[{"path":"/admin"},{"path":"/admin/add-user"},{"path":"/admin/aigrader2"},{"path":"/admin/cloze"},{"path":"/admin/demo-group"},{"path":"/admin/docs"},{"path":"/admin/email/tos"},{"path":"/admin/impersonate"},{"path":"/admin/licenses"},{"path":"/admin/roles"},{"path":"/admin/stats"},{"path":"/admin/stats/costs"},{"path":"/admin/stats/emails"},{"path":"/admin/stats/heartbeats"},{"path":"/admin/stats/licenses"},{"path":"/admin/stats/prompts"},{"path":"/admin/stats/subjects"},{"path":"/admin/stats/tasks"},{"path":"/admin/stats/users"},{"path":"/admin/task-packages"},{"path":"/admin/task-packages/add"},{"path":"/admin/utm"},{"path":"/admin/word2-audio-reports"},{"path":"/elev"},{"path":"/elev/collections"},{"path":"/elev/installningar"},{"path":"/elev/mina-grupper"},{"path":"/elev/mina-uppgifter"},{"path":"/elev/skapa-grupp"},{"path":"/elev/skapa-uppgift"},{"path":"/invite/error"},{"path":"/larare"},{"path":"/larare/chat"},{"path":"/larare/installningar"},{"path":"/larare/join-group"},{"path":"/larare/licenses"},{"path":"/larare/manual"},{"path":"/larare/mina-grupper"},{"path":"/larare/mina-uppgifter"},{"path":"/larare/skapa-grupp"},{"path":"/larare/skapa-uppgift"},{"path":"/superuser"},{"path":"/login"},{"path":"/login/forgot-password"},{"path":"/login/post-session-alert-popup"},{"path":"/login/saml"},{"path":"/login/verify-2fa"},{"path":"/login/verify-email"},{"path":"/onboarding"},{"path":"/onboarding/merge"},{"path":"/onboarding/subjects"},{"path":"/register"},{"path":"/register/email"},{"path":"/demo"},{"path":"/demo/aichat"},{"path":"/demo/aigrader2"},{"path":"/demo/cloze"},{"path":"/demo/exit"},{"path":"/demo/word2"},{"path":"/generate-pdf"},{"path":"/labs/anonymize"},{"path":"/kunskapsbanken"},{"path":"/kunskapsbanken/tabell"},{"path":"/"},{"path":"/logo"},{"path":"/page-preview"},{"path":"/style"},{"path":"/e2e/link-blocker"},{"path":"/e2e/link-blocker/test"},{"path":"/e2e/test-cache"},{"path":"/email-preview"}]}',!function(e){let t,r,n,a,i,s;nG&&(0,B.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),nG=!0;let o={environment:((t=A.default.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(n=tK(e),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&n.push(function(e={}){let t=((e={})=>{let t,r,n={name:void 0,source:void 0},a=eq.document,{enableInp:i,enableElementTiming:s,enableLongTask:o,enableLongAnimationFrame:l,_experiments:{enableInteractions:c,enableStandaloneClsSpans:h,enableStandaloneLcpSpans:f},beforeStartSpan:m,idleTimeout:g,finalTimeout:_,childSpanTimeout:y,markBackgroun
23dSpan:v,traceFetch:E,traceXHR:S,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:T,enableHTTPTimings:I,ignoreResourceSpans:R,ignorePerformanceApiSpans:w,instrumentPageLoad:x,instrumentNavigation:O,detectRedirects:N,linkPreviousTrace:C,consistentTraceSampling:P,onRequestSpanStart:k}={...nE,...e};function A(e,r,i=!0){let s="pageload"===r.op,o=m?m(r):r,l=o.attributes||{};if(r.name!==o.name&&(l[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",o.attributes=l),!i){let e=(0,em.dateTimestampInSeconds)();rr({...o,startTime:e}).end(e);return}n.name=o.name,n.source=l[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let u=rc(o,{idleTimeout:g,finalTimeout:_,childSpanTimeout:y,disableAutoFinish:s,beforeSpanEnd:r=>{t?.(),function(e,t){var r,n;let a=r5(),i=(0,em.browserPerformanceTimeOrigin)();if(!a?.getEntries||!i)return;let s=r8(i),o=a.getEntries(),{op:l,start_timestamp:u}=(0,eh.spanToJSON)(e);o.slice(ni).forEach(r=>{let n=r8(r.startTime),a=r8(Math.max(0,r.duration));if("navigation"!==l||!u||!(s+n<u))switch(r.entryType){case"navigation":var i,o,c,d,p,h;let f,m,g;i=e,o=r,c=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{no(i,o,e,c)}),no(i,o,"secureConnection",c,"TLS/SSL"),no(i,o,"fetch",c,"cache"),no(i,o,"domainLookup",c,"DNS"),d=i,p=o,f=(h=c)+r8(p.requestStart),m=h+r8(p.responseEnd),g=h+r8(p.responseStart),p.responseEnd&&(r3(d,f,m,{op:"browser.request",name:p.name,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),r3(d,g,m,{op:"browser.response",name:p.name,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,r,n,a,i){if(["mark","measure"].includes(t.entryType)&&(0,q.stringMatchesSomePattern)(t.name,i))return;let s=rh(!1),o=a+Math.max(r,r8(s?s.requestStart:0)),l=a+r,u=l+n,c={[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};o!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=o),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,eg.isPrimitive)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,eg.isPrimitive)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),o<=u&&r3(e,o,u,{name:t.name,op:t.entryType,attributes:c})}(e,r,n,a,s,t.ignorePerformanceApiSpans);let i=rI(),o=r.startTime<i.firstHiddenTime;"first-paint"===r.name&&o&&(ns.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&o&&(ns.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,a,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let o=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(o))return;let l=to(r),u={[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};nl(u,t,"transferSize","http.response_transfer_size"),nl(u,t,"encodedBodySize","http.response_content_length"),nl(u,t,"decodedBodySize","http.decoded_response_content_length");let c=t.deliveryType;null!=c&&(u["http.response_delivery_type"]=c);let d=t.renderBlockingStatus;if(d&&(u["resource.render_blocking_status"]=d),l.protocol&&(u["url.scheme"]=l.protocol.split(":").pop()),l.host&&(u["server.address"]=l.host),u["url.same_origin"]=r.includes(tu.location.origin),null!=t.nextHopProtocol){let{name:e,version:r}=r6(t.nextHopProtocol);u["network.protocol.name"]=e,u["network.protocol.version"]=r}let p=i+n;r3(e,p,p+a,{name:r.replace(tu.location.origin,""),op:o,attributes:u})}(e,r,r.name,n,a,s,t.ignoreResourceSpans)}}),ni=Math.max(o.length-1,0),function(e){let t=tu.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),r2(r.rtt)&&(ns["connection.rtt"]={value:r.rtt,unit:"millisecond"})),r2(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),r2(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=rh(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(ns),t.recordClsOnPageloadSpan||delete ns.cls,t.recordLcpOnPageloadSpan||delete ns.lcp,Object.entries(ns).forEac
23h(([e,t])=>{!function(e,t,r,n=(0,eh.getActiveSpan)()){let a=n&&(0,eh.getRootSpan)(n);a&&(j.DEBUG_BUILD&&B.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),a.addEvent(e,{[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",rf()),r=e,n=t,d&&n.recordLcpOnPageloadSpan&&(d.element&&r.setAttribute("lcp.element",(0,eG.htmlTreeAsString)(d.element)),d.id&&r.setAttribute("lcp.id",d.id),d.url&&r.setAttribute("lcp.url",d.url.trim().slice(0,200)),null!=d.loadTime&&r.setAttribute("lcp.loadTime",d.loadTime),null!=d.renderTime&&r.setAttribute("lcp.renderTime",d.renderTime),r.setAttribute("lcp.size",d.size)),p?.sources&&n.recordClsOnPageloadSpan&&p.sources.forEach((e,t)=>r.setAttribute(`cls.source.${t+1}`,(0,eG.htmlTreeAsString)(e.node)))),d=void 0,p=void 0,ns={}}(r,{recordClsOnPageloadSpan:!h,recordLcpOnPageloadSpan:!f,ignoreResourceSpans:R,ignorePerformanceApiSpans:w}),nR(e,void 0);let n=(0,$.getCurrentScope)(),a=n.getPropagationContext();n.setPropagationContext({...a,traceId:u.spanContext().traceId,sampled:(0,eh.spanIsSampled)(u),dsc:(0,ea.getDynamicSamplingContextFromSpan)(r)})}});function c(){a&&["interactive","complete"].includes(a.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}nR(e,u),s&&a&&(a.addEventListener("readystatechange",()=>{c()}),c())}return{name:"BrowserTracing",setup(e){function n(){let e=(0,eh.getActiveSpan)(),t=e&&(0,eh.getRootSpan)(e);if(t){let e="internal_error";j.DEBUG_BUILD&&B.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:t6.SPAN_STATUS_ERROR,message:e})}}if(rd||(n.tag="sentry_tracingErrorCallback",rd=!0,tI(n),tx(n)),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=r5();if(n&&(0,em.browserPerformanceTimeOrigin)()){n.mark&&tu.performance.mark("sentry-tracing-init");let a=t?function(e){let t,r=0;if(!r9("largest-contentful-paint"))return;let n=rG(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);r7(e,(e,a)=>{var i,s,o,l;let u,c,d,p,h;i=r,s=t,o=a,l=e,tq&&B.debug.log(`Sending LCP span (${i})`),u=r8(((0,em.browserPerformanceTimeOrigin)()||0)+(s?.startTime||0)),c=(0,$.getCurrentScope)().getScopeData().transactionName,d=s?(0,eG.htmlTreeAsString)(s.element):"Largest contentful paint",p={[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[eS.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":o,"sentry.report_event":l},s&&(s.element&&(p["lcp.element"]=(0,eG.htmlTreeAsString)(s.element)),s.id&&(p["lcp.id"]=s.id),s.url&&(p["lcp.url"]=s.url.trim().slice(0,200)),null!=s.loadTime&&(p["lcp.loadTime"]=s.loadTime),null!=s.renderTime&&(p["lcp.renderTime"]=s.renderTime),null!=s.size&&(p["lcp.size"]=s.size)),(h=r4({name:d,transaction:c,attributes:p,startTime:u}))&&(h.addEvent("lcp",{[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:i}),h.end(u)),n()})}(r):rG(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ns.lcp={value:e.value,unit:"millisecond"},d=t)},!0),i=rZ("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(ns.ttfb={value:e.value,unit:"millisecond"})},rK,u),s=e?function(e){let t,r=0;if(!r9("layout-shift"))return;let n=rz(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);r7(e,(e,a)=>{var i,s,o,l;let u,c,d,p,h;i=r,s=t,o=a,l=e,tq&&B.debug.log(`Sending CLS span (${i})`),u=r8(((0,em.browserPerformanceTimeOrigin)()||0)+(s?.startTime||0)),c=(0,$.getCurrentScope)().getScopeData().transactionName,d=s?(0,eG.htmlTreeAsString)(s.sources[0]?.node):"Layout shift",p={[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[eS.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:s?.duration||0,"sentry.pageload.span_id":o,"sentry.report_event":l},s?.sources&&s.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=(0,eG.htmlTreeAsString)(e.node)}),(h=r4({name:d,transaction:c,attributes:p,startTime:u}))&&(h.addEvent("cls",{[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[eS.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:i}),h.end(u)),n()})}(r):rz(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ns.cls={value:e.value,unit:""},p=t)},!0);return()=>{a?.(),i(),s?.()}}return()=>void 0}({recordClsStandaloneSpans:h||!1,recordLcpStandaloneSpans:f||!1,client:e}),i&&function(){if(r5()&&(0,em.browserPerformanceTimeOrigin)()){let e=rq(na);()=>{e()}}}(),s&&r5()&&(0,em.browserPerformanceTimeOrigin)()&&rY("element",nu),l&&M.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,eh.getActiveSpan)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=r8((0,em.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:n,op:a}=(0,eh.spanToJSON)(t);if("navigation"===a&&n&&e<n)continue;let i=r8(r.duration),s={[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}
23,{invoker:o,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];s["browser.script.invoker"]=o,s["browser.script.invoker_type"]=l,u&&(s["code.filepath"]=u),c&&(s["code.function"]=c),-1!==d&&(s["browser.script.source_char_position"]=d),r3(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):o&&rY("longtask",({entries:e})=>{let t=(0,eh.getActiveSpan)();if(!t)return;let{op:r,start_timestamp:n}=(0,eh.spanToJSON)(t);for(let a of e){let e=r8((0,em.browserPerformanceTimeOrigin)()+a.startTime),i=r8(a.duration);"navigation"===r&&n&&e<n||r3(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}),c&&rY("event",({entries:e})=>{let t=(0,eh.getActiveSpan)();if(t){for(let r of e)if("click"===r.name){let e=r8((0,em.browserPerformanceTimeOrigin)()+r.startTime),n=r8(r.duration),a={name:(0,eG.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},i=(0,eG.getComponentName)(r.target);i&&(a.attributes["ui.component_name"]=i),r3(t,e,e+n,a)}}}),N&&a){let e=()=>{r=(0,em.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function m(){let t=e[nI];t&&!(0,eh.spanToJSON)(t).timestamp&&(ty&&B.debug.log(`[Tracing] Finishing current active span with op: ${(0,eh.spanToJSON)(t).op}`),t.setAttribute(eS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(t,r)=>{if((0,$.getClient)()!==e)return;if(r?.isRedirect){ty&&B.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),A(e,{op:"navigation.redirect",...t},!1);return}m(),(0,$.getIsolationScope)().setPropagationContext({traceId:(0,t0.generateTraceId)(),sampleRand:Math.random()});let n=(0,$.getCurrentScope)();n.setPropagationContext({traceId:(0,t0.generateTraceId)(),sampleRand:Math.random()}),n.setSDKProcessingMetadata({normalizedRequest:void 0}),A(e,{op:"navigation",...t})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,$.getClient)()!==e)return;m();let n=r.sentryTrace||nT("sentry-trace"),a=r.baggage||nT("baggage"),i=(0,re.propagationContextFromHeaders)(n,a),s=(0,$.getCurrentScope)();s.setPropagationContext(i),s.setSDKProcessingMetadata({normalizedRequest:eJ()}),A(e,{op:"pageload",...t})})},afterAllSetup(e){var t,a,s,o,l;let u,d,p=(0,eG.getLocationHref)();if("off"!==C&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,a=n?function(){try{let e=eq.sessionStorage?.getItem(nc);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,eh.getRootSpan)(e)!==e)return;let t=(0,$.getCurrentScope)().getPropagationContext();a=function(e,t,r){let n=(0,eh.spanToJSON)(t),a={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[eS.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return a;let i=e.spanContext;return i.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(ty&&B.debug.log(`Adding previous_trace ${i} link to span ${{op:n.op,...t.spanContext()}}`),t.addLink({context:i,attributes:{[eS.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${+!!nd(i)}`)),a)}(a,e,t),n&&function(e){try{eq.sessionStorage.setItem(nc,JSON.stringify(e))}catch(e){ty&&B.debug.warn("Could not store previous trace in sessionStorage",e)}}(a)});let i=!0;r&&e.on("beforeSampling",e=>{if(!a)return;let t=(0,$.getCurrentScope)(),r=t.getPropagationContext();if(i&&r.parentSpanId){i=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(a.sampleRate),sampled:String(nd(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=nd(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[eS.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:a.sampleRate}})}(e,{linkPreviousTrace:C,consistentTraceSampling:P}),eq.location){if(x){let t=(0,em.browserPerformanceTimeOrigin)();nS(e,{name:eq.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}O&&tg(({to:t,from:n})=>{var a,i;let s,o;
23if(void 0===n&&p?.indexOf(t)!==-1){p=void 0;return}p=void 0;let l=ts(t),u=e[nI],c=u&&N&&(a=u,i=r,s=(0,eh.spanToJSON)(a),!((o=(0,em.dateTimestampInSeconds)())-s.start_timestamp>.3)&&(!i||!(o-i<=.3)));nb(e,{name:l?.pathname||eq.location.pathname,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:c})})}v&&(eq.document?eq.document.addEventListener("visibilitychange",()=>{let e=(0,eh.getActiveSpan)();if(!e)return;let t=(0,eh.getRootSpan)(e);if(eq.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,eh.spanToJSON)(t);ty&&B.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:t6.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ty&&B.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),c&&(t=e,a=g,s=_,o=y,l=n,eq.document&&addEventListener("click",()=>{let e="ui.action.click",r=t[nI];if(r&&["navigation","pageload"].includes((0,eh.spanToJSON)(r).op)){ty&&B.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(u&&(u.setAttribute(eS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),u.end(),u=void 0),!l.name){ty&&B.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}u=rc({name:l.name,op:e,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l.source||"url"}},{idleTimeout:a,finalTimeout:s,childSpanTimeout:o})},{capture:!0})),i&&(rY("event",d=({entries:e})=>{let t=(0,eh.getActiveSpan)(),r=t&&(0,eh.getRootSpan)(t);e.forEach(e=>{if(!("duration"in e)||!r)return;let t=e.interactionId;if(null!=t&&!nr.has(t)){if(nt.length>10){let e=nt.shift();nr.delete(e)}nt.push(t),nr.set(t,r)}})}),rY("first-input",d)),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:a,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:o,onRequestSpanStart:l}={...n_,...t},u="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let r=(0,eG.getLocationHref)();if(r){let n,a;try{n=new URL(e,r),a=new URL(r).origin}catch{return!1}let i=n.origin===a;return t?(0,q.stringMatchesSomePattern)(n.toString(),t)||i&&(0,q.stringMatchesSomePattern)(n.pathname,t):i}{let r=!!e.match(/^\/(?!\/)/);return t?(0,q.stringMatchesSomePattern)(e,t):r}})(e,o),d={};if(r){let t;e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=ng.get(e.span_id);t&&(e.timestamp=t/1e3,ng.delete(e.span_id))}}),e)),a&&(eZ(t="fetch-body-resolved",e=>{if(e.response){let t=nm.get(e.response);t&&e.endTimestamp&&ng.set(t,e.endTimestamp)}}),e0(t,()=>e6(e7))),e8(e=>{let t=function(e,t,r,n,a="auto.http.browser"){var i,s,o,l,u,c,d;let p,h;if(!e.fetchData)return;let{method:f,url:m}=e.fetchData,g=(0,tZ.hasSpansEnabled)()&&t(m);if(e.endTimestamp&&g){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(function(e,t){if(t.response){(0,t6.setHttpStatus)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:t6.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),delete n[t]);return}let _=!!(0,eh.getActiveSpan)(),y=g&&_?rr((i=m,s=f,o=a,{name:(p=ts(i))?`${s} ${function(e){if(ti(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(p)}`:s,attributes:(l=i,u=p,c=s,d=o,h={url:l,type:"fetch","http.method":c,[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d,[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"},u&&(ti(u)||(h["http.url"]=u.href,h["server.address"]=u.host),u.search&&(h["http.query"]=u.search),u.hash&&(h["http.fragment"]=u.hash)),h)})):new t1;if(e.fetchData.__span=y.spanContext().spanId,n[y.spanContext().spanId]=y,r(e.fetchData.url)){let t=e.args[0],r=e.args[1]||{},n=function(e,t,r){var n;let a=np({span:r}),i=a["sentry-trace"],s=a.baggage;if(!i)return;let o=t.headers||((0,eg.isRequest)(e)?e.headers:void 0);if(!o)return{...a};if(n=o,"undefined"!=typeof Headers&&(0,eg.isInstanceOf)(n,Headers)){let e=new Headers(o);if(e.get("sentry-trace")||e.set("sentry-trace",i),s){let t=e.get("baggage");t?nh(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(o)){let e=[...o];o.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]);let t=o.find(e=>"baggage"===e[0]&&nh(e[1]));return s&&!t&&e.push(["baggage",s]),e}{let e="sentry-trace"in o?o["sentry-trace"]:void 0,t="baggage"in o?o.baggage:void 0,r=t?Array.isArray(t)?[...t]:[t]:[],n=t&&(Array.isArray(t)?t.find(e=>nh(e)):nh(t));return s&&!n&&r.push(s),{...o,"sentry-trace":e??i,baggage:r.length>0?r.join(","):void 0}}}(t,r,(0,tZ.hasSpansEnabled)()&&_?y:void 0);n&&(e.args[1]=r,r.headers=n)}let v=(0,$.getClient)();if(v){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};v.emit("beforeOutgoingRequestSpan",y,t)}return y}(e,u,c,d);if(e.response&&e.fetchData.__span&&nm.set(e.response,e.fetchData.__span),t){let r=nv(e.fetchData.url),n=r?to(r).host:void 0;
23t.setAttributes({"http.url":r,"server.address":n}),s&&ny(t),l?.(t,{headers:e.headers})}})}n&&tf(e=>{let t=function(e,t,r,n){let a=e.xhr,i=a?.[th];if(!a||a.__sentry_own_request__||!i)return;let{url:s,method:o}=i,l=(0,tZ.hasSpansEnabled)()&&t(s);if(e.endTimestamp&&l){let e=a.__sentry_xhr_span_id__;if(!e)return;let t=n[e];t&&void 0!==i.status_code&&((0,t6.setHttpStatus)(t,i.status_code),t.end(),delete n[e]);return}let u=nv(s),c=u?to(u):to(s),d=tl(s),p=!!(0,eh.getActiveSpan)(),h=l&&p?rr({name:`${o} ${d}`,attributes:{url:s,type:"xhr","http.method":o,"http.url":u,"server.address":c?.host,[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...c?.search&&{"http.query":c?.search},...c?.hash&&{"http.fragment":c?.hash}}}):new t1;a.__sentry_xhr_span_id__=h.spanContext().spanId,n[a.__sentry_xhr_span_id__]=h,r(s)&&function(e,t){let{"sentry-trace":r,baggage:n}=np({span:t});r&&function(e,t,r){let n=e.__sentry_xhr_v3__?.request_headers;if(!n?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),r){let t=n?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,r,n)}(a,(0,tZ.hasSpansEnabled)()&&p?h:void 0);let f=(0,$.getClient)();return f&&f.emit("beforeOutgoingRequestSpan",h,e),h}(e,u,c,d);if(t){let r;s&&ny(t);try{r=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}l?.(t,{headers:r})}})}(e,{traceFetch:E,traceXHR:S,trackFetchStreamPerformance:b,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:T,enableHTTPTimings:I,onRequestSpanStart:k})}}})({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){if(eq.document.getElementById("__NEXT_DATA__"))nF.events.on("routeChangeStart",t=>{let r,n,a=tl(t),i=function(e){let t=eq.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,a,i=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),a=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${a}${n}(?:/)?$`));return e.match(i)})}(a);i?(r=i,n="route"):(r=a,n="url"),nb(e,{name:r,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})});else{let t,r,n;E=(t,r)=>{let n=new URL(t,eq.location.href).pathname,a=nk(n),i=a??n;"router-patch"===nM&&(nM="transition-start-hook");let s=nD.current;s?(s.updateName(i),s.setAttributes({"navigation.type":`router.${r}`,[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url"}),nD.current=void 0):nb(e,{name:i,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url","navigation.type":`router.${r}`}})},eq.addEventListener("popstate",()=>{let t=nk(eq.location.pathname);nD.current?.isRecording()?(nD.current.updateName(t??eq.location.pathname),nD.current.setAttribute(eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t?"route":"url")):nD.current=nb(e,{name:t??eq.location.pathname,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url","navigation.type":"browser.popstate"}})}),t=!1,r=0,n=setInterval(()=>{r++;let a=nL?.next?.router??nL?.nd?.router;t||r>500?clearInterval(n):a&&(clearInterval(n),t=!0,nB(e,a,nD),["nd","next"].forEach(t=>{let r=nL[t];r&&(nL[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&nB(e,n,nD),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(eq.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:r,sentryTrace:n,baggage:a}=function(){let e,t=eq.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{nw&&B.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:a,props:i}=e;return r.route=n,r.params=a,i?.pageProps&&(r.sentryTrace=i.pageProps._sentryTraceData,r.baggage=i.pageProps._sentryBaggage),r}(),i=(0,t7.parseBaggageHeader)(a),s=t||eq.location.pathname;i?.["sentry-transaction"]&&"/_error"===s&&(s=(s=i["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let o=(0,em.browserPerformanceTimeOrigin)();nS(e,{name:s,startTime:o?o/1e3:void 0,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:a})}(e);else{let t,r;t=nk(eq.location.pathname),r=(0,em.browserPerformanceTimeOrigin)(),nS(e,{name:t??eq.location.pathname,startTime:r?r/1e3:void 0,attributes:{[eS.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eS.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[eS.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url"}})}}(e)}}}()),a=nq._sentryRewriteFramesAssetPrefixPath||"",i=A.default.env._sentryBasePath||nq._sentryBasePath,s="true"===A.default.env._experimentalThirdPartyOriginStackFrames||"true"===nq._experimentalThirdPartyOriginStackFrames,n.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in M.GLOBAL_OBJ&&!!M.GLOBAL_OBJ.window,a=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let a=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),i=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(a||i){let e,i,s=a?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?function(e,t){e=nW(e).slice(1),t=nW(t).slice(1);let r=nz(e.split("/")),n=nz(t.split("/")),a=Math.min(r.length,n.length),i=a;for(let e=0;e<a;e++)if(r[e]!==n[e]){i=e;break}let s=[];for(let e=i;e<r.length;e++)s.push("..");return(s=s.concat(n.slice(i))).join("/")}(t,s):(e=s.length>1024?`<truncated>${s.slice(-1024)}`:s,(i=nH.exec(e))?i.slice(1):[])[2]||"";n.filename=`${r}${o}`}return n}}({isBrowser:n,root:t,prefix:r});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?.frames?.map(e=>a(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:a=>{if(n){let r="undefined"!=typeof window&&window.location?window.location.origin:"";if(a.filename?.startsWith(r)&&!a.filename.endsWith(".js"))return a;
23if(e)a.filename?.startsWith(e)&&(a.filename=a.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(a.filename);e===r&&(a.filename=a.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(a.filename);a.filename=a.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(a.filename?.includes("/_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)):(a.filename?.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)),a}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:"https://cdn.nextgenclassroom.se",basePath:i,rewriteFramesAssetPrefixPath:a,experimentalThirdPartyOriginStackFrames:s})),n),release:A.default.env._sentryRelease||nq._sentryRelease,...e};!function(e){let t="/monitoring";if(t&&e.dsn){let r=(0,er.dsnFromString)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let a=n[1],i=n[2],s=`${t}?o=${a}&p=${r.projectId}`;i&&(s+=`&r=${i}`),e.tunnel=s,nw&&B.debug.log(`Tunneling events to "${s}"`)}else nw&&B.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(o),L(o,"nextjs",["nextjs","react"]),L(r={...o},"react"),(0,U.setContext)("react",{version:tQ.version}),function(e={}){var t;let r,n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eq.window||eq.nw)return!1;let e=eq.chrome||eq.browser;if(!e?.runtime?.id)return!1;let t=(0,eG.getLocationHref)();return!(eq===eq.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>
23t.startsWith(`${e}://`)))}()&&(ty&&(0,B.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),a={...e,enabled:!n&&e.enabled,stackParser:(0,Q.stackParserFromStackParserOptions)(e.stackParser||tF),integrations:function(e){let t,r,n=e.defaultIntegrations||[],a=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(a))t=[...n,...a];else if("function"==typeof a){let e=a(n);t=Array.isArray(e)?e:[e]}else t=n;return r={},t.forEach(e=>{let{name:t}=e,n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)}({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?tK():e.defaultIntegrations}),transport:e.transport||tV};!0===a.debug&&(j.DEBUG_BUILD?B.debug.enable():(0,B.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,$.getCurrentScope)().update(a.initialScope),t=r=new eV(a),(0,$.getCurrentScope)().setClient(t),r.init()}(r);let l=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;l.id="NextClient404Filter",(0,U.addEventProcessor)(l);let c=e=>"transaction"===e.type&&e.transaction===nA?null:e;c.id="IncompleteTransactionFilter",(0,U.addEventProcessor)(c);let h=(e,t)=>{var r;return(r=t?.originalException,(0,eg.isError)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};h.id="NextRedirectErrorFilter",(0,U.addEventProcessor)(h);try{(0,$.getGlobalScope)().setTag("turbopack",!0)}catch{}}({environment:A.default.env.CI&&1?(sZ("CI environment detected"),"test"):(sZ("Production environment detected"),"production"),dsn:"https://a78e5c29569bbf4888d25d108b1043bf@o4506553993461760.ingest.sentry.io/4506553994379264",tracesSampleRate:1,debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.01,integrations:[new class e{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:o={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:E=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:b=[],block:T=[],unblock:I=[],ignore:R=[],maskFn:w,beforeAddRecordingEvent:x,beforeErrorSampling:O,onError:N}={}){this.name="Replay";const C=function({mask:e,unmask:t,block:r,unblock:n,ignore:a}){return{maskTextSelector:sW(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:sW(t,[]),blockSelector:sW(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:sW(n,[]),ignoreSelector:sW(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:E,unmask:b,block:T,unblock:I,ignore:R});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:w,maskInputFn:w,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:a,value:i}){return!n||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?i:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i})({maskAttributes:S,maskAllText:l,privacyOptions:C,key:e,value:t,el:r}),...C,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!o.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,36e5),stickySession:a,useCompression:i,workerUrl:s,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:sY(y),networkResponseHeaders:sY(v),beforeAddRecordingEvent:x,beforeErrorSampling:O,onError:N,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${sz}`:sz),this._isInitialized&&nJ())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return sq}set _isInitialized(e){sq=e}afterAllSetup(e){nJ()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
23startBuffering(){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?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,a,i,s=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},a=(0,ey.parseSampleRate)(r.replaysSessionSampleRate),i=(0,ey.parseSampleRate)(r.replaysOnErrorSampleRate),null==a&&null==i&&(0,B.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(n.sessionSampleRate=a),null!=i&&(n.errorSampleRate=i),n);this._replay=new sH({options:s,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}({maskAllText:!0,blockAllMedia:!0}),((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var r,n,a,i;r=e,n=t,e5()&&e8(e=>{if((0,$.getClient)()!==r)return;let{response:t,args:a,error:i,virtualError:s}=e,[o,l]=a;t&&function(e,t,r,n,a){if(sV(e,r.status,r.url)){var i,s;let e,o,l,u,c=(i=t,!(s=n)&&i instanceof Request||i instanceof Request&&i.bodyUsed?i:new Request(i,s));sQ()&&([e,l]=sX("Cookie",c),[o,u]=sX("Set-Cookie",r));let d=sK({url:c.url,method:c.method,status:r.status,requestHeaders:e,responseHeaders:o,requestCookies:l,responseCookies:u,error:a});(0,U.captureEvent)(d)}}(n,o,t,l,i||s)},!1),a=e,i=t,"XMLHttpRequest"in M.GLOBAL_OBJ&&tf(e=>{if((0,$.getClient)()!==a)return;let{error:t,virtualError:r}=e,n=e.xhr,s=n[th];if(!s)return;let{method:o,request_headers:l}=s;try{!function(e,t,r,n,a){if(sV(e,t.status,t.responseURL)){let e,i,s;if(sQ()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(i=sJ(e))}catch{}try{let e;s=(e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}):{}}catch{}e=n}let o=sK({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:i,error:a});(0,U.captureEvent)(o)}}(i,n,o,l,t||r)}catch(e){ty&&B.debug.warn("Error while extracting response event form XHR response",e)}})}}})()],enabled:!0}),e.s(["onRouterTransitionStart",0,function(e,t){E&&E(e,t)}],435687)},437078,(e,t,r)=>{"use strict";t.exports=e.f({"private-next-instrumentation-client":{id:()=>435687,module:()=>e.r(435687)}})("private-next-instrumentation-client")},46464,(e,t,r)=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},684241,(e,t,r)=>{"use strict";
23Object.defineProperty(r,"__esModule",{value:!0}),e.r(46464),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},854938,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={onCaughtError:function(){return p},onUncaughtError:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(481258),s=e.r(280912),o=e.r(49611),l=e.r(229601),u=e.r(985199),c=i._(e.r(966869)),d={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function p(e,t){let r,n=t.errorBoundary?.constructor;if(r=r||n===u.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===c.default)return h(e);(0,o.isBailoutToCSRError)(e)||(0,s.isNextRouterError)(e)||d.originConsoleError(e)}function h(e){(0,o.isBailoutToCSRError)(e)||(0,s.isNextRouterError)(e)||(0,l.reportGlobalError)(e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},520063,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createInitialRouterState",{enumerable:!0,get:function(){return l}});let n=e.r(552047),a=e.r(672451),i=e.r(118653),s=e.r(539123),o=e.r(884186);function l({navigatedAt:e,initialFlightData:t,initialCanonicalUrlParts:r,initialRenderedSearch:l,initialParallelRoutes:u,location:c}){let d=r.join("/"),{tree:p,seedData:h,head:f}=(0,o.getFlightDataPartsFromPath)(t[0]),m={lazyData:null,rsc:h?.[0],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:u,loading:h?.[2]??null,navigatedAt:e},g=c?(0,n.createHrefFromUrl)(c):d;return(0,s.addRefreshMarkerToActiveParallelSegments)(p,g),(null===u||0===u.size)&&(0,a.fillLazyItemsTillLeafWithHead)(e,m,void 0,p,h,f),{tree:p,cache:m,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:g,renderedSearch:l,nextUrl:((0,i.extractPathFromFlightRouterState)(p)||c?.pathname)??null,previousNextUrl:null,debugInfo:null}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},8845,(e,t,r)=>{"use strict";let n,a,i,s;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hydrate",{enumerable:!0,get:function(){return $}});let o=e.r(481258),l=e.r(923511);e.r(684241);let u=o._(e.r(209048)),c=o._(e.r(386834)),d=e.r(211787),p=e.r(184288),h=e.r(335426),f=e.r(854938),m=e.r(399958),g=e.r(145552),_=e.r(846025),y=o._(e.r(104632)),v=e.r(520063);e.r(22e4);let E=e.r(523972),S=e.r(884186),b=d.createFromReadableStream,T=d.createFromFetch,I=document,R=new TextEncoder,w=!1,x=!1,O=null;function N(e){if(0===e[0])i=[];else if(1===e[0]){if(!i)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});s?s.enqueue(R.encode(e[1])):i.push(e[1])}else if(2===e[0])O=e[1];else if(3===e[0]){if(!i)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let r=atob(e[1]),n=new Uint8Array(r.length);for(var t=0;t<r.length;t++)n[t]=r.charCodeAt(t);s?s.enqueue(n):i.push(n)}}let C=function(){s&&!x&&(s.close(),x=!0,i=void 0),w=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",C,!1):setTimeout(C);let P=self.__next_f=self.__next_f||[];P.forEach(N),P.length=0,P.push=N;let k=new ReadableStream({start(e){i&&(i.forEach(t=>{e.enqueue("string"==typeof t?R.encode(t):t)}),w&&!x)&&(null===e.desiredSize||e.desiredSize<0?e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,
23configurable:!0})):e.close(),x=!0,i=void 0),s=e}}),A=window.__NEXT_CLIENT_RESUME;function M({initialRSCPayload:e,actionQueue:t,webSocket:r,staticIndicatorState:n}){return(0,l.jsx)(y.default,{actionQueue:t,globalErrorState:e.G,webSocket:r,staticIndicatorState:n})}a=A?Promise.resolve(T(A,{callServer:m.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:n})).then(async e=>(0,S.createInitialRSCPayloadFromFallbackPrerender)(await A,e)):b(k,{callServer:m.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:n,startTime:0});let D=c.default.StrictMode;function L({children:e}){return e}let U={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:h.onRecoverableError,onCaughtError:f.onCaughtError,onUncaughtError:f.onUncaughtError};async function $(e,t){let r,n,i=await a;(0,E.setAppBuildId)(i.b);let s=Date.now(),o=(0,_.createMutableActionQueue)((0,v.createInitialRouterState)({navigatedAt:s,initialFlightData:i.f,initialCanonicalUrlParts:i.c,initialRenderedSearch:i.q,initialParallelRoutes:new Map,location:window.location}),e),d=(0,l.jsx)(D,{children:(0,l.jsx)(p.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,l.jsx)(L,{children:(0,l.jsx)(M,{initialRSCPayload:i,actionQueue:o,webSocket:n,staticIndicatorState:r})})})});"__next_error__"===document.documentElement.id?u.default.createRoot(I,U).render(d):c.default.startTransition(()=>{u.default.hydrateRoot(I,d,{...U,formState:O})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},850626,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(570460);e.r(335426),window.next.turbopack=!0,self.__webpack_hash__="";let a=e.r(437078);(0,n.appBootstrap)(t=>{let{hydrate:r}=e.r(8845);r(a,t)}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]);

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.