1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="93aaa847-3373-5c2d-a64d-f673f82d9eb8")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[792],{45:(e,t,r)=>{"use strict";r.d(t,{BD:()=>o,Kg:()=>u,NF:()=>c,Qd:()=>h,Qg:()=>_,T2:()=>a,W6:()=>l,Z4:()=>p,bJ:()=>i,gd:()=>g,ks:()=>m,sO:()=>d,tH:()=>v,xH:()=>f});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function s(e,t){return n.call(e)===`[object ${t}]`}function a(e){return s(e,"ErrorEvent")}function o(e){return s(e,"DOMError")}function l(e){return s(e,"DOMException")}function u(e){return s(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return s(e,"Object")}function p(e){return"object"==typeof e&&null!==e}function f(e){return"undefined"!=typeof Event&&v(e,Event)}function g(e){return s(e,"RegExp")}function _(e){return!!(e?.then&&"function"==typeof e.then)}function v(e,t){try{return e instanceof t}catch{return!1}}function m(e){return"undefined"!=typeof Request&&v(e,Request)}},51:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="10.69.0"},82:(e,t,r)=>{"use strict";function n(e,t=!1){let r={};for(let[n,i]of Object.entries(e??{})){let e=function(e,t){let{value:r,unit:n}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),s=n&&"string"==typeof n?{unit:n}:{};if(i)return{...i,...s};if(!t||"skip-undefined"===t&&void 0===r)return;let a="";try{a=JSON.stringify(r)??""}catch{}return{value:a,type:"string",...s}}(i,t);e&&(r[n]=e)}return r}r.d(t,{zU:()=>_,xl:()=>v,pK:()=>g,et:()=>p,kX:()=>c,PL:()=>f});var i=r(7510),s=r(4437),a=r(2252),o=r(9344),l=r(6011);let u=!1;function c(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:p(e).parent_span_id,o=(0,s.Lb)(e).scope;return{parent_span_id:i,span_id:n?o?.getPropagationContext().propagationSpanId||(0,a.Z)():t,trace_id:r}}function d(e){return"number"==typeof e?h(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?h(e.getTime()):(0,o.zf)()}function h(e){return e>0x2540be3ff?e/1e3:e}function p(e){var t,r;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:n,traceId:s}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:o,endTime:l,status:u,links:c}=e;return{span_id:n,trace_id:s,data:t,description:o,parent_span_id:"parentSpanId"in(r=e)?r.parentSpanId:"parentSpanContext"in r?r.parentSpanContext?.spanId:void 0,start_timestamp:d(a),timestamp:d(l)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}(u),op:t[i.uT],origin:t[i.JD],links:c&&c.length>0?c.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:1===r,attributes:i,...n})):void 0}}return{span_id:n,trace_id:s,start_timestamp:0,data:{}}}function f(e){return{...e,attributes:n(e.attributes),links:e.links?.map(e=>({...e,attributes:n(e.attributes)}))}}function g(e){let{traceFlags:t}=e.spanContext();return 1===t}let _=function(e){return e._sentryRootSpan||e};function v(){u||((0,l.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),u=!0)}},122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return i}});let n=r(4200);function i(e,t){{let{pathname:r}=(0,n.parsePath)(e),i=r.toLowerCase(),s=null==t?void 0:t.toLowerCase();return t&&(i.startsWith("/"+s+"/")||i==="/"+s)?(r.length===t.length+1?"/":"")+e.slice(t.length+1):e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
3dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return i}});let n=r(9783),i=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return(0,n.normalizePathTrailingSlash)(r(337).addLocale(e,...i))};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return i}});let n=r(4200);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:s}=(0,n.parsePath)(e);return""+t+r+i+s}},170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return s},formatWithValidation:function(){return o},urlObjectKeys:function(){return a}});let n=r(8365)._(r(1490)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,s=e.protocol||"",a=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||i.test(s))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),""+s+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+o}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function o(e){return s(e)}},242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext(null)},337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return s}});let n=r(135),i=r(3590);function s(e,t,r,s){if(!t||t===r)return e;let a=e.toLowerCase();return!s&&((0,i.pathHasPrefix)(a,"/api")||(0,i.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return v},NormalizeError:function(){return g},PageNotFoundError:function(){return _},SP:function(){return h},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return o},isAbsoluteUrl:function(){return s},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function o(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
3configurable:!0});return n}let h="undefined"!=typeof performance,p=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class f extends Error{}class g extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function i(e){return r.test(e)?e.replace(n,"\\$&"):e}},497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return s}});let n=r(8811),i=r(1481);function s(e){return(0,i.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},565:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let i=r[n];if("query"===i){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let i=r[n];if(!t.query.hasOwnProperty(i)||e.query[i]!==t.query[i])return!1}}else if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPathMatch",{enumerable:!0,get:function(){return i}});let n=r(9509);function i(e,t){let r=[],i=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),s=(0,n.regexpToFunction)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(i.source),i.flags):i,r);return(e,n)=>{if("string"!=typeof e)return!1;let i=s(e);if(!i)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete i.params[e.name];return{...n,...i.params}}}},802:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},826:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return G},default:function(){return X},matchesMiddleware:function(){return D}});let i=r(4252),s=r(8365),a=r(3964),o=r(6886),l=r(6758),u=s._(r(6240)),c=r(5153),d=r(8116),h=i._(r(5037)),p=r(464),f=r(9641),g=r(1659),_=r(3333),v=r(5700),m=r(170),y=r(8570),b=r(4200),E=r(125),w=r(122),x=r(6107),S=r(9094),P=r(2437),R=r(4727),O=r(2326),T=r(9673),k=r(2522),A=r(565),I=r(1623),C=r(2877),N=r(3076),j=r(1479),M=r(9238),L=r(9308);function F(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,b.parsePath)(e.asPath),n=(0,P.hasBasePath)(r)?(0,x.removeBasePath)(r):r,i=(0,S.addBasePath)((0,E.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}function $(e){let t=(0,p.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function U(e,t,r){let[n,i]=(0,R.resolveHref)(e,t,!0),s=(0,p.getLocationOrigin)(),a=n.startsWith(s),o=i&&i.startsWith(s);n=$(n),i=i?$(i):i;let l=a?n:(0,S.addBasePath)(n),u=r?$((0,R.resolveHref)(e,r)):i||n;return{url:l,as:o?u:(0,S.addBasePath)(u)}}function B(e,t){let r=(0,a.removeTrailingSlash)((0,c.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,f.isDynamicRoute)(t)&&(0,v.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function H(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let i={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},s=t.headers.get("x-nextjs-rewrite"),l=s||t.headers.get("x-nextjs-matched-path"),u=t.headers.get(L.MATCHED_PATH_HEADER);if(!u||l||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(l=u),l){if(l.startsWith("/")){let t=(0,g.parseRelativeUrl)(l),u=(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}
3),c=(0,a.removeTrailingSlash)(u.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,o.getClientBuildManifest)()]).then(i=>{let[a,{__rewrites:o}]=i,l=(0,E.addLocale)(u.pathname,u.locale);if((0,f.isDynamicRoute)(l)||!s&&a.includes((0,d.normalizeLocalePath)((0,x.removeBasePath)(l),r.router.locales).pathname)){let r=(0,T.getNextPathnameInfo)((0,g.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0});t.pathname=l=(0,S.addBasePath)(r.pathname)}{let e=n(l,a,o,t.query,e=>B(e,a),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,l=t.pathname,Object.assign(t.query,e.parsedAs.query))}let h=a.includes(c)?c:B((0,d.normalizeLocalePath)((0,x.removeBasePath)(t.pathname),r.router.locales).pathname,a);if((0,f.isDynamicRoute)(h)){let e=(0,_.getRouteMatcher)((0,v.getRouteRegex)(h))(l);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:h}})}let t=(0,b.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,k.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,b.parsePath)(c),t=(0,k.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(e.pathname,{nextConfig:i,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=r(2919).A;let q=Symbol("SSG_DATA_NOT_FOUND");function z(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:i,isServerRender:s,parseJSON:a,persistCache:l,isBackground:u,unstable_skipClientCache:c}=e,{href:d}=new URL(t,window.location.href),h=e=>{var u;return(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(i=>!i.ok&&r>1&&i.status>=500?e(t,r-1,n):i)})(t,s?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&i?{"x-middleware-prefetch":"1"}:{},{}),method:null!=(u=null==e?void 0:e.method)?u:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:d}:r.text().then(e=>{if(!r.ok){if(i&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:d};if(404===r.status){var n;if(null==(n=z(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:q},response:r,text:e,cacheKey:d}}let a=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw s||(0,o.markAssetError)(a),a}return{dataHref:t,json:a?z(e):null,response:r,text:e,cacheKey:d}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[d],e)).catch(e=>{throw c||delete r[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,o.markAssetError)(e),e})};return c&&l?h({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[d]=Promise.resolve(e)),e)):void 0!==r[d]?r[d]:r[d
3]=h(u?{method:"HEAD"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function V(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,E.addLocale)(r.asPath,r.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let Y=e=>{let{route:t,router:r}=e,n=!1,i=r.clc=()=>{n=!0};return()=>{if(n){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}i===r.clc&&(r.clc=null)}};class X{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,i){{if(!this._bfl_s&&!this._bfl_d){let t,s,{BloomFilter:a}=r(2935);try{({__routerFilterStatic:t,__routerFilterDynamic:s}=await (0,o.getClientBuildManifest)())}catch(t){if(console.error(t),i)return!0;return V({url:(0,S.addBasePath)((0,E.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new a(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==s?void 0:s.numHashes)&&(this._bfl_d=new a(s.numItems,s.errorRate),this._bfl_d.import(s))}let c=!1,d=!1;for(let{as:r,allowMatchCurrent:o}of[{as:e},{as:t}])if(r){let t=(0,a.removeTrailingSlash)(new URL(r,"http://n").pathname),h=(0,S.addBasePath)((0,E.addLocale)(t,n||this.locale));if(o||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var s,l,u;for(let e of(c=c||!!(null==(s=this._bfl_s)?void 0:s.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(h)),[t,h])){let t=e.split("/");for(let e=0;!d&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&(null==(u=this._bfl_d)?void 0:u.contains(r))){d=!0;break}}}if(c||d){if(i)return!0;return V({url:(0,S.addBasePath)((0,E.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,i,s){var c,h,R,O,T,k,C,M,L,$;let H,z;if(!(0,I.isLocalURL)(t))return V({url:t,router:this}),!1;let W=1===i._h;W||i.shallow||await this._bfl(r,void 0,i.locale);let G=W||i._shouldResolveHref||(0,b.parsePath)(t).pathname===(0,b.parsePath)(r).pathname,Y={...this.state},K=!0!==this.isReady;this.isReady=!0;let J=this.isSsr;if(W||(this.isSsr=!1),W&&this.clc)return!1;let Q=Y.locale;{Y.locale=!1===i.locale?this.defaultLocale:i.locale||Y.locale,void 0===i.locale&&(i.locale=Y.locale);let e=(0,g.parseRelativeUrl)((0,P.hasBasePath)(r)?(0,x.removeBasePath)(r):r),n=(0,d.normalizeLocalePath)(e.pathname,this.locales);n.detectedLocale&&(Y.locale=n.detectedLocale,e.pathname=(0,S.addBasePath)(e.pathname),r=(0,m.formatWithValidation)(e),t=(0,S.addBasePath)((0,d.normalizeLocalePath)((0,P.hasBasePath)(t)?(0,x.removeBasePath)(t):t,this.locales).pathname));let s=!1;(null==(h=this.locales)?void 0:h.includes(Y.locale))||(e.pathname=(0,E.addLocale)(e.pathname,Y.locale),V({url:(0,m.formatWithValidation)(e),router:this}),s=!0);let a=(0,y.detectDomainLocale)(this.domainLocales,void 0,Y.locale);if(!s&&a&&this.isLocaleDomain&&self.location.hostname!==a.domain){let e=(0,x.removeBasePath)(r);V({url:"http"+(a.http?"":"s")+"://"+a.domain+(0,S.addBasePath)((Y.locale===a.defaultLocale?"":"/"+Y.locale)+("/"===e?"":e)||"/"),router:this}),s=!0}if(s)return new Promise(()=>{})}p.ST&&performance.mark("routeChange");let{shallow:Z=!1,scroll:ee=!0}=i,et={shallow:Z};this._inFlightRoute&&this.clc&&(J||X.events.emit("routeChangeError",F(),this._inFlightRoute,et),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,E.addLocale)((0,P.hasBasePath)(r)?(0,x.removeBasePath)(r):r,i.locale,this.defaultLocale));let er=(0,w.removeLocale)((0,P.hasBasePath)(r)?(0,x.removeBasePath)(r):r,Y.locale);this._inFlightRoute=r;let en=Q!==Y.locale;if(!W&&this.onlyAHashChange(er)&&!en){Y.asPath=er,X.events.emit("hashChangeStart",r,et),this.changeState(e,t,r,{...i,scroll:!1}),ee&&this.scrollToHash(er);try{await this.set(Y,this.components[Y.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&X.events.emit("routeChangeError",e,er,et),e}return X.events.emit("hashChangeComplete",r,et),!0}let ei=(0,g.parseRelativeUrl)(t),{pathname:es,query:ea}=ei;try{[H,{__rewrites:z}
3]=await Promise.all([this.pageLoader.getPageList(),(0,o.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return V({url:r,router:this}),!1}this.urlIsNew(er)||en||(e="replaceState");let eo=r;es=es?(0,a.removeTrailingSlash)((0,x.removeBasePath)(es)):es;let el=(0,a.removeTrailingSlash)(es),eu=r.startsWith("/")&&(0,g.parseRelativeUrl)(r).pathname;if(null==(c=this.components[es])?void 0:c.__appRouter)return V({url:r,router:this}),new Promise(()=>{});let ec=!!(eu&&el!==eu&&(!(0,f.isDynamicRoute)(el)||!(0,_.getRouteMatcher)((0,v.getRouteRegex)(el))(eu))),ed=!i.shallow&&await D({asPath:r,locale:Y.locale,router:this});if(W&&ed&&(G=!1),G&&"/_error"!==es)if(i._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,S.addBasePath)((0,E.addLocale)(er,Y.locale),!0),H,z,ea,e=>B(e,H),this.locales);if(e.externalDest)return V({url:r,router:this}),!0;ed||(eo=e.asPath),e.matchedPage&&e.resolvedHref&&(es=e.resolvedHref,ei.pathname=(0,S.addBasePath)(es),ed||(t=(0,m.formatWithValidation)(ei)))}else ei.pathname=B(es,H),ei.pathname!==es&&(es=ei.pathname,ei.pathname=(0,S.addBasePath)(es),ed||(t=(0,m.formatWithValidation)(ei)));if(!(0,I.isLocalURL)(r))return V({url:r,router:this}),!1;eo=(0,w.removeLocale)((0,x.removeBasePath)(eo),Y.locale),el=(0,a.removeTrailingSlash)(es);let eh=!1;if((0,f.isDynamicRoute)(el)){let e=(0,g.parseRelativeUrl)(eo),n=e.pathname,i=(0,v.getRouteRegex)(el);eh=(0,_.getRouteMatcher)(i)(n);let s=el===n,a=s?(0,j.interpolateAs)(el,n,ea):{};if(eh&&(!s||a.result))s?r=(0,m.formatWithValidation)(Object.assign({},e,{pathname:a.result,query:(0,N.omit)(ea,a.params)})):Object.assign(ea,eh);else{let e=Object.keys(i.groups).filter(e=>!ea[e]&&!i.groups[e].optional);if(e.length>0&&!ed)throw Object.defineProperty(Error((s?"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 ("+el+"). ")+"Read more: https://nextjs.org/docs/messages/"+(s?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}W||X.events.emit("routeChangeStart",r,et);let ep="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:el,pathname:es,query:ea,as:r,resolvedAs:eo,routeProps:et,locale:Y.locale,isPreview:Y.isPreview,hasMiddleware:ed,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:W&&!this.isFallback,isMiddlewareRewrite:ec});if(W||i.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,Y.locale),"route"in n&&ed){el=es=n.route||el,et.shallow||(ea=Object.assign({},n.query||{},ea));let e=(0,P.hasBasePath)(ei.pathname)?(0,x.removeBasePath)(ei.pathname):ei.pathname;if(eh&&es!==e&&Object.keys(eh).forEach(e=>{eh&&ea[e]===eh[e]&&delete ea[e]}),(0,f.isDynamicRoute)(es)){let e=!et.shallow&&n.resolvedAs?n.resolvedAs:(0,S.addBasePath)((0,E.addLocale)(new URL(r,location.href).pathname,Y.locale),!0);(0,P.hasBasePath)(e)&&(e=(0,x.removeBasePath)(e));{let t=(0,d.normalizeLocalePath)(e,this.locales);Y.locale=t.detectedLocale||Y.locale,e=t.pathname}let t=(0,v.getRouteRegex)(es),i=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);i&&Object.assign(ea,i)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,i);else return V({url:n.destination,router:this}),new Promise(()=>{});let a=n.Component;if(a&&a.unstable_scriptLoader&&[].concat(a.unstable_scriptLoader()).forEach(e=>{(0,l.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){i.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,g.parseRelativeUrl)(t);r.pathname=B(r.pathname,H);let{url:n,as:s}=U(this,t,t);return this.change(e,n,s,i)}return V({url:t,router:this}),new Promise(()=>{})}if(Y.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===q){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:ea,as:r,resolvedAs:eo,routeProps:{shallow:!1},locale:Y.locale,isPreview:Y.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,
3configurable:!0})}}W&&"/_error"===this.pathname&&(null==(O=self.__NEXT_DATA__.props)||null==(R=O.pageProps)?void 0:R.statusCode)===500&&(null==(T=n.props)?void 0:T.pageProps)&&(n.props.pageProps.statusCode=500);let o=i.shallow&&Y.route===(null!=(k=n.route)?k:el),c=null!=(C=i.scroll)?C:!W&&!o,h=null!=s?s:c?{x:0,y:0}:null,p={...Y,route:el,pathname:es,query:ea,asPath:er,isFallback:!1};if(W&&ep){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:ea,as:r,resolvedAs:eo,routeProps:{shallow:!1},locale:Y.locale,isPreview:Y.isPreview,isQueryUpdating:W&&!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&&(null==(L=self.__NEXT_DATA__.props)||null==(M=L.pageProps)?void 0:M.statusCode)===500&&(null==($=n.props)?void 0:$.pageProps)&&(n.props.pageProps.statusCode=500);try{await this.set(p,n,h)}catch(e){throw(0,u.default)(e)&&e.cancelled&&X.events.emit("routeChangeError",e,er,et),e}return!0}if(X.events.emit("beforeHistoryChange",r,et),this.changeState(e,t,r,i),!(W&&!h&&!K&&!en&&(0,A.compareRouterStates)(p,this.state))){try{await this.set(p,n,h)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw W||X.events.emit("routeChangeError",n.error,er,et),n.error;Y.locale&&(document.documentElement.lang=Y.locale),W||X.events.emit("routeChangeComplete",r,et),c&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,u.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,p.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:G()},"",r))}async handleRouteInfoError(e,t,r,n,i,s){if(e.cancelled)throw e;if((0,o.isAssetError)(e)||s)throw X.events.emit("routeChangeError",e,n,i),V({url:n,router:this}),F();console.error(e);try{let n,{page:i,styleSheets:s}=await this.fetchComponent("/_error"),a={props:n,Component:i,styleSheets:s,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(i,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,i,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:i,resolvedAs:s,routeProps:o,locale:l,hasMiddleware:c,isPreview:h,unstable_skipClientCache:p,isQueryUpdating:f,isMiddlewareRewrite:g,isNotFound:_}=e,v=t;try{var y,b,E,w;let e=this.components[v];if(o.shallow&&e&&this.route===v)return e;let t=Y({route:v,router:this});c&&(e=void 0);let u=!e||"initial"in e?void 0:e,S={dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?"/404":s,locale:l}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:f?this.sbc:this.sdc,persistCache:!h,isPrefetch:!1,unstable_skipClientCache:p,isBackground:f},P=f&&!g?null:await H({fetchData:()=>W(S),asPath:_?"/404":s,locale:l,router:this}).catch(e=>{if(f)return null;throw e});if(P&&("/_error"===r||"/404"===r)&&(P.effect=void 0),f&&(P?P.json=self.__NEXT_DATA__.props:P={json:self.__NEXT_DATA__.props}),t(),(null==P||null==(y=P.effect)?void 0:y.type)==="redirect-internal"||(null==P||null==(b=P.effect)?void 0:b.type)==="redirect-external")return P.effect;if((null==P||null==(E=P.effect)?void 0:E.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(P.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!f||i.includes(t))&&(v=t,r=P.effect.resolvedHref,n={...n,...P.effect.parsedAs.query},s=(0,x.removeBasePath)((0,d.normalizeLocalePath)(P.effect.parsedAs.pathname,this.locales).pathname),e=this.components[v],o.shallow&&e&&this.route===v&&!c))return{...e,route:v}}if((0,O.isAPIRoute)(v))return V({url:i,router:this}),new Promise(()=>{});let R=u||await this.fetchComponent(v).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}
3)),T=null==P||null==(w=P.response)?void 0:w.headers.get("x-middleware-skip"),k=R.__N_SSG||R.__N_SSP;T&&(null==P?void 0:P.dataHref)&&delete this.sdc[P.dataHref];let{props:A,cacheKey:I}=await this._getData(async()=>{if(k){if((null==P?void 0:P.json)&&!T)return{cacheKey:P.cacheKey,props:P.json};let e=(null==P?void 0:P.dataHref)?P.dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:r,query:n}),asPath:s,locale:l}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!h,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(R.Component,{pathname:r,query:n,asPath:i,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})}});return R.__N_SSP&&S.dataHref&&I&&delete this.sdc[I],this.isPreview||!R.__N_SSG||f||W(Object.assign({},S,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),A.pageProps=Object.assign({},A.pageProps),R.props=A,R.route=v,R.query=n,R.resolvedAs=s,this.components[v]=R,R}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),r,n,i,o)}}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,i]=e.split("#",2);return!!i&&t===n&&r===i||t===n&&r!==i}scrollToHash(e){let[,t=""]=e.split("#",2);(0,M.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,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,C.isBot)(window.navigator.userAgent))return;let i=(0,g.parseRelativeUrl)(e),s=i.pathname,{pathname:l,query:u}=i,c=l;if(!1===r.locale){i.pathname=l=(0,d.normalizeLocalePath)(l,this.locales).pathname,e=(0,m.formatWithValidation)(i);let n=(0,g.parseRelativeUrl)(t),s=(0,d.normalizeLocalePath)(n.pathname,this.locales);n.pathname=s.pathname,r.locale=s.detectedLocale||this.defaultLocale,t=(0,m.formatWithValidation)(n)}let h=await this.pageLoader.getPageList(),p=t,y=void 0!==r.locale?r.locale||void 0:this.locale,P=await D({asPath:t,locale:y,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,o.getClientBuildManifest)());let s=n((0,S.addBasePath)((0,E.addLocale)(t,this.locale),!0),h,r,i.query,e=>B(e,h),this.locales);if(s.externalDest)return;P||(p=(0,w.removeLocale)((0,x.removeBasePath)(s.asPath),this.locale)),s.matchedPage&&s.resolvedHref&&(i.pathname=l=s.resolvedHref,P||(e=(0,m.formatWithValidation)(i)))}i.pathname=B(i.pathname,h),(0,f.isDynamicRoute)(i.pathname)&&(l=i.pathname,i.pathname=l,Object.assign(u,(0,_.getRouteMatcher)((0,v.getRouteRegex)(i.pathname))((0,b.parsePath)(t).pathname)||{}),P||(e=(0,m.formatWithValidation)(i)));let R=await H({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:c,query:u}),skipInterpolation:!0,asPath:p,locale:y}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:y,router:this});if((null==R?void 0:R.effect.type)==="rewrite"&&(i.pathname=R.effect.resolvedHref,l=R.effect.resolvedHref,u={...u,...R.effect.parsedAs.query},p=R.effect.parsedAs.pathname,e=(0,m.formatWithValidation)(i)),(null==R?void 0:R.effect.type)==="redirect-external")return;let O=(0,a.removeTrailingSlash)(l);await this._bfl(t,p,r.locale,!0)&&(this.components[s]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(O).then(t=>!!t&&W({dataHref:(null==R?void 0:R.json)?null==R?void 0:R.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:y}),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"](O)])}async fetchComponent(e){let t=Y({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,
3configurable:!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,p.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}constructor(e,t,r,{initialProps:n,pageLoader:i,App:s,wrapApp:o,Component:l,err:u,subscription:c,isFallback:d,locale:h,locales:_,defaultLocale:v,domainLocales:b,isPreview:E}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),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,m.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,p.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:i,as:s,options:a,key:o}=n;this._key=o;let{pathname:l}=(0,g.parseRelativeUrl)(i);(!this.isSsr||s!==(0,S.addBasePath)(this.asPath)||l!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",i,s,Object.assign({},a,{shallow:a.shallow&&this._shallow,locale:a.locale||this.defaultLocale,_h:0}),t)};let w=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[w]={Component:l,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:s,styleSheets:[]},this.events=X.events,this.pageLoader=i;let x=(0,f.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=o,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||!x&&!self.location.search&&0),this.locales=_,this.defaultLocale=v,this.domainLocales=b,this.isLocaleDomain=!!(0,y.detectDomainLocale)(b,self.location.hostname),this.state={route:w,pathname:e,query:t,asPath:x?e:r,isPreview:!!E,locale:h,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:h},i=(0,p.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:h,asPath:i}).then(s=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",s?i:(0,m.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),i,n),s))}window.addEventListener("popstate",this.onPopState)}}X.events=(0,h.default)()},963:(e,t,r)=>{"use strict";r.d(t,{XW:()=>i,xg:()=>s});var n=r(45);function i(e){return new a(t=>{t(e)})}function s(e){return new a((t,r)=>{r(e)})}class a{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i)return void r(n);t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,n.Qg)(t))return void t.then(r,i);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},1059:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},1291:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Ob
3ject.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}})},1293:(e,t,r)=>{"use strict";r.d(t,{Vu:()=>o,fj:()=>s,qO:()=>a});var n=r(8093),i=r(9344);function s(e){let t=(0,i.zf)(),r={sid:(0,n.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}};return e&&a(r,e),r}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function o(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},1332:(e,t,r)=>{"use strict";let n;r.d(t,{$z:()=>d,FU:()=>l,Yl:()=>c,vB:()=>u});var i=r(6854),s=r(8334),a=r(4104);let o=!1;function l(){try{if(o||(s.SA(e=>{var t;return(0,a.eg)(window.location)||(null==(t=e.tags)?void 0:t.surface)==="courier_onboarding"?(0,a.h0)(e):e}),o=!0),!(0,a.eg)(window.location)||n)return;n=i.Ay.init("phc_tprKcaWTvsQgagxsmTf8Q6h99mzCDVAXLAqyQVNTCEks",{api_host:"https://eu.i.posthog.com",persistence:"memory",person_profiles:"never",autocapture:!1,capture_pageview:!1,capture_pageleave:!1,capture_dead_clicks:!1,rageclick:!1,disable_session_recording:!0,capture_performance:!1,advanced_disable_feature_flags:!0,ip:!1,before_send:a.zH},"courier_onboarding")}catch(e){}}function u(e,t){try{l(),null==n||n.capture(e,{...t,release:"62dc121ac7295b1e0769250ce09a186abfc16945"})}catch(e){}}function c(e,t){return(0,a.gT)(e,t,e=>u("courier_onboarding_operation",e),t=>{l(),s.Cp(Error("Courier onboarding failed: ".concat(e)),{tags:{surface:"courier_onboarding",operation:e,...(0,a.Y7)(t)},fingerprint:["courier-onboarding",e,String(t.failure_kind)]})})}function d(e,t){try{let r=(0,a.jy)(e,t);if(!r)return;l(),s.Cp(Error("Courier onboarding failed: ".concat(r.operation)),{tags:{surface:"courier_onboarding",operation:r.operation},fingerprint:["courier-onboarding",r.operation,r.category]})}catch(e){}}},1419:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1467:(e,t,r)=>{"use strict";let n,i,s,a,o,l,u,c,d,h,p,f;
3Object.defineProperty(t,"__esModule",{value:!0});let g=r(8365);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return H},hydrate:function(){return el},initialize:function(){return G},router:function(){return n},version:function(){return B}});let _=r(4252),v=r(7876);r(1291);let m=_._(r(4232)),y=_._(r(8944)),b=r(7965),E=_._(r(5037)),w=r(242),x=r(9238),S=r(9641),P=r(1490),R=r(2607),O=r(464),T=r(5272),k=_._(r(1677)),A=_._(r(9990)),I=r(5496),C=r(6296),N=r(6240),j=r(9263),M=r(6107),L=r(2437),F=r(5792),D=r(2291),$=r(8797),U=r(2721);r(6519),r(497);let B="15.5.23",H=(0,E.default)(),q=e=>[].slice.call(e),z=!1;class W extends m.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(i.isFallback||i.nextExport&&((0,S.isDynamicRoute)(n.pathname)||location.search||1)||i.props&&i.props.__N_SSG&&(location.search||1))&&n.replace(n.pathname+"?"+String((0,P.assign)((0,P.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),s,{_h:1,shallow:!i.isFallback&&!z}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function G(e){void 0===e&&(e={}),i=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=i,f=i.defaultLocale;let t=i.assetPrefix||"";self.__next_set_public_path__(""+t+"/_next/"),(0,R.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:i.runtimeConfig||{}}),s=(0,O.getURL)(),(0,L.hasBasePath)(s)&&(s=(0,M.removeBasePath)(s));{let{normalizeLocalePath:e}=r(8116),{detectDomainLocale:t}=r(2439),{parseRelativeUrl:n}=r(1659),{formatUrl:a}=r(170);if(i.locales){let r=n(s),o=e(r.pathname,i.locales);o.detectedLocale?(r.pathname=o.pathname,s=a(r)):f=i.locale;let l=t(!1,window.location.hostname);l&&(f=l.defaultLocale)}}if(i.scriptLoader){let{initScriptLoader:e}=r(6758);e(i.scriptLoader)}a=new A.default(i.buildId,t);let u=e=>{let[t,r]=e;return a.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>u(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=u,(l=(0,k.default)()).getIsSsr=()=>n.isSsr,o=document.getElementById("__next"),{assetPrefix:t}}function V(e,t){return(0,v.jsx)(e,{...t})}function Y(e){var t;let{children:r}=e,i=m.default.useMemo(()=>(0,D.adaptForAppRouterInstance)(n),[]);return(0,v.jsx)(W,{fn:e=>K({App:d,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,v.jsx)(F.AppRouterContext.Provider,{value:i,children:(0,v.jsx)($.SearchParamsContext.Provider,{value:(0,D.adaptForSearchParams)(n),children:(0,v.jsx)(D.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,v.jsx)($.PathParamsContext.Provider,{value:(0,D.adaptForPathParams)(n),children:(0,v.jsx)(w.RouterContext.Provider,{value:(0,C.makePublicRouterInstance)(n),children:(0,v.jsx)(b.HeadManagerContext.Provider,{value:l,children:(0,v.jsx)(j.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let X=e=>t=>{let r={...t,Component:p,err:i.err,router:n};return(0,v.jsx)(Y,{children:V(e,r)})};function K(e){let{App:t,err:o}=e;return console.error(o),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),a.loadPage("/_error").then(n=>{let{page:i,styleSheets:s}=n;return(null==u?void 0:u.Component)===i?Promise.resolve().then(()=>g._(r(8123))).then(n=>Promise.resolve().then(()=>g._(r(1806))).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:i,styleSheets:s}}).then(r=>{var a;let{ErrorComponent:l,styleSheets:u}=r,c=X(t),d={Component:l,AppTree:c,router:n,ctx:{err:o,pathname:i.page,query:i.query,asPath:s,AppTree:c}};return Promise.resolve((null==(a=e.props)?void 0:a.err)?e.props:(0,O.loadGetInitialProps)(t,d)).then(t=>ea({...e,err:o,Component:l,styleSheets:u,props:t}))})}function J(e){let{callback:t}=e;return m.default.useLayoutEffect(()=>t(),[t]),null}let Q={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRe
3nder:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},Z={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},ee=null,et=!0;function er(){[Q.beforeRender,Q.afterHydrate,Q.afterRender,Q.routeChange].forEach(e=>performance.clearMarks(e))}function en(){O.ST&&(performance.mark(Q.afterHydrate),performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(Z.beforeHydration,Q.navigationStart,Q.beforeRender),performance.measure(Z.hydration,Q.beforeRender,Q.afterHydrate)),h&&performance.getEntriesByName(Z.hydration).forEach(h),er())}function ei(){if(!O.ST)return;performance.mark(Q.afterRender);let e=performance.getEntriesByName(Q.routeChange,"mark");e.length&&(performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(Z.routeChangeToRender,e[0].name,Q.beforeRender),performance.measure(Z.render,Q.beforeRender,Q.afterRender),h&&(performance.getEntriesByName(Z.render).forEach(h),performance.getEntriesByName(Z.routeChangeToRender).forEach(h))),er(),[Z.routeChangeToRender,Z.render].forEach(e=>performance.clearMeasures(e)))}function es(e){let{callbacks:t,children:r}=e;return m.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function ea(e){let t,r,{App:i,Component:s,props:a,err:l}=e,d="initial"in e?void 0:e.styleSheets;s=s||u.Component;let h={...a=a||u.props,Component:s,err:l,router:n};u=h;let p=!1,f=new Promise((e,t)=>{c&&c(),r=()=>{c=null,e()},c=()=>{p=!0,c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,t(e)}});function g(){r()}!function(){if(!d)return;let e=new Set(q(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");d.forEach(t=>{let{href:n,text:i}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(i))}})}();let _=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(J,{callback:function(){if(d&&!p){let e=new Set(d.map(e=>e.href)),t=q(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n<r.length;++n)e.has(r[n])?t[n].removeAttribute("media"):t[n].setAttribute("media","x");let n=document.querySelector("noscript[data-n-css]");n&&d.forEach(e=>{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),q(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,x.disableSmoothScrollDuringRouteTransition)(()=>{window.scrollTo(t,r)})}}}),(0,v.jsxs)(Y,{children:[V(i,h),(0,v.jsx)(T.Portal,{type:"next-route-announcer",children:(0,v.jsx)(I.RouteAnnouncer,{})})]})]});var b=o;O.ST&&performance.mark(Q.beforeRender);let E=(t=et?en:ei,(0,v.jsx)(es,{callbacks:[t,g],children:_}));return ee?(0,m.default.startTransition)(()=>{ee.render(E)}):(ee=y.default.hydrateRoot(b,E,{onRecoverableError:U.onRecoverableError}),et=!1),f}async function eo(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await K(e);try{await ea(e)}catch(r){let t=(0,N.getProperError)(r);if(t.cancelled)throw t;await K({...e,err:t})}}async function el(e){let t=i.err;try{let e=await a.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;d=t,r&&r.reportWebVitals&&(h=e=>{let t,{id:n,name:i,startTime:s,value:a,duration:o,entryType:l,entries:u,attribution:c}=e,d=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);u&&u.length&&(t=u[0].startTime);let h={id:n||d,name:i,startTime:s||t,value:null==a?o:a,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(h.attribution=c),r.reportWebVitals(h)});let n=await a.routeLoader.whenEntrypoint(i.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,N.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(i.dynamicIds),n=(0,C.createRouter)(i.page,i.query,s,{initialProps:i.props,pageLoader:a,App:d,Component:p,wrapApp:X,err:t,isFallback:!!i.isFallback,subscription:(e,t,r)=>eo(Object.assign({},e,{App:t,scroll:r})),locale:i.locale,locales:i.locales,defaultLocale:f,domainLocales:i.domainLocales,isPreview:i.isPreview}),z=await n._initialMatchesMiddlewarePromise;let r={App:d,initial:!0,Component:p,props:i.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),eo(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
3dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return s}});let n=r(3333),i=r(5700);function s(e,t,r){let s="",a=(0,i.getRouteRegex)(e),o=a.groups,l=(t!==e?(0,n.getRouteMatcher)(a)(t):"")||r;s=e;let u=Object.keys(o);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=o[e],i="["+(r?"...":"")+e+"]";return n&&(i=(t?"":"/")+"["+i+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(s=s.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(s=""),{params:u,result:s}}},1481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return i},RedirectType:function(){return s},isRedirectError:function(){return a}});let n=r(6843),i="NEXT_REDIRECT";var s=function(e){return e.push="push",e.replace="replace",e}({});function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,s]=t,a=t.slice(2,-2).join(";"),o=Number(t.at(-2));return r===i&&("replace"===s||"push"===s)&&"string"==typeof a&&!isNaN(o)&&o in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1490:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(r,n(e));else t.set(r,n(i));return t}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return s},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},1623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=r(464),i=r(2437);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},1659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return s}});let n=r(464),i=r(1490);function s(e,t,r){void 0===r&&(r=!0);let s=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,s):e.startsWith(".")?new URL(window.location.href):s,{pathname:o,searchParams:l,search:u,hash:c,href:d,origin:h}=new URL(e,a);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:o,query:r?(0,i.searchParamsToUrlQuery)(l):void 0,search:u,hash:c,href:d.slice(h.length),slashes:void 0}}},1677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},isEqualNode:function(){return i}});let n=r(8461);function i(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function s(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"])if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;else e.props.href=e.props["data-href"],e.props["data-href"]=void 0;let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,s="";if(r){let{children:e}=r.props;s="string"==typeof e?e:Array.isArray(e)?e.join(""):""}s!==document.title&&(document.title=s),["meta","base","link","style","script"].forEach(e
3=>{!function(e,t){let r=document.querySelector("head");if(!r)return;let s=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&s.add(e)}let a=[];for(let e=0;e<t.length;e++){let r=function(e){let{type:t,props:r}=e,i=document.createElement(t);(0,n.setAttributesFromProps)(i,r);let{children:s,dangerouslySetInnerHTML:a}=r;return a?i.innerHTML=a.__html||"":s&&(i.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):""),i}(t[e]);r.setAttribute("data-next-head","");let o=!0;for(let e of s)if(i(e,r)){s.delete(e),o=!1;break}o&&a.push(r)}for(let e of s){var o;null==(o=e.parentNode)||o.removeChild(e)}for(let e of a)"meta"===e.tagName.toLowerCase()&&null!==e.getAttribute("charset")&&r.prepend(e),r.appendChild(e)}(e,t[e]||[])})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1744:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function i(e,t){if(e.includes(s)){let e=JSON.stringify(t);return"{}"!==e?s+"?"+e:s}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return a},PAGE_SEGMENT_KEY:function(){return s},addSearchParamsIfPageSegment:function(){return i},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let s="__PAGE__",a="__DEFAULT__"},1768:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(4252),i=r(7876),s=n._(r(4232)),a=r(464);async function o(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,a.loadGetInitialProps)(t,r)}}class l extends s.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,i.jsx)(e,{...t})}}l.origGetInitialProps=o,l.getInitialProps=o,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1830:(e,t,r)=>{"use strict";r.d(t,{GS:()=>a,HF:()=>h,W4:()=>c,my:()=>o,pO:()=>l,sp:()=>u});var n=r(1419),i=r(6011),s=r(45);function a(e,t,r){if(!(t in e))return;let s=e[t];if("function"!=typeof s)return;let a=r(s);"function"==typeof a&&l(a,s);try{e[t]=a}catch{n.T&&i.Yz.log(`Failed to replace method "${t}" in object`,e)}}function o(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.T&&i.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function l(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,o(e,"__sentry_original__",t)}catch{}}function u(e){return e.__sentry_original__}function c(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};if((0,s.xH)(e)){let{type:t,target:r,currentTarget:n,detail:i}=e;return{type:t,target:r,currentTarget:n,...i?{detail:i}:{},...d(e)}}return e}function d(e){return(0,s.Z4)(e)?Object.fromEntries(Object.entries(e)):{}}function h(e){let t=Object.keys(c(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},2025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{compileNonPath:function(){return c},matchHas:function(){return u},parseDestination:function(){return d},prepareDestination:function(){return h}});let n=r(494),i=r(9504),s=r(4818),a=r(9663),o=r(6902);function l(e){return e.replace(/__ESC_COLON_/gi,":")}function u(e,t,r,n){void 0===r&&(r=[]),void 0===n&&(n=[]);let i={},s=r=>{let n,s=r.key;switch(r.type){case"header":s=s.toLowerCase(),n=e.headers[s];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,a.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[s];break;case"host":{let{host:t}=(null==e?void 0:e.headers)||{};n=null==t?void 0:t.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return i[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}(s)]=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).forEac
3h(e=>{i[e]=t.groups[e]}):"host"===r.type&&t[0]&&(i.host=t[0])),!0}return!1};return!(!r.every(e=>s(e))||n.some(e=>s(e)))&&i}function c(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,o.safeCompile)("/"+e,{validate:!1})(t).slice(1)}function d(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(":"+(0,n.escapeStringRegexp)(r),"g"),"__ESC_COLON_"+r));let r=(0,i.parseUrl)(t),s=r.pathname;s&&(s=l(s));let a=r.href;a&&(a=l(a));let o=r.hostname;o&&(o=l(o));let u=r.hash;u&&(u=l(u));let c=r.search;return c&&(c=l(c)),{...r,pathname:s,hostname:o,href:a,hash:u,search:c}}function h(e){let t,r,n=d(e),{hostname:i,query:a,search:u}=n,h=n.pathname;n.hash&&(h=""+h+n.hash);let p=[],f=[];for(let e of((0,o.safePathToRegexp)(h,f),f))p.push(e.name);if(i){let e=[];for(let t of((0,o.safePathToRegexp)(i,e),e))p.push(t.name)}let g=(0,o.safeCompile)(h,{validate:!1});for(let[r,n]of(i&&(t=(0,o.safeCompile)(i,{validate:!1,encode:encodeURIComponent})),Object.entries(a)))Array.isArray(n)?a[r]=n.map(t=>c(l(t),e.params)):"string"==typeof n&&(a[r]=c(l(n),e.params));let _=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!_.some(e=>p.includes(e)))for(let t of _)t in a||(a[t]=e.params[t]);if((0,s.isInterceptionRouteAppPath)(h))for(let t of h.split("/")){let r=s.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[i,s]=(r=g(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=i,n.hash=(s?"#":"")+(s||""),n.search=u?c(u,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,configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:a,parsedDestination:n}}},2117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return i},normalizeTokensForRegexp:function(){return s},stripParameterSeparators:function(){return a}});let r="_NEXTSEP_";function n(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 i(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${r}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${r}`)}function s(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 a(e){let t={};for(let[n,i]of Object.entries(e))"string"==typeof i?t[n]=i.replace(RegExp(`^${r}`),""):Array.isArray(i)?t[n]=i.map(e=>"string"==typeof e?e.replace(RegExp(`^${r}`),""):e):t[n]=i;return t}},2226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(4232),i=n.useLayoutEffect,s=n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},2252:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s,e:()=>i});var n=r(8093);function i(){return(0,n.eJ)()}function s(){return(0,n.eJ)().substring(16)}},2291:(e,t,r)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return h},adaptForSearchParams:function(){return d}});let n=r(8365),i=r(7876),s=n._(r(4232)),a=r(8797),o=r(5847),l=r(1059),u=r(5700);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function d(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function h(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,u.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,s.useRef)(n.isAutoExport),u=(0,s.useMemo)(()=>{let e,t=l.current;if(t&&(l.current=!1),(0,o.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,i.jsx)(a.PathnameContext.Provider,{value:u,children:t})}},2298:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},2326:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},2437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});let n=r(3590);function i(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2439:(e,t)=>{"use strict";function r(e,t,r){if(e)for(let s of(r&&(r=r.toLowerCase()),e)){var n,i;if(t===(null==(n=s.domain)?void 0:n.split(":",1)[0].toLowerCase())||r===s.defaultLocale.toLowerCase()||(null==(i=s.locales)?void 0:i.some(e=>e.toLowerCase()===r)))return s}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}})},2522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=r(3964),i=r(135),s=r(2962),a=r(337);function o(e){let t=(0,a.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,s.addPathSuffix)((0,i.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,s.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},2607:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return i}});let n=()=>r;function i(e){r=e}},2721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRecoverableError:function(){return l},onRecoverableError:function(){return u}});let n=r(4252),i=r(4058),s=n._(r(6240)),a=r(9831),o=new WeakSet;function l(e){return o.has(e)}let u=e=>{let t=(0,s.default)(e)&&"cause"in e?e.cause:e;(0,i.isBailoutToCSRError)(t)||(0,a.reportGlobalError)(t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
3dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return s},getBotType:function(){return l},isBot:function(){return o}});let n=r(3545),i=/Googlebot(?!-)|Googlebot$/i,s=n.HTML_LIMITED_BOT_UA_RE.source;function a(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function o(e){return i.test(e)||a(e)}function l(e){return i.test(e)?"dom":a(e)?"html":void 0}},2919:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return u}});let n=r(786),i=r(2025),s=r(3964),a=r(8116),o=r(6107),l=r(1659);function u(e,t,r,u,c,d){let h,p=!1,f=!1,g=(0,l.parseRelativeUrl)(e),_=(0,s.removeTrailingSlash)((0,a.normalizeLocalePath)((0,o.removeBasePath)(g.pathname),d).pathname),v=r=>{let l=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(g.pathname);if((r.has||r.missing)&&l){let e=(0,i.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},{})},g.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return f=!0,!0;let n=(0,i.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:u});if(g=n.parsedDestination,e=n.newUrl,Object.assign(u,n.parsedDestination.query),_=(0,s.removeTrailingSlash)((0,a.normalizeLocalePath)((0,o.removeBasePath)(e),d).pathname),t.includes(_))return p=!0,h=_,!0;if((h=c(_))!==e&&t.includes(h))return p=!0,!0}},m=!1;for(let e=0;e<r.beforeFiles.length;e++)v(r.beforeFiles[e]);if(!(p=t.includes(_))){if(!m){for(let e=0;e<r.afterFiles.length;e++)if(v(r.afterFiles[e])){m=!0;break}}if(m||(h=c(_),m=p=t.includes(h)),!m){for(let e=0;e<r.fallback.length;e++)if(v(r.fallback[e])){m=!0;break}}}return{asPath:e,parsedAs:g,matchedPage:p,resolvedHref:h,externalDest:f}}},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}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}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)}}},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=r(4200);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:s}=(0,n.parsePath)(e);return""+r+t+i+s}},3076:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},3169:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},3273:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
3dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3281:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},3333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return s}});let n=r(464),i=r(6902);function s(e){let{re:t,groups:r}=e;return(0,i.safeRouteMatcher)(e=>{let i=t.exec(e);if(!i)return!1;let s=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},a={};for(let[e,t]of Object.entries(r)){let r=i[t.pos];void 0!==r&&(t.repeat?a[e]=r.split("/").map(e=>s(e)):a[e]=s(r))}return a})}},3380:(e,t,r)=>{"use strict";r.d(t,{RV:()=>d,gd:()=>a,qQ:()=>c,vk:()=>o,yF:()=>n});let n="?",i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,a=0)=>{let o=[],u=e.split("\n");for(let e=r;e<u.length;e++){let r=u[e];r.length>1024&&(r=r.slice(0,1024));let n=i.test(r)?r.replace(i,"$1"):r;if(!n.includes("Error: ")){for(let e of t){let t=e(n);if(t){o.push(t);break}}if(o.length>=50+a)break}}var c=o.slice(a);if(!c.length)return[];let d=Array.from(c);return/sentryWrapped/.test(l(d).function||"")&&d.pop(),d.reverse(),s.test(l(d).function||"")&&(d.pop(),s.test(l(d).function||"")&&d.pop()),d.slice(0,50).map(e=>({...e,filename:e.filename||l(d).filename,function:e.function||n}))}}function o(e){return Array.isArray(e)?a(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch{return u}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}},3442:(e,t,r)=>{"use strict";r.d(t,{AD:()=>c,SB:()=>o,ul:()=>u});var n=r(1419),i=r(6011);let s=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function o(e,t=!1){let{host:r,path:n,pass:i,port:s,projectId:a,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&i?`:${i}`:""}@${r}${s?`:${s}`:""}/${n?`${n}/`:n}${a}`}function l(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};return r.orgId?t=String(r.orgId):n&&(t=function(e){let t=e.match(s);return t?.[1]}(n)),t}function c(e){let t="string"==typeof e?function(e){let t=a.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,s="",o="",u="",c=""]=t.slice(1),d="",h=c,p=h.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),h=p.pop()),h){let e=h.match(/^\d+/);e&&(h=e[0])}return l({host:o,pass:s,path:d,projectId:h,port:u,protocol:r,publicKey:n})}(e):l(e);if(t&&function(e){if(!n.T)return!0;let{port:t,projectId:r,protocol:s}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==s&&"https"!==s?(i.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},3513:(e,t,r)=>{"use strict";r.r(t);var n=r(7971),i=r(1332);(0,n.v)(),(0,i.FU)()},3545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},3590:(e,t,r)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let n=r(4200);function i(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},3964:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},4058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return i}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},4104:(e,t,r)=>{"use strict";r.d(t,{Y7:()=>c,eg:()=>o,gT:()=>d,h0:()=>v,jy:()=>m,xG:()=>a,zH:()=>u});let n=["start","check-email","video","status","phone","vehicle","slots","requirements","identity","right-to-work","driving-car-van","driving-moped","insurance","background-checks","agreement","download","cancelled"],i=["photo_camera_start","video_camera_start"],s={"/applicants/start":"email_link_request","/applicants/continue":"email_link_verify","/applicants/me":"session_restore","/applicants/me/video:upload-url":"video_upload_prepare","/applicants/me/video:submit":"video_submit","/applicants/me/phone:request-code":"phone_code_request","/applicants/me/phone:confirm-code":"phone_code_verify","/applicants/me/trial-slots":"trial_slots_load","/applicants/me/trial:book":"trial_book","/applicants/me/requirements":"requirements_load","/applicants/me/requirements/:id":"requirement_save","/applicants/me/requirements/:id/files:upload-url":"document_upload","/applicants/me/requirements/:id:submit":"requirement_submit","/courier/courier-onboarding:cancel":"application_cancel","/courier/courier-onboarding:resume":"application_resume"};function a(e){return s[e.split("?")[0].replace(/\/\d+(?=\/|:|$)/g,"/:id")]||"unknown"}function o(e){return!!e&&("couriers.quiver.co.uk"===e.hostname||/^\/apply(\/|$)/.test(e.pathname))}let l=["courier_onboarding_step_viewed","courier_onboarding_operation","courier_onboarding_app_download"];function u(e){if(!e||!l.includes(e.event))return null;let t=e.properties||{},r={surface:"courier_onboarding",$process_person_profile:!1};for(let e of["token","distinct_id","$device_id","$session_id","$window_id","$lib","$lib_version","$browser","$browser_version","$os","$os_version","$device_type"])("string"==typeof t[e]||"number"==typeof t[e])&&(r[e]=t[e]);return n.includes(t.step)&&(r.step=t.step),[...Object.values(s),...i,"video_upload","unknown"].includes(t.operation)&&(r.operation=t.operation),["started","succeeded","failed"].includes(t.outcome)&&(r.outcome=t.outcome),["network","server","rate_limited","validation","unexpected"].includes(t.failure_kind)&&(r.failure_kind=t.failure_kind),["ios","android"].includes(t.platform)&&(r.platform=t.platform),Number.isInteger(t.http_status)&&t.http_status>=100&&t.http_status<=599&&(r.http_status=t.http_status),Number.isFinite(t.duration_ms)&&(r.duration_ms=Math.max(0,Math.min(36e5,Math.round(t.duration_ms)))),/^[a-f0-9]{40}$/.test(t.release||"")&&(r.release=t.release),{...e,properties:r,$set:void 0,$set_once:void 0}}function c(e){let t={};return["network","server","rate_limited","validation","unexpected"].includes(null==e?void 0:e.failure_kind)&&(t.failure_kind=e.failure_kind),Number.isInteger(null==e?void 0:e.http_status)&&e.http_status>=100&&e.http_status<=599&&(t.http_status=e.http_status),t}async function d(e,t,r,n){let i=Date.now(),s=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];try{e(...r)}catch(e){}};s(r,{operation:e,outcome:"started"});try{let n=await t();return s(r,{operation:e,outcome:"succeeded",duration_ms:Date.now()-i}),n}catch(l){let t="number"==typeof(null==l?void 0:l.status)?l.status:void 0,a="video_upload"===e&&t>=400&&t<500&&429!==t?"unexpected":429===t?"rate_limited":t>
3=500?"server":t>=400&&t<500?"validation":l instanceof TypeError?"network":"unexpected",o={operation:e,outcome:"failed",failure_kind:a,http_status:t,duration_ms:Date.now()-i};throw s(r,o),"validation"!==a&&"rate_limited"!==a&&s(n,o),l}}let h=["Error","ReferenceError","TypeError","RangeError","SyntaxError","URIError","EvalError","NetworkError","AbortError","SecurityError","NotAllowedError","NotFoundError","InvalidStateError","TimeoutError"],p=["browser","os","device","runtime","app","culture","trace"],f=["identity","right-to-work","driving","insurance","background-checks","agreement","download"],g=/^(?:[A-Za-z_$][\w$]* is not defined|Can't find variable: [A-Za-z_$][\w$]*|Cannot read propert(?:y|ies)(?: ['"][\w$]+['"])? of (?:undefined|null)(?: \(reading ['"][\w$]+['"]\))?|undefined is not (?:a function|an object)|null is not (?:a function|an object)|[A-Za-z_$][\w$]* is not a function)$/;function _(e){if("string"!=typeof e)return;let t=e.replace(/^(?:[\w]+Error:\s*)+/,"").trim();return g.test(t)?t:void 0}function v(e){var t,r,n,a,o,l,u,d,g,v,m,y;e.breadcrumbs=[],e.extra={};let b={};for(let t of p)(null==(m=e.contexts)?void 0:m[t])&&"object"==typeof e.contexts[t]&&(b[t]=e.contexts[t]);e.contexts=b;let E=null==(t=e.user)?void 0:t.id;e.user="string"==typeof E&&/^[A-Za-z0-9_-]{16,64}$/.test(E)?{id:E}:void 0;let w=function(e){if("string"!=typeof e||!e)return;let t=e.split("?")[0].split("#")[0];try{/^[a-z][a-z0-9+.-]*:/i.test(e)&&(t=new URL(e).pathname)}catch(e){}if("/"===(t=(t.replace(/^\/en(?=\/|$)/,"")||"/").replace(/\/+$/,"")||"/")||"/apply"===t)return"/";let r=t.replace(/^\/(?:apply\/)?/,"");return f.includes(r)?"/".concat(r):void 0}(null==(r=e.request)?void 0:r.url);e.request=void 0,e.transaction="/apply";let x=[...Object.values(s),...i,"video_upload","unknown"].includes(null==(n=e.tags)?void 0:n.operation)?e.tags.operation:"unhandled",S=h.includes(null==(l=e.exception)||null==(o=l.values)||null==(a=o[0])?void 0:a.type)?e.exception.values[0].type:void 0;e.tags={surface:"courier_onboarding",operation:x,...c(e.tags),...S?{error_type:S}:{},...w?{route:w}:{}};let P=_((null==(g=e.exception)||null==(d=g.values)||null==(u=d[0])?void 0:u.value)||e.message),R="unhandled"===x&&P?"Courier onboarding failed: unhandled (".concat(P,")"):"Courier onboarding failed: ".concat(x);for(let t of(e.message&&(e.message=R),(null==(v=e.exception)?void 0:v.values)||[])){let e=_(t.value);for(let r of(t.value="unhandled"===x&&e?"Courier onboarding failed: unhandled (".concat(e,")"):"Courier onboarding failed: ".concat(x),(null==(y=t.stacktrace)?void 0:y.frames)||[]))delete r.vars,r.filename&&(r.filename=r.filename.split("?")[0].split("#")[0])}return"unhandled"===x&&(e.fingerprint=["courier-onboarding","unhandled",S||"Error",P||"unknown"]),e}function m(e,t){if(!i.includes(e))return null;let r=null==t?void 0:t.name;return["NotAllowedError","PermissionDeniedError","NotFoundError","DevicesNotFoundError","AbortError"].includes(r)?null:{operation:e,category:["NotReadableError","NotSupportedError","InvalidStateError","TypeError","SecurityError"].includes(r)?r:"Error"}}},4200:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},4252:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},4437:(e,t,r)=>{"use strict";r.d(t,{Lb:()=>i});var n=r(7070);function i(e){return{scope:e._sentryScope,isolationScope:(0,n.q)(e._sentryIsolationScope)}}},4444:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},4461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext({})},4643:(e,t)=>
3{"use strict";function r(e,t,r,n,s){let a=e[t];if(s&&s.has(t)?a=s.get(t):Array.isArray(a)?a=a.map(e=>encodeURIComponent(e)):"string"==typeof a&&(a=encodeURIComponent(a)),!a){let s="oc"===r;if("c"===r||s)return s?{param:t,value:null,type:r,treeSegment:[t,"",r]}:{param:t,value:a=n.split("/").slice(1).flatMap(t=>{var r;let n=i(t);return null!=(r=e[n.key])?r:n.key}),type:r,treeSegment:[t,a.join("/"),r]}}return{param:t,value:a,treeSegment:[t,Array.isArray(a)?a.join("/"):a,r],type:r}}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PARAMETER_PATTERN:function(){return n},getDynamicParam:function(){return r},parseMatchedParameter:function(){return s},parseParameter:function(){return i}});let n=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function i(e){let t=e.match(n);return t?s(t[2]):s(e)}function s(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}}},4727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});
3let n=r(1490),i=r(170),s=r(3076),a=r(464),o=r(9783),l=r(1623),u=r(5847),c=r(1479),d=r(5700),h=r(3333);function p(e,t,r){let p,f="string"==typeof t?t:(0,i.formatWithValidation)(t),g=f.match(/^[a-z][a-z0-9+.-]*:\/\//i),_=g?f.slice(g[0].length):f;if((_.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,a.normalizeRepeatedSlashes)(_);f=(g?g[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,h.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}p=new URL(t,"http://n")}catch(e){p=new URL("/","http://n")}try{let e=new URL(f,p);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:a,params:o}=(0,c.interpolateAs)(e.pathname,e.pathname,r);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,s.omit)(r,o)}))}let a=e.origin===p.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(e){return r?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return i},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return s}});let n=r(7769),i=["(..)(..)","(.)","(..)","(...)"];function s(e){return void 0!==e.split("/").find(e=>i.find(t=>e.startsWith(t)))}function a(e){let t,r,s;for(let n of e.split("/"))if(r=i.find(e=>n.startsWith(e))){[t,s]=e.split(r,2);break}if(!t||!r||!s)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":s="/"===t?"/"+s:t+"/"+s;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});s=t.split("/").slice(0,-1).concat(s).join("/");break;case"(...)":s="/"+s;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});s=a.slice(0,-2).concat(s).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:s}}},4914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=r(3590);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},5037:(e,t)=>{"use strict";function r(){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){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(e[t]||[]).slice().map(e=>{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},5040:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var i={},s=t.split(n),a=(r||{}).decode||e,o=0;o<s.length;o++){var l=s[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==i[c]&&(i[c]=function(e,t){try{return t(e)}catch(t){return e}}(d,a))}}return i},t.serialize=function(e,t,n){var s=n||{},a=s.encode||r;if("function"!=typeof a)throw TypeError("option encode is invali
3d");if(!i.test(e))throw TypeError("argument name is invalid");var o=a(t);if(o&&!i.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=s.maxAge){var u=s.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(s.domain){if(!i.test(s.domain))throw TypeError("option domain is invalid");l+="; Domain="+s.domain}if(s.path){if(!i.test(s.path))throw TypeError("option path is invalid");l+="; Path="+s.path}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(l+="; HttpOnly"),s.secure&&(l+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.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};var e=decodeURIComponent,r=encodeURIComponent,n=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/})(),e.exports=t})()},5095:(e,t,r)=>{"use strict";r.d(t,{h:()=>function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}})},5153:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return s}});let n=r(5847),i=r(9213);function s(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},5269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return i},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(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,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let r=i.slice(1,-1),a=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),a=!0),r.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(r.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function s(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,
3configurable:!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,"")===i.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(n)if(a){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});s(this.optionalRestSlugName,r),this.optionalRestSlugName=r,i="[[...]]"}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});s(this.restSlugName,r),this.restSlugName=r,i="[...]"}else{if(a)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});s(this.slugName,r),this.slugName=r,i="[]"}}this.children.has(i)||this.children.set(i,new r),this.children.get(i)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function i(e,t){let r={},i=[];for(let n=0;n<e.length;n++){let s=t(e[n]);r[s]=n,i[n]=s}return n(i).map(t=>e[r[t]])}},5272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return s}});let n=r(4232),i=r(8477),s=e=>{let{children:t,type:r}=e,[s,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),a(e),()=>{document.body.removeChild(e)}},[r]),s?(0,i.createPortal)(t,s):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5364:(e,t,r)=>{"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(5861)},5496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return u}});let n=r(4252),i=r(7876),s=n._(r(4232)),a=r(6296),o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,a.useRouter)(),[t,r]=s.default.useState(""),n=s.default.useRef(e);return s.default.useEffect(()=>{if(n.current!==e)if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}},[e]),(0,i.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:o,children:t})},u=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5700:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return u}});let n=r(9308),i=r(4818),s=r(494),a=r(3964),o=r(4643);function l(e,t,r){let n={},l=1,u=[];for(let c of(0,a.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),a=c.match(o.PARAMETER_PATTERN);if(e&&a&&a[2]){let{key:t,optional:r,repeat:i}=(0,o.parseMatchedParameter)(a[2]);n[t]={pos:l++,repeat:i,optional:r},u.push("/"+(0,s.escapeStringRegexp)(e)+"([^/]+?)")}else if(a&&a[2]){let{key:e,repeat:t,optional:i}=(0,o.parseMatchedParameter)(a[2]);n[e]={pos:l++,repeat:t,optional:i},r&&a[1]&&u.push("/"+(0,s.escapeStringRegexp)(a[1]));let c=t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&a[1]&&(c=c.substring(1)),u.push(c)}else u.push("/"+(0,s.escapeStringRegexp)(c));t&&a&&a[3]&&u.push((0,s.escapeStringRegexp)(a[3]))}return{parameterizedRoute:u.join(""),groups:n}}function u(e,t){let{includeSuffix:r=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:i=!1}=void 0===t?{}:t,{parameterizedRoute:s,groups:a}=l(e,r,n),o=s;
3return i||(o+="(?:/)?"),{re:RegExp("^"+o+"$"),groups:a}}function c(e){let t,{interceptionMarker:r,getSafeRouteKey:n,segment:i,routeKeys:a,keyPrefix:l,backreferenceDuplicateKeys:u}=e,{key:c,optional:d,repeat:h}=(0,o.parseMatchedParameter)(i),p=c.replace(/\W/g,"");l&&(p=""+l+p);let f=!1;(0===p.length||p.length>30)&&(f=!0),isNaN(parseInt(p.slice(0,1)))||(f=!0),f&&(p=n());let g=p in a;l?a[p]=""+l+c:a[p]=c;let _=r?(0,s.escapeStringRegexp)(r):"";return t=g&&u?"\\k<"+p+">":h?"(?<"+p+">.+?)":"(?<"+p+">[^/]+?)",d?"(?:/"+_+t+")?":"/"+_+t}function d(e,t,r,l,u){let d,h=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),p={},f=[];for(let d of(0,a.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),a=d.match(o.PARAMETER_PATTERN);if(e&&a&&a[2])f.push(c({getSafeRouteKey:h,interceptionMarker:a[1],segment:a[2],routeKeys:p,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:u}));else if(a&&a[2]){l&&a[1]&&f.push("/"+(0,s.escapeStringRegexp)(a[1]));let e=c({getSafeRouteKey:h,segment:a[2],routeKeys:p,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:u});l&&a[1]&&(e=e.substring(1)),f.push(e)}else f.push("/"+(0,s.escapeStringRegexp)(d));r&&a&&a[3]&&f.push((0,s.escapeStringRegexp)(a[3]))}return{namedParameterizedRoute:f.join(""),routeKeys:p}}function h(e,t){var r,n,i;
3let s=d(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(n=t.includePrefix)&&n,null!=(i=t.backreferenceDuplicateKeys)&&i),a=s.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(a+="(?:/)?"),{...u(e,t),namedRegex:"^"+a+"$",routeKeys:s.routeKeys}}function p(e,t){let{parameterizedRoute:r}=l(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:i}=d(e,!1,!1,!1,!1);return{namedRegex:"^"+i+(n?"(?:(/.*)?)":"")+"$"}}},5792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return a},LayoutRouterContext:function(){return s},MissingSlotContext:function(){return l},TemplateContext:function(){return o}});let n=r(4252)._(r(4232)),i=n.default.createContext(null),s=n.default.createContext(null),a=n.default.createContext(null),o=n.default.createContext(null),l=n.default.createContext(new Set)},5824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8757),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let n=r(5269),i=r(9641)},5861:e=>{!function(){var t={229:function(e){var t,r,n,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||u||o(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={exports:{}},a=!0;try{t[e](s,s.exports,n),a=!1}finally{a&&delete r[e]}return s.exports}n.ab="//",e.exports=n(229)}()},6011:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>a,Yz:()=>h,Z9:()=>o,pq:()=>l});var n=r(6925),i=r(1419),s=r(7628);let a=["debug","info","warn","error","log","assert","trace"],o={};function l(e){if(!("console"in s.O))return e();let t=s.O.console,r={},n=Object.keys(o);n.forEach(e=>{let n=o[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function u(){return d().enabled}function c(e,...t){i.T&&u()&&l(()=>{s.O.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.T?(0,n.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let h={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:u,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},6076:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>l,_c:()=>o,gt:()=>a,xv:()=>s});var n=r(45),i=r(7284);function s(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let s=e[t];(0,n.sO)(s)?r.push(String(s)):s instanceof Error?r.push(s.message?`${s.name}: ${s.message}`:s.name):r.push((0,i.ng)(void 0,s))}return r.join(t)}function o(e,t,r=!1){return!!(0,n.Kg)(e)&&((0,n.gd)(t)?t.test(e):(0,n.Kg)(t)?r?e===t:e.includes(t):"function"==typeof t&&t(e))}
3function l(e,t=[],r=!1){for(let n of t)if(o(e,n,r))return!0;return!1}},6107:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(2437),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},6240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},getProperError:function(){return s}});let n=r(802);function i(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function s(e){return i(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},6296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return s.default},createRouter:function(){return g},default:function(){return p},makePublicRouterInstance:function(){return _},useRouter:function(){return f},withRouter:function(){return l.default}});let n=r(4252),i=n._(r(4232)),s=n._(r(826)),a=r(242),o=n._(r(6240)),l=n._(r(7477)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!u.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 u.router}Object.defineProperty(u,"events",{get:()=>s.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get:()=>h()[e]})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return h()[e](...r)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{u.ready(()=>{s.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let i="on"+e.charAt(0).toUpperCase()+e.substring(1);if(u[i])try{u[i](...r)}catch(e){console.error("Error when running the Router event: "+i),console.error((0,o.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let p=u;function f(){let e=i.default.useContext(a.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 g(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.router=new s.default(...t),u.readyCallbacks.forEach(e=>e()),u.readyCallbacks=[],u.router}function _(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=s.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e[r](...n)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(4252)._(r(5037));class i{end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,
3configurable:!0});this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,i;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(i=t.startTime)?i:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class s{startSpan(e,t){return new i(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let a=new s;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6758:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return _}});let n=r(4252),i=r(8365),s=r(7876),a=n._(r(8477)),o=i._(r(4232)),l=r(7965),u=r(8461),c=r(3273),d=r(9757),h=new Map,p=new Set,f=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:o="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,f=r||t;if(f&&p.has(f))return;if(h.has(t)){p.add(f),h.get(t).then(n,c);return}let g=()=>{i&&i(),p.add(f)},_=document.createElement("script"),v=new Promise((e,t)=>{_.addEventListener("load",function(t){e(),n&&n.call(this,t),g()}),_.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});s?(_.innerHTML=s.__html||"",g()):o?(_.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",g()):t&&(_.src=t,h.set(t,v)),(0,u.setAttributesFromProps)(_,e),"worker"===l&&_.setAttribute("type","text/partytown"),_.setAttribute("data-nscript",l),d&&(e=>{if(a.default.preinit)return e.forEach(e=>{a.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(_)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))}):f(e)}function _(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function v(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:h,stylesheets:g,..._}=e,{updateScripts:v,scripts:m,getIsSsr:y,appDir:b,nonce:E}=(0,o.useContext)(l.HeadManagerContext);E=_.nonce||E;let w=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||r;w.current||(i&&e&&p.has(e)&&i(),w.current=!0)},[i,t,r]);let x=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{if(!x.current){if("afterInteractive"===u)f(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))}));x.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(v?(m[u]=(m[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:h,..._,nonce:E}]),v(m)):y&&y()?p.add(t||r):y&&!y()&&f({...e,nonce:E})),b){if(g&&g.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!r)return _.dangerouslySetInnerHTML&&(_.children=_.dangerouslySetInnerHTML.__html,delete _.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{..._,id:t}]))+")"}});else return a.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:E,crossOrigin:_.crossOrigin}:{as:"script",nonce:E,crossOrigin:_.crossOrigin}),(0,s.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([r,{..._,id:t}]))+")"}});"afterInteractive"===u&&r&&a.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:E,crossOrigin:_.crossOrigin}:{as:"script",nonce:E,crossOrigin:_.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let m=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
3dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6854:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>oa});var n="undefined"!=typeof window?window:void 0,i="undefined"!=typeof globalThis?globalThis:n,s=null==i?void 0:i.navigator,a=null==i?void 0:i.document,o=null==i?void 0:i.location,l=null==i?void 0:i.fetch,u=null!=i&&i.XMLHttpRequest&&"withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:void 0,c=null==i?void 0:i.AbortController,d=null==i?void 0:i.CompressionStream,h=null==s?void 0:s.userAgent;function p(){return!(!n||!1===n.navigator.onLine)}var f="undefined"!=typeof globalThis?globalThis:n;f&&"undefined"==typeof self&&(f.self=f),f&&"undefined"==typeof File&&(f.File=function(){});var g=null!=n?n:{},_={DEBUG:!1,LIB_VERSION:"0.4.0",LIB_NAME:"browser-common"};function v(e,t,r,n,i,s,a){try{var o=e[s](a),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,i)}function m(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function a(e){v(s,n,i,a,o,"next",e)}function o(e){v(s,n,i,a,o,"throw",e)}a(void 0)})}}function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function b(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var E=e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}};function w(e){return"string"==typeof e||e}function x(e){return"string"==typeof e?e:void 0}var S,P=["$feature_flag","$feature_flag_response","$feature_flag_has_experiment","$feature_flag_id","$feature_flag_version","$feature_flag_reason","$feature_flag_request_id","$feature_flag_evaluated_at","$feature_flag_error","locally_evaluated","$groups","$process_person_profile","$geoip_disable","$current_url","$pathname","$referring_domain","utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid","gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx","$session_id","$window_id","$lib","$lib_version","$device_id","$is_server"],R=function(e){return e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.EnablePersonProcessing="enable_person_processing",e.PersonMode="person_mode",e.FeatureFlagDetails="feature_flag_details",e.FeatureFlags="feature_flags",e.FeatureFlagPayloads="feature_flag_payloads",e.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",e.BootstrapFeatureFlags="bootstrap_feature_flags",e.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.AiQueue="ai_queue",e.LogsQueue="logs_queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionStartTimestamp="session_start_timestamp",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties",e.InstalledAppBuild="installed_app_build",e.InstalledAppVersion="installed_app_version",e.SessionReplay="session_replay",e.PushRegistered="push_registered",e.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",e.SurveyLastSeenDate="survey_last_seen_date",e.SurveysSeen="surveys_seen",e.Surveys="surveys",e.RemoteConfig="remote_config",e.FlagsEndpointWasHit="flags_endpoint_was_hit",e.DeviceId="device_id",e}({}),O=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),T=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],k=["token"],A="NativeGzipValidationError",I=e=>e.length>=2&&31===e[0]&&139===e[1],C=(e,t)=>e===O.GZipJS||t===O.GZipJS||"gzip"===t,N=e=>!(!e||"object"!=typeof e)&&"NotReadableError"===("name"in e?String(e.name):""),j=e=>
3{var t=Error("Native gzip produced invalid output: "+e);throw t.name=A,t},M=function(){var e=m(function*(e,t){18>e.size&&j("too-short");var r=new Uint8Array((yield e.slice(0,10).arrayBuffer()));I(r)&&8===r[2]||j("invalid-header");var n=new DataView((yield e.slice(e.size-8).arrayBuffer()));n.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(S)return S;S=[];for(var e=0;256>e;e++){for(var t=e,r=0;8>r;r++)t=1&t?0xedb88320^t>>>1:t>>>1;S[e]=t>>>0}return S})(),r=0xffffffff,n=0;e.length>n;n++)r=t[255&(r^e[n])]^r>>>8;return(0xffffffff^r)>>>0})(t)&&j("invalid-crc");var i=t.length>>>0;n.getUint32(4,!0)!==i&&j("invalid-size")});return function(t,r){return e.apply(this,arguments)}}();function L(){return(L=m(function*(e,t,r){void 0===t&&(t=!0);try{var n,i=(new TextEncoder).encode(e),s=new globalThis.CompressionStream("gzip"),a=s.writable.getWriter(),o=a.write(i).then(()=>a.close()).catch((n=m(function*(e){try{yield a.abort(e)}catch(e){}throw e}),function(e){return n.apply(this,arguments)})),l=new Response(s.readable).blob(),u=(yield Promise.all([l,o]))[0];return yield M(u,i),u}catch(e){if(null!=r&&r.rethrow)throw e;return t&&console.error("Failed to gzip compress data",e),null}})).apply(this,arguments)}var F=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],D=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return F.concat(t).some(e=>{var t=e.toLowerCase();return -1!==r.indexOf(t)})};function $(e,t){return -1!==e.indexOf(t)}var U=function(e){return e.trim()},B=function(e){return e.replace(/^\$/,"")};function H(e){var t,r=[];return null!=(t=JSON.stringify(e,function(e,t){if("bigint"==typeof t)return t.toString();if("function"!=typeof t&&"symbol"!=typeof t){if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t&&"object"==typeof t){for(;r.length>0&&r[r.length-1]!==this;)r.pop();if(r.includes(t))return"[Circular]";r.push(t)}return t}}))?t:"null"}var q=Object.prototype,z=q.hasOwnProperty,W=q.toString,G=Array.isArray||function(e){return"[object Array]"===W.call(e)},V=e=>"function"==typeof e,Y=e=>e===Object(e)&&!G(e),X=e=>{if(Y(e)){for(var t in e)if(z.call(e,t))return!1;return!0}return!1},K=e=>void 0===e,J=e=>"[object String]"==W.call(e),Q=e=>J(e)&&0===e.trim().length,Z=e=>null===e,ee=e=>K(e)||Z(e),et=e=>"[object Number]"==W.call(e)&&e==e,er=e=>et(e)&&e>0,en=e=>"[object Boolean]"===W.call(e),ei=e=>$(T,e),es=e=>$(k,e);function ea(e){return null===e||"object"!=typeof e}function eo(e,t){return({}).toString.call(e)==="[object "+t+"]"}function el(e){return"undefined"!=typeof Event&&eu(e,Event)}function eu(e,t){try{return e instanceof t}catch(e){return!1}}var ec=[!0,"true",1,"1","yes"],ed=e=>$(ec,e),eh=[!1,"false",0,"0","no"];function ep(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),et(e)?e>r?(n.warn(" cannot be greater than max: "+r+". Using max value instead."),r):t>e?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),ep(i||r,t,r,n))}class ef{constructor(e){this.tt={},this.et=e.et,this.it=ep(e.bucketSize,0,100,e.rt),this.nt=ep(e.refillRate,0,this.it,e.rt),this.st=ep(e.refillInterval,0,864e5,e.rt)}ot(e,t){var r=Math.floor((t-e.lastAccess)/this.st);r>0&&(e.tokens=Math.min(e.tokens+r*this.nt,this.it),e.lastAccess=e.lastAccess+r*this.st)}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.tt[n];return i?this.ot(i,r):this.tt[n]=i={tokens:this.it,lastAccess:r},0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.et)||t.call(this,e)),0===i.tokens)}stop(){this.tt={}}}var eg="Mobile",e_="Android",ev="Tablet",em=e_+" "+ev,ey="iPad",eb="Apple",eE=eb+" Watch",ew="Safari",ex="BlackBerry",eS="Samsung",eP=eS+"Browser",eR=eS+" Internet",eO="Chrome",eT=eO+" OS",ek=eO+" iOS",eA="Internet Explorer",eI=eA+" "+eg,eC="Opera",eN=eC+" Mini",ej="Edge",eM="Microsoft "+ej,eL="Firefox",eF=eL+" iOS",eD="Nintendo",e$="PlayStation",eU="Xbox",eB=e_+" "+eg,eH=eg+" "+ew,eq="Windows",ez=eq+" Phone",eW="Nokia",eG="Ouya",eV="Generic",eY=eV+" "+eg.toLowerCase(),eX=eV+" "+ev.toLowerCase(),eK="Konqueror",eJ="Oculus Browser",eQ="Vivaldi",eZ="Yandex",e0="Whale",e1="DuckDuckGo",e2="Pale Moon",e3="Waterfox",e4="Brave",e5="Google Search App",e6="(\\d+(\\.\\d+)?)",e8=RegExp("Version/"+e6),e9=RegExp(eU,"i"),e7=RegExp(e$+" \\w+","i"),te=RegExp(eD+" \\w+","i"),tt=RegExp(ex+"|PlayBook|BB10","i"),tr={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},tn=function(e,t,r,n){var i;return t=t||"",(null!=r&&r.brave?e4:null)||(null!=n&&n.detectGoogleSearchApp&&$(e,"GSA/")?e5:$(e," OPR/")&&$(e,"Mini")?eN:$(e," OPR/")?eC:tt.test(e)?ex:$(e,"IE"+eg)||$(e,"WPDesktop")?eI:$(e,"OculusBrowser")?eJ:$(e,eP)?eR:$(e,ej)||$(e,"Edg/")?eM:$(e,eQ+"/")?eQ:$(e,"YaBrowser/")?eZ:$(e,e0+"/")?e0:$(e,e1+"/")||$(e,"Ddg/")?e1:$(e,"FBIOS")?"Facebook "+eg:$(e,"UCWEB")||$(e,"UCBrowser")?"UC Browser":$(e,"CriOS")?ek:$(e,"CrMo")||$(e,eO)?eO:$(e,e_)&&$(e,ew)?eB:$(e,"FxiOS")?eF:$(e.toLowerCase(),eK.toLowerCase())?eK:$(e,e4+"/")?e4:(i=t)&&$(i,eb)||$(e,ew)&&!$(e,eO)&&!$(e,e_)?$(e,eg)?eH:ew:$(e,"PaleMoon/")?e2:$(e,e3+"/")?e3:$(e,eL)?eL:$(e,"MSIE")||$(e,"Trident/")?eA:$(e,"Gecko")?eL:"")},ti={[eI]:[RegExp("rv:"+e6)],[eM]:[RegExp(ej+"?\\/"+e6)],[eO]:[RegExp("("+eO+"|CrMo)\\/"+e6)],[ek]:[RegExp("CriOS\\/"+e6)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+e6)],[ew]:[e8],[eH]:[e8],[eC]:[RegExp("(Opera|OPR)\\/"+e6)],[eL]:[RegExp(eL+"\\/"+e6)],[eF]:[RegExp("FxiOS\\/"+e6)],[eK]:[RegExp("Konqueror[:/]?"+e6,"i")],[ex]:[RegExp(ex+" "+e6),e8],[eB]:[RegExp("android\\s"+e6,"i")],[eR]:[RegExp(eP+"\\/"+e6)],[eJ]:[RegExp("OculusBrowser\\/"+e6)],[eQ]:[RegExp(eQ+"\\/"+e6)],[eZ]:[RegExp("YaBrowser\\/"+e6)],[e0]:[RegExp(e0+"\\/"+e6)],[e4]:[RegExp(e4+"\\/"+e6)],[e1]:[RegExp("(DuckDuckGo|Ddg)\\/"+e6)],[e2]:[RegExp("PaleMoon\\/"+e6)],[e3]:[RegExp(e3+"\\/"+e6)],[e5]:[RegExp("GSA\\/"+e6)],[eA]:[RegExp("(rv:|MSIE )"+e6)],Mozilla:[RegExp("rv:"+e6)]},ts=function(e,t,r,n){var i=ti[tn(e,t,r,n)];if(K(i))return null;for(var s=0;i.length>s;s++){var a=e.match(i[s]);if(a)return parseFloat(a[a.length-2])}return null},ta=[[RegExp(eU+"; "+eU+" (.*?)[);]","i"),e=>[eU,e&&e[1]||""]],[RegExp(eD,"i"),[eD,""]],[RegExp(e$,"i"),[e$,""]],[tt,[ex,""]],[RegExp(eq,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[ez,""];if(new RegExp(eg).test(t)&&!/IEMobile\b/.test(t))return[eq+" "+eg,""];
3var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=tr[r[1]]||"";return/arm/i.test(t)&&(n="RT"),[eq,n]}return[eq,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=K(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+e_+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+e_+")","i"),e=>e&&e[2]?[e_,[e[2],e[3],e[4]||"0"].join(".")]:[e_,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[eT,""]],[/Linux|debian/i,["Linux",""]]],to=function(e){return te.test(e)?eD:e7.test(e)?e$:e9.test(e)?eU:RegExp(eG,"i").test(e)?eG:RegExp("("+ez+"|WPDesktop)","i").test(e)?ez:/iPad/.test(e)?ey:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?eE:tt.test(e)?ex:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(eW,"i").test(e)?eW:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(eg).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?e_:em:RegExp("(pda|"+eg+")","i").test(e)?eY:RegExp(ev,"i").test(e)&&!RegExp(ev+" pc","i").test(e)?eX:""},tl=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function tu(e,t){return"string"==typeof e&&tl.test(e)?e:t()}function tc(e){return e?e.split("#")[0]:e}function td(e,t){var r=setTimeout(e,t);return(null==r?void 0:r.unref)&&(null==r||r.unref()),r}function th(e,t,r){return tp.apply(this,arguments)}function tp(){return(tp=m(function*(e,t,r){var n;try{return yield Promise.race([e,new Promise((e,i)=>{n=td(()=>{try{null==r||r(),e()}catch(e){i(e)}},t)})])}finally{clearTimeout(n)}})).apply(this,arguments)}var tf=e=>e instanceof Error,tg={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},t_=tg.info;function tv(e){var t=[];for(var r in e){var n=e[r];Z(n)||K(n)||t.push({key:r,value:function e(t){if(en(t))return{boolValue:t};if("number"==typeof t)return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if("string"==typeof t)return{stringValue:t};if(G(t))return{arrayValue:{values:t.map(t=>e(t))}};try{return{stringValue:JSON.stringify(t)}}catch(e){return{stringValue:String(t)}}}(n)})}return t}function tm(e,t,r){return y({},e.resourceAttributes,{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment},e.serviceVersion&&{"service.version":e.serviceVersion},{"telemetry.sdk.name":t,"telemetry.sdk.version":r})}function ty(e,t,r,n){return{resourceLogs:[{resource:{attributes:tv(t)},scopeLogs:[{scope:{name:r,version:n},logRecords:e}]}]}}let tb=class{constructor(e,t,r,n,i,s,a){var o;void 0===s&&(s=()=>Promise.resolve()),this._instance=e,this.Ne=t,this.rt=r,this.ut=n,this.ht=i,this.dt=s,this.vt=a,this.ct=null,this.ft=0,this.yt=0,this.bt=0,this._t=0,this.wt=!1,this.kt=t.maxBufferSize,this.xt=Math.max(null!=(o=t.maxQueueSize)?o:t.maxBufferSize,t.maxBufferSize),this.St=t.flushIntervalMs,this.Ct=t.maxBatchRecordsPerPost,this.Mt=t.rateCapWindowMs,this.Tt=t.maxLogsPerInterval}reset(){this.Et(),this.ct=null,this.bt=0,this._t=0,this.wt=!1,this.ft=0,this.yt=0,this.Ct=this.Ne.maxBatchRecordsPerPost}onReconnect(){this.yt=0,this.It()}captureLog(e){if(!this._instance.isDisabled&&!this._instance.optedOut&&null!=e&&e.body){var t=this.Pt(e);if(null!==t)if(t.body){if(this.Rt()){var r,n,i,s,a,o,l,u,c={record:(r=this.ut(),i=(n=tg[t.level||"info"]||t_).text,s=n.number,a=String(Date.now())+"000000",o={},r.distinctId&&(o.posthogDistinctId=r.distinctId),r.sessionId&&(o.sessionId=r.sessionId),r.windowId&&(o["window.id"]=r.windowId),ee(r.sessionStartTimestamp)||(o.sessionStartTimestamp=String(r.sessionStartTimestamp)),ee(r.lastActivityTimestamp)||(o.lastActivityTimestamp=String(r.lastActivityTimestamp)),r.currentUrl&&(o["url.full"]=r.currentUrl),r.screenName&&(o["screen.name"]=r.screenName),r.appState&&(o["app.state"]=r.appState),r.activeFeatureFlags&&r.activeFeatureFlags.length>0&&(o.feature_flags=r.activeFeatureFlags),l=y({},o,t.attributes||{}),u={timeUnixNano:a,observedTimeUnixNano:a,severityNumber:s,severityText:i,body:{stringValue:t.body},attributes:tv(l)},t.trace_id&&(u.traceId=t.trace_id),t.span_id&&(u.spanId=t.span_id),K(t.trace_flags)||(u.flags=t.trace_flags),u)};this.ht(()=>this.At(c))}}else this.rt.info("Log was rejected in beforeSend function")}}Pt(e){var t=this.Ne.beforeSend;if(!t)return e;var r=G(t)?t:[t],n=e;for(var i of r)try{var s=i(n);if(!s)return this.rt.info("Log was rejected in beforeSend function"),null;n=s}catch(e){return this.rt.error("Error in beforeSend function for log:",e),null}return n}Rt(){if(void 0===this.Tt)return!0;var e=Date.now(),t=e-this.bt;return this.Mt>t&&t>=0||(this.bt=e,this._t=0,this.wt=!1),this.Tt>this._t?(this._t++,!0):(this.wt||(this.rt.warn("captureLog dropping logs: exceeded "+this.Tt+" logs per "+this.Mt+"ms"),this.wt=!0),!1)}flush(){var e=this;return m(function*(){if(!e._instance.isDisabled)return e.ct||(e.ct=e.Ft().finally(()=>{e.ct=null})),e.ct})()}Ft(){var e=this;return m(function*(){e.Et();var t=null!=(i=e._instance.getPersistedProperty(R.LogsQueue))?i:[];if(0!==t.length)for(var r=t.length,n=0;t.length>0&&r>n;){e.ft=0;var i,s,a,o=Math.min(t.length,e.Ct),l=t.slice(0,o),u=ty(l.map(e=>e.record),e.Lt(),null!=(s=e.vt)?s:e._instance.getLibraryId(),e._instance.getLibraryVersion()),c=yield e._instance.Ot(u);
3if("too-large"===c.kind&&l.length>1)e.Ct=Math.max(1,Math.floor(l.length/2)),e.rt.warn("Received 413 when sending logs batch of size "+l.length+", reducing batch size to "+e.Ct);else if("retry-later"===c.kind||("too-large"===c.kind?e.rt.warn("Dropping a single log record after 413 with batch size 1 — the record is larger than the server cap and cannot be split further."):"ok"===c.kind&&e.Ne.maxBatchRecordsPerPost>e.Ct&&(e.Ct=Math.min(e.Ne.maxBatchRecordsPerPost,e.Ct+1)),yield e.Dt(l.length),t=null!=(a=e._instance.getPersistedProperty(R.LogsQueue))?a:[],n+=l.length,"fatal"===c.kind))throw c.error}})()}Dt(e){var t=this;return m(function*(){var r,n=Math.max(0,e-t.ft),i=null!=(r=t._instance.getPersistedProperty(R.LogsQueue))?r:[];t._instance.setPersistedProperty(R.LogsQueue,i.slice(n)),yield t.dt()})()}Lt(){return tm(this.Ne,this._instance.getLibraryId(),this._instance.getLibraryVersion())}At(e){var t;if(!this._instance.optedOut){var r=null!=(t=this._instance.getPersistedProperty(R.LogsQueue))?t:[];this.xt>r.length||(r.shift(),this.ft++,this.rt.info("Logs queue is full, dropping oldest record.")),r.push(e),this._instance.setPersistedProperty(R.LogsQueue,r),this.kt>r.length?this.$t():this.It()}}$t(e){void 0===e&&(e=this.St),this.Nt||(this.Nt=td(()=>{this.Nt=void 0,this.It()},e))}qt(){var e=Math.min(Math.max(0,this.yt-1),6);return this.St*Math.pow(2,e)}jt(){var e=this._instance.getPersistedProperty(R.LogsQueue);return!!e&&e.length>0}shutdown(e){var t=this;return m(function*(){t.Et();var r=t.flush().catch(()=>{});void 0!==e?yield th(r,e):yield r})()}flushWithTimeout(e){var t=this;return m(function*(){var r=t.flush();yield th(r,e,()=>{r.catch(()=>{})})})()}It(){this.flush().then(()=>{this.yt=0},e=>{this.yt++,this.rt.error("PostHog logs flush failed:",e)}).finally(()=>{!this._instance.isDisabled&&this.jt()&&this.$t(this.qt())})}Et(){this.Nt&&(clearTimeout(this.Nt),this.Nt=void 0)}};var tE=[0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4];function tw(e){return String(e)+"000000"}function tx(e,t,r,n){var i="";return n&&(i=Object.keys(n).sort().map(e=>JSON.stringify(e)+":"+JSON.stringify(n[e])).join(",")),e+"\0"+t+"\0"+(null!=r?r:"")+"\0"+i}let tS=class{constructor(e,t,r){this._instance=e,this.Ne=t,this.rt=r,this.Bt=new Map,this.ct=null,this.Ht=!1,this.Ut=new Map,this.zt=new Set,this.Wt=0}count(e,t,r){void 0===t&&(t=1),this.Vt({name:e,type:"count",value:t,unit:null==r?void 0:r.unit,attributes:null==r?void 0:r.attributes})}gauge(e,t,r){this.Vt({name:e,type:"gauge",value:t,unit:null==r?void 0:r.unit,attributes:null==r?void 0:r.attributes})}histogram(e,t,r){this.Vt({name:e,type:"histogram",value:t,unit:null==r?void 0:r.unit,attributes:null==r?void 0:r.attributes})}flush(){var e,t=this,r=this.ct,n=(e=m(function*(){r&&(yield r.catch(()=>{})),yield t.Zt()}),function(){return e.apply(this,arguments)})().finally(()=>{this.ct===n&&(this.ct=null)});return this.ct=n,n}drainWindow(){if(0===this.Bt.size)return null;var e=this.Bt;return this.Bt=new Map,this.Ht=!1,this.Ut=new Map,this.zt=new Set,this.Gt(e)}reset(){this.Wt++,this.Et(),this.Bt=new Map,this.ct=null,this.Ht=!1,this.Ut=new Map,this.zt=new Set}Vt(e){if(!this._instance.isDisabled&&!this._instance.optedOut){var t=this.Pt(e);if(null!==t)if(t.name&&"string"==typeof t.name)if("number"==typeof t.value&&Number.isFinite(t.value))if("count"===t.type&&0>t.value)this.rt.warn("Dropping count '"+t.name+"': counters are monotonic, value must be >= 0");else{try{r=t.attributes?y({},t.attributes):void 0,n=tx(t.type,t.name,t.unit,r)}catch(e){return void this.rt.warn("Dropping metric '"+t.name+"': attributes could not be serialized",e)}var r,n,i=this.Bt.get(n);if(!i){if(!this.Qt())return;i={name:t.name,type:t.type,unit:t.unit,attributes:r,windowStartMs:Date.now()},this.Bt.set(n,i)}var s=this.Ut.get(t.name);void 0===s?this.Ut.set(t.name,t.type):s===t.type||this.zt.has(t.name)||(this.zt.add(t.name),this.rt.warn("Metric name '"+t.name+"' is already used as a "+s+"; recording it as a "+t.type+" too will blend both series in charts. Use a distinct name.")),this.Kt(i,t.value),this.$t()}else this.rt.warn("Dropping metric '"+t.name+"': value must be a finite number");else this.rt.warn("Dropping metric with empty name")}}Qt(){return this.Ne.maxSeriesPerFlush>this.Bt.size||(this.Ht||(this.Ht=!0,this.rt.warn("Metric series cap reached ("+this.Ne.maxSeriesPerFlush+" per flush window); dropping new series until the next flush. Reduce attribute cardinality.")),!1)}Kt(e,t){var r;switch(e.type){case"count":e.total=(null!=(r=e.total)?r:0)+t;break;case"gauge":e.last=t;break;case"histogram":e.hist||(e.hist={count:0,sum:0,min:t,max:t,bucketCounts:Array(tE.length+1).fill(0)});var n=e.hist;n.count+=1,n.sum+=t,n.min=Math.min(n.min,t),n.max=Math.max(n.max,t),n.bucketCounts[function(e,t){for(var r=0;t.length>r;r++)if(t[r]>=e)return r;return t.length}
3(t,tE)]+=1}}Pt(e){var t=this.Ne.beforeSend;if(!t)return e;var r=G(t)?t:[t],n=e;for(var i of r)try{var s=i(n);if(!s)return this.rt.info("Metric was rejected in beforeSend function"),null;n=s}catch(e){return this.rt.error("Error in beforeSend function for metric:",e),null}return n}$t(){this.Nt||(this.Nt=td(()=>{this.Nt=void 0,this.flush().catch(e=>{this.rt.error("Metrics flush failed:",e)})},this.Ne.flushIntervalMs))}Et(){this.Nt&&(clearTimeout(this.Nt),this.Nt=void 0)}Zt(){var e=this;return m(function*(){if(0!==e.Bt.size){var t=e.Bt;e.Bt=new Map,e.Ht=!1,e.Ut=new Map,e.zt=new Set;var r=e.Wt,n=yield e._instance.Jt(e.Gt(t));if(r===e.Wt)switch(n.kind){case"ok":return;case"retry-later":return e.Yt(t),void e.$t();case"too-large":return void e.rt.warn("Metrics batch exceeded the server size limit and was dropped");case"fatal":return void e.rt.error("Failed to send metrics batch:",n.error)}}})()}Gt(e){var t,r,n,i,s,a,o;return t=this.Xt(e),s=this.Ne,a=this._instance.getLibraryId(),o=this._instance.getLibraryVersion(),r=y({},s.resourceAttributes,{"service.name":s.serviceName||"unknown_service"},s.environment&&{"deployment.environment":s.environment},s.serviceVersion&&{"service.version":s.serviceVersion},{"telemetry.sdk.name":a,"telemetry.sdk.version":o}),n=this._instance.getLibraryId(),i=this._instance.getLibraryVersion(),{resourceMetrics:[{resource:{attributes:tv(r)},scopeMetrics:[{scope:{name:n,version:i},metrics:t}]}]}}Xt(e){var t=tw(Date.now()),r=new Map;for(var n of e.values()){var i,s=tx(n.type,n.name,n.unit,void 0),a=r.get(s);a||(a=y({name:n.name},n.unit&&{unit:n.unit}),"count"===n.type?a.sum={aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}:"gauge"===n.type?a.gauge={dataPoints:[]}:a.histogram={aggregationTemporality:1,dataPoints:[]},r.set(s,a));var o=tv(null!=(i=n.attributes)?i:{}),l=tw(n.windowStartMs);if("count"===n.type){var u,c={attributes:o,startTimeUnixNano:l,timeUnixNano:t,asDouble:null!=(u=n.total)?u:0};a.sum.dataPoints.push(c)}else if("gauge"===n.type){var d,h={attributes:o,timeUnixNano:t,asDouble:null!=(d=n.last)?d:0};a.gauge.dataPoints.push(h)}else n.hist&&a.histogram.dataPoints.push({attributes:o,startTimeUnixNano:l,timeUnixNano:t,count:n.hist.count,sum:n.hist.sum,min:n.hist.min,max:n.hist.max,bucketCounts:n.hist.bucketCounts,explicitBounds:tE})}return Array.from(r.values())}Yt(e){var t,r;for(var n of e){var i=n[0],s=n[1],a=this.Bt.get(i);if(a)switch(a.windowStartMs=Math.min(a.windowStartMs,s.windowStartMs),a.type){case"count":a.total=(null!=(t=a.total)?t:0)+(null!=(r=s.total)?r:0);break;case"gauge":break;case"histogram":if(s.hist)if(a.hist){a.hist.count+=s.hist.count,a.hist.sum+=s.hist.sum,a.hist.min=Math.min(a.hist.min,s.hist.min),a.hist.max=Math.max(a.hist.max,s.hist.max);for(var o=0;a.hist.bucketCounts.length>o;o++)a.hist.bucketCounts[o]+=s.hist.bucketCounts[o]}else a.hist=s.hist}else this.Qt()&&this.Bt.set(i,s)}}};class tP{constructor(e,t,r){void 0===r&&(r=[]),this.coercers=e,this.stackParser=t,this.modifiers=r}buildFromUnknown(e,t){void 0===t&&(t={});var r=t&&t.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(r,t,0).apply(e),i=this.buildParsingContext(t),s=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(s,r),$exception_level:"error"}}modifyFrames(e){var t=this;return m(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&G(r.stacktrace.frames)&&(r.stacktrace.frames=yield t.applyModifiers(r.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var r,n;return null!=e.cause&&(r=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),y({},e,{cause:r,stack:n})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var r of this.coercers)if(r.match(e))return r.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return m(function*(){var r=e;for(var n of t.modifiers)r=yield n(r);return r})()}convertToExceptionList(e,t){var r,n,i,s={type:e.type,value:e.value,mechanism:{type:null!=(r=t.type)?r:"generic",handled:null==(n=t.handled)||n,synthetic:null!=(i=e.synthetic)&&i}};e.stack&&(s.stacktrace={type:"raw",frames:e.stack});var a=[s];return null!=e.cause&&a.push(...this.convertToExceptionList(e.cause,y({},t,{handled:!0}))),a}buildParsingContext(e){var t;return{chunkIdMap:function(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return nh&&r.length===nd||(nd=r.length,nh=r.reduce((r,n)=>{nc||(nc={});var i=nc[n];if(i)r[i[0]]=i[1];else for(var s=e(n),a=s.length-1;a>=0;a--){var o=s[a],l=null==o?void 0:o.filename,u=t[n];if(l&&u){r[l]=u,nc[n]=[l,u];break}}return r},{})),nh}}(this.stackParser),skipFirstLines:null!=(t=e.skipFirstLines)?t:1}}buildCoercingContext(e,t,r){void 0===r&&(r=0);var n=(r,n)=>{if(4>=n){var i=this.buildCoercingContext(e,t,n);return this.applyCoercers(r,i)}};return y({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>n(e,r),next:e=>n(e,r+1)})}}function tR(e,t,r,n,i){var s={platform:e,filename:t,function:"<anonymous>
3"===r?"?":r,in_app:!0};return K(n)||(s.lineno=n),K(i)||(s.colno=i),s}var tO=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},tT=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tk=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tA=/\((\S*)(?::(\d+))(?::(\d+))\)/,tI=(e,t)=>{var r=tT.exec(e);if(r)return tR(t,r[1],"?",+r[2],+r[3]);var n=tk.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){var i=tA.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}var s=tO(n[1]||"?",n[2]);return tR(t,s[1],s[0],n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},tC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tj=(e,t)=>{var r=tC.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=tN.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var i=r[3],s=r[1]||"?",a=tO(s,i);return tR(t,i=a[1],s=a[0],r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},tM=/\(error: (.*)\)/;class tL{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=J(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return eo(e,"DOMException")}isDOMError(e){return eo(e,"DOMError")}}class tF{match(e){switch(({}).toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object DOMError]":case"[object WebAssembly.Exception]":return!0;default:return eu(e,Error)}}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var r=e.message;return String(r.error&&"string"==typeof r.error.message?r.error.message:r)}getStack(e){return e.stacktrace||e.stack||void 0}}class tD{constructor(){}match(e){return!!eo(e,"ErrorEvent")&&(null!=e.error||this.fe(e))}coerce(e,t){if(null!=e.error)return t.apply(e.error);var r,n=t.apply(e.message);return y({},n,{stack:null!=(r=this.pe(e))?r:n.stack,synthetic:!0})}fe(e){return J(e.message)&&e.message.length>0}pe(e){if(J(e.filename)&&e.filename.length>0){var t,r,n=null!=(t=e.lineno)?t:0,i=null!=(r=e.colno)?r:0;return"Error\n at "+e.filename+":"+n+":"+i}}}var t$=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class tU{match(e){return"string"==typeof e}coerce(e,t){var r,n=this.getInfos(e),i=n[0],s=n[1];return{type:null!=i?i:"Error",value:null!=s?s:e,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}getInfos(e){var t="Error",r=e,n=e.match(t$);return n&&(t=n[1],r=n[2]),[t,r]}}var tB=["fatal","error","warning","log","info","debug"];function tH(e,t){void 0===t&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(t>=i.length)return n===r.length?i:i.length>t?i.slice(0,t)+"...":i}return""}class tq{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var r,n,i=this.getErrorPropertyFromObject(e);return i?t.apply(i):{type:this.getType(e),value:this.getValue(e),stack:null!=(r=this.getStack(e))?r:null==(n=t.syntheticException)?void 0:n.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return el(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var r=this.getObjectClassName(e);return(r&&"Object"!==r?"'"+r+"'":"Object")+" captured as exception with keys: "+tH(e)}isSeverityLevel(e){return J(e)&&!Q(e)&&tB.indexOf(e)>=0}getStack(e){try{return J(e.stacktrace)&&e.stacktrace.length>0?e.stacktrace:J(e.stack)&&e.stack.length>0?e.stack:void 0}catch(e){return}}getErrorPropertyFromObject(e){for(var t in e)if(({}).hasOwnProperty.call(e,t)){var r=e[t];if(tf(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class tz{match(e){return el(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+tH(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class tW{match(e){return ea(e)}coerce(e,t){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class tG{match(e){return eo(e,"PromiseRejectionEvent")||this.isCu
3stomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!el(e))return!1;try{var t=e.detail;return null!=t&&"object"==typeof t&&"reason"in t}catch(e){return!1}}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return ea(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&null!=e.detail&&"object"==typeof e.detail&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var tV="$message",tY="$timestamp",tX=new Set([tV,tY]),tK={enabled:!0,max_bytes:32768};function tJ(e){var t;return e?{enabled:null!=(t=e.enabled)?t:tK.enabled,max_bytes:function(e,t){if(!et(e)||e===1/0||e===-1/0)return t;var r=Math.floor(e);return 0>r?t:r}(e.max_bytes,tK.max_bytes)}:y({},tK)}class tQ{constructor(e){this.Ke=[],this.Je=0,this.Ne=tJ(e)}setConfig(e){this.Ne=tJ(e),this.Xe()}add(e){var t=function(e){var t;try{t=H(e)}catch(e){return}try{var r=JSON.parse(t);if(!Y(r))return;var n=r[tV],i=r[tY];if(!J(n)||0===n.trim().length||!J(i)&&!et(i))return;return{step:r,json:t}}catch(e){return}}(e);if(t){var r=function(e){if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=encodeURIComponent(e),r=0,n=0;t.length>n;n++)"%"===t[n]?(r+=1,n+=2):r+=1;return r}(t.json);r>this.Ne.max_bytes||(this.Ke.push({step:t.step,bytes:r}),this.Je+=r,this.Xe())}}getAttachable(){return this.Ke.map(e=>e.step)}clear(){this.Ke=[],this.Je=0}size(){return this.Ke.length}Xe(){for(;this.Je>this.Ne.max_bytes&&this.Ke.length>0;){var e=this.Ke.shift();e&&(this.Je-=e.bytes)}}}var tZ=function(e,t){var r=(void 0===t?{}:t).debugEnabled,i={k(t){if(n&&(_.DEBUG||n.POSTHOG_DEBUG||r)&&!K(n.console)&&n.console){for(var i=("__rrweb_original__"in n.console[t])?n.console[t].__rrweb_original__:n.console[t],s=arguments.length,a=Array(s>1?s-1:0),o=1;s>o;o++)a[o-1]=arguments[o];i(e,...a)}},debug(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("debug",...t)},info(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("log",...t)},warn(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("warn",...t)},error(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("error",...t)},critical(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];console.error(e,...r)},uninitializedWarning(e){i.error("You must initialize PostHog before calling "+e)},createLogger:(t,r)=>tZ(e+" "+t,r)};return i},t0=tZ("[PostHog.js]"),t1=t0.createLogger,t2=t1("[ExternalScriptsLoader]"),t3=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return t2.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=null==a?void 0:a.querySelectorAll("script");if(n){for(var i,s=0;n.length>s;s++)if(i=function(){if(n[s].src===t){var e=n[s];return e.__posthog_loading_callback_fired?{v:r()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,r(void 0,t)}),e.onerror=e=>r(e),{v:void 0})}}())return i.v}var o=()=>{if(!a)return r("document not found");var n=a.createElement("script");if(n.type="text/javascript",n.crossOrigin="anonymous",n.src=t,n.onload=e=>{n.__posthog_loading_callback_fired=!0,r(void 0,e)},n.onerror=e=>r(e),e.config.prepare_external_dependency_script&&(n=e.config.prepare_external_dependency_script(n)),!n)return r("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)a.head.appendChild(n);else{var i,s=a.querySelectorAll("body > script");s.length>0?null==(i=s[0].parentNode)||i.insertBefore(n,s[0]):a.body.appendChild(n)}};null!=a&&a.body?o():null==a||a.addEventListener("DOMContentLoaded",o)};g.__PosthogExtensions__=g.__PosthogExtensions__||{},g.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{if("remote-config"!==t){var n;if(e.config.strict_script_versioning)n=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var i="/static/"+t+".js?v="+e.version;"toolbar"===t&&(i=i+"&t="+3e5*Math.floor(Date.now()/3e5)),n=e.requestRouter.endpointFor("assets",
3i)}t3(e,n,r)}else{var s=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");t3(e,s,r)}},g.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);t3(e,n,r)},_.DEBUG=!1,_.LIB_VERSION="1.414.0",_.LIB_NAME="web";var t4="$people_distinct_id",t5="$device_id",t6="$device_model",t8="__alias",t9="__timers",t7="$autocapture_disabled_server_side",re="$heatmaps_enabled_server_side",rt="$exception_capture_enabled_server_side",rr="$error_tracking_suppression_rules",rn="$error_tracking_capture_extension_exceptions",ri="$web_vitals_enabled_server_side",rs="$dead_clicks_enabled_server_side",ra="$product_tours_enabled_server_side",ro="$web_vitals_allowed_metrics",rl="$session_recording_remote_config",ru="$replay_sample_rate",rc="$replay_override_sampling",rd="$replay_override_linked_flag",rh="$replay_override_url_trigger",rp="$replay_override_event_trigger",rf="$sesid",rg="$session_is_sampled",r_="$enabled_feature_flags",rv="$active_feature_flags",rm="$early_access_features",ry="$feature_flag_details",rb="$feature_flag_payloads",rE="$feature_flag_request_id",rw="$minimal_flag_called_events",rx="$override_feature_flags",rS="$override_feature_flag_payloads",rP="$stored_person_properties",rR="$stored_group_properties",rO="$surveys",rT="$surveys_loaded_at",rk="$surveys_activated",rA="$surveys_activated_session",rI="$surveys_activated_timestamps",rC="ph_product_tours",rN="$flag_call_reported",rj="$flag_call_reported_session_id",rM="$feature_flag_errors",rL="$feature_flag_evaluated_at",rF="$user_state",rD="$client_session_props",r$="$capture_rate_limit",rU="$initial_campaign_params",rB="$initial_referrer_info",rH="$initial_person_info",rq="$epp",rz="$posthog_cookieless",rW="$cookieless_mode",rG="$sdk_debug_extensions_init_method",rV="$sdk_debug_extensions_init_time_ms",rY="$sdk_debug_recording_script_not_loaded",rX="PostHog loadExternalDependency extension not found.",rK="on_reject",rJ="always",rQ="anonymous",rZ="identified",r0="identified_only",r1="visibilitychange",r2="beforeunload",r3="$pageview",r4="$pageleave",r5="$identify",r6="$groupidentify";function r8(e,t){G(e)&&e.forEach(t)}function r9(e,t){if(!ee(e))if(G(e))e.forEach(t);else if(e instanceof FormData)e.forEach((e,r)=>t(e,r));else for(var r in e)z.call(e,r)&&t(e[r],r)}var r7=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;t>n;n++)r[n-1]=arguments[n];for(var i of r)for(var s in i)void 0!==i[s]&&(e[s]=i[s]);return e};function ne(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var nt=function(e){try{return e()}catch(e){return}},nr=function(e){return function(){try{for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,r)}catch(e){t0.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),t0.critical(e)}}},nn=function(e){var t={};return r9(e,function(e,r){(J(e)&&e.length>0||et(e))&&(t[r]=e)}),t},ni=["herokuapp.com","vercel.app","netlify.app"];function ns(e,t,r,n){var i=null!=n?n:{},s=i.capture,a=i.passive;null==e||e.addEventListener(t,r,{capture:void 0!==s&&s,passive:void 0===a||a})}function na(e){return"ph_toolbar_internal"===e.name}var no=e=>{if(a){try{for(var t=e+"=",r=a.cookie.split(";").filter(e=>e.length),n=0;r.length>n;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null}};Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return et(e)&&isFinite(e)&&Math.floor(e)===e});class nl{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,r,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||0>e||0>t||0>r||0>n||e>0xffffffffffff||t>4095||r>0x3fffffff||n>0xffffffff)throw RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/0x10000000000,i[1]=e/0x100000000,i[2]=e/0x1000000,i[3]=e/65536,i[4]=e/256,i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new nl(i)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new nl(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;16>t;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}class nu{generate(){var e=this.generateOrAbort();if(!K(e))return e;this.S=0;var t=this.generateOrAbort();if(K(t))throw Error("Could not generate UUID after timestamp reset");return t}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.C();else{if(this.S>=e+1e4)return;this.I++,this.I>0x3ffffffffff&&(this.S++,this.C())}return nl.fromFieldsV7(this.S,Math.trunc(this.I/0x40000000),0x3fffffff&this.I,this.A.nextUint32())}C(){this.I=1024*this.A.nextUint32()+(1023&this.A.nextUint32())}constructor(){this.S=0,this.I=0,this.A=new ng}}var nc,nd,nh,np,nf=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};n&&!K(n.crypto)&&crypto.getRandomValues&&(nf=e=>crypto.getRandomValues(e));
3class ng{nextUint32(){return this.R.length>this.O||(nf(this.R),this.O=0),this.R[this.O++]}constructor(){this.R=new Uint32Array(8),this.O=1/0}}var n_=()=>nv().toString(),nv=()=>(np||(np=new nu)).generate(),nm="",ny=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,nb={N:()=>!!a,j(e){t0.error("cookieStore error: "+e)},P:no,H(e){var t;try{t=JSON.parse(nb.P(e))||{}}catch(e){}return t},F(e,t,r,n,i){if(!a)return!1;try{var s="",o="",l=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=a),nm)return nm;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var r=e.split("."),n=Math.min(r.length,8),i="dmn_chk_"+n_();!nm&&n--;){var s=r.slice(n).join("."),o=i+"=1;domain=."+s+";path=/";t.cookie=o+";max-age=3",t.cookie.includes(i)&&(t.cookie=o+";max-age=0",nm=s)}return nm}(e);if(!r){var n,i=(n=e.match(ny))?n[0]:"";i!==r&&t0.info("Warning: cookie subdomain discovery mismatch",i,r),r=i}return r?"; domain=."+r:""}return""}(a.location.hostname,n);if(r){var u=new Date;u.setTime(u.getTime()+864e5*r),s="; expires="+u.toUTCString()}i&&(o="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+l+o;return c.length>3686.4&&t0.warn("cookieStore warning: large cookie, len="+c.length),a.cookie=c,!0}catch(e){return!1}},q(e,t){if(null!=a&&a.cookie)try{nb.F(e,"",-1,t)}catch(e){return}}},nE=null,nw={N(){if(!Z(nE))return nE;var e=!0;if(K(n))e=!1;else try{var t="__mplssupport__";nw.F(t,"xyz"),'"xyz"'!==nw.P(t)&&(e=!1),nw.q(t)}catch(t){e=!1}return e||t0.error("localStorage unsupported; falling back to cookie store"),nE=e,e},j(e){t0.error("localStorage error: "+e)},P(e){try{return null==n?void 0:n.localStorage.getItem(e)}catch(e){nw.j(e)}return null},H(e){try{return JSON.parse(nw.P(e))||{}}catch(e){}return null},F(e,t){try{return null==n||n.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){nw.j(e)}return!1},q(e){try{null==n||n.localStorage.removeItem(e)}catch(e){nw.j(e)}}},nx=[t5,"distinct_id",rf,rg,rq,rH,rF],nS={},nP={N:()=>!0,j(e){t0.error("memoryStorage error: "+e)},P:e=>nS[e]||null,H:e=>nS[e]||null,F:(e,t)=>(nS[e]=t,!0),q(e){delete nS[e]}},nR=null,nO={N(){if(!Z(nR))return nR;if(nR=!0,K(n))nR=!1;else try{var e="__support__";nO.F(e,"xyz"),'"xyz"'!==nO.P(e)&&(nR=!1),nO.q(e)}catch(e){nR=!1}return nR},j(e){t0.error("sessionStorage error: ",e)},P(e){try{return null==n?void 0:n.sessionStorage.getItem(e)}catch(e){nO.j(e)}return null},H(e){try{return JSON.parse(nO.P(e))||null}catch(e){}return null},F(e,t){try{return null==n||n.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(e){nO.j(e)}return!1},q(e){try{null==n||n.sessionStorage.removeItem(e)}catch(e){nO.j(e)}}};class nT{constructor(e){this._instance=e}get Ne(){return this._instance.config}get consent(){return this.ti()?0:this.ei}isOptedOut(){return this.Ne.cookieless_mode===rJ||this.isRejected()||-1===this.consent&&this.Ne.cookieless_mode===rK}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return 0===this.consent}isRejected(){return 0===this.consent||-1===this.consent&&this.Ne.opt_out_capturing_by_default}optInOut(e){this.ii.F(this.ri,+!!e,this.Ne.cookie_expiration,this.Ne.cross_subdomain_cookie,this.Ne.secure_cookie)}reset(){this.ii.q(this.ri,this.Ne.cross_subdomain_cookie)}get ri(){var e=this._instance.config,t=e.token,r=e.opt_out_capturing_cookie_prefix;return e.consent_persistence_name||(r?r+t:"__ph_opt_in_out_"+t)}get ei(){var e=this.ii.P(this.ri);return ed(e)?1:$(eh,e)?0:-1}get ii(){var e=this.Ne.opt_out_capturing_persistence_type,t="localStorage"===e?nw:nb;if(!this.ni||this.ni!==t){this.ni=t;var r="localStorage"===e?nb:nw;r.P(this.ri)&&(this.ni.P(this.ri)||this.optInOut(ed(r.P(this.ri))),r.q(this.ri,this.Ne.cross_subdomain_cookie))}return this.ni}ti(){return!!this.Ne.respect_dnt&&[null==s?void 0:s.doNotTrack,null==s?void 0:s.msDoNotTrack,g.doNotTrack].some(e=>ed(e))}}function nk(e,t){var r,n=null==e||null==(r=e.config)?void 0:r.get_current_url;if(!V(n))return t;try{var i=n(t);return J(i)&&i?i:t}catch(e){return t0.error("Error in get_current_url, falling back to window.location.href",e),t}}var nA="__POSTHOG_TOOLBAR__";function nI(e){return e instanceof Element&&(e.id===nA||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function nC(e){return!!e&&1===e.nodeType}function nN(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
3function nj(e){return!!e&&3===e.nodeType}function nM(e){return!!e&&11===e.nodeType&&nC(e.host)}function nL(e){return e?U(e).split(/\s+/):[]}function nF(e,t){var r,i,s=K(i=null==n||null==(r=n.location)?void 0:r.href)?void 0:nk(t,i);return!!(s&&e&&e.some(e=>s.match(e)))}function nD(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return nL(t)}function n$(e){return ee(e)?null:U(e).split(/(\s+)/).filter(e=>n9(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function nU(e){var t="";return n0(e)&&!n1(e)&&e.childNodes&&e.childNodes.length&&r9(e.childNodes,function(e){var r;nj(e)&&e.textContent&&(t+=null!=(r=n$(e.textContent))?r:"")}),U(t)}function nB(e){var t;return K(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}var nH=["a","button","form","input","select","textarea","label"];function nq(e,t){if(K(t))return!0;var r,n=function(e){if(t.some(t=>(function(e,t){var r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;try{return!!r&&r.call(e,t)}catch(e){return!1}})(e,t)))return{v:!0}};for(var i of e)if(r=n(i))return r.v;return!1}function nz(e){var t=e.parentNode;return!(!t||!nC(t))&&t}var nW=[".ph-no-autocapture","[data-ph-no-autocapture]"],nG=["next","previous","prev",">","<"],nV=[...nG,"+","-","−","–"],nY=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,nX=[".ph-no-rageclick",".ph-no-capture"],nK=["","text","search","email","password","url","tel","number"];function nJ(e,t){if(!n||nQ(e)||(en(t)?(i=!!t&&nX,s=void 0,a=!1):(i=null!=(o=null==t?void 0:t.css_selector_ignorelist)?o:nX,s=null==t?void 0:t.content_ignorelist,a=null!=(l=null==t?void 0:t.ignore_text_selection)&&l),!1===i)||a&&!(!(r=e)||!nC(r))&&(nN(r,"textarea")||(nN(r,"input")?$(nK,(r.getAttribute("type")||"").toLowerCase()):function(e){if(e.isContentEditable)return!0;var t=null==e.getAttribute?void 0:e.getAttribute("contenteditable");return"true"===t||""===t}(r))))return!1;var r,i,s,a,o,l,u=nZ(e,!1).targetElementList;return!function(e,t){var r;if(!1===e||K(e))return!1;if(!0===e)r=nG;else{if(!G(e))return!1;if(e.length>10)return t0.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;r=e.map(e=>e.toLowerCase())}return t.some(e=>{var t=e.safeText,n=e.ariaLabel;return r.some(e=>nY(t,e)||nY(n,e))})}(s,u.map(e=>{var t;return{safeText:nU(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!nq(u,i)}var nQ=e=>!e||nN(e,"html")||!nC(e),nZ=(e,t)=>{if(!n||nQ(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,i=[e],s=e;s.parentNode&&!nN(s,"body");)if(nM(s.parentNode))i.push(s.parentNode.host),s=s.parentNode.host;else{var a=nz(s);if(!a)break;if(t||nH.indexOf(a.tagName.toLowerCase())>-1)r=!0;else try{var o=n.getComputedStyle(a);o&&"pointer"===o.getPropertyValue("cursor")&&(r=!0)}catch(e){}i.push(a),s=a}return{parentIsUsefulElement:r,targetElementList:i}};function n0(e){for(var t=new Set,r=0,n=e;n.parentNode&&!nN(n,"body");n=n.parentNode){if(r++>=1e3||t.has(n))return!1;t.add(n);var i=nD(n);if($(i,"ph-sensitive")||$(i,"ph-no-capture"))return!1}if($(nD(e),"ph-include"))return!0;var s=e.type||"";if(J(s))switch(s.toLowerCase()){case"hidden":case"password":return!1}var a=e.name||e.id||"";return!J(a)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,""))}function n1(e){return!!(nN(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||nN(e,"select")||nN(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var n2=RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),n3=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,n4=[16,15,14,13],n5=RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$"),n6=RegExp("(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4}
3)(?=$|([^0-9]))","g"),n8=/[0-9A-Za-z_]/;function n9(e,t){return void 0===t&&(t=!0),!(ee(e)||J(e)&&(e=U(e),(t?n2.test((e||"").replace(/[- ]/g,"")):function(e){var t;for(n3.lastIndex=0;t=n3.exec(e);){var r=t[2];if(r)for(var n=r.replace(/[- ]/g,""),i=0;n.length>i;i++)for(var s of n4){var a=i+s;if(n.length>=a){var o=n.slice(i,a);if(n2.test(o)&&function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){var i=e.charCodeAt(n)-48;r&&(i*=2)>9&&(i-=9),t+=i,r=!r}return t%10==0}(o))return!0}}}return!1}(e))||(t?n5.test(e):function(e){var t;for(n6.lastIndex=0;t=n6.exec(e);){var r=t[1],n=t[3];if(!(r&&n&&n8.test(r)&&n8.test(n)))return!0}return!1}(e))))&&!0}function n7(e){var t=nU(e);return n9(t=(t+" "+function e(t){var r="";return t&&t.childNodes&&t.childNodes.length&&r9(t.childNodes,function(t){var n;if(t&&"span"===(null==(n=t.tagName)?void 0:n.toLowerCase()))try{var i=nU(t);r=(r+" "+i).trim(),t.childNodes&&t.childNodes.length&&(r=(r+" "+e(t)).trim())}catch(e){t0.error("[AutoCapture]",e)}}),r}(e)).trim())?t:""}function ie(e){return e.replace(/"|\\"/g,'\\"')}var it=t1("[Dead Clicks]"),ir=()=>!0,ii=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(rs)),n=e.instance.config.capture_dead_clicks;return en(n)?n:!!Y(n)||r};class is{get lazyLoadedDeadClicksAutocapture(){return this.si}constructor(e,t,r){this.instance=e,this.isEnabled=t,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){if(e.ok){var t=e.config;"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[rs]:t.captureDeadClicks}),this.startIfEnabledOrStop())}}startIfEnabledOrStop(){this.isEnabled(this)?this.ai(()=>{this.oi()}):this.stop()}ai(e){var t,r;null!=(t=g.__PosthogExtensions__)&&t.initDeadClicksAutocapture?e():null==(r=g.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?it.error("failed to load script",t):e()})}oi(){var e;if(a){if(!this.si&&null!=(e=g.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=Y(this.instance.config.capture_dead_clicks)?y({},this.instance.config.capture_dead_clicks):{};t.__onCapture=this.onCapture,this.onCapture&&(t.capture_dead_swipes=!1),this.si=g.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.si.start(a),it.info("starting...")}}else it.error("`document` not found. Cannot start.")}stop(){this.si&&(this.si.stop(),this.si=void 0,it.info("stopping..."))}}var ia=t1("[SegmentIntegration]"),io="posthog-js";function il(e,t){var r=void 0===t?{}:t,n=r.organization,i=r.projectId,s=r.prefix,a=r.severityAllowList,o=void 0===a?["error"]:a,l=r.sendExceptionsToPostHog,u=void 0===l||l;return t=>{if("*"!==o&&!o.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var r=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=r,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var a,l,c,d,h,p,f=(null==(a=t.exception)?void 0:a.values)||[],g=f.map(e=>y({},e,{stacktrace:e.stacktrace?y({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>y({},e,{platform:"web:javascript"}))}):void 0})),_={$exception_message:(null==(l=f[0])?void 0:l.value)||t.message,$exception_type:null==(c=f[0])?void 0:c.type,$exception_level:t.level,$exception_list:g,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(d=f[0])?void 0:d.value)||t.message,$sentry_exception_type:null==(h=f[0])?void 0:h.type,$sentry_tags:t.tags};return n&&i&&(_.$sentry_url=(s||"https://sentry.io/organizations/")+n+"/issues/?project="+i+"&query="+t.event_id),u&&(null==(p=e.exceptions)||p.sendExceptionEvent(_)),t}}class iu{constructor(e,t,r,n,i,s){this.name=io,this.setupOnce=function(a){a(il(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==s||s}))}}}class ic{constructor(e){this.li=(e,t,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength||r.crossTabAdoption)&&(t0.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:r}),this.ui=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.hi()}hi(){var e;this.di=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.li)}destroy(){var e;null==(e=this.di)||e.call(this),this.di=void 0}doPageView(e,t){var r,i=this.vi(e,t);return this.ui={pathname:null!=(r=null==n?void 0:n.location.pathname)?r:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var t;return this.vi(e,null==(t=this.ui)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.ui)?void 0:e.pageViewId}}vi(e,t){var r=this.ui;if(!r)return{$pageview_id:t};var n={$pageview_id:t,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var s=i.maxScrollHeight,a=i.lastScrollY,o=i.maxScrollY,l=i.maxContentHeight,u=i.lastContentY,c=i.maxContentY;if(!(K(s)||K(a)||K(o)||K(l)||K(u)||K(c))){s=Math.ceil(s),a=Math.ceil(a),o=Math.ceil(o),l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c);var d=s>1?ep(a/s,0,1,t0):1,h=s>1?ep(o/s,0,1,t0):1,p=l>1?ep(u/l,0,1,t0):1,f=l>1?ep(c/l,0,1,t0):1;n=r7(n,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:o,$prev_pageview_max_scroll_percentage:h,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:c,$prev_pageview_max_content_percentage:f})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var id=["flags","surveys"],ih={[t4]:{exposure:"hidden"},[t8]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[t9]:{exposure:"hidden"},[t7]:{exposure:"event"},[re]:{exposure:"hidden"},[rt]:{exposure:"event"},[rr]:{exposure:"hidden"},[rn]:{exposure:"event"},[ri]:{exposure:"event"},[rs]:{exposure:"event"},[ra]:{exposure:"hidden"},[ro]:{exposure:"event"},[rl]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[rf]:{exposure:"hidden"},[rg]:{exposure:"event"},[ru]:{exposure:"event",shouldSkipFromEventProperties:e=>Z(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[r_]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Y(e))return{};for(var t={},r=Object.keys(e),n=0;r.length>n;n++)t["$feature/"+r[n]]=e[r[n]];return t}},[rv]:{exposure:"event",storageGroup:"flags"},[rm]:{exposure:"hidden"},[ry]:{exposure:"hidden",storageGroup:"flags"},[rb]:{exposure:"event",storageGroup:"flags"},[rE]:{exposure:"event",storageGroup:"flags",volatile:!0},[rw]:{exposure:"hidden",storageGroup:"flags"},[rx]:{exposure:"event"},[rS]:{exposure:"hidden"},[rP]:{exposure:"hidden"}
3,[rR]:{exposure:"hidden"},[rO]:{exposure:"hidden",storageGroup:"surveys"},[rT]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[rk]:{exposure:"event"},[rA]:{exposure:"hidden"},[rI]:{exposure:"hidden"},[rC]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$product_tours_activated_session:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[rN]:{exposure:"hidden"},[rj]:{exposure:"hidden"},[rM]:{exposure:"hidden"},[rL]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[rF]:{exposure:"hidden"},[rD]:{exposure:"hidden"},[r$]:{exposure:"hidden"},[rU]:{exposure:"hidden"},[rB]:{exposure:"hidden"},[rH]:{exposure:"hidden"},[rq]:{exposure:"hidden"},[rc]:{exposure:"event"},[rd]:{exposure:"event"},[rh]:{exposure:"event"},[rp]:{exposure:"event"},[rG]:{exposure:"event"},[rV]:{exposure:"event"},[rY]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},ip=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],ig=e=>{var t=ih[e];if(t)return t;for(var r of ip){var n=r[1];if(0===e.indexOf(r[0]))return n}},i_=(e,t)=>{try{return JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t)}catch(t){return H(e)}},iv=e=>{var t=null==a?void 0:a.createElement("a");return K(t)?null:(t.href=e,t)},im=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;n.length>i;i++){var s=n[i].split("=");if(s[0]===t){r=s;break}}if(!G(r)||2>r.length)return"";var a=r[1];try{a=decodeURIComponent(a)}catch(e){t0.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},iy=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),i=n[1],s=(n[0]||"").split("?"),a=s[1],o=s[0],l=(a||"").split("&"),u=[],c=0;l.length>c;c++){var d=l[c].split("=");G(d)&&(t.includes(d[0])?u.push(d[0]+"="+r):u.push(l[c]))}var h=o;return null!=a&&(h+="?"+u.join("&")),null!=i&&(h+="#"+i),h},ib=function(e,t){var r=e.match(RegExp(t+"=([^&]*)"));return r?r[1]:null},iE=(e,t)=>e>=t&&p(),iw=(e,t,r,n)=>{if(0===e){if(p()){var i=t+1;return i===r&&n(),i}return t}return 0},ix="https?://(.*)",iS=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],iP=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...iS],iR="<masked>",iO=["li_fat_id"];function iT(e,t,r){if(!a)return{};var n,i=t?[...iS,...r||[]]:[],s=ik(iy(a.URL,i,iR),e);return r7((n={},r9(iO,function(e){var t=no(e);n[e]=t||null}),n),s)}function ik(e,t){var r=iP.concat(t||[]),n={};return r9(r,function(t){var r=im(e,t);n[t]=r||null}),n}function iA(e){var t=e?0===e.search(ix+"google.([^/?]*)")?"google":0===e.search(ix+"bing.com")?"bing":0===e.search(ix+"yahoo.com")?"yahoo":0===e.search(ix+"duckduckgo.com")?"duckduckgo":null:null,r={};if(!Z(t)){r.$search_engine=t;var n=a?im(a.referrer,"yahoo"!=t?"q":"p"):"";n.length&&(r.ph_keyword=n)}return r}function iI(){return navigator.language||navigator.userLanguage}var iC="$direct";function iN(){return(null==a?void 0:a.referrer)||iC}function ij(e,t,r){void 0===r&&(r=!1);var n=e?[...iS,...t||[]]:[],i=r?tc(null==o?void 0:o.href):null==o?void 0:o.href,s=null==i?void 0:i.substring(0,1e3);return{r:iN().substring(0,1e3),u:s?iy(s,n,iR):void 0}}function iM(e,t){void 0===t&&(t=!1);var r,n=e.r,i=e.u,s=t?tc(i):i,a={$referrer:n,$referring_domain:null==n?void 0:n==iC?iC:null==(r=iv(n))?void 0:r.host};if(s){a.$current_url=s;var o=iv(s);a.$host=null==o?void 0:o.host,a.$pathname=null==o?void 0:o.pathname,r7(a,ik(s))}return n&&r7(a,iA(n)),a}function iL(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var iF={flags:rL,surveys:rT}
3,iD=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],i$="main";class iU{constructor(e,t,r){if(void 0===r&&(r=!0),this.ci={},this.fi=!1,this.pi=!1,this.Ne=e,this.gi=r,this.props={},this.mi=void 0,this.yi=(e=>{var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"})(e),this.ii=this.bi(e),this.pi=this.wi(e),this.load(),e.debug&&t0.info("Persistence loaded",e.persistence,y({},this.props)),this.update_config(e,e,t),this.save(),n){var i=()=>this.flush();ns(n,"beforeunload",i,{capture:!1}),ns(n,"pagehide",i,{capture:!1})}}ki(){var e,t=null==(e=this.Ne)?void 0:e.persistence_save_debounce_ms;return et(t)&&t>0?t:0}isDisabled(){return!!this.xi}bi(e){-1===iD.indexOf(e.persistence.toLowerCase())&&(t0.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,r,i,s,a=(t=e.cookie_persisted_properties||[],r=e.__preview_cookie_wins_on_conflict||!1,void 0===t&&(t=[]),void 0===r&&(r=!1),i=[...nx,...t],y({},nw,{H(e){try{var t={};try{t=nb.H(e)||{}}catch(e){}var n,i=JSON.parse(nw.P(e)||"{}");if(r){var s={};for(var a in t){var o=t[a];Z(o)||""===o||(s[a]=o)}n=r7(i,s)}else n=r7(t,i);return nw.F(e,n),n}catch(e){}return null},F(e,t,r,n,s,a){var o=nw.F(e,t,void 0,void 0,a);try{var l={};i.forEach(e=>{t[e]&&(l[e]=t[e])}),Object.keys(l).length&&nb.F(e,l,r,n,s,a)}catch(e){nw.j(e)}return o},q(e,t){try{null==n||n.localStorage.removeItem(e),nb.q(e,t)}catch(e){nw.j(e)}}})),o=!1,l=e.persistence.toLowerCase();return"localstorage"===l&&nw.N()?(s=nw,o=!0):"localstorage+cookie"===l&&a.N()?(s=a,o=!0):"sessionstorage"===l&&nO.N()?s=nO:"memory"===l?s=nP:"cookie"===l?s=nb:a.N()?(s=a,o=!0):s=nb,this.fi=o,s}Si(e){return this.yi+"__"+e}wi(e){return this.fi&&!!e.split_storage}Ci(e){var t=null!=e?e:this.Ne.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var r=this.props[rL];return!r||"number"!=typeof r||Date.now()-r>t}properties(){var e={};return r9(this.props,(t,r)=>{var n=ig(r);if("derived"===(null==n?void 0:n.exposure)){if(null!=n.shouldSkipFromEventProperties&&n.shouldSkipFromEventProperties(t,r===r_?()=>this.Ci():()=>!1))return;n.transformToEventProperties&&r7(e,n.transformToEventProperties(t))}else if(!n||"event"===n.exposure){if(null!=n&&null!=n.shouldSkipFromEventProperties&&n.shouldSkipFromEventProperties(t,()=>!1))return;e[r]=t}}),e}load(){if(!this.xi){var e=this.ii.H(this.yi);e&&(this.props=r7({},e)),this.pi&&this.Mi()}}Mi(){for(var e of id){var t=nw.H(this.Si(e));if(t&&!X(t)){var r=this.Ti(e);r.persisted=!0,this.Ei(e)||(r.fingerprint=this.Ii(t,e)),this.Pi(e,t)||r7(this.props,t)}}}Ei(e){return Object.keys(this.props).some(t=>{var r;return(null==(r=ig(t))?void 0:r.storageGroup)===e})}Pi(e,t){var r=iF[e];if(!r)return!1;var n=t[r],i=this.props[r];return et(n)&&et(i)&&i>n}refreshKey(e){var t;if(!this.xi){var r=this.pi?null==(t=ig(e))?void 0:t.storageGroup:void 0,n=r?nw.H(this.Si(r)):this.ii.H(this.yi);if(n&&e in n)this.Ri(e,n[e]);else{if(r){var i=this.ii.H(this.yi);if(i&&e in i)return void this.Ri(e,i[e])}this.Ai(e)}}}save(){if(!this.xi){var e=this.ki();e>0?K(this.Fi)&&(this.Fi=setTimeout(()=>{this.Fi=void 0,this.Li()},e)):this.Li()}}flush(){K(this.Fi)||(clearTimeout(this.Fi),this.Fi=void 0,this.Li())}Li(){this.xi||(this.pi?this.Oi():this.Di(this.ii,this.yi,this.props,i$))}Oi(){var e=this.$i(),t=e.main,r=e.groups;for(var n of(this.Di(this.ii,this.yi,t,i$),id)){var i,s=r[n];(!X(s)||null!=(i=this.ci[n])&&i.persisted)&&this.Di(nw,this.Si(n),s,n)}}$i(){var e={},t={flags:{},surveys:{}};return r9(this.props,(r,n)=>{var i,s=null==(i=ig(n))?void 0:i.storageGroup;s?t[s][n]=r:e[n]=r}),{main:e,groups:t}}Ii(e,t){if(t===i$)return JSON.stringify(e)+"|"+this.Ni+"|"+this.qi+"|"+this.ji;var r={};return r9(e,(e,t)=>{var n;r[t]=null!=(n=ig(t))&&n.volatile?"__volatile__":e}),JSON.stringify(r)}Di(e,t,r,n){var i,s=this.Ti(n);if(n===i$||s.dirty||K(s.fingerprint)){try{if((i=this.Ii(r,n))===s.fingerprint)return void(s.dirty=!1)}catch(e){i=void 0}e.F(t,r,this.Ni,this.qi,this.ji,this.Ne.debug)?(s.dirty=!1,n!==i$&&(s.persisted=!0),K(i)||(s.fingerprint=i)):this.Ne.debug&&t0.warn('failed to persist storage entry "'+t+'"; will retry on next save')}}remove(e){var t=(void 0===e?{}:e).keepGroupEntries,r=void 0!==t&&t;if(K(this.Fi)||(clearTimeout(this.Fi),this.Fi=void 0),this.ii.q(this.yi,!1),this.ii.q(this.yi,!0),!r&&this.gi)for(var n of id)nw.q(this.Si(n));r?delete this.ci[i$]:this.ci={}}clear(){this.remove(),this.props={}}register_once(e,t,r){if(Y(e)){K(t)&&(t="None"),this.Ni=K(r)?this.Bi:r;var n=!1;if(r9(e,(e,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.Ri(r,e),n=!0)}),n)return this.save(),!0}return!1}register(e,t){if(Y(e)){this.Ni=K(t)?this.Bi:t;var r=!1;if(r9(e,(t,n)=>{e.hasOwnProperty(n)&&(this.props[n]!==t||Y(t)||G(t))&&(this.Ri(n,t),r=!0)}),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Ai(e),this.save())}update_campaign_params(){var e=null==a?void 0:a.URL;if(e!==this.mi){var t=iT(this.Ne.custom_campaign_params,this.Ne.mask_personal_data_properties,this.Ne.custom_personal_data_properties);X(nn(t))||this.register(t),this.mi=e}}update_search_keyword(){var e;this.register((e=null==a?void 0:a.referrer)?iA(e):{})}update_referrer_info(){var e;this.register_once({$referrer:iN(),$referring_domain:null!=a&&a.referrer&&(null==(e=iv(a.referrer))?void 0:e.host)||iC},void 0)}set_initial_person_info(){this.props[rU]||this.props[rB]||this.register_once({[rH]:ij(this.Ne.mask_personal_data_properties,this.Ne.custom_personal_data_properties,this.Ne.disable_capture_url_hashes
3)},void 0)}get_initial_props(){var e,t,r,n={};r9([rB,rU],e=>{var t=this.props[e];t&&r9(t,function(e,t){n["$initial_"+B(t)]=e})});var i=this.props[rH];return i&&r7(n,(void 0===(e=this.Ne.disable_capture_url_hashes)&&(e=!1),t=iM(i,e),r={},r9(t,function(e,t){r["$initial_"+B(t)]=e}),r)),n}safe_merge(e){return r9(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){this.Bi=this.Ni=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var n=e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var r=[...e].sort(),n=[...t].sort();return r.every((e,t)=>e===n[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[]),i=n?this.bi(e):this.ii,s=this.wi(e);if(n||s!==this.pi){var a=this.props;this.clear(),this.ii=i,this.pi=s,this.props=a,this.save()}}set_disabled(e){this.xi=e,this.xi?this.remove():this.save()}set_cross_subdomain(e){e!==this.qi&&(this.qi=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.ji&&(this.ji=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,t){var r=this.props[t9]||{};r[e]=t,this.Ri(t9,r),this.save()}remove_event_timer(e){var t=this.props[t9]||{},r=t[e];return K(r)||(delete t[e],this.Ri(t9,t),this.save()),r}get_property(e){return this.props[e]}set_property(e,t){this.Ri(e,t),this.save()}Ri(e,t){var r;this.props[e]=t,null!=(r=ig(e))&&r.volatile||this.Hi(e)}Ai(e){delete this.props[e],this.Hi(e)}Hi(e){var t,r=null==(t=ig(e))?void 0:t.storageGroup;r&&(this.Ti(r).dirty=!0)}Ti(e){return this.ci[e]||(this.ci[e]={})}}function iB(e){var t=!0;return{dispose(){if(t){t=!1;var r=e();r&&V(r.then)&&r.then(void 0,()=>{})}}}}var iH={GZipJS:"gzip-js",Base64:"base64"},iq={Activation:"events",Cancellation:"cancelEvents"},iz={Popover:"popover",API:"api",Widget:"widget"},iW={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},iG={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},iV={Popover:"popover",Inline:"inline"},iY={SHOWN:"product tour shown"},iX={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},iK=t1("[RateLimiter]");class iJ{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{iK.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void iK.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){void 0===e&&(e=!1);var t,r,n,i=this.captureEventsBurstLimit,s=this.captureEventsPerSecond,a=(new Date).getTime(),o=null!=(t=null==(r=this.instance.persistence)?void 0:r.get_property(r$))?t:{tokens:i,last:a};o.tokens+=(a-o.last)/1e3*s,o.last=a,o.tokens>i&&(o.tokens=i);var l=1>o.tokens;if(l||e||(o.tokens=Math.max(0,o.tokens-1)),l&&!e){var u=(et(o.dropped)?o.dropped:0)+1;o.dropped=u,!this.lastEventRateLimited&&this.Ui(u)&&(o.dropped=0)}return this.lastEventRateLimited=l,null==(n=this.instance.persistence)||n.set_property(r$,o),{isRateLimited:l,remainingTokens:o.tokens}}zi(e){var t=this.instance.config.property_denylist;return!G(t)||!t.includes(e)}Wi(){var e;if(this.zi("$current_url")&&this.zi("$pathname")&&null!=o&&o.pathname)return""+(null!=(e=o.origin)?e:"")+o.pathname}Ui(e){var t,r,n=this.captureEventsBurstLimit,i=this.captureEventsPerSecond,s=this.Wi(),a=this.zi("$session_id")?null==(t=(r=this.instance).get_session_id)?void 0:t.call(r):void 0,o=[e+" event(s) dropped since the last warning",s?"triggered on "+s:void 0,a?"session "+a:void 0].filter(
vendor: 5,707 bytes, line 3
3Boolean).join(", ");return!!this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited: "+o+". Config is set to "+i+" events per second and "+n+" events burst limit."},{skip_client_rate_limiting:!0})}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var iQ=t1("[RemoteConfig]");class iZ{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=g._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}Vi(e){var t,r;null!=(t=g.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=g.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}Zi(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:e})}load(){try{if(this.remoteConfig)return iQ.info("Using preloaded remote config",this.remoteConfig),this.Gi(this.remoteConfig),void this.Qi();if(this._instance.Ki())return void iQ.warn("Remote config is disabled. Falling back to local config.");this.Vi(e=>{if(!e)return iQ.info("No config found after loading remote JS config. Falling back to JSON."),void this.Zi(e=>{this.Gi(e.json,e),this.Qi()});this.Gi(e),this.Qi()})}catch(e){iQ.error("Error loading remote config",e),this.Gi()}}stop(){this.Ji&&(clearInterval(this.Ji),this.Ji=void 0)}refresh(){!this._instance.Ki()&&a&&"hidden"!==a.visibilityState&&this._instance.reloadFeatureFlags()}Qi(){var e;if(!this.Ji){var t=null!=(e=this._instance.config.remote_config_refresh_interval_ms)?e:3e5;0!==t&&(this.Ji=setInterval(()=>{this.refresh()},t))}}Gi(e,t){!e&&t&&(0===t.statusCode?t.error||iQ.warn("Failed to fetch remote config from PostHog."):iQ.error("Failed to fetch remote config from PostHog."));try{this._instance.Gi(e?{ok:!0,config:e}:{ok:!1})}catch(e){iQ.error("Error applying remote config",e)}if(!1!==(null==e?void 0:e.hasFeatureFlags)&&!this._instance.config.advanced_disable_feature_flags_on_first_load)try{var r;null==(r=this._instance.featureFlags)||r.ensureFlagsLoaded()}catch(e){iQ.error("Error loading feature flags",e)}}}var i0=Uint8Array,i1=Uint16Array,i2=Uint32Array,i3=new i0([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]),i4=new i0([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]),i5=new i0([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i6=function(e,t){for(var r=new i1(31),n=0;31>n;++n)r[n]=t+=1<<e[n-1];var i=new i2(r[30]);for(n=1;30>n;++n)for(var s=r[n];r[n+1]>s;++s)i[s]=s-r[n]<<5|n;return[r,i]},i8=i6(i3,2),i9=i8[1];i8[0][28]=258,i9[258]=28;for(var i7=i6(i4,0)[1],se=new i1(32768),st=0;32768>st;++st){var sr=(43690&st)>>>1|(21845&st)<<1;se[st]=((65280&(sr=(61680&(sr=(52428&sr)>>>2|(13107&sr)<<2))>>>4|(3855&sr)<<4))>>>8|(255&sr)<<8)>>>1}var sn=function(e,t,r){for(var n=e.length,i=0,s=new i1(t);n>i;++i)++s[e[i]-1];var a,o=new i1(t);for(i=0;t>i;++i)o[i]=o[i-1]+s[i-1]<<1;if(r){a=new i1(1<<t);var l=15-t;for(i=0;n>i;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=o[e[i]-1]++<<c,h=d|(1<<c)-1;h>=d;++d)a[se[d]>>>l]=u}else for(a=new i1(n),i=0;n>i;++i)a[i]=se[o[e[i]-1]++]>>>15-e[i];return a},si=new i0(288);for(st=0;144>st;++st)si[st]=8;for(st=144;256>st;++st)si[st]=9;for(st=256;280>st;++st)si[st]=7;for(st=280;288>st;++st)si[st]=8;var ss=new i0(32);for(st=0;32>st;++st)ss[st]=5;var sa=sn(si,9,0),so=sn(ss,5,0),sl=function(e){return(e/8|0)+(7&e&&1)},su=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof i1?i1:e instanceof i2?i2:i0)(r-t);return n.set(e.subarray(t,r)),n},sc=function(e,t,r){var n=t/8|0;e[n]|=r<<=7&t,e[n+1]|=r>>>8},sd=function(e,t,r){var n=t/8|0;e[n]|=r<<=7&t,e[n+1]|=r>>>8,e[n+2]|=r>>>16},sh=function(e,t){for(var r=[],n=0;e.length>n;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,s=r.slice();if(!i)return[new i0(0),0];if(1==i){var a=new i0(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=i-1;)o=r[r[d].f>r[u].f?u++:d++],l=r[u!=c&&r[d].f>r[u].f?u++:d++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};var h=s[0].s;for(n=1;i>n;++n)s[n].s>h&&(h=s[n].s);var p=new i1(h+1),f=sp(r[c-1],p,0);if(f>t){n=0;var g=0,_=f-t,v=1<<_;for(s.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});i>n;++n){var m=s[n].s;if(t>=p[m])break;g+=v-(1<<f-p[m]),p[m]=t}for(g>>>=_;g>0;){var y=s[n].s;t>p[y]?g-=1<<t-p[y]++-1:++n}for(;n>=0&&g;--n){var b=s[n].s;p[b]==t&&(--p[b],++g)}f=t}return[new i0(p),f]},sp=function(e,t,r){return -1==e.s?Math.max(sp(e.l,t,r+1),sp(e.r,t,r+1)):t[e.s]=r},sf=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new i1(++t),n=0,i=e[0],s=1,a=function(e){r[n++]=e},o=1;t>=o;++o)if(e[o]==i&&o!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(i),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(i);s=1,i=e[o]}return[r.subarray(0,n),t]},sg=function(e,t){for(var r=0,n=0;t.length>n;++n)r+=e[n]*t[n];return r},s_=function(e,t,r){var n=r.length,i=sl(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;n>s;++s)e[i+s+4]=r[s];return 8*(i+4+n)},sv=function(e,t,r,n,i,s,a,o,l,u,c){sc(t,c++,r),++i[256];for(var d=sh(i,15),h=d[0],p=d[1],f=sh(s,15),g=f[0],_=f[1],v=sf(h),m=v[0],y=v[1],b=sf(g),E=b[0],w=b[1],x=new i1(19),S=0;m.length>S;++S)x[31&m[S]]++;for(S=0;E.length>S;++S)x[31&E[S]]++;for(var P=sh(x,7),R=P[0],O=P[1],T=19;T>4&&!R[i5[T-1]];--T);var k,A,I,C,N=u+5<<3,j=sg(i,si)+sg(s,ss)+a,M=sg(i,h)+sg(s,g)+a+14+3*T+sg(x,R)+(2*x[16]+3*x[17]+7*x[18]);if(j>=N&&M>=N)return s_(t,c,e.subarray(l,l+u));if(sc(t,c,1+(j>
3M)),c+=2,j>M){k=sn(h,p,0),A=h,I=sn(g,_,0),C=g;var L=sn(R,O,0);for(sc(t,c,y-257),sc(t,c+5,w-1),sc(t,c+10,T-4),c+=14,S=0;T>S;++S)sc(t,c+3*S,R[i5[S]]);c+=3*T;for(var F=[m,E],D=0;2>D;++D){var $=F[D];for(S=0;$.length>S;++S)sc(t,c,L[U=31&$[S]]),c+=R[U],U>15&&(sc(t,c,$[S]>>>5&127),c+=$[S]>>>12)}}else k=sa,A=si,I=so,C=ss;for(S=0;o>S;++S)if(n[S]>255){sd(t,c,k[257+(U=n[S]>>>18&31)]),c+=A[U+257],U>7&&(sc(t,c,n[S]>>>23&31),c+=i3[U]);var U,B=31&n[S];sd(t,c,I[B]),c+=C[B],B>3&&(sd(t,c,n[S]>>>5&8191),c+=i4[B])}else sd(t,c,k[n[S]]),c+=A[n[S]];return sd(t,c,k[256]),c+A[256]},sm=new i2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),sy=function(){for(var e=new i2(256),t=0;256>t;++t){for(var r=t,n=9;--n;)r=(1&r&&0xedb88320)^r>>>1;e[t]=r}return e}(),sb=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},sE=!!u||!!l,sw="text/plain",sx=!1,sS=(e,t)=>{var r=e.split("#"),n=r[1],i=r[0].split("?"),s=i[0],a=i[1];if(!a)return e;var o=a.split("&").filter(e=>e.split("=")[0]!==t).join("&");return s+(o?"?"+o:"")+(n?"#"+n:"")},sP=function(e,t,r){void 0===r&&(r=!0);var n,i,s,a,o,l=e.split("?"),u=l[0],c=l[1],d=y({},t),h=null!=(o=null==c?void 0:c.split("&").map(e=>{var t,n=e.split("="),i=n[0],s=r&&null!=(t=d[i])?t:n[1];return delete d[i],i+"="+s}))?o:[],p=(void 0===n&&(n="&"),a=[],r9(d,function(e,t){K(e)||K(t)||"undefined"===t||(i=encodeURIComponent(e instanceof File?e.name:e.toString()),s=encodeURIComponent(t),a[a.length]=s+"="+i)}),a.join(n));return p&&h.push(p),h.length>0?u+"?"+h.join("&"):u},sR=e=>{if(e.Yi)return e.Yi;var t=e.data,r=e.compression;if(t){if(r===iH.GZipJS){var n=function(e,t){void 0===t&&(t={});var r=(i=0xffffffff,{p(e){for(var t=i,r=0;e.length>r;++r)t=sy[255&t^e[r]]^t>>>8;i=t},d:()=>0xffffffff^i}),n=e.length;r.p(e);var i,s,a,o,l=(o=10+((s=t).filename&&s.filename.length+1||0),function(e,t,r,n,i,s){var a=e.length,o=new i0(n+a+5*(1+Math.floor(a/7e3))+8),l=o.subarray(n,o.length-8),u=0;if(!t||8>a)for(var c=0;a>=c;c+=65535){var d=c+65535;a>d?u=s_(l,u,e.subarray(c,d)):(l[c]=!0,u=s_(l,u,e.subarray(c,a)))}else{for(var h=sm[t-1],p=h>>>13,f=8191&h,g=(1<<r)-1,_=new i1(32768),v=new i1(g+1),m=Math.ceil(r/3),y=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<y)&g},E=new i2(25e3),w=new i1(288),x=new i1(32),S=0,P=0,R=(c=0,0),O=0,T=0;a>c;++c){var k=b(c),A=32767&c,I=v[k];if(_[A]=I,v[k]=A,c>=O){var C=a-c;if((S>7e3||R>24576)&&C>423){u=sv(e,l,0,E,w,x,P,R,T,c-T,u),R=S=P=0,T=c;for(var N=0;286>N;++N)w[N]=0;for(N=0;30>N;++N)x[N]=0}var j=2,M=0,L=f,F=A-I&32767;if(C>2&&k==b(c-F))for(var D=Math.min(p,C)-1,$=Math.min(32767,c),U=Math.min(258,C);$>=F&&--L&&A!=I;){if(e[c+j]==e[c+j-F]){for(var B=0;U>B&&e[c+B]==e[c+B-F];++B);if(B>j){if(j=B,M=F,B>D)break;var H=Math.min(F,B-2),q=0;for(N=0;H>N;++N){var z=c-F+N+32768&32767,W=z-_[z]+32768&32767;W>q&&(q=W,I=z)}}}F+=(A=I)-(I=_[A])+32768&32767}if(M){E[R++]=0x10000000|i9[j]<<18|i7[M];var G=31&i9[j],V=31&i7[M];P+=i3[G]+i4[V],++w[257+G],++x[V],O=c+j,++S}else E[R++]=e[c],++w[e[c]]}}u=sv(e,l,!0,E,w,x,P,R,T,c-T,u)}return su(o,0,n+sl(u)+i)}(e,null==(a=t).level?6:a.level,null==a.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+a.mem,o,8)),u=l.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:2*(9==t.level),e[9]=3,0!=t.mtime&&sb(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;r.length>=n;++n)e[n+10]=r.charCodeAt(n)}}(l,t),sb(l,u-8,r.d()),sb(l,u-4,n),l}(function(e,t){var r=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new i0(e.length+(e.length>>>1)),i=0,s=function(e){n[i++]=e},a=0;r>a;++a){if(i+5>n.length){var o=new i0(i+8+(r-a<<1));o.set(n),n=o}var l=e.charCodeAt(a);128>l?s(l):(2048>l?s(192|l>>>6):(l>55295&&57344>l?(s(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++a))>>>18),s(128|l>>>12&63)):s(224|l>>>12),s(128|l>>>6&63)),s(128|63&l))}return su(n,0,i)}(i_(t)),{mtime:0});return{contentType:sw,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(r===iH.Base64){var i=(e=>"data="+encodeURIComponent("string"==typeof e?e:i_(e)))(function(e){return e?btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>
3String.fromCharCode(parseInt(t,16)))):e}(i_(t)));return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var s=i_(t);return{contentType:"application/json",body:s,estimatedSize:new Blob([s]).size}}},sO=e=>{var t,r,n=()=>"sendBeacon"===e.transport?{url:sP(e.url,{compression:iH.Base64}),encodedBody:sR(y({},e,{compression:iH.Base64,Yi:void 0}))}:{url:sS(e.url,"compression"),encodedBody:sR(y({},e,{compression:void 0,Yi:void 0}))};try{t=sR(e)}catch(t){if(C(e.compression,im(e.url,"compression")))return t0.error("Failed to gzip request body, sending uncompressed payload",t),n();throw t}return!(t&&C(e.compression,im(e.url,"compression")))||((r=t.body)instanceof ArrayBuffer?I(new Uint8Array(r)):ArrayBuffer.isView(r)&&I(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)))?{url:e.url,encodedBody:t}:(sx=!0,n())},sT=e=>{try{return sO(e)}catch(t){return t0.error(t),void(null==e.callback||e.callback({statusCode:0,error:t}))}},sk=function(){var e=m(function*(e){var t=i_(e.data),r=yield function(e,t,r){return L.apply(this,arguments)}(t,_.DEBUG,{rethrow:!0});if(!r)return e;var n=yield r.arrayBuffer();return y({},e,{Yi:{contentType:sw,body:n,estimatedSize:n.byteLength}})});return function(t){return e.apply(this,arguments)}}(),sA=/Failed to fetch|NetworkError|Load failed/i,sI=e=>"TypeError"===(null==e?void 0:e.name)&&sA.test((null==e?void 0:e.message)||""),sC=e=>{var t=sT(e);if(t){var r,n=t.url,i=t.encodedBody,s=null!=i?i:{},a=s.contentType,o=s.body,u=s.estimatedSize,d=new Headers;r9(e.headers,function(e,t){d.append(t,e)}),a&&d.append("Content-Type",a);var h=null,p=!1;if(c){var f=new c;h={signal:f.signal,timeout:setTimeout(()=>{var t,r;p=!0,f.abort(((r=Error("PostHog request timed out"+((t=e.timeout)?" after "+t+"ms":""))).name="AbortError",r))},e.timeout)}}var g=t=>{p&&"AbortError"===(null==t?void 0:t.name)||sI(t)?t0.warn(t):t0.error(t),null==e.callback||e.callback({statusCode:0,error:t})};try{l(n,y({method:(null==e?void 0:e.method)||"GET",headers:d,keepalive:"POST"===e.method&&!e.Xi&&52428.8>(u||0),body:o,signal:null==(r=h)?void 0:r.signal},e.fetchOptions)).then(t=>t.text().then(r=>{var n={statusCode:t.status,text:r};if(200===t.status)try{n.json=JSON.parse(r)}catch(e){t0.error(e)}null==e.callback||e.callback(n)})).catch(g).finally(()=>h?clearTimeout(h.timeout):null)}catch(e){h&&clearTimeout(h.timeout),g(e)}}},sN=e=>{try{var t,r=sO(e),n=r.url,i=r.encodedBody,a=null!=i?i:{},o=a.body,l=a.estimatedSize;if(!o)return;var u=o instanceof Blob?o:new Blob([o],{type:a.contentType});if(s.sendBeacon(n,u))return;var c=G(e.data)?e.data:null==(t=e.data)?void 0:t.batch;if(G(c)&&c.length>1&&(null!=l?l:0)>16384){var d=Math.ceil(c.length/2),h=t=>G(e.data)?t:y({},e.data,{batch:t});return sN(y({},e,{data:h(c.slice(0,d))})),void sN(y({},e,{data:h(c.slice(d))}))}t0.warn("Beacon of ~"+(null!=l?l:0)+" bytes was rejected by the browser, falling back to fetch"),sC(y({},e,{Xi:!0}))}catch(e){t0.warn("Beacon send failed",e)}},sj=(e,t,r,n)=>{var i="query"===n?"POST"===t?"sent_at":"_":void 0;return sP(r===iH.GZipJS?sS(e,"compression"):e,y({},i?{[i]:Date.now().toString()}:{},r===iH.GZipJS?{}:{compression:r}))},sM=[];l&&sM.push({transport:"fetch",method:sC}),u&&sM.push({transport:"XHR",method(e){var t=sT(e);if(t){var r=new u,n=t.encodedBody;r.open(e.method||"GET",t.url,!0);var i=null!=n?n:{},s=i.contentType,a=i.body;r9(e.headers,function(e,t){r.setRequestHeader(t,e)}),s&&r.setRequestHeader("Content-Type",s),e.timeout&&(r.timeout=e.timeout),r.onreadystatechange=()=>{if(4===r.readyState){var t={statusCode:r.status,text:r.responseText};if(200===r.status)try{t.json=JSON.parse(r.responseText)}catch(e){}null==e.callback||e.callback(t)}},r.send(a)}}}),null!=s&&s.sendBeacon&&sM.push({transport:"sendBeacon",method:sN});class sL{constructor(e,t){this.tr=!0,this.er=[],this.ir=ep((null==t?void 0:t.flush_interval_ms)||3e3,250,5e3,t0.createLogger("flush interval"),3e3),this.rr=e}enqueue(e){this.er.push(e),this.nr||this.sr()}unload(){this.ar();var e=Object.values(this.er.length>0?this.lr():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.ur(y({},e,{transport:"sendBeacon"}))})}enable(){this.tr=!1,this.sr()}sr(){var e=this;this.tr||(this.nr=setTimeout(()=>{if(this.ar(),this.er.length>0){var t=this.lr();for(var r in t)!function(){var n=t[r],i=(new Date).getTime();n.data&&G(n.data)&&r9(n.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.ur(n)}()}},this.ir))}ur(e){try{this.rr(e)}catch(e){t0.error(e)}}ar(){clearTimeout(this.nr),this.nr=void 0}lr(){var e={};return r9(this.er,t=>{var r,n=(t?t.batchKey:null)||t.url;K(e[n])&&(e[n]=y({},t,{data:[]})),null==(r=e[n].data)||r.push(t.data)}),this.er=[],e}}var sF=["retriesPerformedSoFar"];class sD{constructor(e){this.hr=!1,this.dr=3e3,this.er=[],this._instance=e,this.er=[],this.vr=!0,!K(n)&&"onLine"in n.navigator&&(this.vr=n.navigator.onLine,this.cr=()=>{this.vr=!0,this.pr()},this.gr=()=>{this.vr=!1},ns(n,"online",this.cr),ns(n,"offline",this.gr))}get length(){return this.er.length}retriableRequest(e){var t=e.retriesPerformedSoFar,r=b(e,sF);er(t)&&(r.url=sP(r.url,{retry_count:t})),this._instance._send_request(y({},r,{callback:e=>{if(200!==e.statusCode&&(400>e.statusCode||e.statusCode>=500)){if((0===e.statusCode?3:10)>(null!=t?t:0))return void this.At(y({retriesPerformedSoFar:t},r));0===e.statusCode&&t0.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(null!=t?t:0)+" retries.")}null==r.callback||r.callback(e)}}))}At(e){var t,r,n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var i=Math.ceil((r=Math.min(18e5,t=3e3*Math.pow(2,n)))+(Math.random()-.5)*(r-t/2)),s=Date.now()+i;this.er.push({retryAt:s,requestOptions:e});var a="Enqueued failed request for retry in "+i;navigator.onLine||(a+=" (Browser is offline)"),t0.warn(a),this.hr||(this.hr=!0,this.mr())}
3mr(){if(this.yr&&clearTimeout(this.yr),0===this.er.length)return this.hr=!1,void(this.yr=void 0);this.yr=setTimeout(()=>{this.vr&&this.er.length>0&&this.pr(),this.mr()},this.dr)}pr(){var e=Date.now(),t=[],r=this.er.filter(r=>e>r.retryAt||(t.push(r),!1));if(this.er=t,r.length>0)for(var n of r)this.retriableRequest(n.requestOptions)}unload(){for(var e of(this.yr&&(clearTimeout(this.yr),this.yr=void 0),this.hr=!1,K(n)||(this.cr&&(n.removeEventListener("online",this.cr),this.cr=void 0),this.gr&&(n.removeEventListener("offline",this.gr),this.gr=void 0)),this.er)){var t=e.requestOptions;try{this._instance._send_request(y({},t,{transport:"sendBeacon"}))}catch(e){t0.error(e)}}this.er=[]}}class s${constructor(e){this.br=()=>{this._r||(this._r={});var e,t,r,n,i=this.scrollElement(),s=this.scrollY(),a=i?Math.max(0,i.scrollHeight-i.clientHeight):0,o=s+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this._r.lastScrollY=Math.ceil(s),this._r.maxScrollY=Math.max(s,null!=(e=this._r.maxScrollY)?e:0),this._r.maxScrollHeight=Math.max(a,null!=(t=this._r.maxScrollHeight)?t:0),this._r.lastContentY=o,this._r.maxContentY=Math.max(o,null!=(r=this._r.maxContentY)?r:0),this._r.maxContentHeight=Math.max(l,null!=(n=this._r.maxContentHeight)?n:0)},this._instance=e}get wr(){return this._instance.config.scroll_root_selector}getContext(){return this._r}resetContext(){var e=this._r;return setTimeout(this.br,0),e}startMeasuringScrollPosition(){ns(n,"scroll",this.br,{capture:!0}),ns(n,"scrollend",this.br,{capture:!0}),ns(n,"resize",this.br)}scrollElement(){if(!this.wr)return null==n?void 0:n.document.documentElement;for(var e of G(this.wr)?this.wr:[this.wr]){var t=null==n?void 0:n.document.querySelector(e);if(t)return t}}kr(e){if(this.wr){var t=this.scrollElement();return t&&t["y"===e?"scrollTop":"scrollLeft"]||0}return n?"y"===e?n.scrollY||n.pageYOffset||n.document.documentElement.scrollTop||0:n.scrollX||n.pageXOffset||n.document.documentElement.scrollLeft||0:0}scrollY(){return this.kr("y")}scrollX(){return this.kr("x")}}var sU=e=>ij(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties,null==e?void 0:e.config.disable_capture_url_hashes);class sB{constructor(e,t,r,n){this.Sr=e=>{var t=this.Cr();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.Mr(this._instance)};this.Tr.register({[rD]:r})}},this._instance=e,this.Er=t,this.Tr=r,this.Mr=n||sU,this.Er.onSessionId(this.Sr)}Cr(){return this.Tr.props[rD]}getSetOnceProps(){var e,t=null==(e=this.Cr())?void 0:e.props;return t?"r"in t?iM(t,this._instance.config.disable_capture_url_hashes):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return r9(nn(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+B(r)]=t}),e}}class sH{on(e,t){return this.Ir[e]||(this.Ir[e]=[]),this.Ir[e].push(t),()=>{this.Ir[e]=this.Ir[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.Ir[e]||[])r(t);for(var n of this.Ir["*"]||[])n(e,t)}constructor(){this.Ir={}}}var sq=t1("[SessionId]");class sz{on(e,t){return this.Pr.on(e,t)}constructor(e,t,r){if(this.Rr=null,this.Ar=[],this.Fr=void 0,this.Lr=!1,this.Pr=new sH,this.Or=(e,t)=>!(!er(e)||!er(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===rJ)throw Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Ne=e.config,this.Tr=e.persistence,this.Dr=void 0,this.$r=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Nr=t||n_,this.qr=r||n_;var n,i=this.Ne.persistence_name||this.Ne.token;if(this._sessionTimeoutMs=1e3*ep(this.Ne.session_idle_timeout_seconds||1800,60,36e3,sq.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.jr(),this.Br="ph_"+i+"_window_id",this.Hr="ph_"+i+"_primary_window_exists",this.Ur()){var s=nO.H(this.Br),a=nO.H(this.Hr);s&&!a?this.Dr=s:nO.q(this.Br),nO.F(this.Hr,!0)}if(null!=(n=this.Ne.bootstrap)&&n.sessionID)try{var o=(e=>{var t=this.Ne.bootstrap.sessionID.replace(/-/g,"");if(32!==t.length)throw Error("Not a valid UUID");if("7"!==t[12])throw Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})();this.zr(this.Ne.bootstrap.sessionID,(new Date).getTime(),o)}catch(e){sq.error("Invalid sessionID in bootstrap",e)}this.Wr()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return K(this.Ar)&&(this.Ar=[]),this.Ar.push(e),this.$r&&e(this.$r,this.Dr),()=>{this.Ar=this.Ar.filter(t=>t!==e)}}Ur(){return"memory"!==this.Ne.persistence&&!this.Tr.xi&&nO.N()}Vr(e){e!==this.Dr&&(this.Dr=e,this.Ur()&&nO.F(this.Br,e))}Zr(){return this.Dr?this.Dr:this.Ur()?nO.H(this.Br):null}Gr(e){var t=this.Rr;return!Z(t)&&!Z(e)&&5e3>Math.abs(e-t)}zr(e,t,r){var n=t!==this._sessionActivityTimestamp,i=e===this.$r&&r===this._sessionStartTimestamp;this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.$r=e,i&&!n||i&&this.Gr(t)||(this.Rr=t,this.Tr.register({[rf]:[t,e,r]}))}Qr(){var e,t=null==(e=this.Ne)?void 0:e.persistence_save_debounce_ms;return er(t)&&t>0}Kr(){this.Qr()?this.Tr.refreshKey(rf):(this.Tr.flush(),this.Tr.load())}Jr(){var e;if(!Z(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Rr){this.Kr();var t=this.Yr();t[1]===this.$r&&t[2]===this._sessionStartTimestamp&&(this.Rr=this._sessionActivityTimestamp,this.Tr.register({[rf]:[this._sessionActivityTimestamp,null!=(e=this.$r)?e:null,this._sessionStartTimestamp]}),this.Tr.flush())}}Xr(){var e=this.Yr()[0];return Math.max(er(e)?e:0,er(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0)}
3tn(e){return this.Kr(),this.Or(e,this.Xr())}Yr(){var e=this.Tr.props[rf];return G(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Rr=null,clearTimeout(this.en),this.en=void 0,this.zr(null,null,null)}destroy(){this.Lr=!0,this.Jr(),clearTimeout(this.en),this.en=void 0,this.Fr&&n&&(n.removeEventListener(r2,this.Fr,{capture:!1}),this.Fr=void 0),this.Ar=[]}Wr(){this.Fr=()=>{this.Jr(),this.Ur()&&nO.q(this.Hr)},ns(n,r2,this.Fr,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),this.Ne.cookieless_mode===rJ)throw Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),n=this.Yr(),i=n[1],s=n[2],a=this.Xr(),o=this.Zr(),l=er(s)&&Math.abs(r-s)>864e5,u=!1,c=!1,d=!i,h=i,p=!d&&!e&&this.Or(r,a);if(p){(p=this.tn(r))||sq.info("cross-tab refresh kept the session alive",{sessionId:i});var f=this.Yr();i=f[1],s=f[2]}d||p||l?(i=this.Nr(),o=this.qr(),sq.info("new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:l}}),s=r,u=!0):(o||(o=this.qr(),u=!0),(c=i!==h)&&(sq.info("adopted cross-tab session id",{sessionId:i,windowId:o}),u=!0));var g=er(a)&&e&&!l?a:r,_=er(s)?s:(new Date).getTime();this.Vr(o),this.zr(i,g,_),e||this.jr();var v={noSessionId:d,activityTimeout:p,sessionPastMaximumLength:l,crossTabAdoption:c};return u&&this.Ar.forEach(e=>e(i,o,v)),{sessionId:i,windowId:o,sessionStartTimestamp:_,changeReason:u?v:void 0,lastActivityTimestamp:a}}jr(){this.Lr||(clearTimeout(this.en),this.en=setTimeout(()=>{if(!this.Lr)if(this.tn((new Date).getTime())){var e=this.$r;this.resetSessionId(),this.Pr.emit("forcedIdleReset",{idleSessionId:e})}else this.jr()},1.1*this.sessionTimeoutMs))}}var sW=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&D(r,t))return!0;try{var n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>D(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver};function sG(){return(sG=m(function*(){var e=null==s?void 0:s.userAgentData;if(null!=e&&e.getHighEntropyValues)try{var t=yield e.getHighEntropyValues(["model"]),r=null==t?void 0:t.model;return J(r)&&r.length>0?r:void 0}catch(e){return void t0.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",e)}})).apply(this,arguments)}var sV=function(e,t){if(!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}};function sY(e,t,r){return i_({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var sX={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>sV(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!sV(t,e))),icontains:(e,t)=>t.map(sK).some(t=>e.map(sK).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(sK).every(t=>e.map(sK).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r<parseFloat(e))})},sK=e=>e.toLowerCase();function sJ(e,t){return!e||Object.entries(e).every(e=>{var r=e[1],n=null==t?void 0:t[e[0]];if(K(n)||Z(n))return!1;var i=[String(n)],s=sX[r.operator];return!!s&&s(r.values,i)})}var sQ="custom",sZ="i.posthog.com",s0=/^\/static\//;class s1{constructor(e){this.rn={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+sZ,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.rn[this.apiHost]||(this.rn[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":sQ),this.rn[this.apiHost]}nn(e){if(s0.test(e)){var t=this.instance.config.asset_host;if("string"==typeof t)return t.trim().replace(/\/$/,"")||void 0}}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if("assets"===e){var r=this.nn(t);if(r)return""+r+t}if(this.region===sQ)return this.apiHost+t;var n=sZ+t;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}function s2(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}var s3=t1("[Surveys]"),s4="seenSurvey_",s5=e=>{try{var t=(e=>""+s4+function(e){return e.current_iteration&&e.current_iteration>0?e.id+"_"+e.current_iteration:e.id}(e))(e);if(localStorage.getItem(t))return;localStorage.setItem(t,"true")}catch(e){s3.error("Failed to persist survey seen state",e)}}
3,s6=[iz.Popover,iz.Widget,iz.API],s8={ignoreConditions:!1,ignoreDelay:!1,displayType:iV.Popover},s9=t1("[PostHog ExternalIntegrations]"),s7={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class ae{constructor(e){this._instance=e}ai(e,t){var r;null==(r=g.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return s9.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e,t=this;for(var r of Object.entries(null!=(e=this._instance.config.integrations)?e:{}))!function(){var e,n,i,s=r[0],a=r[1];!a||null!=(e=g.__PosthogExtensions__)&&null!=(e=e.integrations)&&e[s]||t.ai(s7[s],()=>{var e;null==(e=g.__PosthogExtensions__)||null==(e=e.integrations)||null==(e=e[s])||e.start(t._instance)}),!a&&null!=(n=g.__PosthogExtensions__)&&null!=(n=n.integrations)&&n[s]&&(null==(i=g.__PosthogExtensions__)||null==(i=i.integrations)||null==(i=i[s])||i.stop())}()}}class at{constructor(e,t){this.rt=e,this.sn=t,this.an=new Map,this.ln=!1}add(e){var t=this;return m(function*(){if(t.ln)throw Error("Cannot add an extension to a disposed ExtensionRuntime");if(t.an.has(e.name))throw Error('Browser extension "'+e.name+'" is already registered');t.an.set(e.name,e);try{var r=e.setup(t.sn);r&&(yield r)}catch(r){var n=t.an.get(e.name)===e;n&&t.an.delete(e.name),t.rt.error('Failed to set up browser extension "'+e.name+'"',r),n&&t.un(e)}})()}dispose(){if(!this.ln){this.ln=!0;var e=Array.from(this.an.values()).reverse();for(var t of(this.an.clear(),e))this.un(t)}}un(e){try{var t=null==e.dispose?void 0:e.dispose();t&&V(t.then)&&t.then(void 0,t=>{this.rt.error('Failed to dispose browser extension "'+e.name+'"',t)})}catch(t){this.rt.error('Failed to dispose browser extension "'+e.name+'"',t)}}}class ar{constructor(e){this._instance=e}get(e){var t;return null==(t=this._instance.persistence)?void 0:t.get_property(e)}set(e,t){var r;null==(r=this._instance.persistence)||r.set_property(e,t)}remove(e){var t;null==(t=this._instance.persistence)||t.unregister(e)}}var an="extensionsRemoteConfig";class ai{constructor(e){this.ln=!1,this.instance=e,this.rt=t0.createLogger("[BrowserExtensions]"),this.hn=e.dn,this.kv=new ar(e),this.onEvent=e=>iB(this.instance.on("eventCaptured",t=>{try{e({event:t.event,properties:t.properties})}catch(e){this.rt.error("Browser extension event listener failed",e)}})),this.onRemoteConfig=e=>{if(this.ln)return iB(()=>{});var t=t=>{try{e(t)}catch(e){this.rt.error("Browser extension remote config listener failed",e)}},r=this.instance.vn.on(an,t);return this.hn&&t(this.hn),iB(r)},this.cn=new at(this.rt,this)}get logger(){return this.rt}get distinctId(){return this.instance.get_distinct_id()}get anonymousId(){var e;return null!=(e=this.instance.get_property(t5))?e:this.distinctId}get groups(){return this.instance.getGroups()}get session(){try{var e,t,r,n,i=null==(e=this.instance.sessionManager)?void 0:e.checkAndGetSessionAndWindowId(!0);return{sessionId:null!=(t=null==i?void 0:i.sessionId)?t:"",windowId:null!=(r=null==i?void 0:i.windowId)?r:"",sessionStartTimestamp:null!=(n=null==i?void 0:i.sessionStartTimestamp)?n:0}}catch(e){return{sessionId:"",windowId:"",sessionStartTimestamp:0}}}get projectToken(){return this.instance.config.token}add(e){return this.cn.add(e)}capture(e,t,r){var n=this;return m(function*(){r?n.instance.capture(e,t,{timestamp:r.timestamp,uuid:r.uuid,$set:r.set,$set_once:r.setOnce}):n.instance.capture(e,t)})()}registerDynamicEventProperties(e){return iB(this.instance.fn(e))}handleRemoteConfig(e){this.ln||(this.hn=e,this.instance.vn.emit(an,e))}sendRequest(e,t){var r=this;return m(function*(){void 0===t&&(t={});var n,i=r.instance.requestRouter.endpointFor(null!=(n=t.target)?n:"api",e),s={method:t.method,url:t.query?sP(i,t.query):i,data:t.body,headers:t.headers,timeout:t.timeoutMs,fireCallbackOnDrop:!0,transport:t.transport};return"sendBeacon"===t.transport?(r.instance._send_request(s),{statusCode:202}):new Promise(e=>{s.callback=e,r.instance._send_request(s)})})()}dispose(){this.ln||(this.ln=!0,this.cn.dispose())}}var as={},aa=0,ao=()=>{}
3,al='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',au="Surveys module not available",ac="sanitize_properties is deprecated. Use before_send instead",ad="Invalid value for property_denylist config: ",ah=["token","distinct_id",rW],ap="posthog",af=!sE&&-1===(null==h?void 0:h.indexOf("MSIE"))&&-1===(null==h?void 0:h.indexOf("Mozilla")),ag=e=>{var t;return y({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:function(e){var t=null==e?void 0:e.hostname;if(!J(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of ni)if(r===n)return!1;return!0}(null==a?void 0:a.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:ao,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:o&&J(null==o?void 0:o.search)&&-1!==o.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==n||null==(t=n.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){t0.error("Bad HTTP status: "+e.statusCode+" "+e.text)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:r0,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:ao},(e=>({rageclick:e&&e>="2026-05-30"?{content_ignorelist:nV,ignore_text_selection:!0}
3:!e||"2025-11-30">e||{content_ignorelist:!0},capture_pageview:!e||"2025-05-24">e||"history_change",session_recording:e&&e>="2026-06-25"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6},streamNetworkBody:!0}:e&&e>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:e&&e>="2026-05-30"?250:0,split_storage:!(!e||"2026-05-30">e),detect_google_search_app:!(!e||"2026-05-30">e),disable_capture_url_hashes:!(!e||"2026-06-25">e)}))(e))},a_=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],av=e=>{var t={};for(var r of a_){var n=r[0],i=r[1];K(e[n])||(t[i]=e[n])}var s=r7({},t,e),a=e.__preview_external_dependency_versioned_paths;return K(a)||(K(e.strict_script_versioning)&&(s.strict_script_versioning=!!a),J(a)&&K(e.asset_host)&&(s.asset_host=a)),G(e.property_blacklist)&&(K(e.property_denylist)?s.property_denylist=e.property_blacklist:G(e.property_denylist)?s.property_denylist=[...e.property_blacklist,...e.property_denylist]:t0.error(ad+e.property_denylist)),s};class am{constructor(){this.__forceAllowLocalhost=!1}get pn(){return this.__forceAllowLocalhost}set pn(e){t0.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class ay{gn(e,t){if(e){var r=this.an.indexOf(e);-1!==r&&this.an.splice(r,1)}return this.an.push(t),null==t.initialize||t.initialize(),t}mn(){return this.config.cookieless_mode===rJ||this.config.cookieless_mode===rK&&this.consent.isRejected()}get decideEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}get flagsEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}constructor(){this.webPerformance=new am,this.yn=!1,this.version=_.LIB_VERSION,this.bn=new Set,this._n="",this.vn=new sH,this.an=[],this.wn=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=ag(),this.SentryIntegration=iu,this.sentryIntegration=e=>(function(e,t){var r=il(e,t);return{name:io,processEvent:e=>r(e)}})(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.kn=!1,this.xn=null,this.Sn=null,this.Cn=null,this.scrollManager=new s$(this),this.pageViewManager=new ic(this),this.rateLimiter=new iJ(this),this.requestRouter=new s1(this),this.consent=new nT(this),this.externalIntegrations=new ae(this);var e,t=null!=(e=ay.__defaultExtensionClasses)?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.metrics=t.metrics&&new t.metrics(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,r)=>{var n=J(e)?{[e]:t}:e;this.setPersonProperties(n),null==r||r({})},set_once:(e,t,r)=>{var n=J(e)?{[e]:t}:e;this.setPersonProperties(void 0,n),null==r||r({})}},this.on("eventCaptured",e=>t0.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==ap){var n,i=null!=(n=as[r])?n:new ay;return i._init(e,t,r),as[r]=i,as[ap][r]=i,i}return this._init(e,t,r)}_init(e,t,r){void 0===t&&(t={});var i,s,a,o=J(e)?e.trim():"";if(!o)return t0.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return o!==(null==(a=this.config)?void 0:a.token)?console.warn("[PostHog.js]","You have already initialized PostHog with a different project token! Re-initializing is a no-op, so events will keep going to the project this instance was initialized with. To capture into a second project, load PostHog once, then initialize a named instance after the SDK has loaded, e.g. posthog.init('"+o+"', { ... }, 'project2')"):console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config=ag(t.defaults),t.debug=this.Mn(t.debug),this.Tn=t,this.En=[],t.person_profiles?this.Sn=t.person_profiles:t.process_person&&(this.Sn=t.process_person);var l=ag(t.defaults),u=av(t),c=r7({},l,u,{name:r,token:o});Y(l.rageclick)&&Y(u.rageclick)&&(c.rageclick=r7({},l.rageclick,u.rageclick)),Y(l.session_recording)&&Y(u.session_recording)&&(c.session_recording=r7({},l.session_recording,u.session_recording)),this.set_config(c),this.config.on_xhr_error&&t0.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:iH.GZipJS;var d=this.In();if(this.persistence=new iU(this.config,d),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new iU(y({},this.config,{persistence:"sessionStorage"}),d,!1),this._n="ph_"+(this.config.persistence_name||this.config.token)+"_session_registered_properties","memory"!==this.config.persistence&&!d&&nO.N()){var h=nO.H(this._n);
3G(h)&&h.forEach(e=>{J(e)&&this.bn.add(e)})}else nO.q(this._n);var p=y({},this.persistence.props),f=y({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Pn=new sL(e=>this.Rn(e),this.config.request_queue_config),this.An=new sD(this),this.__request_queue=[];var g=this.mn();if(g||(this.sessionManager=new sz(this),this.sessionPropsManager=new sB(this,this.sessionManager,this.persistence),this.sessionManager.onSessionId((e,t,r)=>{(null!=r&&r.activityTimeout||null!=r&&r.sessionPastMaximumLength||null!=r&&r.crossTabAdoption)&&this.Fn()})),this.config.__preview_deferred_init_extensions?(t0.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.Ln(g)},0)):(t0.info("Initializing extensions synchronously"),this.Ln(g)),_.DEBUG=_.DEBUG||this.config.debug,_.DEBUG&&t0.info("Starting in debug mode",{this:this,config:t,thisC:y({},this.config),p:p,s:f}),!this.config.identity_distinct_id||null!=(i=t.bootstrap)&&i.distinctID||(t.bootstrap=y({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),void 0!==(null==(s=t.bootstrap)?void 0:s.distinctID)){var v=t.bootstrap.distinctID,m=this.get_distinct_id(),b=this.persistence.get_property(rF);if(t.bootstrap.isIdentifiedID&&null!=m&&m!==v&&b===rQ)this.identify(v);else if(t.bootstrap.isIdentifiedID&&null!=m&&m!==v&&b===rZ)t0.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var E=this.config.get_device_id(n_()),w=t.bootstrap.isIdentifiedID?E:v;this.persistence.set_property(rF,t.bootstrap.isIdentifiedID?rZ:rQ),this.register({distinct_id:v,$device_id:w})}}if(g)this.register_once({distinct_id:rz,$device_id:null},"");else if(!this.get_distinct_id()){var x=this.config.get_device_id(n_());this.register_once({distinct_id:x,$device_id:x},""),this.persistence.set_property(rF,rQ)}return ns(n,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var r=e.config.segment;if(!r)return t();!function(e,t){var r=e.config.segment;if(!r)return t();var n=r=>{var n=()=>r.anonymousId()||n_();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(rF,rZ)),t()},i=r.user();"then"in i&&V(i.then)?i.then(n):n(i)}(e,()=>{var n;r.register(("undefined"!=typeof Promise&&Promise.resolve||ia.warn("This browser does not have Promise support, and can not use the segment integration"),n=(t,r)=>{if(!r)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(ia.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(ia.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var n=e.calculateEventProperties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>n(e,e.event.event),page:e=>n(e,r3),identify:e=>n(e,r5),screen:e=>n(e,"$screen")})).then(()=>{t()})})}(this,()=>this.On()):this.On(),V(this.config._onCapture)&&this.config._onCapture!==ao&&(t0.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&t0.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||(function(){return sG.apply(this,arguments)})().then(e=>{e&&this.register({[t6]:e})}).catch(ao),this}Ln(e){var t,r,n,i,s,a,o,l,u=performance.now(),c=y({},ay.__defaultExtensionClasses,this.config.__extensionClasses),d=[];c.featureFlags&&this.an.push(this.featureFlags=null!=(t=this.featureFlags)?t:new c.featureFlags(this)),c.exceptions&&this.an.push(this.exceptions=null!=(r=this.exceptions)?r:new c.exceptions(this)),c.historyAutocapture&&this.an.push(this.historyAutocapture=new c.historyAutocapture(this)),c.tracingHeaders&&this.an.push(this.tracingHeaders=new c.tracingHeaders(this)),c.siteApps&&this.an.push(this.siteApps=new c.siteApps(this)),c.sessionRecording&&!e&&this.an.push(this.sessionRecording=new c.sessionRecording(this)),this.config.disable_scroll_properties||d.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),c.autocapture&&this.an.push(this.autocapture=new c.autocapture(this)),c.surveys&&this.an.push(this.surveys=null!=(n=this.surveys)?n:new c.surveys(this)),c.logs&&this.an.push(this.logs=null!=(i=this.logs)?i:new c.logs(this)),c.metrics&&this.an.push(this.metrics=null!=(s=this.metrics)?s:new c.metrics(this)),c.conversations&&this.an.push(this.conversations=null!=(a=this.conversations)?a:new c.conversations(this)),c.productTours&&this.an.push(this.productTours=new c.productTours(this)),c.heatmaps&&this.an.push(this.heatmaps=new c.heatmaps(this)),c.webVitalsAutocapture&&this.an.push(this.webVitalsAutocapture=new c.webVitalsAutocapture(this)),c.exceptionObserver&&this.an.push(this.exceptionObserver=new c.exceptionObserver(this)),c.deadClicksAutocapture&&this.an.push(this.deadClicksAutocapture=new c.deadClicksAutocapture(this,ii)),c.toolbar&&this.an.push(this.toolbar=null!=(o=this.toolbar)?o:new c.toolbar(this)),c.experiments&&this.an.push(this.experiments=null!=(l=this.experiments)?l:new c.experiments(this)),this.an.forEach(e
3=>{e.initialize&&d.push(()=>{null==e.initialize||e.initialize()})}),d.push(()=>{if(this.Dn){var e=this.Dn;this.Dn=void 0,this.an.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}}),this.$n(d,u)}$n(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.$n(e,t)},0);var r=e.shift();if(r)try{r()}catch(e){t0.error("Error initializing extension:",e)}}var n=Math.round(performance.now()-t);this.register_for_session({[rG]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[rV]:n}),this.config.__preview_deferred_init_extensions&&t0.info("PostHog extensions initialized ("+n+"ms)")}Gi(e){var t;if(!a||!a.body)return t0.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.Gi(e)},500);if(this.config.__preview_deferred_init_extensions&&(this.Dn=e),this.dn=e,this.compression=void 0,e.ok){var r,n=e.config;n.supportedCompression&&!this.config.disable_compression&&(this.compression=$(n.supportedCompression,iH.GZipJS)?iH.GZipJS:$(n.supportedCompression,iH.Base64)?iH.Base64:void 0),null!=(r=n.analytics)&&r.endpoint&&(this.analyticsDefaultEndpoint=n.analytics.endpoint)}this.set_config({person_profiles:this.Sn?this.Sn:r0}),null==(t=this.Nn)||t.handleRemoteConfig(e),this.an.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}On(){try{this.config.loaded(this)}catch(e){t0.critical("`loaded` function failed",e)}if(this.qn(),this.config.internal_or_test_user_hostname&&null!=o&&o.hostname){var e=o.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.mn())&&this.jn()},1),this.Bn=new iZ(this),this.Bn.load()}qn(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Pn)||e.enable())}_dom_loaded(){this.is_capturing()&&r8(this.__request_queue,e=>this.Rn(e)),this.__request_queue=[],this.qn()}_handle_unload(){var e,t,r,n,i;null==(e=this.surveys)||null==e.handlePageUnload||e.handlePageUnload(),null==(t=this.metrics)||t.flush("sendBeacon"),this.config.request_batching?(this.Hn()&&this.capture(r4),null==(r=this.logs)||r.flushLogs("sendBeacon"),null==(n=this.Pn)||n.unload(),null==(i=this.An)||i.unload()):this.Hn()&&this.capture(r4,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded?af?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)?e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:429})):(e.transport=e.transport||this.config.api_transport,e.headers=y({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?this.compression:e.compression,(K(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,r,n,i,s,a=y({},e);a.timeout=a.timeout||6e4;var o,l,u,c,h,p=null!=(n=a.transport)?n:"fetch";"sendBeacon"===p&&K(a.compression)&&a.data&&(a.compression=iH.Base64),"POST"===a.method&&a.data&&("capture-body"===a.timestampMode?a.data={api_key:null!=(l=null==(h=(c=G(o=a.data)?o:[o])[0])||null==(u=h.properties)?void 0:u.token)?l:null==h?void 0:h.token,batch:c,sent_at:(new Date).toISOString()}:"body"===a.timestampMode&&(t=a.data,void 0===r&&(r=(new Date).toISOString()),a.data=G(t)?t.map(e=>y({},e,{sent_at:r})):y({},t,{sent_at:r}))),a.url=sj(a.url,a.method,a.compression,a.timestampMode);var f=sM.filter(e=>!a.disableTransport||!e.transport||!a.disableTransport.includes(e.transport)),g=null!=(i=null==(s=function(e,t){for(var r=0;e.length>r;r++)if(e[r].transport===p)return e[r]}(f))?void 0:s.method)?i:f[0].method;if(!g)throw Error("No available transport method");var _=e=>{try{g(e)}catch(e){sI(e)?t0.warn(e):t0.error(e),null==a.callback||a.callback({statusCode:0,error:e})}};"sendBeacon"!==p&&a.data&&a.compression===iH.GZipJS&&d&&"undefined"!=typeof Promise&&!sx?sk(a).then(e=>{_(e)}).catch(t=>{if(N(t))return sx=!0,void _(y({},a,{compression:void 0,url:sj(e.url,e.method,void 0,e.timestampMode)}));(e=>{if(!e||"object"!=typeof e)return!1;var t="name"in e?String(e.name):"";return N(e)||t===A})(t)&&(sx=!0),_(a)}):g(a)})(y({},e,{callback:t=>{var r,n;this.rateLimiter.checkForLimiting(t),400>t.statusCode||null==(r=(n=this.config).on_request_error)||r.call(n,t),null==e.callback||e.callback(t)}}))):e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:0}))}
3Rn(e){this.An?this.An.retriableRequest(e):this._send_request(e)}_execute_array(e){aa++;try{var t,r=[],n=[],i=[];r8(e,e=>{if(e)if(G(t=e[0]))i.push(e);else if(V(e))try{e.call(this)}catch(t){t0.error("Error executing queued PostHog call",e,t)}else G(e)&&"alias"===t?r.push(e):G(e)&&-1!==t.indexOf("capture")&&V(this[t])?i.push(e):n.push(e)});var s=function(e,t){r8(e,function(e){try{if(G(e[0])){var r=t;r9(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else t[e[0]].apply(t,e.slice(1))}catch(t){t0.error("Error executing queued PostHog call",e,t)}})};s(r,this),s(n,this),s(i,this)}finally{aa--}}push(e){if(aa>0&&G(e)&&J(e[0])){var t=ay.prototype[e[0]];V(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,r){var n,i,s,a,o,l,u;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Pn){if(this.is_capturing())if(!K(e)&&J(e)){var c=!this.config.opt_out_useragent_filter&&this._is_bot();if(!c||this.config.__preview_capture_bot_pageviews){var d=null!=r&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==d||!d.isRateLimited){if(this.wn.length>0){var h={};for(var p of this.wn.slice())try{r7(h,p())}catch(e){t0.error("Failed to produce browser extension event properties",e)}t=y({},h,null!=t?t:{})}null!=(n=t)&&n.$current_url&&!J(null==(i=t)?void 0:i.$current_url)&&(t0.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==(E=t)||delete E.$current_url),"$exception"!==e||null!=r&&r.Un||t0.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var f=new Date,g=(null==r?void 0:r.timestamp)||f,_=tu(null==r?void 0:r.uuid,n_),v={uuid:_,event:e,properties:this.calculateEventProperties(e,t||{},g,_)};e===r3&&this.config.__preview_capture_bot_pageviews&&c&&(v.event="$bot_pageview",v.properties.$browser_type="bot"),d&&(v.properties.$lib_rate_limit_remaining_tokens=d.remainingTokens);var m="$feature_flag_called"===e&&!1===v.properties.$feature_flag_has_experiment&&!0===this.get_property(rw);(null==r?void 0:r.$set)&&!m&&(v.$set=null==r?void 0:r.$set);var b=null==r?void 0:r.$unset;b&&(v.$unset=b);var E,w,x,S,R=m?void 0:this.zn(null==r?void 0:r.$set_once,e!==r6,e===r5);if(R&&(v.$set_once=R),null!=r&&r._noTruncate||(a=this.config.properties_string_max_length,o=v,l=e=>J(e)?e.slice(0,a):e,u=new Set,v=function e(t,r){if(t!==Object(t))return l?l(t):t;if(!u.has(t)){var n;if(u.add(t),G(t))n=[],r8(t,t=>{n.push(e(t))});else{var i={};r9(t,(t,r)=>{u.has(t)||(i[r]=e(t,r))}),n=i}return n}}(o)),v.timestamp=g,K(null==r?void 0:r.timestamp)||(v.properties.$event_time_override_provided=!0,v.properties.$event_time_override_system_time=f),m&&(v.properties=(O=v.properties,void 0===(T=ah)&&(T=[]),k={},A=e=>{void 0!==O[e]&&(k[e]=O[e])},P.forEach(A),T.forEach(A),k)),e===iW.DISMISSED||e===iW.SENT){var O,T,k,A,I,C,N=null==(I=t)?void 0:I[iG.SURVEY_ID],j=null==(C=t)?void 0:C[iG.SURVEY_ITERATION];s5({id:N,current_iteration:j}),v.$set=y({},v.$set,{[(w={id:N,current_iteration:j},S="$survey_"+(x=e===iW.SENT?"responded":"dismissed")+"/"+w.id,w.current_iteration&&w.current_iteration>0&&(S="$survey_"+x+"/"+w.id+"/"+w.current_iteration),S)]:!0})}else e===iW.SHOWN&&(v.$set=y({},v.$set,{[iG.SURVEY_LAST_SEEN_DATE]:(new Date).toISOString()}));if(e===iY.SHOWN){var M,L=null==(M=t)?void 0:M[iX.TOUR_TYPE];L&&(v.$set=y({},v.$set,{[iX.TOUR_LAST_SEEN_DATE+"/"+L]:(new Date).toISOString()}))}var F=y({},v.properties.$set,v.$set);if(X(F)||this.setPersonPropertiesForFlags(F),!ee(this.config.before_send)){var D=this.Pt(v);if(!D)return;(v=D).uuid=tu(v.uuid,n_)}this.vn.emit("eventCaptured",v);var $=null!=(s=null==r?void 0:r._url)?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),U={method:"POST",url:$,data:v,compression:"best-available",timestampMode:"recordings"===(null==r?void 0:r._batchKey)||/\/s\/(?:\?|$)/.test($)?"body":"capture-body",batchKey:null==r?void 0:r._batchKey,transport:null==r?void 0:r.transport};return!this.config.request_batching||r&&(null==r||!r._batchKey)||null!=r&&r.send_instantly?this.Rn(U):this.Pn.enqueue(U),v}t0.critical("This capture call is ignored due to client rate limiting.")}}else t0.error("No event name provided to posthog.capture")}else t0.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}Wn(){var e;return null!=(e=this.Nn)?e:this.Nn=new ai(this)}fn(e){this.wn.push(e);var t=!0;return()=>{if(t){t=!1;var r=this.wn.indexOf(e);-1!==r&&this.wn.splice(r,1)}}}calculateEventProperties(e,t,r,i,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return t;var l,u=s?void 0:this.persistence.remove_event_timer(e),c=y({},t);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.mn()&&(c[rW]=!0),"$
3snapshot"===e){var d=y({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!J(c.distinct_id)&&!et(c.distinct_id)||Q(c.distinct_id))&&t0.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var p,f=function(e,t,r,i){if(void 0===i&&(i=!1),!h)return{};var s,a,l,u,c,d=e?[...iS,...t||[]]:[],p=function(e){for(var t=0;ta.length>t;t++){var r=ta[t],n=r[1],i=r[0].exec(e),s=i&&(V(n)?n(i,e):n);if(s)return s}return["",""]}(h),f=p[0],g=p[1],v=null!=(c="undefined"!=typeof navigator?navigator:void 0)&&c.brave?{brave:!0}:{},m={};K(r)||(m.detectGoogleSearchApp=r);var y={},b=null==(s=navigator)||null==(s=s.userAgentData)?void 0:s.platform,E=null==(a=navigator)?void 0:a.maxTouchPoints,w=null==n||null==(l=n.screen)?void 0:l.width,x=null==n||null==(u=n.screen)?void 0:u.height,S=null==n?void 0:n.devicePixelRatio;K(b)||(y.userAgentDataPlatform=b),K(E)||(y.maxTouchPoints=E),K(w)||(y.screenWidth=w),K(x)||(y.screenHeight=x),K(S)||(y.devicePixelRatio=S);var P,R,O,T,k,A,I=r7(nn({$os:f,$os_version:g,$browser:tn(h,navigator.vendor,v,m),$device:to(h),$device_type:(A=to(h))===ey||A===em||"Kobo"===A||"Kindle Fire"===A||A===eX?ev:A===eD||A===eU||A===e$||A===eG?"Console":A===eE?"Wearable":A?eg:"Android"===(null==y?void 0:y.userAgentDataPlatform)&&(null!=(R=null==y?void 0:y.maxTouchPoints)?R:0)>0?600>Math.min(null!=(O=null==y?void 0:y.screenWidth)?O:0,null!=(T=null==y?void 0:y.screenHeight)?T:0)/(null!=(k=null==y?void 0:y.devicePixelRatio)?k:1)?eg:ev:"Desktop",$timezone:iL(),$timezone_offset:function(){try{return(new Date).getTimezoneOffset()}catch(e){return}}()}),{$current_url:iy(i?tc(null==o?void 0:o.href):null==o?void 0:o.href,d,iR),$host:null==o?void 0:o.host,$pathname:null==o?void 0:o.pathname,$raw_user_agent:h.length>1e3?h.substring(0,997)+"...":h,$browser_version:ts(h,navigator.vendor,v,m),$browser_language:iI(),$browser_language_prefix:"string"==typeof(P=iI())?P.split("-")[0]:void 0,$screen_height:null==n?void 0:n.screen.height,$screen_width:null==n?void 0:n.screen.width,$viewport_height:null==n?void 0:n.innerHeight,$viewport_width:null==n?void 0:n.innerWidth,$lib:_.LIB_NAME,$lib_version:_.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return _.SDK_DIST_CHANNEL&&(I.$sdk_dist_channel=_.SDK_DIST_CHANNEL),I}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){var g=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime()),v=g.windowId;c.$session_id=g.sessionId,c.$window_id=v}this.sessionPropsManager&&r7(c,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&r7(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=null==(l=this.An)?void 0:l.length}catch(e){c.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===sQ&&(c.$lib_custom_api_host=this.config.api_host),p=e!==r3||s?e!==r4||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,i),c=r7(c,p),e===r3&&a&&(c.title=a.title),!K(u)){var m=r.getTime()-u;c.$duration=parseFloat((m/1e3).toFixed(3))}h&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser");var b=this.persistence.properties(),E=this.sessionPersistence.properties();r9(["$referrer","$referring_domain"],e=>{e in b&&delete E[e]}),(c=r7({},f,b,E,c)).$is_identified=this._isIdentified(),G(this.config.property_denylist)?r9(this.config.property_denylist,function(e){delete c[e]}):t0.error(ad+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var w=this.config.sanitize_properties;w&&(t0.error(ac),c=w(c,e));var x=this.Vn();return c.$process_person_profile=x,x&&!s&&this.Zn("_calculate_event_properties"),c}zn(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r=!1),!this.persistence||!this.Vn()||this.yn&&!r)return e;var n,i=r7({},this.persistence.get_initial_props(),(null==(n=this.sessionPropsManager)?void 0:n.getSetOnceProps())||{},e||{}),s=this.config.sanitize_properties;return s&&(t0.error(ac),i=s(i,"$set_once")),t&&(this.yn=!0),X(i)?void 0:i}register(e,t){var r;null==(r=this.persistence)||r.register(e,t)}register_once(e,t,r){var n;null==(n=this.persistence)||n.register_once(e,t,r)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e),Object.keys(e).forEach(e
3=>this.bn.add(e)),this.Gn()}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e),this.bn.delete(e),this.Gn()}Qn(e,t){this.register({[e]:t})}Fn(){this.bn.forEach(e=>{var t;null==(t=this.sessionPersistence)||t.unregister(e)}),this.bn.clear(),this.Gn()}Gn(){var e;if(this._n)if("memory"===this.config.persistence||null!=(e=this.sessionPersistence)&&e.xi||!nO.N())nO.q(this._n);else{var t=[];this.bn.forEach(e=>t.push(e)),t.length>0?nO.F(this._n,t):nO.q(this._n)}}getFeatureFlag(e,t){var r;return null==(r=this.featureFlags)?void 0:r.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return null==(t=this.featureFlags)?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var r;return null==(r=this.featureFlags)?void 0:r.getFeatureFlagResult(e,t)}getAllFeatureFlags(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.getAllFeatureFlags())?e:[]}isFeatureEnabled(e,t){var r,n;return null!=(r=null==(n=this.featureFlags)?void 0:n.isFeatureEnabled(e,t))?r:null==t?void 0:t.defaultValue}reloadFeatureFlags(){var e;null==(e=this.featureFlags)||e.reloadFeatureFlags()}updateFlags(e,t,r){var n;null==(n=this.featureFlags)||n.updateFlags(e,t,r)}updateEarlyAccessFeatureEnrollment(e,t,r){var n;null==(n=this.featureFlags)||n.updateEarlyAccessFeatureEnrollment(e,t,r)}getEarlyAccessFeatures(e,t,r){var n;return void 0===t&&(t=!1),null==(n=this.featureFlags)?void 0:n.getEarlyAccessFeatures(e,t,r)}on(e,t){return this.vn.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:au}),()=>{})}onSessionId(e){var t,r;return null!=(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:au})}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:au})}renderSurvey(e,t){var r;null==(r=this.surveys)||r.renderSurvey(e,t)}displaySurvey(e,t){var r;void 0===t&&(t=s8),null==(r=this.surveys)||r.displaySurvey(e,t)}cancelPendingSurvey(e){var t;null==(t=this.surveys)||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,r;return null!=(t=null==(r=this.surveys)?void 0:r.canRenderSurvey(e))?t:{visible:!1,disabledReason:au}}canRenderSurveyAsync(e,t){var r,n;return void 0===t&&(t=!1),null!=(r=null==(n=this.surveys)?void 0:n.canRenderSurveyAsync(e,t))?r:Promise.resolve({visible:!1,disabledReason:au})}Kn(e){return!e||Q(e)?(t0.critical("Unique user id has not been set in posthog.identify"),!1):e===rz?(t0.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(t0.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,t,r){if(!this.__loaded||!this.persistence)return t0.uninitializedWarning("posthog.identify");if(et(e)&&(e=e.toString(),t0.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Kn(e)&&this.Zn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(t5)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(t8)&&(this.unregister(t8),this.register({distinct_id:e}));var i,s=(this.persistence.get_property(rF)||rQ)===rQ,a=e!==n,o=!a&&s;if(a&&s)this.persistence.set_property(rF,rZ),this.setPersonPropertiesForFlags({$set:t||{},$set_once:r||{}},!1),this.capture(r5,{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.Cn=sY(e,t,r),null==(i=this.featureFlags)||i.setAnonymousDistinctId(n);else if(o){this.persistence.set_property(rF,rZ);var l=t||{},u=r||{};this.setPersonPropertiesForFlags({$set:l,$set_once:u},!1),this.capture("$set",{$set:l,$set_once:u}),this.Cn=sY(e,t,r)}else(t||r)&&this.setPersonProperties(t,r);a?(this.reloadFeatureFlags(),this.unregister(rN)):o&&(t||r)&&this.reloadFeatureFlags()}}setPersonProperties(e,t){if((e||t)&&this.Zn("posthog.setPersonProperties")){var r=sY(this.get_distinct_id(),e,t);this.Cn!==r?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Cn=r):t0.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(e){var t,r=(G(e)?e:[e]).filter(e=>J(e)&&e.length>0);0!==r.length&&this.Zn("posthog.unsetPersonProperties")&&(null==(t=this.featureFlags)||t.unsetPersonPropertiesForFlags(r,!0),this.capture("$set",{$unset:r}),this.Cn=null)}group(e,t,r){if(e&&t){var n=this.getGroups(),i=n[e]!==t;if(i&&this.resetGroupPropertiesForFlags(e),this.register({$groups:y({},n,{[e]:t})}),i||r){var s={$group_type:e,$group_key:t};r&&(s.$group_set=r),this.capture(r6,s)}r&&this.setGroupPropertiesForFlags({[e]:r}),i&&!r&&this.reloadFeatureFlags()}else t0.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var r;void 0===t&&(t=!0),null==(r=this.featureFlags)||r.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(e){var t;void 0===e&&(e=!0),null==(t=this.featureFlags)||t.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,t){var r;void 0===t&&(t=!0),this.Zn("posthog.setGroupPropertiesForFlags")&&(null==(r=this.featureFlags)||r.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;null==(t=this.featureFlags)||t.resetGroupPropertiesForFlags(e)}reset(e){this.Jn(e)}Jn(e,t){if(void 0===t&&(t=!1),t0.info("reset"),!this.__loaded)return t0.uninitializedWarning("posthog.reset");var r,n,i,s,a,o,l,u,c,d,h,p=this.get_property(t5),f=this.get_property(t6),g=this.get_property(rl),_=this.is_capturing();if(this.consent.reset(),t||!_||this.is_capturing()||console.warn("[PostHog.js]","reset() cleared the stored consent, and capturing is now off because of `opt_out_capturing_by_default`. Call opt_in_capturing() again, and prefer calling reset() before opting in rather than after."),null==(r=this.persistence)||r.clear(),null==(n=this.sessionPersistence)||n.clear(),this.bn.clear(),this.Gn(),K(g)||null==(h=this.persistence)||h.register({[rl]:g}),null==(i=this.surveys)||i.reset(),null==(s=this.Bn)||s.stop(),null==(a=this.featureFlags)||a.reset(),null==(o=this.conversations)||o.reset(),null==(l=this.logs)||l.reset(),null==(u=this.metrics)||u.reset(),null==(c=this.persistence)||c.set_property(rF,rQ),null==(d=this.sessionManager)||d.resetSessionId(),this.Cn=null,this.config.cookieless_mode===rJ)this.register_once({distinct_id:rz,$device_id:null},"");else{var v=this.config.get_device_id(n_());this.register_once({distinct_id:v,$device_id:e?v:p},""),e||K(f)||this.register({[t6]:f})}this.register({$last_posthog_reset:(new Date).toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}shutdown(e){var t=this;return m(function*(){var e,r,n,i,s,a,o,l;t.__loaded?(null==(e=t.Bn)||e.stop(),null==(r=t.Nn)||r.dispose(),null==(n=t.sessionRecording)||n.dispose(),null==(i=t.logs)||i.flushLogs("sendBeacon"),null==(s=t.metrics)||s.flush("sendBeacon"),null==(a=t.Pn)||a.unload(),null==(o=t.An)||o.unload(),null==(l=t.featureFlags)||l.destroy()):t0.uninitializedWarning("posthog.shutdown")})()}setIdentity(e,t){var r;this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),null==(r=this.conversations)||r.Yn()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,null==(e=this.conversations)||e.Xn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!=(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=t.sessionStartTimestamp,n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t.sessionId);if(null!=e&&e.withTimestamp&&r){var i,s=null!=(i=e.timestampLookBack)?i:10;if(!r)return n;n+="?t="+Math.max(Math.floor(((new Date).getTime()-r)/1e3)-s,0)}return n}alias(e,t){return e===this.get_property(t4)?(t0.critical("Attempting to create alias for existing People user - aborting."),-2):this.Zn("posthog.alias")?(K(t)&&(t=this.get_distinct_id()),e!==t?(this.Qn(t8,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(t0.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=y({},this.config);if(Y(e)){r7(this.config,av(e));var r,n,i,s,a,o,l,u,c,d,h,p=this.In();null==(r=this.persistence)||r.update_config(this.config,t,p),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new iU(y({},this.config,{persistence:"sessionStorage"}),p,!1);var f=this.Mn(this.config.debug);en(f)&&(this.config.debug=f),en(this.config.debug)&&(this.config.debug?(_.DEBUG=!0,nw.N()&&nw.F("ph_debug",!0),t0.info("set_config",{config:e,oldConfig:t,newConfig:y({},this.config)})):(_.DEBUG=!1,nw.N()&&nw.q("ph_debug"))),null==(n=this.exceptionObserver)||n.onConfigChange(),null==(i=this.exceptions)||i.onConfigChange(),null==(s=this.sessionRecording)||s.startIfEnabledOrStop(),null==(a=this.tracingHeaders)||a.startIfEnabledOrStop(),null==(o=this.autocapture)||o.startIfEnabled(),null==(l=this.heatmaps)||l.startIfEnabled(),null==(u=this.exceptionObserver)||u.startIfEnabledOrStop(),null==(c=this.deadClicksAutocapture)||
3c.startIfEnabledOrStop(),null==(d=this.surveys)||d.loadIfEnabled(),this.ts(),null==(h=this.externalIntegrations)||h.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){_.LIB_NAME=e,_.LIB_VERSION=t}startSessionRecording(e){var t,r,n,i,s,a=!0===e,o={sampling:a||!(null==e||!e.sampling),linked_flag:a||!(null==e||!e.linked_flag),url_trigger:a||!(null==e||!e.url_trigger),event_trigger:a||!(null==e||!e.event_trigger)};Object.values(o).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),o.sampling&&(null==(r=this.sessionRecording)||r.overrideSampling()),o.linked_flag&&(null==(n=this.sessionRecording)||n.overrideLinkedFlag()),o.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),o.event_trigger&&(null==(s=this.sessionRecording)||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){if(this.exceptions){var r=Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(y({},n,t))}}addExceptionStep(e,t){var r;null==(r=this.exceptions)||r.addExceptionStep(e,t)}captureLog(e){var t;null==(t=this.logs)||t.captureLog(e)}get logger(){var e,t;return null!=(e=null==(t=this.logs)?void 0:t.logger)?e:ay.es}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,r;return null!=(t=null==(r=this.toolbar)?void 0:r.loadToolbar(e))&&t}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!=(e=this.config.name)?e:ap;return t!==ap&&(t=ap+"."+t),t}_isIdentified(){var e,t;return(null==(e=this.persistence)?void 0:e.get_property(rF))===rZ||(null==(t=this.sessionPersistence)?void 0:t.get_property(rF))===rZ}Vn(){var e,t;return!("never"===this.config.person_profiles||this.config.person_profiles===r0&&!this._isIdentified()&&X(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[t8])&&(null==(t=this.persistence)||null==(t=t.props)||!t[rq]))}Hn(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.Vn()||this.Zn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Zn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Zn(e){return"never"===this.config.person_profiles?(t0.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Qn(rq,!0),!0)}In(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==rK)}ts(){var e,t,r,n,i=this.In();return(null==(e=this.persistence)?void 0:e.xi)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.xi)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i&&(this.bn.clear(),this.Gn()),i}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==rJ){if(this.mn()){this.Jn(!0,!0),null==(i=this.sessionManager)||i.destroy(),null==(s=this.pageViewManager)||s.destroy(),this.sessionManager=new sz(this),this.pageViewManager=new ic(this),this.persistence&&(this.sessionPropsManager=new sB(this,this.sessionManager,this.persistence));var r,n,i,s,a,o,l,u,c=null!=(a=null==(o=this.config.__extensionClasses)?void 0:o.sessionRecording)?a:null==(l=ay.__defaultExtensionClasses)?void 0:l.sessionRecording;c&&(this.sessionRecording=this.gn(this.sessionRecording,new c(this)),this.dn&&(null==(u=this.sessionRecording)||null==u.onRemoteConfig||u.onRemoteConfig(this.dn)))}this.consent.optInOut(!0),this.ts(),this.qn(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),this.config.cookieless_mode==rK&&(null==(r=this.surveys)||r.loadIfEnabled()),(K(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!=(n=null==e?void 0:e.captureEventName)?n:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.jn()}else t0.warn(al)}opt_out_capturing(){var e,t,r;this.config.cookieless_mode!==rJ?(this.config.cookieless_mode===rK&&this.consent.isOptedIn()&&this.Jn(!0,!0),this.consent.optInOut(!1),this.ts(),this.config.cookieless_mode===rK&&(this.register({distinct_id:rz,$device_id:null}),null==(e=this.sessionRecording)||e.stopRecording(),this.sessionRecording=void 0,null==(t=this.sessionManager)||t.destroy(),null==(r=this.pageViewM
3anager)||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.jn(),this.qn())):t0.warn(al)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return 1===e?"granted":0===e?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===rJ||(this.config.cookieless_mode===rK?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.ts()}_is_bot(){return s?sW(s,this.config.custom_blocked_useragents):void 0}jn(){a&&("visible"===a.visibilityState?this.kn||(this.kn=!0,this.capture(r3,{title:a.title},{send_instantly:!0}),this.xn&&(a.removeEventListener(r1,this.xn),this.xn=null)):this.xn||(this.xn=this.jn.bind(this),ns(a,r1,this.xn)))}debug(e){!1===e?(null==n||n.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==n||n.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Ki(){var e,t,r,n,i=this.Tn||{};return"advanced_disable_flags"in i?!!i.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(t0.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(t="advanced_disable_decide",r=(e="advanced_disable_flags")in i&&!ee(i[e]),n=t in i&&!ee(i[t]),r?i[e]:!!n&&(t0&&t0.warn("Config field '"+t+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),i[t]))}Pt(e){if(ee(this.config.before_send))return e;var t,r=Object.keys(null!=(t=e.properties)?t:{}).filter(es),n=G(this.config.before_send)?this.config.before_send:[this.config.before_send],i=e;for(var s of n){if(ee(i=s(i))){var a="Event '"+e.event+"' was rejected in beforeSend function";return ei(e.event)?t0.warn(a+". This can cause unexpected behavior."):t0.info(a),null}i.properties&&!X(i.properties)||t0.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}for(var o of r)if(i.properties&&ee(i.properties[o]))return t0.warn("Event '"+e.event+"' had its '"+o+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return i}getPageViewId(){var e;return null==(e=this.pageViewManager.ui)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(r)})}Mn(e){var t=en(e)&&!e,r=nw.N()&&"true"===nw.P("ph_debug");return!t&&(!!r||e)}}ay.__defaultExtensionClasses={},ay.es=(()=>{var e=()=>{};return{trace:e,debug:e,info:e,warn:e,error:e,fatal:e}})(),function(e,t){for(var r=0;t.length>r;r++)e.prototype[t[r]]=nr(e.prototype[t[r]])}(ay,["identify"]);class ab{constructor(e){this.disabled=!1===e;var t=Y(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,r){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<this.thresholdPx&&this.timeoutMs>r-n.timestamp){if(this.clicks.push({x:e,y:t,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var aE="$copy_autocapture",aw=t1("[AutoCapture]");function ax(e,t){return t.length>e?t.slice(0,e)+"...":t}var aS=t1("[ExceptionAutocapture]"),aP=()=>{},aR=t1("[TracingHeaders]"),aO=t1("[Web Vitals]"),aT="disabled",ak="lazy_loading",aA="awaiting_config",aI="missing_config";t1("[SessionRecording]"),t1("[SessionRecording]");var aC="[SessionRecording]",aN=t1(aC),aj=t1("[Heatmaps]");function aM(e){return Y(e)&&"clientX"in e&&"clientY"in e&&et(e.clientX)&&et(e.clientY)}
3var aL=t1("[Product Tours]"),aF=e=>{var t;return!e.config.disable_product_tours&&!(null==(t=e.persistence)||!t.get_property(ra))},aD=["$set_once","$set"],a$=t1("[SiteApps]"),aU="Error while initializing PostHog app with config id ";function aB(e,t,r){if(ee(e))return!1;switch(r){case"exact":return e===t;case"contains":return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*"),"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class aH{constructor(e){this.rs=new sH,this.ns=(e,t)=>this.ss(e,t)&&this.os(e,t)&&this.ls(e,t)&&this.us(e,t),this.ss=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.hs=new Set,this.ds=new Set}init(){var e,t;K(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,r;if(!K(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,r;null==(t=this.ds)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.hs)||t.add((null==e?void 0:e.event)||"")})}),null!=(r=this._instance)&&r.autocapture)){var n,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(n=this._instance)||n.autocapture.setElementSelectors(i)}}on(e,t){var r;null!=t&&0!=e.length&&(this.hs.has(e)||this.hs.has(t.event))&&this.ds&&(null==(r=this.ds)?void 0:r.size)>0&&this.ds.forEach(e=>{this.vs(t,e)&&this.rs.emit("actionCaptured",e.name)})}cs(e){this.onAction("actionCaptured",t=>e(t))}vs(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.ns(e,r))return!0;return!1}onAction(e,t){return this.rs.on(e,t)}os(e,t){if(null!=t&&t.url){var r,n=null==e||null==(r=e.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n||!aB(n,t.url,t.url_matching||"contains"))return!1}return!0}ls(e,t){return!!this.fs(e,t)&&!!this.ps(e,t)&&!!this.gs(e,t)}fs(e,t){if(null==t||!t.href)return!0;var r=this.ys(e);if(r.length>0)return r.some(e=>aB(e.href,t.href,t.href_matching||"exact"));var n,i,s=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";return!!s&&aB((i=s.match(/(?::|")href="(.*?)"/))?i[1]:"",t.href,t.href_matching||"exact")}ps(e,t){if(null==t||!t.text)return!0;var r=this.ys(e);if(r.length>0)return r.some(e=>aB(e.text,t.text,t.text_matching||"exact")||aB(e.$el_text,t.text,t.text_matching||"exact"));var n,i,s,a,o=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";return!!o&&(i=function(e){for(var t,r=[],n=/(?::|")text="(.*?)"/g;!ee(t=n.exec(e));)r.includes(t[1])||r.push(t[1]);return r}(o),s=t.text,a=t.text_matching||"exact",i.some(e=>aB(e,s,a)))}gs(e,t){if(null==t||!t.selector)return!0;var r,n,i=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(null!=i&&i.includes(t.selector))return!0;var s=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";if(t.selector_regex&&s)try{return new RegExp(t.selector_regex).test(s)}catch(e){}return!1}ys(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}us(e,t){return null==t||!t.properties||0===t.properties.length||sJ(t.properties.reduce((e,t)=>{var r=G(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:r,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class aq{constructor(e){var t;this.bs=[],this._instance=e,this._s=new Map,this.ws=new Map,this.ks=new Map,null==(t=this._instance)||null==t.onSessionId||t.onSessionId(e=>this.xs(e))}Ss(e){return!1}Cs(){return null}Ms(e){}Ts(){}Es(e,t){return!!e&&sJ(e.propertyFilters,null==t?void 0:t.properties)}Is(e,t){var r=new Map;return e.forEach(e=>{var n;null==(n=e.conditions)||null==(n=n[t])||null==(n=n.values)||n.forEach(t=>{if(null!=t&&t.name){var n=r.get(t.name)||[];n.push(e.id),r.set(t.name,n)}})}),r}Ps(e,t,r){var n=(r===iq.Activation?this._s:this.ws).get(e),i=[];return this.Rs(e=>{i=e.filter(e=>null==n?void 0:n.includes(e.id))}),i.filter(n=>{var i,s=null==(i=n.conditions)||null==(i=i[r])||null==(i=i.values)?void 0:i.find(t=>t.name===e);return this.Es(s,t)})}register(e){var t;K(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.As(e),this.Fs(e))}Fs(e){var t=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0});0!==t.length&&(null==this.Ls&&(this.Ls=new aH(this._instance),this.Ls.init(),this.Ls.cs(e=>{this.onAction(e)}
3)),t.forEach(e=>{var t,r,n,i,s;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(r=e.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(i=this.Ls)||i.register(e.conditions.actions.values),null==(s=e.conditions)||null==(s=s.actions)||null==(s=s.values)||s.forEach(t=>{if(t&&t.name){var r=this.ks.get(t.name);r&&r.push(e.id),this.ks.set(t.name,r||[e.id])}}))}))}As(e){var t,r=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.events)&&(null==(r=e.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0}),n=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(r=e.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0});0===r.length&&0===n.length||(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this._s=this.Is(e,iq.Activation),this.ws=this.Is(e,iq.Cancellation))}onEvent(e,t){var r,n,i=this.Os(),s=(null==t||null==(r=t.properties)?void 0:r.$survey_id)||(null==t||null==(n=t.properties)?void 0:n.$product_tour_id);if(s&&this.getActivatedIds().includes(s)){var a=this.Ds(e,s);if("consume"===a)return i.info("event consumed activated item, removing it",{event:e,itemId:s}),void this.$s([s]);if("persist"===a)return i.info("shown item promoted to persisted activation",{event:e,itemId:s}),this.Ns(s),void this.qs([s])}if(this.ws.has(e)){var o=this.Ps(e,t,iq.Cancellation);o.length>0&&(i.info("cancel event matched, cancelling items",{event:e,itemsToCancel:o.map(e=>e.id)}),this.$s(o.map(e=>e.id)),o.forEach(e=>this.js(e.id)))}if(this._s.has(e)){i.info("event name matched",{event:e,eventPayload:t,items:this._s.get(e)});var l=this.Ps(e,t,iq.Activation);this.Bs(l.map(e=>e.id))}}onAction(e){this.ks.has(e)&&this.Bs(this.ks.get(e)||[])}Bs(e){var t;if(0!==e.length){var r=!(null==(t=this._instance)||null==t.get_session_id||!t.get_session_id()),n=[];for(var i of e)r&&this.Ss(i)?this.Ns(i)&&this.Hs(i):n.push(i);n.length>0&&(this.bs=[...new Set([...this.bs,...n])]),this.Os().info("updating activated items",{activatedItems:this.getActivatedIds()})}}Ns(e){this.bs=this.bs.filter(t=>t!==e);var t=this.Us();return!t.includes(e)&&(this.zs([...t,e]),this.Ws(),!0)}$s(e){var t=new Set(e);this.bs=this.bs.filter(e=>!t.has(e));var r=this.Vs(),n=r.filter(e=>!t.has(e));n.length!==r.length&&(this.zs(n),0===n.length&&this.Zs()),this.qs(e)}Gs(){var e,t=this.Cs();if(!t)return{};var r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t];return r&&"object"==typeof r?r:{}}Hs(e){if(this.Cs()){var t=this.Gs();this.Ms(y({},t,{[e]:Date.now()}))}}qs(e){if(this.Cs()){var t=this.Gs(),r={},n=!1;for(var i of Object.entries(t)){var s=i[0],a=i[1];e.includes(s)?n=!0:r[s]=a}n&&(X(r)?this.Ts():this.Ms(r))}}Qs(){this.Cs()&&this.Ts()}getActivationTimestamp(e){if(this.Us().includes(e)){var t=this.Gs()[e];return et(t)?t:void 0}}Vs(){var e,t=this.Ks();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}Us(){var e,t,r=this.Vs();if(0===r.length)return[];var n=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[this.Js()],i=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();return i&&n===i?r:[]}Ws(){var e,t=null==(e=this._instance)||null==e.get_session_id?void 0:e.get_session_id();t&&this.Ys(t)}Zs(){this.Xs()}xs(e){var t,r=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.Js()];if(r&&r!==e){var n=this.Vs(),i=this.Gs();n.length>0&&(this.zs([]),n.filter(e=>et(i[e])).forEach(e=>this.js(e))),this.Zs(),this.Qs()}}getActivatedIds(){return[...new Set([...this.Us(),...this.bs])].filter(e=>!this.ta(e))}reset(){this.bs=[],this.Vs().length>0&&this.zs([]),this.Zs(),this.Qs()}getEventToItemsMap(){return this._s}ea(){return this.Ls}}class az extends aq{constructor(e){super(e)}Ks(){return rk}Js(){return rA}Cs(){return rI}Ms(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[rI]:e})}Ts(){var e;null==(e=this._instance)||null==(e=e.persistence)||e.unregister(rI)}Ss(e){this.Rs(t=>{r=t.find(t=>t.id===e)});var t,r,n=null==(t=r)||null==(t=t.appearance)?void 0:t.surveyPopupDelaySeconds;return et(n)&&n>0}ia(){return iW.SHOWN}Rs(e){var t;null==(t=this._instance)||t.getSurveys(e)}js(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}Os(){return s3}zs(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[rk]:e})}Ys(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[rA]:e})}Xs(){var e;null==(e=this._instance)||null==(e=e.persistence)||e.unregister(rA)}ta(){return!1}Ds(e,t){var r,n,i;return this.Rs(e=>{i=e.find(e=>e.id===t)}),!i||s2(r=i)&&!(null==(n=r.conditions)||null==(n=n.events)||!n.repeatedActivation)||"always"===r.schedule?e===iW.SHOWN?"consume":"ignore":e===iW.SHOWN?"persist":e===iW.DISMISSED||e===iW.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}
3getEventToSurveys(){return this.getEventToItemsMap()}}var aW="SDK is not enabled or survey functionality is not yet loaded",aG="Disabled. Not loading surveys.",aV=null!=n&&n.location?ib(n.location.hash,"__posthog")||ib(location.hash,"state"):null,aY="_postHogToolbarParams",aX=t1("[Toolbar]"),aK=t1("[FeatureFlags]"),aJ=t1("[FeatureFlags]",{debugEnabled:!0}),aQ="\" failed. Feature flags didn't load in time.",aZ=e=>{for(var t={},r=0;e.length>r;r++)t[e[r]]=!0;return t},a0=e=>{var t={};for(var r of ne(e||{})){var n=r[1];n&&(t[r[0]]=n)}return t},a1=t1("[Error tracking]"),a2="Refusing to render web experiment since the viewer is a likely bot",a3={icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>-1===t.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>sV(t,e),not_regex:(e,t)=>!sV(t,e),exact:(e,t)=>t===e,is_not:(e,t)=>t!==e};class a4{get Ne(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{a4.ra("retrieved web experiments from the server"),t.na=new Map,e.forEach(e=>{if(e.feature_flag_key){t.na&&(a4.ra("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.na)||r.set(e.feature_flag_key,e));var r,n=t._instance.getFeatureFlag(e.feature_flag_key);J(n)&&e.variants[n]&&t.sa(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var s=e.variants[i];a4.aa(s,t._instance)&&t.sa(e.name,i,s.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}initialize(){}onFeatureFlags(e){if(this._is_bot())a4.ra(a2);else if(!this.Ne.disable_web_experiments){if(ee(this.na))return this.na=new Map,this.loadIfEnabled(),void this.previewWebExperiment();a4.ra("applying feature flags",e),e.forEach(e=>{var t;if(this.na&&null!=(t=this.na)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.na)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.sa(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=a4.getWindowLocation();if(null!=e&&e.search){var t=im(null==e?void 0:e.search,"__experiment_id"),r=im(null==e?void 0:e.search,"__experiment_variant");t&&r&&(a4.ra("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.oa(parseInt(t),r,e)},!1,!0))}}loadIfEnabled(){this.Ne.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,r){if(this.Ne.disable_web_experiments&&!r)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Ne.token),method:"GET",timestampMode:"query",callback:t=>e(200===t.statusCode&&t.json&&t.json.experiments||[])})}oa(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(a4.ra("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.sa(n[0].name,t,n[0].variants[t].transforms))}static aa(e,t){return!ee(e.conditions)&&a4.la(e,t)&&a4.ua(e)}static la(e,t){if(ee(e.conditions)||ee(null==(n=e.conditions)?void 0:n.url))return!0;var r=a4.getWindowLocation();if(r){var n,i,s,a,o=nk(t,r.href);return null==(i=e.conditions)||!i.url||a3[null!=(s=null==(a=e.conditions)?void 0:a.urlMatchType)?s:"icontains"](e.conditions.url,o)}return!1}
3static getWindowLocation(){return null==n?void 0:n.location}static ua(e){if(ee(e.conditions)||ee(null==(r=e.conditions)?void 0:r.utm))return!0;var t=iT();if(t.utm_source){var r,n,i,s,a,o,l,u,c,d=null==(n=e.conditions)||null==(n=n.utm)||!n.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==t.utm_campaign,h=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_source||(null==(a=e.conditions)||null==(a=a.utm)?void 0:a.utm_source)==t.utm_source,p=null==(o=e.conditions)||null==(o=o.utm)||!o.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==t.utm_medium,f=null==(u=e.conditions)||null==(u=u.utm)||!u.utm_term||(null==(c=e.conditions)||null==(c=c.utm)?void 0:c.utm_term)==t.utm_term;return d&&p&&f&&h}return!1}static ra(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;t>n;n++)r[n-1]=arguments[n];t0.info("[WebExperiments] "+e,r)}sa(e,t,r){this._is_bot()?a4.ra(a2):"control"!==t?r.forEach(r=>{if(r.selector){a4.ra("applying transform of variant "+t+" for experiment "+e+" ",r);var n,i=null==(n=document)?void 0:n.querySelectorAll(r.selector);null==i||i.forEach(e=>{r.html&&(e.innerHTML=r.html),r.css&&e.setAttribute("style",r.css)})}}):a4.ra("Control variants leave the page unmodified.")}_is_bot(){return s&&this._instance?sW(s,this.Ne.custom_blocked_useragents):void 0}}var a5=t1("[Conversations]"),a6="Conversations not available yet.",a8="console",a9="__posthogHandledLogsRequestError",a7=(e,t)=>{var r=e instanceof Error?e:Error(t);return r[a9]=!0,r},oe=e=>!!e&&"object"==typeof e&&!0===e[a9],ot={featureFlags:class{constructor(e){this.ha=!1,this.da=!1,this.va=!1,this.ca=!1,this.fa=!1,this.pa=!1,this.ga=!1,this.ma=!1,this.ya=0,this.ba=()=>{var e=this._a();this.ya=0,e&&this.reloadFeatureFlags()},this._instance=e,this.featureFlagEventHandlers=[],n&&ns(n,"online",this.ba)}destroy(){null==n||n.removeEventListener("online",this.ba)}get Ne(){return this._instance.config}get Tr(){return this._instance.persistence}wa(e){return this._instance.get_property(e)}ka(){var e,t;return null!=(e=null==(t=this.Tr)?void 0:t.Ci(this.Ne.feature_flag_cache_ttl_ms))&&e}xa(){return!!this.ka()&&(this.ma||this.va||(this.ma=!0,aK.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Sa(){var e,t=null!=(e=this.Ne.evaluation_contexts)?e:this.Ne.evaluation_environments;return!this.Ne.evaluation_environments||this.Ne.evaluation_contexts||this.ga||(aK.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ga=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||aK.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}Ca(){return this.Sa().length>0}Ma(){var e=this.Ne.flag_keys;if(!K(e)){if(G(e))return e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||aK.error("Invalid flag key found:",e,"Expected non-empty string"),t});aK.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,r=this._instance.config,n=null!=(e=null==(t=r.bootstrap)?void 0:t.featureFlags)?e:{};if(Object.keys(n).length){var i,s,a=null!=(i=null==(s=r.bootstrap)?void 0:s.featureFlagPayloads)?i:{},o=Object.keys(n).filter(e=>!!n[e]).reduce((e,t)=>(e[t]=n[t]||!1,e),{}),l=Object.keys(a).filter(e=>o[e]).reduce((e,t)=>(a[t]&&(e[t]=a[t]),e),{});this.receivedFeatureFlags({featureFlags:o,featureFlagPayloads:l})}}updateFlags(e,t,r){var n,i,s=null!=r&&r.merge&&null!=(n=this.wa(r_))?n:{},a=null!=r&&r.merge&&null!=(i=this.wa(rb))?i:{},o=y({},s,e),l=y({},a,t),u={};for(var c of Object.entries(o)){var d=c[0],h=c[1];u[d]={key:d,enabled:w(h),variant:x(h),reason:void 0,metadata:K(null==l?void 0:l[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:u})}get hasLoadedFlags(){return this.da}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.wa(ry),t=this.wa(rx),r=this.wa(rS);if(!r&&!t)return e||{};var n=r7({},e||{});for(var i of[...new Set([...Object.keys(r||{}),...Object.keys(t||{})])]){var s,a,o=n[i],l=null==t?void 0:t[i],u=K(l)?null!=(s=null==o?void 0:o.enabled)&&s:!!l,c=K(l)?o.variant:"string"==typeof l?l:void 0,d=null==r?void 0:r[i],h=y({},o,{enabled:u,variant:u?null!=c?c:null==o?void 0:o.variant:void 0});u!==(null==o?void 0:o.enabled)&&(h.original_enabled=null==o?void 0:o.enabled),c!==(null==o?void 0:o.variant)&&(h.original_variant=null==o?void 0:o.variant),d&&(h.metadata=y({},null==o?void 0:o.metadata,{payload:d,original_payload:null==o||null==(a=o.metadata)?void 0:a.payload})),n[i]=h}return this.ha||(aK.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.ha=!0),n}getAllFeatureFlags(){var e=this.getFlagVariants(),t=this.getFlagPayloads();return Object.keys(e).map(r=>{var n=e[r];return{key:r,enabled:w(n),variant:x(n),payload:E(t[r])}})}getFlagVariants(){var e=this.wa(r_),t=this.wa(rx);if(!t)return e||{};for(var r=r7({},e),n=Object.keys(t),i=0;n.length>i;i++)r[n[i]]=t[n[i]];return this.ha||(aK.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.ha=!0),r}getFlagPayloads(){var e=this.wa(rb),t=this.wa(rS);if(!t)return e||{};for(var r=r7({},e||{}),n=Object.keys(t),i=0;n.length>i;i++)r[n[i]]=t[n[i]];return this.ha||(aK.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.ha=!0),r}reloadFeatureFlags(){this.ca||this.Ne.advanced_disable_feature_flags||this._a()||this.Ta||(this._instance.vn.emit("featureFlagsReloading",!0),this.Ta=setTimeout(()=>{this.Ea()},5))}Ia(){clearTimeout(this.Ta),this.Ta=void 0}ensureFlagsLoaded(){this.da||this.va||this.Ta||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.ca=e}Ea(e){var t;
3if(this.Ia(),!this._instance.Ki()&&!this._a())if(this.va)this.fa=!0;else{var r=this.Ne.token,n=this.wa(t5),i={token:r,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:y({},(null==(t=this.Tr)?void 0:t.get_initial_props())||{},this.wa(rP)||{},{$lib:_.LIB_NAME,$lib_version:_.LIB_VERSION}),group_properties:this.wa(rR),timezone:iL()};Z(n)||K(n)||(i.$device_id=n),(null!=e&&e.disableFlags||this.Ne.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.Ca()&&(i.evaluation_contexts=this.Sa());var s=this.Ma();K(s)||(i.flag_keys=s);var a=!!this.Ne.advanced_only_evaluate_survey_feature_flags,o=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Ne.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.va=!0,this._instance._send_request({method:"POST",url:o,data:i,compression:this.Ne.disable_compression?void 0:iH.Base64,timestampMode:"body",timeout:this.Ne.feature_flag_request_timeout_ms,callback:e=>{var t,r,n,s=!0;if(this.Pa(e.statusCode),200===e.statusCode&&(this.fa||(this.$anon_distinct_id=void 0),s=!1),this.va=!1,!i.disable_flags||this.fa){this.pa=!s;var o=[];e.error?e.error instanceof Error?o.push("AbortError"===e.error.name?"timeout":"connection_error"):o.push("unknown_error"):200!==e.statusCode&&o.push("api_error_"+e.statusCode),null!=(t=e.json)&&t.errorsWhileComputingFlags&&o.push("errors_while_computing_flags");var l,u=!(null==(r=e.json)||null==(r=r.quotaLimited)||!r.includes("feature_flags"));(u&&o.push("quota_limited"),null==(n=this.Tr)||n.register({[rM]:o}),u)?aK.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(i.disable_flags||this.receivedFeatureFlags(null!=(l=e.json)?l:{},s,{partialResponse:a}),this.fa&&(this.fa=!1,this.Ea()))}}})}}_a(){return iE(this.ya,3)}Pa(e){this.ya=iw(e,this.ya,3,()=>aK.warn("Feature flag requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped refreshing feature flags; will try again when connectivity changes."))}getFeatureFlag(e,t){var r;if(void 0===t&&(t={}),!t.fresh||this.pa)if(this.da||this.getFlags()&&this.getFlags().length>0){if(!this.xa()){var n=this.getFeatureFlagResult(e,t);return null!=(r=null==n?void 0:n.variant)?r:null==n?void 0:n.enabled}}else aK.warn('getFeatureFlag for key "'+e+aQ)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),!t.fresh||this.pa)if(this.da||this.getFlags()&&this.getFlags().length>0){if(!this.xa()){var r=this.getFlagVariants(),n=e in r,i=r[e],s=this.getFlagPayloads()[e],a=String(i),o=this.wa(rE)||void 0,l=this.wa(rL)||void 0,u=this.wa(rN)||{};if(this.Ne.advanced_feature_flags_dedup_per_session){var c,d=this._instance.get_session_id(),h=this.wa(rj);d&&d!==h&&(u={},null==(c=this.Tr)||c.register({[rN]:u,[rj]:d}))}if((t.send_event||!("send_event"in t))&&(!(e in u)||!u[e].includes(a))){G(u[e])?u[e].push(a):u[e]=[a],null==(_=this.Tr)||_.register({[rN]:u});var p=this.getFeatureFlagDetails(e),f=[...null!=(v=this.wa(rM))?v:[]];K(i)&&f.push("flag_missing");var g={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:o,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:(null==(m=this.Ne.bootstrap)||null==(m
3=m.featureFlags)?void 0:m[e])||null,$feature_flag_bootstrapped_payload:(null==(y=this.Ne.bootstrap)||null==(y=y.featureFlagPayloads)?void 0:y[e])||null,$used_bootstrap_value:!this.pa};K(null==p||null==(b=p.metadata)?void 0:b.has_experiment)||(g.$feature_flag_has_experiment=p.metadata.has_experiment),K(null==p||null==(w=p.metadata)?void 0:w.version)||(g.$feature_flag_version=p.metadata.version);var _,v,m,y,b,w,x,S,P,R,O,T,k=null!=(x=null==p||null==(S=p.reason)?void 0:S.description)?x:null==p||null==(P=p.reason)?void 0:P.code;k&&(g.$feature_flag_reason=k),null!=p&&null!=(R=p.metadata)&&R.id&&(g.$feature_flag_id=p.metadata.id),K(null==p?void 0:p.original_variant)&&K(null==p?void 0:p.original_enabled)||(g.$feature_flag_original_response=K(p.original_variant)?p.original_enabled:p.original_variant),null!=p&&null!=(O=p.metadata)&&O.original_payload&&(g.$feature_flag_original_payload=null==p||null==(T=p.metadata)?void 0:T.original_payload),f.length&&(g.$feature_flag_error=f.join(",")),this._instance.capture("$feature_flag_called",g)}if(n)return{key:e,enabled:!!i,variant:"string"==typeof i?i:void 0,payload:E(s)}}}else aK.warn('getFeatureFlagResult for key "'+e+aQ)}getRemoteConfigPayload(e,t){var r=this.Ne.token,n={distinct_id:this._instance.get_distinct_id(),token:r,person_properties:{$lib:_.LIB_NAME,$lib_version:_.LIB_VERSION}};this.Ca()&&(n.evaluation_contexts=this.Sa());var i=this.Ma();K(i)||(n.flag_keys=i),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Ne.disable_compression?void 0:iH.Base64,timestampMode:"body",timeout:this.Ne.feature_flag_request_timeout_ms,callback(r){var n,i=null==(n=r.json)?void 0:n.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),t.fresh&&!this.pa)return t.defaultValue;if(!(this.da||this.getFlags()&&this.getFlags().length>0))return aK.warn('isFeatureEnabled for key "'+e+aQ),t.defaultValue;var r=this.getFeatureFlag(e,t);return K(r)?t.defaultValue:!!r}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t,r){if(this.Tr){this.da=!0;var n=this.getFlagVariants(),i=this.getFlagPayloads(),s=this.getFlagsWithDetails();!function(e,t,r,n,i,s){void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i={});var a,o=((a=e.flags)?(e.featureFlags=Object.fromEntries(Object.keys(a).map(e=>{var t;return[e,null!=(t=a[e].variant)?t:a[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(a).filter(e=>a[e].enabled).filter(e=>{var t;return null==(t=a[e].metadata)?void 0:t.payload}).map(e=>{var t;return[e,null==(t=a[e].metadata)?void 0:t.payload]}))):e.featureFlags&&aK.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e),l=o.flags,u=o.featureFlags,c=o.featureFlagPayloads;if(u){var d=e.requestId,h=e.evaluatedAt;if(G(u)){aK.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var p={};if(u)for(var f=0;u.length>f;f++)p[u[f]]=!0;t&&t.register({[rv]:u,[r_]:p,[rw]:!1})}else{var g=u,_=c,v=l;if(null!=s&&s.partialResponse)g=y({},r,g),_=y({},n,_),v=y({},i,v);else if(e.errorsWhileComputingFlags)if(l){var m=new Set(Object.keys(l).filter(e=>{var t;return!(null!=(t=l[e])&&t.failed)}));g=y({},r,Object.fromEntries(Object.entries(g).filter(e=>m.has(e[0])))),_=y({},n,Object.fromEntries(Object.entries(_||{}).filter(e=>m.has(e[0])))),v=y({},i,Object.fromEntries(Object.entries(v||{}).filter(e=>m.has(e[0]))))}else g=y({},r,g),_=y({},n,_),v=y({},i,v);t&&t.register(y({[rv]:Object.keys(a0(g)),[r_]:g||{},[rb]:_||{},[ry]:v||{},[rw]:!0===e.minimalFlagCalledEvents},d?{[rE]:d}:{},h?{[rL]:h}:{}))}}}(e,this.Tr,n,i,s,r),t||(this.ma=!1),this.Ra(t)}}override(e,t){void 0===t&&(t=!1),aK.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.Tr)return aK.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this.Tr.unregister(rx),this.Tr.unregister(rS),this.Ra(),aJ.info("All overrides cleared");if(G(e)){var t,r=aZ(e);return this.Tr.register({[rx]:r}),this.Ra(),aJ.info("Flag overrides set",{flags:e})}if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){if(this.ha=!!(null!=(t=e.suppressWarning)&&t),"flags"in e){if(!1===e.flags)this.Tr.unregister(rx),aJ.info("Flag overrides cleared");else if(e.flags){if(G(e.flags)){var n=aZ(e.flags);this.Tr.register({[rx]:n})}else this.Tr.register({[rx]:e.flags});aJ.info("Flag overrides set",{flags:e.flags})}}return"payloads"in e&&(!1===e.payloads?(this.Tr.unregister(rS),aJ.info("Payload overrides cleared")):e.payloads&&(this.Tr.register({[rS]:e.payloads}),aJ.info("Payload overrides set",{payloads:e.payloads}))),void this.Ra()}if(e&&"object"==typeof e)return this.Tr.register({[rx]:e}),this.Ra(),aJ.info("Flag overrides set",{flags:e});aK.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.da){var t=this.Aa(),r=t.flags,n=t.flagVariants;
3try{e(r,n)}catch(e){aK.error("Error while running feature flags callback",e)}}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this.wa(rm)||[]).find(t=>t.flagKey===e),s={["$feature_enrollment/"+e]:t},a={$feature_flag:e,$feature_enrollment:t,$set:s};i&&(a.$early_access_feature_name=i.name),r&&(a.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(s,!1);var o=y({},this.getFlagVariants(),{[e]:t});null==(n=this.Tr)||n.register({[rv]:Object.keys(a0(o)),[r_]:o}),this.Ra()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this.wa(rm),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Ne.token+i),method:"GET",timestampMode:"query",callback:t=>{var r,n;if(t.json){var i=t.json.earlyAccessFeatures;return null==(r=this.Tr)||r.unregister(rm),null==(n=this.Tr)||n.register({[rm]:i}),e(i)}}})}Aa(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,r)=>(e[r]=t[r],e),{})}}Ra(e){var t=this.Aa(),r=t.flags,n=t.flagVariants;this.featureFlagEventHandlers.forEach(t=>{try{t(r,n,{errorsLoading:e})}catch(e){aK.error("Error while running feature flags callback",e)}})}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this.wa(rP)||{},n=(null==e?void 0:e.$set)||(null!=e&&e.$set_once?{}:e),i=null==e?void 0:e.$set_once,s={};if(i)for(var a in i)({}).hasOwnProperty.call(i,a)&&(a in r||(s[a]=i[a]));this._instance.register({[rP]:y({},r,s,n)}),t&&this._instance.reloadFeatureFlags()}unsetPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=y({},this.wa(rP)||{});e.forEach(e=>{delete r[e]}),this._instance.register({[rP]:r}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){void 0===e&&(e=!0),this._instance.unregister(rP),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this.wa(rR)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=y({},r[t],e[t]),delete e[t]}),this._instance.register({[rR]:y({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.wa(rR)||{};this._instance.register({[rR]:y({},t,{[e]:{}})})}else this._instance.unregister(rR)}reset(){this.da=!1,this.va=!1,this.ca=!1,this.fa=!1,this.pa=!1,this.$anon_distinct_id=void 0,this.Ia(),this.ha=!1,this.ya=0}}},or=y({productTours:class{get Tr(){return this._instance.persistence}constructor(e){this.Go=null,this.Qo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(e.ok){var t,r,n=e.config;if("productTours"in n){if(this.Tr&&this.Tr.register({[ra]:!!n.productTours}),!aF(this._instance))return!this.Go&&ee(null==(t=this.Tr)?void 0:t.props[rC])||aL.info("product tours disabled; stopping and clearing cached tours"),null==(r=this.Go)||r.stop(),this.Go=null,void this.clearCache();this.loadIfEnabled()}}}loadIfEnabled(){!this.Go&&aF(this._instance)&&this.ai(()=>this.Ko())}ai(e){var t,r;null!=(t=g.__PosthogExtensions__)&&t.generateProductTours?e():null==(r=g.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"product-tours",t=>{t?aL.error("Could not load product tours script",t):e()})}Ko(){var e;!this.Go&&null!=(e=g.__PosthogExtensions__)&&e.generateProductTours&&(this.Go=g.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!G(this.Qo)||t){var r=this.Tr;if(r){var n=r.props[rC];if(G(n)&&!t)return this.Qo=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",timestampMode:"query",callback:t=>{if(aF(this._instance)){var n=t.statusCode;if(200!==n||!t.json){var i="Product Tours API could not be loaded, status: "+n;return 0===n?t.error||aL.warn(i):aL.error(i),void e([],{isLoaded:!1,error:i})}var s=G(t.json.product_tours)?t.json.product_tours:[];this.Qo=s,r&&r.register({[rC]:s}),e(s,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.Qo,{isLoaded:!0})}getActiveProductTours(e){ee(this.Go)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Go.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.Go)||t.showTourById(e)}previewTour(e){this.Go?this.Go.previewTour(e):this.ai(()=>{var t;this.Ko(),null==(t=this.Go)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.Go)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.Go)||e.nextStep()}previousStep(){var e;null==(e=this.Go)||e.previousStep()}clearCache(){var e;this.Qo=null,null==(e=this.Tr)||e.unregister(rC)}resetTour(e){var t;null==(t=this.Go)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Go)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.Go)||t.cancelPendingTour(e)}}},ot),on=y({surveys:class{get Ne(){return this._instance.config}constructor(e){this.cl=void 0,this._surveyManager=null,this.fl=!1,this.pl=[],this.gl=null,this.ml=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Ne.disable_surveys){if(!e.ok)return s3.warn("Remote config unavailable. Not loading surveys.");var t=e.config.surveys;if(ee(t))return s3.warn("Flags not loaded yet. Not loading surveys.");var r=G(t);this.cl=r?t.length>0:t,s3.info("flags response received, isSurveysEnabled: "+this.cl),this.loadIfEnabled()}}reset(){try{var e;null==(e=this._surveyEventReceiver)||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);(null!=n&&n.startsWith(s4)||null!=n&&n.startsWith("inProgressSurvey_"))&&t.push(n)}
3t.forEach(e=>localStorage.removeItem(e))}catch(e){}}loadIfEnabled(){if(!this._surveyManager)if(this.fl)s3.info("Already initializing surveys, skipping...");else if(this.Ne.disable_surveys)s3.info(aG);else if(this.Ne.cookieless_mode&&this._instance.consent.isOptedOut())s3.info("Not loading surveys in cookieless mode without consent.");else{var e=null==g?void 0:g.__PosthogExtensions__;if(e){if(!K(this.cl)||this.Ne.advanced_enable_surveys){var t=this.cl||this.Ne.advanced_enable_surveys;this.fl=!0;try{var r=e.generateSurveys;if(r)return void this.yl(r,t);var n=e.loadExternalDependency;if(!n)return void this.bl(rX);n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.bl("Could not load surveys script",r):this.yl(e.generateSurveys,t)})}catch(e){throw this.bl("Error initializing surveys",e),e}finally{this.fl=!1}}}else s3.error("PostHog Extensions not found.")}}yl(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new az(this._instance),s3.info("Surveys loaded successfully"),this._l({isLoaded:!0})}bl(e,t){s3.error(e,t),this._l({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.pl.push(e),this._surveyManager&&this._l({isLoaded:!0}),()=>{this.pl=this.pl.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this.Ne.disable_surveys)return s3.info(aG),e([]);var r,n=this._instance.get_property(rO);if(n&&!t)return e(n,{isLoaded:!0}),void(this.wl()&&this.getSurveys(()=>{},!0));"undefined"!=typeof Promise&&this.gl?this.gl.then(t=>e(t.surveys,t.context)):("undefined"!=typeof Promise&&(this.gl=new Promise(e=>{r=e})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Ne.token),method:"GET",timestampMode:"query",timeout:this.Ne.surveys_request_timeout_ms,callback:t=>{this.gl=null;var n=t.statusCode;if(200!==n||!t.json){var i="Surveys API could not be loaded, status: "+n;0!==n?s3.error(i):t.error||s3.warn(i),this.ml=Date.now();var s={isLoaded:!1,error:i};return e([],s),void(null==r||r({surveys:[],context:s}))}this.ml=null;var a,o,l=t.json.surveys||[],u=l.filter(e=>{var t;return!(!e.start_date||e.end_date)&&(s2(e)||!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length))});u.length>0&&(null==(o=this._surveyEventReceiver)||o.register(u)),null==(a=this._instance.persistence)||a.register({[rO]:l,[rT]:Date.now()});var c={isLoaded:!0};e(l,c),null==r||r({surveys:l,context:c})}}))}wl(){return this.kl()&&!this.gl&&!this.xl()}kl(){var e=this._instance.get_property(rT);return et(e)&&Date.now()-e>3e5}xl(){return et(this.ml)&&3e5>Date.now()-this.ml}markSurveyAsSeen(e,t){var r;s5({id:e,current_iteration:null!=(r=null==t?void 0:t.iteration)?r:null});try{localStorage.setItem("lastSeenSurveyDate",(new Date).toISOString())}catch(e){}}_l(e){for(var t of this.pl)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){s3.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!ee(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);s3.warn("init was not called")}Sl(e){var t=null;return this.getSurveys(r=>{var n;t=null!=(n=r.find(t=>t.id===e))?n:null}),t}Cl(e){if(ee(this._surveyManager))return{eligible:!1,reason:aW};var t="string"==typeof e?this.Sl(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}Ml(e){if(ee(this._surveyManager))return{eligible:!1,reason:aW};var t="string"==typeof e?this.Sl(e):e;return t?this._surveyManager.checkSurveyRenderability(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(ee(this._surveyManager))return s3.warn("init was not called"),{visible:!1,disabledReason:aW};var t=this.Ml(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return ee(this._surveyManager)?(s3.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:aW})):new Promise(r=>{this.getSurveys(t=>{var n,i=null!=(n=t.find(t=>t.id===e))?n:null;if(i){var s=this.Ml(i);r({visible:s.eligible,disabledReason:s.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,r){var n;if(ee(this._surveyManager))s3.warn("init was not called");else{var i="string"==typeof e?this.Sl(e):e;if(null!=i&&i.id)if(s6.includes(i.type)){var s=null==a?void 0:a.querySelector(t);if(s)return null!=(n=i.appearance)&&n.surveyPopupDelaySeconds?(s3.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;s3.info("Rendering survey "+i.id+" with delay of "+(null==(e=i.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(i,s,r),s3.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s,r);s3.warn("Survey element not found")}else s3.warn("Surveys of type "+i.type+" cannot be rendered in the app");else s3.warn("Survey not found")}}displaySurvey(e,t){var r;if(ee(this._surveyManager))s3.warn("init was not called");else{var n=this.Sl(e);if(n){var i=n;
3if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=y({},n,{appearance:y({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==iV.Popover&&t.initialResponses&&s3.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var s=this.Cl(n);if(!s.eligible)return void s3.warn("Survey is not eligible to be displayed: ",s.reason)}t.displayType!==iV.Inline?this._surveyManager.handlePopoverSurvey(i,t):this.renderSurvey(i,t.selector,t.properties)}else s3.warn("Survey not found")}}cancelPendingSurvey(e){ee(this._surveyManager)?s3.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||null==e.handlePageUnload||e.handlePageUnload()}}},ot),oi=y({experiments:a4},ot),os=y({},ot,{sessionRecording:class{get Ne(){return this._instance.config}get Tr(){return this._instance.persistence}get started(){var e;return!(null==(e=this.Fa)||!e.isStarted)}get status(){var e,t;return this.La===aA||this.La===aI?this.La:null!=(e=null==(t=this.Fa)?void 0:t.status)?e:this.La}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.La=aT,this.Oa=void 0,this.Da=!1,this.$a=(()=>{if(null==a||!a.visibilityState||"visible"===a.visibilityState)return!0;var e,t=null==n||null==(e=n.performance)||null==e.getEntriesByType?void 0:e.getEntriesByType("visibility-state");return!(null!=t&&t.length)||t.some(e=>"visible"===e.name)})(),this.Ie=()=>{var e;"visible"===(null==a?void 0:a.visibilityState)&&(this.$a=!0,null==(e=this.Fa)||null==e.setDocumentWasEverVisible||e.setDocumentWasEverVisible(!0))},this._instance=e,!this._instance.sessionManager)throw aN.error("started without valid sessionManager"),Error(aC+" started without valid sessionManager. This is a bug.");if(this.Ne.cookieless_mode===rJ)throw Error(aC+' cannot be used with cookieless_mode="always"');null!=a&&a.addEventListener&&ns(a,"visibilitychange",this.Ie)}initialize(){this.startIfEnabledOrStop()}dispose(){this.Da=!0,null==a||null==a.removeEventListener||a.removeEventListener("visibilitychange",this.Ie),this.stopRecording()}get Na(){var e,t=!(null==(e=this._instance.get_property(rl))||!e.enabled),r=!this.Ne.disable_session_recording,i=this.Ne.disable_session_recording||this._instance.consent.isOptedOut();return n&&t&&r&&!i}startIfEnabledOrStop(e){var t;if(!(this.Da||this.Na&&null!=(t=this.Fa)&&t.isStarted)){var r=!K(Object.assign)&&!K(Array.from);this.Na&&r?(this.qa(e),aN.info("starting")):(this.La=aT,this.stopRecording())}}qa(e){var t,r,n;this.Na&&(this.La!==aA&&this.La!==aI&&(this.La=ak),null!=g&&null!=(t=g.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=g.__PosthogExtensions__)&&r.initSessionRecording?this.ja(e):null==(n=g.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.Ba,t=>{if(t)return aN.error("could not load recorder",t);this.ja(e)}))}stopRecording(){var e,t;null==(e=this.Oa)||e.call(this),this.Oa=void 0,null==(t=this.Fa)||t.stop()}Ha(){var e,t;null==(e=this.Oa)||e.call(this),this.Oa=void 0,null==(t=this.Fa)||t.discard()}Ua(){var e,t;null==(e=this.Tr)||e.unregister(rg),null==(t=this.Tr)||t.unregister(ru)}za(e,t){if(ee(e))return null;var r=et(e)?e:parseFloat(e);return"number"!=typeof r||!Number.isFinite(r)||0>r||r>1?(aN.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):r}Wa(e){if(this.Tr){var t,r,n=this.Tr,i=()=>{var t,r=!1===e.sessionRecording?void 0:e.sessionRecording,i=this.za(null==(t=this.Ne.session_recording)?void 0:t.sampleRate,"session_recording.sampleRate"),s=this.za(null==r?void 0:r.sampleRate,"remote config sampleRate"),a=null!=i?i:s;ee(a)&&this.Ua();var o=null==r?void 0:r.minimumDurationMilliseconds;n.register({[rl]:y({cache_timestamp:Date.now(),enabled:!!r},r,{networkPayloadCapture:y({capturePerformance:e.capturePerformance},null==r?void 0:r.networkPayloadCapture),canvasRecording:{enabled:null==r?void 0:r.recordCanvas,fps:null==r?void 0:r.canvasFps,quality:null==r?void 0:r.canvasQuality},sampleRate:a,minimumDurationMilliseconds:K(o)?null:o,endpoint:null==r?void 0:r.endpoint,triggerMatchType:null==r?void 0:r.triggerMatchType,masking:null==r?void 0:r.masking,urlTriggers:null==r?void 0:r.urlTriggers,version:null==r?void 0:r.version,triggerGroups:null==r?void 0:r.triggerGroups})})};i(),null==(t=this.Oa)||t.call(this),this.Oa=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){var t=e.ok?e.config:void 0;return t&&"sessionRecording"in t?!1===t.sessionRecording?(this.Wa(t),void this.Ha()):(this.Wa(t),void this.startIfEnabledOrStop()):(this.La===aA&&(this.La=aI,aN.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.Fa)&&r.log?this.Fa.log(e,t):aN.warn("log called before recorder was ready")}get Ba(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(rl);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}Va(){var e,t,r=this._instance.get_property(rl);if(!r)return!1;try{t="object"==typeof r?r:JSON.parse(r)}catch(e){return aN.warn("persisted remote config for session recording is invali
3d and will be ignored",e),!1}var n=null!=(e=t.cache_timestamp)?e:Date.now();return 36e5>=Date.now()-n}ja(e){var t,r,n,i;if(!this.Da){if(null==(t=g.__PosthogExtensions__)||!t.initSessionRecording)return aN.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[rY]:!0});if(this.Fa||(this.Fa=null==(i=g.__PosthogExtensions__)?void 0:i.initSessionRecording(this._instance,this.$a),this.Fa._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Va()){if(this.La===aI||this.La===aA)return;return this.La=aA,aN.info("persisted remote config is stale, requesting fresh config before starting"),void new iZ(this._instance).load()}this.La=ak,null==(r=(n=this.Fa).setDocumentWasEverVisible)||r.call(n,this.$a),this.Fa.start(e)}}onRRwebEmit(e){var t;null==(t=this.Fa)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Fa||null==(t=this.Tr)||t.register({[rd]:!0}),null==(e=this.Fa)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Fa||null==(t=this.Tr)||t.register({[rc]:!0}),null==(e=this.Fa)||e.overrideSampling()}overrideTrigger(e){var t,r;this.Fa||null==(r=this.Tr)||r.register({["url"===e?rh:rp]:!0}),null==(t=this.Fa)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.Fa)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.Fa)||!r.tryAddCustomEvent(e,t))}}},{autocapture:class{constructor(e){this.Za=!1,this.Ga=null,this.Qa=!1,this.Ka=!1,this.instance=e,this.rageclicks=new ab(e.config.rageclick),this.Ja=null}initialize(){this.startIfEnabled()}get Ne(){var e,t,r=Y(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=null==(e=r.url_allowlist)?void 0:e.map(e=>new RegExp(e)),r.url_ignorelist=null==(t=r.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),r}Ya(){if(this.isBrowserSupported()){if(n&&a){var e=e=>{e=e||(null==n?void 0:n.event);try{this.Xa(e)}catch(e){aw.error("Failed to capture event",e)}};if(ns(a,"submit",e,{capture:!0}),ns(a,"change",e,{capture:!0}),ns(a,"click",e,{capture:!0}),this.Ne.capture_copied_text){var t=e=>{e=e||(null==n?void 0:n.event);try{this.Xa(e,aE)}catch(e){aw.error("Failed to capture copy/cut event",e)}};ns(a,"copy",t,{capture:!0}),ns(a,"cut",t,{capture:!0})}}}else aw.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Za&&(this.Ya(),this.Za=!0)}onRemoteConfig(e){if(this.Qa=!0,e.ok){var t=e.config;t.elementsChainAsString&&(this.Ka=t.elementsChainAsString);var r=t.autocapture_opt_out;en(r)&&(this.instance.persistence&&this.instance.persistence.register({[t7]:r}),this.Ga=r),this.startIfEnabled()}else this.startIfEnabled()}setElementSelectors(e){this.Ja=e}getElementSelectors(e){var t,r=[];return null==(t=this.Ja)||t.forEach(t=>{var n=null==a?void 0:a.querySelectorAll(t);null==n||n.forEach(n=>{e===n&&r.push(t)})}),r}get isEnabled(){var e,t,r=null==(e=this.instance.persistence)?void 0:e.props[t7],n=this.Ga,i=this.instance.Ki()&&!this.Qa;if(Z(n)&&!en(r)&&!i)return!1;var s=null!=(t=this.Ga)?t:!!r;return!!this.instance.config.autocapture&&!s}Xa(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,i=nB(e);nj(i)&&(i=i.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&nJ(i,this.instance.config.rageclick)&&this.Xa(e,"$rageclick");var s=t===aE;if(i&&function(e,t,r,i,s,a){if(!n||nQ(e)||null!=r&&r.url_allowlist&&!nF(r.url_allowlist,a)||null!=r&&r.url_ignorelist&&nF(r.url_ignorelist,a))return!1;if(null!=r&&r.dom_event_allowlist){var o,l=r.dom_event_allowlist;if(l&&!l.some(e=>t.type===e))return!1}var u=nZ(e,i),c=u.parentIsUsefulElement,d=u.targetElementList;if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(K(r))return!0;var n,i=function(e){if(r.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var s of e)if(n=i(s))return n.v;return!1}(d,r)||!nq(d,null==r?void 0:r.css_selector_allowlist)||nq(d,null!=(o=null==r?void 0:r.css_selector_ignorelist)?o:nW))return!1;try{var h=n.getComputedStyle(e);
3if(h&&"pointer"===h.getPropertyValue("cursor")&&"click"===t.type)return!0}catch(e){}var p=e.tagName.toLowerCase();switch(p){case"html":return!1;case"form":return(s||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(s||["change","click"]).indexOf(t.type)>=0;default:return c?(s||["click"]).indexOf(t.type)>=0:(s||["click"]).indexOf(t.type)>=0&&(nH.indexOf(p)>-1||"true"===e.getAttribute("contenteditable"))}}(i,e,this.Ne,s,s?["copy","cut"]:void 0,this.instance)){var a=function(e,t){var r,i,s=t.e,a=t.maskAllElementAttributes,o=t.maskAllText,l=t.elementAttributeIgnoreList,u=t.elementsChainAsString,c=t.disableCaptureUrlHashes;if(!nC(e))return{props:{}};for(var d=[e],h=new Set([e]),p=e;p.parentNode&&!nN(p,"body")&&1e3>d.length;)if(nM(p.parentNode)){var f=p.parentNode.host;if(h.has(f))break;h.add(f),d.push(f),p=f}else{if(!nC(p.parentNode)||h.has(p.parentNode))break;h.add(p.parentNode),d.push(p.parentNode),p=p.parentNode}var g,_=[],v={},m=!1,b=!1;if(r9(d,e=>{var t=n0(e);if(nN(e,"a")){var r=e.getAttribute("href");m=!!(t&&r&&n9(r))&&(c?tc(r):r)}$(nD(e),"ph-no-capture")&&(b=!0),_.push(function(e,t,r,n,i){void 0===i&&(i=!1);var s=e.tagName.toLowerCase(),a={tag_name:s};nH.indexOf(s)>-1&&!r&&(a.$el_text="a"===s.toLowerCase()||"button"===s.toLowerCase()?ax(1024,n7(e)):ax(1024,nU(e)));var o=nD(e);o.length>0&&(a.classes=o.filter(function(e){return""!==e})),r9(e.attributes,function(r){var s;if((!n1(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&n9(r.value)&&(!J(s=r.name)||"_ngcontent"!==s.substring(0,10)&&"_nghost"!==s.substring(0,7))){var o=r.value;"class"===r.name&&(o=nL(o).join(" ")),a["attr__"+r.name]=ax(1024,"href"===r.name&&i?tc(o):o)}});for(var l=1,u=1,c=e;c=function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!nC(t));return t}(c);)l++,c.tagName===e.tagName&&u++;return a.nth_child=l,a.nth_of_type=u,a}(e,a,o,l,c)),r7(v,function(e){if(!n0(e))return{};var t={};return r9(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&n9(n)&&(t[r]=n)}}),t}(e))}),b)return{props:{},explicitNoCapture:b};if(o||(_[0].$el_text=nN(e,"a")||nN(e,"button")?n7(e):nU(e)),m){_[0].attr__href=m;var E,w,x=null==(E=iv(m))?void 0:E.host,S=null==n||null==(w=n.location)?void 0:w.host;x&&S&&x!==S&&(g=m)}return{props:r7({$event_type:s.type,$ce_version:1},u?{}:{$elements:_},{$elements_chain:_.map(e=>{var t,r,n={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(r=e.attr__href)?void 0:r.slice(0,2048),attr_class:function(e){var t=e.attr__class;if(t)return G(t)?t:nL(t)}(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return ne(e).filter(e=>0===e[0].indexOf("attr__")).forEach(e=>n.attributes[e[0]]=e[1]),n}).map(e=>{var t,r,n="";if(e.tag_name&&(n+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))n+="."+i.replace(/"/g,"");var s=y({},e.text?{text:e.text}:{},{"nth-child":null!=(t=e.nth_child)?t:0,"nth-of-type":null!=(r=e.nth_of_type)?r:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),a={};return ne(s).sort((e,t)=>e[0].localeCompare(t[0])).forEach(e=>{var t=e[1];return a[ie(e[0].toString())]=ie(t.toString())}),(n+=":")+ne(a).map(e=>e[0]+'="'+e[1]+'"').join("")}).join(";")},null!=(r=_[0])&&r.$el_text?{$el_text:null==(i=_[0])?void 0:i.$el_text}:{},g&&"click"===s.type?{$external_click_url:g}:{},v)}}(i,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Ne.element_attribute_ignorelist,elementsChainAsString:this.Ka,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes}),o=a.props;if(a.explicitNoCapture)return!1;var l=this.getElementSelectors(i);if(l&&l.length>0&&(o.$element_selectors=l),t===aE){var u,c=n$(null==n||null==(u=n.getSelection())?void 0:u.toString()),d=e.type||"clipboard";if(!c)return!1;o.$selected_content=c,o.$copy_type=d}return this.instance.capture(t,o),!0}}}isBrowserSupported(){return V(null==a?void 0:a.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.eo=(null==n||null==(t=n.location)?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(t0.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.io&&this.io(),this.io=void 0,t0.info("History API monitoring stopped")}monitorHistoryChanges(){n&&n.history&&(this.ro("pushState"),this.ro("replaceState"),this.no())}ro(e){var t;if(n&&(null==(t=n.history[e])||!t.__posthog_wrapped__)){var r=this;!function(e,t,r){try{if(!(t in e))return aP;var n={next:e[t]},i=r(function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return n.next.apply(this,t)});V(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:n}})),e[t]=i,()=>{if(e[t]!==i)for(var r=e[t];V(r)&&r.__posthog_layer__;){var s=r.__posthog_layer__;if(s.next===i)return void(s.next=n.next);r=s.next}else e[t]=n.next}}catch(e){return aP}}(n.history,e,t=>function(n,i,s){t.call(this,n,i,s),r.so(e)})}}so(e){try{var t,r=null==n||null==(t=n.location)?void 0:t.pathname;if(!r)return;r!==this.eo&&this.isEnabled&&this._instance.capture(r3,{navigation_type:e}),this.eo=r}catch(t){t0.error("Error capturing "+e+" pageview",t)}}no(){if(!this.io){var e=()=>{this.so("popstate")};ns(n,"popstate",e),this.io=()=>{n&&n.removeEventListener("popstate",e)}}}},heatmaps:class{get Ne(){return this.instance.config}constructor(e){var t;this.ao=!1,this.Za=!1,this.oo=null,this.instance=e,this.ao=!(null==(t=this.instance.persistence)||!t.props[re]),this.rageclicks=new ab(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Y(this.Ne.capture_heatmaps)&&this.Ne.capture_heatmaps.flush_interval_milliseconds&&(e=this.Ne.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return ee(this.Ne.capture_heatmaps)?ee(this.Ne.enable_heatmaps)?this.ao:this.Ne.enable_heatmaps:!1!==this.Ne.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this.Za||(aj.info("starting..."),this.lo(),this.Ie());else{var e;clearInterval(null!=(e=this.oo)?e:void 0),this.uo(),this.getAndClearBuffer()}}onRemoteConfig(e){if(e.ok){var t=e.config;if("heatmaps"in t){var r=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[re]:r}),this.ao=r,this.startIfEnabled()}}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}ho(e){aM(e.originalEvent)&&this.ke(e.originalEvent,"deadclick")}Ie(){this.oo&&clearInterval(this.oo),this.oo="visible"===(null==a?void 0:a.visibilityState)?setInterval(this.pr.bind(this),this.flushIntervalMilliseconds):null}lo(){n&&a&&(this.do=this.pr.bind(this),ns(n,r2,this.do),this.vo=e=>this.ke(e||(null==n?void 0:n.event)),ns(a,"click",this.vo,{capture:!0}),this.co=e=>this.fo(e||(null==n?void 0:n.event)),ns(a,"mousemove",this.co,{capture:!0}),this.po=new is(this.instance,ir,this.ho.bind(this)),this.po.startIfEnabledOrStop(),this.mo=this.Ie.bind(this),ns(a,r1,this.mo),this.Za=!0)}uo(){var e;n&&a&&(this.do&&n.removeEventListener(r2,this.do),this.vo&&a.removeEventListener("click",this.vo,{capture:!0}),this.co&&a.removeEventListener("mousemove",this.co,{capture:!0}),this.mo&&a.removeEventListener(r1,this.mo),clearTimeout(this.yo),null==(e=this.po)||e.stop(),this.Za=!1)}bo(e,t){var r=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),a=function(e,t,r){for(var i=e;i&&nC(i)&&!nN(i,"body")&&i!==r;){var s,a,o,l=void 0;try{l=null==(s=null!=(a=null==(o=i.ownerDocument)?void 0:o.defaultView)?a:n)?void 0:s.getComputedStyle(i).position}catch(e){break}if($(t,l))return!0;
vendor: 8,849 bytes, line 3
3i=nz(i)}return!1}(nB(e),["fixed","sticky"],s);return{x:e.clientX+(a?0:i),y:e.clientY+(a?0:r),target_fixed:a,type:t}}ke(e,t){var r;if(void 0===t&&(t="click"),!nI(e.target)&&aM(e)){var n=this.bo(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&nJ(nB(e),this.instance.config.rageclick)&&this.Vt(y({},n,{type:"rageclick"})),this.Vt(n)}}fo(e){!nI(e.target)&&aM(e)&&(clearTimeout(this.yo),this.yo=setTimeout(()=>{this.Vt(this.bo(e,"mousemove"))},500))}Vt(e){if(n){var t=this.Ne.disable_capture_url_hashes?tc(n.location.href):n.location.href,r=this.Ne.custom_personal_data_properties,i=iy(t,this.Ne.mask_personal_data_properties?[...iS,...r||[]]:[],iR);this.R=this.R||{},this.R[i]||(this.R[i]=[]),this.R[i].push(e)}}pr(){this.R&&!X(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:is,webVitalsAutocapture:class{constructor(e){var t;this.ao=!1,this.Za=!1,this.R={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},this._o=()=>{clearTimeout(this.wo),this.wo=void 0,0!==this.R.metrics.length&&(this._instance.capture("$web_vitals",y({$current_url:this.R.url},this.R.metrics.reduce((e,t)=>y({},e,{["$web_vitals_"+t.name+"_event"]:y({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{}))),this.R={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ko=e=>{var t;if(this.R=this.R||{navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},ee(null==e?void 0:e.name)||ee(null==e?void 0:e.value))aO.error("Invalid metric received",e);else{var r="string"==typeof e.navigationURL?e.navigationURL:void 0,n=this.xo(r);if(!K(n)){var i=et(e.navigationId)||"string"==typeof e.navigationId?"navigation:"+e.navigationId:"url:"+n;if(!this.So||this.So>e.value){this.R.navigationKey!==i&&(this._o(),this.wo=setTimeout(this._o,this.flushToCaptureTimeoutMs)),K(this.R.navigationKey)&&(this.R.navigationKey=i,this.R.url=n),this.R.firstMetricTimestamp=K(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0);var s=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0),a=y({},e,r?{navigationURL:n}:{},{$current_url:n,timestamp:Date.now()});K(s)||(a.$session_id=s.sessionId,a.$window_id=s.windowId),this.R.metrics.push(a),this.R.metrics.length===this.allowedMetrics.length&&this._o()}else aO.error("Ignoring metric with value >= "+this.So,e)}}},this.Co=()=>{if(!this.Za){var e,t,r,n,i=g.__PosthogExtensions__,s=null==i?void 0:i.postHogWebVitalsCallbacksByFlavor,a=(null==s?void 0:s[this.Mo])||("web-vitals"===this.Mo&&K(s)?null==i?void 0:i.postHogWebVitalsCallbacks:void 0);if(K(a)||(e=a.onLCP,t=a.onCLS,r=a.onFCP,n=a.onINP),e&&t&&r&&n){var o={reportSoftNavs:this.useSoftNavs};this.allowedMetrics.indexOf("LCP")>-1&&e(this.ko.bind(this),o),this.allowedMetrics.indexOf("CLS")>-1&&t(this.ko.bind(this),o),this.allowedMetrics.indexOf("FCP")>-1&&r(this.ko.bind(this),o),this.allowedMetrics.indexOf("INP")>-1&&n(this.ko.bind(this),o),this.Za=!0}else aO.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.ao=!(null==(t=this._instance.persistence)||!t.props[ri]),this.startIfEnabled()}get To(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,r=Y(this.To)?null==(e=this.To)?void 0:e.web_vitals_allowed_metrics:void 0;return ee(r)?(null==(t=this._instance.persistence)?void 0:t.props[ro])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(Y(this.To)?this.To.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Y(this.To)?this.To.web_vitals_attribution:void 0;return null!=e&&e}get useSoftNavs(){var e=Y(this.To)?this.To.__preview_web_vitals_soft_navs:void 0;return null!=e&&e}get So(){var e=Y(this.To)&&et(this.To.__web_vitals_max_value)?this.To.__web_vitals_max_value:9e5;return e>0&&6e4>=e?9e5:e}get isEnabled(){var e=null==o?void 0:o.protocol;if("http:"!==e&&"https:"!==e)return aO.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Y(this.To)?this.To.web_vitals:en(this.To)?this.To:void 0;return en(t)?t:this.ao}startIfEnabled(){this.isEnabled&&!this.Za&&(aO.info("enabled, starting..."),this.ai(this.Co))}onRemoteConfig(e){if(e.ok){var t=e.config;if("capturePerformance"in t){var r=Y(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=Y(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[ri]:r}),this._instance.persistence.register({[ro]:n})),this.ao=r,this.startIfEnabled()}}}get Mo(){return this.useSoftNavs?this.useAttribution?"web-vitals-with-attribution-soft-navs":"web-vitals-soft-navs":this.useAttribution?"web-vitals-with-attribution":"web-vitals"}ai(e){var t=g.__PosthogExtensions__,r=this.Mo,n=null==t?void 0:t.postHogWebVitalsCallbacksByFlavor;null!=n&&n[r]||"web-vitals"===r&&K(n)&&null!=t&&t.postHogWebVitalsCallbacks?e():null==t||null==t.loadExternalDependency||t.loadExternalDependency(this._instance,r,t=>{t?aO.error("failed to load script",t):e()})}xo(e){var t=e||(null==n?void 0:n.location.href);if(t){var r=this._instance.config.disable_capture_url_hashes?tc(t):t,i=this._instance.config.custom_personal_data_properties;return iy(r,this._instance.config.mask_personal_data_properties?[...iS,...i||[]]:[],iR)}aO.error("Could not determine current URL")}}},{exceptionObserver:class{constructor(e){var t;this.Co=()=>{var e;if(n&&this.isEnabled&&null!=(e=g.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=g.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=g.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,i=g.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Eo&&this.Ne.capture_unhandled_errors&&(this.Eo=t(this.captureException.bind(this))),!this.Io&&this.Ne.capture_unhandled_rejections&&(this.Io=r(this.captureException.bind(this))),!this.Po&&this.Ne.capture_console_errors&&(this.Po=i(this.captureException.bind(this)))}catch(e){aS.error("failed to start",e),this.Ro()}}},this._instance=e,this.Ao=!(null==(t=this._instance.persistence)||!t.props[rt]),this.Fo=new ef(y({},function(e){var t,r,n,i;return void 0===e&&(e={}),{refillRate:null!=(t=null!=(r=e.exceptionRateLimiterRefillRate)?r:e.__exceptionRateLimiterRefillRate)?t:1,bucketSize:null!=(n=null!=(i=e.exceptionRateLimiterBucketSize)?i:e.__exceptionRateLimiterBucketSize)?n:10}}(this._instance.config.error_tracking),{refillInterval:1e4,rt:aS})),this.Ne=this.Lo(),this.startIfEnabledOrStop()}Lo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Y(e)?t=y({},t,e):(K(e)?this.Ao:e)&&(t=y({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Ne.capture_console_errors||this.Ne.capture_unhandled_errors||this.Ne.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(aS.info("enabled"),this.Ro(),this.ai(this.Co)):this.Ro()}ai(e){var t,r;null!=(t=g.__PosthogExtensions__)&&t.errorWrappingFunctions?e():null==(r=g.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return aS.error("failed to load script",t);e()})}Ro(){var e,t,r;null==(e=this.Eo)||e.call(this),this.Eo=void 0,null==(t=this.Io)||t.call(this),this.Io=void 0,null==(r=this.Po)||r.call(this),this.Po=void 0}onRemoteConfig(e){if(e.ok){var t=e.config;"autocaptureExceptions"in t&&(this.Ao=!!t.autocaptureExceptions,this._instance.persistence&&this._instance.persistence.register({[rt]:this.Ao}),this.Ne=this.Lo(),this.startIfEnabledOrStop())}}onConfigChange(){this.Ne=this.Lo()}captureException(e){var t,r,n,i=null!=(t=null==e||null==(r=e.$exception_list)||null==(r=r[0])?void 0:r.type)?t:"Exception";this.Fo.consumeRateLimit(i)?aS.info("Skipping exception capture because of client rate limiting.",{exception:i}):null==(n=this._instance.exceptions)||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,r;this.Oo=[],this.Do=new tP([new tL,new tG,new tD,new tF,new tz,new tq,new tU,new tW],function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;t>n;n++)r[n-1]=arguments[n];return function(t,n){void 0===n&&(n=0);for(var i=[],s=t.split("\n"),a=n;s.length>a;a++){var o=s[a];if(1024>=o.length){var l=tM.test(o)?o.replace(tM,"$1"):o;if(!l.match(/\S*Error: /)){for(var u of r){var c=u(l,e);if(c){i.push(c);break}}if(i.length>=50)break}}}if(!i.length)return[];var d=Array.from(i);return d.reverse(),d.slice(0,50).map(e=>y({},e,{filename:e.filename||(d[d.length-1]||{}).filename,function:e.function||"?"}))}}("web:javascript",tI,tj)),this._instance=e,this.Oo=null!=(t=null==(r=this._instance.persistence)?void 0:r.get_property(rr))?t
3:[],this.$o=tJ(this.No()),this.qo=new tQ(this.$o)}onConfigChange(){this.$o=tJ(this.No()),this.qo.setConfig(this.$o)}onRemoteConfig(e){var t,r,n;if(e.ok){var i=e.config;if("errorTracking"in i){var s=null!=(t=null==(r=i.errorTracking)?void 0:r.suppressionRules)?t:[],a=null==(n=i.errorTracking)?void 0:n.captureExtensionExceptions;this.Oo=s,this._instance.persistence&&this._instance.persistence.register({[rr]:this.Oo,[rn]:a})}}}get jo(){var e,t=!!this._instance.get_property(rn),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!=(e=null!=r?r:t)&&e}buildProperties(e,t){return this.Do.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}addExceptionStep(e,t){if(this.$o.enabled)try{if(!J(e)||0===e.trim().length)return void a1.warn("Ignoring exception step because message must be a non-empty string");var r=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce((r,n)=>(tX.has(n)?t.push(n):r[n]=e[n],r),{}),droppedKeys:t}}(this.Bo(t)),n=r.sanitizedProperties,i=r.droppedKeys;i.length>0&&a1.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this.qo.add(y({[tV]:e,[tY]:(new Date).toISOString()},n))}catch(e){a1.error("Failed to add exception step. Ignoring breadcrumb.",e)}}sendExceptionEvent(e){var t;try{var r=e.$exception_list;if(this.Ho(r)){if(this.Uo(r))return this.zo("Exception dropped: matched a suppression rule"),void a1.info("Skipping exception capture because a suppression rule matched");if(!this.jo&&this.Wo(r))return this.zo("Exception dropped: thrown by a browser extension"),void a1.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Vo(r))return this.zo("Exception dropped: thrown by the PostHog SDK"),void a1.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.$o.enabled&&ee(e.$exception_steps)?this.Zo(e):e,i="string"==typeof(t=globalThis._posthogReleaseId)&&t.length>0?t:void 0;i&&(n.$release_id=i);try{var s=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",Un:!0});return s&&this.qo.clear(),s}catch(e){return a1.error("Failed to capture exception event. Dropping this exception.",e),void this.qo.clear()}}catch(e){return void a1.error("Failed to process exception event. Ignoring this exception.",e)}}Zo(e){try{var t=this.qo.getAttachable();return 0===t.length?e:y({},e,{$exception_steps:t})}catch(t){return a1.error("Failed to read buffered exception steps. Capturing exception without steps.",t),e}}zo(e){this.$o.enabled&&this.qo.add({[tV]:e,[tY]:(new Date).toISOString()})}Bo(e){return Y(e)?y({},e):{}}No(){var e,t;return null!=(e=null==(t=this._instance.config.error_tracking)?void 0:t.exception_steps)?e:{}}Uo(e){if(0===e.length)return!1;try{var t=e.reduce((e,t)=>{var r=t.type,n=t.value;return J(r)&&r.length>0&&e.$exception_types.push(r),J(n)&&n.length>0&&e.$exception_values.push(n),e},{$exception_types:[],$exception_values:[]});return this.Oo.some(e=>{var r=e.values.map(e=>{var r=sX[e.operator],n=t[e.key];if(!r||!n)return!1;var i=G(e.value)?e.value:[e.value];return i.length>0&&r(i,n)});return"OR"===e.type?r.some(Boolean):r.every(Boolean)})}catch(e){return a1.warn("Failed to evaluate suppression rules. Capturing the exception.",e),!1}}Wo(e){return e.flatMap(e=>{var t,r;return null!=(t=null==(r=e.stacktrace)?void 0:r.frames)?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}Vo(e){if(e.length>0){var t,r,n,i,s=null!=(t=null==(r=e[0].stacktrace)?void 0:r.frames)?t:[],a=s[s.length-1];return null!=(n=null==a||null==(i=a.filename)?void 0:i.includes("posthog.com/static"))&&n}return!1}Ho(e){return!ee(e)&&G(e)}}},or,{siteApps:class{constructor(e){this.Jo=0,this._instance=e,this.Yo=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Xo(e,t){if(t){var r=this.globalsForEvent(t);this.Yo.push(r),this.Yo.length>1e3&&(this.Yo=this.Yo.slice(10))}}get siteAppLoaders(){var e;return null==(e=g._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Xo.bind(this));this.tl=()=>{e(),this.Yo=[],this.tl=void 0}}}globalsForEvent(e){if(!e)throw Error("Event payload is required");var t,r,n,i,s,a,o,l={},u=this._instance.get_property("$groups")||[];for(var c of Object.entries(this._instance.get_property("$stored_group_properties")||{})){var d=c[0];
vendor: 4,794 bytes, line 3
3l[d]={id:u[d],type:d,properties:c[1]}}var h=e.$set_once,p=e.$set;return{event:y({},b(e,aD),{properties:y({},e.properties,p?{$set:y({},null!=(t=null==(r=e.properties)?void 0:r.$set)?t:{},p)}:{},h?{$set_once:y({},null!=(n=null==(i=e.properties)?void 0:i.$set_once)?n:{},h)}:{}),elements_chain:null!=(s=null==(a=e.properties)?void 0:a.$elements_chain)?s:"",distinct_id:null==(o=e.properties)?void 0:o.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}el(e){var t,r=null==(t=e.tagName)?void 0:t.toLowerCase();return"style"===r&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(a$.error("prepare_external_dependency_stylesheet returned null"),null):"script"===r&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(a$.error("prepare_external_dependency_script returned null"),null):e}il(){if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var e,t,r,n,i,s,o,l,u=null==a?void 0:a.defaultView,c=null==u||null==(e=u.Node)?void 0:e.prototype;if(!u||!c)return()=>{};if(this.Jo++,this.rl)return this.nl();var d=[],h=this,p=new WeakSet,f=(e,t,r)=>{if(null!=e&&e[t]){var n=e[t];e[t]=r(n),d.push(()=>{e[t]=n})}},g=e=>{if(p.has(e))return e;var t=h.el(e);return t&&p.add(t),t},_=e=>e.map(e=>"string"==typeof e?e:g(e)).filter(e=>!Z(e));return f(c,"appendChild",e=>function(t){var r=g(t);return r?e.call(this,r):t}),f(c,"insertBefore",e=>function(t,r){var n=g(t);return n?e.call(this,n,r):t}),f(c,"replaceChild",e=>function(t,r){var n=g(t);return n?e.call(this,n,r):r}),[null==(t=u.Element)?void 0:t.prototype,null==(r=u.Document)?void 0:r.prototype,null==(n=u.DocumentFragment)?void 0:n.prototype].forEach(e=>{f(e,"append",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,_(r))}),f(e,"prepend",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,_(r))})}),[null==(i=u.Element)?void 0:i.prototype,null==(s=u.CharacterData)?void 0:s.prototype,null==(o=u.DocumentType)?void 0:o.prototype].forEach(e=>{f(e,"before",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,_(r))}),f(e,"after",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,_(r))}),f(e,"replaceWith",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];var i=_(r);return r.length&&!i.length?void 0:e.apply(this,i)})}),f(null==(l=u.Element)?void 0:l.prototype,"insertAdjacentElement",e=>function(t,r){var n=g(r);return n?e.call(this,t,n):null}),this.rl=()=>{d.forEach(e=>e()),this.rl=void 0},this.nl()}nl(){var e=!1;return()=>{var t;e||(e=!0,this.Jo--,0===this.Jo&&(null==(t=this.rl)||t.call(this)))}}sl(e,t){void 0===t&&(t=!0);var r=this.il();try{var n=e(r);return t&&r(),n}catch(e){throw r(),e}}setupSiteApp(e){var t=this.apps[e.id],r=()=>{var r;!t.errored&&this.Yo.length&&(a$.info("Processing "+this.Yo.length+" events for site app with id "+e.id),this.Yo.forEach(e=>this.sl(()=>null==t.processEvent?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(r=this.tl)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,a$.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),n&&r()};try{var s=this.sl(t=>e.init({posthog:this._instance,callback(e){t(),i(e)}}),!1).processEvent;s&&(t.processEvent=s),n=!0}catch(t){a$.error(aU+e.id,t),i(!1)}if(n&&t.loaded)try{r()}catch(r){a$.error("Error while processing buffered events PostHog app with config id "+e.id,r),t.errored=!0}}al(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}ol(e){var t=this;if(0!==Object.keys(this.apps).length){var r=this.globalsForEvent(e),n=function(n){try{t.sl(()=>null==n.processEvent?void 0:n.processEvent(r))}catch(t){a$.error("Error while processing event "+e.event+" for site app "+n.id,t)}};for(var i of Object.values(this.apps))n(i)}}onRemoteConfig(e){var t,r,n,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.al(),void this._instance.on("eventCaptured",e=>this.ol(e))):void a$.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.tl)||r.call(this),e.ok){var s=e.config;if(null!=(n=s.siteApps)&&n.length)if(this.isEnabled)for(var a of s.siteApps)!function(){var e,t=a.id,r=a.url;g["__$$ph_site_app_"+t]=i._instance,null==(e=g.__PosthogExtensions__)||null==e.loadSiteApp||e.loadSiteApp(i._instance,r,e=>
3{if(e)return a$.error(aU+t,e)})}();else a$.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}},on,{tracingHeaders:class{constructor(e){this.ll=void 0,this.ul=void 0,this.hl=void 0,this.Co=()=>{var e,t,r=this.dl();r?(K(this.ll)&&(this.ll=null==(e=g.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)?void 0:e._patchXHR(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),K(this.ul)&&(this.ul=null==(t=g.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)?void 0:t._patchFetch(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.Ro()},this._instance=e}initialize(){this.startIfEnabledOrStop()}ai(e){var t,r;null!=(t=g.__PosthogExtensions__)&&t.tracingHeadersPatchFns?e():null==(r=g.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return aR.error("failed to load script",t);e()})}vl(){var e,t;return null!=(e=null!=(t=this._instance.config.tracing_headers)?t:this._instance.config.addTracingHeaders)?e:this._instance.config.__add_tracing_headers}dl(){var e=this.vl();return G(e)?(G(this.hl)?this.hl.splice(0,this.hl.length,...e):this.hl=[...e],e.length>0?this.hl:void 0):(G(this.hl)&&this.hl.splice(0),this.hl=e||void 0,this.hl)}Ro(){var e,t;null==(e=this.ll)||e.call(this),null==(t=this.ul)||t.call(this),this.ll=void 0,this.ul=void 0}startIfEnabledOrStop(){this.dl()?this.ai(this.Co):this.Ro()}}},{toolbar:class{constructor(e){this.instance=e}Tl(e){g.ph_toolbar_state=e}El(){var e;return null!=(e=g.ph_toolbar_state)?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),na(this.instance.config)||!n||!a)return!1;e=null!=e?e:n.location,r=null!=r?r:n.history;try{if(!t){try{n.localStorage.setItem("test","test"),n.localStorage.removeItem("test")}catch(e){return!1}t=null==n?void 0:n.localStorage}var i,s=aV||ib(e.hash,"__posthog")||ib(e.hash,"state"),o=s?nt(()=>JSON.parse(atob(decodeURIComponent(s))))||nt(()=>JSON.parse(decodeURIComponent(s))):null;return o&&"ph_authorize"===o.action?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?e.hash=o.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((i=JSON.parse(t.getItem(aY)||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.config.token!==i.token||(this.loadToolbar(i),0))}catch(e){return!1}}Il(e){var t=g.ph_load_toolbar||g.ph_load_editor;!ee(t)&&V(t)?t(e,this.instance):aX.warn("No toolbar load function found")}loadToolbar(e){var t,r=!(null==a||!a.getElementById(nA));if(!n||r)return!1;var i="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,s=y({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},i?{instrument:!1}:{});return(n.localStorage.setItem(aY,JSON.stringify(y({},s,{source:void 0}))),2===this.El())?this.Il(s):0===this.El()&&(this.Tl(1),null==(t=g.__PosthogExtensions__)||null==t.loadExternalDependency||t.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return aX.error("[Toolbar] Failed to load",e),void this.Tl(0);this.Tl(2),this.Il(s)}),ns(n,"turbolinks:load",()=>{this.Tl(0),this.loadToolbar(s)})),!0}Pl(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,r){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),this.maybeLoadToolbar(e,t,r)}}},oi,{conversations:class{constructor(e){this.Rl=void 0,this._conversationsManager=null,this.Al=!1,this.Fl=null,this.Ll=!1,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations&&(this.Ol=e.ok,e.ok)){var t=e.config.conversations;ee(t)||(en(t)?this.Rl=t:(this.Rl=t.enabled,this.Fl=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.Rl=void 0,this.Fl=null,this.Ol=void 0,this.Ll=!1}loadIfEnabled(){if(!(this._conversationsManager||this.Al||this._instance.config.disable_conversations||na(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==g?void 0:g.__PosthogExtensions__;if(e&&!K(this.Rl)&&this.Rl)if(this.Fl&&this.Fl.token){this.Al=!0;try{var t=e.initConversations;if(t)return this.Dl(t),void(this.Al=!1);var r=e.loadExternalDependency;if(!r)return void this.$l(rX);r(this._instance,"conversations",t=>{t||!e.initConversations?this.$l("Could not load conversations script",t):this.Dl(e.initConversations),this.Al=!1})}catch(e){this.$l("Error initializing conversations",e),this.Al=!1}}else a5.error("Conversations enabled but missing token in remote config.")}}Dl(e){if(this.Fl)try{this._conversationsManager=e(this.Fl,this._instance),this.Ll=!1,a5.info("Conversations loaded successfully")}catch(e){this.$l("Error completing conversations initialization",e)}else a5.error("Cannot complete initialization: remote config is null")}$l(e,t){a5.error(e,t),this._conversationsManager=null,this.Al=!1,this.Ll=!0}show(){this._conversationsManager?this._conversationsManager.show():a5.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.Rl&&!Z(this._conversationsManager)}getUnavailableReason(){return this.isAvailable()?null:this._instance.config.disable_conversations?"disabled_by_config":na(this._instance.config)?"disabled_for_toolbar":this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut()?"consent_opted_out":!1===this.Ol?"remote_config_failed":K(this.Rl)?this.Ol?"disabled_in_project":"remote_config_pending":this.Rl?ee(this.Fl)||!this.Fl.token?"missing_token":null!=g&&g.__PosthogExtensions__?this.Al?"initializing":this.Ll?"load_failed":"not_loaded":"extensions_unavailable":"disabled_in_project"}isVisible(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&e}sendMessage(e,t,r){var n=this;return m(function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,r):(a5.warn(a6),null)})()}getMessages(e,t){var r=this;return m(function*(){return r._conversationsManager?r._conversationsManager.getMessages(e,t):(a5.warn(a6),null)})()}markAsRead(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(a5.warn(a6),null)})()}getTickets(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(a5.warn(a6),null)})()}requestRestoreLink(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(a5.warn(a6),null)})()}restoreFromToken(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(a5.warn(a6),null)})()}restoreFromUrlToken(){var e=this;return m(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(a5.warn(a6),null)})()}getCurrentTicketId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())?e:null}getWidgetSessionId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())?e:null}Yn(){var e;null==(e=this._conversationsManager)||e.setIdentity()}Xn(){var e;null==(e=this._conversationsManager)||e.clearIdentity()}}},{logs:class{constructor(e){var t,r=this;this.Nl=!1,this.ql=!1,this.rt=t1("[logs]"),this.jl=y({},this.rt,{error(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];t.some(oe)||r.rt.error(...t)}}),this.er=[],this.Bl=[],this.ya=0,this.Hl=()=>{var e,t;this.ya=0,null==(e=this.Ul)||e.onReconnect(),null==(t=this.zl)||t.onReconnect()},this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.Nl=!0),n&&ns(n,"online",this.Hl)}Wl(e,t,r,n){var i,s,a,o,l,u,c,d,h,p,f,g,_,v,m=(i=null==(v=this._instance)||null==(v=v.config)?void 0:v.logs,h=null!=(s=null==i?void 0:i.flushIntervalMs)?s:3e3,p=null!=(a=null==i?void 0:i.maxBufferSize)?a:100,g=K(f=null!=r&&r.consoleCapture?void 0:null!=(o=null==i?void 0:i.maxLogsPerInterval)?o:1e3)?Math.max(p,2048):Math.max(p,f),{serviceName:null!=(l=null!=(u=null==(_=null==i?void 0:i.resourceAttributes)?void 0:_["service.name"])?u:null==i?void 0:i.serviceName)?l:null==r?void 0:r.serviceNameDefault,serviceVersion:null!=(c=null==_?void 0:_["service.version"])?c:null==i?void 0:i.serviceVersion,environment:null!=(d=null==_?void 0:_["deployment.environment"])?d:null==i?void 0:i.environment,resourceAttributes:_,beforeSend:null==i?void 0:i.beforeSend,flushIntervalMs:h,maxBufferSize:p,maxQueueSize:g,maxBatchRecordsPerPost:100,rateCapWindowMs:h,maxLogsPerInterval:f,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0});return[new tb(this.Vl(e,t),m,this.jl,()=>this.Zl(),e=>e(),void 0,n),m]}Gl(){var e,t=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;if(!this.Ul||this.Ql!==t){null==(r=this.Ul)||r.reset(),this.Ql=t;var r,n=this.Wl(()=>this.er,e=>{this.er=e});this.Ul=n[0],this.Kl=n[1]}return this.Ul}Jl(){var e,t=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;if(!this.zl||this.Yl!==t){null==(r=this.zl)||r.reset(),this.Yl=t;var r,n=this.Wl(()=>this.Bl,e=>{this.Bl=e},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},a8);this.zl=n[0],this.Xl=n[1]}return this.zl}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t;if(e.ok){var r=null==(t=e.config.logs)?void 0:t.captureConsoleLogs;!ee(r)&&r&&(this.Nl=!0,this.loadIfEnabled())}}reset(){var e,t;this.er=[],null==(e=this.Ul)||e.reset(),this.Bl=[],null==(t=this.zl)||t.reset(),this.ya=0}
3captureLog(e){this.Gl().captureLog(e)}he(e){this.Jl().captureLog(e)}get logger(){return this.tu||(this.tu={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.tu}flushLogs(e){e?this.eu(e):(this.Ul&&this.Ul.flush().catch(e=>this.iu(e)),this.zl&&this.zl.flush().catch(e=>this.iu(e)))}iu(e){oe(e)||this.rt.error("PostHog logs flush failed:",e)}loadIfEnabled(){if(this.Nl&&!this.ql){var e=null==g?void 0:g.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",t=>{var r;t||null==(r=e.logs)||!r.initializeLogs?this.rt.error("Could not load logs script",t):(e.logs.initializeLogs(this._instance),this.ql=!0)}):this.rt.error(rX)}else this.rt.error("PostHog Extensions not found.")}}Vl(e,t){var r=this._instance;return{get isDisabled(){return!1},get optedOut(){return!r.is_capturing()},getPersistedProperty:t=>t===R.LogsQueue?e():void 0,setPersistedProperty(e,r){e===R.LogsQueue&&t(null!=r?r:[])},Ot:e=>this.Ot(e),getLibraryId:()=>_.LIB_NAME,getLibraryVersion:()=>_.LIB_VERSION}}Ot(e){return new Promise(t=>{if(iE(this.ya,3))t({kind:"fatal",error:a7(void 0,"logs endpoint is unreachable, dropping batch")});else{var r=!1,n=e=>{r||(r=!0,clearTimeout(i),t(e))},i=setTimeout(()=>{this.rt.warn("Logs request timed out before receiving a response"),n({kind:"retry-later",error:a7(void 0,"logs request timed out")})},9e4);this._instance._send_request({method:"POST",url:this.ru(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback:e=>{var t,r=e.statusCode;(this.nu(r),r>=200&&300>r)?n({kind:"ok"}):413===r?n({kind:"too-large"}):0!==r&&429!==r&&500>r?n({kind:"fatal",error:Error("logs request failed with status "+r)}):0===r?(e.error||this.rt.warn("Logs request failed before receiving an HTTP response"),n({kind:"retry-later",error:a7(e.error,"logs request failed before receiving an HTTP response")})):n({kind:"retry-later",error:null!=(t=e.error)?t:Error("logs request failed with status "+r)})}})}})}nu(e){(0!==e||this._instance.__loaded)&&(this.ya=iw(e,this.ya,3,()=>this.rt.warn("Log requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped sending logs; will try again when connectivity changes.")))}eu(e){this.er.length>0&&this.su(e,this.er,this.Kl,_.LIB_NAME,e=>{this.er=e}),this.Bl.length>0&&this.su(e,this.Bl,this.Xl,a8,e=>{this.Bl=e})}su(e,t,r,n,i){if(0!==t.length){var s=t.map(e=>e.record);i([]);var a=ty(s,tm(r,_.LIB_NAME,_.LIB_VERSION),n,_.LIB_VERSION);this._instance._send_request({method:"POST",url:this.ru(),data:a,compression:"best-available",batchKey:"logs",transport:e})}}ru(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}Zl(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var r=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0),n=r.windowId,i=r.sessionStartTimestamp,s=r.lastActivityTimestamp;t.sessionId=r.sessionId,t.windowId=n,ee(i)||(t.sessionStartTimestamp=i),ee(s)||(t.lastActivityTimestamp=s)}if(null!=g&&null!=(e=g.location)&&e.href&&(t.currentUrl=this._instance.config.disable_capture_url_hashes?tc(g.location.href):g.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},{metrics:class{constructor(e){this.rt=t1("[metrics]"),this._instance=e}initialize(){}Gl(){var e,t,r,n,i,s,a,o,l=null==(a=this._instance)||null==(a=a.config)?void 0:a.metrics;return this.Ul&&this.Ql===l||(null==(o=this.Ul)||o.reset(),this.Ql=l,this.Ul=new tS(this.Vl(),{serviceName:null!=(e=null==(s=null==l?void 0:l.resourceAttributes)?void 0:s["service.name"])?e:null==l?void 0:l.serviceName,serviceVersion:null!=(t=null==s?void 0:s["service.version"])?t:null==l?void 0:l.serviceVersion,environment:null!=(r=null==s?void 0:s["deployment.environment"])?r:null==l?void 0:l.environment,resourceAttributes:s,beforeSend:null==l?void 0:l.beforeSend,flushIntervalMs:null!=(n=null==l?void 0:l.flushIntervalMs)?n:1e4,maxSeriesPerFlush:null!=(i=null==l?void 0:l.maxSeriesPerFlush)?i:1e3},this.rt)),this.Ul}count(e,t,r){void 0===t&&(t=1),this.Gl().count(e,t,r)}gauge(e,t,r){this.Gl().gauge(e,t,r)}histogram(e,t,r){this.Gl().histogram(e,t,r)}flush(e){if(!this.Ul)return Promise.resolve();if(e){var t=this.Ul.drainWindow();return t&&this.Jt(t,e),Promise.resolve()}return this.Ul.flush().catch(e=>this.rt.error("PostHog metrics flush failed:",e))}reset(){var e;null==(e=this.Ul)||e.reset()}Vl(){var e=this._instance,t=this;return{get isDisabled(){return!1},get optedOut(){return!e.is_capturing()},Jt:e=>t.Jt(e),getLibraryId:()=>_.LIB_NAME,getLibraryVersion:()=>_.LIB_VERSION}}Jt(e,t){return new Promise(r=>{var n=!1,i=e=>{n||(n=!0,clearTimeout(s),r(e))},s=setTimeout(()=>i({kind:"retry-later",error:Error("metrics request timed out")}),9e4);this._instance._send_request(y({method:"POST",url:this.au(),data:e,compression:"best-available",batchKey:"metrics"},t&&{transport:t},{fireCallbackOnDrop:!0,callback(e){var t,r=e.statusCode;r>=200&&300>r?i({kind:"ok"}):413===r?i({kind:"too-large"}):0!==r&&429!==r&&500>r?i({kind:"fatal",error:Error("metrics request failed with status "+r)}):i({kind:"retry-later",error:null!=(t=e.error)?t:Error("metrics request failed with status "+r)})}}))})}au(){return this._instance.requestRouter.endpointFor("api","/i/v1/metrics")+"?token="+encodeURIComponent(this._instance.config.token)}}});ay.__defaultExtensionClasses=y({},os);var oa=function(){_.SDK_DIST_CHANNEL="npm";var e=as[ap]=new ay;
3return function(){function e(){e.done||(e.done=!0,af=!1,r9(as,function(e){e._dom_loaded()}))}null!=a&&a.addEventListener?"complete"===a.readyState?e():ns(a,"DOMContentLoaded",e,{capture:!1}):n&&t0.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),e}()},6886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return _},getClientBuildManifest:function(){return f},isAssetError:function(){return c},markAssetError:function(){return u}}),r(4252),r(3281);let n=r(1768),i=r(3273),s=r(8757),a=r(2298);function o(e,t,r){let n,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let s=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:s}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):s}let l=Symbol("ASSET_LOAD_ERROR");function u(e){return Object.defineProperty(e,l,{})}function c(e){return e&&l in e}let d=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),h=()=>(0,s.getDeploymentIdQueryOrEmptyString)();function p(e,t,r){return new Promise((n,s)=>{let a=!1;e.then(e=>{a=!0,n(e)}).catch(s),(0,i.requestIdleCallback)(()=>setTimeout(()=>{a||s(r)},t))})}function f(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,u(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function g(e,t){return f().then(r=>{if(!(t in r))throw u(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let i=r[t].map(t=>e+"/_next/"+(0,a.encodeURIPath)(t));return{scripts:i.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+h()),css:i.filter(e=>e.endsWith(".css")).map(e=>e+h())}})}function _(e){let t=new Map,r=new Map,n=new Map,s=new Map;function a(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(u(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(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 u(e)})),t}return{whenEntrypoint:e=>o(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),s.delete(e))})}
3,loadRoute(r,n){return o(r,s,()=>{let i;return p(g(e,r).then(e=>{let{scripts:n,css:i}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(a)),Promise.all(i.map(l))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,u(Object.defineProperty(Error("Route did not complete loading: "+r),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==i?void 0:i())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():g(e,t).then(e=>Promise.all(d?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,i)=>{let s='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(s))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>i(u(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,i.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{safeCompile:function(){return a},safePathToRegexp:function(){return s},safeRegexpToFunction:function(){return o},safeRouteMatcher:function(){return l}});let n=r(9509),i=r(2117);function s(e,t,r){if("string"!=typeof e)return(0,n.pathToRegexp)(e,t,r);let s=(0,i.hasAdjacentParameterIssues)(e),a=s?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,n.pathToRegexp)(a,t,r)}catch(a){if(!s)try{let s=(0,i.normalizeAdjacentParameters)(e);return(0,n.pathToRegexp)(s,t,r)}catch(e){}throw a}}function a(e,t){let r=(0,i.hasAdjacentParameterIssues)(e),s=r?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,n.compile)(s,t)}catch(s){if(!r)try{let r=(0,i.normalizeAdjacentParameters)(e);return(0,n.compile)(r,t)}catch(e){}throw s}}function o(e,t){let r=(0,n.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,i.stripParameterSeparators)(t.params)}}}function l(e){return t=>{let r=e(t);return!!r&&(0,i.stripParameterSeparators)(r)}}},6925:(e,t,r)=>{"use strict";r.d(t,{BY:()=>o,EU:()=>s,Se:()=>a});var n=r(51),i=r(7628);function s(){return a(i.O),i.O}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.M,t[n.M]=t[n.M]||{}}function o(e,t,r=i.O){let s=r.__SENTRY__=r.__SENTRY__||{},a=s[n.M]=s[n.M]||{};return a[e]||(a[e]=t())}},7e3:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},7070:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i,q:()=>s});var n=r(7628);function i(e){try{let t=n.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function s(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},7284:(e,t,r)=>{"use strict";let n;r.d(t,{S8:()=>u,cd:()=>function e(t,r=3,n=102400){let i=u(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i},Ip:()=>l,ng:()=>c});let i=Symbol.for("sentry.skipNormalization"),s=Symbol.for("sentry.overrideNormalizationDepth");var a=r(1830),o=r(3380);function l(e){n=e}function u(e,t=100,r=1/0){try{return function e(t,r,n=1/0,o=1/0,l=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[u,d]=l;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let h=c(t,r);if(!h.startsWith("[object "))return h;if(r[i])return r;let p=function(e){let t=e[s];return"number"==typeof t?t:void 0}(r),f=void 0!==p?p:n;if(0===f)return h.replace("object ","");if(u(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,f-1,o,l)}catch{}let g=Array.isArray(r)?[]:{},_=0,v=(0,a.W4)(r);for(let t in v){if(!Object.prototype.hasOwnProperty.call(v,t))continue;if(_>=o){g[t]="[MaxProperties ~]";break}let r=v[t];g[t]=e(t,r,f-1,o,l),_++}return d(r),g}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t){try{if(n){let e=n(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let e=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}},7477:(e,t,r)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),r(4252);let n=r(7876);r(4232);let i=r(6296);function s(e){function t(t){return(0,n.jsx)(e,{router:(0,i.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7510:(e,t,r)=>{"use strict";r.d(t,{E1:()=>l,Ef:()=>s,Fy:()=>c,JD:()=>o,i_:()=>n,jG:()=>u,sy:()=>i,uT:()=>a});let n="sentry.source",i="sentry.sample_rate",s="sentry.previous_trace_sample_rate",a="sentry.op",o="sentry.origin",l="sentry.profile_id",u="sentry.exclusive_time",c="gen_ai.conversation.id"},7628:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});let n=globalThis},7640:(e,t,r)=>{"use strict";let n,i,s,a;r.d(t,{li:()=>b,mG:()=>y});var o=r(8760),l=r(1419),u=r(6011),c=r(45),d=r(963),h=r(9306),p=r(7628),f=r(8093),g=r(7284),_=r(7855),v=r(6076),m=r(9344);function y(e,t,r,y,b,E){var w,x;let{normalizeDepth:S=3,normalizeMaxBreadth:P=1e3}=e,R={...t,event_id:t.event_id||r.event_id||(0,f.eJ)(),timestamp:t.timestamp||(0,m.lu)()},O=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:s}=t;e.environment=e.environment||r||o.U,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&s&&(a.url=(0,v.xv)(a.url,s)),s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,v.xv)(e.value,s))})})(R,e),w=R,(x=O).length>0&&(w.sdk=w.sdk||{},w.sdk.integrations=[...w.sdk.integrations||[],...x]),b&&b.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=p.O._sentryDebugIds,r=p.O._debugIds;if(!t&&!r)return{};let o=t?Object.keys(t):[],l=r?Object.keys(r):[];if(a&&o.length===i&&l.length===s)return a;i=o.length,s=l.length,a={},n||(n={});let u=(t,r)=>{for(let i of t){let t=r[i],s=n?.[i];if(s&&a&&t)a[s[0]]=t,n&&(n[i]=[s[0],t]);else if(t){let r=e(i);for(let e=r.length-1;e>=0;e--){let s=r[e],o=s?.filename;if(o&&a&&n){a[o]=t,n[i]=[o,t];break}}}}};return t&&u(o,t),r&&u(l,r),a}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(R,e.stackParser);let T=function(e,t){if(!t)return e;let r=e?e.clone():new h.H;return r.update(t),r}(y,r.captureContext);r.mechanism&&(0,f.M6)(R,r.mechanism);let k=b?b.getEventProcessors():[],A=(0,_.Om)(E,T),I=[...r.attachments||[],...A.attachments];I.length&&(r.attachments=I),(0,_.e2)(R,A);let C=[...k,...A.eventProcessors];return(r.data&&!0===r.data.__sentry__?(0,d.XW)(R):function(e,t,r,n=0){try{let i=function e(t,r,n,i){let s=n[i];if(!t||!s)return t;let a=s({...t},r);return(l.T&&null===a&&u.Yz.log(`Event processor "${s.id||"?"}" dropped event`),(0,c.Qg)(a))?a.then(t=>e(t,r,n,i+1)):e(a,r,n,i+1)}(t,r,e,n);return(0,c.Qg)(i)?i:(0,d.XW)(i)}catch(e){return(0,d.xg)(e)}}(C,R,r)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof S&&S>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,g.S8)(e.data,t,r)}}))},...e.user&&{user:(0,g.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,g.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,g.S8)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,g.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,g.S8)(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,g.S8)(e.contexts.flags,3,r)),n}(e,S,P):e)}function b(e){if(e){var t;return(t=e)instanceof h.H||"function"==typeof t||Object.keys(e).some(e=>E.includes(e))?{captureContext:e}:e}}let E=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},7647:(e,t,r)=>{"use strict";e.exports=r(3513)},7769:(e,t,r)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return s},normalizeRscURL:function(){return a}});let n=r(4444),i=r(1744);function s(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,i.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function a(e){return e.replace(/\.rsc($|\?)/,"$1")}},7855:(e,t,r)=>{"use strict";r.d(t,{Om:()=>c,e2:()=>o});var n=r(8813),i=r(8772),s=r(5095),a=r(82);function o(e,t){var r,n,s,o;let{fingerprint:l,span:u,breadcrumbs:c,sdkProcessingMetadata:d}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),u&&function(e,t){e.contexts={trace:(0,a.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.k1)(t),...e.sdkProcessingMetadata};let r=(0,a.zU)(t),n=(0,a.et)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,u),r=e,n=l,r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],n&&(r.fingerprint=r.fingerprint.concat(n)),r.fingerprint.length||delete r.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,c),s=e,o=d,s.sdkProcessingMetadata={...s.sdkProcessingMetadata,...o}}function l(e,t){let{extra:r,tags:n,attributes:i,user:a,contexts:o,level:l,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:h,eventProcessors:p,attachments:f,propagationContext:g,transactionName:_,span:v}=t;u(e,"extra",r),u(e,"tags",n),u(e,"attributes",i),u(e,"user",a),u(e,"contexts",o),e.sdkProcessingMetadata=(0,s.h)(e.sdkProcessingMetadata,c,2),l&&(e.level=l),_&&(e.transactionName=_),v&&(e.span=v),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...g}}function u(e,t,r){e[t]=(0,s.h)(e[t],r,1)}function c(e,t){let r=(0,n.m6)().getScopeData();return e&&l(r,e.getScopeData()),t&&l(r,t.getScopeData()),r}},7892:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return b},APP_CLIENT_INTERNALS:function(){return Z},APP_PATHS_MANIFEST:function(){return v},APP_PATH_ROUTES_MANIFEST:function(){return m},AdapterOutputType:function(){return s},BARREL_OPTIMIZATION_PREFIX:function(){return z},BLOCKED_PAGES:function(){return $},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return U},CLIENT_REFERENCE_MANIFEST:function(){return W},CLIENT_STATIC_FILES_PATH:function(){return B},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return J},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return en},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return er},COMPILER_INDEXES:function(){return a},COMPILER_NAMES:function(){return i},CONFIG_FILES:function(){return F},DEFAULT_RUNTIME_WEBPACK:function(){return es},DEFAULT_SANS_SERIF_FONT:function(){return ec},DEFAULT_SERIF_FONT:function(){return eu},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return j},DEV_CLIENT_PAGES_MANIFEST:function(){return A},DYNAMIC_CSS_MANIFEST:function(){return K},EDGE_RUNTIME_WEBPACK:function(){return ea},EDGE_UNSUPPORTED_NODE_APIS:function(){return eg},EXPORT_DETAIL:function(){return P},EXPORT_MARKER:function(){return S},FUNCTIONS_CONFIG_MANIFEST:function(){return E},IMAGES_MANIFEST:function(){return T},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return X},MIDDLEWARE_BUILD_MANIFEST:function(){return V},MIDDLEWARE_MANIFEST:function(){return I},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Y},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return q},NEXT_FONT_MANIFEST:function(){return x},PAGES_MANIFEST:function(){return g},PHASE_DEVELOPMENT_SERVER:function(){return h},PHASE_EXPORT:function(){return u},PHASE_INFO:function(){return f},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return d},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return R},REACT_LOADABLE_MANIFEST:function(){return M},ROUTES_MANIFEST:function(){return O},RSC_MODULE_TYPES:function(){return ef},SERVER_DIRECTORY:function(){return L},SERVER_FILES_MANIFEST:function(){return k},SERVER_PROPS_ID:function(){return el},SERVER_REFERENCE_MANIFEST:function(){return G},STATIC_PROPS_ID:function(){return eo},STATIC_STATUS_PAGES:function(){return ed},STRING_LITERAL_DROP_BUNDLE:function(){return H},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return w},SYSTEM_ENTRYPOINTS:function(){return e_},TRACE_OUTPUT_VERSION:function(){return eh},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return N},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return C},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ep},UNDERSCORE_NOT_FOUND_ROUTE:function(){return o},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l},WEBPACK_STATS:function(){return _}});let n=r(4252)._(r(7e3)),i={client:"client",server:"server",edgeServer:"edge-server"};var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.PRERENDER="PRERENDER",e.STATIC_FILE="STATIC_FILE",e.MIDDLEWARE="MIDDLEWARE",e}({});let a={[i.client]:0,[i.server]:1,[i.edgeServer]:2},o="/_not-found",l=""+o+"/page",u="phase-export",c="phase-production-build",d="phase-production-server",h="p
3hase-development-server",p="phase-test",f="phase-info",g="pages-manifest.json",_="webpack-stats.json",v="app-paths-manifest.json",m="app-path-routes-manifest.json",y="build-manifest.json",b="app-build-manifest.json",E="functions-config-manifest.json",w="subresource-integrity-manifest",x="next-font-manifest",S="export-marker.json",P="export-detail.json",R="prerender-manifest.json",O="routes-manifest.json",T="images-manifest.json",k="required-server-files.json",A="_devPagesManifest.json",I="middleware-manifest.json",C="_clientMiddlewareManifest.json",N="client-build-manifest.json",j="_devMiddlewareManifest.json",M="react-loadable-manifest.json",L="server",F=["next.config.js","next.config.mjs","next.config.ts"],D="BUILD_ID",$=["/_document","/_app","/_error"],U="public",B="static",H="__NEXT_DROP_CLIENT_FILE__",q="__NEXT_BUILTIN_DOCUMENT__",z="__barrel_optimize__",W="client-reference-manifest",G="server-reference-manifest",V="middleware-build-manifest",Y="middleware-react-loadable-manifest",X="interception-route-rewrite-manifest",K="dynamic-css-manifest",J="main",Q=""+J+"-app",Z="app-pages-internals",ee="react-refresh",et="amp",er="webpack",en="polyfills",ei=Symbol(en),es="webpack-runtime",ea="edge-runtime-webpack",eo="__N_SSG",el="__N_SSP",eu={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ec={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ed=["/500"],eh=1,ep=6e3,ef={client:"client",server:"server"},eg=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],e_=new Set([J,ee,et,Q]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext({})},7971:(e,t,r)=>{"use strict";let n,i,s,a;r.d(t,{v:()=>tY});var o=r(8334),l=r(1419),u=r(6011);let c=[];function d(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function h(e,t,r){if(r[t.name]){l.T&&u.Yz.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,c.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),c.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)}["processSpan","processSegmentSpan"].forEach(r=>{let n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))}),l.T&&u.Yz.log(`Integration installed: ${t.name}`)}function p(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 f=r(8093),g=r(6076);let _=[/^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/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/];function v(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function m(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 l.T&&u.Yz.error(`Cannot extract url for event ${(0,f.$X)(e)}`),null}}var y=r(8813),b=r(1830);let E=new WeakMap;var w=r(7510),x=r(82),S=r(3380);function P(e,t){let r=(0,S.RV)(e),n=(0,S.RV)(t);if(!r&&!n)return!0;
3if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function R(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 O(e){return e.exception?.values?.[0]}var T=r(7284),k=r(8760),A=r(3442),I=r(6925),C=r(8934),N=r(7628);function j(e,t=[]){return[e,t]}function M(e,t){let[r,n]=e;return[r,[...n,t]]}function L(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function F(e){let t=(0,I.Se)(N.O);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let D={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function $(e){return e in D?D[e]:e}function U(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}var B=r(5364);function H(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==B?B:0))||function(){let e=N.O.process;return e?.type==="renderer"}())}function q(e,t){var r;let n=t??(r=e,z().get(r))??[];if(0===n.length)return;let i=e.getOptions(),s=function(e,t,r,n,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(s.dsn=(0,A.SB)(n)),j(s,[function(e,t){let r=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...H()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}(e,i)])}(n,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);z().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function z(){return(0,I.BY)("clientToLogBufferMap",()=>new WeakMap)}function W(e,t){var r;let n=t??(r=e,G().get(r))??[];if(0===n.length)return;let i=e.getOptions(),s=function(e,t,r,n,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(s.dsn=(0,A.SB)(n)),j(s,[function(e,t){let r=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...H()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}(e,i)])}(n,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);G().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function G(){return(0,I.BY)("clientToMetricBufferMap",()=>new WeakMap)}var V=r(1293),Y=r(8772),X=r(963);function K(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let J=Symbol.for("SentryBufferFullError");function Q(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,X.xg)(J);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,X.XW)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>K(setTimeout(()=>t(!1),e)))]):r}}}var Z=r(9344),ee=r(45),et=r(5095),er=r(7640);function en(e){u.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ei(e,t){if(!t?.length)return!1;for(let n of t){var r;if("string"==typeof(r=n)||r instanceof RegExp){if(e.description&&(0,g._c)(e.description,n))return l.T&&en(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let i=!n.name||e.description&&(0,g._c)(e.description,n.name),s=!n.op||e.op&&(0,g._c)(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,r])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,g._c)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,r)=>e===t[r]):e===t})(e.attributes?.[t],r));if(i&&s&&a)return l.T&&en(e),!0}return!1}let es=["forwarded","-ip","remote-","via","-user"],ea={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
3,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},eo="Not capturing exception because it's already been captured.",el="Discarded session because of missing or non-string release",eu=Symbol.for("SentryInternalError"),ec=Symbol.for("SentryDoNotSendEventError");function ed(e){return{message:e,[eu]:!0}}function eh(e){return{message:e,[ec]:!0}}function ep(e){return(0,ee.Z4)(e)&&eu in e}function ef(e){return(0,ee.Z4)(e)&&ec in e}function eg(e,t,r,n,i){let s,a=0,o=!1;e.on(r,()=>{a=0,clearTimeout(s),o=!1}),e.on(t,t=>{if((a+=n(t))>=8e5)i(e);else if(!o){let t=e.getOptions()._flushInterval??5e3;t>0&&(o=!0,s=K(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class e_{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Q(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?ea:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:es},httpHeaders:{request:{deny:es},response:{deny:es}},httpBodies:[],urlQueryParams:{deny:es},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,urlQueryParams:r.urlQueryParams??r.queryParams??t.urlQueryParams,graphQL:{document:r.graphQL?.document??t.graphQL.document,variables:r.graphQL?.variables??t.graphQL.variables},genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},databaseQueryData:r.databaseQueryData??t.databaseQueryData,stackFrameVariables:r.stackFrame
3Variables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,A.AD)(e.dsn):l.T&&u.Yz.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t,r){return t||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}(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})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&eg(this,"afterCaptureLog","flushLogs",eE,q),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eg(this,"afterCaptureMetric","flushMetrics",eb,W)}captureException(e,t,r){let n=(0,f.eJ)();if((0,f.GR)(e))return l.T&&u.Yz.log(eo),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,f.eJ)(),...r},s=(0,ee.NF)(e)?e:String(e),a=(0,ee.sO)(e),o=a?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(()=>o.then(e=>this._captureEvent(e,i,n)),a?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,f.eJ)();if(t?.originalException&&(0,f.GR)(t.originalException))return l.T&&u.Yz.log(eo),n;let i={event_id:n,...t},s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,o=s.capturedSpanIsolationScope,c=ev(e.type);return this._process(()=>this._captureEvent(e,i,a||r,o),c),i.event_id}captureSession(e){this.sendSession(e),(0,V.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit("flush"),!t)return!0;let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),h(this,e,this._integrations),t||d(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||"stream"===t.getOptions().traceLifecycle)return;let r=[],n=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?r.push(function(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,x.PL)(t)}(t)):n.push(t);if(0===r.length)return;e.spans=n;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...H()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:r}]}(e,this),n=function(e,t,r,n){let i=U(r),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);let a=function(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,C.Wk)()).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,A.SB)(n)},...i&&{trace:i}}}(e,i,n,t);return delete e.sdkProcessingMetadata,j(a,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=M(n,function(e){let t="string"==typeof e.data?F(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));r&&(n=M(n,r)),this.sendEnvelope(n).then(t=>
3this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=k.U}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){l.T&&u.Yz.warn(el);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){l.T&&u.Yz.warn(el);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=function(e,t,r,n){let i=U(r);return j({sent_at:new Date((0,C.Wk)()).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,A.SB)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;l.T&&u.Yz.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]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return l.T&&u.Yz.error("Error while sending envelope:",e),{}}return l.T&&u.Yz.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&h(e,t,r)}),r}(this,e),d(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,V.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,er.mG)(i,e,t,r,this,n).then(e=>
3(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,y.vn)(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,Y.ao)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,y.o5)(),n=(0,y.rm)()){return l.T&&em(e)&&u.Yz.log(`Captured error event \`${p(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{l.T&&(ef(e)?u.Yz.log(e.message):ep(e)?u.Yz.warn(e.message):u.Yz.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:s}=i,a=ey(e),o=em(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===s?void 0:function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}(s);if(o&&"number"==typeof c&&(0,C.hY)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,X.xg)(eh(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let d=ev(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),eh("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,ee.Qg)(e))return e.then(e=>{if(!(0,ee.Qd)(e)&&null!==e)throw ed(r);return e},e=>{throw ed(`${t} rejected with ${e}`)});if(!(0,ee.Qd)(e)&&null!==e)throw ed(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=t,o=!((u=t.beforeSendSpan)&&"function"==typeof u&&"_streamed"in u&&u._streamed)&&t.beforeSendSpan,l=r;if(em(l)&&i)return i(l,n);if(ey(l)){if(o||a){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[w.E1],exclusive_time:a?.[w.jG],measurements:e.measurements,is_segment:!0}}(l);if(a?.length&&ei({description:t.description,op:t.op,attributes:t.data},a))return null;if(o){let e=o(t);e?l=(0,et.h)(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&&{[w.E1]:e.profile_id},...e.exclusive_time&&{[w.jG]:e.exclusive_time}}}},measurements:e.measurements}):(0,x.xl)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(a?.length&&ei({description:e.description,op:e.op,attributes:e.data},a)){var u;let t=e.parent_span_id,n=e.span_id;if(t)for(let e of r)e.parent_span_id===n&&(e.parent_span_id=t);continue}if(o){let r=o(e);r?t.push(r):((0,x.xl)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(l,n)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw eh(`${u} returned \`null\`, will not send event.`)}let s=r.getSession()||n.getSession();if(o&&s&&this._updateSessionFromEvent(s,i),a){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return a&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(ef(e)||ep(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),ed(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 4Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===J&&this.recordDroppedEvent("queue_overflow",t),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;l.T&&u.Yz.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){l.T&&u.Yz.log("No outcomes to send");return}if(!this._dsn){l.T&&u.Yz.log("No dsn provided, will not send outcomes");return}l.T&&u.Yz.log("Sending outcomes:",t);let r=j((e=this._options.tunnel&&(0,A.SB)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,Z.lu)(),discarded_events:t}]]);this.sendEnvelope(r)}}function ev(e){return"replay_event"===e?"replay":e||"error"}function em(e){return void 0===e.type}function ey(e){return"transaction"===e.type}function eb(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+ew(e.attributes)}function eE(e){let t=0;return e.message&&(t+=2*e.message.length),t+ew(e.attributes)}function ew(e){if(!e)return 0;let t=0;
4return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ex(e[0]):(0,ee.sO)(e)?t+=ex(e):t+=100}),t}function ex(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}var eS=r(51);function eP(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:eS.M})),i.version=eS.M)}function eR(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 eO(e){return(0,ee.bJ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function eT(e,t){let r=eA(e,t),n={type:function(e){let t=e?.name;return!t&&eC(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return eC(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?eO(t.error):eO(e):"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function ek(e,t){return{exception:{values:[eT(e,t)]}}}function eA(e,t){var r,n;let i=t.stacktrace||t.stack||"",s=(r=t)&&eI.test(r.message)?1:0,a="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,s,a)}catch{}return[]}let eI=/Minified React error #\d+;/i;function eC(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function eN(e,t,r,n,i){let s;if((0,ee.T2)(t)&&t.error)return ek(e,t.error);if((0,ee.BD)(t)||(0,ee.W6)(t)){if("stack"in t){s=ek(e,t);let i=s.exception?.values?.[0];if(n&&r&&i&&!i.stacktrace){let t=eA(e,r);t.length&&(i.stacktrace={frames:t},(0,f.M6)(s,{synthetic:!0}))}}else{let i=t.name||((0,ee.BD)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;s=ej(e,a,r,n),(0,f.gO)(s,a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return(0,ee.bJ)(t)?ek(e,t):((0,ee.Qd)(t)||(0,ee.xH)(t)?s=function(e,t,r,n){let i=(0,y.KU)(),s=i?.getOptions().normalizeDepth,a=Object.values(t).find(e=>e instanceof Error),o={__serialized__:(0,T.cd)(t,s)};if(a)return{exception:{values:[eT(e,a)]},extra:o};let l={exception:{values:[{type:(0,ee.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,b.HF)(e),n=t?"promise rejection":"exception";if((0,ee.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,ee.xH)(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=eA(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(s=ej(e,t,r,n),(0,f.gO)(s,`${t}`,void 0)),(0,f.M6)(s,{synthetic:!0}),s)}function ej(e,t,r,n){let i={};if(n&&r){let n=eA(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,f.M6)(i,{synthetic:!0})}if((0,ee.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}let eM=N.O;function eL(){try{return eM.document.location.href}catch{return""}}let eF=N.O,eD=0;function e$(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if((0,b.sp)(e))return e}catch{return e}let r=function(...r){N.O._sentryWrappedDepth=(N.O._sentryWrappedDepth||0)+1;try{let n=r.map(e=>e$(e,t));return e.apply(this,n)}catch(e){throw eD++,setTimeout(()=>{eD--}),(0,y.v4)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,f.gO)(e,void 0,void 0),(0,f.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,o.Cp)(e)}),e}finally{N.O._sentryWrappedDepth=(N.O._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,b.pO)(r,e),(0,b.my)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function eU(){let e=eL(),{referrer:t}=eF.document||{},{userAgent:r}=eF.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class eB extends e_{constructor(e){var t;let r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eF.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});eP(r,"browser",["browser"],eF.SENTRY_SDK_SOURCE||"npm"),super(r);let{userInfo:n}=this.getDataCollectionOptions();r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:n?"auto":"never",...r._metadata.sdk.settings});let{sendClientReports:i}=this._options;eF.document&&eF.document.addEventListener("visibilitychange",()=>{"hidden"===eF.document.visibilityState&&(i&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",eR)}eventFromException(e,t){return function(e,t,r,n){let i=eN(e,t,r?.syntheticException||void 0,n);return(0,f.M6)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,X.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let s=ej(e,t,n?.syntheticException||void 0,i);return s.level=r,n?.event_id&&(s.event_id=n.event_id),(0,X.XW)(s)}(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 eH={},eq={};function ez(e,t){return eH[e]=eH[e]||[],eH[e].push(t),()=>{let r=eH[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function eW(e,t){if(!eq[e]){eq[e]=!0;try{t()}catch(t){l.T&&u.Yz.error(`Error while instrumenting ${e}`,t)}}}function eG(e,t){let r=e&&eH[e];if(r)for(let n of r)try{n(t)}catch(t){l.T&&u.Yz.error(`Error while triggering instrumentation handler. 5Type: ${e} 6Name: ${(0,S.qQ)(n)} 7Error:`,t)}}
7let eV=new Set([]),eY=new Set;function eX(){"console"in N.O&&u.Ow.forEach(function(e){!eY.has(e)&&e in N.O.console&&(eY.add(e),(0,b.GS)(N.O.console,e,function(t){return u.Z9[e]=t,function(...t){let r=t[0],n=u.Z9[e],i=eV.size&&"string"==typeof r&&(0,g.Xr)(r,eV);i||eG("console",{args:t,level:e}),(!i||l.T&&u.Yz.isEnabled())&&n?.apply(N.O.console,t)}}))})}let eK=N.O;function eJ(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function eQ(e,t){return(0,ee.Z4)(e)&&!!e[t]}function eZ(e){return"string"==typeof e?e:e?eQ(e,"url")?e.url:e.toString?e.toString():"":""}function e0(e,t){let r=(0,y.KU)(),n=(0,y.rm)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=r.getOptions();if(s<=0)return;let a={timestamp:(0,Z.lu)(),...e},o=i?(0,u.pq)(()=>i(a,t)):a;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,s))}function e1(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function e2(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}}let e3=N.O;function e4(){if(!e3.document)return;let e=eG.bind(null,"dom"),t=e5(e,!0);e3.document.addEventListener("click",t,!1),e3.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=e3[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,b.GS)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=n[r]=n[r]||{refCount:0};if(!s.handler){let n=e5(e);s.handler=n,t.call(this,r,n,i)}s.refCount++}catch{}return t.call(this,r,n,i)}}
7),(0,b.GS)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.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 e5(e,t=!1){return r=>{var a;if(!r||r._sentryCaptured)return;let o=function(e){try{return e.target}catch{return null}}(r);if(a=r.type,"keypress"===a&&(!o?.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;(0,b.my)(r,"_sentryCaptured",!0),o&&!o._sentryId&&(0,b.my)(o,"_sentryId",(0,f.eJ)());let l="keypress"===r.type?"input":r.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(r)&&(e({event:r,name:l,global:t}),i=r.type,s=o?o._sentryId:void 0),clearTimeout(n),n=e3.setTimeout(()=>{s=void 0,i=void 0},1e3)}}let e6="__sentry_xhr_v3__";function e8(){if(!e3.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,Z.zf)(),s=(0,ee.Kg)(r[0])?r[0].toUpperCase():void 0,a=function(e){if((0,ee.Kg)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!s||!a)return e.apply(t,r);t[e6]={method:s,url:a,request_headers:{}},"POST"===s&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[e6];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}eG("xhr",{endTimestamp:1e3*(0,Z.zf)(),startTimestamp:i,xhr:t,virtualError:n}),t.removeEventListener("readystatechange",o)}};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,i]=r,s=t[e6];return s&&(0,ee.Kg)(n)&&(0,ee.Kg)(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[e6];return n&&(void 0!==r[0]&&(n.body=r[0]),eG("xhr",{startTimestamp:1e3*(0,Z.zf)(),xhr:t})),e.apply(t,r)}})}function e9(e){let t="history";ez(t,e),eW(t,e7)}function e7(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=a,i=function(e){try{return new URL(e,e3.location.origin).toString()}catch{return e}}(String(r));if(a=i,n===i)return e.apply(this,t);eG("history",{from:n,to:i})}return e.apply(this,t)}}e3.addEventListener("popstate",()=>{let e=e3.location.href,t=a;a=e,t!==e&&eG("history",{from:t,to:e})}),"history"in eK&&eK.history&&((0,b.GS)(e3.history,"pushState",e),(0,b.GS)(e3.history,"replaceState",e))}let te={};try{"undefined"!=typeof Node&&(te.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(te.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,te.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,te.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,te.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(te.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function tt(e,t,r){let n=te[t];if(n)try{return n.call(e,r)}catch{}let i=e[t];return"function"==typeof i?i.call(e,r):i}function tr(e,t={}){if(!e)return"<unknown>";try{let r,n=e,i=[],s=0,a=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<5&&(r=function(e,t){let r=[],n=tt(e,"tagName");if(!n)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){let t=tt(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}r.push(n.toLowerCase());let i=t?.length?t.filter(t=>tt(e,"getAttribute",t)).map(t=>[t,tt(e,"getAttribute",t)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{let t=tt(e,"id");t&&r.push(`#${t}`);let n=tt(e,"className");if(n&&(0,ee.Kg)(n))for(let e of n.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=tt(e,"getAttribute",t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,o),"html"!==r&&(!(s>1)||!(a+3*i.length+r.length>=l)));)i.push(r),a+=r.length,n=tt(n,"parentNode");return i.reverse().join(" > ")}catch{return"<unknown>"}}let tn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ti="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
7Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");function ts(e){return function(...t){let r=t[0];return t[0]=e$(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,S.qQ)(e)}`}}),e.apply(this,t)}}function ta(e){return function(t){return e.apply(this,[e$(t,{mechanism:{data:{handler:(0,S.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function to(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,b.GS)(r,e,function(t){let r={mechanism:{data:{handler:(0,S.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,b.sp)(t);return n&&(r.mechanism.data.handler=(0,S.qQ)(n)),e$(t,r)})}),e.apply(this,t)}}function tl(e,t,r){e3.document&&e3.addEventListener(e,t,r)}function tu(e,t,r){e3.document&&e3.removeEventListener(e,t,r)}function tc(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}function td(){try{let e=eF.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let th=null;function tp(){th=N.O.onerror,N.O.onerror=function(e,t,r,n,i){return eG("error",{column:n,error:i,line:r,msg:e,url:t}),!!th&&th.apply(this,arguments)},N.O.onerror.__SENTRY_INSTRUMENTED__=!0}let tf=null;function tg(){tf=N.O.onunhandledrejection,N.O.onunhandledrejection=function(e){return eG("unhandledrejection",e),!tf||tf.apply(this,arguments)},N.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function t_(e){tn&&u.Yz.log(`Global Handler attached: ${e}`)}function tv(){let e=(0,y.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function tm(e){return Array.isArray(e.errors)}function ty(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...tm(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function tb(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function tE(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?S.yF:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tx=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tS=/\((\S*)(?::(\d+))(?::(\d+))\)/,tP=/at (.+?) ?\(data:(.+?),/,tR=[30,e=>{let t=e.match(tP);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=tw.exec(e);if(r){let[,e,t,n]=r;return tE(e,S.yF,+t,+n)}let n=tx.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=tS.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=tI(n[1]||S.yF,n[2]);return tE(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tO=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tT=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tk=[50,e=>{let t=tO.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tT.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]||S.yF;return[r,e]=tI(r,e),tE(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tA=(0,S.gd)(tR,tk),tI=(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]:S.yF,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tC="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tN={};function tj(e,t=function(e){let t=tN[e];if(t)return t;let r=e3[e];if(eJ(r))return tN[e]=r.bind(e3);let n=e3.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){tC&&u.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?tN[e]=r.bind(e3):r}("fetch")){let r=0,n=0;async function i(i){let s=i.body.length;r+=s,n++;
7let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,a);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw tN.fetch=void 0,e}finally{r-=s,n--}}return function(e,t,r=Q(e.bufferSize||64)){let n={};return{send:function(i){let s=[];if(L(i,(t,r)=>{let i=$(r);!function(e,t,r=(0,C.Wk)()){return(e[t]||e.all||0)>r}(n,i)?s.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===s.length)return Promise.resolve({});let a=j(i[0],s),o=t=>{var r;if(r=["client_report"],L(a,(e,t)=>r.includes(t))){l.T&&u.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}L(a,(r,n)=>{e.recordDroppedEvent(t,$(n))})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[F(n),e]:n.push("string"==typeof e?F(e):e)}for(let e of r){let[t,r]=e;if(i(` 8${JSON.stringify(t)} 9`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,T.S8)(r))}i(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)}(a)}).then(e=>(413===e.statusCode?(l.T&&u.Yz.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),o("send_error")):(l.T&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&u.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=function(e,{statusCode:t,headers:r},n=(0,C.Wk)()){let i={...e},s=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,r,,,s]=e.split(":",5),a=parseInt(t,10),o=(isNaN(a)?60:a)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=n+o):i[e]=n+o;else i.all=n+o}else a?i.all=n+function(e,t=(0,C.Wk)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(a,n):429===t&&(i.all=n+6e4);return i}(n,e)),e),e=>{throw o("network_error"),l.T&&u.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===J)return l.T&&u.Yz.error("Skipped sending event because buffer is full."),o("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i,Q(e.bufferSize||40))}let tM=/^HTML(\w*)Element$/;function tL(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(tM.test(t))return`[HTMLElement: ${tr(e)}]`}}var tF=r(4232);function tD(e){return(0,ee.Qd)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":tL(e)}let t$=[/^chrome-extension:\/\//i,/^moz-extension:\/\//i,/^safari-(web-)?extension:\/\//i,/^webkit-masked-url:/i],tU=[/^Cancel rendering route$/i,/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:\w+, ParamCount:\d+$/i,/^Object Not Found Matching Id:\d+, MethodName:update, ParamCount:\d+$/i,/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i,/^Script error\.?$/i,/^Invariant: attempted to hard navigate to the same URL \/.+$/i],tB=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function tH(e){if("string"!=typeof e||!e)return e;let t="",r=e,n=e.match(/^([a-z][a-z0-9+.-]*:\/\/[^/]*)(\/.*)?$/i);return n&&(t=n[1],r=n[2]||""),t+(r=r.split("?")[0].split("#")[0]).split("/").map(e=>e&&(/^\d+$/.test(e)||tB.test(e)||e.length>=8&&/\d/.test(e)&&/^[A-Za-z0-9_-]+$/.test(e))?":id":e).join("/")}function tq(e){if(!e||"object"!=typeof e)return e;if(e.request&&(delete e.request.cookies,delete e.request.data,delete e.request.headers,"string"==typeof e.request.url&&(e.request.url=tH(e.request.url))),"string"==typeof e.transaction&&(e.transaction=tH(e.transaction)),Array.isArray(e.breadcrumbs))for(let t of e.breadcrumbs)t&&t.data&&"string"==typeof t.data.url&&(t.data.url=tH(t.data.url));return e}var tz=r(5364);let tW="quiver_error_session";function tG(){try{let e="undefined"!=typeof crypto?crypto:void 0;if(e&&"function"==typeof e.randomUUID)return e.randomUUID();if(e&&"function"==typeof e.getRandomValues){let t=new Uint8Array(16);return e.getRandomValues(t),Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")}}catch(e){}
9return"f".concat(Math.random().toString(36).slice(2)).concat(Math.random().toString(36).slice(2))}let tV=!1;function tY(){if(tV)return!1;let e="https://6f85c01a7ef0f6856ef055c9c5fbb7f1@o4511875359440897.ingest.de.sentry.io/4511875803512912";return!!e&&(!function(e){let t={...e};eP(t,"react"),(0,o.o)("react",{version:tF.version}),function(e={}){var t;let r,n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eF.window||eF.nw)return!1;let e=eF.chrome||eF.browser;if(!e?.runtime?.id)return!1;let t=eL();return!(eF===eF.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(tn&&(0,u.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),i=null==e.defaultIntegrations?[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=v(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=v(e,i.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,g.Xr)(r,t)}(e,t.ignoreTransactions))return l.T&&u.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 10Event: ${(0,f.$X)(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&p(r).some(e=>(0,g.Xr)(e,n)))return l.T&&u.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 11Event: ${(0,f.$X)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return l.T&&u.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace. 12Event: ${(0,f.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=m(e);return!!r&&(0,g.Xr)(r,t)}(e,t.denyUrls))return l.T&&u.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option. 13Event: ${(0,f.$X)(e)}. 14Url: ${m(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=m(e);return!r||(0,g.Xr)(r,t)}(e,t.allowUrls))return l.T&&u.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option. 15Event: ${(0,f.$X)(e)}. 16Url: ${m(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r,n=(0,b.sp)(this);try{E.has((0,y.KU)())&&void 0!==n&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){E.set(e,!0)}},{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,y.o5)().getScopeData(),r=(0,y.rm)().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:i}=(0,x.et)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute(w.Fy,n)}})}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,b.GS)(eF,"setTimeout",ts),t.setInterval&&(0,b.GS)(eF,"setInterval",ts),t.requestAnimationFrame&&(0,b.GS)(eF,"requestAnimationFrame",ta),t.XMLHttpRequest&&"XMLHttpRequest"in eF&&(0,b.GS)(XMLHttpRequest.prototype,"send",to);let e=t.eventTarget;e&&(Array.isArray(e)?e:ti).forEach(e=>(function(e,t){let r=eF[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,b.GS)(r,"addEventListener",function(r){return function(n,i,s){var a,o,l,u;try{a=i,"function"==typeof a.handleEvent&&(i.handleEvent=e$(i.handleEvent,{mechanism:{data:{handler:(0,S.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(o=this,l=n,u=i,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,u)),r.apply(this,[n,e$(i,{mechanism:{data:{handler:(0,S.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}
16),(0,b.GS)(r,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}}catch{}return e.call(this,t,r,n)}}))})(e,t))}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,s,a,o,c;t.console&&function(e){let t="console";ez(t,e),eW(t,eX)}((r=e,function(e){var t;if((0,y.KU)()!==r)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:(0,g.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else n.message=`Assertion failed: ${(0,g.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);e0(n,{input:e.args,level:e.level})})),t.dom&&(ez("dom",(n=e,i=t.dom,function(e){let t,r;if((0,y.KU)()!==n)return;let s="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(tn&&u.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof s&&(s=[s]);try{var o;let n=e.event,i=(o=n)&&o.target?n.target:n;t=tr(i,{keyAttrs:s,maxStringLength:a}),r=function(e,t=5){if(!eM.HTMLElement)return null;let r=e;for(let e=0;e<t&&r;e++){if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),e0(l,{event:e.event,name:e.name,global:e.global})})),eW("dom",e4)),t.xhr&&(ez("xhr",(s=e,function(e){if((0,y.KU)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[e6];if(!t||!r||!n)return;let{method:i,url:a,status_code:o,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:i,url:a,status_code:o},type:"http",level:e1(o)};s.emit("beforeOutgoingRequestBreadcrumb",c,u),e0(c,u)})),eW("xhr",e8)),t.fetch&&function(e,t){let r="fetch";ez(r,e),eW(r,()=>(function(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eK))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(eJ(eK.fetch))return!0;let e=!1,t=eK.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=eJ(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){l.T&&u.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,b.GS)(N.O,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:eZ(t),method:eQ(r,"method")?String(r.method).toUpperCase():(0,ee.ks)(t)&&eQ(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:eZ(t),method:eQ(t,"method")?String(t.method).toUpperCase():"GET"}}(r),a={args:r,fetchData:{method:i,url:s},startTimestamp:1e3*(0,Z.zf)(),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,ee.ks)(t))return new Headers(t.headers)}catch{}}(r)};return e||eG("fetch",{...a}),t.apply(N.O,r).then(async t=>(e?e(t):eG("fetch",{...a,endTimestamp:1e3*(0,Z.zf)(),response:t}),t),e=>{eG("fetch",{...a,endTimestamp:1e3*(0,Z.zf)(),error:e}),(0,ee.bJ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,b.my)(e,"framesToPop",1));let t=(0,y.KU)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&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(a.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,b.my)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})})(void 0,void 0))}((a=e,function(e){if((0,y.KU)()!==a)return;let{startTimestamp:t,endTimestamp:r}=e;
16if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};a.emit("beforeOutgoingRequestBreadcrumb",i,n),e0(i,n)}else{let n=e.response,i={...e.fetchData,status_code:n?.status},s={input:e.args,response:n,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:i,type:"http",level:e1(i.status_code)};a.emit("beforeOutgoingRequestBreadcrumb",o,s),e0(o,s)}})),t.history&&e9((o=e,function(e){if((0,y.KU)()!==o)return;let t=e.from,r=e.to,n=e2(eF.location.href),i=t?e2(t):void 0,s=e2(r);i?.path||(i=n),n.protocol===s.protocol&&n.host===s.host&&(r=s.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),e0({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(c=e,function(e){(0,y.KU)()===c&&e0({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,f.$X)(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){let t="error";ez(t,t=>{let{stackParser:r,attachStacktrace:n}=tv();if((0,y.KU)()!==e||eD>0)return;let{msg:i,url:s,line:a,column:l,error:u}=t,c=function(e,t,r,n){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[];return 0===l.length&&l.push({colno:n,lineno:r,filename:function(e){if((0,ee.Kg)(e)&&0!==e.length)return e.startsWith("data:")?`<${function(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(","),a="";if(t&&-1!==s){let t=e.slice(s+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${a?`,${a}`:""}`}return e}(e,!1)}>`:e}(t)??eL(),function:S.yF,in_app:!0}),e}(eN(r,u||i,void 0,n,!1),s,a,l);c.level="error",(0,o.r)(c,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),eW(t,tp)}(e),t_("onerror")),t.onunhandledrejection&&(function(e){let t="unhandledrejection";ez(t,t=>{var r;let{stackParser:n,attachStacktrace:i}=tv();if((0,y.KU)()!==e||eD>0)return;let s=function(e){if((0,ee.sO)(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}(t),a=(0,ee.sO)(s)?(r=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(r)}`}]}}):eN(n,s,void 0,i,!0);a.level="error",(0,o.r)(a,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),eW(t,tg)}(e),t_("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,s){if(!i.exception?.values||!s||!(0,ee.tH)(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=function e(t,r,n,i,s,a,o,l){if(a.length>=n+1)return a;let u=[...a];if((0,ee.tH)(i[s],Error)){ty(o,l,i);let a=t(r,i[s]),c=u.length;tb(a,s,c,l),u=e(t,r,n,i[s],s,[a,...u],a,c)}return tm(i)&&i.errors.forEach((a,c)=>{if((0,ee.tH)(a,Error)){ty(o,l,i);let d=t(r,a),h=u.length;tb(d,`errors[${c}]`,h,l),u=e(t,r,n,a,s,[d,...u],d,h)}}),u}(e,t,n,s.originalException,r,i.exception.values,a,0))}(eT,i.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,n;if(t=e,(n=r)&&(function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!R(e,t)&&!!P(e,t)&&!0}(t,n)||function(e,t){let r=O(t),n=O(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!R(e,t)&&!!P(e,t)}(t,n)))return l.T&&u.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return r=e}},{name:"HttpContext",preprocessEvent(e){if(!eF.navigator&&!eF.location&&!eF.document)return;let t=eU(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){let t=e.attributes?.[w.uT];if(!eF.navigator&&!eF.location&&!eF.document)return;let r=eU();tc(e,{"url.full":"http.client"!==t?r.url:void 0,"http.request.header.user_agent":r.headers["User-Agent"],"http.request.header.referer":r.headers.Referer})}},{name:"CultureContext",preprocessEvent(e){let t=td();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=td();t&&tc(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}},((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){let e;if(void 0===eF.document){tn&&u.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,o.J0)({ignoreDuration:!0});let r=!1;var n,i=()=>{r||((0,o.J5)(),r=!0)};let s=e3.requestIdleCallback||e3.setTimeout;e3.document?.visibilityState==="hidden"?i():(tl("visibilitychange",(n=i,e=!1,i=()=>{e||(n(),e=!0)}),{once:!0,capture:!0}),tl("pagehide",i,{once:!0,capture:!0}),s(()=>{i(),tu("visibilitychange",i,{capture:!0}),tu("pagehide",i,{capture:!0})}
16));let a=(0,y.rm)(),l=a.getUser();a.addScopeListener(e=>{let t=e.getUser();(l?.id!==t?.id||l?.ip_address!==t?.ip_address)&&(l=t,r&&(0,o.J5)())}),"route"===t&&e9(({from:e,to:t})=>{e!==t&&((0,o.J0)({ignoreDuration:!0}),(0,o.J5)(),r=!0)})}}})()]:e.defaultIntegrations,s={...e,enabled:!n&&e.enabled,stackParser:(0,S.vk)(e.stackParser||tA),integrations:function(e){let t,r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;let i={};return t.forEach(e=>{let{name:t}=e,r=i[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(i[t]=e)}),Object.values(i)}({integrations:e.integrations,defaultIntegrations:i}),transport:e.transport||tj};(0,T.Ip)(tL),!0===s.debug&&(l.T?u.Yz.enable():(0,u.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,y.o5)().update(s.initialScope);let a=new eB(s);t=a,(0,y.o5)().setClient(t),a.init()}(t),(0,T.Ip)(tD)}({dsn:e,environment:tz.env.NEXT_PUBLIC_SENTRY_ENV||"production",release:"62dc121ac7295b1e0769250ce09a186abfc16945",tracesSampleRate:0,sendDefaultPii:!1,beforeSend:e=>!function(e){if(!e||"object"!=typeof e)return!1;let t=function(e){if(!e||"object"!=typeof e)return"";if("string"==typeof e.message&&e.message)return e.message;let t=e.exception&&e.exception.values;if(Array.isArray(t)&&t.length){let e=t[t.length-1];if(e&&"string"==typeof e.value)return e.value}return""}(e);if(t&&tU.some(e=>e.test(t)))return!0;let r=function(e){let t=e&&e.exception&&e.exception.values||[],r=[];for(let e of t){let t=e&&e.stacktrace&&e.stacktrace.frames;Array.isArray(t)&&r.push(...t)}return r}(e);return!!("Error invoking postMessage: Java object is gone"===t&&r.length>0&&r.every(e=>"iabjs://navigation_performance_logger_android"===e.filename)||r.length>0&&r.every(e=>"string"==typeof e.filename&&t$.some(t=>t.test(e.filename))))}(e)?tq(e):null,beforeBreadcrumb:e=>(e&&e.data&&"string"==typeof e.data.url&&(e.data.url=tq({request:{url:e.data.url}}).request.url),e)}),o.gV({id:function(){try{let e=window.sessionStorage.getItem(tW);if(e)return e;let t=tG();return window.sessionStorage.setItem(tW,t),t}catch(e){return tG()}}()}),tV=!0,!0)}},8093:(e,t,r)=>{"use strict";let n;r.d(t,{$X:()=>u,GR:()=>h,M6:()=>d,eJ:()=>o,gO:()=>c});var i=r(1830),s=r(8934),a=r(7628);function o(e=function(){let e=a.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,s.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*(0,s.hY)())>>e/4).toString(16))}function l(e){return e.exception?.values?.[0]}function u(e){let{message:t,event_id:r}=e;if(t)return t;let n=l(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function c(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=r||"Error")}function d(e,t){let r=l(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function h(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,i.my)(e,"__sentry_captured__",!0)}catch{}return!1}},8116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let i=r.get(t);i||(i=t.map(e=>e.toLowerCase()),r.set(t,i));let s=e.split("/",2);if(!s[1])return{pathname:e};let a=s[1].toLowerCase(),o=i.indexOf(a);return o<0?{pathname:e}:(n=t[o],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},8123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(4252),i=r(7876),s=n._(r(4232)),a=n._(r(9269)),o={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{req:t,res:r,err:n}=e;return{statusCode:r&&r.statusCode?r.statusCode:n?n.statusCode:404,hostname:window.location.hostname}}let u={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"}
16,wrap:{display:"inline-block"}};class c extends s.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||o[e]||"An unexpected error has occurred";return(0,i.jsxs)("div",{style:u.error,children:[(0,i.jsx)(a.default,{children:(0,i.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,i.jsxs)("div",{style:u.desc,children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,i.jsx)("h1",{className:"next-error-h1",style:u.h1,children:e}):null,(0,i.jsx)("div",{style:u.wrap,children:(0,i.jsxs)("h2",{style:u.h2,children:[this.props.title||e?r:(0,i.jsxs)(i.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,i.jsxs)(i.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=l,c.origGetInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8334:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>l,J0:()=>p,J5:()=>_,SA:()=>h,gV:()=>d,o:()=>c,r:()=>u});var n=r(8813),i=r(1293),s=r(7640),a=r(7855),o=r(7628);function l(e,t){return(0,n.o5)().captureException(e,(0,s.li)(t))}function u(e,t){return(0,n.o5)().captureEvent(e,t)}function c(e,t){(0,n.rm)().setContext(e,t)}function d(e){(0,n.rm)().setUser(e)}function h(e){(0,n.rm)().addEventProcessor(e)}function p(e){let t=(0,n.rm)(),{user:r}=(0,a.Om)(t,(0,n.o5)()),{userAgent:s}=o.O.navigator||{},l=(0,i.fj)({user:r,...s&&{userAgent:s},...e}),u=t.getSession();return u?.status==="ok"&&(0,i.qO)(u,{status:"exited"}),f(),t.setSession(l),l}function f(){let e=(0,n.rm)(),t=(0,n.o5)().getSession()||e.getSession();t&&(0,i.Vu)(t),g(),e.setSession()}function g(){let e=(0,n.rm)(),t=(0,n.KU)(),r=e.getSession();r&&t&&t.captureSession(r)}function _(e=!1){if(e)return void f();g()}},8340:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5824),r(7647);let n=r(1467);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8365:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=s?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(i,a,o):i[a]=e[a]}return i.default=e,r&&r.set(e,i),i}r.r(t),r.d(t,{_:()=>i})},8461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return s}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function i(e){return["async","defer","noModule"].includes(e)}function s(e,t){for(let[s,a]of Object.entries(t)){if(!t.hasOwnProperty(s)||n.includes(s)||void 0===a)continue;let o=r[s]||s.toLowerCase();"SCRIPT"===e.tagName&&i(o)?e[o]=!!a:e.setAttribute(o,String(a)),(!1===a||"SCRIPT"===e.tagName&&i(o)&&(!a||"false"===a))&&(e.setAttribute(o,""),e.removeAttribute(o))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
16dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r(2439).detectDomainLocale(...t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8757:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},8760:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n="production"},8772:(e,t,r)=>{"use strict";r.d(t,{ao:()=>g,k1:()=>_});var n=r(8760),i=r(8813),s=r(7510),a=r(45);let o="sentry-";function l(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}var u=r(3442);function c(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||(0,i.KU)()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}var d=r(82);let h=Symbol.for("sentry.nonRecordingSpan");var p=r(4437);function f(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},s={environment:r.environment||n.U,release:r.release,public_key:i,trace_id:e,org_id:(0,u.ul)(t)};return t.emit("createDsc",s),s}function g(e,t){let r=t.getPropagationContext();return r.dsc||f(r.traceId,e)}function _(e){let t=(0,i.KU)();if(!t)return{};let r=(0,d.zU)(e),n=(0,d.et)(r),u=n.data,_=r.spanContext().traceState,v=_?.get("sentry.sample_rate")??u[s.sy]??u[s.Ef];function m(e){return("number"==typeof v||"string"==typeof v)&&(e.sample_rate=`${v}`),e}let y=r._frozenDsc;if(y)return m(y);let b=!!r&&!0===r[h],E=b&&"ignored"===r.dropReason;if(b&&(!c(t.getOptions())||E)){let e=(0,p.Lb)(r).scope;if(e){let r={...g(t,e)};return E&&(r.sampled="false"),m(r)}}let w=_?.get("sentry.dsc"),x=w&&function(e){let t=function(e){if(e&&((0,a.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(l(t)).forEach(([t,r])=>{e[t]=r}),e),{}):l(e)}(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.startsWith(o)&&(e[t.slice(o.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}(w);if(x)return m(x);let S=f(e.spanContext().traceId,t),P=u[s.i_]??u["sentry.segment.name.source"],R=n.description;return"url"!==P&&R&&(S.transaction=R),c()&&(S.sampled=String((0,d.pK)(r)),S.sample_rand=_?.get("sentry.sample_rand")??(0,p.Lb)(r).scope?.getPropagationContext().sampleRand.toString()),m(S),t.emit("createDsc",S,r),S}},8797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return a},PathnameContext:function(){return s},SearchParamsContext:function(){return i}});let n=r(4232),i=(0,n.createContext)(null),s=(0,n.createContext)(null),a=(0,n.createContext)(null)},8811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return i},getAccessFallbackErrorTypeByStatus:function(){return o},getAccessFallbackHTTPStatus:function(){return a},isHTTPAccessFallbackError:function(){return s}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),i="NEXT_HTTP_ERROR_FALLBACK";function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===i&&n.has(Number(r))}function a(e){return Number(e.digest.split(";")[1])}function o(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
16dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8813:(e,t,r)=>{"use strict";let n;r.d(t,{KU:()=>b,o5:()=>_,m6:()=>m,rm:()=>v,vn:()=>E,v4:()=>y});var i=r(6925),s=r(9306);let a=e=>e instanceof Promise&&!e[o],o=Symbol("chained PromiseLike");var l=r(45);class u{constructor(e,t){let r,n;r=e||new s.H,n=t||new s.H,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,l.Qg)(t)?((e,t,r)=>{let n=e.then(e=>(t(e),e),e=>{throw r(e),e});return a(n)&&a(e)?n:((e,t)=>{if(!t)return e;let r=!1;for(let n in e){if(n in t)continue;r=!0;let i=e[n];"function"==typeof i?Object.defineProperty(t,n,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=i}return r&&Object.assign(t,{[o]:!0}),t})(e,n)})(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){let e=(0,i.EU)(),t=(0,i.Se)(e);return t.stack=t.stack||new u((0,i.BY)("defaultCurrentScope",()=>new s.H),(0,i.BY)("defaultIsolationScope",()=>new s.H))}function d(e){return c().withScope(e)}function h(e,t){let r=c();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function p(e){return c().withScope(()=>e(c().getIsolationScope()))}function f(e){let t=(0,i.Se)(e);return t.acs?t.acs:{withIsolationScope:p,withScope:d,withSetScope:h,withSetIsolationScope:(e,t)=>p(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}var g=r(2252);function _(){return f((0,i.EU)()).getCurrentScope()}function v(){return f((0,i.EU)()).getIsolationScope()}function m(){return(0,i.BY)("globalScope",()=>new s.H)}function y(...e){let t=f((0,i.EU)());if(2===e.length){let[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function b(){return _().getClient()}function E(e){let t=n?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:r,parentSpanId:i,propagationSpanId:s}=e.getPropagationContext(),a={trace_id:r,span_id:s||(0,g.Z)()};return i&&(a.parent_span_id=i),a}},8934:(e,t,r)=>{"use strict";let n;r.d(t,{Qw:()=>s,Wk:()=>o,hY:()=>a});var i=r(7628);function s(e){if(void 0!==n)return n?n(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=i.O;return t in r&&"function"==typeof r[t]?(n=r[t])(e):(n=null,e())}function a(){return s(()=>Math.random())}function o(){return s(()=>Date.now())}},9094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return s}});let n=r(135),i=r(9783);function s(e,t){return(0,i.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9161:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},9213:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},9238:(e,t,r)=>{"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();let r=document.documentElement;r.dataset.scrollBehavior;let n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}
16Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),r(6201)},9263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=r(4252)._(r(4232)),i=r(9161),s=n.default.createContext(i.imageConfigDefault)},9269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},defaultHead:function(){return d}});let n=r(4252),i=r(8365),s=r(7876),a=i._(r(4232)),o=n._(r(2226)),l=r(4461),u=r(7965),c=r(3169);function d(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(6201);let p=["name","httpEquiv","charSet","itemProp"];function f(e,t){let{inAmpMode:r}=t;return e.reduce(h,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let s=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?s=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?s=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?s=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!a)&&r.has(e)?s=!1:(r.add(e),n[t]=r)}}}return s}}()).reverse().map((e,t)=>{let r=e.key||t;return a.default.cloneElement(e,{key:r})})}let g=function(e){let{children:t}=e,r=(0,a.useContext)(l.AmpStateContext),n=(0,a.useContext)(u.HeadManagerContext);return(0,s.jsx)(o.default,{reduceComponentsToState:f,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9306:(e,t,r)=>{"use strict";r.d(t,{H:()=>v});var n=r(1419),i=r(1293),s=r(6011),a=r(45),o=r(5095),l=r(8093),u=r(2252),c=r(8934),d=r(1830),h=r(7070);let p="_sentrySpan";
16function f(e,t){t?(0,d.my)(e,p,(0,h.Z)(t)):delete e[p]}var g=r(6076),_=r(9344);class v{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.e)(),sampleRand:(0,c.hY)()}}clone(){let e=new v;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,f(e,(0,h.q)(this[p])),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:i,user:s,contexts:o,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=(t instanceof v?t.getScopeData():(0,a.Qd)(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,f(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,c.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,_.lu)(),...e,message:e.message?(0,g.xv)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,h.q)(this[p]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,o.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
16captureException(e,t){let r=t?.event_id||(0,l.eJ)();if(!this._client)return n.T&&s.Yz.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||(0,l.eJ)();if(!this._client)return n.T&&s.Yz.warn("No client configured on scope - will not capture message!"),i;let a=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},this),i}captureEvent(e,t){let r=e.event_id||t?.event_id||(0,l.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):n.T&&s.Yz.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},9308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return f},APP_DIR_ALIAS:function(){return j},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return C},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return Y},GSSP_COMPONENT_MEMBER_ERROR:function(){return J},GSSP_NO_RETURNED_VALUE:function(){return X},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return O},INSTRUMENTATION_HOOK_FILENAME:function(){return A},JSON_CONTENT_TYPE_HEADER:function(){return i},MATCHED_PATH_HEADER:function(){return o},MIDDLEWARE_FILENAME:function(){return T},MIDDLEWARE_LOCATION_REGEXP:function(){return k},NEXT_BODY_SUFFIX:function(){return v},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return P},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return b},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return S},NEXT_CACHE_TAGS_HEADER:function(){return m},NEXT_CACHE_TAG_MAX_ITEMS:function(){return w},NEXT_CACHE_TAG_MAX_LENGTH:function(){return x},NEXT_DATA_SUFFIX:function(){return g},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return a},NEXT_META_SUFFIX:function(){return _},NEXT_QUERY_PARAM_PREFIX:function(){return s},NEXT_RESUME_HEADER:function(){return E},NON_STANDARD_NODE_ENV:function(){return Q},PAGES_DIR_ALIAS:function(){return I},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return u},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return H},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return B},RSC_ACTION_ENCRYPTION_ALIAS:function(){return U},RSC_ACTION_PROXY_ALIAS:function(){return F},RSC_ACTION_VALIDATE_ALIAS:function(){return L},RSC_CACHE_WRAPPER_ALIAS:function(){return D},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return $},RSC_MOD_REF_PROXY_ALIAS:function(){return M},RSC_PREFETCH_SUFFIX:function(){return c},RSC_SEGMENTS_DIR_SUFFIX:function(){return d},RSC_SEGMENT_SUFFIX:function(){return h},RSC_SUFFIX:function(){return p},SERVER_PROPS_EXPORT_ERROR:function(){return V},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return z},SERVER_PROPS_SSG_CONFLICT:function(){return W},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Z},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return q},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return G},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return r},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return K},WEBPACK_LAYERS:function(){return en},WEBPACK_RESOURCE_QUERIES:function(){return ei}});let r="text/plain",n="text/html; charset=utf-8",i="application/json; charset=utf-8",s="nxtP",a="nxtI",o="x-matched-path",l="x-prerender-revalidate",u="x-prerender-revalidate-if-generated",c=".prefetch.rsc",d=".segments",h=".segment.rsc",p=".rsc",f=".action",g=".json",_=".meta",v=".body",m="x-next-cache-tags",y="x-next-revalidated-tags",b="x-next-revalidate-tag-token",E="next-resume",w=128,x=256,S=1024,P="_N_T_",R=31536e3,O=0xfffffffe,T="middleware",k=`(?:src/)?${T}`,A="instrumentation",I="private-next-pages",C="private-dot-next",N="private-next-root-dir",j="private-next-app-dir",M="private-next-rsc-mod-ref-proxy",
16L="private-next-rsc-action-validate",F="private-next-rsc-server-reference",D="private-next-rsc-cache-wrapper",$="private-next-rsc-track-dynamic-import",U="private-next-rsc-action-encryption",B="private-next-rsc-action-client-wrapper",H="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",q="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",z="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",W="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",G="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",V="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Y="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",X="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",K="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",J="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",Q='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',Z="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ee=["app","pages","components","lib","src"],et={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},er={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"},en={...er,GROUP:{builtinReact:[er.reactServerComponents,er.actionBrowser],serverOnly:[er.reactServerComponents,er.actionBrowser,er.instrument,er.middleware],neutralTarget:[er.apiNode,er.apiEdge],clientOnly:[er.serverSideRendering,er.appPagesBrowser],bundled:[er.reactServerComponents,er.actionBrowser,er.serverSideRendering,er.appPagesBrowser,er.shared,er.instrument,er.middleware],appPages:[er.reactServerComponents,er.serverSideRendering,er.appPagesBrowser,er.actionBrowser]}},ei={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},9344:(e,t,r)=>{"use strict";let n;r.d(t,{lu:()=>a,zf:()=>o});var i=r(8934),s=r(7628);function a(){return(0,i.Wk)()/1e3}function o(){return(n??(n=function(){let{performance:e}=s.O;if(!e?.now||!e.timeOrigin)return a;let t=e.timeOrigin;return()=>(t+(0,i.Qw)(()=>e.now()))/1e3}()))()}},9504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseUrl",{enumerable:!0,get:function(){return s}});
16let n=r(1490),i=r(1659);function s(e){if(e.startsWith("/"))return(0,i.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,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},9509:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(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 i="",s=r+1;s<e.length;){var a=e.charCodeAt(s);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||95===a){i+=e[s++];continue}break}if(!i)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if("("===n){var o=1,l="",s=r+1;if("?"===e[s])throw TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if("\\"===e[s]){l+=e[s++]+e[s++];continue}
16if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw TypeError("Capturing groups are not allowed at ".concat(s));l+=e[s++]}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=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,s=void 0===n?"./":n,a=t.delimiter,o=void 0===a?"/#?":a,l=[],u=0,c=0,d="",h=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},p=function(e){var t=h(e);if(void 0!==t)return t;var n=r[c],i=n.type,s=n.index;throw TypeError("Unexpected ".concat(i," at ").concat(s,", expected ").concat(e))},f=function(){for(var e,t="";e=h("CHAR")||h("ESCAPED_CHAR");)t+=e;return t},g=function(e){for(var t=0;t<o.length;t++){var r=o[t];if(e.indexOf(r)>-1)return!0}return!1},_=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||g(r)?"[^".concat(i(o),"]+?"):"(?:(?!".concat(i(r),")[^").concat(i(o),"])+?")};c<r.length;){var v=h("CHAR"),m=h("NAME"),y=h("PATTERN");if(m||y){var b=v||"";-1===s.indexOf(b)&&(d+=b,b=""),d&&(l.push(d),d=""),l.push({name:m||u++,prefix:b,suffix:"",pattern:y||_(b),modifier:h("MODIFIER")||""});continue}var E=v||h("ESCAPED_CHAR");if(E){d+=E;continue}if(d&&(l.push(d),d=""),h("OPEN")){var b=f(),w=h("NAME")||"",x=h("PATTERN")||"",S=f();p("CLOSE"),l.push({name:w||(x?u++:""),pattern:w&&!x?_(b):x,prefix:b,suffix:S,modifier:h("MODIFIER")||""});continue}p("END")}return l}function r(e,t){void 0===t&&(t={});var r=s(t),n=t.encode,i=void 0===n?function(e){return e}:n,a=t.validate,o=void 0===a||a,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 s=e[n];if("string"==typeof s){r+=s;continue}var a=t?t[s.name]:void 0,u="?"===s.modifier||"*"===s.modifier,c="*"===s.modifier||"+"===s.modifier;if(Array.isArray(a)){if(!c)throw TypeError('Expected "'.concat(s.name,'" to not repeat, but got an array'));if(0===a.length){if(u)continue;throw TypeError('Expected "'.concat(s.name,'" to not be empty'))}for(var d=0;d<a.length;d++){var h=i(a[d],s);if(o&&!l[n].test(h))throw TypeError('Expected all "'.concat(s.name,'" to match "').concat(s.pattern,'", but got "').concat(h,'"'));r+=s.prefix+h+s.suffix}continue}if("string"==typeof a||"number"==typeof a){var h=i(String(a),s);if(o&&!l[n].test(h))throw TypeError('Expected "'.concat(s.name,'" to match "').concat(s.pattern,'", but got "').concat(h,'"'));r+=s.prefix+h+s.suffix;continue}if(!u){var p=c?"an array":"a string";throw TypeError('Expected "'.concat(s.name,'" to be ').concat(p))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,i=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var s=n[0],a=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 i(e,r)}):o[r.name]=i(n[e],r)}}(l);return{path:s,index:a,params:o}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function s(e){return e&&e.sensitive?"":"i"}function a(e,t,r){void 0===r&&(r={});for(var n=r.strict,a=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,h=r.endsWith,p="[".concat(i(void 0===h?"":h),"]|$"),f="[".concat(i(void 0===d?"/#?":d),"]"),g=void 0===o||o?"^":"",_=0;_<e.length;_++){var v=e[_];if("string"==typeof v)g+=i(c(v));else{var m=i(c(v.prefix)),y=i(c(v.suffix));if(v.pattern)if(t&&t.push(v),m||y)if("+"===v.modifier||"*"===v.modifier){var b="*"===v.modifier?"?":"";g+="(?:".concat(m,"((?:").concat(v.pattern,")(?:").concat(y).concat(m,"(?:").concat(v.pattern,"))*)").concat(y,")").concat(b)}else g+="(?:".concat(m,"(").concat(v.pattern,")").concat(y,")").concat(v.modifier);else{if("+"===v.modifier||"*"===v.modifier)throw TypeError('Can not repeat "'.concat(v.name,'" without a prefix and suffix'));g+="(".concat(v.pattern,")").concat(v.modifier)}else g+="(?:".concat(m).concat(y,")").concat(v.modifier)}}if(void 0===l||l)a||(g+="".concat(f,"?")),g+=r.endsWith?"(?=".concat(p,")"):"$";else{var E=e[e.length-1],w="string"==typeof E?f.indexOf(E[E.length-1])>-1:void 0===E;a||(g+="(?:".concat(f,"(?=").concat(p,"))?")),w||(g+="(?=".concat(f,"|").concat(p,")"))}return new RegExp(g,s(r))}function o(t,r,n){if(t instanceof RegExp){var i;if(!r)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,c=l.exec(t.source);c;)r.push({name:c[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(t.source);return t}return Array.isArray(t)?(i=t.map(function(e){return o(e,r,n).source}),new RegExp("(?:".concat(i.join("|"),")"),s(n))):a(e(t,n),r,n)}
16Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,n){return r(e(t,n),n)},t.tokensToFunction=r,t.match=function(e,t){var r=[];return n(o(e,r,t),r,t)},t.regexpToFunction=n,t.tokensToRegexp=a,t.pathToRegexp=o})(),e.exports=t})()},9641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(4818),i=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,s=/\/\[[^/]+\](?=\/|$)/;function a(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?s.test(e):i.test(e)}},9663:(e,t,r)=>{"use strict";function n(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(5040);return n(Array.isArray(t)?t.join("; "):t)}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getCookieParser",{enumerable:!0,get:function(){return n}})},9673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let n=r(8116),i=r(4914),s=r(3590);function a(e,t){var r,a;let{basePath:o,i18n:l,trailingSlash:u}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};o&&(0,s.pathHasPrefix)(c.pathname,o)&&(c.pathname=(0,i.removePathPrefix)(c.pathname,o),c.basePath=o);let d=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],d="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=d)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(a=e.pathname)?a:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(d):(0,n.normalizeLocalePath)(d,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},9757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeAttributeString:function(){return o},htmlEscapeJsonString:function(){return a}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,i={"&":"&",'"':""","'":"'","<":"<",">":">"},s=/[&"'<>]/g;function a(e){return e.replace(n,e=>r[e])}function o(e){return e.replace(s,e=>i[e])}},9783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});let n=r(3964),i=r(4200),s=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:s}=(0,i.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+s};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(4252),i=r(9094),s=r(1479),a=n._(r(3281)),o=r(125),l=r(9641),u=r(1659),c=r(3964),d=r(6886);r(7892);class h{getPageList(){return(0,d.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))(|\\.json|\\/?index|\\/?index\\.json|\\/?index(?:\\.rsc|\\.segments\\/.+\\.segment\\.rsc))?[\\/#\\?]?$",originalSource:"/"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/en(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/en"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}
16))\\/en(?:\\/((?:[^\\/#\\?]+?)(?:\\/(?:[^\\/#\\?]+?))*))?(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/en/:path*"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/apply(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/apply"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/apply(?:\\/((?:[^\\/#\\?]+?)(?:\\/(?:[^\\/#\\?]+?))*))?(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/apply/:path*"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/identity(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/identity"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/right-to-work(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/right-to-work"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/driving(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/driving"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/insurance(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/insurance"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/background-checks(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/background-checks"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/agreement(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/agreement"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next\\/)[^/.]{1,}))\\/download(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/download"}],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:d,query:h,search:p}=(0,u.parseRelativeUrl)(r),{pathname:f}=(0,u.parseRelativeUrl)(t),g=(0,c.removeTrailingSlash)(d);if("/"!==g[0])throw Object.defineProperty(Error('Route name should start with a "/", got "'+g+'"'),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});var _=e.skipInterpolation?f:(0,l.isDynamicRoute)(g)?(0,s.interpolateAs)(d,f,h).result:g;let v=(0,a.default)((0,c.removeTrailingSlash)((0,o.addLocale)(_,n)),".json");return(0,i.addBasePath)("/_next/data/"+this.buildId+v+p,!0)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,d.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[593],()=>e(e.s=8340)),_N_E=e.O()}]); 17//# sourceMappingURL=main-7e6070aef0ee67db.js.map 18//# debugId=93aaa847-3373-5c2d-a64d-f673f82d9eb8
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.