PageSourceSearch

https://static-prod.ilpost.it/apps/newsletter/_next/static/chunks/main-3d4603f0f6bcd69c.js

js ilpost.it collected 2026-10-01 08:45:57 UTC 492,330 bytes, 825 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9a686d9d-4135-40b7-b6b3-dc649ca46a41",e._sentryDebugIdIdentifier="sentry-dbid-9a686d9d-4135-40b7-b6b3-dc649ca46a41")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[792],{2:(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(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}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 o},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return i},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",o="__DEFAULT__"},102:(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}})},287:(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),o=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),o=!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 a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===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,
1configurable:!0})}),t.push(r)}if(n)if(o){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,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});a(this.restSlugName,r),this.restSlugName=r,i="[...]"}else{if(o)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,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 a=t(e[n]);r[a]=n,i[n]=a}return n(i).map(t=>e[r[t]])}},289: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={},a=t.split(n),o=(r||{}).decode||e,s=0;s<a.length;s++){var l=a[s],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,o))}}return i},t.serialize=function(e,t,n){var a=n||{},o=a.encode||r;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var s=o(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=a.maxAge){var u=a.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(a.domain){if(!i.test(a.domain))throw TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invali
1d");l+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.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})()},397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(2967),i=r(8870);function a(e,t,r){let a="",o=(0,i.getRouteRegex)(e),s=o.groups,l=(t!==e?(0,n.getRouteMatcher)(o)(t):"")||r;a=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=s[e],i="["+(r?"...":"")+e+"]";return n&&(i=(t?"":"/")+"["+i+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},418:(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}})},496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(758),i=r(3207),a=r(397),o=n._(r(7899)),s=r(1991),l=r(9811),u=r(6261),c=r(4974),d=r(4848);r(1138);class f{getPageList(){return(0,d.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:d,query:f,search:h}=(0,u.parseRelativeUrl)(r),{pathname:p}=(0,u.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(d);if("/"!==m[0])throw Object.defineProperty(Error('Route name should start with a "/", got "'+m+'"'),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});var _=e.skipInterpolation?p:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(d,p,f).result:m;let g=(0,o.default)((0,c.removeTrailingSlash)((0,s.addLocale)(_,n)),".json");return(0,i.addBasePath)("/_next/data/"+this.buildId+g+h,!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)},758:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPathMatch",{enumerable:!0,get:function(){return i}});let n=r(2680);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}),a=(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=a(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}}}},855:(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,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return o}});let n=r(418),i=r(2);function a(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 o(e){return e.replace(/\.rsc($|\?)/,"$1")}},913:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return i}});let n=r(4190);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return""+t+r+i+a}},1138:(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 Q},APP_PATHS_MANIFEST:function(){return g},APP_PATH_ROUTES_MANIFEST:function(){return y},AdapterOutputType:function(){return a},BARREL_OPTIMIZATION_PREFIX:function(){return B},BLOCKED_PAGES:function(){return F},BUILD_ID_FILE:function(){return U},BUILD_MANIFEST:function(){return v},CLIENT_PUBLIC_FILES_PATH:function(){return $},CLIENT_REFERENCE_MANIFEST:function(){return z},CLIENT_STATIC_FILES_PATH:function(){return H},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return J},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Z},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 o},COMPILER_NAMES:function(){return i},CONFIG_FILES:function(){return j},DEFAULT_RUNTIME_WEBPACK:function(){return ea},DEFAULT_SANS_SERIF_FONT:function(){return ec},DEFAULT_SERIF_FONT:function(){return eu},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return N},DEV_CLIENT_PAGES_MANIFEST:function(){return M},DYNAMIC_CSS_MANIFEST:function(){return K},EDGE_RUNTIME_WEBPACK:function(){return eo},EDGE_UNSUPPORTED_NODE_APIS:function(){return em},EXPORT_DETAIL:function(){return x},EXPORT_MARKER:function(){return T},FUNCTIONS_CONFIG_MANIFEST:function(){return S},IMAGES_MANIFEST:function(){return k},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return X},MIDDLEWARE_BUILD_MANIFEST:function(){return G},MIDDLEWARE_MANIFEST:function(){return C},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return W},NEXT_FONT_MANIFEST:function(){return w},PAGES_MANIFEST:function(){return m},PHASE_DEVELOPMENT_SERVER:function(){return f},PHASE_EXPORT:function(){return u},PHASE_INFO:function(){return p},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return d},PHASE_TEST:function(){return h},PRERENDER_MANIFEST:function(){return R},REACT_LOADABLE_MANIFEST:function(){return D},ROUTES_MANIFEST:function(){return P},RSC_MODULE_TYPES:function(){return ep},SERVER_DIRECTORY:function(){return L},SERVER_FILES_MANIFEST:function(){return O},SERVER_PROPS_ID:function(){return el},SERVER_REFERENCE_MANIFEST:function(){return q},STATIC_PROPS_ID:function(){return es},STATIC_STATUS_PAGES:function(){return ed},STRING_LITERAL_DROP_BUNDLE:function(){return Y},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return E},SYSTEM_ENTRYPOINTS:function(){return e_},TRACE_OUTPUT_VERSION:function(){return ef},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return A},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return I},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eh},UNDERSCORE_NOT_FOUND_ROUTE:function(){return s},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l},WEBPACK_STATS:function(){return _}});let n=r(758)._(r(2910)),i={client:"client",server:"server",edgeServer:"edge-server"};var a=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 o={[i.client]:0,[i.server]:1,[i.edgeServer]:2},s="/_not-found",l=""+s+"/page",u="phase-export",c="phase-production-build",d="phase-production-server",f="phase-development-server",h="phase-test",p="phase-info",m="pages-manifest.json",_="webpack-stats.json",g="app-paths-manifest.json",y="app-path-routes-manifest.json",v="build-manifest.json",b="app-build-manifest.json",S="functions-config-manifest.json",E="subresource-integrity-manifest",w="next-font-manifest",T="export-marker.json",x="export-detail.json",R="prerender-manifest.json",P="routes-manifest.json",k="images-manifest.json",O="required-server-files.json",M="_devPagesManifest.json",C="middleware-manifest.json",I="_clientMiddlewareManifest.json",A="client-build-manifest.json",N="_devMiddlewareManifest.json",D="react-loadable-manifest.json",L="server",j=["next.config.js","next.config.mjs","next.config.ts"],U="BUILD_ID",F=["/_document","/_app","/_error"],$="public",H="static",Y="__NEXT_DROP_CLIENT_FILE__",W="__NEXT_BUILTIN_DOCUMENT__",B="__barrel_optimize__",z="client-reference-manifest",q="server-reference-manifest",G="middleware-build-manifest",V="middleware-react-loadable-manifest",X="interception-route-rewrite-manifest",K="dynamic-css-manifest",J="main",Z=""+J+"-app",Q="app-pages-internals",ee="react-refresh",et="amp",er="webpack",en="polyfills",ei=Symbol(en),ea="webpack-runtime",eo="edge-runtime-webpack",es="__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"],ef=1,eh=6e3,ep={client:"client",server:"server"},em=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],e_=new Set([J,ee,et,Z]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(5729),i=r(6760),a=e=>{let{children:t,type:r}=e,[a,o]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),o(e),()=>{document.body.removeChild(e)}},[r]),a?(0,i.createPortal)(t,a):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)},1278:(e,t,r)=>{e.exports=r(7006)},1413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(2018),i=r(5999);function a(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}}},1565:(e,t)=>{"use strict";function r(e,t,r,n,a){let o=e[t];if(a&&a.has(t)?o=a.get(t):Array.isArray(o)?o=o.map(e=>encodeURIComponent(e)):"string"==typeof o&&(o=encodeURIComponent(o)),!o){let a="oc"===r;if("c"===r||a)return a?{param:t,value:null,type:r,treeSegment:[t,"",r]}:{param:t,value:o=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,o.join("/"),r]}}return{param:t,value:o,treeSegment:[t,Array.isArray(o)?o.join("/"):o,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 a},parseParameter:function(){return i}});let n=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function i(e){let t=e.match(n);return t?a(t[2]):a(e)}function a(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}}},1604:function(e,t,r){e=r.nmd(e),e.exports=function(){"use strict";function t(){return $.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var r,n=[],i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function c(e,t){for(var r in t)i(t,r)&&(e[r]=t[r]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,r,n){return ti(e,t,r,n,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=f(e),r=H.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function p(e){var t=d(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}H=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var m,_,g=t.momentProperties=[],y=!1;function v(e,t){var r,n,i,a=g.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||
1(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=f(t)),o(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)o(i=t[n=g[r]])||(e[n]=i);return e}function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,t.updateOffset(this),y=!1)}function S(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function E(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,r){var n=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var a,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(a="","object"==typeof arguments[o]){for(s in a+="\n["+o+"] ",arguments[0])i(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[o];l.push(a)}E(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return r.apply(this,arguments)},r)}var T={};function x(e,r){null!=t.deprecationHandler&&t.deprecationHandler(e,r),T[e]||(E(r),T[e]=!0)}function R(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e,t){var r,a=c({},e);for(r in t)i(t,r)&&(n(e[r])&&n(t[r])?(a[r]={},c(a[r],e[r]),c(a[r],t[r])):null!=t[r]?a[r]=t[r]:delete a[r]);for(r in e)i(e,r)&&!i(t,r)&&n(e[r])&&(a[r]=c({},a[r]));return a}function k(e){null!=e&&this.set(e)}function O(e,t,r){var n=""+Math.abs(e);return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},A={};function N(e,t,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(A[e]=i),t&&(A[t[0]]=function(){return O(i.apply(this,arguments),t[1],t[2])}),r&&(A[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(I[t=L(t,e.localeData())]=I[t]||function(e){var t,r,n,i=e.match(M);for(r=0,n=i.length;r<n;r++)A[i[r]]?i[r]=A[i[r]]:i[r]=(t=i[r]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=R(i[r])?i[r].call(t,e):i[r];return a}}(t),I[t](e)):e.localeData().invalidDate()}function L(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(C.lastIndex=0;r>=0&&C.test(e);)e=e.replace(C,n),C.lastIndex=0,r-=1;return e}var j={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function U(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function F(e){var t,r,n={};for(r in e)i(e,r)&&(t=U(r))&&(n[t]=e[r]);return n}var $,H,Y,W={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},B=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)i(e,t)&&r.push(t);return r},z=/\d/,q=/\d\d/,G=/\d{3}/,V=/\d{4}/,X=/[+-]?\d{6}/,K=/\d\d?/,J=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,er=/\d+/,en=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,eo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,es=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function eu(e,t,r){Y[e]=R(t)?t:function(e,n){return e&&r?r:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ed(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ef(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=ed(t)),r}Y={};var eh={};function ep(e,t){var r,n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,r){r[t]=ef(e)}),n=e.length,r=0;r<n;r++)eh[e[r]]=i}function em(e,t){ep(e,function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)})}function e_(e){return e%4==0&&e%100!=0||e%400==0}function eg(e){return e_(e)?366:365}N("Y",0,0,function(){var e=this.year();
1return e<=9999?O(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),eu("Y",en),eu("YY",K,q),eu("YYYY",ee,V),eu("YYYYY",et,X),eu("YYYYYY",et,X),ep(["YYYYY","YYYYYY"],0),ep("YYYY",function(e,r){r[0]=2===e.length?t.parseTwoDigitYear(e):ef(e)}),ep("YY",function(e,r){r[0]=t.parseTwoDigitYear(e)}),ep("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return ef(e)+(ef(e)>68?1900:2e3)};var ey=ev("FullYear",!0);function ev(e,r){return function(n){return null!=n?(eS(this,e,n),t.updateOffset(this,r),this):eb(this,e)}}function eb(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function eS(e,t,r){var n,i,a,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(i?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(i?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(i?n.setUTCHours(r):n.setHours(r));case"Date":return void(i?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=e.month(),o=29!==(o=e.date())||1!==a||e_(r)?o:28,i?n.setUTCFullYear(r,a,o):n.setFullYear(r,a,o)}}function eE(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%12+12)%12;return e+=(t-r)/12,1===r?e_(e)?29:28:31-r%7%2}eY=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),eu("M",K,es),eu("MM",K,q),eu("MMM",function(e,t){return t.monthsShortRegex(e)}),eu("MMMM",function(e,t){return t.monthsRegex(e)}),ep(["M","MM"],function(e,t){t[1]=ef(e)-1}),ep(["MMM","MMMM"],function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[1]=i:f(r).invalidMonth=e});var ew="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function ex(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(n=0,this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];n<12;++n)a=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();if(r)if("MMM"===t)return -1!==(i=eY.call(this._shortMonthsParse,o))?i:null;else return -1!==(i=eY.call(this._longMonthsParse,o))?i:null;return"MMM"===t?-1!==(i=eY.call(this._shortMonthsParse,o))||-1!==(i=eY.call(this._longMonthsParse,o))?i:null:-1!==(i=eY.call(this._longMonthsParse,o))||-1!==(i=eY.call(this._shortMonthsParse,o))?i:null}function eR(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=ef(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,eE(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function eP(e){return null!=e?(eR(this,e),t.updateOffset(this,!0),this):eb(this,"Month")}function ek(){function e(e,t){return t.length-e.length}var t,r,n,i,a=[],o=[],s=[];for(t=0;t<12;t++)r=d([2e3,t]),n=ec(this.monthsShort(r,"")),i=ec(this.months(r,"")),a.push(n),o.push(i),s.push(i),s.push(n);a.sort(e),o.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+a.join("|")+")","i")}function eO(e,t,r,n,i,a,o){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,r,n,i,a,o)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,r,n,i,a,o),s}function eM(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,r))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eC(e,t,r){var n=7+t-r;return-((7+eM(e,0,n).getUTCDay()-t)%7)+n-1}function eI(e,t,r,n,i){var a,o,s=1+7*(t-1)+(7+r-n)%7+eC(e,n,i);return s<=0?o=eg(a=e-1)+s:s>eg(e)?(a=e+1,o=s-eg(e)):(a=e,o=s),{year:a,dayOfYear:o}}function eA(e,t,r){var n,i,a=eC(e.year(),t,r),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?n=o+eN(i=e.year()-1,t,r):o>eN(e.year(),t,r)?(n=o-eN(e.year(),t,r),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function eN(e,t,r){var n=eC(e,t,r),i=eC(e+1,t,r);return(eg(e)-n+i)/7}function eD(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),eu("w",K,es),eu("ww",K,q),eu("W",K,es),eu("WW",K,q),em(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ef(e)}),N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),eu("d",K),eu("e",K),eu("E",K),eu("dd",function(e,t){return t.weekdaysMinRegex(e)}),eu("ddd",function(e,t){return t.weekdaysShortRegex(e)}),eu("dddd",function(e,t){return t.weekdaysRegex(e)}),em(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:f(r).invalidWeekday=e}),em(["d","e","E"],function(e,t,r,n){t[n]=ef(e)});var eL="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function ej(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(n=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];n<7;++n)a=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();if(r)if("dddd"===t)return -1!==(i=eY.call(this._weekdaysParse,o))?i:null;else if("ddd"===t)return -1!==(i=eY.call(this._shortWeekdaysParse,o))?i:null;else return -1!==(i=eY.call(this._minWeekdaysParse,o))?i:null;return"dddd"===t?-1!==(i=eY.call(this._weekdaysParse,o))||-1!==(i=eY.call(this._shortWeekdaysParse,o))||-1!==(i=eY.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=eY.call(this._shortWeekdaysParse,o))||-1!==(i=eY.call(this._weekdaysParse,o))||-1!==(i=eY.call(this._minWeekdaysParse,o))?i:null:-1!==(i=eY.call(this._minWeekdaysParse,o))||-1!==(i=eY.call(this._weekdaysParse,o))||-1!==(i=eY.call(this._shortWeekdaysParse,o))?i:null}function eU(){function e(e,t){return t.length-e.length}var t,r,n,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)r=d([2e3,1]).day(t),n=ec(this.weekdaysMin(r,"")),i=ec(this.weekdaysShort(r,"")),a=ec(this.weekdays(r,"")),o.push(n),s.push(i),l.push(a),u.push(n),u.push(i),u.push(a);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+o.join("|")+")","i")}function eF(){return this.hours()%12||12}function e$(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eH(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,eF),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+eF.apply(this)+O(this.minutes(),2)}
1),N("hmmss",0,0,function(){return""+eF.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),e$("a",!0),e$("A",!1),eu("a",eH),eu("A",eH),eu("H",K,el),eu("h",K,es),eu("k",K,es),eu("HH",K,q),eu("hh",K,q),eu("kk",K,q),eu("hmm",J),eu("hmmss",Z),eu("Hmm",J),eu("Hmmss",Z),ep(["H","HH"],3),ep(["k","kk"],function(e,t,r){var n=ef(e);t[3]=24===n?0:n}),ep(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),ep(["h","hh"],function(e,t,r){t[3]=ef(e),f(r).bigHour=!0}),ep("hmm",function(e,t,r){var n=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n)),f(r).bigHour=!0}),ep("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n,2)),t[5]=ef(e.substr(i)),f(r).bigHour=!0}),ep("Hmm",function(e,t,r){var n=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n))}),ep("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n,2)),t[5]=ef(e.substr(i))});var eY,eW,eB=ev("Hours",!0),ez={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:ew,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eL,meridiemParse:/[ap]\.?m?\.?/i},eq={},eG={};function eV(e){return e?e.toLowerCase().replace("_","-"):e}function eX(t){if(void 0===eq[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{eW._abbr;var r=Error("Cannot find module 'undefined'");throw r.code="MODULE_NOT_FOUND",r}catch(e){eq[t]=null}return eq[t]}function eK(e,t){var r;return e&&((r=o(t)?eZ(e):eJ(e,t))?eW=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eW._abbr}function eJ(e,t){if(null===t)return delete eq[e],null;var r,n=ez;if(t.abbr=e,null!=eq[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=eq[e]._config;else if(null!=t.parentLocale)if(null!=eq[t.parentLocale])n=eq[t.parentLocale]._config;else{if(null==(r=eX(t.parentLocale)))return eG[t.parentLocale]||(eG[t.parentLocale]=[]),eG[t.parentLocale].push({name:e,config:t}),null;n=r._config}return eq[e]=new k(P(n,t)),eG[e]&&eG[e].forEach(function(e){eJ(e.name,e.config)}),eK(e),eq[e]}function eZ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eW;if(!r(e)){if(t=eX(e))return t;e=[e]}return function(e){for(var t,r,n,i,a=0;a<e.length;){for(t=(i=eV(e[a]).split("-")).length,r=(r=eV(e[a+1]))?r.split("-"):null;t>0;){if(n=eX(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,r)>=t-1)break;t--}a++}return eW}(e)}function eQ(e){var t,r=e._a;return r&&-2===f(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>eE(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var e0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e5=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e4=/^\/?Date\((-?\d+)/i,e6=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e8={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e9(e){var t,r,n,i,a,o,s=e._i,l=e0.exec(s)||e1.exec(s),u=e3.length,c=e5.length;if(l){for(t=0,f(e).iso=!0,r=u;t<r;t++)if(e3[t][1].exec(l[1])){i=e3[t][0],n=!1!==e3[t][2];break}if(null==i){e._isValid=!1;return}if(l[3]){for(t=0,r=c;t<r;t++)if(e5[t][1].exec(l[3])){a=(l[2]||" ")+e5[t][0];break}if(null==a){e._isValid=!1;return}}if(!n&&null!=a){e._isValid=!1;return}if(l[4])if(e2.exec(l[4]))o="Z";else{e._isValid=!1;return}e._f=i+(a||"")+(o||""),tr(e)}else e._isValid=!1}function e7(e){var t,r,n,i,a,o,s,l,u,c,d,h=e6.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){if(a=h[4],o=h[3],s=h[2],l=h[5],u=h[6],c=h[7],d=[(t=parseInt(a,10))<=49?2e3+t:t<=999?1900+t:t,ew.indexOf(o),parseInt(s,10),parseInt(l,10),parseInt(u,10)],c&&d.push(parseInt(c,10)),r=h[1],n=d,i=e,r&&eL.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()&&(f(i).weekdayMismatch=!0,i._isValid=!1,1))return;e._a=d,e._tzm=function(e,t,r){if(e)return e8[e];if(t)return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}(h[8],h[9],h[10]),e._d=eM.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function te(e,t,r){return null!=e?e:null!=t?t:r}function tt(e){var r,n,i,a,o,s,l,u,c,d,h,p,m,_,g,y,v=[];
1if(!e._d){for(h=new Date(t.now()),_=e._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(r=e)._w).GG||null!=n.W||null!=n.E?(s=1,l=4,i=te(n.GG,r._a[0],eA(ta(),1,4).year),a=te(n.W,1),((o=te(n.E,1))<1||o>7)&&(c=!0)):(s=r._locale._week.dow,l=r._locale._week.doy,d=eA(ta(),s,l),i=te(n.gg,r._a[0],d.year),a=te(n.w,d.week),null!=n.d?((o=n.d)<0||o>6)&&(c=!0):null!=n.e?(o=n.e+s,(n.e<0||n.e>6)&&(c=!0)):o=s),a<1||a>eN(i,s,l)?f(r)._overflowWeeks=!0:null!=c?f(r)._overflowWeekday=!0:(u=eI(i,a,o,s,l),r._a[0]=u.year,r._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(y=te(e._a[0],_[0]),(e._dayOfYear>eg(y)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),m=eM(y,0,e._dayOfYear),e._a[1]=m.getUTCMonth(),e._a[2]=m.getUTCDate()),p=0;p<3&&null==e._a[p];++p)e._a[p]=v[p]=_[p];for(;p<7;p++)e._a[p]=v[p]=null==e._a[p]?+(2===p):e._a[p];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eM:eO).apply(null,v),g=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==g&&(f(e).weekdayMismatch=!0)}}function tr(e){if(e._f===t.ISO_8601)return void e9(e);if(e._f===t.RFC_2822)return void e7(e);e._a=[],f(e).empty=!0;var r,n,a,o,s,l,u,c,d,h,p,m=""+e._i,_=m.length,g=0;for(s=0,p=(u=L(e._f,e._locale).match(M)||[]).length;s<p;s++)if(c=u[s],(l=(m.match(!i(Y,c)?new RegExp(ec(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,i){return t||r||n||i}))):Y[c](e._strict,e._locale))||[])[0])&&((d=m.substr(0,m.indexOf(l))).length>0&&f(e).unusedInput.push(d),m=m.slice(m.indexOf(l)+l.length),g+=l.length),A[c])l?f(e).empty=!1:f(e).unusedTokens.push(c),null!=l&&i(eh,c)&&eh[c](l,e._a,e,c);else e._strict&&!l&&f(e).unusedTokens.push(c);f(e).charsLeftOver=_-g,m.length>0&&f(e).unusedInput.push(m),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=(r=e._locale,n=e._a[3],null==(a=e._meridiem)?n:null!=r.meridiemHour?r.meridiemHour(n,a):(null!=r.isPM&&((o=r.isPM(a))&&n<12&&(n+=12),o||12!==n||(n=0)),n)),null!==(h=f(e).era)&&(e._a[0]=e._locale.erasConvertYear(h,e._a[0])),tt(e),eQ(e)}function tn(e){var i=e._i,a=e._f;return(e._locale=e._locale||eZ(e._l),null===i||void 0===a&&""===i)?p({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),S(i))?new b(eQ(i)):(l(i)?e._d=i:r(a)?!function(e){var t,r,n,i,a,o,s=!1,l=e._f.length;if(0===l){f(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)a=0,o=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],tr(t),h(t)&&(o=!0),a+=f(t).charsLeftOver,a+=10*f(t).unusedTokens.length,f(t).score=a,s?a<n&&(n=a,r=t):(null==n||a<n||o)&&(n=a,r=t,o&&(s=!0));c(e,r||t)}(e):a?tr(e):function(e){var i=e._i;if(o(i))e._d=new Date(t.now());else if(l(i))e._d=new Date(i.valueOf());else if("string"==typeof i)!function(e){var r=e4.exec(e._i);if(null!==r){e._d=new Date(+r[1]);return}if(e9(e),!1===e._isValid)delete e._isValid,e7(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e))}(e);else if(r(i))e._a=u(i.slice(0),function(e){return parseInt(e,10)}),tt(e);else if(n(i)){if(!e._d){var a=F(e._i),c=void 0===a.day?a.date:a.day;e._a=u([a.year,a.month,c,a.hour,a.minute,a.second,a.millisecond],function(e){return e&&parseInt(e,10)}),tt(e)}}else s(i)?e._d=new Date(i):t.createFromInputFallback(e)}(e),h(e)||(e._d=null),e)}function ti(e,t,i,o,s){var l,u={};return(!0===t||!1===t)&&(o=t,t=void 0),(!0===i||!1===i)&&(o=i,i=void 0),(n(e)&&a(e)||r(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=i,u._i=e,u._f=t,u._strict=o,(l=new b(eQ(tn(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ta(e,t,r,n){return ti(e,t,r,n,!1)}t.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var to=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),ts=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()});function tl(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return ta();for(i=1,n=t[0];i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}var tu=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tc(e){var t=F(e),r=t.year||0,n=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,r,n=!1,a=tu.length;for(t in e)if(i(e,t)&&!(-1!==eY.call(tu,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(r=0;r<a;
1++r)if(e[tu[r]]){if(n)return!1;parseFloat(e[tu[r]])!==ef(e[tu[r]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*3600,this._days=+s+7*o,this._months=+a+3*n+12*r,this._data={},this._locale=eZ(),this._bubble()}function td(e){return e instanceof tc}function tf(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function th(e,t){N(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+O(~~(e/60),2)+t+O(~~e%60,2)})}th("Z",":"),th("ZZ",""),eu("Z",ea),eu("ZZ",ea),ep(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tm(ea,e)});var tp=/([\+\-]|\d\d)/gi;function tm(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=+(60*(r=((i[i.length-1]||[])+"").match(tp)||["-",0,0])[1])+ef(r[2]))?0:"+"===r[0]?n:-n}function t_(e,r){var n,i;return r._isUTC?(n=r.clone(),i=(S(e)||l(e)?e.valueOf():ta(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),t.updateOffset(n,!1),n):ta(e).local()}function tg(e){return-Math.round(e._d.getTimezoneOffset())}function ty(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var tv=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tb=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tS(e,t){var r,n,a,o,l,u,c=e,d=null;return td(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=tv.exec(e))?(o="-"===d[1]?-1:1,c={y:0,d:ef(d[2])*o,h:ef(d[3])*o,m:ef(d[4])*o,s:ef(d[5])*o,ms:ef(tf(1e3*d[6]))*o}):(d=tb.exec(e))?(o="-"===d[1]?-1:1,c={y:tE(d[2],o),M:tE(d[3],o),w:tE(d[4],o),d:tE(d[5],o),h:tE(d[6],o),m:tE(d[7],o),s:tE(d[8],o)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(r=ta(c.from),n=ta(c.to),u=r.isValid()&&n.isValid()?(n=t_(n,r),r.isBefore(n)?a=tw(r,n):((a=tw(n,r)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(c={}).ms=u.milliseconds,c.M=u.months),l=new tc(c),td(e)&&i(e,"_locale")&&(l._locale=e._locale),td(e)&&i(e,"_isValid")&&(l._isValid=e._isValid),l}function tE(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function tw(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=t-e.clone().add(r.months,"M"),r}function tT(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),tx(this,tS(r,n),e),this}}function tx(e,r,n,i){var a=r._milliseconds,o=tf(r._days),s=tf(r._months);e.isValid()&&(i=null==i||i,s&&eR(e,eb(e,"Month")+s*n),o&&eS(e,"Date",eb(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&t.updateOffset(e,o||s))}tS.fn=tc.prototype,tS.invalid=function(){return tS(NaN)};var tR=tT(1,"add"),tP=tT(-1,"subtract");function tk(e){return"string"==typeof e||e instanceof String}function tO(e,t){if(e.date()<t.date())return-tO(t,e);var r,n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months");return r=t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i),-(n+r)||0}function tM(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eZ(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tC=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tI(){return this._locale}function tA(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function tN(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function tD(e,t){return t.erasAbbrRegex(e)}function tL(){var e,t,r,n,i,a=[],o=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)r=ec(u[e].name),n=ec(u[e].abbr),i=ec(u[e].narrow),o.push(r),a.push(n),s.push(i),l.push(r),l.push(n),l.push(i);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tj(e,t){N(0,[e,e.length],0,t)}function tU(e,t,r,n,i){var a;return null==e?eA(this,n,i).year:(t>
1(a=eN(e,n,i))&&(t=a),tF.call(this,e,t,r,n,i))}function tF(e,t,r,n,i){var a=eI(e,t,r,n,i),o=eM(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),eu("N",tD),eu("NN",tD),eu("NNN",tD),eu("NNNN",function(e,t){return t.erasNameRegex(e)}),eu("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ep(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?f(r).era=i:f(r).invalidEra=e}),eu("y",er),eu("yy",er),eu("yyy",er),eu("yyyy",er),eu("yo",function(e,t){return t._eraYearOrdinalRegex||er}),ep(["y","yy","yyy","yyyy"],0),ep(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tj("gggg","weekYear"),tj("ggggg","weekYear"),tj("GGGG","isoWeekYear"),tj("GGGGG","isoWeekYear"),eu("G",en),eu("g",en),eu("GG",K,q),eu("gg",K,q),eu("GGGG",ee,V),eu("gggg",ee,V),eu("GGGGG",et,X),eu("ggggg",et,X),em(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ef(e)}),em(["gg","GG"],function(e,r,n,i){r[i]=t.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),eu("Q",z),ep("Q",function(e,t){t[1]=(ef(e)-1)*3}),N("D",["DD",2],"Do","date"),eu("D",K,es),eu("DD",K,q),eu("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ep(["D","DD"],2),ep("Do",function(e,t){t[2]=ef(e.match(K)[0])});var t$=ev("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),eu("DDD",Q),eu("DDDD",G),ep(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ef(e)}),N("m",["mm",2],0,"minute"),eu("m",K,el),eu("mm",K,q),ep(["m","mm"],4);var tH=ev("Minutes",!1);N("s",["ss",2],0,"second"),eu("s",K,el),eu("ss",K,q),ep(["s","ss"],5);var tY=ev("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),eu("S",Q,z),eu("SS",Q,q),eu("SSS",Q,G),m="SSSS";m.length<=9;m+="S")eu(m,er);function tW(e,t){t[6]=ef(("0."+e)*1e3)}for(m="S";m.length<=9;m+="S")ep(m,tW);_=ev("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var tB=b.prototype;function tz(e){return e}tB.add=tR,tB.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var u,c,d,f;if(u=arguments[0],S(u)||l(u)||tk(u)||s(u)||(d=r(c=u),f=!1,d&&(f=0===c.filter(function(e){return!s(e)&&tk(c)}).length),d&&f)||function(e){var t,r,o=n(e)&&!a(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)r=l[t],s=s||i(e,r);return o&&s}(u)||null==u)e=arguments[0],o=void 0;else(function(e){var t,r,o=n(e)&&!a(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)r=l[t],s=s||i(e,r);return o&&s})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var h=e||ta(),p=t_(h,this).startOf("day"),m=t.calendarFormat(this,p)||"sameElse",_=o&&(R(o[m])?o[m].call(this,h):o[m]);return this.format(_||this.localeData().calendar(m,this,ta(h)))},tB.clone=function(){return new b(this)},tB.diff=function(e,t,r){var n,i,a;if(!this.isValid()||!(n=t_(e,this)).isValid())return NaN;switch(i=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":a=tO(this,n)/12;break;case"month":a=tO(this,n);break;case"quarter":a=tO(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-i)/864e5;break;case"week":a=(this-n-i)/6048e5;break;default:a=this-n}return r?a:ed(a)},tB.endOf=function(e){var r,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tN:tA,e){case"year":r=n(this.year()+1,0,1)-1;break;case"quarter":r=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
1case"month":r=n(this.year(),this.month()+1,1)-1;break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=36e5-((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":r=this._d.valueOf(),r+=6e4-(r%6e4+6e4)%6e4-1;break;case"second":r=this._d.valueOf(),r+=1e3-(r%1e3+1e3)%1e3-1}return this._d.setTime(r),t.updateOffset(this,!0),this},tB.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var r=D(this,e);return this.localeData().postformat(r)},tB.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||ta(e).isValid())?tS({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tB.fromNow=function(e){return this.from(ta(),e)},tB.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||ta(e).isValid())?tS({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tB.toNow=function(e){return this.to(ta(),e)},tB.get=function(e){return R(this[e=U(e)])?this[e]():this},tB.invalidAt=function(){return f(this).overflow},tB.isAfter=function(e,t){var r=S(e)?e:ta(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},tB.isBefore=function(e,t){var r=S(e)?e:ta(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},tB.isBetween=function(e,t,r,n){var i=S(e)?e:ta(e),a=S(t)?t:ta(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(a,r):!this.isAfter(a,r))},tB.isSame=function(e,t){var r,n=S(e)?e:ta(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},tB.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tB.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tB.isValid=function(){return h(this)},tB.lang=tC,tB.locale=tM,tB.localeData=tI,tB.max=ts,tB.min=to,tB.parsingFlags=function(){return c({},f(this))},tB.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)i(e,t)&&r.push({unit:t,priority:W[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=F(e)),a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(R(this[e=U(e)]))return this[e](t);return this},tB.startOf=function(e){var r,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tN:tA,e){case"year":r=n(this.year(),0,1);break;case"quarter":r=n(this.year(),this.month()-this.month()%3,1);break;case"month":r=n(this.year(),this.month(),1);break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=n(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":r=this._d.valueOf(),r-=(r%6e4+6e4)%6e4;break;case"second":r=this._d.valueOf(),r-=(r%1e3+1e3)%1e3}return this._d.setTime(r),t.updateOffset(this,!0),this},tB.subtract=tP,tB.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tB.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tB.toDate=function(){return new Date(this.valueOf())},tB.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;if(0>r.year()||r.year()>9999)return D(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(R(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",D(r,"Z"));return D(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
1,tB.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",r=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tB[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tB.toJSON=function(){return this.isValid()?this.toISOString():null},tB.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tB.unix=function(){return Math.floor(this.valueOf()/1e3)},tB.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tB.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tB.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""},tB.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""},tB.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""},tB.eraYear=function(){var e,r,n,i,a=this.localeData().eras();for(e=0,r=a.length;e<r;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-t(a[e].since).year())*n+a[e].offset;return this.year()},tB.year=ey,tB.isLeapYear=function(){return e_(this.year())},tB.weekYear=function(e){return tU.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tB.isoWeekYear=function(e){return tU.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tB.quarter=tB.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tB.month=eP,tB.daysInMonth=function(){return eE(this.year(),this.month())},tB.week=tB.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tB.isoWeek=tB.isoWeeks=function(e){var t=eA(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tB.weeksInYear=function(){var e=this.localeData()._week;return eN(this.year(),e.dow,e.doy)},tB.weeksInWeekYear=function(){var e=this.localeData()._week;return eN(this.weekYear(),e.dow,e.doy)},tB.isoWeeksInYear=function(){return eN(this.year(),1,4)},tB.isoWeeksInISOWeekYear=function(){return eN(this.isoWeekYear(),1,4)},tB.date=t$,tB.day=tB.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=eb(this,"Day");return null==e?n:(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tB.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tB.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,r=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},tB.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tB.hour=tB.hours=eB,tB.minute=tB.minutes=tH,tB.second=tB.seconds=tY,tB.millisecond=tB.milliseconds=_,tB.utcOffset=function(e,r,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?a:tg(this);if("string"==typeof e){if(null===(e=tm(ea,e)))return this}else 16>Math.abs(e)&&!n&&(e*=60);return!this._isUTC&&r&&(i=tg(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!r||this._changeInProgress?tx(this,tS(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tB.utc=function(e){return this.utcOffset(0,e)},tB.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tg(this),"m")),this},tB.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tm(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tB.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tB.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tB.isLocal=function(){return!!this.isValid()&&!this._isUTC},tB.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tB.isUtc=ty,tB.isUTC=ty,tB.zoneAbbr=function(){return this._isUTC?"UTC":""},tB.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tB.dates=w("dates accessor is deprecated. Use date instead.",t$),tB.months=w("months accessor is deprecated. Use month instead",eP),tB.years=w("years accessor is deprecated. Use year instead",ey),tB.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tB.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=tn(t))._a?(e=t._isUTC?d(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(n=0;n<i;n++)ef(e[n])!==ef(t[n])&&o++;return o+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tq=k.prototype;function tG(e,t,r,n){var i=eZ(),a=d().set(n,t);return i[r](a,e)}function tV(e,t,r){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return tG(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=tG(e,n,r,"month");return i}function tX(e,t,r,n){"boolean"==typeof e||(r=t=e,e=!1),s(t)&&(r=t,t=void 0),t=t||"";var i,a=eZ(),o=e?a._week.dow:0,l=[];
vendor: 8,697 bytes, line 1
1if(null!=r)return tG(t,(r+o)%7,n,"day");for(i=0;i<7;i++)l[i]=tG(t,(i+o)%7,n,"day");return l}tq.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return R(n)?n.call(t,r):n},tq.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(M).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tq.invalidDate=function(){return this._invalidDate},tq.ordinal=function(e){return this._ordinal.replace("%d",e)},tq.preparse=tz,tq.postformat=tz,tq.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return R(i)?i(e,t,r,n):i.replace(/%d/i,e)},tq.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return R(r)?r(t):r.replace(/%s/i,t)},tq.set=function(e){var t,r;for(r in e)i(e,r)&&(R(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tq.eras=function(e,r){var n,i,a,o=this._eras||eZ("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=t(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=Infinity;break;case"string":a=t(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o},tq.erasParse=function(e,t,r){var n,i,a,o,s,l=this.eras();for(n=0,e=e.toUpperCase(),i=l.length;n<i;++n)if(a=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([a,o,s].indexOf(e)>=0)return l[n]},tq.erasConvertYear=function(e,r){var n=e.since<=e.until?1:-1;return void 0===r?t(e.since).year():t(e.since).year()+(r-e.offset)*n},tq.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tL.call(this),e?this._erasAbbrRegex:this._erasRegex},tq.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tL.call(this),e?this._erasNameRegex:this._erasRegex},tq.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tL.call(this),e?this._erasNarrowRegex:this._erasRegex},tq.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eT).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},tq.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eT.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tq.monthsParse=function(e,t,r){var n,i,a;if(this._monthsParseExact)return ex.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=d([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},tq.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ek.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=eo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tq.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ek.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=eo),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tq.week=function(e){return eA(e,this._week.dow,this._week.doy).week},tq.firstDayOfYear=function(){return this._week.doy},tq.firstDayOfWeek=function(){return this._week.dow},tq.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eD(n,this._week.dow):e?n[e.day()]:n},tq.weekdaysMin=function(e){return!0===e?eD(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tq.weekdaysShort=function(e){return!0===e?eD(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tq.weekdaysParse=function(e,t,r){var n,i,a;if(this._weekdaysParseExact)return ej.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=d([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;else if(!r&&this._weekdaysParse[n].test(e))return n}},tq.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=eo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tq.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=eo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tq.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=eo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tq.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tq.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},eK("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===ef(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),t.lang=w("moment.lang is deprecated. Use moment.locale instead.",eK),t.langData=w("moment.langData is deprecated. Use moment.localeData instead.",eZ);var tK=Math.abs;function tJ(e,t,r,n){var i=tS(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function tZ(e){return e<0?Math.floor(e):Math.ceil(e)}function tQ(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t2=t1("ms"),t3=t1("s"),t5=t1("m"),t4=t1("h"),t6=t1("d"),t8=t1("w"),t9=t1("M"),t7=t1("Q"),re=t1("y");function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var rr=rt("milliseconds"),rn=rt("seconds"),ri=rt("minutes"),ra=rt("hours"),ro=rt("days"),rs=rt("months"),rl=rt("years"),ru=Math.round,rc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rd(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}var rf=Math.abs;function rh(e){return(e>0)-(e<0)||+e}function rp(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,a,o,s,l=rf(this._milliseconds)/1e3,u=rf(this._days),c=rf(this._months),d=this.asSeconds();return d?(e=ed(l/60),t=ed(e/60),l%=60,e%=60,r=ed(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=rh(this._months)!==rh(d)?"-":"",o=rh(this._days)!==rh(d)?"-":"",s=rh(this._milliseconds)!==rh(d)?"-":"",i+"P"+(r?a+r+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var rm=tc.prototype;return rm.isValid=function(){return this._isValid},rm.abs=function(){var e=this._data;return this._milliseconds=tK(this._milliseconds),this._days=tK(this._days),this._months=tK(this._months),e.milliseconds=tK(e.milliseconds),e.seconds=tK(e.seconds),e.minutes=tK(e.minutes),e.hours=tK(e.hours),e.months=tK(e.months),e.years=tK(e.
1years),this},rm.add=function(e,t){return tJ(this,e,t,1)},rm.subtract=function(e,t){return tJ(this,e,t,-1)},rm.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+tQ(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},rm.asMilliseconds=t2,rm.asSeconds=t3,rm.asMinutes=t5,rm.asHours=t4,rm.asDays=t6,rm.asWeeks=t8,rm.asMonths=t9,rm.asQuarters=t7,rm.asYears=re,rm.valueOf=t2,rm._bubble=function(){var e,t,r,n,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*tZ(t0(s)+o),o=0,s=0),l.milliseconds=a%1e3,l.seconds=(e=ed(a/1e3))%60,l.minutes=(t=ed(e/60))%60,l.hours=(r=ed(t/60))%24,o+=ed(r/24),s+=i=ed(tQ(o)),o-=tZ(t0(i)),n=ed(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},rm.clone=function(){return tS(this)},rm.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},rm.milliseconds=rr,rm.seconds=rn,rm.minutes=ri,rm.hours=ra,rm.days=ro,rm.weeks=function(){return ed(this.days()/7)},rm.months=rs,rm.years=rl,rm.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,i,a,o,s,l,u,c,d,f,h,p,m=!1,_=rc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(m=e),"object"==typeof t&&(_=Object.assign({},rc,t),null!=t.s&&null==t.ss&&(_.ss=t.s-1)),h=this.localeData(),r=!m,n=_,i=tS(this).abs(),a=ru(i.as("s")),o=ru(i.as("m")),s=ru(i.as("h")),l=ru(i.as("d")),u=ru(i.as("M")),c=ru(i.as("w")),d=ru(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=r,f[3]=+this>0,f[4]=h,p=rd.apply(null,f),m&&(p=h.pastFuture(+this,p)),h.postformat(p)},rm.toISOString=rp,rm.toString=rp,rm.toJSON=rp,rm.locale=tM,rm.localeData=tI,rm.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rp),rm.lang=tC,N("X",0,0,"unix"),N("x",0,0,"valueOf"),eu("x",en),eu("X",/[+-]?\d+(\.\d{1,3})?/),ep("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),ep("x",function(e,t,r){r._d=new Date(ef(e))}),t.version="2.30.1",$=ta,t.fn=tB,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return tV(e,t,"months")},t.isDate=l,t.locale=eK,t.invalid=p,t.duration=tS,t.isMoment=S,t.weekdays=function(e,t,r){return tX(e,t,r,"weekdays")},t.parseZone=function(){return ta.apply(null,arguments).parseZone()},t.localeData=eZ,t.isDuration=td,t.monthsShort=function(e,t){return tV(e,t,"monthsShort")},t.weekdaysMin=function(e,t,r){return tX(e,t,r,"weekdaysMin")},t.defineLocale=eJ,t.updateLocale=function(e,t){if(null!=t){var r,n,i=ez;null!=eq[e]&&null!=eq[e].parentLocale?eq[e].set(P(eq[e]._config,t)):(null!=(n=eX(e))&&(i=n._config),t=P(i,t),null==n&&(t.abbr=e),(r=new k(t)).parentLocale=eq[e],eq[e]=r),eK(e)}else null!=eq[e]&&(null!=eq[e].parentLocale?(eq[e]=eq[e].parentLocale,e===eK()&&eK(e)):null!=eq[e]&&delete eq[e]);return eq[e]},t.locales=function(){return B(eq)},t.weekdaysShort=function(e,t,r){return tX(e,t,r,"weekdaysShort")},t.normalizeUnits=U,t.relativeTimeRounding=function(e){return void 0===e?ru:"function"==typeof e&&(ru=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==rc[e]&&(void 0===t?rc[e]:(rc[e]=t,"s"===e&&(rc.ss=t-1),!0))},t.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},t.prototype=tB,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},1610:(e,t,r)=>{"use strict";
1Object.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 o},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return s}});let n=r(758)._(r(5729)),i=n.default.createContext(null),a=n.default.createContext(null),o=n.default.createContext(null),s=n.default.createContext(null),l=n.default.createContext(new Set)},1645:(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)}}},1693:(e,t,r)=>{"use strict";let n,i,a,o,s,l,u,c,d,f,h,p;Object.defineProperty(t,"__esModule",{value:!0});let m=r(8963);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 Y},hydrate:function(){return el},initialize:function(){return q},router:function(){return n},version:function(){return H}});let _=r(758),g=r(6029);r(8402);let y=_._(r(5729)),v=_._(r(9315)),b=r(2903),S=_._(r(2711)),E=r(1828),w=r(2692),T=r(9811),x=r(3344),R=r(5517),P=r(2018),k=r(1162),O=_._(r(7579)),M=_._(r(496)),C=r(3758),I=r(7006),A=r(5255),N=r(5533),D=r(2553),L=r(5999),j=r(1610),U=r(9569),F=r(6963),$=r(6095);r(3209),r(8943);let H="15.5.20",Y=(0,S.default)(),W=e=>[].slice.call(e),B=!1;class z extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(i.isFallback||i.nextExport&&((0,T.isDynamicRoute)(n.pathname)||location.search||1)||i.props&&i.props.__N_SSG&&(location.search||1))&&n.replace(n.pathname+"?"+String((0,x.assign)((0,x.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!i.isFallback&&!B}).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 q(e){void 0===e&&(e={}),i=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=i,p=i.defaultLocale;let t=i.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,R.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:i.runtimeConfig||{}}),a=(0,P.getURL)(),(0,L.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),i.scriptLoader){let{initScriptLoader:e}=r(7172);e(i.scriptLoader)}o=new M.default(i.buildId,t);let u=e=>{let[t,r]=e;return o.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,O.default)()).getIsSsr=()=>n.isSsr,s=document.getElementById("__next"),{assetPrefix:t}}function G(e,t){return(0,g.jsx)(e,{...t})}function V(e){var t;let{children:r}=e,i=y.default.useMemo(()=>(0,U.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(z,{fn:e=>K({App:d,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(j.AppRouterContext.Provider,{value:i,children:(0,g.jsx)(F.SearchParamsContext.Provider,{value:(0,U.adaptForSearchParams)(n),children:(0,g.jsx)(U.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(F.PathParamsContext.Provider,{value:(0,U.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,I.makePublicRouterInstance)(n),children:(0,g.jsx)(b.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(N.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:!0},children:r})})})})})})})})}let X=e=>t=>{let r={...t,Component:h,err:i.err,router:n};return(0,g.jsx)(V,{children:G(e,r)})};function K(e){let{App:t,err:s}=e;return console.error(s),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),o.loadPage("/_error").then(n=>{let{page:i,styleSheets:a}=n;return(null==u?void 0:u.Component)===i?Promise.resolve().then(()=>m._(r(7301))).then(n=>Promise.resolve().then(()=>m._(r(7968))).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:i,styleSheets:a}}).then(r=>{var o;let{ErrorComponent:l,styleSheets:u}=r,c=X(t),d={Component:l,AppTree:c,router:n,ctx:{err:s,pathname:i.page,query:i.query,asPath:a,AppTree:c}};return Promise.resolve((null==(o=e.props)?void 0:o.err)?e.props:(0,P.loadGetInitialProps)(t,d)).then(t=>eo({...e,err:s,Component:l,styleSheets:u,props:t}))})}function J(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let Z={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRe
1nder:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},Q={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(){[Z.beforeRender,Z.afterHydrate,Z.afterRender,Z.routeChange].forEach(e=>performance.clearMarks(e))}function en(){P.ST&&(performance.mark(Z.afterHydrate),performance.getEntriesByName(Z.beforeRender,"mark").length&&(performance.measure(Q.beforeHydration,Z.navigationStart,Z.beforeRender),performance.measure(Q.hydration,Z.beforeRender,Z.afterHydrate)),f&&performance.getEntriesByName(Q.hydration).forEach(f),er())}function ei(){if(!P.ST)return;performance.mark(Z.afterRender);let e=performance.getEntriesByName(Z.routeChange,"mark");e.length&&(performance.getEntriesByName(Z.beforeRender,"mark").length&&(performance.measure(Q.routeChangeToRender,e[0].name,Z.beforeRender),performance.measure(Q.render,Z.beforeRender,Z.afterRender),f&&(performance.getEntriesByName(Q.render).forEach(f),performance.getEntriesByName(Q.routeChangeToRender).forEach(f))),er(),[Q.routeChangeToRender,Q.render].forEach(e=>performance.clearMeasures(e)))}function ea(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function eo(e){let t,r,{App:i,Component:a,props:o,err:l}=e,d="initial"in e?void 0:e.styleSheets;a=a||u.Component;let f={...o=o||u.props,Component:a,err:l,router:n};u=f;let h=!1,p=new Promise((e,t)=>{c&&c(),r=()=>{c=null,e()},c=()=>{h=!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 m(){r()}!function(){if(!d)return;let e=new Set(W(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,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(J,{callback:function(){if(d&&!h){let e=new Set(d.map(e=>e.href)),t=W(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)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,w.disableSmoothScrollDuringRouteTransition)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(V,{children:[G(i,f),(0,g.jsx)(k.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});var b=s;P.ST&&performance.mark(Z.beforeRender);let S=(t=et?en:ei,(0,g.jsx)(ea,{callbacks:[t,m],children:(0,g.jsx)(y.default.StrictMode,{children:_})}));return ee?(0,y.default.startTransition)(()=>{ee.render(S)}):(ee=v.default.hydrateRoot(b,S,{onRecoverableError:$.onRecoverableError}),et=!1),p}async function es(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await K(e);try{await eo(e)}catch(r){let t=(0,A.getProperError)(r);if(t.cancelled)throw t;await K({...e,err:t})}}async function el(e){let t=i.err;try{let e=await o.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;d=t,r&&r.reportWebVitals&&(f=e=>{let t,{id:n,name:i,startTime:a,value:o,duration:s,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 f={id:n||d,name:i,startTime:a||t,value:null==o?s:o,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(f.attribution=c),r.reportWebVitals(f)});let n=await o.routeLoader.whenEntrypoint(i.page);if("error"in n)throw n.error;h=n.component}catch(e){t=(0,A.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(i.dynamicIds),n=(0,I.createRouter)(i.page,i.query,a,{initialProps:i.props,pageLoader:o,App:d,Component:h,wrapApp:X,err:t,isFallback:!!i.isFallback,subscription:(e,t,r)=>es(Object.assign({},e,{App:t,scroll:r})),locale:i.locale,locales:i.locales,defaultLocale:p,domainLocales:i.domainLocales,isPreview:i.isPreview}),B=await n._initialMatchesMiddlewarePromise;let r={App:d,initial:!0,Component:h,props:i.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),es(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1821:(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 s},getAccessFallbackHTTPStatus:function(){return o},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),i="NEXT_HTTP_ERROR_FALLBACK";function a(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 o(e){return Number(e.digest.split(";")[1])}function s(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,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(758)._(r(5729)).default.createContext(null)},1991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(5765);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return 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)},2018:(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 p},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return _},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});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),a=0;a<n;a++)i[a]=arguments[a];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>i.test(e);function o(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=o();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,configurable:!0});return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
1class p extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},2173:(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}})},2261:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return u}});let n=r(836),i=r(2635),a=r(4974),o=r(7342),s=r(2553),l=r(6261);function u(e,t,r,u,c,d){let f,h=!1,p=!1,m=(0,l.parseRelativeUrl)(e),_=(0,a.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(m.pathname),d).pathname),g=r=>{let l=(0,n.getPathMatch)(r.source+"(/)?",{removeUnnamedParams:!0,strict:!0})(m.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},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return p=!0,!0;let n=(0,i.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:u});if(m=n.parsedDestination,e=n.newUrl,Object.assign(u,n.parsedDestination.query),_=(0,a.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(e),d).pathname),t.includes(_))return h=!0,f=_,!0;if((f=c(_))!==e&&t.includes(f))return h=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)g(r.beforeFiles[e]);if(!(h=t.includes(_))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(g(r.afterFiles[e])){y=!0;break}}if(y||(f=c(_),y=h=t.includes(f)),!y){for(let e=0;e<r.fallback.length;e++)if(g(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:h,resolvedHref:f,externalDest:p}}},2553:(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(5999),("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)},2584:(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 a},formatWithValidation:function(){return s},urlObjectKeys:function(){return o}});let n=r(8963)._(r(3344)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",o=e.pathname||"",s=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 a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||i.test(a))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+a+u+(o=o.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return a(e)}},2635:(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 f}});let n=r(5756),i=r(7918),a=r(8364),o=r(6896),s=r(3312);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={},a=r=>{let n,a=r.key;switch(r.type){case"header":a=a.toLowerCase(),n=e.headers[a];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,o.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[a];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}(a)]=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
1h(e=>{i[e]=t.groups[e]}):"host"===r.type&&t[0]&&(i.host=t[0])),!0}return!1};return!(!r.every(e=>a(e))||n.some(e=>a(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,s.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),a=r.pathname;a&&(a=l(a));let o=r.href;o&&(o=l(o));let s=r.hostname;s&&(s=l(s));let u=r.hash;u&&(u=l(u));let c=r.search;return c&&(c=l(c)),{...r,pathname:a,hostname:s,href:o,hash:u,search:c}}function f(e){let t,r,n=d(e),{hostname:i,query:o,search:u}=n,f=n.pathname;n.hash&&(f=""+f+n.hash);let h=[],p=[];for(let e of((0,s.safePathToRegexp)(f,p),p))h.push(e.name);if(i){let e=[];for(let t of((0,s.safePathToRegexp)(i,e),e))h.push(t.name)}let m=(0,s.safeCompile)(f,{validate:!1});for(let[r,n]of(i&&(t=(0,s.safeCompile)(i,{validate:!1})),Object.entries(o)))Array.isArray(n)?o[r]=n.map(t=>c(l(t),e.params)):"string"==typeof n&&(o[r]=c(l(n),e.params));let _=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!_.some(e=>h.includes(e)))for(let t of _)t in o||(o[t]=e.params[t]);if((0,a.isInterceptionRouteAppPath)(f))for(let t of f.split("/")){let r=a.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,a]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=i,n.hash=(a?"#":"")+(a||""),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:o,parsedDestination:n}}},2670:(e,t,r)=>{"use strict";globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"662e1420311b2f070d3a3b69db3ce106a7c163d4"},globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="15.5.20",globalThis._sentryRewriteFramesAssetPrefixPath="/apps/newsletter",globalThis._sentryAssetPrefix="https://static-prod.ilpost.it/apps/newsletter",globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}',e.exports=r(4670)},2680: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="",a=r+1;a<e.length;){var o=e.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){i+=e[a++];continue}break}if(!i)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=a;continue}if("("===n){var s=1,l="",a=r+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){l+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));l+=e[a++]}if(s)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=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,o=t.delimiter,s=void 0===o?"/#?":o,l=[],u=0,c=0,d="",f=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},h=function(e){var t=f(e);
1if(void 0!==t)return t;var n=r[c],i=n.type,a=n.index;throw TypeError("Unexpected ".concat(i," at ").concat(a,", expected ").concat(e))},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<s.length;t++){var r=s[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||m(r)?"[^".concat(i(s),"]+?"):"(?:(?!".concat(i(r),")[^").concat(i(s),"])+?")};c<r.length;){var g=f("CHAR"),y=f("NAME"),v=f("PATTERN");if(y||v){var b=g||"";-1===a.indexOf(b)&&(d+=b,b=""),d&&(l.push(d),d=""),l.push({name:y||u++,prefix:b,suffix:"",pattern:v||_(b),modifier:f("MODIFIER")||""});continue}var S=g||f("ESCAPED_CHAR");if(S){d+=S;continue}if(d&&(l.push(d),d=""),f("OPEN")){var b=p(),E=f("NAME")||"",w=f("PATTERN")||"",T=p();h("CLOSE"),l.push({name:E||(w?u++:""),pattern:E&&!w?_(b):w,prefix:b,suffix:T,modifier:f("MODIFIER")||""});continue}h("END")}return l}function r(e,t){void 0===t&&(t={});var r=a(t),n=t.encode,i=void 0===n?function(e){return e}:n,o=t.validate,s=void 0===o||o,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 a=e[n];if("string"==typeof a){r+=a;continue}var o=t?t[a.name]:void 0,u="?"===a.modifier||"*"===a.modifier,c="*"===a.modifier||"+"===a.modifier;if(Array.isArray(o)){if(!c)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===o.length){if(u)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var d=0;d<o.length;d++){var f=i(o[d],a);if(s&&!l[n].test(f))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(f,'"'));r+=a.prefix+f+a.suffix}continue}if("string"==typeof o||"number"==typeof o){var f=i(String(o),a);if(s&&!l[n].test(f))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(f,'"'));r+=a.prefix+f+a.suffix;continue}if(!u){var h=c?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(h))}}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 a=n[0],o=n.index,s=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?s[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return i(e,r)}):s[r.name]=i(n[e],r)}}(l);return{path:a,index:o,params:s}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function o(e,t,r){void 0===r&&(r={});for(var n=r.strict,o=void 0!==n&&n,s=r.start,l=r.end,u=r.encode,c=void 0===u?function(e){return e}:u,d=r.delimiter,f=r.endsWith,h="[".concat(i(void 0===f?"":f),"]|$"),p="[".concat(i(void 0===d?"/#?":d),"]"),m=void 0===s||s?"^":"",_=0;_<e.length;_++){var g=e[_];if("string"==typeof g)m+=i(c(g));else{var y=i(c(g.prefix)),v=i(c(g.suffix));if(g.pattern)if(t&&t.push(g),y||v)if("+"===g.modifier||"*"===g.modifier){var b="*"===g.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(g.pattern,")(?:").concat(v).concat(y,"(?:").concat(g.pattern,"))*)").concat(v,")").concat(b)}else m+="(?:".concat(y,"(").concat(g.pattern,")").concat(v,")").concat(g.modifier);else{if("+"===g.modifier||"*"===g.modifier)throw TypeError('Can not repeat "'.concat(g.name,'" without a prefix and suffix'));m+="(".concat(g.pattern,")").concat(g.modifier)}else m+="(?:".concat(y).concat(v,")").concat(g.modifier)}}if(void 0===l||l)o||(m+="".concat(p,"?")),m+=r.endsWith?"(?=".concat(h,")"):"$";else{var S=e[e.length-1],E="string"==typeof S?p.indexOf(S[S.length-1])>-1:void 0===S;o||(m+="(?:".concat(p,"(?=").concat(h,"))?")),E||(m+="(?=".concat(p,"|").concat(h,")"))}return new RegExp(m,a(r))}function s(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 s(e,r,n).source}),new RegExp("(?:".concat(i.join("|"),")"),a(n))):o(e(t,n),r,n)}
1Object.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(s(e,r,t),r,t)},t.regexpToFunction=n,t.tokensToRegexp=o,t.pathToRegexp=s})(),e.exports=t})()},2692:(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}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),r(9687)},2703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(913),i=r(6364);function a(e,t,r,a){if(!t||t===r)return e;let o=e.toLowerCase();return!a&&((0,i.pathHasPrefix)(o,"/api")||(0,i.pathHasPrefix)(o,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},2711:(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}})},2778:function(e,t,r){r(1604).defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xba",week:{dow:1,doy:4}})},2876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=r(6364);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},2903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(758)._(r(5729)).default.createContext({})},2910:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},2947:(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}})},2967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let n=r(2018),i=r(3312);function a(e){let{re:t,groups:r}=e;return(0,i.safeRouteMatcher)(e=>{let i=t.exec(e);if(!i)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,
1configurable:!0})}},o={};for(let[e,t]of Object.entries(r)){let r=i[t.pos];void 0!==r&&(t.repeat?o[e]=r.split("/").map(e=>a(e)):o[e]=a(r))}return o})}},3016:(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}})},3207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(913),i=r(5765);function a(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)},3209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(758)._(r(2711));class i{end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!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 a{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 o=new a;("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)},3312:(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 o},safePathToRegexp:function(){return a},safeRegexpToFunction:function(){return s},safeRouteMatcher:function(){return l}});let n=r(2680),i=r(6778);function a(e,t,r){if("string"!=typeof e)return(0,n.pathToRegexp)(e,t,r);let a=(0,i.hasAdjacentParameterIssues)(e),o=a?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,n.pathToRegexp)(o,t,r)}catch(o){if(!a)try{let a=(0,i.normalizeAdjacentParameters)(e);return(0,n.pathToRegexp)(a,t,r)}catch(e){}throw o}}function o(e,t){let r=(0,i.hasAdjacentParameterIssues)(e),a=r?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,n.compile)(a,t)}catch(a){if(!r)try{let r=(0,i.normalizeAdjacentParameters)(e);return(0,n.compile)(r,t)}catch(e){}throw a}}function s(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)}}},3338:(e,t,r)=>{"use strict";r.d(t,{FG:()=>s,i$:()=>l,FD:()=>d,Ld:()=>c,VY:()=>u,Zb:()=>f,DS:()=>o,Av:()=>a}),r(6029);var n=r(1604),i=r.n(n);r(2778),r(7024);let a=()=>{i().updateLocale("it",{months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]}),i().locale("it")},o=e=>{let{entryCategory:t,allCategories:r,entryTags:n}=e,i={"da-costa-a-costa":["da-costa-a-costa"]},a=[],o=Object.fromEntries(Object.entries({Consumismi:["Casa"],Cultura:["Cinema","Citazioni","Cultura","MUsica","Scuola"],Economia:["Azienda","Economia"],Europa:["Europa Today"],Internet:["Notizie curiose dal web","Social","Tecnologia","Facebook"],"Home Page":["Home page"],Italia:["Attualit\xe0","best of Today","Citt\xe0","Cronaca","Inchieste e Reportage","Notizie","Rassegna"],Libri:["Libri"],Media:["Media","Televisione"],Moda:["Lifestyle","Donna"],Mondo:["Ambiente","Animali","Green","Mondo"],Politica:["Politica"],ROS:["Annunci","Blog","Cibo","Cucina","Diretta","Eventi","Fan","Formazione","Gossip","Info","Lotto e Superenalotto","Oroscopo","Partner","Persone","Speciale","Test","Viaggi","Video"],Scienza:["Benessere","Motori e mobilit\xe0","Salute","Scienze"],Sport:["Sport"],"Storie/Idee":["Approfondimenti","Opinioni","Storie"],Tecnologia:["Innovazione"],TV:["Film e Serie TV"],"foto-del-giorno":["ROS"],Peanuts:["ROS"],podcast:["ROS"],photogallery:["ROS"],blog:["ROS"],Flas
1hes:["ROS"]}).filter(e=>{let[r]=e;return r.includes(t)}))[t];if(o&&(a=[...a,...o]),null==r?void 0:r.length){let e=[];r.map(t=>{try{let r=Object.fromEntries(Object.entries(i).filter(e=>{let[r]=e;return r.includes(t)&&r.includes(t)}))[t];r&&(e=[...e,...r])}catch(e){console.log(e)}}),e.length>0&&(a=[...a,...e])}return(null==n?void 0:n.length)&&(a=[...a,...n]),a.length>0?a.toString():""};var s=function(e){return e[e.home=0]="home",e[e.single=1]="single",e[e.singlelive=2]="singlelive",e[e.altrecose=3]="altrecose",e[e.taxonomy=4]="taxonomy",e[e.podcast=5]="podcast",e[e.newsletter=6]="newsletter",e[e.events=7]="events",e[e.pages=8]="pages",e[e.school=9]="school",e}({}),l=function(e){return e.HOME="home",e.SINGLE="single",e.LIVE="live",e.SINGLE_ALTRECOSE="singlealtrecose",e.PODCAST_HOME="podcast-home",e.PODCAST_CAT="podcast",e.PODCAST_EPISODE="episode",e.TAXONOMY="taxonomy",e.ALTRECOSE="altrecose",e.FIFTEEN="15-anni",e.NEWSLETTER_HOME="newsletter-home",e.NEWSLETTER_CAT="newsletter-category",e.NEWSLETTER_MESSAGE="newsletter-message",e.FIFAWORLDCUP2026="mondiali-2026",e.SCHOOL_HOME="school-home",e.SCHOOL_SINGLE="school-single",e}({});let u="/mio-account",c="https://www.citynews.it/advertising/ilpost/",d={ANNUAL:90,MONTHLY:9},f=()=>12*d.MONTHLY-d.ANNUAL},3344:(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 a(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 a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},3371:(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}},3741:(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}})},3758:(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(758),i=r(6029),a=n._(r(5729)),o=r(7006),s={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,o.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.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:s,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)},3927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=r(7342),i=r(2876),a=r(6364);function o(e,t){var r,o;let{basePath:s,i18n:l,trailingSlash:u}=null!=(r=t.nextConfig)?r:{}
1,c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};s&&(0,a.pathHasPrefix)(c.pathname,s)&&(c.pathname=(0,i.removePathPrefix)(c.pathname,s),c.basePath=s);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!=(o=e.pathname)?o: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}},4033:(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)},4190:(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}})},4364:(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 z},default:function(){return V},matchesMiddleware:function(){return j}});let i=r(758),a=r(8963),o=r(4974),s=r(4848),l=r(7172),u=a._(r(5255)),c=r(6899),d=r(7342),f=i._(r(2711)),h=r(2018),p=r(9811),m=r(6261),_=r(2967),g=r(8870),y=r(2584);r(5280);let v=r(4190),b=r(1991),S=r(5588),E=r(2553),w=r(3207),T=r(5999),x=r(6425),R=r(3741),P=r(3927),k=r(8012),O=r(4415),M=r(1413),C=r(8445),I=r(102),A=r(397),N=r(2692),D=r(4957);function L(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function j(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,v.parsePath)(e.asPath),n=(0,T.hasBasePath)(r)?(0,E.removeBasePath)(r):r,i=(0,w.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}function U(e){let t=(0,h.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[n,i]=(0,x.resolveHref)(e,t,!0),a=(0,h.getLocationOrigin)(),o=n.startsWith(a),s=i&&i.startsWith(a);n=U(n),i=i?U(i):i;let l=o?n:(0,w.addBasePath)(n),u=r?U((0,x.resolveHref)(e,r)):i||n;return{url:l,as:s?u:(0,w.addBasePath)(u)}}function $(e,t){let r=(0,o.removeTrailingSlash)((0,c.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,o.removeTrailingSlash)(e))}async function H(e){if(!await j(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:!0},a=t.headers.get("x-nextjs-rewrite"),l=a||t.headers.get("x-nextjs-matched-path"),u=t.headers.get(D.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,m.parseRelativeUrl)(l),u=(0,P.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),c=(0,o.removeTrailingSlash)(u.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,s.getClientBuildManifest)()]).then(i=>{let[o,{__rewrites:s}]=i,l=(0,b.addLocale)(u.pathname,u.locale);if((0,p.isDynamicRoute)(l)||!a&&o.includes((0,d.normalizeLocalePath)((0,E.removeBasePath)(l),r.router.locales).pathname)){let r=(0,P.getNextPathnameInfo)((0,m.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0}
1);t.pathname=l=(0,w.addBasePath)(r.pathname)}{let e=n(l,o,s,t.query,e=>$(e,o),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,l=t.pathname,Object.assign(t.query,e.parsedAs.query))}let f=o.includes(c)?c:$((0,d.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),r.router.locales).pathname,o);if((0,p.isDynamicRoute)(f)){let e=(0,_.getRouteMatcher)((0,g.getRouteRegex)(f))(l);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,v.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,k.formatNextPathnameInfo)({...(0,P.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,v.parsePath)(c),t=(0,k.formatNextPathnameInfo)({...(0,P.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(2261).A;let Y=Symbol("SSG_DATA_NOT_FOUND");function W(e){try{return JSON.parse(e)}catch(e){return null}}function B(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:i,isServerRender:a,parseJSON:o,persistCache:l,isBackground:u,unstable_skipClientCache:c}=e,{href:d}=new URL(t,window.location.href),f=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,a?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=W(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:Y},response:r,text:e,cacheKey:d}}let o=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,s.markAssetError)(o),o}return{dataHref:t,json:o?W(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,s.markAssetError)(e),e})};return c&&l?f({}).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
1]=f(u?{method:"HEAD"}:{})}function z(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:r}=e;if(t===(0,w.addBasePath)((0,b.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 G=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 V{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}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,i){{if(!this._bfl_s&&!this._bfl_d){let t,a,{BloomFilter:o}=r(1645);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,s.getClientBuildManifest)())}catch(t){if(console.error(t),i)return!0;return q({url:(0,w.addBasePath)((0,b.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new o(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new o(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,d=!1;for(let{as:r,allowMatchCurrent:s}of[{as:e},{as:t}])if(r){let t=(0,o.removeTrailingSlash)(new URL(r,"http://n").pathname),f=(0,w.addBasePath)((0,b.addLocale)(t,n||this.locale));if(s||t!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var a,l,u;for(let e of(c=c||!!(null==(a=this._bfl_s)?void 0:a.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(f)),[t,f])){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 q({url:(0,w.addBasePath)((0,b.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,i,a){var c,d,f,x,R,P,k,C,N;let D,U;if(!(0,M.isLocalURL)(t))return q({url:t,router:this}),!1;let H=1===i._h;H||i.shallow||await this._bfl(r,void 0,i.locale);let W=H||i._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(r).pathname,B={...this.state},z=!0!==this.isReady;this.isReady=!0;let G=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let X=B.locale;h.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:J=!0}=i,Z={shallow:K};this._inFlightRoute&&this.clc&&(G||V.events.emit("routeChangeError",L(),this._inFlightRoute,Z),this.clc(),this.clc=null),r=(0,w.addBasePath)((0,b.addLocale)((0,T.hasBasePath)(r)?(0,E.removeBasePath)(r):r,i.locale,this.defaultLocale));let Q=(0,S.removeLocale)((0,T.hasBasePath)(r)?(0,E.removeBasePath)(r):r,B.locale);this._inFlightRoute=r;let ee=X!==B.locale;if(!H&&this.onlyAHashChange(Q)&&!ee){B.asPath=Q,V.events.emit("hashChangeStart",r,Z),this.changeState(e,t,r,{...i,scroll:!1}),J&&this.scrollToHash(Q);try{await this.set(B,this.components[B.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,Z),e}return V.events.emit("hashChangeComplete",r,Z),!0}let et=(0,m.parseRelativeUrl)(t),{pathname:er,query:en}=et;try{[D,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,s.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:r,router:this}),!1}this.urlIsNew(Q)||ee||(e="replaceState");let ei=r;er=er?(0,o.removeTrailingSlash)((0,E.removeBasePath)(er)):er;let ea=(0,o.removeTrailingSlash)(er),eo=r.startsWith("/")&&(0,m.parseRelativeUrl)(r).pathname;if(null==(c=this.components[er])?void 0:c.__appRouter)return q({url:r,router:this}),new Promise(()=>{});let es=!!(eo&&ea!==eo&&(!(0,p.isDynamicRoute)(ea)||!(0,_.getRouteMatcher)((0,g.getRouteRegex)(ea))(eo))),el=!i.shallow&&await j({asPath:r,locale:B.locale,router:this});if(H&&el&&(W=!1),W&&"/_error"!==er)if(i._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,w.addBasePath)((0,b.addLocale)(Q,B.locale),!0),D,U,en,e=>$(e,D),this.locales);if(e.externalDest)return q({url:r,router:this}),!0;el||(ei=e.asPath),e.matchedPage&&e.resolvedHref&&(er=e.resolvedHref,et.pathname=(0,w.addBasePath)(er),el||(t=(0,y.formatWithValidation)(et)))}else et.pathname=$(er,D),et.pathname!==er&&(er=et.pathname,et.pathname=(0,w.addBasePath)(er),el||(t=(0,y.formatWithValidation)(et)));if(!(0,M.isLocalURL)(r))return q({url:r,router:this}),!1;ei=(0,S.removeLocale)((0,E.removeBasePath)(ei),B.locale),ea=(0,o.removeTrailingSlash)(er);let eu=!1;if((0,p.isDynamicRoute)(ea)){let e=(0,m.parseRelativeUrl)(ei),n=e.pathname,i=(0,g.getRouteRegex)(ea);eu=(0,_.getRouteMatcher)(i)(n);let a=ea===n,o=a?(0,A.interpolateAs)(ea,n,en):{};if(eu&&(!a||o.result))a?r=(0,y.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,I.omit)(en,o.params)})):Object.assign(en,eu);else{let e=Object.keys(i.groups).filter(e=>!en[e]&&!i.groups[e].optional);if(e.length>0&&!el)throw Object.defineProperty(Error((a?"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 ("+ea+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,
1configurable:!0})}}H||V.events.emit("routeChangeStart",r,Z);let ec="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:ea,pathname:er,query:en,as:r,resolvedAs:ei,routeProps:Z,locale:B.locale,isPreview:B.isPreview,hasMiddleware:el,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:es});if(H||i.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,B.locale),"route"in n&&el){ea=er=n.route||ea,Z.shallow||(en=Object.assign({},n.query||{},en));let e=(0,T.hasBasePath)(et.pathname)?(0,E.removeBasePath)(et.pathname):et.pathname;if(eu&&er!==e&&Object.keys(eu).forEach(e=>{eu&&en[e]===eu[e]&&delete en[e]}),(0,p.isDynamicRoute)(er)){let e=!Z.shallow&&n.resolvedAs?n.resolvedAs:(0,w.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,B.locale),!0);(0,T.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,g.getRouteRegex)(er),i=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);i&&Object.assign(en,i)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,i);else return q({url:n.destination,router:this}),new Promise(()=>{});let o=n.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.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,m.parseRelativeUrl)(t);r.pathname=$(r.pathname,D);let{url:n,as:a}=F(this,t,t);return this.change(e,n,a,i)}return q({url:t,router:this}),new Promise(()=>{})}if(B.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===Y){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:en,as:r,resolvedAs:ei,routeProps:{shallow:!1},locale:B.locale,isPreview:B.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}H&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)||null==(d=f.pageProps)?void 0:d.statusCode)===500&&(null==(x=n.props)?void 0:x.pageProps)&&(n.props.pageProps.statusCode=500);let s=i.shallow&&B.route===(null!=(R=n.route)?R:ea),c=null!=(P=i.scroll)?P:!H&&!s,h=null!=a?a:c?{x:0,y:0}:null,y={...B,route:ea,pathname:er,query:en,asPath:Q,isFallback:!1};if(H&&ec){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:r,resolvedAs:ei,routeProps:{shallow:!1},locale:B.locale,isPreview:B.isPreview,isQueryUpdating:H&&!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==(C=self.__NEXT_DATA__.props)||null==(k=C.pageProps)?void 0:k.statusCode)===500&&(null==(N=n.props)?void 0:N.pageProps)&&(n.props.pageProps.statusCode=500);try{await this.set(y,n,h)}catch(e){throw(0,u.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,Z),e}return!0}if(V.events.emit("beforeHistoryChange",r,Z),this.changeState(e,t,r,i),!(H&&!h&&!z&&!ee&&(0,O.compareRouterStates)(y,this.state))){try{await this.set(y,n,h)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw H||V.events.emit("routeChangeError",n.error,Q,Z),n.error;H||V.events.emit("routeChangeComplete",r,Z),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,h.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:z()},"",r))}async handleRouteInfoError(e,t,r,n,i,a){if(e.cancelled)throw e;if((0,s.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,i),q({url:n,router:this}),L();console.error(e);try{let n,{page:i,styleSheets:a}=await this.fetchComponent("/_error"),o={props:n,Component:i,styleSheets:a,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(i,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
1configurable:!0}),t,r,n,i,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:i,resolvedAs:a,routeProps:s,locale:l,hasMiddleware:c,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:_}=e,g=t;try{var v,b,S,w;let e=this.components[g];if(s.shallow&&e&&this.route===g)return e;let t=G({route:g,router:this});c&&(e=void 0);let u=!e||"initial"in e?void 0:e,T={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?"/404":a,locale:l}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},x=p&&!m?null:await H({fetchData:()=>B(T),asPath:_?"/404":a,locale:l,router:this}).catch(e=>{if(p)return null;throw e});if(x&&("/_error"===r||"/404"===r)&&(x.effect=void 0),p&&(x?x.json=self.__NEXT_DATA__.props:x={json:self.__NEXT_DATA__.props}),t(),(null==x||null==(v=x.effect)?void 0:v.type)==="redirect-internal"||(null==x||null==(b=x.effect)?void 0:b.type)==="redirect-external")return x.effect;if((null==x||null==(S=x.effect)?void 0:S.type)==="rewrite"){let t=(0,o.removeTrailingSlash)(x.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!p||i.includes(t))&&(g=t,r=x.effect.resolvedHref,n={...n,...x.effect.parsedAs.query},a=(0,E.removeBasePath)((0,d.normalizeLocalePath)(x.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],s.shallow&&e&&this.route===g&&!c))return{...e,route:g}}if((0,R.isAPIRoute)(g))return q({url:i,router:this}),new Promise(()=>{});let P=u||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),k=null==x||null==(w=x.response)?void 0:w.headers.get("x-middleware-skip"),O=P.__N_SSG||P.__N_SSP;k&&(null==x?void 0:x.dataHref)&&delete this.sdc[x.dataHref];let{props:M,cacheKey:C}=await this._getData(async()=>{if(O){if((null==x?void 0:x.json)&&!k)return{cacheKey:x.cacheKey,props:x.json};let e=(null==x?void 0:x.dataHref)?x.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:n}),asPath:a,locale:l}),t=await B({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:k?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(P.Component,{pathname:r,query:n,asPath:i,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})}});return P.__N_SSP&&T.dataHref&&C&&delete this.sdc[C],this.isPreview||!P.__N_SSG||p||B(Object.assign({},T,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),M.pageProps=Object.assign({},M.pageProps),P.props=M,P.route=g,P.query=n,P.resolvedAs=a,this.components[g]=P,P}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),r,n,i,s)}}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,N.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,m.parseRelativeUrl)(e),a=i.pathname,{pathname:l,query:u}=i,c=l,d=await this.pageLoader.getPageList(),f=t,h=void 0!==r.locale?r.locale||void 0:this.locale,T=await j({asPath:t,locale:h,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,s.getClientBuildManifest)());let a=n((0,w.addBasePath)((0,b.addLocale)(t,this.locale),!0),d,r,i.query,e=>$(e,d),this.locales);if(a.externalDest)return;T||(f=(0,S.removeLocale)((0,E.removeBasePath)(a.asPath),this.locale)),a.matchedPage&&a.resolvedHref&&(i.pathname=l=a.resolvedHref,T||(e=(0,y.formatWithValidation)(i)))}i.pathname=$(i.pathname,d),(0,p.isDynamicRoute)(i.pathname)&&(l=i.pathname,i.pathname=l,Object.assign(u,(0,_.getRouteMatcher)((0,g.getRouteRegex)(i.pathname))((0,v.parsePath)(t).pathname)||{}),T||(e=(0,y.formatWithValidation)(i)));let x=await H({fetchData:()=>B({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:c,query:u}),skipInterpolation:!0,asPath:f,locale:h}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persist
1Cache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:h,router:this});if((null==x?void 0:x.effect.type)==="rewrite"&&(i.pathname=x.effect.resolvedHref,l=x.effect.resolvedHref,u={...u,...x.effect.parsedAs.query},f=x.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(i)),(null==x?void 0:x.effect.type)==="redirect-external")return;let R=(0,o.removeTrailingSlash)(l);await this._bfl(t,f,r.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(R).then(t=>!!t&&B({dataHref:(null==x?void 0:x.json)?null==x?void 0:x.dataHref:this.pageLoader.getDataHref({href:e,asPath:f,locale:h}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](R)])}async fetchComponent(e){let t=G({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,configurable:!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,h.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:a,wrapApp:s,Component:l,err:u,subscription:c,isFallback:d,locale:f,locales:_,defaultLocale:g,domainLocales:v,isPreview:b}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=z(),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,y.formatWithValidation)({pathname:(0,w.addBasePath)(e),query:t}),(0,h.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:a,options:o,key:s}=n;this._key=s;let{pathname:l}=(0,m.parseRelativeUrl)(i);(!this.isSsr||a!==(0,w.addBasePath)(this.asPath)||l!==(0,w.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",i,a,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};let S=(0,o.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:l,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=V.events,this.pageLoader=i;let E=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!E&&!self.location.search&&0),this.state={route:S,pathname:e,query:t,asPath:E?e:r,isPreview:!!b,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:f},i=(0,h.getURL)();this._initialMatchesMiddlewarePromise=j({router:this,locale:f,asPath:i}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?i:(0,y.formatWithValidation)({pathname:(0,w.addBasePath)(e),query:t}),i,n),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},4415:(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}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},4455:(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,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4670:(e,t,r)=>{"use strict";let n,i,a,o,s,l,u,c,d,f,h,p,m,_,g,y,v,b,S,E,w,T,x,R,P,k,O;r.r(t),r.d(t,{onRouterTransitionStart:()=>lL});var M,C=r(3338);let I=globalThis,A="10.27.0";function N(){return D(I),I}function D(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||A,t[A]=t[A]||{}}function L(e,t,r=I){let n=r.__SENTRY__=r.__SENTRY__||{},i=n[A]=n[A]||{};return i[e]||(i[e]=t())}let j="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,U=["debug","info","warn","error","log","assert","trace"],F={};function $(e){if(!("console"in I))return e();let t=I.console,r={},n=Object.keys(F);n.forEach(e=>{let n=F[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function H(){return W().enabled}function Y(e,...t){j&&H()&&$(()=>{I.console[e](`Sentry Logger [${e}]:`,...t)})}function W(){return j?L("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let B={enable:function(){W().enabled=!0},disable:function(){W().enabled=!1},isEnabled:H,log:function(...e){Y("log",...e)},warn:function(...e){Y("warn",...e)},error:function(...e){Y("error",...e)}};function z(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:A})),version:A}),e._metadata=i}let q=Object.prototype.toString;function G(e){switch(q.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return en(e,Error)}}function V(e,t){return q.call(e)===`[object ${t}]`}function X(e){return V(e,"ErrorEvent")}function K(e){return V(e,"DOMError")}function J(e){return V(e,"String")}function Z(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Q(e){return null===e||Z(e)||"object"!=typeof e&&"function"!=typeof e}function ee(e){return V(e,"Object")}function et(e){return"undefined"!=typeof Event&&en(e,Event)}function er(e){return!!(e?.then&&"function"==typeof e.then)}function en(e,t){try{return e instanceof t}catch{return!1}}function ei(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function ea(e){return"undefined"!=typeof Request&&en(e,Request)}function eo(e,t={}){if(!e)return"<unknown>";try{let r,n=e,i=[],a=0,o=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&a++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(I.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let n=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(n?.length)n.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&J(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,s),"html"!==r&&(!(a>1)||!(o+3*i.length+r.length>=l)));)i.push(r),o+=r.length,n=n.parentNode;return i.reverse().join(" > ")}catch{return"<unknown>"}}function es(){try{return I.document.location.href}catch{return""}}function el(e){if(!I.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function eu(e,t,r){if(!(t in e))return;let n=e[t];if("function"!=typeof n)return;let i=r(n);"function"==typeof i&&ed(i,n);try{e[t]=i}catch{j&&B.log(`Failed to replace method "${t}" in object`,e)}}function ec(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{j&&B.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ed(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,ec(e,"__sentry_original__",t)}catch{}}function ef(e){return e.__sentry_original__}function eh(e){if(G(e))return{message:e.message,name:e.name,stack:e.stack,...em(e)};if(!et(e))return e;{let t={type:e.type,target:ep(e.target),currentTarget:ep(e.currentTarget),...em(e)};return"undefined"!=typeof CustomEvent&&en(e,CustomEvent)&&(t.detail=e.detail),t}}function ep(e){try{return"undefined"!=typeof Element&&en(e,Element)?eo(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function em(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function e_(e=I.crypto||I.msCrypto){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*Math.random())>>e/4).toString(16))}function eg(e){return e.exception?.values?.[0]}function ey(e){let{message:t,event_id:r}=e;if(t)return t;let n=eg(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function ev(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")}function eb(e,t){let r=eg(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 eS(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{ec(e,"__sentry_captured__",!0)}catch{}return!1}function eE(){return Date.now()/1e3}function ew(){return(i??(i=function(){let{performance:e}=I;if(!e?.now||!e.timeOrigin)return eE;let t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}function eT(){return a||(a=function(){let{performance:e}=I;if(!e?.now)return[void 0,"none"];let t=e.now(),r=Date.now(),n=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,i=e.timing?.navigationStart,a="number"==typeof i?Math.abs(i+t-r):36e5;if(n<36e5||a<36e5)if(n<=a)return[e.timeOrigin,"timeOrigin"];else return[i,"navigationStart"];return[r,"dateNow"]}()),a[0]}function ex(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||ew(),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:e_()),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 eR(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;let n={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=eR(n[e],t[e],r-1));return n}function eP(){return e_().substring(16)}let ek="_sentrySpan";function eO(e,t){t?ec(e,ek,t):delete e[ek]}let eM=/\(error: (.*)\)/,eC=/captureMessage|captureException/;function eI(...e){let t=e.sort((e,t)=>
1e[0]-t[0]).map(e=>e[1]);return(e,r=0,n=0)=>{let i=[],a=e.split("\n");for(let e=r;e<a.length;e++){let r=a[e];r.length>1024&&(r=r.slice(0,1024));let o=eM.test(r)?r.replace(eM,"$1"):r;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=50+n)break}}var o=i.slice(n);if(!o.length)return[];let s=Array.from(o);return/sentryWrapped/.test(eA(s).function||"")&&s.pop(),s.reverse(),eC.test(eA(s).function||"")&&(s.pop(),eC.test(eA(s).function||"")&&s.pop()),s.slice(0,50).map(e=>({...e,filename:e.filename||eA(s).filename,function:e.function||"?"}))}}function eA(e){return e[e.length-1]||{}}let eN="<anonymous>";function eD(e){try{if(!e||"function"!=typeof e)return eN;return e.name||eN}catch{return eN}}function eL(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{}}}function ej(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function eU(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function eF(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let n=e[t];try{ei(n)?r.push(ej(n)):r.push(String(n))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function e$(e,t,r=!1){return!!J(e)&&(V(t,"RegExp")?t.test(e):!!J(t)&&(r?e===t:e.includes(t)))}function eH(e,t=[],r=!1){return t.some(t=>e$(e,t,r))}class eY{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:e_(),sampleRand:Math.random()}}clone(){let e=new eY;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,eO(e,this[ek]),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&&ex(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}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:a,contexts:o,level:s,fingerprint:l=[],propagationContext:u}=(t instanceof eY?t.getScopeData():ee(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},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),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,eO(this,void 0),this._attachments=[],this.setPropagationContext({traceId:e_(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:eE(),...e,message:e.message?eU(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:this[ek]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=eR(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||e_();if(!this._client)return j&&B.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r?.event_id||e_();if(!this._client)return j&&B.warn("No client configured on scope - will not capture message!"),n;let i=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t?.event_id||e_();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):j&&B.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(e=>{e(this)}),this._notifyingListeners=!1)}}class eW{constructor(e,t){let r,n;r=e||new eY,n=t||new eY,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 er(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function eB(){let e=D(N());return e.stack=e.stack||new eW(L("defaultCurrentScope",()=>new eY),L("defaultIsolationScope",()=>new eY))}function ez(e){return eB().withScope(e)}function eq(e,t){let r=eB();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function eG(e){return eB().withScope(()=>e(eB().getIsolationScope()))}function eV(e){let t=D(e);return t.acs?t.acs:{withIsolationScope:eG,withScope:ez,withSetScope:eq,withSetIsolationScope:(e,t)=>eG(t),getCurrentScope:()=>eB().getScope(),getIsolationScope:()=>eB().getIsolationScope()}}function eX(){return eV(N()).getCurrentScope()}function eK(){return eV(N()).getIsolationScope()}function eJ(...e){let t=eV(N());if(2===e.length){let[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function eZ(){return eX().getClient()}let eQ="production";function e0(e){return new e2(t=>{t(e)})}function e1(e){return new e2((t,r)=>{r(e)})}class e2{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new e2((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 e2((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(er(t))return void t.then(r,n);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},n=e=>{t(2,e)};try{e(r,n)}catch(e){n(e)}}}let e3="sentry.source",e5="sentry.sample_rate",e4="sentry.previous_trace_sample_rate",e6="sentry.op",e8="sentry.origin",e9="sentry.idle_span_finish_reason",e7="sentry.measurement_unit",te="sentry.measurement_value",tt="sentry.custom_span_name",tr="sentry.profile_id",tn="sentry.exclusive_time",ti="sentry-",ta=/^sentry-/;function to(e){let t=ts(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(ta)&&(e[t.slice(ti.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function ts(e){if(e&&(J(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(tl(t)).forEach(([t,r])=>{e[t]=r}),e),{}):tl(e)}function tl(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),{})}let tu=/^o(\d+)\./,tc=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function td(e,t=!1){let{host:r,path:n,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${o}`}function tf(e){let t=tc.exec(e);if(!t)return void $(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,i="",a="",o="",s=""]=t.slice(1),l="",u=s,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return th({host:a,pass:i,path:l,projectId:u,port:o,protocol:r,publicKey:n})}function th(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tp(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||eZ()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function tm(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}let t_="_sentryScope",tg="_sentryIsolationScope";function ty(e){return{scope:e[t_],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[tg])}}function tv(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}let tb=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tS(e=e_(),t=eP(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function tE(e=e_(),t=eP(),r){return`00-${e}-${t}-${r?"01":"00"}`}let tw=!1;function tT(e){return e&&e.length>0?e.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}function tx(e){return"number"==typeof e?tR(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tR(e.getTime()):ew()}function tR(e){return e>0x2540be3ff?e/1e3:e}function tP(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:n}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:i,name:a,endTime:o,status:s,links:l}=e;return{span_id:r,trace_id:n,data:t,description:a,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:tx(i),timestamp:tx(o)||void 0,status:tO(s),op:t[e6],origin:t[e8],links:tT(l)}}return{span_id:r,trace_id:n,start_timestamp:0,data:{}}}function tk(e){let{traceFlags:t}=e.spanContext();return 1===t}function tO(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}let tM="_sentryChildSpans",tC="_sentryRootSpan";function tI(e,t){let r=e[tC]||e;ec(t,tC,r),e[tM]?e[tM].add(t):ec(e,tM,new Set([t]))}function tA(e){let t=new Set;return!function e(r){if(!t.has(r)&&tk(r))for(let n of(t.add(r),r[tM]?Array.from(r[tM]):[]))e(n)}(e),Array.from(t)}function tN(e){return e[tC]||e}function tD(){let e=eV(N());return e.getActiveSpan?e.getActiveSpan():eX()[ek]}function tL(){tw||($(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),tw=!0)}let tj="_frozenDsc";function tU(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i={environment:r.environment||eQ,release:r.release,public_key:n,trace_id:e,org_id:function(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(tu);return t?.[1]}(n)),t}(t)};return t.emit("createDsc",i),i}function tF(e,t){let r=t.getPropagationContext();return r.dsc||tU(r.traceId,e)}function t$(e){let t=eZ();if(!t)return{};let r=tN(e),n=tP(r),i=n.data,a=r.spanContext().traceState,o=a?.get("sentry.sample_rate")??i[e5]??i[e4];function s(e){return("number"==typeof o||"string"==typeof o)&&(e.sample_rate=`${o}`),e}let l=r[tj];if(l)return s(l);
1let u=a?.get("sentry.dsc"),c=u&&to(u);if(c)return s(c);let d=tU(e.spanContext().traceId,t),f=i[e3],h=n.description;return"url"!==f&&h&&(d.transaction=h),tp()&&(d.sampled=String(tk(r)),d.sample_rand=a?.get("sentry.sample_rand")??ty(r).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit("createDsc",d,r),d}function tH(e,t){let{extra:r,tags:n,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:f,transactionName:h,span:p}=t;tY(e,"extra",r),tY(e,"tags",n),tY(e,"user",i),tY(e,"contexts",a),e.sdkProcessingMetadata=eR(e.sdkProcessingMetadata,s,2),o&&(e.level=o),h&&(e.transactionName=h),p&&(e.span=p),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function tY(e,t,r){e[t]=eR(e[t],r,1)}function tW(e,t=100,r=Infinity){try{return function e(t,r,n=Infinity,i=Infinity,a=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[o,s]=a;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(ei(t))return ej(t);if(ee(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${eD(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!l.startsWith("[object "))return l;if(r.__sentry_skip_normalization__)return r;let u="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:n;if(0===u)return l.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,u-1,i,a)}catch{}let c=Array.isArray(r)?[]:{},d=0,f=eh(r);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(d>=i){c[t]="[MaxProperties ~]";break}let r=f[t];c[t]=e(t,r,u-1,i,a),d++}return s(r),c}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tB(e,t,r,n,i,a){var c,d,f,h,p,m;let{normalizeDepth:_=3,normalizeMaxBreadth:g=1e3}=e,y={...t,event_id:t.event_id||r.event_id||e_(),timestamp:t.timestamp||eE()},v=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:a}=t;e.environment=e.environment||r||eQ,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=eU(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=eU(e.value,a))})})(y,e),c=y,(d=v).length>0&&(c.sdk=c.sdk||{},c.sdk.integrations=[...c.sdk.integrations||[],...d]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=I._sentryDebugIds,r=I._debugIds;if(!t&&!r)return{};let n=t?Object.keys(t):[],i=r?Object.keys(r):[];if(u&&n.length===s&&i.length===l)return u;s=n.length,l=i.length,u={},o||(o={});let a=(t,r)=>{for(let n of t){let t=r[n],i=o?.[n];if(i&&u&&t)u[i[0]]=t,o&&(o[n]=[i[0],t]);else if(t){let r=e(n);for(let e=r.length-1;e>=0;e--){let i=r[e],a=i?.filename;if(a&&u&&o){u[a]=t,o[n]=[a,t];break}}}}};return t&&a(n,t),r&&a(i,r),u}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(y,e.stackParser);let b=function(e,t){if(!t)return e;let r=e?e.clone():new eY;return r.update(t),r}(n,r.captureContext);r.mechanism&&eb(y,r.mechanism);let S=i?i.getEventProcessors():[],E=L("globalScope",()=>new eY).getScopeData();a&&tH(E,a.getScopeData()),b&&tH(E,b.getScopeData());let w=[...r.attachments||[],...E.attachments];w.length&&(r.attachments=w);let{fingerprint:T,span:x,breadcrumbs:R,sdkProcessingMetadata:P}=E;return function(e,t){let{extra:r,tags:n,user:i,contexts:a,level:o,transactionName:s}=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(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)}(y,E),x&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:tP(e).parent_span_id,a=ty(e).scope;return{parent_span_id:i,span_id:n?a?.getPropagationContext().propagationSpanId||eP():t,trace_id:r}}(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:t$(t),...e.sdkProcessingMetadata};let r=tP(tN(t)).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(y,x),f=y,h=T,f.fingerprint=f.fingerprint?Array.isArray(f.fingerprint)?f.fingerprint:[f.fingerprint]:[],h&&(f.fingerprint=f.fingerprint.concat(h)),f.fingerprint.length||delete f.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(y,R),p=y,m=P,p.sdkProcessingMetadata={...p.sdkProcessingMetadata,...m},(function(e,t,r,n=0){try{let i=function e(t,r,n,i){let a=n[i];if(!t||!a)return t;let o=a({...t},r);return(j&&null===o&&B.log(`Event processor "${a.id||"?"}" dropped event`),er(o))?o.then(t=>e(t,r,n,i+1)):e(o,r,n,i+1)}(t,r,e,n);return er(i)?i:e0(i)}catch(e){return e1(e)}})([...S,...E.eventProcessors],y,r).then(e=>(e&&function(e){let t={};
1if(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 _&&_>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:tW(e.data,t,r)}}))},...e.user&&{user:tW(e.user,t,r)},...e.contexts&&{contexts:tW(e.contexts,t,r)},...e.extra&&{extra:tW(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=tW(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:tW(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=tW(e.contexts.flags,3,r)),n}(e,_,g):e)}let tz=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function tq(e,t){return eX().captureException(e,function(e){if(e){var t;return(t=e)instanceof eY||"function"==typeof t||Object.keys(e).some(e=>tz.includes(e))?{captureContext:e}:e}}(t))}function tG(e,t){return eX().captureEvent(e,t)}function tV(e,t){eK().setContext(e,t)}function tX(e){eK().addEventProcessor(e)}function tK(e){let t=eK(),r=eX(),{userAgent:n}=I.navigator||{},i=function(e){let t=ew(),r={sid:e_(),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&&ex(r,e),r}({user:r.getUser()||t.getUser(),...n&&{userAgent:n},...e}),a=t.getSession();return a?.status==="ok"&&ex(a,{status:"exited"}),tJ(),t.setSession(i),i}function tJ(){let e,t=eK(),r=eX().getSession()||t.getSession();r&&(e={},"ok"===r.status&&(e={status:"exited"}),ex(r,e)),tZ(),t.setSession()}function tZ(){let e=eK(),t=eZ(),r=e.getSession();r&&t&&t.captureSession(r)}function tQ(e=!1){if(e)return void tJ();tZ()}let t0=[];function t1(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function t2(e,t,r){if(r[t.name]){j&&B.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,t0.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),t0.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}j&&B.log(`Integration installed: ${t.name}`)}function t3(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}let t5=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/];function t4(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:t5],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function t6(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return j&&B.error(`Cannot extract url for event ${ey(e)}`),null}}
1let t8=new WeakMap;function t9(e,t){let r=eL(e),n=eL(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],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 t7(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 re(e){return e.exception?.values?.[0]}function rt(e,t=[]){return[e,t]}function rr(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function rn(e){let t=D(I);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let ri={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function ra(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function ro(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:td(n)},...i&&{trace:i}}}function rs(e){B.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function rl(e,t){if(!t?.length||!e.description)return!1;for(let n of t){var r;if("string"==typeof(r=n)||r instanceof RegExp){if(e$(e.description,n))return j&&rs(e),!0;continue}if(!n.name&&!n.op)continue;let t=!n.name||e$(e.description,n.name),i=!n.op||e.op&&e$(e.op,n.op);if(t&&i)return j&&rs(e),!0}return!1}function ru(e,t){var r;let n=t??(r=e,rc().get(r))??[];if(0===n.length)return;let i=e.getOptions(),a=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=td(n)),rt(i,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(n,i._metadata,i.tunnel,e.getDsn());rc().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(a)}function rc(){return L("clientToLogBufferMap",()=>new WeakMap)}function rd(e,t){var r;let n=t??(r=e,rf().get(r))??[];if(0===n.length)return;let i=e.getOptions(),a=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=td(n)),rt(i,[[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]])}(n,i._metadata,i.tunnel,e.getDsn());rf().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(a)}function rf(){return L("clientToMetricBufferMap",()=>new WeakMap)}let rh=Symbol.for("SentryBufferFullError");function rp(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return e1(rh);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return e0(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>setTimeout(()=>t(!1),e))]):r}}}function rm(e,t,r=Date.now()){return(e[t]||e.all||0)>r}function r_(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},a=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,r,,,a]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=n+s):i[e]=n+s;else i.all=n+s}else o?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(o,n):429===t&&(i.all=n+6e4);return i}let rg="Not capturing exception because it's already been captured.",ry="Discarded session because of missing or non-string release",rv=Symbol.for("SentryInternalError"),rb=Symbol.for("SentryDoNotSendEventError");function rS(e){return{message:e,[rv]:!0}}function rE(e){return{message:e,[rb]:!0}}function rw(e){return!!e&&"object"==typeof e&&rv in e}function rT(e){return!!e&&"object"==typeof e&&rb in e}function rx(e,t,r,n,i){let a,o=0,s=!1;e.on(r,()=>{o=0,clearTimeout(a),s=!1}),e.on(t,t=>{(o+=n(t))>=8e5?i(e):s||(s=!0,a=setTimeout(()=>{i(e)},5e3))}),e.on("flush",()=>{i(e)})}class rR{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=rp(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=function(e){let t="string"==typeof e?tf(e):th(e);if(t&&function(e){if(!j)return!0;let{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(B.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==n&&"https"!==n?(B.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):!(t&&isNaN(parseInt(t,10)))||(B.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(B.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}(e.dsn):j&&B.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&&rx(this,"afterCaptureLog","flushLogs",rC,ru),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&rx(this,"afterCaptureMetric","flushMetrics",rM,rd)}captureException(e,t,r){let n=e_();if(eS(e))return j&&B.log(rg),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:e_(),...r}
1,a=Z(e)?e:String(e),o=Q(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,n)),o?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=e_();if(t?.originalException&&eS(t.originalException))return j&&B.log(rg),n;let i={event_id:n,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,l=rP(e.type);return this._process(()=>this._captureEvent(e,i,o||r,s),l),i.event_id}captureSession(e){this.sendSession(e),ex(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");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]}addIntegration(e){let t=this._integrations[e.name];t2(this,e,this._integrations),t||t1(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){let i=ra(r),a=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 o=ro(e,i,n,t);return delete e.sdkProcessingMetadata,rt(o,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=function(e,t){let[r,n]=e;return[r,[...n,t]]}(r,function(e){let t="string"==typeof e.data?rn(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=eQ}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){j&&B.warn(ry);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){j&&B.warn(ry);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=function(e,t,r,n){let i=ra(r);return rt({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:td(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}`;j&&B.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 j&&B.error("Error while sending envelope:",e),{}}return j&&B.error("Transport disabled"),{}}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t&&t2(e,t,r)}),r}(this,e),t1(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 a="ok"===e.status;(a&&0===e.errors||a&&r)&&(ex(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(),a=Object.keys(this._integrations);
1return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),tB(i,e,t,r,this,n).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:function(e){let{traceId:t,parentSpanId:r,propagationSpanId:n}=e.getPropagationContext(),i={trace_id:t,span_id:n||eP()};return r&&(i.parent_span_id=r),i}(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tF(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=eX(),n=eK()){return j&&rk(e)&&B.log(`Captured error event \`${t3(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{j&&(rT(e)?B.log(e.message):rw(e)?B.warn(e.message):B.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:a}=i,o=rO(e),s=rk(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===a?void 0:tv(a);if(s&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error"),e1(rE(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let d=rP(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),rE("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if(er(e))return e.then(e=>{if(!ee(e)&&null!==e)throw rS(r);return e},e=>{throw rS(`${t} rejected with ${e}`)});if(!ee(e)&&null!==e)throw rS(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t,l=r;if(rk(l)&&i)return i(l,n);if(rO(l)){if(o||s){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[tr],exclusive_time:o?.[tn],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&rl(t,s))return null;if(o){let e=o(t);if(e)l=eR(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&&{[tr]:e.profile_id},...e.exclusive_time&&{[tn]:e.exclusive_time}}}},measurements:e.measurements});else tL()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&rl(e,s)){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):(tL(),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(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,n)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw rE(`${u} returned \`null\`, will not send event.`)}let a=r.getSession()||n.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){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 o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(rT(e)||rw(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),rS(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
2Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===rh&&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;j&&B.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){j&&B.log("No outcomes to send");return}if(!this._dsn){j&&B.log("No dsn provided, will not send outcomes");return}j&&B.log("Sending outcomes:",t);let r=rt((e=this._options.tunnel&&td(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:eE(),discarded_events:t}]]);this.sendEnvelope(r)}}function rP(e){return"replay_event"===e?"replay":e||"error"}function rk(e){return void 0===e.type}function rO(e){return"transaction"===e.type}function rM(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+rI(e.attributes)}function rC(e){let t=0;return e.message&&(t+=2*e.message.length),t+rI(e.attributes)}function rI(e){if(!e)return 0;let t=0;
2return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*rA(e[0]):Q(e)?t+=rA(e):t+=100}),t}function rA(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function rN(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 rD(e,t){let r=rj(e,t),n={type:function(e){let t=e?.name;return!t&&rF(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 rF(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function rL(e,t){return{exception:{values:[rD(e,t)]}}}function rj(e,t){var r,n;let i=t.stacktrace||t.stack||"",a=(r=t)&&rU.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,a,o)}catch{}return[]}let rU=/Minified React error #\d+;/i;function rF(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function r$(e,t,r,n,i){let a;if(X(t)&&t.error)return rL(e,t.error);if(K(t)||V(t,"DOMException")){if("stack"in t)a=rL(e,t);else{let i=t.name||(K(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;ev(a=rH(e,o,r,n),o)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return G(t)?rL(e,t):(ee(t)||et(t)?eb(a=function(e,t,r,n){let i=eZ(),a=i?.getOptions().normalizeDepth,o=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),s={__serialized__:function e(t,r=3,n=102400){let i=tW(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}(t,a)};if(o)return{exception:{values:[rD(e,o)]},extra:s};let l={exception:{values:[{type:et(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=function(e){let t=Object.keys(eh(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),n=t?"promise rejection":"exception";if(X(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(et(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:s};if(r){let t=rj(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i),{synthetic:!0}):(ev(a=rH(e,t,r,n),`${t}`,void 0),eb(a,{synthetic:!0})),a)}function rH(e,t,r,n){let i={};if(n&&r){let n=rj(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),eb(i,{synthetic:!0})}if(Z(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 rY=0;function rW(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if(ef(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>rW(e,t));return e.apply(this,n)}catch(e){throw rY++,setTimeout(()=>{rY--}),eJ(n=>{n.addEventProcessor(e=>(t.mechanism&&(ev(e,void 0,void 0),eb(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),tq(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}ed(r,e),ec(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function rB(){let e=es(),{referrer:t}=I.document||{},{userAgent:r}=I.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class rz extends rR{constructor(e){var t;let r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:I.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});z(r,"browser",["browser"],I.SENTRY_SDK_SOURCE||"npm"),r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);let{sendDefaultPii:n,sendClientReports:i,enableLogs:a,_experiments:o,enableMetrics:s}=this._options,l=s??o?.enableMetrics??!0;I.document&&(i||a||l)&&I.document.addEventListener("visibilitychange",()=>{"hidden"===I.document.visibilityState&&(i&&this._flushOutcomes(),a&&ru(this),l&&rd(this))}),n&&this.on("beforeSendSession",rN)}eventFromException(e,t){return function(e,t,r,n){let i=r$(e,t,r?.syntheticException||void 0,n);return eb(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),e0(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let a=rH(e,t,n?.syntheticException||void 0,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),e0(a)}(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 rq={},rG={};function rV(e,t){rq[e]=rq[e]||[],rq[e].push(t)}function rX(e,t){if(!rG[e]){rG[e]=!0;try{t()}catch(t){j&&B.error(`Error while instrumenting ${e}`,t)}}}function rK(e,t){let r=e&&rq[e];if(r)for(let n of r)try{n(t)}catch(t){j&&B.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${eD(n)}
5Error:`,t)}}
5function rJ(){"console"in I&&U.forEach(function(e){e in I.console&&eu(I.console,e,function(t){return F[e]=t,function(...t){rK("console",{args:t,level:e});let r=F[e];r?.apply(I.console,t)}})})}function rZ(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function rQ(e,t){let r="fetch";rV(r,e),rX(r,()=>r0(void 0,t))}function r0(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in I))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(rZ(I.fetch))return!0;let e=!1,t=I.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=rZ(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){j&&B.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&eu(I,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:r5(t),method:r3(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:r5(t),method:r3(t,"method")?String(t.method).toUpperCase():"GET"}}(r),o={args:r,fetchData:{method:i,url:a},startTimestamp:1e3*ew(),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(ea(t))return new Headers(t.headers)}catch{}}(r)};return e||rK("fetch",{...o}),t.apply(I,r).then(async t=>(e?e(t):rK("fetch",{...o,endTimestamp:1e3*ew(),response:t}),t),e=>{if(rK("fetch",{...o,endTimestamp:1e3*ew(),error:e}),G(e)&&void 0===e.stack&&(e.stack=n.stack,ec(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function r1(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function r2(e){let t;try{t=e.clone()}catch{return}r1(t,()=>{rK("fetch-body-resolved",{endTimestamp:1e3*ew(),response:e})})}function r3(e,t){return!!e&&"object"==typeof e&&!!e[t]}function r5(e){return"string"==typeof e?e:e?r3(e,"url")?e.url:e.toString?e.toString():"":""}function r4(e,t){let r=eZ(),n=eK();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions();if(a<=0)return;let o={timestamp:eE(),...e},s=i?$(()=>i(o,t)):o;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,a))}function r6(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function r8(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function r9(e){return"isRelative"in e}function r7(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function ne(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function nt(e){return e.split(/[?#]/,1)[0]}function nr(e){rV("dom",e),rX("dom",nn)}function nn(){if(!I.document)return;let e=rK.bind(null,"dom"),t=ni(e,!0);I.document.addEventListener("click",t,!1),I.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=I[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(eu(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__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){let n=ni(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch{}return t.call(this,r,n,i)}}),eu(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 ni(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let i=function(e){try{return e.target}catch{return null}}(r);if(n=r.type,"keypress"===n&&(!i?.tagName||"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&!i.isContentEditable&&1))return;ec(r,"_sentryCaptured",!0),i&&!i._sentryId&&ec(i,"_sentryId",e_());let a="keypress"===r.type?"input":r.type;!function(e){if(e.type!==f)return!1;try{if(!e.target||e.target._sentryId!==h)return!1}catch{}return!0}(r)&&(e({event:r,name:a,global:t}),f=r.type,h=i?i._sentryId:void 0),clearTimeout(d),d=I.setTimeout(()=>{h=void 0,f=void 0},1e3)}}let na="__sentry_xhr_v3__";function no(e){rV("xhr",e),rX("xhr",ns)}function ns(){if(!I.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*ew(),a=J(r[0])?r[0].toUpperCase():void 0,o=function(e){if(J(e))return e;try{return e.toString()}catch{}}(r[1]);if(!a||!o)return e.apply(t,r);t[na]={method:a,url:o,request_headers:{}}
5,"POST"===a&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[na];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}rK("xhr",{endTimestamp:1e3*ew(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,a=t[na];return a&&J(n)&&J(i)&&(a.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[na];return n&&(void 0!==r[0]&&(n.body=r[0]),rK("xhr",{startTimestamp:1e3*ew(),xhr:t})),e.apply(t,r)}})}function nl(e){let t="history";rV(t,e),rX(t,nu)}function nu(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=p,i=function(e){try{return new URL(e,I.location.origin).toString()}catch{return e}}(String(r));if(p=i,n===i)return e.apply(this,t);rK("history",{from:n,to:i})}return e.apply(this,t)}}I.addEventListener("popstate",()=>{let e=I.location.href,t=p;p=e,t!==e&&rK("history",{from:t,to:e})}),"history"in I&&I.history&&(eu(I.history,"pushState",e),eu(I.history,"replaceState",e))}let nc="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nd=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];function nf(e){return function(...t){let r=t[0];return t[0]=rW(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${eD(e)}`}}),e.apply(this,t)}}function nh(e){return function(t){return e.apply(this,[rW(t,{mechanism:{data:{handler:eD(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function np(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&eu(r,e,function(t){let r={mechanism:{data:{handler:eD(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=ef(t);return n&&(r.mechanism.data.handler=eD(n)),rW(t,r)})}),e.apply(this,t)}}let nm=null;function n_(e){let t="error";rV(t,e),rX(t,ng)}function ng(){nm=I.onerror,I.onerror=function(e,t,r,n,i){return rK("error",{column:n,error:i,line:r,msg:e,url:t}),!!nm&&nm.apply(this,arguments)},I.onerror.__SENTRY_INSTRUMENTED__=!0}let ny=null;function nv(e){let t="unhandledrejection";rV(t,e),rX(t,nb)}function nb(){ny=I.onunhandledrejection,I.onunhandledrejection=function(e){return rK("unhandledrejection",e),!ny||ny.apply(this,arguments)},I.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function nS(e){nc&&B.log(`Global Handler attached: ${e}`)}function nE(){let e=eZ();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function nw(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function nT(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function nx(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let nR=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nP=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nk=/\((\S*)(?::(\d+))(?::(\d+))\)/,nO=/at (.+?) ?\(data:(.+?),/,nM=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nC=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nI=eI([30,e=>{let t=e.match(nO);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=nR.exec(e);if(r){let[,e,t,n]=r;return nx(e,"?",+t,+n)}let n=nP.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=nk.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=nA(n[1]||"?",n[2]);return nx(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{let t=nM.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=nC.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]||"?";return[r,e]=nA(r,e),nx(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),nA=(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]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},nN="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nD={};function nL(e){let t=nD[e];if(t)return t;let r=I[e];if(rZ(r))return nD[e]=r.bind(I);let n=I.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){nN&&B.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?nD[e]=r.bind(I):r}function nj(...e){return nL("setTimeout")(...e)}
5function nU(e,t=nL("fetch")){let r=0,n=0;async function i(i){let a=i.body.length;r+=a,n++;let o={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,o);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 nD.fetch=void 0,e}finally{r-=a,n--}}return function(e,t,r=rp(e.bufferSize||64)){let n={};return{send:function(i){let a=[];if(rr(i,(t,r)=>{let i=ri[r];rm(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return Promise.resolve({});let o=rt(i[0],a),s=t=>{rr(o,(r,n)=>{e.recordDroppedEvent(t,ri[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:[rn(n),e]:n.push("string"==typeof e?rn(e):e)}for(let e of r){let[t,r]=e;if(i(`
6${JSON.stringify(t)}
7`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify(tW(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)}(o)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&j&&B.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=r_(n,e),e),e=>{throw s("network_error"),j&&B.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===rh)return j&&B.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i,rp(e.bufferSize||40))}function nF(e){let t;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=t4(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=t4(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&&eH(r,t)}(e,t.ignoreTransactions))return j&&B.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
8Event: ${ey(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&t3(r).some(e=>eH(e,n)))return j&&B.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
9Event: ${ey(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 j&&B.warn(`Event dropped due to not having an error message, error type or stacktrace.
10Event: ${ey(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=t6(e);return!!r&&eH(r,t)}(e,t.denyUrls))return j&&B.warn(`Event dropped due to being matched by \`denyUrls\` option.
11Event: ${ey(e)}.
12Url: ${t6(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=t6(e);return!r||eH(r,t)}(e,t.allowUrls))return j&&B.warn(`Event dropped due to not being matched by \`allowUrls\` option.
13Event: ${ey(e)}.
14Url: ${t6(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){c=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ef(this),r=t8.has(eZ())&&void 0!==t?t:this;return c.apply(r,e)}}catch{}},setup(e){t8.set(e,!0)}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&eu(I,"setTimeout",nf),t.setInterval&&eu(I,"setInterval",nf),t.requestAnimationFrame&&eu(I,"requestAnimationFrame",nh),t.XMLHttpRequest&&"XMLHttpRequest"in I&&eu(XMLHttpRequest.prototype,"send",np);let e=t.eventTarget;e&&(Array.isArray(e)?e:nd).forEach(e=>(function(e,t){let r=I[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(eu(r,"addEventListener",function(r){return function(n,i,a){var o,s,l,u;try{o=i,"function"==typeof o.handleEvent&&(i.handleEvent=rW(i.handleEvent,{mechanism:{data:{handler:eD(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(s=this,l=n,u=i,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),r.apply(this,[n,rW(i,{mechanism:{data:{handler:eD(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),eu(r,"removeEventListener",function(e){return function(t,r,n){try{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,a,o,s,l;t.console&&function(e){let t="console";rV(t,e),rX(t,rJ)}((r=e,function(e){if(eZ()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:r6(e.level),message:eF(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${eF(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);r4(t,{input:e.args,level:e.level})})),t.dom&&nr((n=e,i=t.dom,function(e){let t,r;if(eZ()!==n)return;let a="object"==typeof i?i.serializeAttribute:void 0,o="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;o&&o>1024&&(nc&&B.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof a&&(a=[a]
14);try{var s;let n=e.event,i=(s=n)&&s.target?n.target:n;t=eo(i,{keyAttrs:a,maxStringLength:o}),r=el(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),r4(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&no((a=e,function(e){if(eZ()!==a)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[na];if(!t||!r||!n)return;let{method:i,url:o,status_code:s,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:i,url:o,status_code:s},type:"http",level:r8(s)};a.emit("beforeOutgoingRequestBreadcrumb",c,u),r4(c,u)})),t.fetch&&rQ((o=e,function(e){if(eZ()!==o)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:n,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",a,i),r4(a,i)}else{let n=e.response,i={...e.fetchData,status_code:n?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,n?.status;let a={input:e.args,response:n,startTimestamp:t,endTimestamp:r},s={category:"fetch",data:i,type:"http",level:r8(i.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,a),r4(s,a)}})),t.history&&nl((s=e,function(e){if(eZ()!==s)return;let t=e.from,r=e.to,n=ne(I.location.href),i=t?ne(t):void 0,a=ne(r);i?.path||(i=n),n.protocol===a.protocol&&n.host===a.host&&(r=a.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),r4({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){eZ()===l&&r4({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:ey(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,n_(e=>{let{stackParser:t,attachStacktrace:n}=nE();if(eZ()!==r||rY>0)return;let{msg:i,url:a,line:o,column:s,error:l}=e,u=function(e,t,r,n){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],u=function(e){if(J(e)&&0!==e.length){if(e.startsWith("data:")){let t=e.match(/^data:([^;]+)/),r=t?t[1]:"text/javascript",n=e.includes("base64,");return`<data:${r}${n?",base64":""}>`}return e}}(t)??es();return 0===l.length&&l.push({colno:n,filename:u,function:"?",in_app:!0,lineno:r}),e}(r$(t,l||i,void 0,n,!1),a,o,s);u.level="error",tG(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),nS("onerror")),t.onunhandledrejection&&(n=e,nv(e=>{var t;let{stackParser:r,attachStacktrace:i}=nE();if(eZ()!==n||rY>0)return;let a=function(e){if(Q(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),o=Q(a)?(t=a,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):r$(r,a,void 0,i,!0);o.level="error",tG(o,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),nS("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,a){if(!i.exception?.values||!a||!en(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=function e(t,r,n,i,a,o,s,l){if(o.length>=n+1)return o;let u=[...o];if(en(i[a],Error)){nw(s,l);let o=t(r,i[a]),c=u.length;nT(o,a,c,l),u=e(t,r,n,i[a],a,[o,...u],o,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,o)=>{if(en(i,Error)){nw(s,l);let c=t(r,i),d=u.length;nT(c,`errors[${o}]`,d,l),u=e(t,r,n,i,a,[c,...u],c,d)}}),u}(e,t,n,a.originalException,r,i.exception.values,o,0))}(rD,i.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var r,n;if(r=e,(n=t)&&(function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!t7(e,t)&&!!t9(e,t)&&!0}(r,n)||function(e,t){let r=re(t),n=re(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!t7(e,t)&&!!t9(e,t)}(r,n)))return j&&B.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}},{name:"HttpContext",preprocessEvent(e){if(!I.navigator&&!I.location&&!I.document)return;let t=rB(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}},{name:"BrowserSession",setupOnce(){if(void 0===I.document){nc&&B.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}tK({ignoreDuration:!0}),tQ(),nl(({from:e,to:t})=>{void 0!==e&&e!==t&&(tK({ignoreDuration:!0}),tQ())})}}]}var n$=r(5729),nH=r(9143);class nY{constructor(e={}){this._traceId=e.traceId||e_(),this._spanId=e.spanId||eP()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
14addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function nW(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[e7],i=r[te];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}class nB{constructor(e={}){this._traceId=e.traceId||e_(),this._spanId=e.spanId||eP(),this._startTime=e.startTimestamp||ew(),this._links=e.links,this._attributes={},this.setAttributes({[e8]:"manual",[e6]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:+!!r}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=tx(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(e3,"custom"),this}end(e){this._endTime||(this._endTime=tx(e),function(e){if(!j)return;let{description:t="< unknown name >",op:r="< unknown op >"}=tP(e),{spanId:n}=e.spanContext(),i=tN(e)===e,a=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;B.log(a)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[e6],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:tO(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[e8],profile_id:this._attributes[tr],exclusive_time:this._attributes[tn],measurements:nW(this._events),is_segment:this._isStandaloneSpan&&tN(this)===this||void 0,segment_id:this._isStandaloneSpan?tN(this).spanContext().spanId:void 0,links:tT(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){j&&B.log("[Tracing] Adding an event to span:",e);let n=nz(t)?t:r||ew(),i=nz(t)?{}:t||{},a={name:e,time:tx(n),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=eZ();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===tN(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=eZ();if(!t)return;let r=e[1];if(!r||0===r.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){let r=t$(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:td(n)}},{beforeSendSpan:o,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>!rl(tP(e),s)):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=o?e=>{let t=tP(e),r=o(t);return r||(tL(),t)}:tP,d=[];for(let e of l){let t=c(e);t&&d.push([{type:"span"},t])}return rt(a,d)}([this],e)):(j&&B.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&(ty(this).scope||eX()).captureEvent(t)}_convertSpanToTransaction(){if(!nq(tP(this)))return;this._name||(j&&B.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=ty(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=tA(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof nB&&t.isStandaloneSpan())}).map(e=>tP(e)).filter(nq),i=this._attributes[e3];delete this._attributes[tt],n.forEach(e=>{delete e.data[tt]});let a={contexts:{trace:function(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:o,origin:s,links:l}=tP(e);return{parent_span_id:a,span_id:t,trace_id:r,data:n,op:i,status:o,origin:s,links:l}}(this)},spans:n.length>1e3?n.sort((e,t)=>
14e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:t$(this)},request:r,...i&&{transaction_info:{source:i}}},o=nW(this._events);return o&&Object.keys(o).length&&(j&&B.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function nz(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function nq(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let nG="__SENTRY_SUPPRESS_TRACING__";function nV(e){let t=eV(N());if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=nJ(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>eJ(e.scope,t):void 0!==i?e=>nX(i,e):e=>e())(()=>{let t=eX(),a=nQ(t,i);return e.onlyIfParent&&!a?new nY:nK({parentSpan:a,spanArguments:r,forceTransaction:n,scope:t})})}function nX(e,t){let r=eV(N());return r.withActiveSpan?r.withActiveSpan(e,t):eJ(r=>(eO(r,e||void 0),t(r)))}function nK({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){var i;let a;if(!tp()){let n=new nY;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...t$(n)};ec(n,tj,e)}return n}let o=eK();if(e&&!r)a=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[nG]&&tk(e),o=a?new nB({...r,parentSpanId:n,traceId:i,sampled:a}):new nY({traceId:i});tI(e,o);let s=eZ();return s&&(s.emit("spanStart",o),r.endTimestamp&&s.emit("spanEnd",o)),o}(e,n,t),tI(e,a);else if(e){let r=t$(e),{traceId:i,spanId:o}=e.spanContext(),s=tk(e);ec(a=nZ({traceId:i,parentSpanId:o,...t},n,s),tj,r)}else{let{traceId:e,dsc:r,parentSpanId:i,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};a=nZ({traceId:e,parentSpanId:i,...t},n,s),r&&ec(a,tj,r)}return!function(e){if(!j)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=tP(e),{spanId:i}=e.spanContext(),a=tk(e),o=tN(e),s=o===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&u.push(`parent ID: ${n}`),!s){let{op:e,description:t}=tP(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}B.log(`${l}
15  ${u.join("\n  ")}`)}(a),(i=a)&&(ec(i,tg,function(e){try{let t=I.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(o)),ec(i,t_,n)),a}function nJ(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=tx(e.startTime),delete r.startTime,r}return t}function nZ(e,t,r){let n=eZ(),i=n?.getOptions()||{},{name:a=""}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:r};n?.emit("beforeSampling",o,{decision:!1});let s=o.parentSampled??r,l=o.spanAttributes,u=t.getPropagationContext(),[c,d,f]=t.getScopeData().sdkProcessingMetadata[nG]?[!1]:function(e,t,r){let n,i;if(!tp(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let a=tv(n);if(void 0===a)return j&&B.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!a)return j&&B.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let o=r<a;return!o&&j&&B.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[o,a,i]}(i,{name:a,parentSampled:s,attributes:l,parentSampleRate:tv(u.dsc?.sample_rate)},u.sampleRand),h=new nB({...e,attributes:{[e3]:"custom",[e5]:void 0!==d&&f?d:void 0,...l},sampled:c});return!c&&n&&(j&&B.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",h),h}function nQ(e,t){if(t)return t;if(null===t)return;let r=e[ek];if(!r)return;let n=eZ();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?tN(r):r}let n0={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function n1(e,t={}){let r,n=new Map,i=!1,a="externalFinish",o=!t.disableAutoFinish,s=[],{idleTimeout:l=n0.idleTimeout,finalTimeout:u=n0.finalTimeout,childSpanTimeout:c=n0.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,h=eZ();if(!h||!tp()){let e=new nY,t={sample_rate:"0",sampled:"false",...t$(e)};return ec(e,tj,t),e}let p=eX(),m=tD(),_=function(e){let t=nV(e);
15return eO(eX(),t),j&&B.log("[Tracing] Started span is an idle span"),t}(e);function g(){r&&(clearTimeout(r),r=void 0)}function y(e){g(),r=setTimeout(()=>{!i&&0===n.size&&o&&(a="idleTimeout",_.end(e))},l)}function v(e){r=setTimeout(()=>{!i&&o&&(a="heartbeatFailed",_.end(e))},c)}function b(e){i=!0,n.clear(),s.forEach(e=>e()),eO(p,m);let t=tP(_),{start_timestamp:r}=t;if(!r)return;t.data[e9]||_.setAttribute(e9,a);let o=t.status;o&&"unknown"!==o||_.setStatus({code:1}),B.log(`[Tracing] Idle span "${t.op}" finished`);let c=tA(_).filter(e=>e!==_),d=0;c.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),j&&B.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=tP(t),i=n<=e,a=r-n<=(u+l)/1e3;if(j){let e=JSON.stringify(t,void 0,2);i?a||B.log("[Tracing] Discarding span since it finished after idle span final timeout",e):B.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&(_[tM]&&_[tM].delete(t),d++)}),d>0&&_.setAttribute("sentry.idle_span_discarded_spans",d)}return _.end=new Proxy(_.end,{apply(e,t,r){if(d&&d(_),t instanceof nY)return;let[n,...i]=r,a=tx(n||ew()),o=tA(_).filter(e=>e!==_),s=tP(_);if(!o.length||!f)return b(a),Reflect.apply(e,t,[a,...i]);let l=h.getOptions().ignoreSpans,c=o?.reduce((e,t)=>{let r=tP(t);return!r.timestamp||l&&rl(r,l)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),p=s.start_timestamp,m=Math.min(p?p+u/1e3:1/0,Math.max(p||-1/0,Math.min(a,c||1/0)));return b(m),Reflect.apply(e,t,[m,...i])}}),s.push(h.on("spanStart",e=>{var t;!(i||e===_||tP(e).timestamp||e instanceof nB&&e.isStandaloneSpan())&&tA(_).includes(e)&&(t=e.spanContext().spanId,g(),n.set(t,!0),v(ew()+c/1e3))})),s.push(h.on("spanEnd",e=>{if(!i){var t;t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&y(ew()+l/1e3)}})),s.push(h.on("idleSpanEnableAutoFinish",e=>{e===_&&(o=!0,y(),n.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(_.setStatus({code:2,message:"deadline_exceeded"}),a="finalTimeout",_.end())},u),_}let n2=!1,n3=(e,t,r,n)=>{let i,a;return o=>{t.value>=0&&(o||n)&&((a=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t))}},n5=(e=!0)=>{let t=I.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},n4=()=>{let e=n5();return e?.activationStart??0};function n6(e,t,r){I.document&&I.addEventListener(e,t,r)}function n8(e,t,r){I.document&&I.removeEventListener(e,t,r)}let n9=-1,n7=new Set,ie=e=>{if(("pagehide"===e.type||I.document?.visibilityState==="hidden")&&n9>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of n7)e();isFinite(n9)||(n9="visibilitychange"===e.type?e.timeStamp:0,n8("prerenderingchange",ie,!0))}},it=()=>{if(I.document&&n9<0){let e=n4();n9=(I.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(I.document?.visibilityState!=="hidden"||I.document?.prerendering?1/0:0),n6("visibilitychange",ie,!0),n6("pagehide",ie,!0),n6("prerenderingchange",ie,!0)}return{get firstHiddenTime(){return n9},onHidden(e){n7.add(e)}}},ir=(e,t=-1)=>{let r=n5(),n="navigate";return r&&(I.document?.prerendering||n4()>0?n="prerender":I.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},ii=new WeakMap;function ia(e,t){return ii.get(e)||ii.set(e,new t),ii.get(e)}class io{constructor(){io.prototype.__init.call(this),io.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let is=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},il=e=>{let t=!1;return()=>{t||(e(),t=!0)}},iu=e=>{I.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},ic=[1800,3e3],id=[.1,.25],ih=0,ip=1/0,im=0,i_=e=>
15{e.forEach(e=>{e.interactionId&&(ip=Math.min(ip,e.interactionId),ih=(im=Math.max(im,e.interactionId))?(im-ip)/7+1:0)})},ig=()=>m?ih:performance.interactionCount||0,iy=0;class iv{constructor(){iv.prototype.__init.call(this),iv.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){iy=ig(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((ig()-iy)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let ib=e=>{let t=t=>{("pagehide"===t.type||I.document?.visibilityState==="hidden")&&e(t)};n6("visibilitychange",t,!0),n6("pagehide",t,!0)},iS=e=>{let t=I.requestIdleCallback||I.setTimeout;I.document?.visibilityState==="hidden"?e():(n6("visibilitychange",e=il(e),{once:!0,capture:!0}),t(()=>{e(),n8("visibilitychange",e,{capture:!0})}),ib(e))},iE=[200,500];class iw{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let iT=[2500,4e3],ix=[800,1800],iR=e=>{I.document?.prerendering?iu(()=>iR(e)):I.document?.readyState!=="complete"?addEventListener("load",()=>iR(e),!0):setTimeout(e)},iP={},ik={};function iO(e,t=!1){return iU("cls",e,iN,_,t)}function iM(e,t=!1){return iU("lcp",e,iD,g,t)}function iC(e){return iU("inp",e,ij,v)}function iI(e,t){return iF(e,t),ik[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),is(e,t=>{iA(e,{entries:t})},t)}(e),ik[e]=!0),i$(e,t)}function iA(e,t){let r=iP[e];if(r?.length)for(let n of r)try{n(t)}catch(t){nN&&B.error(`Error while triggering instrumentation handler.
16Type: ${e}
17Name: ${eD(n)}
18Error:`,t)}}function iN(){return((e,t={})=>{((e,t={})=>{iu(()=>{let r,n=it(),i=ir("FCP"),a=is("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-n4(),0),i.entries.push(t),r(!0)))});a&&(r=n3(e,i,ic,t.reportAllChanges))})})(il(()=>{let r,n=ir("CLS",0),i=it(),a=ia(t,io),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=is("layout-shift",o);s&&(r=n3(e,n,id,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),I?.setTimeout?.(r))}))})(e=>{iA("cls",{metric:e}),_=e},{reportAllChanges:!0})}function iD(){return((e,t={})=>{iu(()=>{let r,n=it(),i=ir("LCP"),a=ia(t,iw),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))a._processEntry(o),o.startTime<n.firstHiddenTime&&(i.value=Math.max(o.startTime-n4(),0),i.entries=[o],r())},s=is("largest-contentful-paint",o);if(s){r=n3(e,i,iT,t.reportAllChanges);let n=il(()=>{o(s.takeRecords()),s.disconnect(),r(!0)}),a=e=>{e.isTrusted&&(iS(n),n8(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])n6(e,a,{capture:!0})}})})(e=>{iA("lcp",{metric:e}),g=e},{reportAllChanges:!0})}function iL(){return((e,t={})=>{let r=ir("TTFB"),n=n3(e,r,ix,t.reportAllChanges);iR(()=>{let e=n5();e&&(r.value=Math.max(e.responseStart-n4(),0),r.entries=[e],n(!0))})})(e=>{iA("ttfb",{metric:e}),y=e})}function ij(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=it();iu(()=>{let n;"interactionCount"in performance||m||(m=is("event",i_,{type:"event",buffered:!0,durationThreshold:0}));let i=ir("INP"),a=ia(t,iv),o=e=>{iS(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,n())})},s=is("event",o,{durationThreshold:t.durationThreshold??40});n=n3(e,i,iE,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{o(s.takeRecords()),n(!0)}))})})(e=>{iA("inp",{metric:e}),v=e})}function iU(e,t,r,n,i=!1){let a;return iF(e,t),ik[e]||(a=r(),ik[e]=!0),n&&t({metric:n}),i$(e,t,i?a:void 0)}function iF(e,t){iP[e]=iP[e]||[],iP[e].push(t)}function i$(e,t,r){return()=>{r&&r();let n=iP[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function iH(e){return"number"==typeof e&&isFinite(e)}function iY(e,t,r,{...n}){let i=tP(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),nX(e,()=>{let e=nV({startTime:t,...n});return e&&e.end(r),e})}function iW(e){let t,r=eZ();if(!r)return;let{name:n,transaction:i,attributes:a,startTime:o}=e,{release:s,environment:l,sendDefaultPii:u}=r.getOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),f=eX(),h=f.getUser(),p=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=f.getScopeData().contexts.profile.profile_id}catch{}return nV({name:n,attributes:{release:s,environment:l,user:p||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":I.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...a},startTime:o,experimental:{standalone:!0}})}function iB(){return I.addEventListener&&I.performance}function iz(e){return e/1e3}function iq(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function iG(e,t){let r,n=!1;function i(e){!n&&r&&t(e,r),n=!0}ib(()=>{i("pagehide")});let a=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),a(),o())}),o=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,o()})}function iV(e){return e?((eT()||performance.timeOrigin)+e)/1e3:e}function iX(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
18return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return eT()||iB()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":iV(e.redirectStart),"http.request.redirect_end":iV(e.redirectEnd),"http.request.worker_start":iV(e.workerStart),"http.request.fetch_start":iV(e.fetchStart),"http.request.domain_lookup_start":iV(e.domainLookupStart),"http.request.domain_lookup_end":iV(e.domainLookupEnd),"http.request.connect_start":iV(e.connectStart),"http.request.secure_connection_start":iV(e.secureConnectionStart),"http.request.connection_end":iV(e.connectEnd),"http.request.request_start":iV(e.requestStart),"http.request.response_start":iV(e.responseStart),"http.request.response_end":iV(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let iK=0,iJ={};function iZ(e,t,r,n,i=r){var a;let o=t["secureConnection"===(a=r)?"connectEnd":"fetch"===a?"domainLookupStart":`${a}End`],s=t[`${r}Start`];s&&o&&iY(e,n+iz(s),n+iz(o),{op:`browser.${i}`,name:t.name,attributes:{[e8]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}var iQ=r(9143);function i0(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==iQ?iQ:0))||function(){let e=I.process;return e?.type==="renderer"}())}let i1=[],i2=new Map,i3=new Map,i5={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},i4=({metric:e})=>{if(void 0==e.value)return;let t=iz(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&i5[t.name]);if(!r)return;let{interactionId:n}=r,i=i5[r.name],a=iz(eT()+r.startTime),o=tD(),s=o?tN(o):void 0,l=null!=n?i2.get(n):void 0,u=l?.span||s,c=u?tP(u).description:eX().getScopeData().transactionName,d=iW({name:l?.elementName||eo(r.target),transaction:c,attributes:{[e8]:"auto.http.browser.inp",[e6]:`ui.interaction.${i}`,[tn]:r.duration},startTime:a});d&&(d.addEvent("inp",{[e7]:"millisecond",[te]:e.value}),d.end(a+t))},i6=({entries:e})=>{let t=tD(),r=t?tN(t):void 0,n=r?tP(r).description:eX().getScopeData().transactionName;e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,i=e.loadTime,[a,o]=i?[iz(i),"load-time"]:r?[iz(r),"render-time"]:[ew(),"entry-emission"],s="image-paint"===t?iz(Math.max(0,(r??0)-(i??0))):0,l={[e8]:"auto.ui.browser.elementtiming",[e6]:"ui.elementtiming",[e3]:"component","sentry.span_start_time_source":o,"sentry.transaction_name":n,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let r=eV(N());if(r.startSpan)return r.startSpan(e,t);let n=nJ(e),{forceTransaction:i,parentSpan:a,scope:o}=e;eJ(o?.clone(),()=>{var r;return(void 0!==(r=a)?e=>nX(r,e):e=>e())(()=>{let r=eX(),o=nQ(r,a),s=e.onlyIfParent&&!o?new nY:nK({parentSpan:o,spanArguments:n,forceTransaction:i,scope:r});return eO(r,s),function(e,t,r=()=>{},n=()=>{}){var i,a,o,s;let l;try{l=e()}catch(e){throw t(e),r(),e}return i=l,a=t,o=r,s=n,er(i)?i.then(e=>(o(),s(e),e),e=>{throw a(e),o(),e}):(o(),s(i),i)}(()=>t(s),()=>{let{status:e}=tP(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:2,message:"internal_error"})},()=>{s.end()})})})}({name:`element[${e.identifier}]`,attributes:l,startTime:a,onlyIfParent:!0},e=>{e.end(a+s)})})},i8="sentry_previous_trace";function i9(e){return 1===e.traceFlags}function i7(e={}){let t=e.client||eZ();if(!function(){let e=eZ();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}
18()||!t)return{};let r=eV(N());if(r.getTraceData)return r.getTraceData(e);let n=e.scope||eX(),i=e.span||tD(),a=i?function(e){let{traceId:t,spanId:r}=e.spanContext();return tS(t,r,tk(e))}(i):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return tS(t,n,r)}(n),o=function(e){if(e){var t=Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${ti}${t}`]=r),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,r],n)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===n?i:`${e},${i}`;return a.length>8192?(j&&B.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},""):void 0}}(i?t$(i):tF(t,n));if(!tb.test(a))return B.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let s={"sentry-trace":a,baggage:o};if(e.propagateTraceparent){let e=i?function(e){let{traceId:t,spanId:r}=e.spanContext();return tE(t,r,tk(e))}(i):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return tE(t,n,r)}(n);e&&(s.traceparent=e)}return s}function ae(e){return e.split(",").some(e=>e.trim().startsWith(ti))}function at(e){return new URLSearchParams(e).toString()}function ar(e,t=B){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[at(e)];if(!e)return[void 0]}catch(r){return nN&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return nN&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function an(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function ai(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return nN&&B.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function aa(e){try{return new URL(e,I.location.origin).href}catch{return}}function ao(e){try{return new Headers(e)}catch{return}}let as=new WeakMap,al=new Map,au={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ac(e){let{url:t}=tP(e).data;if(!t||"string"!=typeof t)return;let r=iI("resource",({entries:n})=>{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&(e.setAttributes(iX(n)),setTimeout(r))})})}let ad={...n0,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...au};function af(e,t,r){e.emit("startPageLoadSpan",t,r),eX().setTransactionName(t.name);let n=e[am];return n&&e.emit("afterStartPageLoadSpan",n),n}function ah(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let a=eX();return a.setTransactionName(t.name),n&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...rB(),url:n}}),e[am]}function ap(e){let t=I.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}let am="_sentry_idleSpan",a_="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ag=null,ay=new Map,av=new Map;function ab(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function aS(e){if(ay.has(e))return ay.get(e)??null;try{let t=new RegExp(e);return ay.set(e,t),t}catch(t){return a_&&B.warn("Could not compile regex",{regexString:e,error:t}),null}}function aE(){if(!I?._sentryRouteManifest||"string"!=typeof I._sentryRouteManifest)return null;let e=I._sentryRouteManifest;if(ag&&k===e)return ag;ay.clear(),av.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return ag=t,k=e,t}catch{return a_&&B.warn("Could not extract route manifest"),null}}let aw=e=>{let t=aE();if(!t)return;if(av.has(e))return av.get(e);let{staticRoutes:r,dynamicRoutes:n}=t;if(!Array.isArray(r)||!Array.isArray(n))return;let i=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=aS(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=aS(t.regex);i?.test(r)&&n.push(t.path)}}return n})(e,r,n).sort((e,t)=>
18ab(e)-ab(t))[0];return av.set(e,i),i};var aT=r(9143);let ax="incomplete-app-router-transaction",aR="router-patch",aP={current:void 0};function ak(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let aO=new WeakSet;function aM(e,t,r){aO.has(t)||(aO.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,a){if("router-patch"!==aR)return t.apply(i,a);let o=ax,s={[e6]:"navigation",[e8]:"auto.navigation.nextjs.app_router_instrumentation",[e3]:"url"},l=a[0],u=aT.env._sentryBasePath??I._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(o=ak(c),s["navigation.type"]="router.push"):"replace"===n?(o=ak(c),s["navigation.type"]="router.replace"):"back"===n?s["navigation.type"]="router.back":"forward"===n&&(s["navigation.type"]="router.forward");let d=aw(o);return r.current=ah(e,{name:d??o,attributes:{...s,[e3]:d?"route":"url"}}),t.apply(i,a)}}))}))}var aC=r(1278);let aI=aC.events?aC:aC.default,aA=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function aN(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function aD(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}class aL{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}let aj=new aL(100);var aU=r(9143),aF=r(9143);let a$=!1;function aH(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let aY="sentryReplaySession",aW="Unable to send Replay";var aB=Object.defineProperty,az=(e,t,r)=>((e,t,r)=>t in e?aB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),aq=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(aq||{});function aG(e){let t=e?.host;return t?.shadowRoot===e}function aV(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function aX(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,aK).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function aK(e){let t;if("styleSheet"in e)try{t=aX(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],a=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class aJ{constructor(){az(this,"idNodeMap",new Map),az(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
18this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function aZ({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function aQ({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function a0(e){return e.toLowerCase()}function a1(e){return e.toUpperCase()}let a2="__rrweb_original__";function a3(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?a0(t):null}function a5(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function a4(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let a6={};function a8(e){let t=a6[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return a6[e]=n.bind(window)}function a9(...e){return a8("setTimeout")(...e)}function a7(...e){return a8("clearTimeout")(...e)}function oe(e){try{return e.contentDocument}catch(e){}}let ot=1,or=RegExp("[^a-z0-9-_:]");function on(){return ot++}let oi=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oa=/^(?:[a-z+]+:)?\/\//i,oo=/^www\..*/i,os=/^(data:)([^,]*),(.*)/i;function ol(e,t){return(e||"").replace(oi,(e,r,n,i,a,o)=>{let s=n||a||o,l=r||i||"";if(!s)return e;if(oa.test(s)||oo.test(s)||os.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=t.split("/"),c=s.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let ou=/^[^ \t\n\r\u000c]+/,oc=/^[, \t\n\r\u000c]+/,od=new WeakMap;function of(e,t){return t&&""!==t.trim()?oh(e,t):t}function oh(e,t){let r=od.get(e);if(r||(r=e.createElement("a"),od.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function op(e,t,r,n,i,a,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return of(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return of(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(oc),!(r>=t.length);){let a=n(ou);if(","===a.slice(-1))a=of(e,a.substring(0,a.length-1)),i.push(a);else{let n="";a=of(e,a);let o=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((a+n).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,i.push((a+n).trim());break}else"("===e&&(o=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=ol(n,oh(e));return o&&o.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,o)),t}else if("object"===t&&"data"===r)return of(e,n);return"function"==typeof a?a(r,n,i):n}function om(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function o_(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:o_(e.parentNode,t,r,n+1)}function og(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function oy(e,t,r,n,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(a){if((l=o_(o,og(n,i)))<0)return!0;s=o_(o,og(t,r),l>=0?l:1/0)}else{if((s=o_(o,og(t,r)))<0)return!1;l=o_(o,og(n,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!a}catch(e){}return!!a}function ov(e){return null==e?"":e.toLowerCase()}function ob(e,t){let r,{doc:n,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:h=!1,inl
18ineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:_,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:S=!1,recordCanvas:T=!1,onSerialize:x,onIframeLoad:R,iframeLoadTimeout:P=5e3,onBlockedImageLoad:k,onStylesheetLoad:O,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:I=!1,ignoreCSSAttributes:A}=t,{preserveWhiteSpace:N=!0}=t,D=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:_,dataURLOptions:g={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1,ignoreCSSAttributes:T}=t,x=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:aq.Document,childNodes:[],compatMode:e.compatMode};return{type:aq.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:aq.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:f,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:_,maskTextClass:g,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b,ignoreCSSAttributes:S}=t,T=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,a,o),x=function(e){if(e instanceof HTMLFormElement)return"form";let t=a0(e.tagName);return or.test(t)?"div":t}(e),R={},P=e.attributes.length;for(let t=0;t<P;t++){let r=e.attributes[t];r.name&&!om(x,r.name,r.value)&&(R[r.name]=op(n,x,a0(r.name),r.value,e,u,S))}if("link"===x&&s){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=aX(t)),r&&(R.rel=null,R.href=null,R.crossorigin=null,R._cssText=ol(r,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=aX(e.sheet);t&&(R._cssText=ol(t,oh(n)))}if("input"===x||"textarea"===x||"select"===x||"option"===x){let t=a3(e),r=a5(e,a1(x),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=oy(e,g,v,y,b,aZ({type:t,tagName:a1(x),maskInputOptions:l}));R.value=aQ({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(R.checked=n)}if("option"===x&&(e.selected&&!l.select?R.selected=!0:delete R.selected),"canvas"===x&&h){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;if(new Uint32Array((a2 in i?i[a2]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(R.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(R.rr_dataURL=t)}}if("img"===x&&f){E||(w=(E=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{E.width=e.naturalWidth,E.height=e.naturalHeight,w.drawImage(e,0,0),R.rr_dataURL=E.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?R.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===x||"video"===x)&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),T){let{width:t,height:r}=e.getBoundingClientRect();R={class:R.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==x||p(R.src)||(T||oe(e)||(R.rr_src=R.src),delete R.src);try{customElements.get(x)&&(r=!0)}catch(e){}return{type:aq.Element,tagName:x,attributes:R,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:T,rootId:_,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:p,maskInputFn:_,dataURLOptions:g,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:x,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:T});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,h="STYLE"===d||void 0,p="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=aX(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=ol(f,oh(t.doc))}p&&(f="SCRIPT_PLACEHOLDER");let _=oy(e,n,a,i,o,r);return h||p||m||!f||!_||(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(l.textarea||_)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),"OPTION"===d&&f&&(f=aQ({isMasked:oy(e,n,a,i,o,aZ({type:null,tagName:d,maskInputOptions:l})),element:e,value:f,maskInputFn:u})),{type:aq.Text,textContent:f||"",isStyle:h,rootId:c}}(e,{doc:r,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:p,maskInputFn:_,rootId:x});case e.CDATA_SECTION_NODE:return{type:aq.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:aq.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}(e,{doc:n,mirror:i,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:S,recordCanvas:T,keepIframeSrcFn:C,newlyAddedElement:I,ignoreCSSAttributes:A});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===aq.Comment)return!0;
18if(e.type===aq.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===a4(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ov(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ov(e.attributes.name)||"icon"===ov(e.attributes.rel)||"apple-touch-icon"===ov(e.attributes.rel)||"shortcut icon"===ov(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ov(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ov(e.attributes.property).match(/^(og|twitter|fb):/)||ov(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ov(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ov(e.attributes.name)||"googlebot"===ov(e.attributes.name)||"bingbot"===ov(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ov(e.attributes.name)||"generator"===ov(e.attributes.name)||"framework"===ov(e.attributes.name)||"publisher"===ov(e.attributes.name)||"progid"===ov(e.attributes.name)||ov(e.attributes.property).match(/^article:/)||ov(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ov(e.attributes.name)||"yandex-verification"===ov(e.attributes.name)||"csrf-token"===ov(e.attributes.name)||"p:domain_verify"===ov(e.attributes.name)||"verify-v1"===ov(e.attributes.name)||"verification"===ov(e.attributes.name)||"shopify-checkout-api-token"===ov(e.attributes.name)))return!0}}return!1}(D,v)&&(N||D.type!==aq.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?on():-2;let L=Object.assign(D,{id:r});if(i.add(e,L),-2===r)return null;x&&x(e);let j=!h;if(L.type===aq.Element){j=j&&!L.needBlock;let t=e.shadowRoot;t&&aV(t)&&(L.isShadowHost=!0)}if((L.type===aq.Document||L.type===aq.Element)&&j){v.headWhitespace&&L.type===aq.Element&&"head"===L.tagName&&(N=!1);let t={doc:n,mirror:i,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:h,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:T,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:R,iframeLoadTimeout:P,onBlockedImageLoad:k,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:C,ignoreCSSAttributes:A};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=ob(r,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=ob(r,t);n&&(aV(e.shadowRoot)&&(n.isShadow=!0),L.childNodes.push(n))}}if(e.parentNode&&aG(e.parentNode)&&aV(e.parentNode)&&(L.isShadow=!0),L.type!==aq.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,r){let n,i=e.contentWindow;if(!i)return;let a=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=a9(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{a7(n),a=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return a9(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=oe(e);if(t&&R){let r=ob(t,{doc:t,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:T,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:R,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:C,ignoreCSSAttributes:A});r&&R(e,r)}},P),L.type===aq.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&k)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&k(e,L,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return L.type===aq.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===a4(L.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let a=a9(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{a7(a),i=!0,t()})}(e,()=>{if(O){let t=ob(e,{doc:n,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:T,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:R,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:C,ignoreCSSAttributes:A});t&&O(e,t)}},M),L.type===aq.Element&&delete L.needBlock,L}function oS(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let oE="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",ow={map:{},getId:()=>(console.error(oE),-1),getNode:()=>(console.error(oE),null),removeNodeFromMap(){console.error(oE)},has:()=>(console.error(oE),!1),reset(){console.error(oE)}};function oT(e,t,r={}){let n=null,i=0;return function(...a){let o=Date.now();i||!1!==r.leading||(i=o);let s=t-(o-i),l=this;s<=0||s>t?(n&&(function(...e){oH("clearTimeout")(...e)}
18(n),n=null),i=o,e.apply(l,a)):n||!1===r.trailing||(n=oY(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,a)},s))}}function ox(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ow=new Proxy(ow,{get:(e,t,r)=>("map"===t&&console.error(oE),Reflect.get(e,t,r))}));let oR=Date.now;function oP(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function ok(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oO(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function oM(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function oC(e,t,r,n,i){if(!e)return!1;let a=oM(e);if(!a)return!1;let o=og(t,r);if(!i){let e=n&&a.matches(n);return o(a)&&!e}let s=o_(a,o),l=-1;return!(s<0)&&(n&&(l=o_(a,og(null,n))),s>-1&&l<0||s<l)}function oI(e,t){return -2===t.getId(e)}function oA(e){return!!e.changedTouches}function oN(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function oD(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function oL(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(oR=()=>new Date().getTime());class oj{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function oU(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function oF(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=oU(r);)r=t;return r}(e);return t.contains(r)}(e))}let o$={};function oH(e){let t=o$[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return o$[e]=n.bind(window)}function oY(...e){return oH("setTimeout")(...e)}var oW=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(oW||{}),oB=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(oB||{}),oz=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(oz||{}),oq=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(oq||{}),oG=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(oG||{});function oV(e){try{return e.contentDocument}catch(e){}}class oX{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
18this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let oK=(e,t)=>`${e}@${t}`;class oJ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new oX,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!oF(i))return;let a=aG(i.parentNode)?this.mirror.getId(oU(i)):this.mirror.getId(i.parentNode),o=n(i);if(-1===a||-1===o)return r.addNode(i);let s=ob(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{oN(e,this.mirror)&&!oC(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),oD(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),oL(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{oC(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!oQ(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)o0(this.droppedSet,e)||oQ(this.removes,e,this.mirror)?o0(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;r.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),r=n(a.value);-1!==t&&-1!==r&&(e=a)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}a=e.previous,r.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!oI(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;oC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:oy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,oM(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=a3(t),i=t.tagName;n=a5(t,i,r);let a=aZ({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=aQ({isMasked:oy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:n,maskInputFn:this.maskInputFn})}if(oC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
18if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(oV(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!om(t.tagName,r)&&(i.attributes[r]=op(this.doc,a0(t.tagName),a0(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),a=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||a!==r.style.getPropertyPriority(n)?""===a?i.styleDiff[n]=e:i.styleDiff[n]=[e,a]:i._unchangedStyles[n]=[e,a]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(oC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=aG(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);oC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||oI(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(oZ(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(aG(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[oK(r,n)]?oZ(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(aG(e.target)&&aV(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(oI(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[oK(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!oC(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),oL(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function oZ(e,t){e.delete(t),t.childNodes?.forEach(t=>oZ(e,t))}function oQ(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function o0(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let o1=e=>T?(...t)=>{try{return e(...t)}catch(e){if(T&&!0===T(e))return()=>{};throw e}}:e,o2=[];function o3(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function o5(e,t){let r=new oJ;o2.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let a=new n(o1(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}
18function o4({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:o}){return oS("scroll",o1(oT(o1(o=>{let s=o3(o);if(!s||oC(s,n,i,a,!0))return;let l=r.getId(s);if(s===t&&t.defaultView){let r=oP(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let o6=["INPUT","TEXTAREA","SELECT"],o8=new WeakMap;function o9(e){var t=[];if(sr("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||sr("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||sr("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||sr("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function o7(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function se({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&a?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let r=a.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),o1(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function st(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=o5(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=oT(o1(t=>{let r=Date.now()-i;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],i=null}),o),u=o1(oT(o1(e=>{let t=o3(e),{clientX:r,clientY:a}=oA(e)?e.changedTouches[0]:e;i||(i=oR()),s.push({x:r,y:a,id:n.getId(t),timeOffset:oR()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?oB.Drag:e instanceof MouseEvent?oB.MouseMove:oB.TouchMove)}),a,{trailing:!1})),c=[oS("mousemove",u,r),oS("touchmove",u,r),oS("drag",u,r)];return o1(()=>{c.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],u=null;return Object.keys(oz).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(o=>{let s=a0(o),c=t=>{let s=o3(t);if(oC(s,n,i,a,!0))return;let l=null,c=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=oq.Mouse;break;case"touch":l=oq.Touch;break;case"pen":l=oq.Pen}l===oq.Touch?oz[o]===oz.MouseDown?c="TouchStart":oz[o]===oz.MouseUp&&(c="TouchEnd"):oq.Pen}else oA(t)&&(l=oq.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===oq.Touch||c.startsWith("Mouse")&&l===oq.Mouse)&&(l=null)):oz[o]===oz.Click&&(l=u,u=null);let d=oA(t)?t.changedTouches[0]:t;if(!d)return;let f=r.getId(s),{clientX:h,clientY:p}=d;o1(e)({type:oz[c],id:f,x:h,y:p,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(oz[o]){case oz.MouseDown:case oz.MouseUp:s=s.replace("mouse","pointer");break;case oz.TouchStart:case oz.TouchEnd:return}l.push(oS(s,c,t))}),o1(()=>{l.forEach(e=>e())})}(e),o=o4(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return oS("resize",o1(oT(o1(()=>
18{let t=ok(),i=oO();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function _(e){let r=o3(e),c=e.isTrusted,_=r&&a1(r.tagName);if("OPTION"===_&&(r=r.parentElement),!r||!_||0>o6.indexOf(_)||oC(r,n,i,a,!0))return;let y=r;if(y.classList.contains(o)||s&&y.matches(s))return;let v=a3(r),b=a5(y,_,v),S=!1,E=aZ({maskInputOptions:l,tagName:_,type:v}),w=oy(r,f,p,h,m,E);("radio"===v||"checkbox"===v)&&(S=r.checked),b=aQ({isMasked:w,element:r,value:b,maskInputFn:u}),g(r,d?{text:b,isChecked:S,userTriggered:c}:{text:b,isChecked:S});let T=r.name;"radio"===v&&T&&S&&t.querySelectorAll(`input[type="radio"][name="${T}"]`).forEach(e=>{if(e!==r){let t=aQ({isMasked:w,element:e,value:a5(e,_,v),maskInputFn:u});g(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function g(t,n){let i=o8.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){o8.set(t,n);let i=r.getId(t);o1(e)({...n,id:i})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>oS(e,o1(_),t)),v=t.defaultView;if(!v)return()=>{y.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map(e=>(function e(t,r,n,i,a=window){let o=a.Object.getOwnPropertyDescriptor(t,r);return a.Object.defineProperty(t,r,i?n:{set(e){oY(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){o1(_)({target:this,isTrusted:!1})}},!1,v))),o1(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:a,doc:o}){let s=o1(o=>oT(o1(a=>{let s=o3(a);if(!s||oC(s,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),a.media||500)),l=[oS("play",s(oG.Play),o),oS("pause",s(oG.Pause),o),oS("seeked",s(oG.Seeked),o),oS("volumechange",s(oG.VolumeChange),o),oS("ratechange",s(oG.RateChange),o)];return o1(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,a;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:o1((n,i,a)=>{let[o,s]=a,{id:l,styleId:u}=o7(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:s}]}),n.apply(i,a)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:o1((n,i,a)=>{let[o]=a,{id:s,styleId:l}=o7(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:o}]}),n.apply(i,a)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:o1((n,i,a)=>{let[o]=a,{id:s,styleId:l}=o7(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:o}),n.apply(i,a)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:o1((n,i,a)=>{let[o]=a,{id:s,styleId:l}=o7(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:o}),n.apply(i,a)})}));let l={};sn("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(sn("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),sn("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),sn("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:o1((n,i,a)=>{let[o,s]=a,{id:l,styleId:u}=o7(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...o9(i),s||0]}]}),n.apply(i,a)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:o1((n,i,a)=>{let[o]=a,{id:s,styleId:l}=o7(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...o9(i),o]}]}),n.apply(i,a)})})}),o1(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=se(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:o1((i,o,s)=>{let[l,u,c]=s;
18if(r.has(l))return a.apply(o,[l,u,c]);let{id:d,styleId:f}=o7(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:l,value:u,priority:c},index:o9(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:o1((i,a,s)=>{let[l]=s;if(r.has(l))return o.apply(a,[l]);let{id:u,styleId:c}=o7(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:o9(a.parentRule)}),i.apply(a,s)})}),o1(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,r){let n=new a(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=ox(t.fonts,"add",function(t){return function(r){return oY(o1(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=a}),n.push(o),o1(()=>{n.forEach(e=>e())})}(e)));let p=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,l=o1(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:o,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);oC(o,n,i,a,!0)||oC(u,n,i,a,!0)||l.push({start:r.getId(o),startOffset:s,end:r.getId(u),endOffset:c})}o({ranges:l})});return l(),oS("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?ox(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),_=[];for(let t of e.plugins)_.push(t.observer(t.callback,n,t.options));return o1(()=>{o2.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),l(),u(),c(),d(),f(),h(),p(),m(),_.forEach(e=>e())})}function sr(e){return void 0!==window[e]}function sn(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class si{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class sa{constructor(){this.crossOriginIframeMirror=new si(on),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class so{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new si(on),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new si(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=oV(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case oW.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:oW.IncrementalSnapshot,data:{source:oB.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case oW.Meta:case oW.Load:case oW.DomContentLoaded:break;case oW.Plugin:return t;case oW.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case oW.IncrementalSnapshot:switch(t.data.source){case oB.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
18),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case oB.Drag:case oB.TouchMove:case oB.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case oB.ViewportResize:return!1;case oB.MediaInteraction:case oB.MouseInteraction:case oB.Scroll:case oB.CanvasMutation:case oB.Input:return this.replaceIds(t.data,e,["id"]),t;case oB.StyleSheetRule:case oB.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case oB.Font:return t;case oB.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case oB.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===aq.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ss{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class sl{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!aV(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=o5({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(o4({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),oY(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(se({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=oV(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(ox(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&oF(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var su="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),sd=0;sd<su.length;sd++)sc[su.charCodeAt(sd)]=sd;class sf{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class sh{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new oj,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:aK(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class sp{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){oH("requestAnimationFrame")(...e)}
18(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let sm=new aJ;function s_(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:h=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:_,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,maxCanvasSize:E=null,packFn:w,sampling:P={},dataURLOptions:k={},mousemoveWait:O,recordDOM:M=!0,recordCanvas:C=!1,recordCrossOriginIframes:I=!1,recordAfter:A="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:D=!1,inlineImages:L=!1,plugins:j,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:$,onMutation:H,getCanvasManager:Y}=e;T=$;let W=!I||window.parent===window,B=!1;if(!W)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(W&&!r)throw Error("emit function is required");if(!W&&!B)return()=>{};void 0!==O&&void 0===P.mousemove&&(P.mousemove=O),sm.reset();let z=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},q=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let G=0,V=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!B&&(e=w(e)),e};x=(e,a)=>{if(e.timestamp=oR(),o2[0]?.isFrozen()&&e.type!==oW.FullSnapshot&&(e.type!==oW.IncrementalSnapshot||e.data.source!==oB.Mutation)&&o2.forEach(e=>e.unfreeze()),W)r?.(V(e),a);else if(B){let t={type:"rrweb",event:V(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(t,"*")}if(e.type===oW.FullSnapshot)t=e,G=0;else if(e.type===oW.IncrementalSnapshot){if(e.data.source===oB.Mutation&&e.data.isAttachIframe)return;G++;let r=i&&G>=i,a=n&&t&&e.timestamp-t.timestamp>n;(r||a)&&en(!0)}};let X=e=>{x({type:oW.IncrementalSnapshot,data:{source:oB.Mutation,...e}})},K=e=>x({type:oW.IncrementalSnapshot,data:{source:oB.Scroll,...e}}),J=e=>x({type:oW.IncrementalSnapshot,data:{source:oB.CanvasMutation,...e}}),Z=new sh({mutationCb:X,adoptedStyleSheetCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new sa:new so({mirror:sm,mutationCb:X,stylesheetManager:Z,recordCrossOriginIframes:I,wrappedEmit:x});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:sm,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});let ee=new sp,et=function(e,t){try{return e?e(t):new sf}catch{return console.warn("Unable to initialize CanvasManager"),new sf}}(Y,{mirror:sm,win:window,mutationCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.CanvasMutation,...e}}),recordCanvas:C,blockClass:a,blockSelector:o,unblockSelector:s,maxCanvasSize:E,sampling:P.canvas,dataURLOptions:k,errorHandler:$}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ss:new sl({mutationCb:X,scrollCb:K,bypassOptions:{onMutation:H,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:z,dataURLOptions:k,maskAttributeFn:v,maskTextFn:S,maskInputFn:b,recordCanvas:C,inl
18ineImages:L,sampling:P,slimDOMOptions:q,iframeManager:Q,stylesheetManager:Z,canvasManager:et,keepIframeSrcFn:U,processedNodeManager:ee,ignoreCSSAttributes:F},mirror:sm}),en=(e=!1)=>{if(!M)return;x({type:oW.Meta,data:{href:window.location.href,width:oO(),height:ok()}},e),Z.reset(),er.init(),o2.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new aJ,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:_,maskInputFn:g,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:k=new Set([])}=t||{};return ob(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskAttributeFn:m,maskTextFn:_,maskInputFn:g,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:f,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:P,newlyAddedElement:!1,ignoreCSSAttributes:k})}(document,{mirror:sm,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:z,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,slimDOM:q,dataURLOptions:k,recordCanvas:C,inlineImages:L,onSerialize:e=>{oN(e,sm)&&Q.addIframe(e),oD(e,sm)&&Z.trackLinkElement(e),oL(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Z.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{X({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:U,ignoreCSSAttributes:F});if(!t)return console.warn("Failed to snapshot the document");x({type:oW.FullSnapshot,data:{node:t,initialOffset:oP(window)}}),o2.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,sm.getId(document))};R=en;try{let e=[],t=e=>o1(st)({onMutation:H,mutationCb:X,mousemoveCb:(e,t)=>x({type:oW.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.ViewportResize,...e}}),inputCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.Input,...e}}),mediaInteractionCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.MediaInteraction,...e}}),styleSheetRuleCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.StyleSheetRule,...e}}),styleDeclarationCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>x({type:oW.IncrementalSnapshot,data:{source:oB.Font,...e}}),selectionCb:e=>{x({type:oW.IncrementalSnapshot,data:{source:oB.Selection,...e}})},customElementCb:e=>{x({type:oW.IncrementalSnapshot,data:{source:oB.CustomElement,...e}})},blockClass:a,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:p,maskInputOptions:z,inlineStylesheet:m,sampling:P,recordDOM:M,recordCanvas:C,inlineImages:L,userTriggeredOnInput:N,collectFonts:D,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:U,blockSelector:o,unblockSelector:s,slimDOMOptions:q,dataURLOptions:k,mirror:sm,iframeManager:Q,stylesheetManager:Z,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:j?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>x({type:oW.Plugin,data:{plugin:e.name,payload:t}}
18)}))||[]},{});Q.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(oS("DOMContentLoaded",()=>{x({type:oW.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&r()})),e.push(oS("load",()=>{x({type:oW.Load,data:{}}),"load"===A&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),R=void 0,T=void 0}}catch(e){console.warn(e)}}function sg(e){return e>0x2540be3ff?e:1e3*e}function sy(e){return e>0x2540be3ff?e/1e3:e}function sv(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:oW.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:tW(t,10,1e3)}}),"console"===t.category)))}function sb(e){return e.closest("button,a")||e}function sS(e){let t=sE(e);return t&&t instanceof Element?sb(t):t}function sE(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}s_.mirror=sm,s_.takeFullSnapshot=function(e){if(!R)throw Error("please take full snapshot after start recording");R(e)},!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(M||(M={}));let sw=new Set([oB.Mutation,oB.StyleSheetRule,oB.StyleDeclaration,oB.AdoptedStyleSheet,oB.CanvasMutation,oB.Selection,oB.MediaInteraction]);class sT{constructor(e,t,r=sv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=sR()},P||(P=[],eu(I,"open",function(e){return function(...t){if(P)try{P.forEach(e=>e())}catch{}return e.apply(I,t)}})),P.push(e),()=>{let t=P?P.indexOf(e):-1;t>-1&&P.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,i;if(r=t,n=this._ignoreSelector,!sx.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let a={timestamp:sy(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===a.node&&1>Math.abs(e.timestamp-a.timestamp))||(this._clicks.push(a),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=sy(e)}registerScroll(e=Date.now()){this._lastScroll=sy(e)}registerClick(e){let t=sb(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=sR();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:I.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:I.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=nj(()=>this._checkClicks(),1e3)}}let sx=["A","BUTTON","INPUT"];function sR(){return Date.now()/1e3}function sP(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var sk=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(sk||{});let sO=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function sM(e,t){let r=s_.mirror.getId(e),n=r&&s_.mirror.getNode(r),i=n&&s_.mirror.getMeta(n),a=i&&i.type===sk.Element?i:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>
18e.type===sk.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(sO.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(a.attributes)}}:{}}}let sC={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:sN(a),end:sN(i),name:n,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,a=sN(i);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:f,startTime:h,transferSize:p,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:sN(h),end:sN(a),name:r,data:{size:p,decodedBodySize:n,encodedBodySize:o,duration:i,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:f}}}};function sI(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function sA(e){let t=sC[e.entryType];return t?t(e):null}function sN(e){return((eT()||I.performance.timeOrigin)+e)/1e3}function sD(e){let t=e.entries[e.entries.length-1];return sU(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function sL(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=s_.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return sU(e,"cumulative-layout-shift",r,t)}function sj(e){let t=e.entries[e.entries.length-1];return sU(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function sU(e,t,r,n){let i=e.value,a=e.rating,o=sN(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:r?r.map(e=>s_.mirror.getId(e)):void 0,attributions:n}}}let sF="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,s$=["log","warn","error"],sH="[Replay] ";function sY(e,t="info"){r4({category:"console",data:{logger:"replay"},level:t,message:`${sH}${e}`},{level:t})}let sW=function(){let e=!1,t=!1,r={exception:()=>void 0,infoTick:()=>void 0,setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return sF?(s$.forEach(e=>{r[e]=(...r)=>{B[e](sH,...r),t&&sY(r.join(""),r6(e))}}),r.exception=(n,...i)=>{i.length&&r.error&&r.error(...i),B.error(sH,n),e?tq(n,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&sY(n,"error")},r.infoTick=(...e)=>{B.log(sH,...e),t&&setTimeout(()=>sY(e[0]),0)}):s$.forEach(e=>{r[e]=()=>void 0}),r}();class sB extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class sz{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new sB;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?sg(e):null}}class sq{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){sF&&sW.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let a=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",a),!t.success){sF&&sW.error("Error in compression worker: ",t.response),i(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class sG{constructor(e){this._worker=new sq(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
18addEvent(e){let t=sg(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new sB):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{sF&&sW.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class sV{constructor(e){this._fallback=new sz,this._compression=new sG(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){sF&&sW.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){sF&&sW.exception(e,"Failed to add events when switching buffers.")}}}function sX(){try{return"sessionStorage"in I&&!!I.sessionStorage}catch{return!1}}function sK(e){return void 0!==e&&Math.random()<e}function sJ(e){if(sX())try{I.sessionStorage.setItem(aY,JSON.stringify(e))}catch{}}function sZ(e){let t=Date.now(),r=e.id||e_(),n=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,o=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:a,sampled:o,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function sQ({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=sZ({sampled:sK(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&sJ(i),i}function s0(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function s1(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return s0(e.started,t,n)||s0(e.lastActivity,r,n)}function s2(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!s1(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function s3({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!sX())return null;try{let e=I.sessionStorage.getItem(aY);if(!e)return null;let t=JSON.parse(e);return sF&&sW.infoTick("Loading existing session"),sZ(t)}catch{return null}}();return i?s2(i,{sessionIdleExpire:e,maxReplayDuration:t})?(sF&&sW.infoTick("Session in sessionStorage is expired, creating new one..."),sQ(n,{previousSessionId:i.id})):i:(sF&&sW.infoTick("Creating new session"),sQ(n,{previousSessionId:r}))}function s5(e,t,r){return!!s6(e,t)&&(s4(e,t,r),!0)}async function s4(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let a=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===oW.Custom)return t(e)}catch(e){return sF&&sW.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,a.beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(a){let t=a&&a instanceof sB,r=eZ();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}
18function s6(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=sg(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(sF&&sW.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function s8(e){return"transaction"===e.type}function s9(e){return"feedback"===e.type}function s7(e){return!!e.category}function le(){let e=eX().getPropagationContext().dsc;e&&delete e.replay_id;let t=tD();if(t){let e=t$(t);delete e.replay_id}}function lt(e,t){return t.map(({type:t,start:r,end:n,name:i,data:a})=>{let o=e.throttledAddEvent({type:oW.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:a}}});return"string"==typeof o?Promise.resolve(null):o})}function lr(e,t){e.isEnabled()&&null!==t&&!function(e,t){if(sF&&e.getOptions()._experiments.traceInternals)return!1;var r,n,i=eZ();let a=i?.getDsn(),o=i?.getOptions().tunnel;return function(e,t){let r=r7(e);return!(!r||r9(r))&&!!t&&r.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(r.search)}(t,a)||(r=t,!!(n=o)&&aH(r)===aH(n))}(e,t.name)&&e.addUpdate(()=>(lt(e,[t]),!0))}function ln(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=at(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function li(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function la(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function lo(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:o,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:a,statusCode:o,request:s,response:l}}}function ls(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ll(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,a?.length&&(n._meta={warnings:a}),n}function lu(e,t){return Object.entries(e).reduce((r,[n,i])=>{let a=n.toLowerCase();return t.includes(a)&&e[n]&&(r[a]=i),r},{})}function lc(e,t=I.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(I.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}async function ld(e,t,r){try{let n=await lf(e,t,r),i=lo("resource.fetch",n);lr(r.replay,i)}catch(e){sF&&sW.exception(e,"Failed to capture fetch breadcrumb")}}async function lf(e,t,r){var n,i;let a=Date.now(),{startTimestamp:o=a,endTimestamp:s=a}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:f}=e.data,h=(n=r.networkDetailAllowUrls,eH(lc(l),n)&&(i=r.networkDetailDenyUrls,!eH(lc(l),i)));return{startTimestamp:o,endTimestamp:s,url:l,method:u,statusCode:c,request:h?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,a;let o=r?(i=r,a=t,1===i.length&&"string"!=typeof i[0]?l_(i[0],a):2===i.length?l_(i[1],a):{}):{};if(!e)return ll(o,n,void 0);let[s,l]=ar(an(r),sW),u=ll(o,n,s);return l?la(u,l):u}(r,t.input,d):ls(d),response:await lh(h,r,t.response,f)}}async function lh(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return ls(i);let a=n?lm(n.headers,r):{};if(!n||!t&&void 0!==i)return ll(a,i,void 0);let[o,s]=await lp(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let a=e?.length&&void 0===r?ln(e):r;if(!n)return ls(a);if(t)return ll(i,a,e);return ll(i,a,void 0)}catch(e){return sF&&sW.exception(e,"Failed to serialize response body"),ll(i,r,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?la(l,s):l}async function lp(e){let t=function(e){try{return e.clone()}catch(e){sF&&sW.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>
18{let n=nj(()=>t(Error("Timeout while trying to read response body")),500);lg(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return sF&&sW.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return sF&&sW.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function lm(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function l_(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?lm(r,t):Array.isArray(r)?{}:lu(r,t):{}}async function lg(e){return await e.text()}async function ly(e,t,r){try{let n=function(e,t,r){var n,i;let a=Date.now(),{startTimestamp:o=a,endTimestamp:s=a,input:l,xhr:u}=t,{url:c,method:d,status_code:f=0,request_body_size:h,response_body_size:p}=e.data;if(!c)return null;if(!u||(n=r.networkDetailAllowUrls,!eH(lc(c),n))||(i=r.networkDetailDenyUrls,eH(lc(c),i))){let e=ls(h);return{startTimestamp:o,endTimestamp:s,url:c,method:d,statusCode:f,request:e,response:ls(p)}}let m=u[na],_=m?lu(m.request_headers,r.networkRequestHeaders):{},g=lu(ai(u),r.networkResponseHeaders),[y,v]=r.networkCaptureBodies?ar(l,sW):[void 0],[b,S]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return sF&&sW.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return sF&&sW.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return sF&&sW.warn("Failed to get xhr response body",...t),[void 0]}(u):[void 0],E=ll(_,h,y),w=ll(g,p,b);return{startTimestamp:o,endTimestamp:s,url:c,method:d,statusCode:f,request:v?la(E,v):E,response:S?la(w,S):w}}(e,t,r),i=lo("resource.xhr",n);lr(r.replay,i)}catch(e){sF&&sW.exception(e,"Failed to capture xhr breadcrumb")}}async function lv(e){try{return Promise.all(lt(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(I.performance.memory)]))}catch{return[]}}let lb=I.navigator;async function lS({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let a=await tB(e.getOptions(),n,i,t,e,eK());if(!a)return null;e.emit("postprocessEvent",a,i),a.platform=a.platform||"javascript";let o=e.getSdkMetadata(),{name:s,version:l,settings:u}=o?.sdk||{};return a.sdk={...a.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},a}async function lE({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:a}){var o;let s,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
19`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:f}=n,h=eZ(),p=eX(),m=h?.getTransport(),_=h?.getDsn();if(!h||!m||!_||!a.sampled)return Promise.resolve({});let g={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:a.sampled},y=await lS({scope:p,client:h,replayId:t,event:g});if(!y)return h.recordDroppedEvent("event_processor","replay"),sF&&sW.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;let v=(o=h.getOptions().tunnel,rt(ro(y,ra(y),o,_),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(v)}catch(t){let e=Error(aW);try{e.cause=t}catch{}throw e}if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new lw(s.statusCode);let b=r_({},s);if(rm(b,"replay"))throw new lT(b);return s}
19class lw extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class lT extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function lx(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await lE(e),!0}catch(r){if(r instanceof lw||r instanceof lT)throw r;if(tV("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${aW} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{nj(async()=>{try{await lx(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let lR="__THROTTLED";class lP{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,a,o=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function c(){return i&&clearTimeout(i),i=s(l,t),o&&void 0===a&&(a=s(l,o)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==a?l():n},c}(()=>this._flush(),this._options.flushMinDelay,{...{maxWait:this._options.flushMaxDelay},setTimeoutImpl:nj}),this._throttledAddEvent=function(e,t,r){let n=new Map,i=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3),a=r-5;if(n.forEach((e,t)=>{t<a&&n.delete(t)}),[...n.values()].reduce((e,t)=>e+t,0)>=300){let e=i;return i=!0,e?"__SKIPPED":lR}i=!1;let o=n.get(r)||0;return n.set(r,o+1),e(...t)}}((e,t)=>(function(e,t,r){return s6(e,t)?s4(e,t,r):Promise.resolve(null)})(this,e,t),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(i&&(this.clickDetector=new sT(this,i)),sF){let t=e._experiments;sW.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===I.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=sP({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=sP({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:o,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=r||i||a,u=1===o.length;if(!l&&u)return null;let c=eo(s,{maxStringLength:200})||"<unknown>",d=sM(s,c);return sP({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:o}})}(t);r&&sv(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){sF&&sW.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n){if(this._initializeSessionForSampling(e),!this.session){sF&&sW.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",sF&&sW.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){sF&&sW.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){sF&&sW.log("Buffering is in progress, call `flush()` to save the replay");return}sF&&sW.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=s3({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
19startBuffering(){if(this._isEnabled){sF&&sW.log("Buffering is in progress, call `flush()` to save the replay");return}sF&&sW.infoTick("Starting replay in buffer mode");let e=s3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=s_({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){sF&&sW.warn("Received replay event after session expired.");return}let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(sw.has(n)&&e.registerMutation(t.timestamp),n===oB.Scroll&&e.registerScroll(t.timestamp),t.data.source===oB.MouseInteraction){let{type:r,id:n}=t.data,i=s_.mirror.getNode(n);i instanceof HTMLElement&&r===oz.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{var t;if("buffer"===e.recordingMode&&i&&e.setInitialState(),!s5(e,r,i))return!0;if(!i)return!1;let n=e.session;if(t=e,i&&t.session&&0===t.session.segmentId&&s5(t,function(e){let t=e.getOptions();return{type:oW.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(t),!1),"buffer"===e.recordingMode&&n&&e.eventBuffer&&!n.dirty){let t=e.eventBuffer.getEarliestTimestamp();t&&(sF&&sW.log(`Updating session start time to earliest event in buffer to ${new Date(t)}`),n.started=t,e.getOptions().stickySession&&sJ(n))}return!!n?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(lb?.userAgent??"")||/Macintosh/i.test(lb?.userAgent??"")&&lb?.maxTouchPoints&&lb?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{sF&&sW.log(`Stopping Replay${t?` triggered by ${t}`:""}`),le(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(sX())try{I.sessionStorage.removeItem(aY)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),sF&&sW.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),sF&&sW.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();sF&&sW.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}
19checkAndHandleExpiredSession(){return this._lastActivity&&s0(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${I.location.pathname}${I.location.hash}${I.location.search}`,t=`${I.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===lR){let e=sP({category:"replay.throttled"});this.addUpdate(()=>!s5(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||tD(),t=e&&tN(e),r=(t&&tP(t).data||{})[e3];if(t&&r&&["route","custom"].includes(r))return tP(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e=new Blob(['
vendor: 10,329 bytes, line 19
19var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
19']);return URL.createObjectURL(e)}return""}();if(!t)return;sF&&sW.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new sV(r)}catch(e){sF&&sW.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return sF&&sW.log("Using simple buffer"),new sz}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=s3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!s2(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{I.document.addEventListener("visibilitychange",this._handleVisibilityChange),I.addEventListener("blur",this._handleWindowBlur),I.addEventListener("focus",this._handleWindowFocus),I.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t=eZ();nr(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?sS(e.event):sE(e.event),t=eo(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return sP({category:`ui.${e.name}`,...sM(t,r)})}(t);if(!i)return;let a="click"===t.name,o=a?t.event:void 0;a&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(r=e.clickDetector,n=sS(t.event),r.handleClick(i,n)),sv(e,i)}),nl(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(lt(e,[r]),!1)))});let r=eZ();r&&r.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!s7(t))return;let n=(r=t,!s7(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return sP(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=tW(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return sP({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):sP(r));n&&sv(e,n)})(e,t));let n=eZ();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,a,o;if(n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=ln(n),a=r.getResponseHeader("content-length")?li(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return ln(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),ly(t,r,e)),a=t,"fetch"===a.category&&(o=r,o?.response)){let{input:n,response:i}=r,a=ln(n?an(n):void 0),o=i?li(i.headers.get("content-length")):void 0;void 0!==a&&(t.data.request_body_size=a),void 0!==o&&(t.data.response_body_size=o),ld(t,r,e)}}catch(e){sF&&sW.exception(e,"Error when enriching network breadcrumb")}})(s,e,t))}catch{}tX(Object.assign((t,r)=>
19{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!s8(t)&&!s9(t))return t;if(!e.checkAndHandleExpiredSession())return le(),t;if(s9(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:oW.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return sF&&sW.log("Ignoring error from rrweb internals",t),null;let n="buffer"===e.recordingMode&&t.message!==aW&&!!t.exception&&!t.type&&sK(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&sJ(t)}return t},{id:"Replay"})),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception?.values?.[0]?.value;"string"==typeof r&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&sv(e,sP({category:"replay.hydrate-error",data:{url:es()}}))}(e,t)}),t.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!s8(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(s8(t))return void function(e,t){let r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t);!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&nj(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),t.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(iI(e,r))}),n.push(iM(sI(sD,e)),iO(sI(sL,e)),iC(sI(sj,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{I.document.removeEventListener("visibilitychange",this._handleVisibilityChange),I.removeEventListener("blur",this._handleWindowBlur),I.removeEventListener("focus",this._handleWindowFocus),I.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(s1(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){sF&&sW.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:oW.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(sA).filter(
19Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(lt(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){sF&&sW.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await lv(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await lx({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=eZ();e&&e.recordDroppedEvent(t instanceof lT?"ratelimit_backoff":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){sF&&sW.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){sF&&sW.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let a=this.eventBuffer;a&&0===this.session.segmentId&&!a.hasCheckout&&sF&&sW.log("Flushing initial segment without checkout.");let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&sJ(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){let e=sP({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function lk(e,t){return[...e,...t].join(",")}let lO='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lM=["content-length","content-type","accept"],lC=!1;class lI{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:_=[],networkCaptureBodies:g=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:w=[],unblock:T=[],ignore:x=[],maskFn:R,beforeAddRecordingEvent:P,beforeErrorSampling:k,onError:O}={}){this.name="Replay";let M=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:lk(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:lk(t,[]),blockSelector:lk(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
19([src])"]),unblockSelector:lk(n,[]),ignoreSelector:lk(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:w,unblock:T,ignore:x});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:a}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a})({maskAttributes:S,maskAllText:l,privacyOptions:M,key:e,value:t,el:r}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:p,networkDetailAllowUrls:m,networkDetailDenyUrls:_,networkCaptureBodies:g,networkRequestHeaders:lA(y),networkResponseHeaders:lA(v),beforeAddRecordingEvent:P,beforeErrorSampling:k,onError:O,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${lO}`:lO,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&i0())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lC}set _isInitialized(e){lC=e}afterAllSetup(e){i0()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},i=tv(r.replaysSessionSampleRate),a=tv(r.replaysOnErrorSampleRate);return null==i&&null==a&&$(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=a&&(n.errorSampleRate=a),n}(this._initialOptions,e);this._replay=new lP({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function lA(e){return[...lM,...e.map(e=>e.toLowerCase())]}var lN=r(9143);let lD={dsn:"https://[email protected]/4506319955099648",environment:lN.env.NEXT_PUBLIC_ENV||"production",enabled:"production"===lN.env.NEXT_PUBLIC_ENV},lL=function(e,t){O&&O(e,t)};globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"662e1420311b2f070d3a3b69db3ce106a7c163d4"},globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="15.5.20",globalThis._sentryRewriteFramesAssetPrefixPath="/apps/newsletter",globalThis._sentryAssetPrefix="https://static-prod.ilpost.it/apps/newsletter",globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}',function(e){let{app:t}=e;if(![C.FG.home,C.FG.single,C.FG.singlelive,C.FG.altrecose,C.FG.taxonomy,C.FG.podcast,C.FG.newsletter,C.FG.events,C.FG.pages].includes(t)){let e;!function(e){a$&&$(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),a$=!0,("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){I.document&&function(e){let t=aw(e)||e,r=aj.get(t);if(void 0!==r)return r;let n=aE();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return aj.set(t,!1),!1;let i=n.isrRoutes.includes(t);return aj.set(t,i),i}(I.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=I.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let t={environment:function(e){let t=e?nH.env.NEXT_PUBLIC_VERCEL_ENV:nH.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=nF(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=((e={})=>{let t,r,n,i={name:void 0,source:void 0},a=I.document,{enableInp:o,enableElementTiming:s,enableLongTask:l,enableLongAnimationFrame:u,_experiments:{enableInteractions:c,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:f},beforeStartSpan:h,idleTimeout:p,finalTimeout:m,childSpanTimeout:_,markBackgroun
19dSpan:g,traceFetch:v,traceXHR:E,trackFetchStreamPerformance:w,shouldCreateSpanForRequest:T,enableHTTPTimings:x,ignoreResourceSpans:R,ignorePerformanceApiSpans:P,instrumentPageLoad:k,instrumentNavigation:O,detectRedirects:M,linkPreviousTrace:C,consistentTraceSampling:A,enableReportPageLoaded:N,onRequestSpanStart:D,onRequestSpanEnd:L}={...ad,...e};function U(e,r,o=!0){let s="pageload"===r.op,l=r.name,u=h?h(r):r,c=u.attributes||{};if(l!==u.name&&(c[e3]="custom",u.attributes=c),!o){let e=eE();nV({...u,startTime:e}).end(e);return}i.name=u.name,i.source=c[e3];let g=n1(u,{idleTimeout:p,finalTimeout:m,childSpanTimeout:_,disableAutoFinish:s,beforeSpanEnd:r=>{t?.(),function(e,t){var r,n;let i=iB(),a=eT();if(!i?.getEntries||!a)return;let o=iz(a),s=i.getEntries(),{op:l,start_timestamp:u}=tP(e);s.slice(iK).forEach(r=>{let n=iz(r.startTime),i=iz(Math.max(0,r.duration));if("navigation"!==l||!u||!(o+n<u))switch(r.entryType){case"navigation":var a,s,c;a=e,s=r,c=o,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{iZ(a,s,e,c)}),iZ(a,s,"secureConnection",c,"TLS/SSL"),iZ(a,s,"fetch",c,"cache"),iZ(a,s,"domainLookup",c,"DNS"),function(e,t,r){let n=r+iz(t.requestStart),i=r+iz(t.responseEnd),a=r+iz(t.responseStart);t.responseEnd&&(iY(e,n,i,{op:"browser.request",name:t.name,attributes:{[e8]:"auto.ui.browser.metrics"}}),iY(e,a,i,{op:"browser.response",name:t.name,attributes:{[e8]:"auto.ui.browser.metrics"}}))}(a,s,c);break;case"mark":case"paint":case"measure":{!function(e,t,r,n,i,a){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&eH(t.name,a))return;let o=n5(!1),s=i+Math.max(r,iz(o?o.requestStart:0)),l=i+r,u=l+n,c={[e8]:"auto.resource.browser.metrics"};s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&Q(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if(Q(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),s<=u&&iY(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,r,n,i,o,t.ignorePerformanceApiSpans);let a=it(),s=r.startTime<a.firstHiddenTime;"first-paint"===r.name&&s&&(iJ.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&s&&(iJ.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,i,a,o){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(u))return;let c={[e8]:"auto.resource.browser.metrics"},d=ne(r);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=r.includes(I.location.origin),s=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([e,t])=>{let r=s[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let f={...c,...iX(t)},h=a+n;iY(e,h,h+i,{name:r.replace(I.location.origin,""),op:u,attributes:f})}(e,r,r.name,n,i,o,t.ignoreResourceSpans)}}),iK=Math.max(s.length-1,0),function(e){let t=I.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),iH(r.rtt)&&(iJ["connection.rtt"]={value:r.rtt,unit:"millisecond"})),iH(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),iH(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=n5(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(iJ),t.recordClsOnPageloadSpan||delete iJ.cls,t.recordLcpOnPageloadSpan||delete iJ.lcp,Object.entries(iJ).forEach(([e,t])=>{!function(e,t,r,n=tD()){let i=n&&tN(n);i&&(j&&B.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[te]:t,[e7]:r}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",n4()),r=e,n=t,b&&n.recordLcpOnPageloadSpan&&(b.element&&r.setAttribute("lcp.element",eo(b.element)),b.id&&r.setAttribute("lcp.id",b.id),b.url&&r.setAttribute("lcp.url",b.url.trim().slice(0,200)),null!=b.loadTime&&r.setAttribute("lcp.loadTime",b.loadTime),null!=b.renderTime&&r.setAttribute("lcp.renderTime",b.renderTime),r.setAttribute("lcp.size",b.size)),S?.sources&&n.recordClsOnPageloadSpan&&S.sources.forEac
19h((e,t)=>r.setAttribute(`cls.source.${t+1}`,eo(e.node)))),b=void 0,S=void 0,iJ={}}(r,{recordClsOnPageloadSpan:!d,recordLcpOnPageloadSpan:!f,ignoreResourceSpans:R,ignorePerformanceApiSpans:P}),ec(e,am,void 0);let i=eX(),a=i.getPropagationContext();i.setPropagationContext({...a,traceId:g.spanContext().traceId,sampled:tk(g),dsc:t$(r)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!N});function y(){a&&["interactive","complete"].includes(a.readyState)&&e.emit("idleSpanEnableAutoFinish",g)}s&&N&&(n=g),ec(e,am,g),s&&!N&&a&&(a.addEventListener("readystatechange",()=>{y()}),y())}return{name:"BrowserTracing",setup(e){function i(){let e=tD(),t=e&&tN(e);if(t){let e="internal_error";j&&B.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}if(n2||(i.tag="sentry_tracingErrorCallback",n2=!0,n_(i),nv(i)),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=iB();if(n&&eT()){n.mark&&I.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!iq("largest-contentful-paint"))return;let n=iM(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);iG(e,(e,i)=>{(function(e,t,r,n){nN&&B.log(`Sending LCP span (${e})`);let i=iz((eT()||0)+(t?.startTime||0)),a=eX().getScopeData().transactionName,o=t?eo(t.element):"Largest contentful paint",s={[e8]:"auto.http.browser.lcp",[e6]:"ui.webvital.lcp",[tn]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(s["lcp.element"]=eo(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),null!=t.loadTime&&(s["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(s["lcp.renderTime"]=t.renderTime),null!=t.size&&(s["lcp.size"]=t.size));let l=iW({name:o,transaction:a,attributes:s,startTime:i});l&&(l.addEvent("lcp",{[e7]:"millisecond",[te]:e}),l.end(i))})(r,t,i,e),n()})}(r):iM(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(iJ.lcp={value:e.value,unit:"millisecond"},b=t)},!0),a=iU("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(iJ.ttfb={value:e.value,unit:"millisecond"})},iL,y),o=e?function(e){let t,r=0;if(!iq("layout-shift"))return;let n=iO(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);iG(e,(e,i)=>{(function(e,t,r,n){nN&&B.log(`Sending CLS span (${e})`);let i=t?iz((eT()||0)+t.startTime):ew(),a=eX().getScopeData().transactionName,o=t?eo(t.sources[0]?.node):"Layout shift",s={[e8]:"auto.http.browser.cls",[e6]:"ui.webvital.cls",[tn]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=eo(e.node)});let l=iW({name:o,transaction:a,attributes:s,startTime:i});l&&(l.addEvent("cls",{[e7]:"",[te]:e}),l.end(i))})(r,t,i,e),n()})}(r):iO(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(iJ.cls={value:e.value,unit:""},S=t)},!0);return()=>{i?.(),a(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:d||!1,recordLcpStandaloneSpans:f||!1,client:e}),o&&function(){if(iB()&&eT()){let e=iC(i4);()=>{e()}}}(),s&&iB()&&eT()&&iI("element",i6),u&&I.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=tD();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=iz(eT()+r.startTime),{start_timestamp:n,op:i}=tP(t);if("navigation"===i&&n&&e<n)continue;let a=iz(r.duration),o={[e8]:"auto.ui.browser.metrics"},{invoker:s,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,u&&(o["code.filepath"]=u),c&&(o["code.function"]=c),-1!==d&&(o["browser.script.source_char_position"]=d),iY(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):l&&iI("longtask",({entries:e})=>{let t=tD();if(!t)return;let{op:r,start_timestamp:n}=tP(t);for(let i of e){let e=iz(eT()+i.startTime),a=iz(i.duration);"navigation"===r&&n&&e<n||iY(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[e8]:"auto.ui.browser.metrics"}})}}),c&&iI("event",({entries:e})=>{let t=tD();
19if(t){for(let r of e)if("click"===r.name){let e=iz(eT()+r.startTime),n=iz(r.duration),i={name:eo(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[e8]:"auto.ui.browser.metrics"}},a=el(r.target);a&&(i.attributes["ui.component_name"]=a),iY(t,e,e+n,i)}}}),M&&a){let e=()=>{r=ew()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function h(){let t=e[am];t&&!tP(t).timestamp&&(nc&&B.log(`[Tracing] Finishing current active span with op: ${tP(t).op}`),t.setAttribute(e9,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if(eZ()!==e)return;if(n?.isRedirect){nc&&B.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),U(e,{op:"navigation.redirect",...t},!1);return}r=void 0,h(),eK().setPropagationContext({traceId:e_(),sampleRand:Math.random(),propagationSpanId:tp()?void 0:eP()});let i=eX();i.setPropagationContext({traceId:e_(),sampleRand:Math.random(),propagationSpanId:tp()?void 0:eP()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),U(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if(eZ()!==e)return;h();let n=function(e,t){let r=function(e){let t;if(!e)return;let r=e.match(tb);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),n=to(t);if(!r?.traceId)return{traceId:e_(),sampleRand:Math.random()};let i=function(e,t){let r=tv(t?.sample_rand);if(void 0!==r)return r;let n=tv(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*n:n+Math.random()*(1-n):Math.random()}(r,n);n&&(n.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=r;return{traceId:a,parentSpanId:o,sampled:s,dsc:n||{},sampleRand:i}}(r.sentryTrace||ap("sentry-trace"),r.baggage||ap("baggage")),i=eX();i.setPropagationContext(n),tp()||(i.getPropagationContext().propagationSpanId=eP()),i.setSDKProcessingMetadata({normalizedRequest:rB()}),U(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{N&&n&&(n.setAttribute(e9,"reportPageLoaded"),n.end())})},afterAllSetup(e){var t,n,a,s,l;let u,d=es();if("off"!==C&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=I.sessionStorage?.getItem(i8);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if(tN(e)!==e)return;let t=eX().getPropagationContext();i=function(e,t,r){let n=tP(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[e5])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(nc&&B.log(`Adding previous_trace ${a} link to span ${{op:n.op,...t.spanContext()}}`),t.addLink({context:a,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${+!!i9(a)}`)),i)}(i,e,t),n&&function(e){try{I.sessionStorage.setItem(i8,JSON.stringify(e))}catch(e){nc&&B.warn("Could not store previous trace in sessionStorage",e)}}(i)});let a=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=eX(),r=t.getPropagationContext();if(a&&r.parentSpanId){a=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(i9(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=i9(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[e4]:i.sampleRate}})}(e,{linkPreviousTrace:C,consistentTraceSampling:A}),I.location){if(k){let t=eT();af(e,{name:I.location.pathname,startTime:t?t/1e3:void 0,attributes:{[e3]:"url",[e8]:"auto.pageload.browser"}})}O&&nl(({to:t,from:n})=>{if(void 0===n&&d?.indexOf(t)!==-1){d=void 0;return}d=void 0;let i=r7(t),a=e[am],o=a&&M&&function(e,t){let r=tP(e),n=eE();return!(n-r.start_timestamp>1.5)&&(!t||!(n-t<=1.5))}(a,r);ah(e,{name:i?.pathname||I.location.pathname,attributes:{[e3]:"url",[e8]:"auto.navigation.browser"}},{url:t,isRedirect:o})})}g&&(I.document?I.document.addEventListener("visibilitychange",()=>{let e=tD();if(!e)return;let t=tN(e);if(I.document.hidden&&t){let e="cancelled",{op:r,status:n}=tP(t);nc&&B.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):nc&&B.warn("[Tracing] Could not set up background tab detection due to lack of global document")),c&&(t=e,n=p,a=m,s=_,l=i,I.document&&addEventListener("click",()=>{let e="ui.action.click",r=t[am];if(r&&["navigation","pageload"].includes(tP(r).op)){nc&&B.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(u&&(u.setAttribute(e9,"interactionInterrupted"),u.end(),u=void 0),!l.name){nc&&B.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}u=n1({name:l.name,op:e,attributes:{[e3]:l.source||"url"}},{idleTimeout:n,finalTimeout:a,childSpanTimeout:s}
19)},{capture:!0})),o&&function(){let e=Object.keys(i5);function t(e){let t=e.target;if(!t)return;let r=eo(t),n=Math.round(e.timeStamp);if(i3.set(n,r),i3.size>50){let e=i3.keys().next().value;void 0!==e&&i3.delete(e)}}i0()&&e.forEach(e=>{I.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=tD(),r=t&&tN(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||i2.has(t))return;let n=e.target?eo(e.target):function(e){let t=Math.round(e.startTime),r=i3.get(t);if(!r)for(let e=-5;e<=5;e++){let n=i3.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(i1.length>10){let e=i1.shift();i2.delete(e)}i1.push(t),i2.set(t,{span:r,elementName:n})})};iI("event",r),iI("first-input",r)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:l,onRequestSpanEnd:u}={...au,...t},c="function"==typeof a?a:e=>!0,d=e=>(function(e,t){let r=es();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let a=n.origin===i;return t?eH(n.toString(),t)||a&&eH(n.pathname,t):a}{let r=!!e.match(/^\/(?!\/)/);return t?eH(e,t):r}})(e,s),f={},h=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=al.get(e.span_id);t&&(e.timestamp=t/1e3,al.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";rV(t,e),rX(t,()=>r0(r2))}(e=>{if(e.response){let t=as.get(e.response);t&&e.endTimestamp&&al.set(t,e.endTimestamp)}}),rQ(e=>{let t=function(e,t,r,n,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=tp()&&t(o);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(function(e,t){if(t.response){tm(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(r,e),function(e,t,r){let n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}(r,e,i),delete n[t]);return}let{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof i?i:{spanOrigin:i},c=!!tD(),d=s&&c?nV(function(e,t,r){let n=r7(e);return{name:n?`${t} ${function(e){if(r9(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(n)}`:t,attributes:function(e,t,r,n){let i={url:e,type:"fetch","http.method":r,[e8]:n,[e6]:"http.client"};return t&&(r9(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}(e,n,t,r)}}(o,a,l)):new nY;if(e.fetchData.__span=d.spanContext().spanId,n[d.spanContext().spanId]=d,r(e.fetchData.url)){let t=e.args[0],r=e.args[1]||{},n=function(e,t,r,n){var i;let a=i7({span:r,propagateTraceparent:n}),o=a["sentry-trace"],s=a.baggage,l=a.traceparent;if(!o)return;let u=t.headers||(ea(e)?e.headers:void 0);if(!u)return{...a};if(i=u,"undefined"!=typeof Headers&&en(i,Headers)){let e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&l&&!e.get("traceparent")&&e.set("traceparent",l),s){let t=e.get("baggage");t?ae(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(u)){let e=[...u];u.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&l&&!u.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=u.find(e=>"baggage"===e[0]&&ae(e[1]));return s&&!t&&e.push(["baggage",s]),e}{let e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,r="baggage"in u?u.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],a=r&&(Array.isArray(r)?r.find(e=>ae(e)):ae(r));s&&!a&&i.push(s);let c={...u,"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0};return n&&l&&!t&&(c.traceparent=l),c}}(t,r,tp()&&c?d:void 0,u);n&&(e.args[1]=r,r.headers=n)}let f=eZ();if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",d,t)}return d}(e,c,d,f,{propagateTraceparent:h,onRequestSpanEnd:u});if(e.response&&e.fetchData.__span&&as.set(e.response,e.fetchData.__span),t){let r=aa(e.fetchData.url),n=r?ne(r).host:void 0;
19t.setAttributes({"http.url":r,"server.address":n}),o&&ac(t),l?.(t,{headers:e.headers})}})),n&&no(e=>{let t=function(e,t,r,n,i,a){let o=e.xhr,s=o?.[na];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=tp()&&t(l);if(e.endTimestamp&&c){let t=o.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&void 0!==s.status_code&&(tm(r,s.status_code),r.end(),a?.(r,{headers:ao(ai(o)),error:e.error}),delete n[t]);return}let d=aa(l),f=d?ne(d):ne(l),h=nt(l),p=!!tD(),m=c&&p?nV({name:`${u} ${h}`,attributes:{url:l,type:"xhr","http.method":u,"http.url":d,"server.address":f?.host,[e8]:"auto.http.browser",[e6]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new nY;o.__sentry_xhr_span_id__=m.spanContext().spanId,n[o.__sentry_xhr_span_id__]=m,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:a}=i7({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,a)}(o,tp()&&p?m:void 0,i);let _=eZ();return _&&_.emit("beforeOutgoingRequestSpan",m,e),m}(e,c,d,f,h,u);t&&(o&&ac(t),l?.(t,{headers:ao(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:v,traceXHR:E,trackFetchStreamPerformance:w,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:T,enableHTTPTimings:x,onRequestSpanStart:D,onRequestSpanEnd:L})}}})({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){if(I.document.getElementById("__NEXT_DATA__"))aI.events.on("routeChangeStart",t=>{let r,n,i=nt(t),a=function(e){let t=I.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r=function(e){let t=e.split("/"),r="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}(t);return e.match(r)})}(i);a?(r=a,n="route"):(r=i,n="url"),ah(e,{name:r,attributes:{[e6]:"navigation",[e8]:"auto.navigation.nextjs.pages_router_instrumentation",[e3]:n}})});else{O=(t,r)=>{let n=aT.env._sentryBasePath??I._sentryBasePath,i=new URL(n&&!t.startsWith(n)?`${n}${t}`:t,I.location.href).pathname,a=aw(i),o=a??i;"router-patch"===aR&&(aR="transition-start-hook");let s=aP.current;s?(s.updateName(o),s.setAttributes({"navigation.type":`router.${r}`,[e3]:a?"route":"url"}),aP.current=void 0):ah(e,{name:o,attributes:{[e6]:"navigation",[e8]:"auto.navigation.nextjs.app_router_instrumentation",[e3]:a?"route":"url","navigation.type":`router.${r}`}})},I.addEventListener("popstate",()=>{let t=aw(I.location.pathname);aP.current?.isRecording()?(aP.current.updateName(t??I.location.pathname),aP.current.setAttribute(e3,t?"route":"url")):aP.current=ah(e,{name:t??I.location.pathname,attributes:{[e8]:"auto.navigation.nextjs.app_router_instrumentation",[e3]:t?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,r=0,n=setInterval(()=>{r++;let i=I?.next?.router??I?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,aM(e,i,aP),["nd","next"].forEach(t=>{let r=I[t];r&&(I[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&aM(e,n,aP),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(I.document.getElementById("__NEXT_DATA__")){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e,t=I.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{a_&&B.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:a}=e;return r.route=n,r.params=i,a?.pageProps&&(r.sentryTrace=a.pageProps._sentryTraceData,r.baggage=a.pageProps._sentryBaggage),r}(),a=ts(i),o=t||I.location.pathname;a?.["sentry-transaction"]&&"/_error"===o&&(o=(o=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=eT();af(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[e6]:"pageload",[e8]:"auto.pageload.nextjs.pages_router_instrumentation",[e3]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}else{let t=aw(I.location.pathname),r=eT();af(e,{name:t??I.location.pathname,startTime:r?r/1e3:void 0,attributes:{[e6]:"pageload",[e8]:"auto.pageload.nextjs.app_router_instrumentation",[e3]:t?"route":"url"}})}}(e)}}}());let r=aF.env._sentryBasePath||I._sentryBasePath,n="true"===aF.env._experimentalThirdPartyOriginStackFrames||"true"===I._experimentalThirdPartyOriginStackFrames;return t.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in I&&!!I.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),a=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||a){let e=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=t?function(e,t){e=aN(e).slice(1),t=aN(t).slice(1);let r=aD(e.split("/")),n=aD(t.split("/")),i=Math.min(r.length,n.length),a=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){a=e;break}let o=[];for(let e=a;
19e<r.length;e++)o.push("..");return(o=o.concat(n.slice(a))).join("/")}(t,e):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=aA.exec(t);return r?r.slice(1):[]}(e)[2]||"";n.filename=`${r}${a}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:i=>{if(n){let r="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:"https://static-prod.ilpost.it/apps/newsletter",basePath:r,rewriteFramesAssetPrefixPath:"/apps/newsletter",experimentalThirdPartyOriginStackFrames:n})),t}(e),release:"662e1420311b2f070d3a3b69db3ce106a7c163d4",...e};!function(e){let t=aU.env._sentryRewritesTunnelPath||I._sentryRewritesTunnelPath;if(t&&e.dsn){let r=tf(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],a=n[2],o=`${t}?o=${i}&p=${r.projectId}`;a&&(o+=`&r=${a}`),e.tunnel=o,a_&&B.log(`Tunneling events to "${o}"`)}else a_&&B.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),z(t,"nextjs",["nextjs","react"]),function(e){let t={...e};z(t,"react"),tV("react",{version:n$.version}),function(e={}){var t,r;let n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===I.window||I.nw)return!1;let e=I.chrome||I.browser;if(!e?.runtime?.id)return!1;let t=es();return!(I===I.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>
19t.startsWith(`${e}://`)))}()&&(nc&&$(()=>{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?nF():e.defaultIntegrations,a={...e,enabled:!n&&e.enabled,stackParser:Array.isArray(t=e.stackParser||nI)?eI(...t):t,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||nU};!0===a.debug&&(j?B.enable():$(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),eX().update(a.initialScope);let o=new rz(a);r=o,eX().setClient(r),o.init()}(t)}(t);let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",tX(r);let n=e=>"transaction"===e.type&&e.transaction===ax?null:e;n.id="IncompleteTransactionFilter",tX(n);let i=(e,t)=>{var r;return G(r=t?.originalException)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e};i.id="NextRedirectErrorFilter",tX(i)}({...lD,tracesSampleRate:.2,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new lI(e)]})}}({app:C.FG.newsletter})},4807:(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},defaultHead:function(){return d}});let n=r(758),i=r(8963),a=r(6029),o=i._(r(5729)),s=n._(r(9080)),l=r(8407),u=r(2903),c=r(4879);function d(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(9687);let h=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let a=!0,o=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){o=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?a=!1:t.add(i.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?a=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!o)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}return a}}()).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,o.useContext)(l.AmpStateContext),n=(0,o.useContext)(u.HeadManagerContext);return(0,a.jsx)(s.default,{reduceComponentsToState:p,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)},4848:(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 p},isAssetError:function(){return c},markAssetError:function(){return u}}),r(758),r(7899);let n=r(9834),i=r(4455),a=r(6220),o=r(8640);function s(e,t,r){let n,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}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}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function h(e,t,r){return new Promise((n,a)=>{let o=!1;e.then(e=>{o=!0,n(e)}).catch(a),(0,i.requestIdleCallback)(()=>setTimeout(()=>{o||a(r)}
19,t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):h(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 m(e,t){return p().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,o.encodeURIPath)(t));return{scripts:i.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:i.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function _(e){let t=new Map,r=new Map,n=new Map,a=new Map;function o(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=>s(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})}
19,loadRoute(r,n){return s(r,a,()=>{let i;return h(m(e,r).then(e=>{let{scripts:n,css:i}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(o)),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():m(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 a='\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]';if(document.querySelector(a))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)},4879:(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}})},4957:(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 p},APP_DIR_ALIAS:function(){return N},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return I},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return V},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 P},INSTRUMENTATION_HOOK_FILENAME:function(){return M},JSON_CONTENT_TYPE_HEADER:function(){return i},MATCHED_PATH_HEADER:function(){return s},MIDDLEWARE_FILENAME:function(){return k},MIDDLEWARE_LOCATION_REGEXP:function(){return O},NEXT_BODY_SUFFIX:function(){return g},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return x},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return v},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return b},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return T},NEXT_CACHE_TAGS_HEADER:function(){return y},NEXT_CACHE_TAG_MAX_ITEMS:function(){return E},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return m},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return o},NEXT_META_SUFFIX:function(){return _},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return S},NON_STANDARD_NODE_ENV:function(){return Z},PAGES_DIR_ALIAS:function(){return C},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return u},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Y},ROOT_DIR_ALIAS:function(){return A},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return H},RSC_ACTION_ENCRYPTION_ALIAS:function(){return $},RSC_ACTION_PROXY_ALIAS:function(){return j},RSC_ACTION_VALIDATE_ALIAS:function(){return L},RSC_CACHE_WRAPPER_ALIAS:function(){return U},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return F},RSC_MOD_REF_PROXY_ALIAS:function(){return D},RSC_PREFETCH_SUFFIX:function(){return c},RSC_SEGMENTS_DIR_SUFFIX:function(){return d},RSC_SEGMENT_SUFFIX:function(){return f},RSC_SUFFIX:function(){return h},SERVER_PROPS_EXPORT_ERROR:function(){return G},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return B},SERVER_PROPS_SSG_CONFLICT:function(){return z},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Q},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return W},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return q},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",a="nxtP",o="nxtI",s="x-matched-path",l="x-prerender-revalidate",u="x-prerender-revalidate-if-generated",c=".prefetch.rsc",d=".segments",f=".segment.rsc",h=".rsc",p=".action",m=".json",_=".meta",g=".body",y="x-next-cache-tags",v="x-next-revalidated-tags",b="x-next-revalidate-tag-token",S="next-resume",E=128,w=256,T=1024,x="_N_T_",R=31536e3,P=0xfffffffe,k="middleware",O=`(?:src/)?${k}`,M="instrumentation",C="private-next-pages",I="private-dot-next",A="private-next-root-dir",N="private-next-app-dir",D="private-next-rsc-mod-ref-proxy",
19L="private-next-rsc-action-validate",j="private-next-rsc-server-reference",U="private-next-rsc-cache-wrapper",F="private-next-rsc-track-dynamic-import",$="private-next-rsc-action-encryption",H="private-next-rsc-action-client-wrapper",Y="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",W="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",B="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",z="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",q="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",G="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",V="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",Z='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',Q="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__"}},4974:(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}})},5255:(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 a}});let n=r(3016);function i(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(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})}},5280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
19dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5431:(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 a},isRedirectError:function(){return o}});let n=r(4033),i="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function o(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,o=t.slice(2,-2).join(";"),s=Number(t.at(-2));return r===i&&("replace"===a||"push"===a)&&"string"==typeof o&&!isNaN(s)&&s 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)},5517:(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}},5533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(758)._(r(5729)),i=r(9227),a=n.default.createContext(i.imageConfigDefault)},5588:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(4190),("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)},5756:(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}},5765:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(4974),i=r(4190),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,i.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+a:t.endsWith("/")?""+t+r+a:t+"/"+r+a};("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)},5999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});let n=r(6364);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)},6095:(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(758),i=r(3371),a=n._(r(5255)),o=r(7409),s=new WeakSet;function l(e){return s.has(e)}let u=e=>{let t=(0,a.default)(e)&&"cause"in e?e.cause:e;(0,i.isBailoutToCSRError)(t)||(0,o.reportGlobalError)(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)},6220:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},6261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(2018),i=r(3344);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),o=t?new URL(t,a):e.startsWith(".")?
19new URL(window.location.href):a,{pathname:s,searchParams:l,search:u,hash:c,href:d,origin:f}=new URL(e,o);if(f!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:s,query:r?(0,i.searchParamsToUrlQuery)(l):void 0,search:u,hash:c,href:d.slice(f.length),slashes:void 0}}},6364:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let n=r(4190);function i(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},6394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(7678),r(2670);let n=r(1693);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)},6425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return h}});let n=r(3344),i=r(2584),a=r(102),o=r(2018),s=r(5765),l=r(1413),u=r(8325),c=r(397),d=r(8870),f=r(2967);function h(e,t,r){let h,p="string"==typeof t?t:(0,i.formatWithValidation)(t),m=p.match(/^[a-z][a-z0-9+.-]*:\/\//i),_=m?p.slice(m[0].length):p;if((_.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,o.normalizeRepeatedSlashes)(_);p=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(p))return r?[p]:p;try{let t=p.startsWith("#")?e.asPath:e.pathname;if(p.startsWith("?")&&(t=e.asPath,(0,u.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,f.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}h=new URL(t,"http://n")}catch(e){h=new URL("/","http://n")}try{let e=new URL(p,h);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:o,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);o&&(t=(0,i.formatWithValidation)({pathname:o,hash:e.hash,query:(0,a.omit)(r,s)}))}let o=e.origin===h.origin?e.href.slice(e.origin.length):e.href;return r?[o,t||o]:o}catch(e){return r?[p]:p}}("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)},6456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=r(4190);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return""+r+t+i+a}},6778:(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 a},stripParameterSeparators:function(){return o}});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 a(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 o(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}},6896:(e,t,r)=>{"use strict";function n(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(289);return n(Array.isArray(t)?t.join("; "):t)}}
19Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getCookieParser",{enumerable:!0,get:function(){return n}})},6899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(8325),i=r(2947);function a(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},6963:(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 o},PathnameContext:function(){return a},SearchParamsContext:function(){return i}});let n=r(5729),i=(0,n.createContext)(null),a=(0,n.createContext)(null),o=(0,n.createContext)(null)},7006:(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 a.default},createRouter:function(){return m},default:function(){return h},makePublicRouterInstance:function(){return _},useRouter:function(){return p},withRouter:function(){return l.default}});let n=r(758),i=n._(r(5729)),a=n._(r(4364)),o=r(1828),s=n._(r(5255)),l=n._(r(9739)),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 f(){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:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get:()=>f()[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 f()[e](...r)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{u.ready(()=>{a.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,s.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let h=u;function p(){let e=i.default.useContext(o.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 m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.router=new a.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=a.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)},7024:(e,t,r)=>{"use strict";r.d(t,{N9:()=>D,oR:()=>T});var n=r(5729);let i=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n};var a=e=>"number"==typeof e&&!isNaN(e),o=e=>"string"==typeof e||"function"==typeof e?e:null,s=e=>(0,n.isValidElement)(e)||"string"==typeof e||"function"==typeof e||a(e);function l({enter:e,exit:t,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}){return function({children:o,position:s,preventExitTransition:l,done:u,nodeRef:c,isIn:d,playToast:f}){let h=r?`${e}--${s}`:e,p=r?`${t}--${s}`:t,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>
19{let e=c.current,t=h.split(" "),r=n=>{n.target===c.current&&(f(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===m.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=c.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r=300){let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,u,a):u()};d||(l?t():(m.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[d]),n.createElement(n.Fragment,null,o)}}function u(e,t){return{content:c(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function c(e,t,r=!1){return(0,n.isValidElement)(e)&&"string"!=typeof e.type?(0,n.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):"function"==typeof e?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function d({delay:e,isRunning:t,closeToast:r,type:a="default",hide:o,className:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:f}){let h=o||l&&0===u,p={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(p.transform=`scaleX(${u})`);let m=i("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":c}),_="function"==typeof s?s({rtl:c,type:a,defaultClassName:m}):i(m,s);return n.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},n.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}`}),n.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer","aria-valuenow":l?Math.round(100*u):void 0,"aria-valuemin":0,"aria-valuemax":100,className:_,style:p,...{[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}}}))}var f=1,h=()=>`${f++}`,p=new Map,m=[],_=new Set,g=e=>_.forEach(t=>t(e));function y(e,t){var r;if(t)return!!(null!=(r=p.get(t))&&r.isToastActive(e));let n=!1;return p.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function v(e,t){s(e)&&(p.size>0||m.push({content:e,options:t}),p.forEach(r=>{r.buildToast(e,t)}))}function b(e,t){p.forEach(r=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==r.id||r.toggle(e,null==t?void 0:t.id)})}function S(e,t){return v(e,t),t.toastId}function E(e,t){var r;return{...t,type:t&&t.type||e,toastId:(r=t)&&("string"==typeof r.toastId||a(r.toastId))?r.toastId:h()}}function w(e){return(t,r)=>S(t,E(e,r))}function T(e,t){return S(e,E("default",t))}T.loading=(e,t)=>
19S(e,E("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),T.promise=function(e,{pending:t,error:r,success:n},i){let a;t&&(a="string"==typeof t?T.loading(t,i):T.loading(t.render,{...i,...t}));let o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(e,t,r)=>{if(null==t)return void T.dismiss(a);let n={type:e,...o,...i,data:r},s="string"==typeof t?{render:t}:t;return a?T.update(a,{...n,...s}):T(s.render,{...n,...s}),r},l="function"==typeof e?e():e;return l.then(e=>s("success",n,e)).catch(e=>s("error",r,e)),l},T.success=w("success"),T.info=w("info"),T.error=w("error"),T.warning=w("warning"),T.warn=T.warning,T.dark=(e,t)=>S(e,E("default",{theme:"dark",...t})),T.dismiss=function(e){!function(e){let t;if(!(p.size>0)){m=m.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||"string"==typeof(t=e)||a(t))p.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=p.get(e.containerId);t?t.removeToast(e.id):p.forEach(t=>{t.removeToast(e.id)})}}(e)},T.clearWaitingQueue=(e={})=>{p.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},T.isActive=y,T.update=(e,t={})=>{let r=((e,{containerId:t})=>{var r;return null==(r=p.get(t||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:i}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:h()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,S(o,a)}},T.done=e=>{T.update(e,{progress:1})},T.onChange=function(e){return _.add(e),()=>{_.delete(e)}},T.play=e=>b(!0,e),T.pause=e=>b(!1,e);var x="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,R=({theme:e,type:t,isLoading:r,...i})=>n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...i}),P={info:function(e){return n.createElement(R,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(R,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(R,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(R,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}},k=e=>{let{isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:o,playToast:s}=function(e){var t,r;let[i,a]=(0,n.useState)(!1),[o,s]=(0,n.useState)(!1),l=(0,n.useRef)(null),u=(0,n.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:f,onClick:h,closeOnClick:m}=e;function _(){a(!0)}function g(){a(!1)}function y(t){let r=l.current;if(u.canDrag&&r){u.didMove=!0,i&&g(),"x"===e.draggableDirection?u.delta=t.clientX-u.start:u.delta=t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1);let n="x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`;r.style.transform=`translate3d(${n},0)`,r.style.opacity=`${1-Math.abs(u.delta/u.removalDistance)}`}}function v(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",v);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance){s(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}t={id:e.toastId,containerId:e.containerId,fn:a},null==(r=p.get(t.containerId||1))||r.setToggle(t.id,t.fn),(0,n.useEffect)(()=>
19{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",_),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",_),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);let b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",v);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:a}=l.current.getBoundingClientRect();"mouse"===t.pointerType&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=a&&t.clientY>=r&&t.clientY<=n?g():_()}};return c&&d&&(b.onMouseEnter=g,e.stacked||(b.onMouseLeave=_)),m&&(b.onClick=e=>{h&&h(e),u.canCloseOnClick&&f(!0)}),{playToast:_,pauseToast:g,isRunning:i,preventExitTransition:o,toastRef:l,eventHandlers:b}}(e),{closeButton:l,children:u,autoClose:f,onClick:h,type:m,hideProgressBar:_,closeToast:g,transition:y,position:v,className:b,style:S,progressClassName:E,updateId:w,role:T,progress:x,rtl:R,toastId:k,deleteToast:O,isIn:M,isLoading:C,closeOnClick:I,theme:A,ariaLabel:N}=e,D=i("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":R},{"Toastify__toast--close-on-click":I}),L="function"==typeof b?b({rtl:R,position:v,type:m,defaultClassName:D}):i(D,b),j=function({theme:e,type:t,isLoading:r,icon:i}){let a=null,o={theme:e,type:t};return!1===i||("function"==typeof i?a=i({...o,isLoading:r}):(0,n.isValidElement)(i)?a=(0,n.cloneElement)(i,o):r?a=P.spinner():t in P&&(a=P[t](o))),a}(e),U=!!x||!f,F={closeToast:g,type:m,theme:A},$=null;return!1===l||($="function"==typeof l?l(F):(0,n.isValidElement)(l)?(0,n.cloneElement)(l,F):function({closeToast:e,theme:t,ariaLabel:r="close"}){return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(F)),n.createElement(y,{isIn:M,done:O,position:v,preventExitTransition:r,nodeRef:a,playToast:s},n.createElement("div",{id:k,tabIndex:0,onClick:h,"data-in":M,className:L,...o,style:S,ref:a,...M&&{role:T,"aria-label":N}},null!=j&&n.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!C})},j),c(u,e,!t),$,!e.customProgressBar&&n.createElement(d,{...w&&!U?{key:`p-${w}`}:{},rtl:R,theme:A,delay:f,isRunning:t,isIn:M,closeToast:g,hide:_,type:m,className:E,controlledProgress:U,progress:x||0})))},O=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),M=l(O("bounce",!0));l(O("slide",!0)),l(O("zoom")),l(O("flip"));var C={position:"top-right",transition:M,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function I(e){let t={...C,...e},r=e.stacked,[l,c]=(0,n.useState)(!0),d=(0,n.useRef)(null),{getToastToRender:f,isToastActive:h,count:_}=function(e){var t;let r,{subscribe:i,getSnapshot:l,setProps:c}=(0,n.useRef)((r=e.containerId||1,{subscribe(t){let n,i,l,c,d,f,h,_,y,b,S,E=(n=1,i=0,l=[],c=[],d=e,f=new Map,h=new Set,_=()=>{c=Array.from(f.values()),h.forEach(e=>e())},y=e=>{var t,r;e.isActive&&(null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1,g(u(e,"removed")))},b=e=>{if(null==e)f.forEach(y);else{let t=f.get(e);t&&y(t)}_()},S=e=>{var t,r;let{toastId:n,updateId:i}=e.props,a=null==i;e.staleId&&f.delete(e.staleId),e.isActive=!0,f.set(n,e),_(),g(u(e,a?"added":"updated")),a&&(null==(r=(t=e.props).onOpen)||r.call(t))},{id:r,props:d,observe:e=>(h.add(e),()=>h.delete(e)),toggle:(e,t)=>
19{f.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:b,toasts:f,clearQueue:()=>{i-=l.length,l=[]},buildToast:(e,t)=>{let u,c;if((({containerId:e,toastId:t,updateId:n})=>{let i=f.has(t)&&null==n;return(e?e!==r:1!==r)||i})(t))return;let{toastId:h,updateId:p,data:m,staleId:g,delay:y}=t,v=null==p;v&&i++;let E={...d,style:d.toastStyle,key:n++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:h,updateId:p,data:m,isIn:!1,className:o(t.className||d.toastClassName),progressClassName:o(t.progressClassName||d.progressClassName),autoClose:!t.isLoading&&(u=t.autoClose,c=d.autoClose,!1===u||a(u)&&u>0?u:c),closeToast(e){let t=f.get(h);t&&(t.removalReason=e,b(h))},deleteToast(){if(null!=f.get(h)){if(f.delete(h),--i<0&&(i=0),l.length>0)return void S(l.shift());_()}}};E.closeButton=d.closeButton,!1===t.closeButton||s(t.closeButton)?E.closeButton=t.closeButton:!0===t.closeButton&&(E.closeButton=!s(d.closeButton)||d.closeButton);let w={content:e,props:E,staleId:g};d.limit&&d.limit>0&&i>d.limit&&v?l.push(w):a(y)?setTimeout(()=>{S(w)},y):S(w)},setProps(e){d=e},setToggle:(e,t)=>{let r=f.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=f.get(e))?void 0:t.isActive},getSnapshot:()=>c});p.set(r,E);let w=E.observe(t);return m.forEach(e=>v(e.content,e.options)),m=[],()=>{w(),p.delete(r)}},setProps(e){var t;null==(t=p.get(r))||t.setProps(e)},getSnapshot(){var e;return null==(e=p.get(r))?void 0:e.getSnapshot()}})).current;c(e);let d=null==(t=(0,n.useSyncExternalStore)(i,l,l))?void 0:t.slice();return{getToastToRender:function(t){if(!d)return[];let r=new Map;return e.newestOnTop&&d.reverse(),d.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:y,count:null==d?void 0:d.length}}(t),{className:b,style:S,rtl:E,containerId:w,hotKeys:R}=t;function P(){r&&(c(!0),T.play())}return x(()=>{var e;if(r){let r=d.current.querySelectorAll('[data-in="true"]'),n=null==(e=t.position)?void 0:e.includes("top"),i=0,a=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${l}`),e.dataset.pos||(e.dataset.pos=n?"top":"bot");let r=i*(l?.2:1)+(l?0:12*t),o=Math.max(.5,1-(l?a:0));e.style.setProperty("--y",`${n?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${o}`),i+=e.offsetHeight,a+=.025})}},[l,_,r]),(0,n.useEffect)(()=>{function e(e){var t;let r=d.current;R(e)&&(null==(t=null==r?void 0:r.querySelector('[tabIndex="0"]'))||t.focus(),c(!1),T.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(c(!0),T.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[R]),n.createElement("section",{ref:d,className:"Toastify",id:w,onMouseEnter:()=>{r&&(c(!1),T.pause())},onMouseLeave:P,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},f((e,t)=>{var a;let s,l=t.length?{...S}:{...S,pointerEvents:"none"};return n.createElement("div",{tabIndex:-1,className:(a=e,s=i("Toastify__toast-container",`Toastify__toast-container--${a}`,{"Toastify__toast-container--rtl":E}),"function"==typeof b?b({position:a,rtl:E,defaultClassName:s}):i(s,o(b))),"data-stacked":r,style:l,key:`c-${e}`},t.map(({content:e,props:t})=>n.createElement(k,{...t,stacked:r,collapseAll:P,isIn:h(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}var A
vendor: 17,403 bytes, lines 19-825
19=`:root {
20  --toastify-color-light: #fff;
21  --toastify-color-dark: #121212;
22  --toastify-color-info: #3498db;
23  --toastify-color-success: #07bc0c;
24  --toastify-color-warning: #f1c40f;
25  --toastify-color-error: hsl(6, 78%, 57%);
26  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
27
28  --toastify-icon-color-info: var(--toastify-color-info);
29  --toastify-icon-color-success: var(--toastify-color-success);
30  --toastify-icon-color-warning: var(--toastify-color-warning);
31  --toastify-icon-color-error: var(--toastify-color-error);
32
33  --toastify-container-width: fit-content;
34  --toastify-toast-width: 320px;
35  --toastify-toast-offset: 16px;
36  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
37  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
38  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
39  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
40  --toastify-toast-background: #fff;
41  --toastify-toast-padding: 14px;
42  --toastify-toast-min-height: 64px;
43  --toastify-toast-max-height: 800px;
44  --toastify-toast-bd-radius: 6px;
45  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
46  --toastify-font-family: sans-serif;
47  --toastify-z-index: 9999;
48  --toastify-text-color-light: #757575;
49  --toastify-text-color-dark: #fff;
50
51  /* Used only for colored theme */
52  --toastify-text-color-info: #fff;
53  --toastify-text-color-success: #fff;
54  --toastify-text-color-warning: #fff;
55  --toastify-text-color-error: #fff;
56
57  --toastify-spinner-color: #616161;
58  --toastify-spinner-color-empty-area: #e0e0e0;
59  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
60  --toastify-color-progress-dark: #bb86fc;
61  --toastify-color-progress-info: var(--toastify-color-info);
62  --toastify-color-progress-success: var(--toastify-color-success);
63  --toastify-color-progress-warning: var(--toastify-color-warning);
64  --toastify-color-progress-error: var(--toastify-color-error);
65  /* used to control the opacity of the progress trail */
66  --toastify-color-progress-bgo: 0.2;
67}
68
69.Toastify__toast-container {
70  z-index: var(--toastify-z-index);
71  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
72  position: fixed;
73  width: var(--toastify-container-width);
74  box-sizing: border-box;
75  color: #fff;
76  display: flex;
77  flex-direction: column;
78}
79
80.Toastify__toast-container--top-left {
81  top: var(--toastify-toast-top);
82  left: var(--toastify-toast-left);
83}
84.Toastify__toast-container--top-center {
85  top: var(--toastify-toast-top);
86  left: 50%;
87  transform: translateX(-50%);
88  align-items: center;
89}
90.Toastify__toast-container--top-right {
91  top: var(--toastify-toast-top);
92  right: var(--toastify-toast-right);
93  align-items: end;
94}
95.Toastify__toast-container--bottom-left {
96  bottom: var(--toastify-toast-bottom);
97  left: var(--toastify-toast-left);
98}
99.Toastify__toast-container--bottom-center {
100  bottom: var(--toastify-toast-bottom);
101  left: 50%;
102  transform: translateX(-50%);
103  align-items: center;
104}
105.Toastify__toast-container--bottom-right {
106  bottom: var(--toastify-toast-bottom);
107  right: var(--toastify-toast-right);
108  align-items: end;
109}
110
111.Toastify__toast {
112  --y: 0px;
113  position: relative;
114  touch-action: none;
115  width: var(--toastify-toast-width);
116  min-height: var(--toastify-toast-min-height);
117  box-sizing: border-box;
118  margin-bottom: 1rem;
119  padding: var(--toastify-toast-padding);
120  border-radius: var(--toastify-toast-bd-radius);
121  box-shadow: var(--toastify-toast-shadow);
122  max-height: var(--toastify-toast-max-height);
123  font-family: var(--toastify-font-family);
124  /* webkit only issue #791 */
125  z-index: 0;
126  /* inner swag */
127  display: flex;
128  flex: 1 auto;
129  align-items: center;
130  word-break: break-word;
131}
132
133@media only screen and (max-width: 480px) {
134  .Toastify__toast-container {
135    width: 100vw;
136    left: env(safe-area-inset-left);
137    margin: 0;
138  }
139  .Toastify__toast-container--top-left,
140  .Toastify__toast-container--top-center,
141  .Toastify__toast-container--top-right {
142    top: env(safe-area-inset-top);
143    transform: translateX(0);
144  }
145  .Toastify__toast-container--bottom-left,
146  .Toastify__toast-container--bottom-center,
147  .Toastify__toast-container--bottom-right {
148    bottom: env(safe-area-inset-bottom);
149    transform: translateX(0);
150  }
151  .Toastify__toast-container--rtl {
152    right: env(safe-area-inset-right);
153    left: initial;
154  }
155  .Toastify__toast {
156    --toastify-toast-width: 100%;
157    margin-bottom: 0;
158    border-radius: 0;
159  }
160}
161
162.Toastify__toast-container[data-stacked='true'] {
163  width: var(--toastify-toast-width);
164}
165
166@media only screen and (max-width: 480px) {
167  .Toastify__toast-container[data-stacked='true'] {
168    width: 100vw;
169  }
170}
171
172.Toastify__toast--stacked {
173  position: absolute;
174  width: 100%;
175  transform: translate3d(0, var(--y), 0) scale(var(--s));
176  transition: transform 0.3s;
177}
178
179.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
180.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
181  transition: opacity 0.1s;
182}
183
184.Toastify__toast--stacked[data-collapsed='false'] {
185  overflow: visible;
186}
187
188.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
189  opacity: 0;
190}
191
192.Toastify__toast--stacked:after {
193  content: '';
194  position: absolute;
195  left: 0;
196  right: 0;
197  height: calc(var(--g) * 1px);
198  bottom: 100%;
199}
200
201.Toastify__toast--stacked[data-pos='top'] {
202  top: 0;
203}
204
205.Toastify__toast--stacked[data-pos='bot'] {
206  bottom: 0;
207}
208
209.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
210  transform-origin: top;
211}
212
213.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
214  transform-origin: bottom;
215}
216
217.Toastify__toast--stacked:before {
218  content: '';
219  position: absolute;
220  left: 0;
221  right: 0;
222  bottom: 0;
223  height: 100%;
224  transform: scaleY(3);
225  z-index: -1;
226}
227
228.Toastify__toast--rtl {
229  direction: rtl;
230}
231
232.Toastify__toast--close-on-click {
233  cursor: pointer;
234}
235
236.Toastify__toast-icon {
237  margin-inline-end: 10px;
238  width: 22px;
239  flex-shrink: 0;
240  display: flex;
241}
242
243.Toastify--animate {
244  animation-fill-mode: both;
245  animation-duration: 0.5s;
246}
247
248.Toastify--animate-icon {
249  animation-fill-mode: both;
250  animation-duration: 0.3s;
251}
252
253.Toastify__toast-theme--dark {
254  background: var(--toastify-color-dark);
255  color: var(--toastify-text-color-dark);
256}
257
258.Toastify__toast-theme--light {
259  background: var(--toastify-color-light);
260  color: var(--toastify-text-color-light);
261}
262
263.Toastify__toast-theme--colored.Toastify__toast--default {
264  background: var(--toastify-color-light);
265  color: var(--toastify-text-color-light);
266}
267
268.Toastify__toast-theme--colored.Toastify__toast--info {
269  color: var(--toastify-text-color-info);
270  background: var(--toastify-color-info);
271}
272
273.Toastify__toast-theme--colored.Toastify__toast--success {
274  color: var(--toastify-text-color-success);
275  background: var(--toastify-color-success);
276}
277
278.Toastify__toast-theme--colored.Toastify__toast--warning {
279  color: var(--toastify-text-color-warning);
280  background: var(--toastify-color-warning);
281}
282
283.Toastify__toast-theme--colored.Toastify__toast--error {
284  color: var(--toastify-text-color-error);
285  background: var(--toastify-color-error);
286}
287
288.Toastify__progress-bar-theme--light {
289  background: var(--toastify-color-progress-light);
290}
291
292.Toastify__progress-bar-theme--dark {
293  background: var(--toastify-color-progress-dark);
294}
295
296.Toastify__progress-bar--info {
297  background: var(--toastify-color-progress-info);
298}
299
300.Toastify__progress-bar--success {
301  background: var(--toastify-color-progress-success);
302}
303
304.Toastify__progress-bar--warning {
305  background: var(--toastify-color-progress-warning);
306}
307
308.Toastify__progress-bar--error {
309  background: var(--toastify-color-progress-error);
310}
311
312.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
313.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
314.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
315.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
316  background: var(--toastify-color-transparent);
317}
318
319.Toastify__close-button {
320  color: #fff;
321  position: absolute;
322  top: 6px;
323  right: 6px;
324  background: transparent;
325  outline: none;
326  border: none;
327  padding: 0;
328  cursor: pointer;
329  opacity: 0.7;
330  transition: 0.3s ease;
331  z-index: 1;
332}
333
334.Toastify__toast--rtl .Toastify__close-button {
335  left: 6px;
336  right: unset;
337}
338
339.Toastify__close-button--light {
340  color: #000;
341  opacity: 0.3;
342}
343
344.Toastify__close-button > svg {
345  fill: currentColor;
346  height: 16px;
347  width: 14px;
348}
349
350.Toastify__close-button:hover,
351.Toastify__close-button:focus {
352  opacity: 1;
353}
354
355@keyframes Toastify__trackProgress {
356  0% {
357    transform: scaleX(1);
358  }
359  100% {
360    transform: scaleX(0);
361  }
362}
363
364.Toastify__progress-bar {
365  position: absolute;
366  bottom: 0;
367  left: 0;
368  width: 100%;
369  height: 100%;
370  z-index: 1;
371  opacity: 0.7;
372  transform-origin: left;
373}
374
375.Toastify__progress-bar--animated {
376  animation: Toastify__trackProgress linear 1 forwards;
377}
378
379.Toastify__progress-bar--controlled {
380  transition: transform 0.2s;
381}
382
383.Toastify__progress-bar--rtl {
384  right: 0;
385  left: initial;
386  transform-origin: right;
387  border-bottom-left-radius: initial;
388}
389
390.Toastify__progress-bar--wrp {
391  position: absolute;
392  overflow: hidden;
393  bottom: 0;
394  left: 0;
395  width: 100%;
396  height: 5px;
397  border-bottom-left-radius: var(--toastify-toast-bd-radius);
398  border-bottom-right-radius: var(--toastify-toast-bd-radius);
399}
400
401.Toastify__progress-bar--wrp[data-hidden='true'] {
402  opacity: 0;
403}
404
405.Toastify__progress-bar--bg {
406  opacity: var(--toastify-color-progress-bgo);
407  width: 100%;
408  height: 100%;
409}
410
411.Toastify__spinner {
412  width: 20px;
413  height: 20px;
414  box-sizing: border-box;
415  border: 2px solid;
416  border-radius: 100%;
417  border-color: var(--toastify-spinner-color-empty-area);
418  border-right-color: var(--toastify-spinner-color);
419  animation: Toastify__spin 0.65s linear infinite;
420}
421
422@keyframes Toastify__bounceInRight {
423  from,
424  60%,
425  75%,
426  90%,
427  to {
428    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
429  }
430  from {
431    opacity: 0;
432    transform: translate3d(3000px, 0, 0);
433  }
434  60% {
435    opacity: 1;
436    transform: translate3d(-25px, 0, 0);
437  }
438  75% {
439    transform: translate3d(10px, 0, 0);
440  }
441  90% {
442    transform: translate3d(-5px, 0, 0);
443  }
444  to {
445    transform: none;
446  }
447}
448
449@keyframes Toastify__bounceOutRight {
450  20% {
451    opacity: 1;
452    transform: translate3d(-20px, var(--y), 0);
453  }
454  to {
455    opacity: 0;
456    transform: translate3d(2000px, var(--y), 0);
457  }
458}
459
460@keyframes Toastify__bounceInLeft {
461  from,
462  60%,
463  75%,
464  90%,
465  to {
466    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
467  }
468  0% {
469    opacity: 0;
470    transform: translate3d(-3000px, 0, 0);
471  }
472  60% {
473    opacity: 1;
474    transform: translate3d(25px, 0, 0);
475  }
476  75% {
477    transform: translate3d(-10px, 0, 0);
478  }
479  90% {
480    transform: translate3d(5px, 0, 0);
481  }
482  to {
483    transform: none;
484  }
485}
486
487@keyframes Toastify__bounceOutLeft {
488  20% {
489    opacity: 1;
490    transform: translate3d(20px, var(--y), 0);
491  }
492  to {
493    opacity: 0;
494    transform: translate3d(-2000px, var(--y), 0);
495  }
496}
497
498@keyframes Toastify__bounceInUp {
499  from,
500  60%,
501  75%,
502  90%,
503  to {
504    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
505  }
506  from {
507    opacity: 0;
508    transform: translate3d(0, 3000px, 0);
509  }
510  60% {
511    opacity: 1;
512    transform: translate3d(0, -20px, 0);
513  }
514  75% {
515    transform: translate3d(0, 10px, 0);
516  }
517  90% {
518    transform: translate3d(0, -5px, 0);
519  }
520  to {
521    transform: translate3d(0, 0, 0);
522  }
523}
524
525@keyframes Toastify__bounceOutUp {
526  20% {
527    transform: translate3d(0, calc(var(--y) - 10px), 0);
528  }
529  40%,
530  45% {
531    opacity: 1;
532    transform: translate3d(0, calc(var(--y) + 20px), 0);
533  }
534  to {
535    opacity: 0;
536    transform: translate3d(0, -2000px, 0);
537  }
538}
539
540@keyframes Toastify__bounceInDown {
541  from,
542  60%,
543  75%,
544  90%,
545  to {
546    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
547  }
548  0% {
549    opacity: 0;
550    transform: translate3d(0, -3000px, 0);
551  }
552  60% {
553    opacity: 1;
554    transform: translate3d(0, 25px, 0);
555  }
556  75% {
557    transform: translate3d(0, -10px, 0);
558  }
559  90% {
560    transform: translate3d(0, 5px, 0);
561  }
562  to {
563    transform: none;
564  }
565}
566
567@keyframes Toastify__bounceOutDown {
568  20% {
569    transform: translate3d(0, calc(var(--y) - 10px), 0);
570  }
571  40%,
572  45% {
573    opacity: 1;
574    transform: translate3d(0, calc(var(--y) + 20px), 0);
575  }
576  to {
577    opacity: 0;
578    transform: translate3d(0, 2000px, 0);
579  }
580}
581
582.Toastify__bounce-enter--top-left,
583.Toastify__bounce-enter--bottom-left {
584  animation-name: Toastify__bounceInLeft;
585}
586
587.Toastify__bounce-enter--top-right,
588.Toastify__bounce-enter--bottom-right {
589  animation-name: Toastify__bounceInRight;
590}
591
592.Toastify__bounce-enter--top-center {
593  animation-name: Toastify__bounceInDown;
594}
595
596.Toastify__bounce-enter--bottom-center {
597  animation-name: Toastify__bounceInUp;
598}
599
600.Toastify__bounce-exit--top-left,
601.Toastify__bounce-exit--bottom-left {
602  animation-name: Toastify__bounceOutLeft;
603}
604
605.Toastify__bounce-exit--top-right,
606.Toastify__bounce-exit--bottom-right {
607  animation-name: Toastify__bounceOutRight;
608}
609
610.Toastify__bounce-exit--top-center {
611  animation-name: Toastify__bounceOutUp;
612}
613
614.Toastify__bounce-exit--bottom-center {
615  animation-name: Toastify__bounceOutDown;
616}
617
618@keyframes Toastify__zoomIn {
619  from {
620    opacity: 0;
621    transform: scale3d(0.3, 0.3, 0.3);
622  }
623  50% {
624    opacity: 1;
625  }
626}
627
628@keyframes Toastify__zoomOut {
629  from {
630    opacity: 1;
631  }
632  50% {
633    opacity: 0;
634    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
635  }
636  to {
637    opacity: 0;
638  }
639}
640
641.Toastify__zoom-enter {
642  animation-name: Toastify__zoomIn;
643}
644
645.Toastify__zoom-exit {
646  animation-name: Toastify__zoomOut;
647}
648
649@keyframes Toastify__flipIn {
650  from {
651    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
652    animation-timing-function: ease-in;
653    opacity: 0;
654  }
655  40% {
656    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
657    animation-timing-function: ease-in;
658  }
659  60% {
660    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
661    opacity: 1;
662  }
663  80% {
664    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
665  }
666  to {
667    transform: perspective(400px);
668  }
669}
670
671@keyframes Toastify__flipOut {
672  from {
673    transform: translate3d(0, var(--y), 0) perspective(400px);
674  }
675  30% {
676    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
677    opacity: 1;
678  }
679  to {
680    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
681    opacity: 0;
682  }
683}
684
685.Toastify__flip-enter {
686  animation-name: Toastify__flipIn;
687}
688
689.Toastify__flip-exit {
690  animation-name: Toastify__flipOut;
691}
692
693@keyframes Toastify__slideInRight {
694  from {
695    transform: translate3d(110%, 0, 0);
696    visibility: visible;
697  }
698  to {
699    transform: translate3d(0, var(--y), 0);
700  }
701}
702
703@keyframes Toastify__slideInLeft {
704  from {
705    transform: translate3d(-110%, 0, 0);
706    visibility: visible;
707  }
708  to {
709    transform: translate3d(0, var(--y), 0);
710  }
711}
712
713@keyframes Toastify__slideInUp {
714  from {
715    transform: translate3d(0, 110%, 0);
716    visibility: visible;
717  }
718  to {
719    transform: translate3d(0, var(--y), 0);
720  }
721}
722
723@keyframes Toastify__slideInDown {
724  from {
725    transform: translate3d(0, -110%, 0);
726    visibility: visible;
727  }
728  to {
729    transform: translate3d(0, var(--y), 0);
730  }
731}
732
733@keyframes Toastify__slideOutRight {
734  from {
735    transform: translate3d(0, var(--y), 0);
736  }
737  to {
738    visibility: hidden;
739    transform: translate3d(110%, var(--y), 0);
740  }
741}
742
743@keyframes Toastify__slideOutLeft {
744  from {
745    transform: translate3d(0, var(--y), 0);
746  }
747  to {
748    visibility: hidden;
749    transform: translate3d(-110%, var(--y), 0);
750  }
751}
752
753@keyframes Toastify__slideOutDown {
754  from {
755    transform: translate3d(0, var(--y), 0);
756  }
757  to {
758    visibility: hidden;
759    transform: translate3d(0, 500px, 0);
760  }
761}
762
763@keyframes Toastify__slideOutUp {
764  from {
765    transform: translate3d(0, var(--y), 0);
766  }
767  to {
768    visibility: hidden;
769    transform: translate3d(0, -500px, 0);
770  }
771}
772
773.Toastify__slide-enter--top-left,
774.Toastify__slide-enter--bottom-left {
775  animation-name: Toastify__slideInLeft;
776}
777
778.Toastify__slide-enter--top-right,
779.Toastify__slide-enter--bottom-right {
780  animation-name: Toastify__slideInRight;
781}
782
783.Toastify__slide-enter--top-center {
784  animation-name: Toastify__slideInDown;
785}
786
787.Toastify__slide-enter--bottom-center {
788  animation-name: Toastify__slideInUp;
789}
790
791.Toastify__slide-exit--top-left,
792.Toastify__slide-exit--bottom-left {
793  animation-name: Toastify__slideOutLeft;
794  animation-timing-function: ease-in;
795  animation-duration: 0.3s;
796}
797
798.Toastify__slide-exit--top-right,
799.Toastify__slide-exit--bottom-right {
800  animation-name: Toastify__slideOutRight;
801  animation-timing-function: ease-in;
802  animation-duration: 0.3s;
803}
804
805.Toastify__slide-exit--top-center {
806  animation-name: Toastify__slideOutUp;
807  animation-timing-function: ease-in;
808  animation-duration: 0.3s;
809}
810
811.Toastify__slide-exit--bottom-center {
812  animation-name: Toastify__slideOutDown;
813  animation-timing-function: ease-in;
814  animation-duration: 0.3s;
815}
816
817@keyframes Toastify__spin {
818  from {
819    transform: rotate(0deg);
820  }
821  to {
822    transform: rotate(360deg);
823  }
824}
825`
825,N=new Map;function D(e){var t;return x(()=>{if(!A||"undefined"==typeof document)return;let e=document,r=N.get(e);if(r){t&&r.setAttribute("nonce",t);return}let n=e.createElement("style");n.textContent=A,t&&n.setAttribute("nonce",t),e.head.appendChild(n),N.set(e,n)},[t=e.nonce]),n.createElement(I,{...e})}},7172:(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 y},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return _}});let n=r(758),i=r(8963),a=r(6029),o=n._(r(6760)),s=i._(r(5729)),l=r(2903),u=r(8899),c=r(4455),d=r(8991),f=new Map,h=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:s="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,p=r||t;if(p&&h.has(p))return;if(f.has(t)){h.add(p),f.get(t).then(n,c);return}let m=()=>{i&&i(),h.add(p)},_=document.createElement("script"),g=new Promise((e,t)=>{_.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),_.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(_.innerHTML=a.__html||"",m()):s?(_.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",m()):t&&(_.src=t,f.set(t,g)),(0,u.setAttributesFromProps)(_,e),"worker"===l&&_.setAttribute("type","text/partytown"),_.setAttribute("data-nscript",l),d&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.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 m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}):p(e)}function _(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:f,stylesheets:m,..._}=e,{updateScripts:g,scripts:y,getIsSsr:v,appDir:b,nonce:S}=(0,s.useContext)(l.HeadManagerContext);S=_.nonce||S;let E=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;E.current||(i&&e&&h.has(e)&&i(),E.current=!0)},[i,t,r]);let w=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{if(!w.current){if("afterInteractive"===u)p(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}));w.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(g?(y[u]=(y[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:f,..._,nonce:S}]),g(y)):v&&v()?h.add(t||r):v&&!v()&&p({...e,nonce:S})),b){if(m&&m.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!r)return _.dangerouslySetInnerHTML&&(_.children=_.dangerouslySetInnerHTML.__html,delete _.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{..._,id:t}]))+")"}});else return o.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:S,crossOrigin:_.crossOrigin}:{as:"script",nonce:S,crossOrigin:_.crossOrigin}),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([r,{..._,id:t}]))+")"}});"afterInteractive"===u&&r&&o.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:S,crossOrigin:_.crossOrigin}:{as:"script",nonce:S,crossOrigin:_.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("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)},7301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(758),i=r(6029),a=n._(r(5729)),o=n._(r(4807)),s={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"}
825,wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||s[e]||"An unexpected error has occurred";return(0,i.jsxs)("div",{style:u.error,children:[(0,i.jsx)(o.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)},7342:(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 a=e.split("/",2);if(!a[1])return{pathname:e};let o=a[1].toLowerCase(),s=i.indexOf(o);return s<0?{pathname:e}:(n=t[s],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},7409:(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)},7579:(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 a},isEqualNode:function(){return i}});let n=r(8899);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 a(){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,a="";if(r){let{children:e}=r.props;a="string"==typeof e?e:Array.isArray(e)?e.join(""):""}a!==document.title&&(document.title=a),["meta","base","link","style","script"].forEach(e=>{!function(e,t){let r=document.querySelector("head");if(!r)return;let a=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&a.add(e)}let o=[];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:a,dangerouslySetInnerHTML:o}=r;return o?i.innerHTML=o.__html||"":a&&(i.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i}(t[e]);r.setAttribute("data-next-head","");let s=!0;for(let e of a)if(i(e,r)){a.delete(e),s=!1;break}s&&o.push(r)}for(let e of a){var s;null==(s=e.parentNode)||s.removeChild(e)}for(let e of o)"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,"__esMo
825dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6220),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)},7743:(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},7899:(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}})},7918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseUrl",{enumerable:!0,get:function(){return a}});let n=r(3344),i=r(6261);function a(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)}}},7968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(758),i=r(6029),a=n._(r(5729)),o=r(2018);async function s(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,i.jsx)(e,{...t})}}l.origGetInitialProps=s,l.getInitialProps=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)},8012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=r(4974),i=r(913),a=r(6456),o=r(2703);function s(e){let t=(0,o.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,a.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,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},8325:(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(287),i=r(9811)},8364:(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 o},isInterceptionRouteAppPath:function(){return a}});let n=r(855),i=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>i.find(t=>e.startsWith(t)))}function o(e){let t,r,a;for(let n of e.split("/"))if(r=i.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)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"(.)":a="/"===t?"/"+a:t+"/"+a;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,
825configurable:!0});a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let o=t.split("/");if(o.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});a=o.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:a}}},8402:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},8407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(758)._(r(5729)).default.createContext({})},8445:(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 a},getBotType:function(){return l},isBot:function(){return s}});let n=r(7743),i=/Googlebot(?!-)|Googlebot$/i,a=n.HTML_LIMITED_BOT_UA_RE.source;function o(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function s(e){return i.test(e)||o(e)}function l(e){return i.test(e)?"dom":o(e)?"html":void 0}},8640:(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}})},8870:(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 h},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return u}});let n=r(4957),i=r(8364),a=r(5756),o=r(4974),s=r(1565);function l(e,t,r){let n={},l=1,u=[];for(let c of(0,o.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),o=c.match(s.PARAMETER_PATTERN);if(e&&o&&o[2]){let{key:t,optional:r,repeat:i}=(0,s.parseMatchedParameter)(o[2]);n[t]={pos:l++,repeat:i,optional:r},u.push("/"+(0,a.escapeStringRegexp)(e)+"([^/]+?)")}else if(o&&o[2]){let{key:e,repeat:t,optional:i}=(0,s.parseMatchedParameter)(o[2]);n[e]={pos:l++,repeat:t,optional:i},r&&o[1]&&u.push("/"+(0,a.escapeStringRegexp)(o[1]));let c=t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&o[1]&&(c=c.substring(1)),u.push(c)}else u.push("/"+(0,a.escapeStringRegexp)(c));t&&o&&o[3]&&u.push((0,a.escapeStringRegexp)(o[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:a,groups:o}=l(e,r,n),s=a;
825return i||(s+="(?:/)?"),{re:RegExp("^"+s+"$"),groups:o}}function c(e){let t,{interceptionMarker:r,getSafeRouteKey:n,segment:i,routeKeys:o,keyPrefix:l,backreferenceDuplicateKeys:u}=e,{key:c,optional:d,repeat:f}=(0,s.parseMatchedParameter)(i),h=c.replace(/\W/g,"");l&&(h=""+l+h);let p=!1;(0===h.length||h.length>30)&&(p=!0),isNaN(parseInt(h.slice(0,1)))||(p=!0),p&&(h=n());let m=h in o;l?o[h]=""+l+c:o[h]=c;let _=r?(0,a.escapeStringRegexp)(r):"";return t=m&&u?"\\k<"+h+">":f?"(?<"+h+">.+?)":"(?<"+h+">[^/]+?)",d?"(?:/"+_+t+")?":"/"+_+t}function d(e,t,r,l,u){let d,f=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),h={},p=[];for(let d of(0,o.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),o=d.match(s.PARAMETER_PATTERN);if(e&&o&&o[2])p.push(c({getSafeRouteKey:f,interceptionMarker:o[1],segment:o[2],routeKeys:h,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:u}));else if(o&&o[2]){l&&o[1]&&p.push("/"+(0,a.escapeStringRegexp)(o[1]));let e=c({getSafeRouteKey:f,segment:o[2],routeKeys:h,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:u});l&&o[1]&&(e=e.substring(1)),p.push(e)}else p.push("/"+(0,a.escapeStringRegexp)(d));r&&o&&o[3]&&p.push((0,a.escapeStringRegexp)(o[3]))}return{namedParameterizedRoute:p.join(""),routeKeys:h}}function f(e,t){var r,n,i;
825let a=d(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(n=t.includePrefix)&&n,null!=(i=t.backreferenceDuplicateKeys)&&i),o=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(o+="(?:/)?"),{...u(e,t),namedRegex:"^"+o+"$",routeKeys:a.routeKeys}}function h(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?"(?:(/.*)?)":"")+"$"}}},8899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});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 a(e,t){for(let[a,o]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===o)continue;let s=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&i(s)?e[s]=!!o:e.setAttribute(s,String(o)),(!1===o||"SCRIPT"===e.tagName&&i(s)&&(!o||"false"===o))&&(e.setAttribute(s,""),e.removeAttribute(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)},8943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(1821),i=r(5431);function a(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)},8963:(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},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}r.r(t),r.d(t,{_:()=>i})},8991:(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 s},htmlEscapeJsonString:function(){return o}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,i={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},a=/[&"'<>]/g;function o(e){return e.replace(n,e=>r[e])}function s(e){return e.replace(a,e=>i[e])}},9080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(5729),i=n.useLayoutEffect,a=n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){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=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},9143:e=>{var t,r,n,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!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&&f())}function f(){if(!u){var e=s(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===o||!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 h(e,t){this.fun=e,this.array=t}function p(){}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 h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,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}},9227:(e,t)=>{"use strict";
825Object.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}},9569:(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,{PathnameContextProviderAdapter:function(){return h},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return f},adaptForSearchParams:function(){return d}});let n=r(8963),i=r(6029),a=n._(r(5729)),o=r(6963),s=r(8325),l=r(2173),u=r(8870);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 f(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 h(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),u=(0,a.useMemo)(()=>{let e,t=l.current;if(t&&(l.current=!1),(0,s.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)(o.PathnameContext.Provider,{value:u,children:t})}},9687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},9739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(758);let n=r(6029);r(5729);let i=r(7006);function a(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)},9811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let n=r(8364),i=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function o(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):i.test(e)}},9834:(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)}},e=>{e.O(0,[593],()=>e(e.s=6394)),_N_E=e.O()}]);

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