diff options
| author | Dhravya <[email protected]> | 2024-02-21 16:11:35 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-02-21 16:11:35 -0700 |
| commit | cdceb1bc87dc2d5ef42a7f172ea5dc2263c5c526 (patch) | |
| tree | e0234f7fff63b312f18c945bed37a430d1e68755 /apps/web | |
| download | supermemory-cdceb1bc87dc2d5ef42a7f172ea5dc2263c5c526.tar.xz supermemory-cdceb1bc87dc2d5ef42a7f172ea5dc2263c5c526.zip | |
initialised monorepo with auth and extension communication
Diffstat (limited to 'apps/web')
127 files changed, 1718 insertions, 0 deletions
diff --git a/apps/web/.env.example b/apps/web/.env.example new file mode 100644 index 00000000..35ecefb5 --- /dev/null +++ b/apps/web/.env.example @@ -0,0 +1,23 @@ +# Since the ".env" file is gitignored, you can use the ".env.example" file to +# build a new ".env" file when you clone the repo. Keep this file up-to-date +# when you add new variables to `.env`. + +# This file will be committed to version control, so make sure not to have any +# secrets in it. If you are cloning this repo, create a copy of this file named +# ".env" and populate it with your secrets. + +# When adding additional environment variables, the schema in "/src/env.js" +# should be updated accordingly. + +# Drizzle +DATABASE_URL="db.sqlite" + +# Next Auth +# You can generate a new secret on the command line with: +# openssl rand -base64 32 +# https://next-auth.js.org/configuration/options#secret +# NEXTAUTH_SECRET="" +NEXTAUTH_URL="http://localhost:3000" + +GOOGLE_CLIENT_ID="" +GOOGLE_CLIENT_SECRET="" diff --git a/apps/web/.next/BUILD_ID b/apps/web/.next/BUILD_ID new file mode 100644 index 00000000..b5fa64e9 --- /dev/null +++ b/apps/web/.next/BUILD_ID @@ -0,0 +1 @@ +NZ5J5THZSIm48Kb9Sw_O9
\ No newline at end of file diff --git a/apps/web/.next/app-build-manifest.json b/apps/web/.next/app-build-manifest.json new file mode 100644 index 00000000..1ab29687 --- /dev/null +++ b/apps/web/.next/app-build-manifest.json @@ -0,0 +1,33 @@ +{ + "pages": { + "/_not-found": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/chunks/app/_not-found-2c355b04f2805185.js" + ], + "/layout": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/css/6c15d7e3526590b3.css", + "static/chunks/app/layout-d03d6a3648fc999a.js" + ], + "/account/page": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/chunks/app/account/page-0cdf2840d5548012.js" + ], + "/page": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/chunks/app/page-4446d9ce009d4a80.js" + ] + } +}
\ No newline at end of file diff --git a/apps/web/.next/app-path-routes-manifest.json b/apps/web/.next/app-path-routes-manifest.json new file mode 100644 index 00000000..8adfaa0f --- /dev/null +++ b/apps/web/.next/app-path-routes-manifest.json @@ -0,0 +1 @@ +{"/_not-found":"/_not-found","/account/page":"/account","/api/auth/[...nextauth]/route":"/api/auth/[...nextauth]","/api/store/route":"/api/store","/page":"/"}
\ No newline at end of file diff --git a/apps/web/.next/build-manifest.json b/apps/web/.next/build-manifest.json new file mode 100644 index 00000000..6bb7d199 --- /dev/null +++ b/apps/web/.next/build-manifest.json @@ -0,0 +1,32 @@ +{ + "polyfillFiles": [ + "static/chunks/polyfills-c67a75d1b6f99dc8.js" + ], + "devFiles": [], + "ampDevFiles": [], + "lowPriorityFiles": [ + "static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js", + "static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js" + ], + "rootMainFiles": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js" + ], + "pages": { + "/_app": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/framework-9e68550641db712d.js", + "static/chunks/main-2f8ae24bc202a544.js", + "static/chunks/pages/_app-22ef1381f3010e9c.js" + ], + "/_error": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/framework-9e68550641db712d.js", + "static/chunks/main-2f8ae24bc202a544.js", + "static/chunks/pages/_error-2312f57de16788ac.js" + ] + }, + "ampFirstPages": [] +}
\ No newline at end of file diff --git a/apps/web/.next/cache/webpack/client-development/0.pack.gz b/apps/web/.next/cache/webpack/client-development/0.pack.gz Binary files differnew file mode 100644 index 00000000..1ba2a417 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-development/0.pack.gz diff --git a/apps/web/.next/cache/webpack/client-development/1.pack.gz b/apps/web/.next/cache/webpack/client-development/1.pack.gz Binary files differnew file mode 100644 index 00000000..b1fb0765 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-development/1.pack.gz diff --git a/apps/web/.next/cache/webpack/client-development/2.pack.gz b/apps/web/.next/cache/webpack/client-development/2.pack.gz Binary files differnew file mode 100644 index 00000000..fdd57045 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-development/2.pack.gz diff --git a/apps/web/.next/cache/webpack/client-development/index.pack.gz b/apps/web/.next/cache/webpack/client-development/index.pack.gz Binary files differnew file mode 100644 index 00000000..0809af9c --- /dev/null +++ b/apps/web/.next/cache/webpack/client-development/index.pack.gz diff --git a/apps/web/.next/cache/webpack/client-development/index.pack.gz.old b/apps/web/.next/cache/webpack/client-development/index.pack.gz.old Binary files differnew file mode 100644 index 00000000..7ccac761 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-development/index.pack.gz.old diff --git a/apps/web/.next/cache/webpack/client-production/0.pack b/apps/web/.next/cache/webpack/client-production/0.pack Binary files differnew file mode 100644 index 00000000..e63c20c6 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/0.pack diff --git a/apps/web/.next/cache/webpack/client-production/1.pack b/apps/web/.next/cache/webpack/client-production/1.pack Binary files differnew file mode 100644 index 00000000..f18980d3 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/1.pack diff --git a/apps/web/.next/cache/webpack/client-production/2.pack b/apps/web/.next/cache/webpack/client-production/2.pack Binary files differnew file mode 100644 index 00000000..be4ad78c --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/2.pack diff --git a/apps/web/.next/cache/webpack/client-production/3.pack b/apps/web/.next/cache/webpack/client-production/3.pack Binary files differnew file mode 100644 index 00000000..6d940534 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/3.pack diff --git a/apps/web/.next/cache/webpack/client-production/4.pack b/apps/web/.next/cache/webpack/client-production/4.pack Binary files differnew file mode 100644 index 00000000..7aa904e5 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/4.pack diff --git a/apps/web/.next/cache/webpack/client-production/5.pack b/apps/web/.next/cache/webpack/client-production/5.pack Binary files differnew file mode 100644 index 00000000..6c7fea75 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/5.pack diff --git a/apps/web/.next/cache/webpack/client-production/index.pack b/apps/web/.next/cache/webpack/client-production/index.pack Binary files differnew file mode 100644 index 00000000..b0cc06e0 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/index.pack diff --git a/apps/web/.next/cache/webpack/client-production/index.pack.old b/apps/web/.next/cache/webpack/client-production/index.pack.old Binary files differnew file mode 100644 index 00000000..30f5d1b0 --- /dev/null +++ b/apps/web/.next/cache/webpack/client-production/index.pack.old diff --git a/apps/web/.next/cache/webpack/server-development/0.pack.gz b/apps/web/.next/cache/webpack/server-development/0.pack.gz Binary files differnew file mode 100644 index 00000000..bce9403b --- /dev/null +++ b/apps/web/.next/cache/webpack/server-development/0.pack.gz diff --git a/apps/web/.next/cache/webpack/server-development/1.pack.gz b/apps/web/.next/cache/webpack/server-development/1.pack.gz Binary files differnew file mode 100644 index 00000000..763051cf --- /dev/null +++ b/apps/web/.next/cache/webpack/server-development/1.pack.gz diff --git a/apps/web/.next/cache/webpack/server-development/2.pack.gz b/apps/web/.next/cache/webpack/server-development/2.pack.gz Binary files differnew file mode 100644 index 00000000..5b411690 --- /dev/null +++ b/apps/web/.next/cache/webpack/server-development/2.pack.gz diff --git a/apps/web/.next/cache/webpack/server-development/index.pack.gz b/apps/web/.next/cache/webpack/server-development/index.pack.gz Binary files differnew file mode 100644 index 00000000..5164671c --- /dev/null +++ b/apps/web/.next/cache/webpack/server-development/index.pack.gz diff --git a/apps/web/.next/cache/webpack/server-development/index.pack.gz.old b/apps/web/.next/cache/webpack/server-development/index.pack.gz.old Binary files differnew file mode 100644 index 00000000..be8a6682 --- /dev/null +++ b/apps/web/.next/cache/webpack/server-development/index.pack.gz.old diff --git a/apps/web/.next/cache/webpack/server-production/0.pack b/apps/web/.next/cache/webpack/server-production/0.pack Binary files differnew file mode 100644 index 00000000..3550895d --- /dev/null +++ b/apps/web/.next/cache/webpack/server-production/0.pack diff --git a/apps/web/.next/cache/webpack/server-production/index.pack b/apps/web/.next/cache/webpack/server-production/index.pack Binary files differnew file mode 100644 index 00000000..ebe8618f --- /dev/null +++ b/apps/web/.next/cache/webpack/server-production/index.pack diff --git a/apps/web/.next/export-marker.json b/apps/web/.next/export-marker.json new file mode 100644 index 00000000..07328d64 --- /dev/null +++ b/apps/web/.next/export-marker.json @@ -0,0 +1 @@ +{"version":1,"hasExportPathMap":false,"exportTrailingSlash":false,"isNextImageImported":false}
\ No newline at end of file diff --git a/apps/web/.next/images-manifest.json b/apps/web/.next/images-manifest.json new file mode 100644 index 00000000..3be04678 --- /dev/null +++ b/apps/web/.next/images-manifest.json @@ -0,0 +1 @@ +{"version":1,"images":{"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":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false,"sizes":[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384]}}
\ No newline at end of file diff --git a/apps/web/.next/next-minimal-server.js.nft.json b/apps/web/.next/next-minimal-server.js.nft.json new file mode 100644 index 00000000..55f080b9 --- /dev/null +++ b/apps/web/.next/next-minimal-server.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/style.js","../../../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]}
\ No newline at end of file diff --git a/apps/web/.next/next-server.js.nft.json b/apps/web/.next/next-server.js.nft.json new file mode 100644 index 00000000..894bd2fb --- /dev/null +++ b/apps/web/.next/next-server.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/style.js","../../../node_modules/next/dist/server/next-server.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]}
\ No newline at end of file diff --git a/apps/web/.next/package.json b/apps/web/.next/package.json new file mode 100644 index 00000000..7156107e --- /dev/null +++ b/apps/web/.next/package.json @@ -0,0 +1 @@ +{"type": "commonjs"}
\ No newline at end of file diff --git a/apps/web/.next/prerender-manifest.js b/apps/web/.next/prerender-manifest.js new file mode 100644 index 00000000..7240d702 --- /dev/null +++ b/apps/web/.next/prerender-manifest.js @@ -0,0 +1 @@ +self.__PRERENDER_MANIFEST="{\"version\":4,\"routes\":{\"/\":{\"experimentalBypassFor\":[{\"type\":\"header\",\"key\":\"Next-Action\"},{\"type\":\"header\",\"key\":\"content-type\",\"value\":\"multipart/form-data\"}],\"initialRevalidateSeconds\":false,\"srcRoute\":\"/\",\"dataRoute\":\"/index.rsc\"}},\"dynamicRoutes\":{},\"notFoundRoutes\":[],\"preview\":{\"previewModeId\":\"601e555451af779f51bebe3d5192c4e1\",\"previewModeSigningKey\":\"02474f00ee5e962a2ec10afff2ab78eee83bf337b304eb667506d5d8e34e0b30\",\"previewModeEncryptionKey\":\"988d34a5620d5d97da6581f3ad688547ee9b9b20a92afdc7647b534d272550e1\"}}"
\ No newline at end of file diff --git a/apps/web/.next/prerender-manifest.json b/apps/web/.next/prerender-manifest.json new file mode 100644 index 00000000..104bf066 --- /dev/null +++ b/apps/web/.next/prerender-manifest.json @@ -0,0 +1 @@ +{"version":4,"routes":{"/":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data"}],"initialRevalidateSeconds":false,"srcRoute":"/","dataRoute":"/index.rsc"}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"601e555451af779f51bebe3d5192c4e1","previewModeSigningKey":"02474f00ee5e962a2ec10afff2ab78eee83bf337b304eb667506d5d8e34e0b30","previewModeEncryptionKey":"988d34a5620d5d97da6581f3ad688547ee9b9b20a92afdc7647b534d272550e1"}}
\ No newline at end of file diff --git a/apps/web/.next/react-loadable-manifest.json b/apps/web/.next/react-loadable-manifest.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/apps/web/.next/react-loadable-manifest.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/apps/web/.next/required-server-files.json b/apps/web/.next/required-server-files.json new file mode 100644 index 00000000..8e10359b --- /dev/null +++ b/apps/web/.next/required-server-files.json @@ -0,0 +1 @@ +{"version":1,"config":{"env":{},"webpack":null,"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"distDir":".next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"analyticsId":"","images":{"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":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":true,"modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"},"next/server":{"transform":"next/dist/server/web/exports/{{ kebabCase member }}"}},"experimental":{"serverMinification":true,"serverSourceMaps":false,"caseSensitiveRoutes":false,"useDeploymentId":false,"useDeploymentIdServerActions":false,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":9,"memoryBasedWorkersCount":false,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"outputFileTracingRoot":"","swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"adjustFontFallbacks":false,"adjustFontFallbacksWithSizeAdjust":false,"typedRoutes":false,"instrumentationHook":false,"bundlePagesExternals":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"missingSuspenseWithCSRBailout":true,"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"configFileName":"next.config.js"},"appDir":"/Users/dhravyashah/Documents/code/anycontext/apps/web","relativeAppDir":"","files":[".next/routes-manifest.json",".next/server/pages-manifest.json",".next/build-manifest.json",".next/prerender-manifest.json",".next/prerender-manifest.js",".next/server/middleware-manifest.json",".next/server/middleware-build-manifest.js",".next/server/middleware-react-loadable-manifest.js",".next/server/app-paths-manifest.json",".next/app-path-routes-manifest.json",".next/app-build-manifest.json",".next/server/server-reference-manifest.js",".next/server/server-reference-manifest.json",".next/react-loadable-manifest.json",".next/server/font-manifest.json",".next/BUILD_ID",".next/server/next-font-manifest.js",".next/server/next-font-manifest.json"],"ignore":["../../node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]}
\ No newline at end of file diff --git a/apps/web/.next/routes-manifest.json b/apps/web/.next/routes-manifest.json new file mode 100644 index 00000000..eb5b1287 --- /dev/null +++ b/apps/web/.next/routes-manifest.json @@ -0,0 +1 @@ +{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/api/auth/[...nextauth]","regex":"^/api/auth/(.+?)(?:/)?$","routeKeys":{"nxtPnextauth":"nxtPnextauth"},"namedRegex":"^/api/auth/(?<nxtPnextauth>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/_not-found","regex":"^/_not\\-found(?:/)?$","routeKeys":{},"namedRegex":"^/_not\\-found(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"}],"dataRoutes":[],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]}
\ No newline at end of file diff --git a/apps/web/.next/server/app-paths-manifest.json b/apps/web/.next/server/app-paths-manifest.json new file mode 100644 index 00000000..1c1fb501 --- /dev/null +++ b/apps/web/.next/server/app-paths-manifest.json @@ -0,0 +1,7 @@ +{ + "/_not-found": "app/_not-found.js", + "/account/page": "app/account/page.js", + "/api/auth/[...nextauth]/route": "app/api/auth/[...nextauth]/route.js", + "/api/store/route": "app/api/store/route.js", + "/page": "app/page.js" +}
\ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.html b/apps/web/.next/server/app/_not-found.html new file mode 100644 index 00000000..5b9ab9b8 --- /dev/null +++ b/apps/web/.next/server/app/_not-found.html @@ -0,0 +1 @@ +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/6c15d7e3526590b3.css" crossorigin="" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-7c56eb6342069862.js" crossorigin=""/><script src="/_next/static/chunks/1dd3208c-2005e60b0a14e8cf.js" async="" crossorigin=""></script><script src="/_next/static/chunks/997-22e52d7003e9633c.js" async="" crossorigin=""></script><script src="/_next/static/chunks/main-app-6394067cfc5308ad.js" async="" crossorigin=""></script><title>404: This page could not be found.</title><title>Create T3 App</title><meta name="description" content="Generated by create-t3-app"/><link rel="icon" href="/favicon.ico"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body class="font-sans __variable_aaf875"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-7c56eb6342069862.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/css/6c15d7e3526590b3.css\",\"style\",{\"crossOrigin\":\"\"}]\n0:\"$L3\"\n"])</script><script>self.__next_f.push([1,"4:I[8950,[],\"\"]\n6:I[2172,[],\"\"]\n7:I[2533,[],\"\"]\nd:I[5119,[],\"\"]\n8:{\"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\"}\n9:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\na:{\"display\":\"inline-block\"}\nb:{\"fontSize\":14,\"fontWeigh"])</script><script>self.__next_f.push([1,"t\":400,\"lineHeight\":\"49px\",\"margin\":0}\ne:[]\n"])</script><script>self.__next_f.push([1,"3:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/6c15d7e3526590b3.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]],[\"$\",\"$L4\",null,{\"buildId\":\"NZ5J5THZSIm48Kb9Sw_O9\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L5\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"font-sans __variable_aaf875\",\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$9\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$a\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$b\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null]],\"initialHead\":[false,\"$Lc\"],\"globalErrorComponent\":\"$d\",\"missingSlots\":\"$We\"}]]\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Create T3 App\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Generated by create-t3-app\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"meta\",\"5\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>
\ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.js b/apps/web/.next/server/app/_not-found.js new file mode 100644 index 00000000..1b0d12fe --- /dev/null +++ b/apps/web/.next/server/app/_not-found.js @@ -0,0 +1 @@ +(()=>{var e={};e.id=165,e.ids=[165],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},3145:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>i.a,__next_app__:()=>p,originalPathname:()=>u,pages:()=>c,routeModule:()=>x,tree:()=>d});var r=n(9441),s=n(1498),o=n(6580),i=n.n(o),a=n(5511),l={};for(let e in a)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>a[e]);n.d(t,l);let d=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.t.bind(n,3250,23)),"next/dist/client/components/not-found-error"]}]},{layout:[()=>Promise.resolve().then(n.bind(n,8205)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,3250,23)),"next/dist/client/components/not-found-error"]}],c=[],u="/_not-found",p={require:n,loadChunk:()=>Promise.resolve()},x=new r.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/_not-found",pathname:"/_not-found",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},7422:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,9489,23)),Promise.resolve().then(n.t.bind(n,6225,23)),Promise.resolve().then(n.t.bind(n,5964,23)),Promise.resolve().then(n.t.bind(n,5804,23)),Promise.resolve().then(n.t.bind(n,7255,23)),Promise.resolve().then(n.t.bind(n,1021,23))},5722:()=>{},8205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,metadata:()=>i});var r=n(6491),s=n(1608),o=n.n(s);n(1603);let i={title:"Create T3 App",description:"Generated by create-t3-app",icons:[{rel:"icon",url:"/favicon.ico"}]};function a({children:e}){return r.jsx("html",{lang:"en",children:r.jsx("body",{className:`font-sans ${o().variable}`,children:e})})}},1603:()=>{}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[369,38],()=>n(3145));module.exports=r})();
\ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.js.nft.json b/apps/web/.next/server/app/_not-found.js.nft.json new file mode 100644 index 00000000..f6282d10 --- /dev/null +++ b/apps/web/.next/server/app/_not-found.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../package.json","../chunks/369.js","../chunks/38.js","../webpack-runtime.js","_not-found_client-reference-manifest.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.meta b/apps/web/.next/server/app/_not-found.meta new file mode 100644 index 00000000..fc1dcd9e --- /dev/null +++ b/apps/web/.next/server/app/_not-found.meta @@ -0,0 +1,5 @@ +{ + "headers": { + "x-next-cache-tags": "_N_T_/layout,_N_T_/_not-found/layout,_N_T_/_not-found" + } +}
\ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.rsc b/apps/web/.next/server/app/_not-found.rsc new file mode 100644 index 00000000..4d3be41a --- /dev/null +++ b/apps/web/.next/server/app/_not-found.rsc @@ -0,0 +1,9 @@ +2:I[2172,[],""] +3:I[2533,[],""] +4:{"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"} +5:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +6:{"display":"inline-block"} +7:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +0:["NZ5J5THZSIm48Kb9Sw_O9",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"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"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"font-sans __variable_aaf875","children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/6c15d7e3526590b3.css","precedence":"next","crossOrigin":""}]],"$L8"]]]] +8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Create T3 App"}],["$","meta","3",{"name":"description","content":"Generated by create-t3-app"}],["$","link","4",{"rel":"icon","href":"/favicon.ico"}],["$","meta","5",{"name":"next-size-adjust"}]] +1:null diff --git a/apps/web/.next/server/app/_not-found_client-reference-manifest.js b/apps/web/.next/server/app/_not-found_client-reference-manifest.js new file mode 100644 index 00000000..5b986991 --- /dev/null +++ b/apps/web/.next/server/app/_not-found_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"2172":{"*":{"id":"5964","name":"*","chunks":[],"async":false}},"2533":{"*":{"id":"7255","name":"*","chunks":[],"async":false}},"3398":{"*":{"id":"5804","name":"*","chunks":[],"async":false}},"5119":{"*":{"id":"6225","name":"*","chunks":[],"async":false}},"8950":{"*":{"id":"9489","name":"*","chunks":[],"async":false}},"9256":{"*":{"id":"1021","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"inter\"}":{"id":425,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/styles/globals.css":{"id":3744,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false}},"entryCSSFiles":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/_not-found":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/css/6c15d7e3526590b3.css"],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page":[]}}
\ No newline at end of file diff --git a/apps/web/.next/server/app/account/page.js b/apps/web/.next/server/app/account/page.js new file mode 100644 index 00000000..94f45e43 --- /dev/null +++ b/apps/web/.next/server/app/account/page.js @@ -0,0 +1 @@ +(()=>{var e={};e.id=346,e.ids=[346],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>a.a,__next_app__:()=>p,originalPathname:()=>d,pages:()=>c,routeModule:()=>f,tree:()=>u});var n=r(9441),s=r(1498),o=r(6580),a=r.n(o),i=r(5511),l={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>i[e]);r.d(t,l);let u=["",{children:["account",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,829)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,8205)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,3250,23)),"next/dist/client/components/not-found-error"]}],c=["/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/page.tsx"],d="/account/page",p={require:r,loadChunk:()=>Promise.resolve()},f=new n.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/account/page",pathname:"/account",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:u}})},5209:(e,t,r)=>{Promise.resolve().then(r.bind(r,6196))},7422:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,9489,23)),Promise.resolve().then(r.t.bind(r,6225,23)),Promise.resolve().then(r.t.bind(r,5964,23)),Promise.resolve().then(r.t.bind(r,5804,23)),Promise.resolve().then(r.t.bind(r,7255,23)),Promise.resolve().then(r.t.bind(r,1021,23))},5722:()=>{},6196:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(3810);let s=function({jwt:e}){return(0,n.useEffect)(()=>{},[e]),null}},829:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(6491),s=r(7167);let o=(0,r(599).createProxy)(String.raw`/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/client.tsx`),{__esModule:a,$$typeof:i}=o,l=o.default,u=async function(){let e=s.cookies().get("next-auth.session-token")?.value;return n.jsx(l,{jwt:e})}},8205:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,metadata:()=>a});var n=r(6491),s=r(1608),o=r.n(s);r(1603);let a={title:"Create T3 App",description:"Generated by create-t3-app",icons:[{rel:"icon",url:"/favicon.ico"}]};function i({children:e}){return n.jsx("html",{lang:"en",children:n.jsx("body",{className:`font-sans ${o().variable}`,children:e})})}},7167:(e,t,r)=>{"use strict";r.r(t);var n=r(9767),s={};for(let e in n)"default"!==e&&(s[e]=()=>n[e]);r.d(t,s)},1847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return s}});let n=r(2936);class s{get isEnabled(){return this._provider.isEnabled}enable(){if(!(0,n.staticGenerationBailout)("draftMode().enable()"))return this._provider.enable()}disable(){if(!(0,n.staticGenerationBailout)("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=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)},9767:(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,{headers:function(){return c},cookies:function(){return d},draftMode:function(){return p}});let n=r(9839),s=r(270),o=r(8005),a=r(4580),i=r(2934),l=r(2936),u=r(1847);function c(){if((0,l.staticGenerationBailout)("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return s.HeadersAdapter.seal(new Headers({}));let e=a.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function d(){if((0,l.staticGenerationBailout)("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return n.RequestCookiesAdapter.seal(new o.RequestCookies(new Headers({})));let e=a.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=i.actionAsyncStorage.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function p(){let e=a.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new u.DraftMode(e.draftMode)}("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)},8263:e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o={};function a(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function i(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,s],...o]=i(e),{domain:a,expires:l,httponly:d,maxage:p,path:f,samesite:h,secure:y,priority:g}=Object.fromEntries(o.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}({name:n,value:decodeURIComponent(s),domain:a,...l&&{expires:new Date(l)},...d&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:f,...h&&{sameSite:u.includes(t=(t=h).toLowerCase())?t:void 0},...y&&{secure:!0},...g&&{priority:c.includes(r=(r=g).toLowerCase())?r:void 0}})}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{RequestCookies:()=>d,ResponseCookies:()=>p,parseCookie:()=>i,parseSetCookie:()=>l,stringifyCookie:()=>a}),e.exports=((e,o,a,i)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of n(o))s.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(i=r(o,a))||i.enumerable});return e})(t({},"__esModule",{value:!0}),o);var u=["strict","lax","none"],c=["low","medium","high"],d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of i(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>a(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>a(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},p=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,o,a=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,o=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),s=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(o=!0,i=s,a.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!o||i>=e.length)&&a.push(e.substring(t,e.length))}return a}(s)){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=a(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},270:(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,{ReadonlyHeadersError:function(){return s},HeadersAdapter:function(){return o}});let n=r(5444);class s extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new s}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,s){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,s);let o=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==a)return n.ReflectAdapter.get(t,a,s)},set(t,r,s,o){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,s,o);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);return n.ReflectAdapter.set(t,i??r,s,o)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let s=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);return void 0!==o&&n.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let s=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);return void 0===o||n.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return s.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},5444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},9839:(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,{ReadonlyRequestCookiesError:function(){return o},RequestCookiesAdapter:function(){return a},getModifiedCookieValues:function(){return l},appendMutableCookies:function(){return u},MutableRequestCookiesAdapter:function(){return c}});let n=r(8005),s=r(5444);class o extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new o}}class a{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return o.callable;default:return s.ReflectAdapter.get(e,t,r)}}})}}let i=Symbol.for("next.mutated.cookies");function l(e){let t=e[i];return t&&Array.isArray(t)&&0!==t.length?t:[]}function u(e,t){let r=l(t);if(0===r.length)return!1;let s=new n.ResponseCookies(e),o=s.getAll();for(let e of r)s.set(e);for(let e of o)s.set(e);return!0}class c{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let o=[],a=new Set,l=()=>{var e;let s=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();if(s&&(s.pathWasRevalidated=!0),o=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of o){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case i:return o;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{l()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{l()}};default:return s.ReflectAdapter.get(e,t,r)}}})}}},8005:(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,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies}});let n=r(8263)},1603:()=>{}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[369,38],()=>r(419));module.exports=n})();
\ No newline at end of file diff --git a/apps/web/.next/server/app/account/page.js.nft.json b/apps/web/.next/server/app/account/page.js.nft.json new file mode 100644 index 00000000..f4e8c4e6 --- /dev/null +++ b/apps/web/.next/server/app/account/page.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../package.json","../../chunks/369.js","../../chunks/38.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/app/account/page_client-reference-manifest.js b/apps/web/.next/server/app/account/page_client-reference-manifest.js new file mode 100644 index 00000000..a4174cae --- /dev/null +++ b/apps/web/.next/server/app/account/page_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/account/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"2172":{"*":{"id":"5964","name":"*","chunks":[],"async":false}},"2533":{"*":{"id":"7255","name":"*","chunks":[],"async":false}},"3398":{"*":{"id":"5804","name":"*","chunks":[],"async":false}},"5119":{"*":{"id":"6225","name":"*","chunks":[],"async":false}},"6695":{"*":{"id":"6196","name":"*","chunks":[],"async":false}},"8950":{"*":{"id":"9489","name":"*","chunks":[],"async":false}},"9256":{"*":{"id":"1021","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"inter\"}":{"id":425,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/styles/globals.css":{"id":3744,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/client.tsx":{"id":6695,"name":"*","chunks":["346","static/chunks/app/account/page-0cdf2840d5548012.js"],"async":false}},"entryCSSFiles":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/_not-found":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/css/6c15d7e3526590b3.css"],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/page":[]}}
\ No newline at end of file diff --git a/apps/web/.next/server/app/api/auth/[...nextauth]/route.js b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js new file mode 100644 index 00000000..b1472e8b --- /dev/null +++ b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js @@ -0,0 +1,51 @@ +(()=>{var e={};e.id=912,e.ids=[912],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},517:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},3477:e=>{"use strict";e.exports=require("querystring")},7310:e=>{"use strict";e.exports=require("url")},3849:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},2789:(e,t,r)=>{"use strict";let i;r.r(t),r.d(t,{headerHooks:()=>tN,originalPathname:()=>tW,patchFetch:()=>tK,requestAsyncStorage:()=>t$,routeModule:()=>tI,serverHooks:()=>tM,staticGenerationAsyncStorage:()=>tJ,staticGenerationBailout:()=>tR});var n={};r.r(n),r.d(n,{GET:()=>tC,POST:()=>tC});var o=r(2390),s=r(1498),a=r(9308),l=r(7345),c=r.n(l),u=r(4869),d=r(4143),h=r(2877),p=r(4456),f=r(9105),y=r(9349),g=r(2393),m=r(3543),_=r(9324),v=r(776),w=r(4990),b=r(6702),S=r(6711);let k=Symbol.for("drizzle:MySqlInlineForeignKeys");class E extends m.iA{static{m.iA.Symbol.Columns,i=m.iA.Symbol.ExtraConfigBuilder}static{this[u.Q]="MySqlTable"}static{this.Symbol=Object.assign({},m.iA.Symbol,{InlineForeignKeys:k})}constructor(...e){super(...e),this[k]=[],this[i]=void 0}}let A=(e,t,r)=>(function(e,t,r,i,n=e){let o=new E(e,i,n),s=Object.fromEntries(Object.entries(t).map(([e,t])=>{let r=t.build(o);return o[k].push(...t.buildForeignKeys(r,o)),[e,r]})),a=Object.assign(o,s);return a[m.iA.Symbol.Columns]=s,r&&(a[E.Symbol.ExtraConfigBuilder]=r),a})(e,t,r,void 0,e);class x{static{this[u.Q]="MySqlForeignKeyBuilder"}constructor(e,t){this.reference=()=>{let{name:t,columns:r,foreignColumns:i}=e();return{name:t,columns:r,foreignTable:i[0].table,foreignColumns:i}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e,this}onDelete(e){return this._onDelete=e,this}build(e){return new O(e,this)}}class O{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[u.Q]="MySqlForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),i=t.map(e=>e.name),n=r.map(e=>e.name),o=[this.table[E.Symbol.Name],...i,r[0].table[E.Symbol.Name],...n];return e??`${o.join("_")}_fk`}}function T(e,t){return`${e[E.Symbol.Name]}_${t.join("_")}_unique`}class P{constructor(e,t){this.name=t,this.columns=e}static{this[u.Q]="MySqlUniqueConstraintBuilder"}build(e){return new C(e,this.columns,this.name)}}class j{static{this[u.Q]="MySqlUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new P(e,this.name)}}class C{constructor(e,t,r){this.nullsNotDistinct=!1,this.table=e,this.columns=t,this.name=r??T(this.table,this.columns.map(e=>e.name))}static{this[u.Q]="MySqlUniqueConstraint"}getName(){return this.name}}class I extends S.L{static{this[u.Q]="MySqlColumnBuilder"}references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e){return this.config.isUnique=!0,this.config.uniqueName=e,this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:r,actions:i})=>((r,i)=>{let n=new x(()=>({columns:[e],foreignColumns:[r()]}));return i.onUpdate&&n.onUpdate(i.onUpdate),i.onDelete&&n.onDelete(i.onDelete),n.build(t)})(r,i))}constructor(...e){super(...e),this.foreignKeyConfigs=[]}}class $ extends f.s{constructor(e,t){t.uniqueName||(t.uniqueName=T(e,[t.name])),super(e,t),this.table=e}static{this[u.Q]="MySqlColumn"}}class J extends I{static{this[u.Q]="MySqlColumnBuilderWithAutoIncrement"}constructor(e,t,r){super(e,t,r),this.config.autoIncrement=!1}autoincrement(){return this.config.autoIncrement=!0,this.config.hasDefault=!0,this}}class M extends ${static{this[u.Q]="MySqlColumnWithAutoIncrement"}constructor(...e){super(...e),this.autoIncrement=this.config.autoIncrement}}class N extends g.G7{static{this[u.Q]="MySqlViewBase"}}class R{static{this[u.Q]="MySqlDialect"}async migrate(e,t,r){let i=r.migrationsTable??"__drizzle_migrations",n=g.i6` + create table if not exists ${g.i6.identifier(i)} ( + id serial primary key, + hash text not null, + created_at bigint + ) + `;await t.execute(n);let o=(await t.all(g.i6`select id, hash, created_at from ${g.i6.identifier(i)} order by created_at desc limit 1`))[0];await t.transaction(async t=>{for(let r of e)if(!o||Number(o.created_at)<r.folderMillis){for(let e of r.sql)await t.execute(g.i6.raw(e));await t.execute(g.i6`insert into ${g.i6.identifier(i)} (\`hash\`, \`created_at\`) values(${r.hash}, ${r.folderMillis})`)}})}escapeName(e){return`\`${e}\``}escapeParam(e){return"?"}escapeString(e){return`'${e.replace(/'/g,"''")}'`}buildDeleteQuery({table:e,where:t,returning:r}){let i=r?g.i6` returning ${this.buildSelection(r,{isSingleTable:!0})}`:void 0,n=t?g.i6` where ${t}`:void 0;return g.i6`delete from ${e}${n}${i}`}buildUpdateSet(e,t){let r=Object.entries(t),i=r.length;return g.i6.join(r.flatMap(([t,r],n)=>{let o=e[m.iA.Symbol.Columns][t],s=g.i6`${g.i6.identifier(o.name)} = ${r}`;return n<i-1?[s,g.i6.raw(", ")]:[s]}))}buildUpdateQuery({table:e,set:t,where:r,returning:i}){let n=this.buildUpdateSet(e,t),o=i?g.i6` returning ${this.buildSelection(i,{isSingleTable:!0})}`:void 0,s=r?g.i6` where ${r}`:void 0;return g.i6`update ${e} set ${n}${s}${o}`}buildSelection(e,{isSingleTable:t=!1}={}){let r=e.length,i=e.flatMap(({field:e},i)=>{let n=[];if((0,u.is)(e,g.$s.Aliased)&&e.isSelectionField)n.push(g.i6.identifier(e.fieldAlias));else if((0,u.is)(e,g.$s.Aliased)||(0,u.is)(e,g.$s)){let r=(0,u.is)(e,g.$s.Aliased)?e.sql:e;t?n.push(new g.$s(r.queryChunks.map(e=>(0,u.is)(e,$)?g.i6.identifier(e.name):e))):n.push(r),(0,u.is)(e,g.$s.Aliased)&&n.push(g.i6` as ${g.i6.identifier(e.fieldAlias)}`)}else(0,u.is)(e,f.s)&&(t?n.push(g.i6.identifier(e.name)):n.push(e));return i<r-1&&n.push(g.i6`, `),n});return g.i6.join(i)}buildSelectQuery({withList:e,fields:t,fieldsFlat:r,where:i,having:n,table:o,joins:s,orderBy:a,groupBy:l,limit:c,offset:d,lockingClause:p,distinct:y,setOperators:w}){let b,S,k,A;let x=r??(0,_.ZS)(t);for(let e of x){var O;if((0,u.is)(e.field,f.s)&&(0,m.SP)(e.field.table)!==((0,u.is)(o,h.k)?o[h.g1].alias:(0,u.is)(o,N)?o[v.d].name:(0,u.is)(o,g.$s)?void 0:(0,m.SP)(o))&&(O=e.field.table,!s?.some(({alias:e})=>e===(O[m.iA.Symbol.IsAlias]?m.SP(O):O[m.iA.Symbol.BaseName])))){let t=(0,m.SP)(e.field.table);throw Error(`Your "${e.path.join("->")}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}}let T=!s||0===s.length;if(e?.length){let t=[g.i6`with `];for(let[r,i]of e.entries())t.push(g.i6`${g.i6.identifier(i[h.g1].alias)} as (${i[h.g1].sql})`),r<e.length-1&&t.push(g.i6`, `);t.push(g.i6` `),b=g.i6.join(t)}let P=y?g.i6` distinct`:void 0,j=this.buildSelection(x,{isSingleTable:T}),C=(0,u.is)(o,m.iA)&&o[m.iA.Symbol.OriginalName]!==o[m.iA.Symbol.Name]?g.i6`${g.i6.identifier(o[m.iA.Symbol.OriginalName])} ${g.i6.identifier(o[m.iA.Symbol.Name])}`:o,I=[];if(s)for(let[e,t]of s.entries()){0===e&&I.push(g.i6` `);let r=t.table,i=t.lateral?g.i6` lateral`:void 0;if((0,u.is)(r,E)){let e=r[E.Symbol.Name],n=r[E.Symbol.Schema],o=r[E.Symbol.OriginalName],s=e===o?void 0:t.alias;I.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${n?g.i6`${g.i6.identifier(n)}.`:void 0}${g.i6.identifier(o)}${s&&g.i6` ${g.i6.identifier(s)}`} on ${t.on}`)}else if((0,u.is)(r,g.G7)){let e=r[v.d].name,n=r[v.d].schema,o=r[v.d].originalName,s=e===o?void 0:t.alias;I.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${n?g.i6`${g.i6.identifier(n)}.`:void 0}${g.i6.identifier(o)}${s&&g.i6` ${g.i6.identifier(s)}`} on ${t.on}`)}else I.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${r} on ${t.on}`);e<s.length-1&&I.push(g.i6` `)}let $=g.i6.join(I),J=i?g.i6` where ${i}`:void 0,M=n?g.i6` having ${n}`:void 0;a&&a.length>0&&(S=g.i6` order by ${g.i6.join(a,g.i6`, `)}`),l&&l.length>0&&(k=g.i6` group by ${g.i6.join(l,g.i6`, `)}`);let R=c?g.i6` limit ${c}`:void 0,W=d?g.i6` offset ${d}`:void 0;if(p){let{config:e,strength:t}=p;A=g.i6` for ${g.i6.raw(t)}`,e.noWait?A.append(g.i6` no wait`):e.skipLocked&&A.append(g.i6` skip locked`)}let K=g.i6`${b}select${P} ${j} from ${C}${$}${J}${k}${M}${S}${R}${W}${A}`;return w.length>0?this.buildSetOperations(K,w):K}buildSetOperations(e,t){let[r,...i]=t;if(!r)throw Error("Cannot pass undefined values to any set operator");return 0===i.length?this.buildSetOperationQuery({leftSelect:e,setOperator:r}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:r}),i)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:r,rightSelect:i,limit:n,orderBy:o,offset:s}}){let a;let l=g.i6`(${e.getSQL()}) `,c=g.i6`(${i.getSQL()})`;if(o&&o.length>0){let e=[];for(let t of o)if((0,u.is)(t,$))e.push(g.i6.identifier(t.name));else if((0,u.is)(t,g.$s)){for(let e=0;e<t.queryChunks.length;e++){let r=t.queryChunks[e];(0,u.is)(r,$)&&(t.queryChunks[e]=g.i6.identifier(r.name))}e.push(g.i6`${t}`)}else e.push(g.i6`${t}`);a=g.i6` order by ${g.i6.join(e,g.i6`, `)} `}let d=n?g.i6` limit ${n}`:void 0,h=g.i6.raw(`${t} ${r?"all ":""}`),p=s?g.i6` offset ${s}`:void 0;return g.i6`${l}${h}${c}${a}${d}${p}`}buildInsertQuery({table:e,values:t,ignore:r,onConflict:i}){let n=[],o=Object.entries(e[m.iA.Symbol.Columns]),s=o.map(([,e])=>g.i6.identifier(e.name));for(let[e,r]of t.entries()){let i=[];for(let[e,t]of o){let n=r[e];if(void 0===n||(0,u.is)(n,g.dO)&&void 0===n.value){if(void 0!==t.defaultFn){let e=t.defaultFn(),r=(0,u.is)(e,g.$s)?e:g.i6.param(e,t);i.push(r)}else i.push(g.i6`default`)}else i.push(n)}n.push(i),e<t.length-1&&n.push(g.i6`, `)}let a=g.i6.join(n),l=r?g.i6` ignore`:void 0,c=i?g.i6` on duplicate key ${i}`:void 0;return g.i6`insert${l} into ${e} ${s} values ${a}${c}`}sqlToQuery(e){return e.toQuery({escapeName:this.escapeName,escapeParam:this.escapeParam,escapeString:this.escapeString})}buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:r,table:i,tableConfig:n,queryConfig:o,tableAlias:s,nestedQueryRelation:a,joinOn:l}){let c,d,_,v,S,k=[],A=[];if(!0===o)k=Object.entries(n.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:(0,p.lw)(t,s),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,p.lw)(t,s)]));if(o.where){let e="function"==typeof o.where?o.where(i,(0,y.vU)()):o.where;v=e&&(0,p.UI)(e,s)}let a=[],l=[];if(o.columns){let e=!1;for(let[t,r]of Object.entries(o.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>o.columns?.[e]===!0):Object.keys(n.columns).filter(e=>!l.includes(e)))}else l=Object.keys(n.columns);for(let e of l){let t=n.columns[e];a.push({tsKey:e,value:t})}let b=[];if(o.with&&(b=Object.entries(o.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),o.extras)for(let[e,t]of Object.entries("function"==typeof o.extras?o.extras(i,{sql:g.i6}):o.extras))a.push({tsKey:e,value:(0,p.qD)(t,s)});for(let{tsKey:e,value:t}of a)k.push({dbKey:(0,u.is)(t,g.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,u.is)(t,f.s)?(0,p.lw)(t,s):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let S="function"==typeof o.orderBy?o.orderBy(i,(0,y.pl)()):o.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:a}of(Array.isArray(S)||(S=[S]),_=S.map(e=>(0,u.is)(e,f.s)?(0,p.lw)(e,s):(0,p.UI)(e,s)),c=o.limit,d=o.offset,b)){let o=(0,y.wG)(t,r,a),l=r[a.referencedTable[m.iA.Symbol.Name]],c=`${s}_${i}`,d=(0,w.xD)(...o.fields.map((e,t)=>(0,w.eq)((0,p.lw)(o.references[t],c),(0,p.lw)(e,s)))),f=this.buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,u.is)(a,y.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:c,joinOn:d,nestedQueryRelation:a}),_=g.i6`${g.i6.identifier(c)}.${g.i6.identifier("data")}`.as(i);A.push({on:g.i6`true`,table:new h.k(f.sql,{},c),alias:c,joinType:"left",lateral:!0}),k.push({dbKey:i,tsKey:i,field:_,relationTableTsKey:l,isJson:!0,selection:f.selection})}}if(0===k.length)throw new b.k({message:`No fields selected for table "${n.tsName}" ("${s}")`});if(v=(0,w.xD)(l,v),a){let e=g.i6`json_array(${g.i6.join(k.map(({field:e,tsKey:t,isJson:r})=>r?g.i6`${g.i6.identifier(`${s}_${t}`)}.${g.i6.identifier("data")}`:(0,u.is)(e,g.$s.Aliased)?e.sql:e),g.i6`, `)})`;(0,u.is)(a,y.sj)&&(e=g.i6`coalesce(json_arrayagg(${e}), json_array())`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:n.tsName,selection:k}];void 0!==c||void 0!==d||(_?.length??0)>0?(S=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:[{path:[],field:g.i6.raw("*")},...(_?.length??0)>0?[{path:[],field:g.i6`row_number() over (order by ${g.i6.join(_,g.i6`, `)})`}]:[]],where:v,limit:c,offset:d,setOperators:[]}),v=void 0,c=void 0,d=void 0,_=void 0):S=(0,p.RQ)(i,s),S=this.buildSelectQuery({table:(0,u.is)(S,E)?S:new h.k(S,{},s),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:A,where:v,limit:c,offset:d,orderBy:_,setOperators:[]})}else S=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:k.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:A,where:v,limit:c,offset:d,orderBy:_,setOperators:[]});return{tableTsKey:n.tsName,sql:S,selection:k}}buildRelationalQueryWithoutLateralSubqueries({fullSchema:e,schema:t,tableNamesMap:r,table:i,tableConfig:n,queryConfig:o,tableAlias:s,nestedQueryRelation:a,joinOn:l}){let c,d=[],_,v,S=[],k;if(!0===o)d=Object.entries(n.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:(0,p.lw)(t,s),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,p.lw)(t,s)]));if(o.where){let e="function"==typeof o.where?o.where(i,(0,y.vU)()):o.where;k=e&&(0,p.UI)(e,s)}let a=[],l=[];if(o.columns){let e=!1;for(let[t,r]of Object.entries(o.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>o.columns?.[e]===!0):Object.keys(n.columns).filter(e=>!l.includes(e)))}else l=Object.keys(n.columns);for(let e of l){let t=n.columns[e];a.push({tsKey:e,value:t})}let c=[];if(o.with&&(c=Object.entries(o.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),o.extras)for(let[e,t]of Object.entries("function"==typeof o.extras?o.extras(i,{sql:g.i6}):o.extras))a.push({tsKey:e,value:(0,p.qD)(t,s)});for(let{tsKey:e,value:t}of a)d.push({dbKey:(0,u.is)(t,g.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,u.is)(t,f.s)?(0,p.lw)(t,s):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let h="function"==typeof o.orderBy?o.orderBy(i,(0,y.pl)()):o.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:a}of(Array.isArray(h)||(h=[h]),S=h.map(e=>(0,u.is)(e,f.s)?(0,p.lw)(e,s):(0,p.UI)(e,s)),_=o.limit,v=o.offset,c)){let o=(0,y.wG)(t,r,a),l=r[a.referencedTable[m.iA.Symbol.Name]],c=`${s}_${i}`,h=(0,w.xD)(...o.fields.map((e,t)=>(0,w.eq)((0,p.lw)(o.references[t],c),(0,p.lw)(e,s)))),f=this.buildRelationalQueryWithoutLateralSubqueries({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,u.is)(a,y.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:c,joinOn:h,nestedQueryRelation:a}),_=g.i6`(${f.sql})`;(0,u.is)(a,y.sj)&&(_=g.i6`coalesce(${_}, json_array())`);let v=_.as(i);d.push({dbKey:i,tsKey:i,field:v,relationTableTsKey:l,isJson:!0,selection:f.selection})}}if(0===d.length)throw new b.k({message:`No fields selected for table "${n.tsName}" ("${s}"). You need to have at least one item in "columns", "with" or "extras". If you need to select all columns, omit the "columns" key or set it to undefined.`});if(k=(0,w.xD)(l,k),a){let e=g.i6`json_array(${g.i6.join(d.map(({field:e})=>(0,u.is)(e,$)?g.i6.identifier(e.name):(0,u.is)(e,g.$s.Aliased)?e.sql:e),g.i6`, `)})`;(0,u.is)(a,y.sj)&&(e=g.i6`json_arrayagg(${e})`);let t=[{dbKey:"data",tsKey:"data",field:e,isJson:!0,relationTableTsKey:n.tsName,selection:d}];void 0!==_||void 0!==v||S.length>0?(c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:[{path:[],field:g.i6.raw("*")},...S.length>0?[{path:[],field:g.i6`row_number() over (order by ${g.i6.join(S,g.i6`, `)})`}]:[]],where:k,limit:_,offset:v,setOperators:[]}),k=void 0,_=void 0,v=void 0,S=void 0):c=(0,p.RQ)(i,s),c=this.buildSelectQuery({table:(0,u.is)(c,E)?c:new h.k(c,{},s),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),where:k,limit:_,offset:v,orderBy:S,setOperators:[]})}else c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:d.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),where:k,limit:_,offset:v,orderBy:S,setOperators:[]});return{tableTsKey:n.tsName,sql:c,selection:d}}}var W=r(6834),K=r(2852);class U{static{this[u.Q]="MySqlSelectBuilder"}constructor(e){this.withList=[],this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}from(e){let t;let r=!!this.fields;return t=this.fields?this.fields:(0,u.is)(e,h.k)?Object.fromEntries(Object.keys(e[h.g1].selection).map(t=>[t,e[t]])):(0,u.is)(e,N)?e[v.d].selectedFields:(0,u.is)(e,g.$s)?{}:(0,_.SS)(e),new D({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class H extends W.b{static{this[u.Q]="MySqlSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:i,dialect:n,withList:o,distinct:s}){super(),this.leftJoin=this.createJoin("left"),this.rightJoin=this.createJoin("right"),this.innerJoin=this.createJoin("inner"),this.fullJoin=this.createJoin("full"),this.union=this.createSetOperator("union",!1),this.unionAll=this.createSetOperator("union",!0),this.intersect=this.createSetOperator("intersect",!1),this.intersectAll=this.createSetOperator("intersect",!0),this.except=this.createSetOperator("except",!1),this.exceptAll=this.createSetOperator("except",!0),this.config={withList:o,table:e,fields:{...t},distinct:s,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=n,this._={selectedFields:t},this.tableName=(0,_.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let i=this.tableName,n=(0,_.dP)(t);if("string"==typeof n&&this.config.joins?.some(e=>e.alias===n))throw Error(`Alias "${n}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof i&&(this.config.fields={[i]:this.config.fields}),"string"==typeof n&&!(0,u.is)(t,g.$s))){let e=(0,u.is)(t,h.k)?t[h.g1].selection:(0,u.is)(t,g.G7)?t[v.d].selectedFields:t[m.iA.Symbol.Columns];this.config.fields[n]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:t,joinType:e,alias:n}),"string"==typeof n)switch(e){case"left":this.joinsNotNullableMap[n]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!0;break;case"inner":this.joinsNotNullableMap[n]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!1}return this}}createSetOperator(e,t){return r=>{let i="function"==typeof r?r(L()):r;if(!(0,_.ux)(this.getSelectedFields(),i.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:e,isAll:t,rightSelect:i}),this}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=e,this}groupBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),r=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=r:this.config.orderBy=r}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=e:this.config.orderBy=e;return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){return new Proxy(new h.k(this.getSQL(),this.config.fields,e),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new d.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class D extends H{static{this[u.Q]="MySqlSelect"}prepare(){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let e=(0,_.ZS)(this.config.fields),t=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),e);return t.joinsNotNullableMap=this.joinsNotNullableMap,t}constructor(...e){super(...e),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator()}}function q(e,t){return(r,i,...n)=>{let o=[i,...n].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of o)if(!(0,_.ux)(r.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return r.addSetOperators(o)}}(0,_.ef)(D,[K.N]);let L=()=>({union:B,unionAll:Q,intersect:z,intersectAll:F,except:V,exceptAll:G}),B=q("union",!1),Q=q("union",!0),z=q("intersect",!1),F=q("intersect",!0),V=q("except",!1),G=q("except",!0);class X{static{this[u.Q]="MySqlQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new h.SC(r.getSQL(),r.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new U({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(r){return new U({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e,distinct:!0})}}}select(e){return new U({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new U({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){return this.dialect||(this.dialect=new R),this.dialect}}class Y{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="MySqlUpdateBuilder"}set(e){return new Z(this.table,(0,_.M6)(this.table,e),this.session,this.dialect)}}class Z extends K.N{constructor(e,t,r,i){super(),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator(),this.session=r,this.dialect=i,this.config={set:t,table:e}}static{this[u.Q]="MySqlUpdate"}where(e){return this.config.where=e,this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning)}$dynamic(){return this}}class ee{constructor(e,t,r){this.shouldIgnore=!1,this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="MySqlInsertBuilder"}ignore(){return this.shouldIgnore=!0,this}values(e){if(0===(e=Array.isArray(e)?e:[e]).length)throw Error("values() must be called with at least one value");let t=e.map(e=>{let t={},r=this.table[m.iA.Symbol.Columns];for(let i of Object.keys(e)){let n=e[i];t[i]=(0,u.is)(n,g.$s)?n:new g.dO(n,r[i])}return t});return new et(this.table,t,this.shouldIgnore,this.session,this.dialect)}}class et extends K.N{constructor(e,t,r,i,n){super(),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator(),this.session=i,this.dialect=n,this.config={table:e,values:t,ignore:r}}static{this[u.Q]="MySqlInsert"}onDuplicateKeyUpdate(e){let t=this.dialect.buildUpdateSet(this.config.table,(0,_.M6)(this.config.table,e.set));return this.config.onConflict=g.i6`update ${t}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0)}$dynamic(){return this}}class er extends K.N{constructor(e,t,r){super(),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator(),this.table=e,this.session=t,this.dialect=r,this.config={table:e}}static{this[u.Q]="MySqlDelete"}where(e){return this.config.where=e,this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning)}$dynamic(){return this}}class ei{constructor(e,t,r,i,n,o,s,a){this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s,this.mode=a}static{this[u.Q]="MySqlRelationalQueryBuilder"}findMany(e){return new en(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many",this.mode)}findFirst(e){return new en(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first",this.mode)}}class en extends K.N{constructor(e,t,r,i,n,o,s,a,l,c){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s,this.config=a,this.queryMode=l,this.mode=c}static{this[u.Q]="MySqlRelationalQuery"}prepare(){let{query:e,builtQuery:t}=this._toSQL();return this.session.prepareQuery(t,void 0,t=>{let r=t.map(t=>(0,y.WX)(this.schema,this.tableConfig,t,e.selection));return"first"===this.queryMode?r[0]:r})}_getQuery(){return"planetscale"===this.mode?this.dialect.buildRelationalQueryWithoutLateralSubqueries({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName}):this.dialect.buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}_toSQL(){let e=this._getQuery();return{builtQuery:this.dialect.sqlToQuery(e.sql),query:e}}getSQL(){return this._getQuery().sql}toSQL(){return this._toSQL().builtQuery}execute(){return this.prepare().execute()}}class eo{constructor(e,t,r,i){if(this.dialect=e,this.session=t,this.mode=i,this._=r?{schema:r.schema,tableNamesMap:r.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={},this._.schema)for(let[i,n]of Object.entries(this._.schema))this.query[i]=new ei(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[i],n,e,t,this.mode)}static{this[u.Q]="MySqlDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new X)),new Proxy(new h.SC(t.getSQL(),t.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new U({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})},selectDistinct:function(r){return new U({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}}}select(e){return new U({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new U({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(e){return new Y(e,this.session,this.dialect)}insert(e){return new ee(e,this.session,this.dialect)}delete(e){return new er(e,this.session,this.dialect)}execute(e){return this.session.execute(e.getSQL())}transaction(e,t){return this.session.transaction(e,t)}}var es=r(3851);class ea{static{this[u.Q]="PgForeignKeyBuilder"}constructor(e,t){this._onUpdate="no action",this._onDelete="no action",this.reference=()=>{let{name:t,columns:r,foreignColumns:i}=e();return{name:t,columns:r,foreignTable:i[0].table,foreignColumns:i}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=void 0===e?"no action":e,this}onDelete(e){return this._onDelete=void 0===e?"no action":e,this}build(e){return new el(e,this)}}class el{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[u.Q]="PgForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),i=t.map(e=>e.name),n=r.map(e=>e.name),o=[this.table[es.YA.Symbol.Name],...i,r[0].table[es.YA.Symbol.Name],...n];return e??`${o.join("_")}_fk`}}function ec(e,t){return`${e[es.YA.Symbol.Name]}_${t.join("_")}_unique`}class eu{constructor(e,t){this.nullsNotDistinctConfig=!1,this.name=t,this.columns=e}static{this[u.Q]="PgUniqueConstraintBuilder"}nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(e){return new eh(e,this.columns,this.nullsNotDistinctConfig,this.name)}}class ed{static{this[u.Q]="PgUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new eu(e,this.name)}}class eh{constructor(e,t,r,i){this.nullsNotDistinct=!1,this.table=e,this.columns=t,this.name=i??ec(this.table,this.columns.map(e=>e.name)),this.nullsNotDistinct=r}static{this[u.Q]="PgUniqueConstraint"}getName(){return this.name}}function ep(e,t,r){for(let i=t;i<e.length;i++){let n=e[i];if("\\"===n){i++;continue}if('"'===n)return[e.slice(t,i).replace(/\\/g,""),i+1];if(!r&&(","===n||"}"===n))return[e.slice(t,i).replace(/\\/g,""),i]}return[e.slice(t).replace(/\\/g,""),e.length]}var ef=r(8823);class ey extends S.L{static{this[u.Q]="PgColumnBuilder"}array(e){return new em(this.config.name,this,e)}references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e,t){return this.config.isUnique=!0,this.config.uniqueName=e,this.config.uniqueType=t?.nulls,this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:r,actions:i})=>(0,ef.t)((r,i)=>{let n=new ea(()=>({columns:[e],foreignColumns:[r()]}));return i.onUpdate&&n.onUpdate(i.onUpdate),i.onDelete&&n.onDelete(i.onDelete),n.build(t)},r,i))}constructor(...e){super(...e),this.foreignKeyConfigs=[]}}class eg extends f.s{constructor(e,t){t.uniqueName||(t.uniqueName=ec(e,[t.name])),super(e,t),this.table=e}static{this[u.Q]="PgColumn"}}class em extends ey{static{this[u.Q]="PgArrayBuilder"}constructor(e,t,r){super(e,"array","PgArray"),this.config.baseBuilder=t,this.config.size=r}build(e){let t=this.config.baseBuilder.build(e);return new e_(e,this.config,t)}}class e_ extends eg{constructor(e,t,r,i){super(e,t),this.baseColumn=r,this.range=i,this.size=t.size}static{this[u.Q]="PgArray"}getSQLType(){return`${this.baseColumn.getSQLType()}[${"number"==typeof this.size?this.size:""}]`}mapFromDriverValue(e){return"string"==typeof e&&(e=function(e){let[t]=function e(t,r=0){let i=[],n=r,o=!1;for(;n<t.length;){let s=t[n];if(","===s){(o||n===r)&&i.push(""),o=!0,n++;continue}if(o=!1,"\\"===s){n+=2;continue}if('"'===s){let[e,r]=ep(t,n+1,!0);i.push(e),n=r;continue}if("}"===s)return[i,n+1];if("{"===s){let[r,o]=e(t,n+1);i.push(r),n=o;continue}let[a,l]=ep(t,n,!1);i.push(a),n=l}return[i,n]}(e,1);return t}(e)),e.map(e=>this.baseColumn.mapFromDriverValue(e))}mapToDriverValue(e,t=!1){let r=e.map(e=>null===e?null:(0,u.is)(this.baseColumn,e_)?this.baseColumn.mapToDriverValue(e,!0):this.baseColumn.mapToDriverValue(e));return t?r:function e(t){return`{${t.map(t=>Array.isArray(t)?e(t):"string"==typeof t?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}(r)}}class ev extends ey{static{this[u.Q]="PgJsonbBuilder"}constructor(e){super(e,"json","PgJsonb")}build(e){return new ew(e,this.config)}}class ew extends eg{static{this[u.Q]="PgJsonb"}constructor(e,t){super(e,t)}getSQLType(){return"jsonb"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}}class eb extends ey{static{this[u.Q]="PgJsonBuilder"}constructor(e){super(e,"json","PgJson")}build(e){return new eS(e,this.config)}}class eS extends eg{static{this[u.Q]="PgJson"}constructor(e,t){super(e,t)}getSQLType(){return"json"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}}class ek extends ey{static{this[u.Q]="PgNumericBuilder"}constructor(e,t,r){super(e,"string","PgNumeric"),this.config.precision=t,this.config.scale=r}build(e){return new eE(e,this.config)}}class eE extends eg{static{this[u.Q]="PgNumeric"}constructor(e,t){super(e,t),this.precision=t.precision,this.scale=t.scale}getSQLType(){return void 0!==this.precision&&void 0!==this.scale?`numeric(${this.precision}, ${this.scale})`:void 0===this.precision?"numeric":`numeric(${this.precision})`}}class eA extends ey{static{this[u.Q]="PgDateColumnBaseBuilder"}defaultNow(){return this.default(g.i6`now()`)}}class ex extends eA{constructor(e,t,r){super(e,"string","PgTime"),this.withTimezone=t,this.precision=r,this.config.withTimezone=t,this.config.precision=r}static{this[u.Q]="PgTimeBuilder"}build(e){return new eO(e,this.config)}}class eO extends eg{static{this[u.Q]="PgTime"}constructor(e,t){super(e,t),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=void 0===this.precision?"":`(${this.precision})`;return`time${e}${this.withTimezone?" with time zone":""}`}}class eT extends eA{static{this[u.Q]="PgTimestampBuilder"}constructor(e,t,r){super(e,"date","PgTimestamp"),this.config.withTimezone=t,this.config.precision=r}build(e){return new eP(e,this.config)}}class eP extends eg{static{this[u.Q]="PgTimestamp"}constructor(e,t){super(e,t),this.mapFromDriverValue=e=>new Date(this.withTimezone?e:e+"+0000"),this.mapToDriverValue=e=>this.withTimezone?e.toUTCString():e.toISOString(),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=void 0===this.precision?"":` (${this.precision})`;return`timestamp${e}${this.withTimezone?" with time zone":""}`}}class ej extends eA{static{this[u.Q]="PgTimestampStringBuilder"}constructor(e,t,r){super(e,"string","PgTimestampString"),this.config.withTimezone=t,this.config.precision=r}build(e){return new eC(e,this.config)}}class eC extends eg{static{this[u.Q]="PgTimestampString"}constructor(e,t){super(e,t),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=void 0===this.precision?"":`(${this.precision})`;return`timestamp${e}${this.withTimezone?" with time zone":""}`}}function eI(e,t={}){return"string"===t.mode?new ej(e,t.withTimezone??!1,t.precision):new eT(e,t.withTimezone??!1,t.precision)}class e$ extends eA{static{this[u.Q]="PgDateBuilder"}constructor(e){super(e,"date","PgDate")}build(e){return new eJ(e,this.config)}}class eJ extends eg{static{this[u.Q]="PgDate"}getSQLType(){return"date"}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}}class eM extends eA{static{this[u.Q]="PgDateStringBuilder"}constructor(e){super(e,"string","PgDateString")}build(e){return new eN(e,this.config)}}class eN extends eg{static{this[u.Q]="PgDateString"}getSQLType(){return"date"}}class eR extends ey{static{this[u.Q]="PgUUIDBuilder"}constructor(e){super(e,"string","PgUUID")}defaultRandom(){return this.default(g.i6`gen_random_uuid()`)}build(e){return new eW(e,this.config)}}class eW extends eg{static{this[u.Q]="PgUUID"}getSQLType(){return"uuid"}}class eK extends g.G7{static{this[u.Q]="PgViewBase"}}class eU{static{this[u.Q]="PgDialect"}async migrate(e,t){let r=g.i6` + CREATE TABLE IF NOT EXISTS "drizzle"."__drizzle_migrations" ( + id SERIAL PRIMARY KEY, + hash text NOT NULL, + created_at bigint + ) + `;await t.execute(g.i6`CREATE SCHEMA IF NOT EXISTS "drizzle"`),await t.execute(r);let i=(await t.all(g.i6`select id, hash, created_at from "drizzle"."__drizzle_migrations" order by created_at desc limit 1`))[0];await t.transaction(async t=>{for await(let r of e)if(!i||Number(i.created_at)<r.folderMillis){for(let e of r.sql)await t.execute(g.i6.raw(e));await t.execute(g.i6`insert into "drizzle"."__drizzle_migrations" ("hash", "created_at") values(${r.hash}, ${r.folderMillis})`)}})}escapeName(e){return`"${e}"`}escapeParam(e){return`$${e+1}`}escapeString(e){return`'${e.replace(/'/g,"''")}'`}buildDeleteQuery({table:e,where:t,returning:r}){let i=r?g.i6` returning ${this.buildSelection(r,{isSingleTable:!0})}`:void 0,n=t?g.i6` where ${t}`:void 0;return g.i6`delete from ${e}${n}${i}`}buildUpdateSet(e,t){let r=Object.entries(t),i=r.length;return g.i6.join(r.flatMap(([t,r],n)=>{let o=e[m.iA.Symbol.Columns][t],s=g.i6`${g.i6.identifier(o.name)} = ${r}`;return n<i-1?[s,g.i6.raw(", ")]:[s]}))}buildUpdateQuery({table:e,set:t,where:r,returning:i}){let n=this.buildUpdateSet(e,t),o=i?g.i6` returning ${this.buildSelection(i,{isSingleTable:!0})}`:void 0,s=r?g.i6` where ${r}`:void 0;return g.i6`update ${e} set ${n}${s}${o}`}buildSelection(e,{isSingleTable:t=!1}={}){let r=e.length,i=e.flatMap(({field:e},i)=>{let n=[];if((0,u.is)(e,g.$s.Aliased)&&e.isSelectionField)n.push(g.i6.identifier(e.fieldAlias));else if((0,u.is)(e,g.$s.Aliased)||(0,u.is)(e,g.$s)){let r=(0,u.is)(e,g.$s.Aliased)?e.sql:e;t?n.push(new g.$s(r.queryChunks.map(e=>(0,u.is)(e,eg)?g.i6.identifier(e.name):e))):n.push(r),(0,u.is)(e,g.$s.Aliased)&&n.push(g.i6` as ${g.i6.identifier(e.fieldAlias)}`)}else(0,u.is)(e,f.s)&&(t?n.push(g.i6.identifier(e.name)):n.push(e));return i<r-1&&n.push(g.i6`, `),n});return g.i6.join(i)}buildSelectQuery({withList:e,fields:t,fieldsFlat:r,where:i,having:n,table:o,joins:s,orderBy:a,groupBy:l,limit:c,offset:d,lockingClause:p,distinct:y,setOperators:w}){let b,S,k,E;let A=r??(0,_.ZS)(t);for(let e of A){var x;if((0,u.is)(e.field,f.s)&&(0,m.SP)(e.field.table)!==((0,u.is)(o,h.k)?o[h.g1].alias:(0,u.is)(o,eK)?o[v.d].name:(0,u.is)(o,g.$s)?void 0:(0,m.SP)(o))&&(x=e.field.table,!s?.some(({alias:e})=>e===(x[m.iA.Symbol.IsAlias]?m.SP(x):x[m.iA.Symbol.BaseName])))){let t=(0,m.SP)(e.field.table);throw Error(`Your "${e.path.join("->")}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}}let O=!s||0===s.length;if(e?.length){let t=[g.i6`with `];for(let[r,i]of e.entries())t.push(g.i6`${g.i6.identifier(i[h.g1].alias)} as (${i[h.g1].sql})`),r<e.length-1&&t.push(g.i6`, `);t.push(g.i6` `),b=g.i6.join(t)}y&&(S=!0===y?g.i6` distinct`:g.i6` distinct on (${g.i6.join(y.on,g.i6`, `)})`);let T=this.buildSelection(A,{isSingleTable:O}),P=(()=>{if((0,u.is)(o,m.iA)&&o[m.iA.Symbol.OriginalName]!==o[m.iA.Symbol.Name]){let e=g.i6`${g.i6.identifier(o[m.iA.Symbol.OriginalName])}`;return o[m.iA.Symbol.Schema]&&(e=g.i6`${g.i6.identifier(o[m.iA.Symbol.Schema])}.${e}`),g.i6`${e} ${g.i6.identifier(o[m.iA.Symbol.Name])}`}return o})(),j=[];if(s)for(let[e,t]of s.entries()){0===e&&j.push(g.i6` `);let r=t.table,i=t.lateral?g.i6` lateral`:void 0;if((0,u.is)(r,es.YA)){let e=r[es.YA.Symbol.Name],n=r[es.YA.Symbol.Schema],o=r[es.YA.Symbol.OriginalName],s=e===o?void 0:t.alias;j.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${n?g.i6`${g.i6.identifier(n)}.`:void 0}${g.i6.identifier(o)}${s&&g.i6` ${g.i6.identifier(s)}`} on ${t.on}`)}else if((0,u.is)(r,g.G7)){let e=r[v.d].name,n=r[v.d].schema,o=r[v.d].originalName,s=e===o?void 0:t.alias;j.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${n?g.i6`${g.i6.identifier(n)}.`:void 0}${g.i6.identifier(o)}${s&&g.i6` ${g.i6.identifier(s)}`} on ${t.on}`)}else j.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${r} on ${t.on}`);e<s.length-1&&j.push(g.i6` `)}let C=g.i6.join(j),I=i?g.i6` where ${i}`:void 0,$=n?g.i6` having ${n}`:void 0;a&&a.length>0&&(k=g.i6` order by ${g.i6.join(a,g.i6`, `)}`),l&&l.length>0&&(E=g.i6` group by ${g.i6.join(l,g.i6`, `)}`);let J=c?g.i6` limit ${c}`:void 0,M=d?g.i6` offset ${d}`:void 0,N=g.i6.empty();if(p){let e=g.i6` for ${g.i6.raw(p.strength)}`;p.config.of&&e.append(g.i6` of ${g.i6.join(Array.isArray(p.config.of)?p.config.of:[p.config.of],g.i6`, `)}`),p.config.noWait?e.append(g.i6` no wait`):p.config.skipLocked&&e.append(g.i6` skip locked`),N.append(e)}let R=g.i6`${b}select${S} ${T} from ${P}${C}${I}${E}${$}${k}${J}${M}${N}`;return w.length>0?this.buildSetOperations(R,w):R}buildSetOperations(e,t){let[r,...i]=t;if(!r)throw Error("Cannot pass undefined values to any set operator");return 0===i.length?this.buildSetOperationQuery({leftSelect:e,setOperator:r}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:r}),i)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:r,rightSelect:i,limit:n,orderBy:o,offset:s}}){let a;let l=g.i6`(${e.getSQL()}) `,c=g.i6`(${i.getSQL()})`;if(o&&o.length>0){let e=[];for(let t of o)if((0,u.is)(t,eg))e.push(g.i6.identifier(t.name));else if((0,u.is)(t,g.$s)){for(let e=0;e<t.queryChunks.length;e++){let r=t.queryChunks[e];(0,u.is)(r,eg)&&(t.queryChunks[e]=g.i6.identifier(r.name))}e.push(g.i6`${t}`)}else e.push(g.i6`${t}`);a=g.i6` order by ${g.i6.join(e,g.i6`, `)} `}let d=n?g.i6` limit ${n}`:void 0,h=g.i6.raw(`${t} ${r?"all ":""}`),p=s?g.i6` offset ${s}`:void 0;return g.i6`${l}${h}${c}${a}${d}${p}`}buildInsertQuery({table:e,values:t,onConflict:r,returning:i}){let n=[],o=Object.entries(e[m.iA.Symbol.Columns]),s=o.map(([,e])=>g.i6.identifier(e.name));for(let[e,r]of t.entries()){let i=[];for(let[e,t]of o){let n=r[e];if(void 0===n||(0,u.is)(n,g.dO)&&void 0===n.value){if(void 0!==t.defaultFn){let e=t.defaultFn(),r=(0,u.is)(e,g.$s)?e:g.i6.param(e,t);i.push(r)}else i.push(g.i6`default`)}else i.push(n)}n.push(i),e<t.length-1&&n.push(g.i6`, `)}let a=g.i6.join(n),l=i?g.i6` returning ${this.buildSelection(i,{isSingleTable:!0})}`:void 0,c=r?g.i6` on conflict ${r}`:void 0;return g.i6`insert into ${e} ${s} values ${a}${c}${l}`}buildRefreshMaterializedViewQuery({view:e,concurrently:t,withNoData:r}){let i=t?g.i6` concurrently`:void 0,n=r?g.i6` with no data`:void 0;return g.i6`refresh materialized view${i} ${e}${n}`}prepareTyping(e){return(0,u.is)(e,ew)||(0,u.is)(e,eS)?"json":(0,u.is)(e,eE)?"decimal":(0,u.is)(e,eO)?"time":(0,u.is)(e,eP)?"timestamp":(0,u.is)(e,eJ)?"date":(0,u.is)(e,eW)?"uuid":"none"}sqlToQuery(e){return e.toQuery({escapeName:this.escapeName,escapeParam:this.escapeParam,escapeString:this.escapeString,prepareTyping:this.prepareTyping})}buildRelationalQueryWithoutPK({fullSchema:e,schema:t,tableNamesMap:r,table:i,tableConfig:n,queryConfig:o,tableAlias:s,nestedQueryRelation:a,joinOn:l}){let c,d=[],_,v,S=[],k,E=[];if(!0===o)d=Object.entries(n.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:(0,p.lw)(t,s),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,p.lw)(t,s)]));if(o.where){let e="function"==typeof o.where?o.where(i,(0,y.vU)()):o.where;k=e&&(0,p.UI)(e,s)}let a=[],l=[];if(o.columns){let e=!1;for(let[t,r]of Object.entries(o.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>o.columns?.[e]===!0):Object.keys(n.columns).filter(e=>!l.includes(e)))}else l=Object.keys(n.columns);for(let e of l){let t=n.columns[e];a.push({tsKey:e,value:t})}let c=[];if(o.with&&(c=Object.entries(o.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),o.extras)for(let[e,t]of Object.entries("function"==typeof o.extras?o.extras(i,{sql:g.i6}):o.extras))a.push({tsKey:e,value:(0,p.qD)(t,s)});for(let{tsKey:e,value:t}of a)d.push({dbKey:(0,u.is)(t,g.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,u.is)(t,f.s)?(0,p.lw)(t,s):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let b="function"==typeof o.orderBy?o.orderBy(i,(0,y.pl)()):o.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:a}of(Array.isArray(b)||(b=[b]),S=b.map(e=>(0,u.is)(e,f.s)?(0,p.lw)(e,s):(0,p.UI)(e,s)),_=o.limit,v=o.offset,c)){let o=(0,y.wG)(t,r,a),l=r[a.referencedTable[m.iA.Symbol.Name]],c=`${s}_${i}`,f=(0,w.xD)(...o.fields.map((e,t)=>(0,w.eq)((0,p.lw)(o.references[t],c),(0,p.lw)(e,s)))),_=this.buildRelationalQueryWithoutPK({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,u.is)(a,y.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:c,joinOn:f,nestedQueryRelation:a}),v=g.i6`${g.i6.identifier(c)}.${g.i6.identifier("data")}`.as(i);E.push({on:g.i6`true`,table:new h.k(_.sql,{},c),alias:c,joinType:"left",lateral:!0}),d.push({dbKey:i,tsKey:i,field:v,relationTableTsKey:l,isJson:!0,selection:_.selection})}}if(0===d.length)throw new b.k({message:`No fields selected for table "${n.tsName}" ("${s}")`});if(k=(0,w.xD)(l,k),a){let e=g.i6`json_build_array(${g.i6.join(d.map(({field:e,tsKey:t,isJson:r})=>r?g.i6`${g.i6.identifier(`${s}_${t}`)}.${g.i6.identifier("data")}`:(0,u.is)(e,g.$s.Aliased)?e.sql:e),g.i6`, `)})`;(0,u.is)(a,y.sj)&&(e=g.i6`coalesce(json_agg(${e}${S.length>0?g.i6` order by ${g.i6.join(S,g.i6`, `)}`:void 0}), '[]'::json)`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:n.tsName,selection:d}];void 0!==_||void 0!==v||S.length>0?(c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:[{path:[],field:g.i6.raw("*")}],where:k,limit:_,offset:v,orderBy:S,setOperators:[]}),k=void 0,_=void 0,v=void 0,S=[]):c=(0,p.RQ)(i,s),c=this.buildSelectQuery({table:(0,u.is)(c,es.YA)?c:new h.k(c,{},s),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:E,where:k,limit:_,offset:v,orderBy:S,setOperators:[]})}else c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:d.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:E,where:k,limit:_,offset:v,orderBy:S,setOperators:[]});return{tableTsKey:n.tsName,sql:c,selection:d}}}var eH=r(7415);class eD{static{this[u.Q]="PgSelectBuilder"}constructor(e){this.withList=[],this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}from(e){let t;let r=!!this.fields;return t=this.fields?this.fields:(0,u.is)(e,h.k)?Object.fromEntries(Object.keys(e[h.g1].selection).map(t=>[t,e[t]])):(0,u.is)(e,eK)?e[v.d].selectedFields:(0,u.is)(e,g.$s)?{}:(0,_.SS)(e),new eL({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class eq extends W.b{static{this[u.Q]="PgSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:i,dialect:n,withList:o,distinct:s}){super(),this.leftJoin=this.createJoin("left"),this.rightJoin=this.createJoin("right"),this.innerJoin=this.createJoin("inner"),this.fullJoin=this.createJoin("full"),this.union=this.createSetOperator("union",!1),this.unionAll=this.createSetOperator("union",!0),this.intersect=this.createSetOperator("intersect",!1),this.intersectAll=this.createSetOperator("intersect",!0),this.except=this.createSetOperator("except",!1),this.exceptAll=this.createSetOperator("except",!0),this.config={withList:o,table:e,fields:{...t},distinct:s,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=n,this._={selectedFields:t},this.tableName=(0,_.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let i=this.tableName,n=(0,_.dP)(t);if("string"==typeof n&&this.config.joins?.some(e=>e.alias===n))throw Error(`Alias "${n}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof i&&(this.config.fields={[i]:this.config.fields}),"string"==typeof n&&!(0,u.is)(t,g.$s))){let e=(0,u.is)(t,h.k)?t[h.g1].selection:(0,u.is)(t,g.G7)?t[v.d].selectedFields:t[m.iA.Symbol.Columns];this.config.fields[n]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:t,joinType:e,alias:n}),"string"==typeof n)switch(e){case"left":this.joinsNotNullableMap[n]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!0;break;case"inner":this.joinsNotNullableMap[n]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!1}return this}}createSetOperator(e,t){return r=>{let i="function"==typeof r?r(eQ()):r;if(!(0,_.ux)(this.getSelectedFields(),i.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:e,isAll:t,rightSelect:i}),this}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=e,this}groupBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),r=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=r:this.config.orderBy=r}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=e:this.config.orderBy=e;return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){return new Proxy(new h.k(this.getSQL(),this.config.fields,e),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new d.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class eL extends eq{static{this[u.Q]="PgSelect"}_prepare(e){let{session:t,config:r,dialect:i,joinsNotNullableMap:n}=this;if(!t)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>{let o=(0,_.ZS)(r.fields),s=t.prepareQuery(i.sqlToQuery(this.getSQL()),o,e);return s.joinsNotNullableMap=n,s})}prepare(e){return this._prepare(e)}constructor(...e){super(...e),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e))}}function eB(e,t){return(r,i,...n)=>{let o=[i,...n].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of o)if(!(0,_.ux)(r.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return r.addSetOperators(o)}}(0,_.ef)(eL,[K.N]);let eQ=()=>({union:ez,unionAll:eF,intersect:eV,intersectAll:eG,except:eX,exceptAll:eY}),ez=eB("union",!1),eF=eB("union",!0),eV=eB("intersect",!1),eG=eB("intersect",!0),eX=eB("except",!1),eY=eB("except",!0);class eZ{static{this[u.Q]="PgQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new h.SC(r.getSQL(),r.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new eD({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(e){return new eD({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})},selectDistinctOn:function(e,r){return new eD({fields:r??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}}}select(e){return new eD({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new eD({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new eD({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||(this.dialect=new eU),this.dialect}}class e0{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="PgUpdateBuilder"}set(e){return new e1(this.table,(0,_.M6)(this.table,e),this.session,this.dialect)}}class e1 extends K.N{constructor(e,t,r,i){super(),this.execute=e=>this._prepare().execute(e),this.session=r,this.dialect=i,this.config={set:t,table:e}}static{this[u.Q]="PgUpdate"}where(e){return this.config.where=e,this}returning(e=this.config.table[m.iA.Symbol.Columns]){return this.config.returning=(0,_.ZS)(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e)}prepare(e){return this._prepare(e)}$dynamic(){return this}}class e2{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="PgInsertBuilder"}values(e){if(0===(e=Array.isArray(e)?e:[e]).length)throw Error("values() must be called with at least one value");let t=e.map(e=>{let t={},r=this.table[m.iA.Symbol.Columns];for(let i of Object.keys(e)){let n=e[i];t[i]=(0,u.is)(n,g.$s)?n:new g.dO(n,r[i])}return t});return new e6(this.table,t,this.session,this.dialect)}}class e6 extends K.N{constructor(e,t,r,i){super(),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=r,this.dialect=i,this.config={table:e,values:t}}static{this[u.Q]="PgInsert"}returning(e=this.config.table[m.iA.Symbol.Columns]){return this.config.returning=(0,_.ZS)(e),this}onConflictDoNothing(e={}){if(void 0===e.target)this.config.onConflict=g.i6`do nothing`;else{let t="";t=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(e.name)).join(","):this.dialect.escapeName(e.target.name);let r=e.where?g.i6` where ${e.where}`:void 0;this.config.onConflict=g.i6`(${g.i6.raw(t)}) do nothing${r}`}return this}onConflictDoUpdate(e){let t=e.where?g.i6` where ${e.where}`:void 0,r=this.dialect.buildUpdateSet(this.config.table,(0,_.M6)(this.config.table,e.set)),i="";return i=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(e.name)).join(","):this.dialect.escapeName(e.target.name),this.config.onConflict=g.i6`(${g.i6.raw(i)}) do update set ${r}${t}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e))}prepare(e){return this._prepare(e)}$dynamic(){return this}}class e5 extends K.N{constructor(e,t,r){super(),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=t,this.dialect=r,this.config={table:e}}static{this[u.Q]="PgDelete"}where(e){return this.config.where=e,this}returning(e=this.config.table[m.iA.Symbol.Columns]){return this.config.returning=(0,_.ZS)(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e))}prepare(e){return this._prepare(e)}$dynamic(){return this}}class e8{constructor(e,t,r,i,n,o,s){this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s}static{this[u.Q]="PgRelationalQueryBuilder"}findMany(e){return new e4(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many")}findFirst(e){return new e4(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first")}}class e4 extends K.N{constructor(e,t,r,i,n,o,s,a,l){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s,this.config=a,this.mode=l}static{this[u.Q]="PgRelationalQuery"}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>{let{query:t,builtQuery:r}=this._toSQL();return this.session.prepareQuery(r,void 0,e,(e,r)=>{let i=e.map(e=>(0,y.WX)(this.schema,this.tableConfig,e,t.selection,r));return"first"===this.mode?i[0]:i})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect.buildRelationalQueryWithoutPK({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery(),t=this.dialect.sqlToQuery(e.sql);return{query:e,builtQuery:t}}toSQL(){return this._toSQL().builtQuery}execute(){return eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute())}}class e3 extends K.N{constructor(e,t,r){super(),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=t,this.dialect=r,this.config={view:e}}static{this[u.Q]="PgRefreshMaterializedView"}concurrently(){if(void 0!==this.config.withNoData)throw Error("Cannot use concurrently and withNoData together");return this.config.concurrently=!0,this}withNoData(){if(void 0!==this.config.concurrently)throw Error("Cannot use concurrently and withNoData together");return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e))}prepare(e){return this._prepare(e)}}class e9{constructor(e,t,r){if(this.dialect=e,this.session=t,this._=r?{schema:r.schema,tableNamesMap:r.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={},this._.schema)for(let[i,n]of Object.entries(this._.schema))this.query[i]=new e8(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[i],n,e,t)}static{this[u.Q]="PgDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new eZ)),new Proxy(new h.SC(t.getSQL(),t.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new eD({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})}}}select(e){return new eD({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new eD({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new eD({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new e0(e,this.session,this.dialect)}insert(e){return new e2(e,this.session,this.dialect)}delete(e){return new e5(e,this.session,this.dialect)}refreshMaterializedView(e){return new e3(e,this.session,this.dialect)}execute(e){return this.session.execute(e.getSQL())}transaction(e,t){return this.session.transaction(e,t)}}var e7=r(8728);class te extends I{static{this[u.Q]="MySqlVarCharBuilder"}constructor(e,t){super(e,"string","MySqlVarChar"),this.config.length=t.length,this.config.enum=t.enum}build(e){return new tt(e,this.config)}}class tt extends ${static{this[u.Q]="MySqlVarChar"}getSQLType(){return void 0===this.length?"varchar":`varchar(${this.length})`}constructor(...e){super(...e),this.length=this.config.length,this.enumValues=this.config.enum}}function tr(e,t){return new te(e,t)}class ti extends I{static{this[u.Q]="MySqlDateColumnBuilder"}defaultNow(){return this.default(g.i6`(now())`)}onUpdateNow(){return this.config.hasOnUpdateNow=!0,this.config.hasDefault=!0,this}}class tn extends ${static{this[u.Q]="MySqlDateColumn"}constructor(...e){super(...e),this.hasOnUpdateNow=this.config.hasOnUpdateNow}}class to extends ti{static{this[u.Q]="MySqlTimestampBuilder"}constructor(e,t){super(e,"date","MySqlTimestamp"),this.config.fsp=t?.fsp}build(e){return new ts(e,this.config)}}class ts extends tn{static{this[u.Q]="MySqlTimestamp"}getSQLType(){let e=void 0===this.fsp?"":`(${this.fsp})`;return`timestamp${e}`}mapFromDriverValue(e){return new Date(e+"+0000")}mapToDriverValue(e){return e.toISOString().slice(0,-1).replace("T"," ")}constructor(...e){super(...e),this.fsp=this.config.fsp}}class ta extends ti{static{this[u.Q]="MySqlTimestampStringBuilder"}constructor(e,t){super(e,"string","MySqlTimestampString"),this.config.fsp=t?.fsp}build(e){return new tl(e,this.config)}}class tl extends tn{static{this[u.Q]="MySqlTimestampString"}getSQLType(){let e=void 0===this.fsp?"":`(${this.fsp})`;return`timestamp${e}`}constructor(...e){super(...e),this.fsp=this.config.fsp}}function tc(e,t={}){return"string"===t.mode?new ta(e,t):new to(e,t)}class tu extends J{static{this[u.Q]="MySqlIntBuilder"}constructor(e,t){super(e,"number","MySqlInt"),this.config.unsigned=!!t&&t.unsigned}build(e){return new td(e,this.config)}}class td extends M{static{this[u.Q]="MySqlInt"}getSQLType(){return`int${this.config.unsigned?" unsigned":""}`}mapFromDriverValue(e){return"string"==typeof e?Number(e):e}}function th(...e){return e[0].columns?new tp(e[0].columns,e[0].name):new tp(e)}class tp{static{this[u.Q]="MySqlPrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new tf(e,this.columns,this.name)}}class tf{constructor(e,t,r){this.table=e,this.columns=t,this.name=r}static{this[u.Q]="MySqlPrimaryKey"}getName(){return this.name??`${this.table[E.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}class ty extends ey{static{this[u.Q]="PgTextBuilder"}constructor(e,t){super(e,"string","PgText"),this.config.enumValues=t.enum}build(e){return new tg(e,this.config)}}class tg extends eg{static{this[u.Q]="PgText"}getSQLType(){return"text"}constructor(...e){super(...e),this.enumValues=this.config.enumValues}}function tm(e,t={}){return new ty(e,t)}class t_ extends ey{static{this[u.Q]="PgIntegerBuilder"}constructor(e){super(e,"number","PgInteger")}build(e){return new tv(e,this.config)}}class tv extends eg{static{this[u.Q]="PgInteger"}getSQLType(){return"integer"}mapFromDriverValue(e){return"string"==typeof e?Number.parseInt(e):e}}var tw=r(6655);function tb(e){let t={};for(let r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var tS=r(440),tk=r(9415),tE=r(7357),tA=r(5225),tx=r(4569),tO=r(8654),tT=r(5054),tP=r(246);let tj={callbacks:{session:({session:e,token:t})=>({...e,user:{...e.user,id:t.id,token:t}})},adapter:function(e,t){if((0,u.is)(e,eo))return function(e,t=A){let{users:r,accounts:i,sessions:n,verificationTokens:o}=function(e){let t=e("user",{id:tr("id",{length:255}).notNull().primaryKey(),name:tr("name",{length:255}),email:tr("email",{length:255}).notNull(),emailVerified:tc("emailVerified",{mode:"date",fsp:3}).defaultNow(),image:tr("image",{length:255})}),r=e("account",{userId:tr("userId",{length:255}).notNull().references(()=>t.id,{onDelete:"cascade"}),type:tr("type",{length:255}).$type().notNull(),provider:tr("provider",{length:255}).notNull(),providerAccountId:tr("providerAccountId",{length:255}).notNull(),refresh_token:tr("refresh_token",{length:255}),access_token:tr("access_token",{length:255}),expires_at:new tu("expires_at",void 0),token_type:tr("token_type",{length:255}),scope:tr("scope",{length:255}),id_token:tr("id_token",{length:255}),session_state:tr("session_state",{length:255})},e=>({compoundKey:th(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:tr("sessionToken",{length:255}).notNull().primaryKey(),userId:tr("userId",{length:255}).notNull().references(()=>t.id,{onDelete:"cascade"}),expires:tc("expires",{mode:"date"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:tr("identifier",{length:255}).notNull(),token:tr("token",{length:255}).notNull(),expires:tc("expires",{mode:"date"}).notNull()},e=>({compoundKey:th(e.identifier,e.token)}))}}(t);return{async createUser(t){let i=crypto.randomUUID();return await e.insert(r).values({...t,id:i}),await e.select().from(r).where((0,w.eq)(r.id,i)).then(e=>e[0])},getUser:async t=>await e.select().from(r).where((0,w.eq)(r.id,t)).then(e=>e[0])??null,getUserByEmail:async t=>await e.select().from(r).where((0,w.eq)(r.email,t)).then(e=>e[0])??null,createSession:async t=>(await e.insert(n).values(t),await e.select().from(n).where((0,w.eq)(n.sessionToken,t.sessionToken)).then(e=>e[0])),getSessionAndUser:async t=>await e.select({session:n,user:r}).from(n).where((0,w.eq)(n.sessionToken,t)).innerJoin(r,(0,w.eq)(r.id,n.userId)).then(e=>e[0])??null,async updateUser(t){if(!t.id)throw Error("No user id.");return await e.update(r).set(t).where((0,w.eq)(r.id,t.id)),await e.select().from(r).where((0,w.eq)(r.id,t.id)).then(e=>e[0])},updateSession:async t=>(await e.update(n).set(t).where((0,w.eq)(n.sessionToken,t.sessionToken)),await e.select().from(n).where((0,w.eq)(n.sessionToken,t.sessionToken)).then(e=>e[0])),async linkAccount(t){await e.insert(i).values(t)},async getUserByAccount(t){let n=await e.select().from(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).leftJoin(r,(0,w.eq)(i.userId,r.id)).then(e=>e[0])??null;return n?n.user:null},async deleteSession(t){let r=await e.select().from(n).where((0,w.eq)(n.sessionToken,t)).then(e=>e[0])??null;return await e.delete(n).where((0,w.eq)(n.sessionToken,t)),r},createVerificationToken:async t=>(await e.insert(o).values(t),await e.select().from(o).where((0,w.eq)(o.identifier,t.identifier)).then(e=>e[0])),async useVerificationToken(t){try{let r=await e.select().from(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))).then(e=>e[0])??null;return await e.delete(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))),r}catch(e){throw Error("No verification token found.")}},async deleteUser(t){let i=await e.select().from(r).where((0,w.eq)(r.id,t)).then(e=>e[0]??null);return await e.delete(r).where((0,w.eq)(r.id,t)),i},async unlinkAccount(t){await e.delete(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider)))}}}(e,t);if((0,u.is)(e,e9))return function(e,t=es.af){let{users:r,accounts:i,sessions:n,verificationTokens:o}=function(e){let t=e("user",{id:tm("id").notNull().primaryKey(),name:tm("name"),email:tm("email").notNull(),emailVerified:eI("emailVerified",{mode:"date"}),image:tm("image")}),r=e("account",{userId:tm("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),type:tm("type").$type().notNull(),provider:tm("provider").notNull(),providerAccountId:tm("providerAccountId").notNull(),refresh_token:tm("refresh_token"),access_token:tm("access_token"),expires_at:new t_("expires_at"),token_type:tm("token_type"),scope:tm("scope"),id_token:tm("id_token"),session_state:tm("session_state")},e=>({compoundKey:(0,tw.CK)(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:tm("sessionToken").notNull().primaryKey(),userId:tm("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),expires:eI("expires",{mode:"date"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:tm("identifier").notNull(),token:tm("token").notNull(),expires:eI("expires",{mode:"date"}).notNull()},e=>({compoundKey:(0,tw.CK)(e.identifier,e.token)}))}}(t);return{createUser:async t=>await e.insert(r).values({...t,id:crypto.randomUUID()}).returning().then(e=>e[0]??null),getUser:async t=>await e.select().from(r).where((0,w.eq)(r.id,t)).then(e=>e[0]??null),getUserByEmail:async t=>await e.select().from(r).where((0,w.eq)(r.email,t)).then(e=>e[0]??null),createSession:async t=>await e.insert(n).values(t).returning().then(e=>e[0]),getSessionAndUser:async t=>await e.select({session:n,user:r}).from(n).where((0,w.eq)(n.sessionToken,t)).innerJoin(r,(0,w.eq)(r.id,n.userId)).then(e=>e[0]??null),async updateUser(t){if(!t.id)throw Error("No user id.");return await e.update(r).set(t).where((0,w.eq)(r.id,t.id)).returning().then(e=>e[0])},updateSession:async t=>await e.update(n).set(t).where((0,w.eq)(n.sessionToken,t.sessionToken)).returning().then(e=>e[0]),linkAccount:async t=>tb(await e.insert(i).values(t).returning().then(e=>e[0])),async getUserByAccount(t){let n=await e.select().from(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).leftJoin(r,(0,w.eq)(i.userId,r.id)).then(e=>e[0])??null;return n?.user??null},deleteSession:async t=>await e.delete(n).where((0,w.eq)(n.sessionToken,t)).returning().then(e=>e[0]??null),createVerificationToken:async t=>await e.insert(o).values(t).returning().then(e=>e[0]),async useVerificationToken(t){try{return await e.delete(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))).returning().then(e=>e[0]??null)}catch(e){throw Error("No verification token found.")}},async deleteUser(t){await e.delete(r).where((0,w.eq)(r.id,t)).returning().then(e=>e[0]??null)},async unlinkAccount(t){let{type:r,provider:n,providerAccountId:o,userId:s}=await e.delete(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).returning().then(e=>e[0]??null);return{provider:n,type:r,providerAccountId:o,userId:s}}}}(e,t);if((0,u.is)(e,e7.z))return function(e,t=tA.Px){let{users:r,accounts:i,sessions:n,verificationTokens:o}=function(e){let t=e("user",{id:(0,tS.fL)("id").notNull().primaryKey(),name:(0,tS.fL)("name"),email:(0,tS.fL)("email").notNull(),emailVerified:(0,tk._L)("emailVerified",{mode:"timestamp_ms"}),image:(0,tS.fL)("image")}),r=e("account",{userId:(0,tS.fL)("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),type:(0,tS.fL)("type").$type().notNull(),provider:(0,tS.fL)("provider").notNull(),providerAccountId:(0,tS.fL)("providerAccountId").notNull(),refresh_token:(0,tS.fL)("refresh_token"),access_token:(0,tS.fL)("access_token"),expires_at:(0,tk._L)("expires_at"),token_type:(0,tS.fL)("token_type"),scope:(0,tS.fL)("scope"),id_token:(0,tS.fL)("id_token"),session_state:(0,tS.fL)("session_state")},e=>({compoundKey:(0,tE.CK)(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:(0,tS.fL)("sessionToken").notNull().primaryKey(),userId:(0,tS.fL)("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),expires:(0,tk._L)("expires",{mode:"timestamp_ms"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:(0,tS.fL)("identifier").notNull(),token:(0,tS.fL)("token").notNull(),expires:(0,tk._L)("expires",{mode:"timestamp_ms"}).notNull()},e=>({compoundKey:(0,tE.CK)(e.identifier,e.token)}))}}(t);return{createUser:async t=>await e.insert(r).values({...t,id:crypto.randomUUID()}).returning().get(),getUser:async t=>await e.select().from(r).where((0,w.eq)(r.id,t)).get()??null,getUserByEmail:async t=>await e.select().from(r).where((0,w.eq)(r.email,t)).get()??null,createSession:t=>e.insert(n).values(t).returning().get(),getSessionAndUser:async t=>await e.select({session:n,user:r}).from(n).where((0,w.eq)(n.sessionToken,t)).innerJoin(r,(0,w.eq)(r.id,n.userId)).get()??null,async updateUser(t){if(!t.id)throw Error("No user id.");return await e.update(r).set(t).where((0,w.eq)(r.id,t.id)).returning().get()??null},updateSession:async t=>await e.update(n).set(t).where((0,w.eq)(n.sessionToken,t.sessionToken)).returning().get()??null,linkAccount:async t=>tb(await e.insert(i).values(t).returning().get()),async getUserByAccount(t){let n=await e.select().from(i).leftJoin(r,(0,w.eq)(r.id,i.userId)).where((0,w.xD)((0,w.eq)(i.provider,t.provider),(0,w.eq)(i.providerAccountId,t.providerAccountId))).get();return n?Promise.resolve(n).then(e=>e.user):null},deleteSession:async t=>await e.delete(n).where((0,w.eq)(n.sessionToken,t)).returning().get()??null,createVerificationToken:async t=>await e.insert(o).values(t).returning().get()??null,async useVerificationToken(t){try{return await e.delete(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))).returning().get()??null}catch(e){throw Error("No verification token found.")}},deleteUser:async t=>await e.delete(r).where((0,w.eq)(r.id,t)).returning().get()??null,async unlinkAccount(t){await e.delete(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).run()}}}(e,t);throw Error(`Unsupported database type (${typeof e}) in Auth.js Drizzle adapter.`)}(tT.db,tP.createTable),providers:[(0,tx.Z)({clientId:tO.O.GOOGLE_CLIENT_ID,clientSecret:tO.O.GOOGLE_CLIENT_SECRET})]},tC=c()(tj),tI=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/auth/[...nextauth]/route",pathname:"/api/auth/[...nextauth]",filename:"route",bundlePath:"app/api/auth/[...nextauth]/route"},resolvedPagePath:"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/api/auth/[...nextauth]/route.ts",nextConfigOutput:"",userland:n}),{requestAsyncStorage:t$,staticGenerationAsyncStorage:tJ,serverHooks:tM,headerHooks:tN,staticGenerationBailout:tR}=tI,tW="/api/auth/[...nextauth]/route";function tK(){return(0,a.patchFetch)({serverHooks:tM,staticGenerationAsyncStorage:tJ})}},5054:(e,t,r)=>{"use strict";r.d(t,{db:()=>l});let i=require("better-sqlite3");var n=r.n(i),o=r(9404),s=r(8654),a=r(246);let l=(0,o.t)(new(n())(s.O.DATABASE_URL,{fileMustExist:!1}),{schema:a})},246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{accounts:()=>f,accountsRelations:()=>y,createTable:()=>u,posts:()=>d,sessions:()=>g,sessionsRelations:()=>m,users:()=>h,usersRelations:()=>p,verificationTokens:()=>_});var i=r(2393),n=r(9349),o=r(5225),s=r(9415),a=r(440),l=r(7591),c=r(7357);let u=(0,o._9)(e=>`anycontext_${e}`),d=u("post",{id:(0,s.e$)("id",{mode:"number"}).primaryKey({autoIncrement:!0}),name:(0,a.fL)("name",{length:256}),createdById:(0,a.fL)("createdById",{length:255}).notNull().references(()=>h.id),createdAt:(0,s.e$)("created_at",{mode:"timestamp"}).default(i.i6`CURRENT_TIMESTAMP`).notNull(),updatedAt:(0,s.e$)("updatedAt",{mode:"timestamp"})},e=>({createdByIdIdx:(0,l.Kz)("createdById_idx").on(e.createdById),nameIndex:(0,l.Kz)("name_idx").on(e.name)})),h=u("user",{id:(0,a.fL)("id",{length:255}).notNull().primaryKey(),name:(0,a.fL)("name",{length:255}),email:(0,a.fL)("email",{length:255}).notNull(),emailVerified:(0,s.e$)("emailVerified",{mode:"timestamp"}).default(i.i6`CURRENT_TIMESTAMP`),image:(0,a.fL)("image",{length:255})}),p=(0,n.lE)(h,({many:e})=>({accounts:e(f)})),f=u("account",{userId:(0,a.fL)("userId",{length:255}).notNull().references(()=>h.id),type:(0,a.fL)("type",{length:255}).$type().notNull(),provider:(0,a.fL)("provider",{length:255}).notNull(),providerAccountId:(0,a.fL)("providerAccountId",{length:255}).notNull(),refresh_token:(0,a.fL)("refresh_token"),access_token:(0,a.fL)("access_token"),expires_at:(0,s.e$)("expires_at"),token_type:(0,a.fL)("token_type",{length:255}),scope:(0,a.fL)("scope",{length:255}),id_token:(0,a.fL)("id_token"),session_state:(0,a.fL)("session_state",{length:255})},e=>({compoundKey:(0,c.CK)({columns:[e.provider,e.providerAccountId]}),userIdIdx:(0,l.Kz)("account_userId_idx").on(e.userId)})),y=(0,n.lE)(f,({one:e})=>({user:e(h,{fields:[f.userId],references:[h.id]})})),g=u("session",{sessionToken:(0,a.fL)("sessionToken",{length:255}).notNull().primaryKey(),userId:(0,a.fL)("userId",{length:255}).notNull().references(()=>h.id),expires:(0,s.e$)("expires",{mode:"timestamp"}).notNull()},e=>({userIdIdx:(0,l.Kz)("session_userId_idx").on(e.userId)})),m=(0,n.lE)(g,({one:e})=>({user:e(h,{fields:[g.userId],references:[h.id]})})),_=u("verificationToken",{identifier:(0,a.fL)("identifier",{length:255}).notNull(),token:(0,a.fL)("token",{length:255}).notNull(),expires:(0,s.e$)("expires",{mode:"timestamp"}).notNull()},e=>({compoundKey:(0,c.CK)({columns:[e.identifier,e.token]})}))},217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.hkdf=void 0;let i=r(3153);function n(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}async function o(e,t,r,o,s){return(0,i.default)(function(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}(e),function(e){let t=n(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}(t),n(r,"salt"),function(e){let t=n(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}(o),function(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}(s,e))}t.hkdf=o,t.default=o},4483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113);t.default=(e,t,r,n,o)=>{let s=parseInt(e.substr(3),10)>>3||20,a=(0,i.createHmac)(e,r.byteLength?r:new Uint8Array(s)).update(t).digest(),l=Math.ceil(o/s),c=new Uint8Array(s*l+n.byteLength+1),u=0,d=0;for(let t=1;t<=l;t++)c.set(n,d),c[d+n.byteLength]=t,c.set((0,i.createHmac)(e,a).update(c.subarray(u,d+n.byteLength+1)).digest(),d),u=d,d+=s;return c.slice(0,o)}},3153:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113),o=r(4483);"function"!=typeof n.hkdf||process.versions.electron||(i=async(...e)=>new Promise((t,r)=>{n.hkdf(...e,(e,i)=>{e?r(e):t(new Uint8Array(i))})})),t.default=async(e,t,r,n,s)=>(i||o.default)(e,t,r,n,s)},7162:(e,t)=>{"use strict";/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=(t||{}).decode||n,o=0;o<e.length;){var s=e.indexOf("=",o);if(-1===s)break;var a=e.indexOf(";",o);if(-1===a)a=e.length;else if(a<s){o=e.lastIndexOf(";",s-1)+1;continue}var l=e.slice(o,s).trim();if(void 0===r[l]){var c=e.slice(s+1,a).trim();34===c.charCodeAt(0)&&(c=c.slice(1,-1)),r[l]=function(e,t){try{return t(e)}catch(t){return e}}(c,i)}o=a+1}return r},t.serialize=function(e,t,n){var s=n||{},a=s.encode||o;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var l=a(t);if(l&&!i.test(l))throw TypeError("argument val is invalid");var c=e+"="+l;if(null!=s.maxAge){var u=s.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(s.domain){if(!i.test(s.domain))throw TypeError("option domain is invalid");c+="; Domain="+s.domain}if(s.path){if(!i.test(s.path))throw TypeError("option path is invalid");c+="; Path="+s.path}if(s.expires){var d=s.expires;if("[object Date]"!==r.call(d)&&!(d instanceof Date)||isNaN(d.valueOf()))throw TypeError("option expires is invalid");c+="; Expires="+d.toUTCString()}if(s.httpOnly&&(c+="; HttpOnly"),s.secure&&(c+="; Secure"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var r=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function o(e){return encodeURIComponent(e)}},5100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoRuntime=t.base64url=t.generateSecret=t.generateKeyPair=t.errors=t.decodeJwt=t.decodeProtectedHeader=t.importJWK=t.importX509=t.importPKCS8=t.importSPKI=t.exportJWK=t.exportSPKI=t.exportPKCS8=t.UnsecuredJWT=t.createRemoteJWKSet=t.createLocalJWKSet=t.EmbeddedJWK=t.calculateJwkThumbprintUri=t.calculateJwkThumbprint=t.EncryptJWT=t.SignJWT=t.GeneralSign=t.FlattenedSign=t.CompactSign=t.FlattenedEncrypt=t.CompactEncrypt=t.jwtDecrypt=t.jwtVerify=t.generalVerify=t.flattenedVerify=t.compactVerify=t.GeneralEncrypt=t.generalDecrypt=t.flattenedDecrypt=t.compactDecrypt=void 0;var i=r(1222);Object.defineProperty(t,"compactDecrypt",{enumerable:!0,get:function(){return i.compactDecrypt}});var n=r(1531);Object.defineProperty(t,"flattenedDecrypt",{enumerable:!0,get:function(){return n.flattenedDecrypt}});var o=r(658);Object.defineProperty(t,"generalDecrypt",{enumerable:!0,get:function(){return o.generalDecrypt}});var s=r(4186);Object.defineProperty(t,"GeneralEncrypt",{enumerable:!0,get:function(){return s.GeneralEncrypt}});var a=r(9751);Object.defineProperty(t,"compactVerify",{enumerable:!0,get:function(){return a.compactVerify}});var l=r(1330);Object.defineProperty(t,"flattenedVerify",{enumerable:!0,get:function(){return l.flattenedVerify}});var c=r(2553);Object.defineProperty(t,"generalVerify",{enumerable:!0,get:function(){return c.generalVerify}});var u=r(913);Object.defineProperty(t,"jwtVerify",{enumerable:!0,get:function(){return u.jwtVerify}});var d=r(3621);Object.defineProperty(t,"jwtDecrypt",{enumerable:!0,get:function(){return d.jwtDecrypt}});var h=r(8369);Object.defineProperty(t,"CompactEncrypt",{enumerable:!0,get:function(){return h.CompactEncrypt}});var p=r(210);Object.defineProperty(t,"FlattenedEncrypt",{enumerable:!0,get:function(){return p.FlattenedEncrypt}});var f=r(524);Object.defineProperty(t,"CompactSign",{enumerable:!0,get:function(){return f.CompactSign}});var y=r(9988);Object.defineProperty(t,"FlattenedSign",{enumerable:!0,get:function(){return y.FlattenedSign}});var g=r(6755);Object.defineProperty(t,"GeneralSign",{enumerable:!0,get:function(){return g.GeneralSign}});var m=r(9252);Object.defineProperty(t,"SignJWT",{enumerable:!0,get:function(){return m.SignJWT}});var _=r(8255);Object.defineProperty(t,"EncryptJWT",{enumerable:!0,get:function(){return _.EncryptJWT}});var v=r(5811);Object.defineProperty(t,"calculateJwkThumbprint",{enumerable:!0,get:function(){return v.calculateJwkThumbprint}}),Object.defineProperty(t,"calculateJwkThumbprintUri",{enumerable:!0,get:function(){return v.calculateJwkThumbprintUri}});var w=r(4191);Object.defineProperty(t,"EmbeddedJWK",{enumerable:!0,get:function(){return w.EmbeddedJWK}});var b=r(8085);Object.defineProperty(t,"createLocalJWKSet",{enumerable:!0,get:function(){return b.createLocalJWKSet}});var S=r(6190);Object.defineProperty(t,"createRemoteJWKSet",{enumerable:!0,get:function(){return S.createRemoteJWKSet}});var k=r(9752);Object.defineProperty(t,"UnsecuredJWT",{enumerable:!0,get:function(){return k.UnsecuredJWT}});var E=r(510);Object.defineProperty(t,"exportPKCS8",{enumerable:!0,get:function(){return E.exportPKCS8}}),Object.defineProperty(t,"exportSPKI",{enumerable:!0,get:function(){return E.exportSPKI}}),Object.defineProperty(t,"exportJWK",{enumerable:!0,get:function(){return E.exportJWK}});var A=r(7989);Object.defineProperty(t,"importSPKI",{enumerable:!0,get:function(){return A.importSPKI}}),Object.defineProperty(t,"importPKCS8",{enumerable:!0,get:function(){return A.importPKCS8}}),Object.defineProperty(t,"importX509",{enumerable:!0,get:function(){return A.importX509}}),Object.defineProperty(t,"importJWK",{enumerable:!0,get:function(){return A.importJWK}});var x=r(9472);Object.defineProperty(t,"decodeProtectedHeader",{enumerable:!0,get:function(){return x.decodeProtectedHeader}});var O=r(9541);Object.defineProperty(t,"decodeJwt",{enumerable:!0,get:function(){return O.decodeJwt}}),t.errors=r(3885);var T=r(1399);Object.defineProperty(t,"generateKeyPair",{enumerable:!0,get:function(){return T.generateKeyPair}});var P=r(8259);Object.defineProperty(t,"generateSecret",{enumerable:!0,get:function(){return P.generateSecret}}),t.base64url=r(3225);var j=r(6537);Object.defineProperty(t,"cryptoRuntime",{enumerable:!0,get:function(){return j.default}})},1222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactDecrypt=void 0;let i=r(1531),n=r(3885),o=r(3004);async function s(e,t,r){if(e instanceof Uint8Array&&(e=o.decoder.decode(e)),"string"!=typeof e)throw new n.JWEInvalid("Compact JWE must be a string or Uint8Array");let{0:s,1:a,2:l,3:c,4:u,length:d}=e.split(".");if(5!==d)throw new n.JWEInvalid("Invalid Compact JWE");let h=await (0,i.flattenedDecrypt)({ciphertext:c,iv:l||void 0,protected:s||void 0,tag:u||void 0,encrypted_key:a||void 0},t,r),p={plaintext:h.plaintext,protectedHeader:h.protectedHeader};return"function"==typeof t?{...p,key:h.key}:p}t.compactDecrypt=s},8369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactEncrypt=void 0;let i=r(210);class n{constructor(e){this._flattened=new i.FlattenedEncrypt(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}t.CompactEncrypt=n},1531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenedDecrypt=void 0;let i=r(5803),n=r(7287),o=r(4652),s=r(3885),a=r(7944),l=r(8906),c=r(3682),u=r(3004),d=r(2794),h=r(9277),p=r(2561);async function f(e,t,r){var f;let y,g,m,_,v,w,b;if(!(0,l.default)(e))throw new s.JWEInvalid("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new s.JWEInvalid("JOSE Header missing");if("string"!=typeof e.iv)throw new s.JWEInvalid("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new s.JWEInvalid("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new s.JWEInvalid("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new s.JWEInvalid("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new s.JWEInvalid("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new s.JWEInvalid("JWE AAD incorrect type");if(void 0!==e.header&&!(0,l.default)(e.header))throw new s.JWEInvalid("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!(0,l.default)(e.unprotected))throw new s.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=(0,i.decode)(e.protected);y=JSON.parse(u.decoder.decode(t))}catch{throw new s.JWEInvalid("JWE Protected Header is invalid")}if(!(0,a.default)(y,e.header,e.unprotected))throw new s.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let S={...y,...e.header,...e.unprotected};if((0,h.default)(s.JWEInvalid,new Map,null==r?void 0:r.crit,y,S),void 0!==S.zip){if(!y||!y.zip)throw new s.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==S.zip)throw new s.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:k,enc:E}=S;if("string"!=typeof k||!k)throw new s.JWEInvalid("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof E||!E)throw new s.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header");let A=r&&(0,p.default)("keyManagementAlgorithms",r.keyManagementAlgorithms),x=r&&(0,p.default)("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(A&&!A.has(k))throw new s.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed');if(x&&!x.has(E))throw new s.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter not allowed');if(void 0!==e.encrypted_key)try{g=(0,i.decode)(e.encrypted_key)}catch{throw new s.JWEInvalid("Failed to base64url decode the encrypted_key")}let O=!1;"function"==typeof t&&(t=await t(y,e),O=!0);try{m=await (0,c.default)(k,t,g,S,r)}catch(e){if(e instanceof TypeError||e instanceof s.JWEInvalid||e instanceof s.JOSENotSupported)throw e;m=(0,d.default)(E)}try{_=(0,i.decode)(e.iv)}catch{throw new s.JWEInvalid("Failed to base64url decode the iv")}try{v=(0,i.decode)(e.tag)}catch{throw new s.JWEInvalid("Failed to base64url decode the tag")}let T=u.encoder.encode(null!==(f=e.protected)&&void 0!==f?f:"");w=void 0!==e.aad?(0,u.concat)(T,u.encoder.encode("."),u.encoder.encode(e.aad)):T;try{b=(0,i.decode)(e.ciphertext)}catch{throw new s.JWEInvalid("Failed to base64url decode the ciphertext")}let P=await (0,n.default)(E,m,b,_,v,w);"DEF"===S.zip&&(P=await ((null==r?void 0:r.inflateRaw)||o.inflate)(P));let j={plaintext:P};if(void 0!==e.protected&&(j.protectedHeader=y),void 0!==e.aad)try{j.additionalAuthenticatedData=(0,i.decode)(e.aad)}catch{throw new s.JWEInvalid("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(j.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(j.unprotectedHeader=e.header),O)?{...j,key:t}:j}t.flattenedDecrypt=f},210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlattenedEncrypt=t.unprotected=void 0;let i=r(5803),n=r(7359),o=r(4652),s=r(5183),a=r(5405),l=r(3885),c=r(7944),u=r(3004),d=r(9277);t.unprotected=Symbol();class h{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,r){let h,p,f,y,g,m,_;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new l.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!(0,c.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new l.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let v={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if((0,d.default)(l.JWEInvalid,new Map,null==r?void 0:r.crit,this._protectedHeader,v),void 0!==v.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new l.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==v.zip)throw new l.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:w,enc:b}=v;if("string"!=typeof w||!w)throw new l.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof b||!b)throw new l.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===w){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===w&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let i;({cek:p,encryptedKey:h,parameters:i}=await (0,a.default)(w,b,e,this._cek,this._keyManagementParameters)),i&&(r&&t.unprotected in r?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}if(this._iv||(this._iv=(0,s.default)(b)),y=this._protectedHeader?u.encoder.encode((0,i.encode)(JSON.stringify(this._protectedHeader))):u.encoder.encode(""),this._aad?(g=(0,i.encode)(this._aad),f=(0,u.concat)(y,u.encoder.encode("."),u.encoder.encode(g))):f=y,"DEF"===v.zip){let e=await ((null==r?void 0:r.deflateRaw)||o.deflate)(this._plaintext);({ciphertext:m,tag:_}=await (0,n.default)(b,e,p,this._iv,f))}else({ciphertext:m,tag:_}=await (0,n.default)(b,this._plaintext,p,this._iv,f));let S={ciphertext:(0,i.encode)(m),iv:(0,i.encode)(this._iv),tag:(0,i.encode)(_)};return h&&(S.encrypted_key=(0,i.encode)(h)),g&&(S.aad=g),this._protectedHeader&&(S.protected=u.decoder.decode(y)),this._sharedUnprotectedHeader&&(S.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(S.header=this._unprotectedHeader),S}}t.FlattenedEncrypt=h},658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generalDecrypt=void 0;let i=r(1531),n=r(3885),o=r(8906);async function s(e,t,r){if(!(0,o.default)(e))throw new n.JWEInvalid("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(o.default))throw new n.JWEInvalid("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new n.JWEInvalid("JWE Recipients has no members");for(let n of e.recipients)try{return await (0,i.flattenedDecrypt)({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch{}throw new n.JWEDecryptionFailed}t.generalDecrypt=s},4186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralEncrypt=void 0;let i=r(210),n=r(3885),o=r(2794),s=r(7944),a=r(5405),l=r(5803),c=r(9277);class u{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class d{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new u(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,u;let d;if(!this._recipients.length)throw new n.JWEInvalid("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new i.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e<this._recipients.length;e++){let t=this._recipients[e];if(!(0,s.default)(this._protectedHeader,this._unprotectedHeader,t.unprotectedHeader))throw new n.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let r={...this._protectedHeader,...this._unprotectedHeader,...t.unprotectedHeader},{alg:i}=r;if("string"!=typeof i||!i)throw new n.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===i||"ECDH-ES"===i)throw new n.JWEInvalid('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof r.enc||!r.enc)throw new n.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(d){if(d!==r.enc)throw new n.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else d=r.enc;if((0,c.default)(n.JWEInvalid,new Map,t.options.crit,this._protectedHeader,r),void 0!==r.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new n.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let h=(0,o.default)(d),p={ciphertext:"",iv:"",recipients:[],tag:""};for(let n=0;n<this._recipients.length;n++){let o=this._recipients[n],s={};p.recipients.push(s);let c=({...this._protectedHeader,...this._unprotectedHeader,...o.unprotectedHeader}).alg.startsWith("PBES2")?2048+n:void 0;if(0===n){let t=await new i.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(h).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(o.unprotectedHeader).setKeyManagementParameters({p2c:c}).encrypt(o.key,{...o.options,...e,[i.unprotected]:!0});p.ciphertext=t.ciphertext,p.iv=t.iv,p.tag=t.tag,t.aad&&(p.aad=t.aad),t.protected&&(p.protected=t.protected),t.unprotected&&(p.unprotected=t.unprotected),s.encrypted_key=t.encrypted_key,t.header&&(s.header=t.header);continue}let{encryptedKey:f,parameters:y}=await (0,a.default)((null===(t=o.unprotectedHeader)||void 0===t?void 0:t.alg)||(null===(r=this._protectedHeader)||void 0===r?void 0:r.alg)||(null===(u=this._unprotectedHeader)||void 0===u?void 0:u.alg),d,o.key,h,{p2c:c});s.encrypted_key=(0,l.encode)(f),(o.unprotectedHeader||y)&&(s.header={...o.unprotectedHeader,...y})}return p}}t.GeneralEncrypt=d},4191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedJWK=void 0;let i=r(7989),n=r(8906),o=r(3885);async function s(e,t){let r={...e,...null==t?void 0:t.header};if(!(0,n.default)(r.jwk))throw new o.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let s=await (0,i.importJWK)({...r.jwk,ext:!0},r.alg,!0);if(s instanceof Uint8Array||"public"!==s.type)throw new o.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key');return s}t.EmbeddedJWK=s},5811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateJwkThumbprintUri=t.calculateJwkThumbprint=void 0;let i=r(3730),n=r(5803),o=r(3885),s=r(3004),a=r(8906),l=(e,t)=>{if("string"!=typeof e||!e)throw new o.JWKInvalid(`${t} missing or invalid`)};async function c(e,t){let r;if(!(0,a.default)(e))throw TypeError("JWK must be an object");if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":l(e.crv,'"crv" (Curve) Parameter'),l(e.x,'"x" (X Coordinate) Parameter'),l(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":l(e.crv,'"crv" (Subtype of Key Pair) Parameter'),l(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":l(e.e,'"e" (Exponent) Parameter'),l(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":l(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new o.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}let c=s.encoder.encode(JSON.stringify(r));return(0,n.encode)(await (0,i.default)(t,c))}async function u(e,t){null!=t||(t="sha256");let r=await c(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}t.calculateJwkThumbprint=c,t.calculateJwkThumbprintUri=u},8085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLocalJWKSet=t.LocalJWKSet=t.isJWKSLike=void 0;let i=r(7989),n=r(3885),o=r(8906);function s(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(a)}function a(e){return(0,o.default)(e)}t.isJWKSLike=s;class l{constructor(e){if(this._cached=new WeakMap,!s(e))throw new n.JWKSInvalid("JSON Web Key Set malformed");this._jwks=function(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}(e)}async getKey(e,t){let{alg:r,kid:i}={...e,...null==t?void 0:t.header},o=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new n.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}(r),s=this._jwks.keys.filter(e=>{let t=o===e.kty;if(t&&"string"==typeof i&&(t=i===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:l}=s;if(0===l)throw new n.JWKSNoMatchingKey;if(1!==l){let e=new n.JWKSMultipleMatchingKeys,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of s)try{yield await c(t,e,r)}catch{continue}},e}return c(this._cached,a,r)}}async function c(e,t,r){let o=e.get(t)||e.set(t,{}).get(t);if(void 0===o[r]){let e=await (0,i.importJWK)({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new n.JWKSInvalid("JSON Web Key Set members must be public keys");o[r]=e}return o[r]}t.LocalJWKSet=l,t.createLocalJWKSet=function(e){let t=new l(e);return async function(e,r){return t.getKey(e,r)}}},6190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRemoteJWKSet=void 0;let i=r(1537),n=r(3885),o=r(8085);class s extends o.LocalJWKSet{constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(e,t)}catch(r){if(r instanceof n.JWKSNoMatchingKey&&!1===this.coolingDown())return await this.reload(),super.getKey(e,t);throw r}}async reload(){this._pendingFetch&&("undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime)&&(this._pendingFetch=void 0),this._pendingFetch||(this._pendingFetch=(0,i.default)(this._url,this._timeoutDuration,this._options).then(e=>{if(!(0,o.isJWKSLike)(e))throw new n.JWKSInvalid("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}t.createRemoteJWKSet=function(e,t){let r=new s(e,t);return async function(e,t){return r.getKey(e,t)}}},524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactSign=void 0;let i=r(9988);class n{constructor(e){this._flattened=new i.FlattenedSign(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}t.CompactSign=n},9751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactVerify=void 0;let i=r(1330),n=r(3885),o=r(3004);async function s(e,t,r){if(e instanceof Uint8Array&&(e=o.decoder.decode(e)),"string"!=typeof e)throw new n.JWSInvalid("Compact JWS must be a string or Uint8Array");let{0:s,1:a,2:l,length:c}=e.split(".");if(3!==c)throw new n.JWSInvalid("Invalid Compact JWS");let u=await (0,i.flattenedVerify)({payload:a,protected:s,signature:l},t,r),d={payload:u.payload,protectedHeader:u.protectedHeader};return"function"==typeof t?{...d,key:u.key}:d}t.compactVerify=s},9988:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlattenedSign=void 0;let i=r(5803),n=r(7385),o=r(7944),s=r(3885),a=r(3004),l=r(8201),c=r(9277);class u{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new s.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!(0,o.default)(this._protectedHeader,this._unprotectedHeader))throw new s.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let u={...this._protectedHeader,...this._unprotectedHeader},d=(0,c.default)(s.JWSInvalid,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,u),h=!0;if(d.has("b64")&&"boolean"!=typeof(h=this._protectedHeader.b64))throw new s.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:p}=u;if("string"!=typeof p||!p)throw new s.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid');(0,l.default)(p,e,"sign");let f=this._payload;h&&(f=a.encoder.encode((0,i.encode)(f))),r=this._protectedHeader?a.encoder.encode((0,i.encode)(JSON.stringify(this._protectedHeader))):a.encoder.encode("");let y=(0,a.concat)(r,a.encoder.encode("."),f),g=await (0,n.default)(p,e,y),m={signature:(0,i.encode)(g),payload:""};return h&&(m.payload=a.decoder.decode(f)),this._unprotectedHeader&&(m.header=this._unprotectedHeader),this._protectedHeader&&(m.protected=a.decoder.decode(r)),m}}t.FlattenedSign=u},1330:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenedVerify=void 0;let i=r(5803),n=r(3458),o=r(3885),s=r(3004),a=r(7944),l=r(8906),c=r(8201),u=r(9277),d=r(2561);async function h(e,t,r){var h;let p,f;if(!(0,l.default)(e))throw new o.JWSInvalid("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new o.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new o.JWSInvalid("JWS Protected Header incorrect type");if(void 0===e.payload)throw new o.JWSInvalid("JWS Payload missing");if("string"!=typeof e.signature)throw new o.JWSInvalid("JWS Signature missing or incorrect type");if(void 0!==e.header&&!(0,l.default)(e.header))throw new o.JWSInvalid("JWS Unprotected Header incorrect type");let y={};if(e.protected)try{let t=(0,i.decode)(e.protected);y=JSON.parse(s.decoder.decode(t))}catch{throw new o.JWSInvalid("JWS Protected Header is invalid")}if(!(0,a.default)(y,e.header))throw new o.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let g={...y,...e.header},m=(0,u.default)(o.JWSInvalid,new Map([["b64",!0]]),null==r?void 0:r.crit,y,g),_=!0;if(m.has("b64")&&"boolean"!=typeof(_=y.b64))throw new o.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:v}=g;if("string"!=typeof v||!v)throw new o.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid');let w=r&&(0,d.default)("algorithms",r.algorithms);if(w&&!w.has(v))throw new o.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed');if(_){if("string"!=typeof e.payload)throw new o.JWSInvalid("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new o.JWSInvalid("JWS Payload must be a string or an Uint8Array instance");let b=!1;"function"==typeof t&&(t=await t(y,e),b=!0),(0,c.default)(v,t,"verify");let S=(0,s.concat)(s.encoder.encode(null!==(h=e.protected)&&void 0!==h?h:""),s.encoder.encode("."),"string"==typeof e.payload?s.encoder.encode(e.payload):e.payload);try{p=(0,i.decode)(e.signature)}catch{throw new o.JWSInvalid("Failed to base64url decode the signature")}if(!await (0,n.default)(v,t,p,S))throw new o.JWSSignatureVerificationFailed;if(_)try{f=(0,i.decode)(e.payload)}catch{throw new o.JWSInvalid("Failed to base64url decode the payload")}else f="string"==typeof e.payload?s.encoder.encode(e.payload):e.payload;let k={payload:f};return(void 0!==e.protected&&(k.protectedHeader=y),void 0!==e.header&&(k.unprotectedHeader=e.header),b)?{...k,key:t}:k}t.flattenedVerify=h},6755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralSign=void 0;let i=r(9988),n=r(3885);class o{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class s{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new o(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new n.JWSInvalid("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],o=new i.FlattenedSign(this._payload);o.setProtectedHeader(r.protectedHeader),o.setUnprotectedHeader(r.unprotectedHeader);let{payload:s,...a}=await o.sign(r.key,r.options);if(0===t)e.payload=s;else if(e.payload!==s)throw new n.JWSInvalid("inconsistent use of JWS Unencoded Payload (RFC7797)");e.signatures.push(a)}return e}}t.GeneralSign=s},2553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generalVerify=void 0;let i=r(1330),n=r(3885),o=r(8906);async function s(e,t,r){if(!(0,o.default)(e))throw new n.JWSInvalid("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(o.default))throw new n.JWSInvalid("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await (0,i.flattenedVerify)({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch{}throw new n.JWSSignatureVerificationFailed}t.generalVerify=s},3621:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecrypt=void 0;let i=r(1222),n=r(6641),o=r(3885);async function s(e,t,r){let s=await (0,i.compactDecrypt)(e,t,r),a=(0,n.default)(s.protectedHeader,s.plaintext,r),{protectedHeader:l}=s;if(void 0!==l.iss&&l.iss!==a.iss)throw new o.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==l.sub&&l.sub!==a.sub)throw new o.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==l.aud&&JSON.stringify(l.aud)!==JSON.stringify(a.aud))throw new o.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',"aud","mismatch");let c={payload:a,protectedHeader:l};return"function"==typeof t?{...c,key:s.key}:c}t.jwtDecrypt=s},8255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncryptJWT=void 0;let i=r(8369),n=r(3004),o=r(8417);class s extends o.ProduceJWT{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new i.CompactEncrypt(n.encoder.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}t.EncryptJWT=s},8417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProduceJWT=void 0;let i=r(7977),n=r(8906),o=r(4505);class s{constructor(e){if(!(0,n.default)(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:(0,i.default)(new Date)+(0,o.default)(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:(0,i.default)(new Date)+(0,o.default)(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:(0,i.default)(new Date)}:this._payload={...this._payload,iat:e},this}}t.ProduceJWT=s},9252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignJWT=void 0;let i=r(524),n=r(3885),o=r(3004),s=r(8417);class a extends s.ProduceJWT{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let s=new i.CompactSign(o.encoder.encode(JSON.stringify(this._payload)));if(s.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new n.JWTInvalid("JWTs MUST NOT use unencoded payload");return s.sign(e,t)}}t.SignJWT=a},9752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsecuredJWT=void 0;let i=r(5803),n=r(3004),o=r(3885),s=r(6641),a=r(8417);class l extends a.ProduceJWT{encode(){let e=i.encode(JSON.stringify({alg:"none"})),t=i.encode(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new o.JWTInvalid("Unsecured JWT must be a string");let{0:a,1:l,2:c,length:u}=e.split(".");if(3!==u||""!==c)throw new o.JWTInvalid("Invalid Unsecured JWT");try{if(r=JSON.parse(n.decoder.decode(i.decode(a))),"none"!==r.alg)throw Error()}catch{throw new o.JWTInvalid("Invalid Unsecured JWT")}return{payload:(0,s.default)(r,i.decode(l),t),header:r}}}t.UnsecuredJWT=l},913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtVerify=void 0;let i=r(9751),n=r(6641),o=r(3885);async function s(e,t,r){var s;let a=await (0,i.compactVerify)(e,t,r);if((null===(s=a.protectedHeader.crit)||void 0===s?void 0:s.includes("b64"))&&!1===a.protectedHeader.b64)throw new o.JWTInvalid("JWTs MUST NOT use unencoded payload");let l={payload:(0,n.default)(a.protectedHeader,a.payload,r),protectedHeader:a.protectedHeader};return"function"==typeof t?{...l,key:a.key}:l}t.jwtVerify=s},510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportJWK=t.exportPKCS8=t.exportSPKI=void 0;let i=r(9645),n=r(9645),o=r(7);async function s(e){return(0,i.toSPKI)(e)}async function a(e){return(0,n.toPKCS8)(e)}async function l(e){return(0,o.default)(e)}t.exportSPKI=s,t.exportPKCS8=a,t.exportJWK=l},1399:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateKeyPair=void 0;let i=r(8428);async function n(e,t){return(0,i.generateKeyPair)(e,t)}t.generateKeyPair=n},8259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateSecret=void 0;let i=r(8428);async function n(e,t){return(0,i.generateSecret)(e,t)}t.generateSecret=n},7989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importJWK=t.importPKCS8=t.importX509=t.importSPKI=void 0;let i=r(5803),n=r(9645),o=r(9453),s=r(3885),a=r(8906);async function l(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return(0,n.fromSPKI)(e,t,r)}async function c(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return(0,n.fromX509)(e,t,r)}async function u(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return(0,n.fromPKCS8)(e,t,r)}async function d(e,t,r){var n;if(!(0,a.default)(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');if(null!=r||(r=!0!==e.ext),r)return(0,o.default)({...e,alg:t,ext:null!==(n=e.ext)&&void 0!==n&&n});return(0,i.decode)(e.k);case"RSA":if(void 0!==e.oth)throw new s.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return(0,o.default)({...e,alg:t});default:throw new s.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}t.importSPKI=l,t.importX509=c,t.importPKCS8=u,t.importJWK=d},7414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrap=t.wrap=void 0;let i=r(7359),n=r(7287),o=r(5183),s=r(5803);async function a(e,t,r,n){let a=e.slice(0,7);n||(n=(0,o.default)(a));let{ciphertext:l,tag:c}=await (0,i.default)(a,r,t,n,new Uint8Array(0));return{encryptedKey:l,iv:(0,s.encode)(n),tag:(0,s.encode)(c)}}async function l(e,t,r,i,o){let s=e.slice(0,7);return(0,n.default)(s,t,r,i,o,new Uint8Array(0))}t.wrap=a,t.unwrap=l},3004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatKdf=t.lengthAndInput=t.uint32be=t.uint64be=t.p2s=t.concat=t.decoder=t.encoder=void 0;let i=r(3730);function n(...e){let t=e.reduce((e,{length:t})=>e+t,0),r=new Uint8Array(t),i=0;return e.forEach(e=>{r.set(e,i),i+=e.length}),r}function o(e,t,r){if(t<0||t>=4294967296)throw RangeError(`value must be >= 0 and <= ${4294967296-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function s(e){let t=new Uint8Array(4);return o(t,e),t}async function a(e,t,r){let n=Math.ceil((t>>3)/32),o=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(s(t+1)),n.set(e,4),n.set(r,4+e.length),o.set(await (0,i.default)("sha256",n),32*t)}return o.slice(0,t>>3)}t.encoder=new TextEncoder,t.decoder=new TextDecoder,t.concat=n,t.p2s=function(e,r){return n(t.encoder.encode(e),new Uint8Array([0]),r)},t.uint64be=function(e){let t=new Uint8Array(8);return o(t,Math.floor(e/4294967296),0),o(t,e%4294967296,4),t},t.uint32be=s,t.lengthAndInput=function(e){return n(s(e.length),e)},t.concatKdf=a},2794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitLength=void 0;let i=r(3885),n=r(2088);function o(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new i.JOSENotSupported(`Unsupported JWE Algorithm: ${e}`)}}t.bitLength=o,t.default=e=>(0,n.default)(new Uint8Array(o(e)>>3))},3450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885),n=r(5183);t.default=(e,t)=>{if(t.length<<3!==(0,n.bitLength)(e))throw new i.JWEInvalid("Invalid Initialization Vector length")}},8201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(8289),n=r(2964),o=(e,t)=>{if(!(t instanceof Uint8Array)){if(!(0,n.default)(t))throw TypeError((0,i.withAlg)(e,t,...n.types,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${n.types.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},s=(e,t,r)=>{if(!(0,n.default)(t))throw TypeError((0,i.withAlg)(e,t,...n.types));if("secret"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)};t.default=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?o(e,t):s(e,t,r)}},2617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e){if(!(e instanceof Uint8Array)||e.length<8)throw new i.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}},1347:(e,t)=>{"use strict";function r(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function i(e,t){return e.name===t}function n(e){return parseInt(e.name.slice(4),10)}function o(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.checkEncCryptoKey=t.checkSigCryptoKey=void 0,t.checkSigCryptoKey=function(e,t,...s){switch(t){case"HS256":case"HS384":case"HS512":{if(!i(e.algorithm,"HMAC"))throw r("HMAC");let o=parseInt(t.slice(2),10);if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!i(e.algorithm,"RSASSA-PKCS1-v1_5"))throw r("RSASSA-PKCS1-v1_5");let o=parseInt(t.slice(2),10);if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!i(e.algorithm,"RSA-PSS"))throw r("RSA-PSS");let o=parseInt(t.slice(2),10);if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw r("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!i(e.algorithm,"ECDSA"))throw r("ECDSA");let n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw r(n,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}o(e,s)},t.checkEncCryptoKey=function(e,t,...s){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!i(e.algorithm,"AES-GCM"))throw r("AES-GCM");let n=parseInt(t.slice(1,4),10);if(e.algorithm.length!==n)throw r(n,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!i(e.algorithm,"AES-KW"))throw r("AES-KW");let n=parseInt(t.slice(1,4),10);if(e.algorithm.length!==n)throw r(n,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw r("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!i(e.algorithm,"PBKDF2"))throw r("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!i(e.algorithm,"RSA-OAEP"))throw r("RSA-OAEP");let o=parseInt(t.slice(9),10)||1;if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}o(e,s)}},3682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(9647),n=r(806),o=r(4290),s=r(5730),a=r(5803),l=r(3885),c=r(2794),u=r(7989),d=r(8201),h=r(8906),p=r(7414);async function f(e,t,r,f,y){switch((0,d.default)(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new l.JWEInvalid("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new l.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let o,s;if(!(0,h.default)(f.epk))throw new l.JWEInvalid('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!n.ecdhAllowed(t))throw new l.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");let d=await (0,u.importJWK)(f.epk,e);if(void 0!==f.apu){if("string"!=typeof f.apu)throw new l.JWEInvalid('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{o=(0,a.decode)(f.apu)}catch{throw new l.JWEInvalid("Failed to base64url decode the apu")}}if(void 0!==f.apv){if("string"!=typeof f.apv)throw new l.JWEInvalid('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{s=(0,a.decode)(f.apv)}catch{throw new l.JWEInvalid("Failed to base64url decode the apv")}}let p=await n.deriveKey(d,t,"ECDH-ES"===e?f.enc:e,"ECDH-ES"===e?(0,c.bitLength)(f.enc):parseInt(e.slice(-5,-2),10),o,s);if("ECDH-ES"===e)return p;if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");return(0,i.unwrap)(e.slice(-6),p,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");return(0,s.decrypt)(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let i;if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");if("number"!=typeof f.p2c)throw new l.JWEInvalid('JOSE Header "p2c" (PBES2 Count) missing or invalid');let n=(null==y?void 0:y.maxPBES2Count)||1e4;if(f.p2c>n)throw new l.JWEInvalid('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof f.p2s)throw new l.JWEInvalid('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{i=(0,a.decode)(f.p2s)}catch{throw new l.JWEInvalid("Failed to base64url decode the p2s")}return(0,o.decrypt)(e,t,r,f.p2c,i)}case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");return(0,i.unwrap)(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,n;if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");if("string"!=typeof f.iv)throw new l.JWEInvalid('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof f.tag)throw new l.JWEInvalid('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=(0,a.decode)(f.iv)}catch{throw new l.JWEInvalid("Failed to base64url decode the iv")}try{n=(0,a.decode)(f.tag)}catch{throw new l.JWEInvalid("Failed to base64url decode the tag")}return(0,p.unwrap)(e,t,r,i,n)}default:throw new l.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}t.default=f},5405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(9647),n=r(806),o=r(4290),s=r(5730),a=r(5803),l=r(2794),c=r(3885),u=r(510),d=r(8201),h=r(7414);async function p(e,t,r,p,f={}){let y,g,m;switch((0,d.default)(e,r,"encrypt"),e){case"dir":m=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!n.ecdhAllowed(r))throw new c.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:o,apv:s}=f,{epk:d}=f;d||(d=(await n.generateEpk(r)).privateKey);let{x:h,y:_,crv:v,kty:w}=await (0,u.exportJWK)(d),b=await n.deriveKey(r,d,"ECDH-ES"===e?t:e,"ECDH-ES"===e?(0,l.bitLength)(t):parseInt(e.slice(-5,-2),10),o,s);if(g={epk:{x:h,crv:v,kty:w}},"EC"===w&&(g.epk.y=_),o&&(g.apu=(0,a.encode)(o)),s&&(g.apv=(0,a.encode)(s)),"ECDH-ES"===e){m=b;break}m=p||(0,l.default)(t);let S=e.slice(-6);y=await (0,i.wrap)(S,b,m);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":m=p||(0,l.default)(t),y=await (0,s.encrypt)(e,r,m);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{m=p||(0,l.default)(t);let{p2c:i,p2s:n}=f;({encryptedKey:y,...g}=await (0,o.encrypt)(e,r,m,i,n));break}case"A128KW":case"A192KW":case"A256KW":m=p||(0,l.default)(t),y=await (0,i.wrap)(e,r,m);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{m=p||(0,l.default)(t);let{iv:i}=f;({encryptedKey:y,...g}=await (0,h.wrap)(e,r,m,i));break}default:throw new c.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:m,encryptedKey:y,parameters:g}}t.default=p},7977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>Math.floor(e.getTime()/1e3)},8289:(e,t)=>{"use strict";function r(e,t,...i){if(i.length>2){let t=i.pop();e+=`one of type ${i.join(", ")}, or ${t}.`}else 2===i.length?e+=`one of type ${i[0]} or ${i[1]}.`:e+=`of type ${i[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}Object.defineProperty(t,"__esModule",{value:!0}),t.withAlg=void 0,t.default=(e,...t)=>r("Key must be ",e,...t),t.withAlg=function(e,t,...i){return r(`Key for the ${e} algorithm must be `,t,...i)}},7944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0}},8906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("object"==typeof e&&null!==e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},5183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitLength=void 0;let i=r(3885),n=r(2088);function o(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new i.JOSENotSupported(`Unsupported JWE Algorithm: ${e}`)}}t.bitLength=o,t.default=e=>(0,n.default)(new Uint8Array(o(e)>>3))},6641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885),n=r(3004),o=r(7977),s=r(4505),a=r(8906),l=e=>e.toLowerCase().replace(/^application\//,""),c=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));t.default=(e,t,r={})=>{let u,d;let{typ:h}=r;if(h&&("string"!=typeof e.typ||l(e.typ)!==l(h)))throw new i.JWTClaimValidationFailed('unexpected "typ" JWT header value',"typ","check_failed");try{u=JSON.parse(n.decoder.decode(t))}catch{}if(!(0,a.default)(u))throw new i.JWTInvalid("JWT Claims Set must be a top-level JSON object");let{requiredClaims:p=[],issuer:f,subject:y,audience:g,maxTokenAge:m}=r;for(let e of(void 0!==m&&p.push("iat"),void 0!==g&&p.push("aud"),void 0!==y&&p.push("sub"),void 0!==f&&p.push("iss"),new Set(p.reverse())))if(!(e in u))throw new i.JWTClaimValidationFailed(`missing required "${e}" claim`,e,"missing");if(f&&!(Array.isArray(f)?f:[f]).includes(u.iss))throw new i.JWTClaimValidationFailed('unexpected "iss" claim value',"iss","check_failed");if(y&&u.sub!==y)throw new i.JWTClaimValidationFailed('unexpected "sub" claim value',"sub","check_failed");if(g&&!c(u.aud,"string"==typeof g?[g]:g))throw new i.JWTClaimValidationFailed('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":d=(0,s.default)(r.clockTolerance);break;case"number":d=r.clockTolerance;break;case"undefined":d=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:_}=r,v=(0,o.default)(_||new Date);if((void 0!==u.iat||m)&&"number"!=typeof u.iat)throw new i.JWTClaimValidationFailed('"iat" claim must be a number',"iat","invalid");if(void 0!==u.nbf){if("number"!=typeof u.nbf)throw new i.JWTClaimValidationFailed('"nbf" claim must be a number',"nbf","invalid");if(u.nbf>v+d)throw new i.JWTClaimValidationFailed('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==u.exp){if("number"!=typeof u.exp)throw new i.JWTClaimValidationFailed('"exp" claim must be a number',"exp","invalid");if(u.exp<=v-d)throw new i.JWTExpired('"exp" claim timestamp check failed',"exp","check_failed")}if(m){let e=v-u.iat;if(e-d>("number"==typeof m?m:(0,s.default)(m)))throw new i.JWTExpired('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-d)throw new i.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return u}},4505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;t.default=e=>{let t=r.exec(e);if(!t)throw TypeError("Invalid time period format");let i=parseFloat(t[1]);switch(t[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(i);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(60*i);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(3600*i);case"day":case"days":case"d":return Math.round(86400*i);case"week":case"weeks":case"w":return Math.round(604800*i);default:return Math.round(31557600*i)}}},2561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)}},9277:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e,t,r,n,o){let s;if(void 0!==o.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(s=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!s.has(a))throw new i.JOSENotSupported(`Extension Header Parameter "${a}" is not recognized`);if(void 0===o[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(s.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)}},9647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrap=t.wrap=void 0;let i=r(4300),n=r(6113),o=r(3885),s=r(3004),a=r(6261),l=r(1347),c=r(4841),u=r(8289),d=r(3755),h=r(2964);function p(e,t){if(e.symmetricKeySize<<3!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function f(e,t,r){if((0,c.default)(e))return e;if(e instanceof Uint8Array)return(0,n.createSecretKey)(e);if((0,a.isCryptoKey)(e))return(0,l.checkEncCryptoKey)(e,t,r),n.KeyObject.from(e);throw TypeError((0,u.default)(e,...h.types,"Uint8Array"))}t.wrap=(e,t,r)=>{let a=parseInt(e.slice(1,4),10),l=`aes${a}-wrap`;if(!(0,d.default)(l))throw new o.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`);let c=f(t,e,"wrapKey");p(c,e);let u=(0,n.createCipheriv)(l,c,i.Buffer.alloc(8,166));return(0,s.concat)(u.update(r),u.final())},t.unwrap=(e,t,r)=>{let a=parseInt(e.slice(1,4),10),l=`aes${a}-wrap`;if(!(0,d.default)(l))throw new o.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`);let c=f(t,e,"unwrapKey");p(c,e);let u=(0,n.createDecipheriv)(l,c,i.Buffer.alloc(8,166));return(0,s.concat)(u.update(r),u.final())}},9645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromX509=t.fromSPKI=t.fromPKCS8=t.toPKCS8=t.toSPKI=void 0;let i=r(6113),n=r(4300),o=r(6261),s=r(4841),a=r(8289),l=r(2964),c=(e,t,r)=>{let n;if((0,o.isCryptoKey)(r)){if(!r.extractable)throw TypeError("CryptoKey is not extractable");n=i.KeyObject.from(r)}else if((0,s.default)(r))n=r;else throw TypeError((0,a.default)(r,...l.types));if(n.type!==e)throw TypeError(`key is not a ${e} key`);return n.export({format:"pem",type:t})};t.toSPKI=e=>c("public","spki",e),t.toPKCS8=e=>c("private","pkcs8",e),t.fromPKCS8=e=>(0,i.createPrivateKey)({key:n.Buffer.from(e.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"}),t.fromSPKI=e=>(0,i.createPublicKey)({key:n.Buffer.from(e.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"}),t.fromX509=e=>(0,i.createPublicKey)({key:e,type:"spki",format:"pem"})},8367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){if(48!==e[0]||(this.buffer=e,this.offset=1,this.decodeLength()!==e.length-this.offset))throw TypeError()}decodeLength(){let e=this.buffer[this.offset++];if(128&e){let t=-129&e;e=0;for(let r=0;r<t;r++)e=e<<8|this.buffer[this.offset+r];this.offset+=t}return e}unsignedInteger(){if(2!==this.buffer[this.offset++])throw TypeError();let e=this.decodeLength();0===this.buffer[this.offset]&&(this.offset++,e--);let t=this.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t}end(){if(this.offset!==this.buffer.length)throw TypeError()}}t.default=r},6217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(4300),n=r(3885),o=i.Buffer.from([0]),s=i.Buffer.from([2]),a=i.Buffer.from([3]),l=i.Buffer.from([48]),c=i.Buffer.from([4]),u=e=>{if(e<128)return i.Buffer.from([e]);let t=i.Buffer.alloc(5);t.writeUInt32BE(e,1);let r=1;for(;0===t[r];)r++;return t[r-1]=128|5-r,t.slice(r-1)},d=new Map([["P-256",i.Buffer.from("06 08 2A 86 48 CE 3D 03 01 07".replace(/ /g,""),"hex")],["secp256k1",i.Buffer.from("06 05 2B 81 04 00 0A".replace(/ /g,""),"hex")],["P-384",i.Buffer.from("06 05 2B 81 04 00 22".replace(/ /g,""),"hex")],["P-521",i.Buffer.from("06 05 2B 81 04 00 23".replace(/ /g,""),"hex")],["ecPublicKey",i.Buffer.from("06 07 2A 86 48 CE 3D 02 01".replace(/ /g,""),"hex")],["X25519",i.Buffer.from("06 03 2B 65 6E".replace(/ /g,""),"hex")],["X448",i.Buffer.from("06 03 2B 65 6F".replace(/ /g,""),"hex")],["Ed25519",i.Buffer.from("06 03 2B 65 70".replace(/ /g,""),"hex")],["Ed448",i.Buffer.from("06 03 2B 65 71".replace(/ /g,""),"hex")]]);class h{constructor(){this.length=0,this.elements=[]}oidFor(e){let t=d.get(e);if(!t)throw new n.JOSENotSupported("Invalid or unsupported OID");this.elements.push(t),this.length+=t.length}zero(){this.elements.push(s,i.Buffer.from([1]),o),this.length+=3}one(){this.elements.push(s,i.Buffer.from([1]),i.Buffer.from([1])),this.length+=3}unsignedInteger(e){if(128&e[0]){let t=u(e.length+1);this.elements.push(s,t,o,e),this.length+=2+t.length+e.length}else{let t=0;for(;0===e[t]&&(128&e[t+1])==0;)t++;let r=u(e.length-t);this.elements.push(s,u(e.length-t),e.slice(t)),this.length+=1+r.length+e.length-t}}octStr(e){let t=u(e.length);this.elements.push(c,u(e.length),e),this.length+=1+t.length+e.length}bitStr(e){let t=u(e.length+1);this.elements.push(a,u(e.length+1),o,e),this.length+=1+t.length+e.length+1}add(e){this.elements.push(e),this.length+=e.length}end(e=l){let t=u(this.length);return i.Buffer.concat([e,t,...this.elements],1+t.length+this.length)}}t.default=h},5803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=t.encodeBase64=t.decodeBase64=void 0;let i=r(4300),n=r(3004);i.Buffer.isEncoding("base64url")?t.encode=e=>i.Buffer.from(e).toString("base64url"):t.encode=e=>i.Buffer.from(e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),t.decodeBase64=e=>i.Buffer.from(e,"base64"),t.encodeBase64=e=>i.Buffer.from(e).toString("base64"),t.decode=e=>i.Buffer.from(function(e){let t=e;return t instanceof Uint8Array&&(t=n.decoder.decode(t)),t}(e),"base64")},692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3004);t.default=function(e,t,r,o,s,a){let l=(0,n.concat)(e,t,r,(0,n.uint64be)(e.length<<3)),c=(0,i.createHmac)(`sha${o}`,s);return c.update(l),c.digest().slice(0,a>>3)}},9888:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885),n=r(4841);t.default=(e,t)=>{let r;switch(e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":r=parseInt(e.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":r=parseInt(e.slice(1,4),10);break;default:throw new i.JOSENotSupported(`Content Encryption Algorithm ${e} is not supported either by JOSE or your javascript runtime`)}if(t instanceof Uint8Array){let e=t.byteLength<<3;if(e!==r)throw new i.JWEInvalid(`Invalid Content Encryption Key length. Expected ${r} bits, got ${e} bits`);return}if((0,n.default)(t)&&"secret"===t.type){let e=t.symmetricKeySize<<3;if(e!==r)throw new i.JWEInvalid(`Invalid Content Encryption Key length. Expected ${r} bits, got ${e} bits`);return}throw TypeError("Invalid Content Encryption Key type")}},6459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setModulusLength=t.weakMap=void 0,t.weakMap=new WeakMap;let r=(e,t)=>{let i=e.readUInt8(1);if((128&i)==0)return 0===t?i:r(e.subarray(2+i),t-1);let n=127&i;i=0;for(let t=0;t<n;t++)i<<=8,i|=e.readUInt8(2+t);return 0===t?i:r(e.subarray(2+i),t-1)},i=(e,t)=>{let i=e.readUInt8(1);return(128&i)==0?r(e.subarray(2),t):r(e.subarray(2+(127&i)),t)},n=e=>{var r,n;if(t.weakMap.has(e))return t.weakMap.get(e);let o=null!==(n=null===(r=e.asymmetricKeyDetails)||void 0===r?void 0:r.modulusLength)&&void 0!==n?n:i(e.export({format:"der",type:"pkcs1"}),"private"===e.type?1:0)-1<<3;return t.weakMap.set(e,o),o};t.setModulusLength=(e,r)=>{t.weakMap.set(e,r)},t.default=(e,t)=>{if(2048>n(e))throw TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}},3755:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113);t.default=e=>(i||(i=new Set((0,n.getCiphers)())),i.has(e))},7287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3450),o=r(9888),s=r(3004),a=r(3885),l=r(7292),c=r(692),u=r(6261),d=r(1347),h=r(4841),p=r(8289),f=r(3755),y=r(2964);t.default=(e,t,r,g,m,_)=>{let v;if((0,u.isCryptoKey)(t))(0,d.checkEncCryptoKey)(t,e,"decrypt"),v=i.KeyObject.from(t);else if(t instanceof Uint8Array||(0,h.default)(t))v=t;else throw TypeError((0,p.default)(t,...y.types,"Uint8Array"));switch((0,o.default)(e,v),(0,n.default)(e,g),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return function(e,t,r,n,o,u){let d,p;let y=parseInt(e.slice(1,4),10);(0,h.default)(t)&&(t=t.export());let g=t.subarray(y>>3),m=t.subarray(0,y>>3),_=parseInt(e.slice(-3),10),v=`aes-${y}-cbc`;if(!(0,f.default)(v))throw new a.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);let w=(0,c.default)(u,n,r,_,m,y);try{d=(0,l.default)(o,w)}catch{}if(!d)throw new a.JWEDecryptionFailed;try{let e=(0,i.createDecipheriv)(v,g,n);p=(0,s.concat)(e.update(r),e.final())}catch{}if(!p)throw new a.JWEDecryptionFailed;return p}(e,v,r,g,m,_);case"A128GCM":case"A192GCM":case"A256GCM":return function(e,t,r,n,o,s){let l=parseInt(e.slice(1,4),10),c=`aes-${l}-gcm`;if(!(0,f.default)(c))throw new a.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);try{let e=(0,i.createDecipheriv)(c,t,n,{authTagLength:16});e.setAuthTag(o),s.byteLength&&e.setAAD(s,{plaintextLength:r.length});let a=e.update(r);return e.final(),a}catch{throw new a.JWEDecryptionFailed}}(e,v,r,g,m,_);default:throw new a.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}}},3730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113);t.default=(e,t)=>(0,i.createHash)(e).update(t).digest()},9583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e){switch(e){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return;default:throw new i.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhAllowed=t.generateEpk=t.deriveKey=void 0;let i=r(6113),n=r(3849),o=r(5922),s=r(3004),a=r(3885),l=r(6261),c=r(1347),u=r(4841),d=r(8289),h=r(2964),p=(0,n.promisify)(i.generateKeyPair);async function f(e,t,r,n,o=new Uint8Array(0),a=new Uint8Array(0)){let p,f;if((0,l.isCryptoKey)(e))(0,c.checkEncCryptoKey)(e,"ECDH"),p=i.KeyObject.from(e);else if((0,u.default)(e))p=e;else throw TypeError((0,d.default)(e,...h.types));if((0,l.isCryptoKey)(t))(0,c.checkEncCryptoKey)(t,"ECDH","deriveBits"),f=i.KeyObject.from(t);else if((0,u.default)(t))f=t;else throw TypeError((0,d.default)(t,...h.types));let y=(0,s.concat)((0,s.lengthAndInput)(s.encoder.encode(r)),(0,s.lengthAndInput)(o),(0,s.lengthAndInput)(a),(0,s.uint32be)(n)),g=(0,i.diffieHellman)({privateKey:f,publicKey:p});return(0,s.concatKdf)(g,n,y)}async function y(e){let t;if((0,l.isCryptoKey)(e))t=i.KeyObject.from(e);else if((0,u.default)(e))t=e;else throw TypeError((0,d.default)(e,...h.types));switch(t.asymmetricKeyType){case"x25519":return p("x25519");case"x448":return p("x448");case"ec":return p("ec",{namedCurve:(0,o.default)(t)});default:throw new a.JOSENotSupported("Invalid or unsupported EPK")}}t.deriveKey=f,t.generateEpk=y,t.ecdhAllowed=e=>["P-256","P-384","P-521","X25519","X448"].includes((0,o.default)(e))},7359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3450),o=r(9888),s=r(3004),a=r(692),l=r(6261),c=r(1347),u=r(4841),d=r(8289),h=r(3885),p=r(3755),f=r(2964);t.default=(e,t,r,y,g)=>{let m;if((0,l.isCryptoKey)(r))(0,c.checkEncCryptoKey)(r,e,"encrypt"),m=i.KeyObject.from(r);else if(r instanceof Uint8Array||(0,u.default)(r))m=r;else throw TypeError((0,d.default)(r,...f.types,"Uint8Array"));switch((0,o.default)(e,m),(0,n.default)(e,y),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return function(e,t,r,n,o){let l=parseInt(e.slice(1,4),10);(0,u.default)(r)&&(r=r.export());let c=r.subarray(l>>3),d=r.subarray(0,l>>3),f=`aes-${l}-cbc`;if(!(0,p.default)(f))throw new h.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);let y=(0,i.createCipheriv)(f,c,n),g=(0,s.concat)(y.update(t),y.final()),m=parseInt(e.slice(-3),10),_=(0,a.default)(o,n,g,m,d,l);return{ciphertext:g,tag:_}}(e,t,m,y,g);case"A128GCM":case"A192GCM":case"A256GCM":return function(e,t,r,n,o){let s=parseInt(e.slice(1,4),10),a=`aes-${s}-gcm`;if(!(0,p.default)(a))throw new h.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);let l=(0,i.createCipheriv)(a,r,n,{authTagLength:16});o.byteLength&&l.setAAD(o,{plaintextLength:t.length});let c=l.update(t);return l.final(),{ciphertext:c,tag:l.getAuthTag()}}(e,t,m,y,g);default:throw new h.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}}},1537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3685),n=r(5687),o=r(2361),s=r(3885),a=r(3004),l=async(e,t,r)=>{let l;switch(e.protocol){case"https:":l=n.get;break;case"http:":l=i.get;break;default:throw TypeError("Unsupported URL protocol.")}let{agent:c,headers:u}=r,d=l(e.href,{agent:c,timeout:t,headers:u}),[h]=await Promise.race([(0,o.once)(d,"response"),(0,o.once)(d,"timeout")]);if(!h)throw d.destroy(),new s.JWKSTimeout;if(200!==h.statusCode)throw new s.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response");let p=[];for await(let e of h)p.push(e);try{return JSON.parse(a.decoder.decode((0,a.concat)(...p)))}catch{throw new s.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};t.default=l},7572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwkImport=t.jwkExport=t.rsaPssParams=t.oneShotCallback=void 0;let[r,i]=process.versions.node.split(".").map(e=>parseInt(e,10));t.oneShotCallback=r>=16||15===r&&i>=13,t.rsaPssParams=!("electron"in process.versions)&&(r>=17||16===r&&i>=9),t.jwkExport=r>=16||15===r&&i>=9,t.jwkImport=r>=16||15===r&&i>=12},8428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateKeyPair=t.generateSecret=void 0;let i=r(6113),n=r(3849),o=r(2088),s=r(6459),a=r(3885),l=(0,n.promisify)(i.generateKeyPair);async function c(e,t){let r;switch(e){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":r=parseInt(e.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":r=parseInt(e.slice(1,4),10);break;default:throw new a.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,i.createSecretKey)((0,o.default)(new Uint8Array(r>>3)))}async function u(e,t){var r,i;switch(e){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{let e=null!==(r=null==t?void 0:t.modulusLength)&&void 0!==r?r:2048;if("number"!=typeof e||e<2048)throw new a.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");let i=await l("rsa",{modulusLength:e,publicExponent:65537});return(0,s.setModulusLength)(i.privateKey,e),(0,s.setModulusLength)(i.publicKey,e),i}case"ES256":return l("ec",{namedCurve:"P-256"});case"ES256K":return l("ec",{namedCurve:"secp256k1"});case"ES384":return l("ec",{namedCurve:"P-384"});case"ES512":return l("ec",{namedCurve:"P-521"});case"EdDSA":switch(null==t?void 0:t.crv){case void 0:case"Ed25519":return l("ed25519");case"Ed448":return l("ed448");default:throw new a.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":let n=null!==(i=null==t?void 0:t.crv)&&void 0!==i?i:"P-256";switch(n){case void 0:case"P-256":case"P-384":case"P-521":return l("ec",{namedCurve:n});case"X25519":return l("x25519");case"X448":return l("x448");default:throw new a.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}default:throw new a.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}t.generateSecret=c,t.generateKeyPair=u},5922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCurve=t.weakMap=void 0;let i=r(4300),n=r(6113),o=r(3885),s=r(6261),a=r(4841),l=r(8289),c=r(2964),u=i.Buffer.from([42,134,72,206,61,3,1,7]),d=i.Buffer.from([43,129,4,0,34]),h=i.Buffer.from([43,129,4,0,35]),p=i.Buffer.from([43,129,4,0,10]);t.weakMap=new WeakMap;let f=e=>{switch(e){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new o.JOSENotSupported("Unsupported key curve for this operation")}},y=(e,r)=>{var i;let g;if((0,s.isCryptoKey)(e))g=n.KeyObject.from(e);else if((0,a.default)(e))g=e;else throw TypeError((0,l.default)(e,...c.types));if("secret"===g.type)throw TypeError('only "private" or "public" type keys can be used for this operation');switch(g.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${g.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${g.asymmetricKeyType.slice(1)}`;case"ec":{if(t.weakMap.has(g))return t.weakMap.get(g);let e=null===(i=g.asymmetricKeyDetails)||void 0===i?void 0:i.namedCurve;if(e||"private"!==g.type){if(!e){let t=g.export({format:"der",type:"spki"}),r=t[1]<128?14:15,i=t[r],n=t.slice(r+1,r+1+i);if(n.equals(u))e="prime256v1";else if(n.equals(d))e="secp384r1";else if(n.equals(h))e="secp521r1";else if(n.equals(p))e="secp256k1";else throw new o.JOSENotSupported("Unsupported key curve for this operation")}}else e=y((0,n.createPublicKey)(g),!0);if(r)return e;let s=f(e);return t.weakMap.set(g,s),s}default:throw TypeError("Invalid asymmetric key type for this operation")}};t.setCurve=function(e,r){t.weakMap.set(e,r)},t.default=y},8069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(6261),o=r(1347),s=r(8289),a=r(2964);t.default=function(e,t,r){if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError((0,s.default)(t,...a.types));return(0,i.createSecretKey)(t)}if(t instanceof i.KeyObject)return t;if((0,n.isCryptoKey)(t))return(0,o.checkSigCryptoKey)(t,e,r),i.KeyObject.from(t);throw TypeError((0,s.default)(t,...a.types,"Uint8Array"))}},2614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e){switch(e){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new i.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},2964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.types=void 0;let i=r(6261),n=r(4841);t.default=e=>(0,n.default)(e)||(0,i.isCryptoKey)(e);let o=["KeyObject"];t.types=o,(globalThis.CryptoKey||(null===i.default||void 0===i.default?void 0:i.default.CryptoKey))&&o.push("CryptoKey")},4841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3849);t.default=n.types.isKeyObject?e=>n.types.isKeyObject(e):e=>null!=e&&e instanceof i.KeyObject},9453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(4300),n=r(6113),o=r(5803),s=r(3885),a=r(5922),l=r(6459),c=r(6217),u=r(7572);t.default=e=>{if(u.jwkImport&&"oct"!==e.kty)return e.d?(0,n.createPrivateKey)({format:"jwk",key:e}):(0,n.createPublicKey)({format:"jwk",key:e});switch(e.kty){case"oct":return(0,n.createSecretKey)((0,o.decode)(e.k));case"RSA":{let t=new c.default,r=void 0!==e.d,o=i.Buffer.from(e.n,"base64"),s=i.Buffer.from(e.e,"base64");r?(t.zero(),t.unsignedInteger(o),t.unsignedInteger(s),t.unsignedInteger(i.Buffer.from(e.d,"base64")),t.unsignedInteger(i.Buffer.from(e.p,"base64")),t.unsignedInteger(i.Buffer.from(e.q,"base64")),t.unsignedInteger(i.Buffer.from(e.dp,"base64")),t.unsignedInteger(i.Buffer.from(e.dq,"base64")),t.unsignedInteger(i.Buffer.from(e.qi,"base64"))):(t.unsignedInteger(o),t.unsignedInteger(s));let a={key:t.end(),format:"der",type:"pkcs1"},u=r?(0,n.createPrivateKey)(a):(0,n.createPublicKey)(a);return(0,l.setModulusLength)(u,o.length<<3),u}case"EC":{let t=new c.default,r=void 0!==e.d,o=i.Buffer.concat([i.Buffer.alloc(1,4),i.Buffer.from(e.x,"base64"),i.Buffer.from(e.y,"base64")]);if(r){t.zero();let r=new c.default;r.oidFor("ecPublicKey"),r.oidFor(e.crv),t.add(r.end());let s=new c.default;s.one(),s.octStr(i.Buffer.from(e.d,"base64"));let l=new c.default;l.bitStr(o);let u=l.end(i.Buffer.from([161]));s.add(u);let d=s.end(),h=new c.default;h.add(d);let p=h.end(i.Buffer.from([4]));t.add(p);let f=t.end(),y=(0,n.createPrivateKey)({key:f,format:"der",type:"pkcs8"});return(0,a.setCurve)(y,e.crv),y}let s=new c.default;s.oidFor("ecPublicKey"),s.oidFor(e.crv),t.add(s.end()),t.bitStr(o);let l=t.end(),u=(0,n.createPublicKey)({key:l,format:"der",type:"spki"});return(0,a.setCurve)(u,e.crv),u}case"OKP":{let t=new c.default;if(void 0!==e.d){t.zero();let r=new c.default;r.oidFor(e.crv),t.add(r.end());let o=new c.default;o.octStr(i.Buffer.from(e.d,"base64"));let s=o.end(i.Buffer.from([4]));t.add(s);let a=t.end();return(0,n.createPrivateKey)({key:a,format:"der",type:"pkcs8"})}let r=new c.default;r.oidFor(e.crv),t.add(r.end()),t.bitStr(i.Buffer.from(e.x,"base64"));let o=t.end();return(0,n.createPublicKey)({key:o,format:"der",type:"spki"})}default:throw new s.JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}}},7:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(5803),o=r(8367),s=r(3885),a=r(5922),l=r(6261),c=r(4841),u=r(8289),d=r(2964),h=r(7572),p=e=>{let t;if((0,l.isCryptoKey)(e)){if(!e.extractable)throw TypeError("CryptoKey is not extractable");t=i.KeyObject.from(e)}else if((0,c.default)(e))t=e;else if(e instanceof Uint8Array)return{kty:"oct",k:(0,n.encode)(e)};else throw TypeError((0,u.default)(e,...d.types,"Uint8Array"));if(h.jwkExport){if("secret"!==t.type&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(t.asymmetricKeyType))throw new s.JOSENotSupported("Unsupported key asymmetricKeyType");return t.export({format:"jwk"})}switch(t.type){case"secret":return{kty:"oct",k:(0,n.encode)(t.export())};case"private":case"public":switch(t.asymmetricKeyType){case"rsa":{let e;let r=t.export({format:"der",type:"pkcs1"}),i=new o.default(r);"private"===t.type&&i.unsignedInteger();let s=(0,n.encode)(i.unsignedInteger()),a=(0,n.encode)(i.unsignedInteger());return"private"===t.type&&(e={d:(0,n.encode)(i.unsignedInteger()),p:(0,n.encode)(i.unsignedInteger()),q:(0,n.encode)(i.unsignedInteger()),dp:(0,n.encode)(i.unsignedInteger()),dq:(0,n.encode)(i.unsignedInteger()),qi:(0,n.encode)(i.unsignedInteger())}),i.end(),{kty:"RSA",n:s,e:a,...e}}case"ec":{let e,r,o;let l=(0,a.default)(t);switch(l){case"secp256k1":e=64,r=33,o=-1;break;case"P-256":e=64,r=36,o=-1;break;case"P-384":e=96,r=35,o=-3;break;case"P-521":e=132,r=35,o=-3;break;default:throw new s.JOSENotSupported("Unsupported curve")}if("public"===t.type){let r=t.export({type:"spki",format:"der"});return{kty:"EC",crv:l,x:(0,n.encode)(r.subarray(-e,-e/2)),y:(0,n.encode)(r.subarray(-e/2))}}let c=t.export({type:"pkcs8",format:"der"});return c.length<100&&(r+=o),{...p((0,i.createPublicKey)(t)),d:(0,n.encode)(c.subarray(r,r+e/2))}}case"ed25519":case"x25519":{let e=(0,a.default)(t);if("public"===t.type){let r=t.export({type:"spki",format:"der"});return{kty:"OKP",crv:e,x:(0,n.encode)(r.subarray(-32))}}let r=t.export({type:"pkcs8",format:"der"});return{...p((0,i.createPublicKey)(t)),d:(0,n.encode)(r.subarray(-32))}}case"ed448":case"x448":{let e=(0,a.default)(t);if("public"===t.type){let r=t.export({type:"spki",format:"der"});return{kty:"OKP",crv:e,x:(0,n.encode)(r.subarray("Ed448"===e?-57:-56))}}let r=t.export({type:"pkcs8",format:"der"});return{...p((0,i.createPublicKey)(t)),d:(0,n.encode)(r.subarray("Ed448"===e?-57:-56))}}default:throw new s.JOSENotSupported("Unsupported key asymmetricKeyType")}default:throw new s.JOSENotSupported("Unsupported key type")}};t.default=p},3583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(5922),o=r(3885),s=r(6459),a=r(7572),l={padding:i.constants.RSA_PKCS1_PSS_PADDING,saltLength:i.constants.RSA_PSS_SALTLEN_DIGEST},c=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);t.default=function(e,t){switch(e){case"EdDSA":if(!["ed25519","ed448"].includes(t.asymmetricKeyType))throw TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448");return t;case"RS256":case"RS384":case"RS512":if("rsa"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa");return(0,s.default)(t,e),t;case a.rsaPssParams&&"PS256":case a.rsaPssParams&&"PS384":case a.rsaPssParams&&"PS512":if("rsa-pss"===t.asymmetricKeyType){let{hashAlgorithm:r,mgf1HashAlgorithm:i,saltLength:n}=t.asymmetricKeyDetails,o=parseInt(e.slice(-3),10);if(void 0!==r&&(r!==`sha${o}`||i!==r))throw TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}`);if(void 0!==n&&n>o>>3)throw TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}`)}else if("rsa"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss");return(0,s.default)(t,e),{key:t,...l};case!a.rsaPssParams&&"PS256":case!a.rsaPssParams&&"PS384":case!a.rsaPssParams&&"PS512":if("rsa"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa");return(0,s.default)(t,e),{key:t,...l};case"ES256":case"ES256K":case"ES384":case"ES512":{if("ec"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be ec");let r=(0,n.default)(t),i=c.get(e);if(r!==i)throw TypeError(`Invalid key curve for the algorithm, its curve must be ${i}, got ${r}`);return{dsaEncoding:"ieee-p1363",key:t}}default:throw new o.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},4290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;let i=r(3849),n=r(6113),o=r(2088),s=r(3004),a=r(5803),l=r(9647),c=r(2617),u=r(6261),d=r(1347),h=r(4841),p=r(8289),f=r(2964),y=(0,i.promisify)(n.pbkdf2);function g(e,t){if((0,h.default)(e))return e.export();if(e instanceof Uint8Array)return e;if((0,u.isCryptoKey)(e))return(0,d.checkEncCryptoKey)(e,t,"deriveBits","deriveKey"),n.KeyObject.from(e).export();throw TypeError((0,p.default)(e,...f.types,"Uint8Array"))}let m=async(e,t,r,i=2048,n=(0,o.default)(new Uint8Array(16)))=>{(0,c.default)(n);let u=(0,s.p2s)(e,n),d=parseInt(e.slice(13,16),10)>>3,h=g(t,e),p=await y(h,u,i,d,`sha${e.slice(8,11)}`);return{encryptedKey:await (0,l.wrap)(e.slice(-6),p,r),p2c:i,p2s:(0,a.encode)(n)}};t.encrypt=m;let _=async(e,t,r,i,n)=>{(0,c.default)(n);let o=(0,s.p2s)(e,n),a=parseInt(e.slice(13,16),10)>>3,u=g(t,e),d=await y(u,o,i,a,`sha${e.slice(8,11)}`);return(0,l.unwrap)(e.slice(-6),d,r)};t.decrypt=_},2088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(6113);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.randomFillSync}})},5730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;let i=r(6113),n=r(6459),o=r(6261),s=r(1347),a=r(4841),l=r(8289),c=r(2964),u=(e,t)=>{if("rsa"!==e.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa");(0,n.default)(e,t)},d=e=>{switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return i.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return i.constants.RSA_PKCS1_PADDING;default:return}},h=e=>{switch(e){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return}};function p(e,t,...r){if((0,a.default)(e))return e;if((0,o.isCryptoKey)(e))return(0,s.checkEncCryptoKey)(e,t,...r),i.KeyObject.from(e);throw TypeError((0,l.default)(e,...c.types))}t.encrypt=(e,t,r)=>{let n=d(e),o=h(e),s=p(t,e,"wrapKey","encrypt");return u(s,e),(0,i.publicEncrypt)({key:s,oaepHash:o,padding:n},r)},t.decrypt=(e,t,r)=>{let n=d(e),o=h(e),s=p(t,e,"unwrapKey","decrypt");return u(s,e),(0,i.privateDecrypt)({key:s,oaepHash:o,padding:n},r)}},9822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="node:crypto"},7385:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113),o=r(3849),s=r(9583),a=r(2614),l=r(3583),c=r(8069);i=n.sign.length>3?(0,o.promisify)(n.sign):n.sign;let u=async(e,t,r)=>{let o=(0,c.default)(e,t,"sign");if(e.startsWith("HS")){let t=n.createHmac((0,a.default)(e),o);return t.update(r),t.digest()}return i((0,s.default)(e),r,(0,l.default)(e,o))};t.default=u},7292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113).timingSafeEqual;t.default=i},3458:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113),o=r(3849),s=r(9583),a=r(3583),l=r(7385),c=r(8069),u=r(7572);i=n.verify.length>4&&u.oneShotCallback?(0,o.promisify)(n.verify):n.verify;let d=async(e,t,r,o)=>{let u=(0,c.default)(e,t,"verify");if(e.startsWith("HS")){let t=await (0,l.default)(e,u,o);try{return n.timingSafeEqual(r,t)}catch{return!1}}let d=(0,s.default)(e),h=(0,a.default)(e,u);try{return await i(d,o,h,r)}catch{return!1}};t.default=d},6261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCryptoKey=void 0;let i=r(6113),n=r(3849),o=i.webcrypto;t.default=o,t.isCryptoKey=n.types.isCryptoKey?e=>n.types.isCryptoKey(e):e=>!1},4652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deflate=t.inflate=void 0;let i=r(3849),n=r(9796),o=(0,i.promisify)(n.inflateRaw),s=(0,i.promisify)(n.deflateRaw);t.inflate=e=>o(e),t.deflate=e=>s(e)},3225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;let i=r(5803);t.encode=i.encode,t.decode=i.decode},9541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeJwt=void 0;let i=r(3225),n=r(3004),o=r(8906),s=r(3885);t.decodeJwt=function(e){let t,r;if("string"!=typeof e)throw new s.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");let{1:a,length:l}=e.split(".");if(5===l)throw new s.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(3!==l)throw new s.JWTInvalid("Invalid JWT");if(!a)throw new s.JWTInvalid("JWTs must contain a payload");try{t=(0,i.decode)(a)}catch{throw new s.JWTInvalid("Failed to base64url decode the payload")}try{r=JSON.parse(n.decoder.decode(t))}catch{throw new s.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,o.default)(r))throw new s.JWTInvalid("Invalid JWT Claims Set");return r}},9472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeProtectedHeader=void 0;let i=r(3225),n=r(3004),o=r(8906);t.decodeProtectedHeader=function(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(n.decoder.decode((0,i.decode)(t)));if(!(0,o.default)(e))throw Error();return e}catch{throw TypeError("Invalid Token or Protected Header formatting")}}},3885:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JWSSignatureVerificationFailed=t.JWKSTimeout=t.JWKSMultipleMatchingKeys=t.JWKSNoMatchingKey=t.JWKSInvalid=t.JWKInvalid=t.JWTInvalid=t.JWSInvalid=t.JWEInvalid=t.JWEDecryptionFailed=t.JOSENotSupported=t.JOSEAlgNotAllowed=t.JWTExpired=t.JWTClaimValidationFailed=t.JOSEError=void 0;class r extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}t.JOSEError=r;class i extends r{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}t.JWTClaimValidationFailed=i;class n extends r{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}t.JWTExpired=n;class o extends r{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}t.JOSEAlgNotAllowed=o;class s extends r{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}t.JOSENotSupported=s;class a extends r{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}t.JWEDecryptionFailed=a;class l extends r{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}t.JWEInvalid=l;class c extends r{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}t.JWSInvalid=c;class u extends r{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}t.JWTInvalid=u;class d extends r{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}t.JWKInvalid=d;class h extends r{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}t.JWKSInvalid=h;class p extends r{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}t.JWKSNoMatchingKey=p;class f extends r{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}t.JWKSMultipleMatchingKeys=f,Symbol.asyncIterator;class y extends r{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}t.JWKSTimeout=y;class g extends r{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}t.JWSSignatureVerificationFailed=g},6537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(9822);t.default=i.default},8852:(e,t,r)=>{"use strict";let i=r(4634),n=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1;class y{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[s]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,_(this)}get max(){return this[n]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,_(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[s]&&(this[s]=e,this[o]=0,this[d].forEach(e=>{e.length=this[s](e.value,e.key),this[o]+=e.length})),_(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let i=r.prev;b(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let i=r.next;b(this,e,r,t),r=i}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach(e=>this[c](e.key,e.value)),this[h]=new Map,this[d]=new i,this[o]=0}dump(){return this[d].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let i=r?Date.now():0,a=this[s](t,e);if(this[h].has(e)){if(a>this[n])return v(this,this[h].get(e)),!1;let s=this[h].get(e).value;return this[c]&&!this[u]&&this[c](e,s.value),s.now=i,s.maxAge=r,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),_(this),!0}let p=new w(e,t,a,i,r);return p.length>this[n]?(this[c]&&this[c](e,t),!1):(this[o]+=p.length,this[d].unshift(p),this[h].set(e,this[d].head),_(this),!0)}has(e){return!!this[h].has(e)&&!m(this,this[h].get(e).value)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){let e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[h].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let i=e[r],n=i.e||0;if(0===n)this.set(i.k,i.v);else{let e=n-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[h].forEach((e,t)=>g(this,t,!1))}}let g=(e,t,r)=>{let i=e[h].get(t);if(i){let t=i.value;if(m(e,t)){if(v(e,i),!e[a])return}else r&&(e[p]&&(i.value.now=Date.now()),e[d].unshiftNode(i));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},_=e=>{if(e[o]>e[n])for(let t=e[d].tail;e[o]>e[n]&&null!==t;){let r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){let r=t.value;e[c]&&e[c](r.key,r.value),e[o]-=r.length,e[h].delete(r.key),e[d].removeNode(t)}};class w{constructor(e,t,r,i,n){this.key=e,this.value=t,this.length=r,this.now=i,this.maxAge=n||0}}let b=(e,t,r,i)=>{let n=r.value;m(e,n)&&(v(e,r),e[a]||(n=void 0)),n&&t.call(i,n.value,n.key,e)};e.exports=y},2394:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(r,i){return r[i]=(0,o.default)(n.default.mark(function r(){var o,s,a,l,c,u=arguments;return n.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,s=Array(o=u.length),a=0;a<o;a++)s[a]=u[a];return t.debug("adapter_".concat(i),{args:s}),l=e[i],r.next=6,l.apply(void 0,s);case 6:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(0),t.error("adapter_error_".concat(i),r.t0),(c=new f(r.t0)).name="".concat(A(i),"Error"),c;case 15:case"end":return r.stop()}},r,null,[[0,9]])})),r},{})},t.capitalize=A,t.eventsErrorHandler=function(e,t){return Object.keys(e).reduce(function(r,i){return r[i]=(0,o.default)(n.default.mark(function r(){var o,s=arguments;return n.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=e[i],r.next=4,o.apply(void 0,s);case 4:return r.abrupt("return",r.sent);case 7:r.prev=7,r.t0=r.catch(0),t.error("".concat(E(i),"_EVENT_ERROR"),r.t0);case 10:case"end":return r.stop()}},r,null,[[0,7]])})),r},{})},t.upperSnake=E;var n=i(r(7315)),o=i(r(6255)),s=i(r(1721)),a=i(r(2485)),l=i(r(430)),c=i(r(7821)),u=i(r(162)),d=i(r(3144)),h=i(r(1100));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,i=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return(0,d.default)(this,r)}}var f=function(e){(0,u.default)(r,e);var t=p(r);function r(e){var i,n;return(0,l.default)(this,r),(n=t.call(this,null!==(i=null==e?void 0:e.message)&&void 0!==i?i:e)).name="UnknownError",n.code=e.code,e instanceof Error&&(n.stack=e.stack),n}return(0,c.default)(r,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),r}((0,i(r(148)).default)(Error));t.UnknownError=f;var y=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","OAuthCallbackError"),e}return(0,c.default)(r)}(f);t.OAuthCallbackError=y;var g=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","AccountNotLinkedError"),e}return(0,c.default)(r)}(f);t.AccountNotLinkedError=g;var m=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","MissingAPIRouteError"),(0,a.default)((0,s.default)(e),"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,c.default)(r)}(f);t.MissingAPIRoute=m;var _=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","MissingSecretError"),(0,a.default)((0,s.default)(e),"code","NO_SECRET"),e}return(0,c.default)(r)}(f);t.MissingSecret=_;var v=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","MissingAuthorizeError"),(0,a.default)((0,s.default)(e),"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,c.default)(r)}(f);t.MissingAuthorize=v;var w=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","MissingAdapterError"),(0,a.default)((0,s.default)(e),"code","EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,c.default)(r)}(f);t.MissingAdapter=w;var b=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","MissingAdapterMethodsError"),(0,a.default)((0,s.default)(e),"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,c.default)(r)}(f);t.MissingAdapterMethods=b;var S=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","UnsupportedStrategyError"),(0,a.default)((0,s.default)(e),"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,c.default)(r)}(f);t.UnsupportedStrategy=S;var k=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,a.default)((0,s.default)(e),"name","InvalidCallbackUrl"),(0,a.default)((0,s.default)(e),"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,c.default)(r)}(f);function E(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function A(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}t.InvalidCallbackUrl=k},7919:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.AuthHandler=g;var n=p(r(5387)),o=r(7885),s=p(r(8024)),a=i(r(5858)),l=r(3833),c=r(4538),u=r(2486),d=r(7162);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?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}async function f(e){try{return await e.json()}catch(e){}}async function y(e){var t,r,i,n;if(e instanceof Request){let t=new URL(e.url),s=t.pathname.split("/").slice(3),a=Object.fromEntries(e.headers),l=Object.fromEntries(t.searchParams);return l.nextauth=s,{action:s[0],method:e.method,headers:a,body:await f(e),cookies:(0,d.parse)(null!==(r=e.headers.get("cookie"))&&void 0!==r?r:""),providerId:s[1],error:null!==(i=t.searchParams.get("error"))&&void 0!==i?i:s[1],origin:(0,o.detectOrigin)(null!==(n=a["x-forwarded-host"])&&void 0!==n?n:a.host,a["x-forwarded-proto"]),query:l}}let{headers:s}=e,a=null!==(t=null==s?void 0:s["x-forwarded-host"])&&void 0!==t?t:null==s?void 0:s.host;return e.origin=(0,o.detectOrigin)(a,null==s?void 0:s["x-forwarded-proto"]),e}async function g(e){var t,r,i,o,d,h,p,f;let{options:g,req:m}=e,_=await y(m);(0,n.setLogger)(g.logger,g.debug);let v=(0,c.assertConfig)({options:g,req:_});if(Array.isArray(v))v.forEach(n.default.warn);else if(v instanceof Error){if(n.default.error(v.code,v),!["signin","signout","error","verify-request"].includes(_.action)||"GET"!==_.method)return{status:500,headers:[{key:"Content-Type",value:"application/json"}],body:{message:"There is a problem with the server configuration. Check the server logs for more information."}};let{pages:e,theme:t}=g,r=(null==e?void 0:e.error)&&(null===(d=_.query)||void 0===d?void 0:null===(h=d.callbackUrl)||void 0===h?void 0:h.startsWith(e.error));return!(null!=e&&e.error)||r?(r&&n.default.error("AUTH_ON_ERROR_PAGE_ERROR",Error(`The error page ${null==e?void 0:e.error} should not require authentication`)),(0,a.default)({theme:t}).error({error:"configuration"})):{redirect:`${e.error}?error=Configuration`}}let{action:w,providerId:b,error:S,method:k="GET"}=_,{options:E,cookies:A}=await (0,l.init)({authOptions:g,action:w,providerId:b,origin:_.origin,callbackUrl:null!==(t=null===(r=_.body)||void 0===r?void 0:r.callbackUrl)&&void 0!==t?t:null===(i=_.query)||void 0===i?void 0:i.callbackUrl,csrfToken:null===(o=_.body)||void 0===o?void 0:o.csrfToken,cookies:_.cookies,isPost:"POST"===k}),x=new u.SessionStore(E.cookies.sessionToken,_,E.logger);if("GET"===k){let e=(0,a.default)({...E,query:_.query,cookies:A}),{pages:t}=E;switch(w){case"providers":return await s.providers(E.providers);case"session":{let e=await s.session({options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}case"csrf":return{headers:[{key:"Content-Type",value:"application/json"}],body:{csrfToken:E.csrfToken},cookies:A};case"signin":if(t.signIn){let e=`${t.signIn}${t.signIn.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(E.callbackUrl)}`;return S&&(e=`${e}&error=${encodeURIComponent(S)}`),{redirect:e,cookies:A}}return e.signin();case"signout":if(t.signOut)return{redirect:t.signOut,cookies:A};return e.signout();case"callback":if(E.provider){let e=await s.callback({body:_.body,query:_.query,headers:_.headers,cookies:_.cookies,method:k,options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}break;case"verify-request":if(t.verifyRequest)return{redirect:t.verifyRequest,cookies:A};return e.verifyRequest();case"error":if(["Signin","OAuthSignin","OAuthCallback","OAuthCreateAccount","EmailCreateAccount","Callback","OAuthAccountNotLinked","EmailSignin","CredentialsSignin","SessionRequired"].includes(S))return{redirect:`${E.url}/signin?error=${S}`,cookies:A};if(t.error)return{redirect:`${t.error}${t.error.includes("?")?"&":"?"}error=${S}`,cookies:A};return e.error({error:S})}}else if("POST"===k)switch(w){case"signin":if(E.csrfTokenVerified&&E.provider){let e=await s.signin({query:_.query,body:_.body,options:E});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{redirect:`${E.url}/signin?csrf=true`,cookies:A};case"signout":if(E.csrfTokenVerified){let e=await s.signout({options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{redirect:`${E.url}/signout?csrf=true`,cookies:A};case"callback":if(E.provider){if("credentials"===E.provider.type&&!E.csrfTokenVerified)return{redirect:`${E.url}/signin?csrf=true`,cookies:A};let e=await s.callback({body:_.body,query:_.query,headers:_.headers,cookies:_.cookies,method:k,options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}break;case"_log":if(g.logger)try{let{code:e,level:t,...r}=null!==(p=_.body)&&void 0!==p?p:{};n.default[t](e,r)}catch(e){n.default.error("LOGGER_ERROR",e)}return{};case"session":if(E.csrfTokenVerified){let e=await s.session({options:E,sessionStore:x,newSession:null===(f=_.body)||void 0===f?void 0:f.data,isUpdate:!0});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{status:400,body:{},cookies:A}}return{status:400,body:`Error: This action with HTTP ${k} is not supported by NextAuth.js`}}},3833:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.init=m;var n=r(6113),o=i(r(5387)),s=r(2394),a=i(r(412)),l=r(9001),c=g(r(2486)),u=g(r(1609)),d=r(6599),h=r(3378),p=r(3266),f=i(r(550));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?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}async function m({authOptions:e,providerId:t,action:r,origin:i,cookies:y,callbackUrl:g,csrfToken:m,isPost:_}){var v,w;let b=(0,f.default)(i),S=(0,l.createSecret)({authOptions:e,url:b}),{providers:k,provider:E}=(0,a.default)({providers:e.providers,url:b,providerId:t}),A={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...e,url:b,action:r,provider:E,cookies:{...c.defaultCookies(null!==(v=e.useSecureCookies)&&void 0!==v?v:b.base.startsWith("https://")),...e.cookies},secret:S,providers:k,session:{strategy:e.adapter?"database":"jwt",maxAge:2592e3,updateAge:86400,generateSessionToken:()=>{var e;return null!==(e=null===n.randomUUID||void 0===n.randomUUID?void 0:(0,n.randomUUID)())&&void 0!==e?e:(0,n.randomBytes)(32).toString("hex")},...e.session},jwt:{secret:S,maxAge:2592e3,encode:u.encode,decode:u.decode,...e.jwt},events:(0,s.eventsErrorHandler)(null!==(w=e.events)&&void 0!==w?w:{},o.default),adapter:(0,s.adapterErrorHandler)(e.adapter,o.default),callbacks:{...d.defaultCallbacks,...e.callbacks},logger:o.default,callbackUrl:b.origin},x=[],{csrfToken:O,cookie:T,csrfTokenVerified:P}=(0,h.createCSRFToken)({options:A,cookieValue:null==y?void 0:y[A.cookies.csrfToken.name],isPost:_,bodyValue:m});A.csrfToken=O,A.csrfTokenVerified=P,T&&x.push({name:A.cookies.csrfToken.name,value:T,options:A.cookies.csrfToken.options});let{callbackUrl:j,callbackUrlCookie:C}=await (0,p.createCallbackUrl)({options:A,cookieValue:null==y?void 0:y[A.cookies.callbackUrl.name],paramValue:g});return A.callbackUrl=j,C&&x.push({name:A.cookies.callbackUrl.name,value:C,options:A.cookies.callbackUrl.options}),{options:A,cookies:x}}},4538:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.assertConfig=function(e){var t,r,i,c,u,d,h,p;let f,y,g;let{options:m,req:_}=e,v=[];if(!a&&(_.origin||v.push("NEXTAUTH_URL"),m.secret,m.debug&&v.push("DEBUG_ENABLED")),!m.secret)return new n.MissingSecret("Please define a `secret` in production.");if(!(null!==(t=_.query)&&void 0!==t&&t.nextauth)&&!_.action)return new n.MissingAPIRoute("Cannot find [...nextauth].{js,ts} in `/pages/api/auth`. Make sure the filename is written correctly.");let w=null===(r=_.query)||void 0===r?void 0:r.callbackUrl,b=(0,o.default)(_.origin);if(w&&!l(w,b.base))return new n.InvalidCallbackUrl(`Invalid callback URL. Received: ${w}`);let{callbackUrl:S}=(0,s.defaultCookies)(null!==(i=m.useSecureCookies)&&void 0!==i?i:b.base.startsWith("https://")),k=null===(c=_.cookies)||void 0===c?void 0:c[null!==(u=null===(d=m.cookies)||void 0===d?void 0:null===(h=d.callbackUrl)||void 0===h?void 0:h.name)&&void 0!==u?u:S.name];if(k&&!l(k,b.base))return new n.InvalidCallbackUrl(`Invalid callback URL. Received: ${k}`);for(let e of m.providers)"credentials"===e.type?f=!0:"email"===e.type?y=!0:"twitter"===e.id&&"2.0"===e.version&&(g=!0);if(f){let e=(null===(p=m.session)||void 0===p?void 0:p.strategy)==="database",t=!m.providers.some(e=>"credentials"!==e.type);if(e&&t)return new n.UnsupportedStrategy("Signin in with credentials only supported if JWT strategy is enabled");if(m.providers.some(e=>"credentials"===e.type&&!e.authorize))return new n.MissingAuthorize("Must define an authorize() handler to use credentials authentication provider")}if(y){let{adapter:e}=m;if(!e)return new n.MissingAdapter("E-mail login requires an adapter.");let t=["createVerificationToken","useVerificationToken","getUserByEmail"].filter(t=>!e[t]);if(t.length)return new n.MissingAdapterMethods(`Required adapter methods were missing: ${t.join(", ")}`)}return a||(g&&v.push("TWITTER_OAUTH_2_BETA"),a=!0),v};var n=r(2394),o=i(r(550)),s=r(2486);let a=!1;function l(e,t){try{return/^https?:/.test(new URL(e,e.startsWith("/")?t:void 0).protocol)}catch(e){return!1}}},1553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(2394),n=r(9001);async function o(e){var t,r,o,s,a,l;let{sessionToken:c,profile:u,account:d,options:h}=e;if(!(null!=d&&d.providerAccountId)||!d.type)throw Error("Missing or invalid provider account");if(!["email","oauth"].includes(d.type))throw Error("Provider not supported");let{adapter:p,jwt:f,events:y,session:{strategy:g,generateSessionToken:m}}=h;if(!p)return{user:u,account:d};let{createUser:_,updateUser:v,getUser:w,getUserByAccount:b,getUserByEmail:S,linkAccount:k,createSession:E,getSessionAndUser:A,deleteSession:x}=p,O=null,T=null,P=!1,j="jwt"===g;if(c){if(j)try{(O=await f.decode({...f,token:c}))&&"sub"in O&&O.sub&&(T=await w(O.sub))}catch(e){}else{let e=await A(c);e&&(O=e.session,T=e.user)}}if("email"===d.type){let e=await S(u.email);if(e)(null===(t=T)||void 0===t?void 0:t.id)!==e.id&&!j&&c&&await x(c),T=await v({id:e.id,emailVerified:new Date}),await (null===(r=y.updateUser)||void 0===r?void 0:r.call(y,{user:T}));else{let{id:e,...t}={...u,emailVerified:new Date};T=await _(t),await (null===(o=y.createUser)||void 0===o?void 0:o.call(y,{user:T})),P=!0}return{session:O=j?{}:await E({sessionToken:await m(),userId:T.id,expires:(0,n.fromDate)(h.session.maxAge)}),user:T,isNewUser:P}}if("oauth"===d.type){let e=await b({providerAccountId:d.providerAccountId,provider:d.provider});if(e){if(T){if(e.id===T.id)return{session:O,user:T,isNewUser:P};throw new i.AccountNotLinkedError("The account is already associated with another user")}return{session:O=j?{}:await E({sessionToken:await m(),userId:e.id,expires:(0,n.fromDate)(h.session.maxAge)}),user:e,isNewUser:P}}{if(T)return await k({...d,userId:T.id}),await (null===(l=y.linkAccount)||void 0===l?void 0:l.call(y,{user:T,account:d,profile:u})),{session:O,user:T,isNewUser:P};let e=u.email?await S(u.email):null;if(e){let t=h.provider;if(null!=t&&t.allowDangerousEmailAccountLinking)T=e;else throw new i.AccountNotLinkedError("Another account already exists with the same e-mail address")}else{let{id:e,...t}={...u,emailVerified:null};T=await _(t)}return await (null===(s=y.createUser)||void 0===s?void 0:s.call(y,{user:T})),await k({...d,userId:T.id}),await (null===(a=y.linkAccount)||void 0===a?void 0:a.call(y,{user:T,account:d,profile:u})),{session:O=j?{}:await E({sessionToken:await m(),userId:T.id,expires:(0,n.fromDate)(h.session.maxAge)}),user:T,isNewUser:!0}}}throw Error("Unsupported account type")}},3266:(e,t)=>{"use strict";async function r({options:e,paramValue:t,cookieValue:r}){let{url:i,callbacks:n}=e,o=i.origin;return t?o=await n.redirect({url:t,baseUrl:i.origin}):r&&(o=await n.redirect({url:r,baseUrl:i.origin})),{callbackUrl:o,callbackUrlCookie:o!==r?o:void 0}}Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackUrl=r},2486:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStore=void 0,t.defaultCookies=function(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}}}};var n=i(r(7972)),o=i(r(3203));function s(e,t){l(e,t),t.add(e)}function a(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}var u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakSet,f=new WeakSet;class y{constructor(e,t,r){s(this,f),s(this,p),a(this,u,{writable:!0,value:{}}),a(this,d,{writable:!0,value:void 0}),a(this,h,{writable:!0,value:void 0}),(0,o.default)(this,h,r),(0,o.default)(this,d,e);let{cookies:i}=t,{name:l}=e;if("function"==typeof(null==i?void 0:i.getAll))for(let{name:e,value:t}of i.getAll())e.startsWith(l)&&((0,n.default)(this,u)[e]=t);else if(i instanceof Map)for(let e of i.keys())e.startsWith(l)&&((0,n.default)(this,u)[e]=i.get(e));else for(let e in i)e.startsWith(l)&&((0,n.default)(this,u)[e]=i[e])}get value(){return Object.keys((0,n.default)(this,u)).sort((e,t)=>{var r,i;return parseInt(null!==(r=e.split(".").pop())&&void 0!==r?r:"0")-parseInt(null!==(i=t.split(".").pop())&&void 0!==i?i:"0")}).map(e=>(0,n.default)(this,u)[e]).join("")}chunk(e,t){let r=c(this,f,m).call(this);for(let i of c(this,p,g).call(this,{name:(0,n.default)(this,d).name,value:e,options:{...(0,n.default)(this,d).options,...t}}))r[i.name]=i;return Object.values(r)}clean(){return Object.values(c(this,f,m).call(this))}}function g(e){let t=Math.ceil(e.value.length/3933);if(1===t)return(0,n.default)(this,u)[e.name]=e.value,[e];let r=[];for(let i=0;i<t;i++){let t=`${e.name}.${i}`,o=e.value.substr(3933*i,3933);r.push({...e,name:t,value:o}),(0,n.default)(this,u)[t]=o}return(0,n.default)(this,h).debug("CHUNKING_SESSION_COOKIE",{message:"Session cookie exceeds allowed 4096 bytes.",emptyCookieSize:163,valueSize:e.value.length,chunks:r.map(e=>e.value.length+163)}),r}function m(){let e={};for(let r in(0,n.default)(this,u)){var t;null===(t=(0,n.default)(this,u))||void 0===t||delete t[r],e[r]={name:r,value:"",options:{...(0,n.default)(this,d).options,maxAge:0}}}return e}t.SessionStore=y},3378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCSRFToken=function({options:e,cookieValue:t,isPost:r,bodyValue:n}){if(t){let[o,s]=t.split("|");if(s===(0,i.createHash)("sha256").update(`${o}${e.secret}`).digest("hex"))return{csrfTokenVerified:r&&o===n,csrfToken:o}}let o=(0,i.randomBytes)(32).toString("hex"),s=(0,i.createHash)("sha256").update(`${o}${e.secret}`).digest("hex");return{cookie:`${o}|${s}`,csrfToken:o}};var i=r(6113)},6599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCallbacks=void 0,t.defaultCallbacks={signIn:()=>!0,redirect:({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:t,session:({session:e})=>e,jwt:({token:e})=>e}},8832:(e,t)=>{"use strict";async function r({email:e,adapter:t}){let{getUserByEmail:r}=t;return(e?await r(e):null)||{id:e,email:e,emailVerified:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},9278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(6113),n=r(9001);async function o(e,t){var r,o,s,a;let{url:l,adapter:c,provider:u,callbackUrl:d,theme:h}=t,p=null!==(r=await (null===(o=u.generateVerificationToken)||void 0===o?void 0:o.call(u)))&&void 0!==r?r:(0,i.randomBytes)(32).toString("hex"),f=new Date(Date.now()+(null!==(s=u.maxAge)&&void 0!==s?s:86400)*1e3),y=new URLSearchParams({callbackUrl:d,token:p,email:e}),g=`${l}/callback/${u.id}?${y}`;return await Promise.all([u.sendVerificationRequest({identifier:e,token:p,expires:f,url:g,provider:u,theme:h}),null===(a=c.createVerificationToken)||void 0===a?void 0:a.call(c,{identifier:e,token:(0,n.hashToken)(p,t),expires:f})]),`${l}/verify-request?${new URLSearchParams({provider:u.id,type:u.type})}`}},9581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i=r(1934),n=r(7801),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(7681));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}async function a({options:e,query:t}){var r,s,a;let{logger:l,provider:c}=e,u={};if("string"==typeof c.authorization){let e=Object.fromEntries(new URL(c.authorization).searchParams);u={...u,...e}}else u={...u,...null===(s=c.authorization)||void 0===s?void 0:s.params};if(u={...u,...t},null!==(r=c.version)&&void 0!==r&&r.startsWith("1.")){let t=(0,n.oAuth1Client)(e),r=await t.getOAuthRequestToken(u),i=`${null===(a=c.authorization)||void 0===a?void 0:a.url}?${new URLSearchParams({oauth_token:r.oauth_token,oauth_token_secret:r.oauth_token_secret,...r.params})}`;return n.oAuth1TokenStore.set(r.oauth_token,r.oauth_token_secret),l.debug("GET_AUTHORIZATION_URL",{url:i,provider:c}),{redirect:i}}let d=await (0,i.openidClient)(e),h=u,p=[];await o.state.create(e,p,h),await o.pkce.create(e,p,h),await o.nonce.create(e,p,h);let f=d.authorizationUrl(h);return l.debug("GET_AUTHORIZATION_URL",{url:f,cookies:p,provider:c}),{redirect:f,cookies:p}}},9656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var i=r(5684),n=r(1934),o=r(7801),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?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(7681)),a=r(2394);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}async function c(e){var t,r,l,c,d,h;let{options:p,query:f,body:y,method:g,cookies:m}=e,{logger:_,provider:v}=p,w=null!==(t=null==y?void 0:y.error)&&void 0!==t?t:null==f?void 0:f.error;if(w){let e=Error(w);throw _.error("OAUTH_CALLBACK_HANDLER_ERROR",{error:e,error_description:null==f?void 0:f.error_description,providerId:v.id}),_.debug("OAUTH_CALLBACK_HANDLER_ERROR",{body:y}),e}if(null!==(r=v.version)&&void 0!==r&&r.startsWith("1."))try{let e=await (0,o.oAuth1Client)(p),{oauth_token:t,oauth_verifier:r}=null!=f?f:{},i=await e.getOAuthAccessToken(t,o.oAuth1TokenStore.get(t),r),n=await e.get(v.profileUrl,i.oauth_token,i.oauth_token_secret);return"string"==typeof n&&(n=JSON.parse(n)),{...await u({profile:n,tokens:i,provider:v,logger:_}),cookies:[]}}catch(e){throw _.error("OAUTH_V1_GET_ACCESS_TOKEN_ERROR",e),e}null!=f&&f.oauth_token&&o.oAuth1TokenStore.delete(f.oauth_token);try{let e,t;let r=await (0,n.openidClient)(p),o={},a=[];await s.state.use(m,a,p,o),await s.pkce.use(m,a,p,o),await s.nonce.use(m,a,p,o);let w={...r.callbackParams({url:`http://n?${new URLSearchParams(f)}`,body:y,method:g}),...null===(l=v.token)||void 0===l?void 0:l.params};if(null!==(c=v.token)&&void 0!==c&&c.request){let t=await v.token.request({provider:v,params:w,checks:o,client:r});e=new i.TokenSet(t.tokens)}else e=v.idToken?await r.callback(v.callbackUrl,w,o):await r.oauthCallback(v.callbackUrl,w,o);return Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),t=null!==(d=v.userinfo)&&void 0!==d&&d.request?await v.userinfo.request({provider:v,tokens:e,client:r}):v.idToken?e.claims():await r.userinfo(e,{params:null===(h=v.userinfo)||void 0===h?void 0:h.params}),{...await u({profile:t,provider:v,tokens:e,logger:_}),cookies:a}}catch(e){throw new a.OAuthCallbackError(e)}}async function u({profile:e,tokens:t,provider:r,logger:i}){try{var n;i.debug("PROFILE_DATA",{OAuthProfile:e});let o=await r.profile(e,t);if(o.email=null===(n=o.email)||void 0===n?void 0:n.toLowerCase(),!o.id)throw TypeError(`Profile id is missing in ${r.name} OAuth profile response`);return{profile:o,account:{provider:r.id,type:r.type,providerAccountId:o.id.toString(),...t},OAuthProfile:e}}catch(t){i.error("OAUTH_PARSE_PROFILE_ERROR",{error:t,OAuthProfile:e})}}},7681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkce=t.nonce=t.PKCE_CODE_CHALLENGE_METHOD=void 0,t.signCookie=s,t.state=void 0;var i=r(5684),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=n?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}(r(1609));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}async function s(e,t,r,i){let{cookies:o,logger:s}=i;s.debug(`CREATE_${e.toUpperCase()}`,{value:t,maxAge:r});let{name:a}=o[e],l=new Date;return l.setTime(l.getTime()+1e3*r),{name:a,value:await n.encode({...i.jwt,maxAge:r,token:{value:t},salt:a}),options:{...o[e].options,expires:l}}}let a="S256";t.PKCE_CODE_CHALLENGE_METHOD=a,t.pkce={async create(e,t,r){var n,o,l;if(!(null!==(n=e.provider)&&void 0!==n&&null!==(o=n.checks)&&void 0!==o&&o.includes("pkce")))return;let c=i.generators.codeVerifier(),u=i.generators.codeChallenge(c);r.code_challenge=u,r.code_challenge_method=a;let d=null!==(l=e.cookies.pkceCodeVerifier.options.maxAge)&&void 0!==l?l:900;t.push(await s("pkceCodeVerifier",c,d,e))},async use(e,t,r,i){var o,s;if(!(null!==(o=r.provider)&&void 0!==o&&null!==(s=o.checks)&&void 0!==s&&s.includes("pkce")))return;let a=null==e?void 0:e[r.cookies.pkceCodeVerifier.name];if(!a)throw TypeError("PKCE code_verifier cookie was missing.");let{name:l}=r.cookies.pkceCodeVerifier,c=await n.decode({...r.jwt,token:a,salt:l});if(!(null!=c&&c.value))throw TypeError("PKCE code_verifier value could not be parsed.");t.push({name:l,value:"",options:{...r.cookies.pkceCodeVerifier.options,maxAge:0}}),i.code_verifier=c.value}},t.state={async create(e,t,r){var n,o;if(!(null!==(n=e.provider.checks)&&void 0!==n&&n.includes("state")))return;let a=i.generators.state();r.state=a;let l=null!==(o=e.cookies.state.options.maxAge)&&void 0!==o?o:900;t.push(await s("state",a,l,e))},async use(e,t,r,i){var o;if(!(null!==(o=r.provider.checks)&&void 0!==o&&o.includes("state")))return;let s=null==e?void 0:e[r.cookies.state.name];if(!s)throw TypeError("State cookie was missing.");let{name:a}=r.cookies.state,l=await n.decode({...r.jwt,token:s,salt:a});if(!(null!=l&&l.value))throw TypeError("State value could not be parsed.");t.push({name:a,value:"",options:{...r.cookies.state.options,maxAge:0}}),i.state=l.value}},t.nonce={async create(e,t,r){var n,o;if(!(null!==(n=e.provider.checks)&&void 0!==n&&n.includes("nonce")))return;let a=i.generators.nonce();r.nonce=a;let l=null!==(o=e.cookies.nonce.options.maxAge)&&void 0!==o?o:900;t.push(await s("nonce",a,l,e))},async use(e,t,r,i){var o,s;if(!(null!==(o=r.provider)&&void 0!==o&&null!==(s=o.checks)&&void 0!==s&&s.includes("nonce")))return;let a=null==e?void 0:e[r.cookies.nonce.name];if(!a)throw TypeError("Nonce cookie was missing.");let{name:l}=r.cookies.nonce,c=await n.decode({...r.jwt,token:a,salt:l});if(!(null!=c&&c.value))throw TypeError("Nonce value could not be parsed.");t.push({name:l,value:"",options:{...r.cookies.nonce.options,maxAge:0}}),i.nonce=c.value}}},7801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oAuth1Client=function(e){var t,r;let n=e.provider,o=new i.OAuth(n.requestTokenUrl,n.accessTokenUrl,n.clientId,n.clientSecret,null!==(t=n.version)&&void 0!==t?t:"1.0",n.callbackUrl,null!==(r=n.encoding)&&void 0!==r?r:"HMAC-SHA1"),s=o.get.bind(o);o.get=async(...e)=>await new Promise((t,r)=>{s(...e,(e,i)=>{if(e)return r(e);t(i)})});let a=o.getOAuthAccessToken.bind(o);o.getOAuthAccessToken=async(...e)=>await new Promise((t,r)=>{a(...e,(e,i,n)=>{if(e)return r(e);t({oauth_token:i,oauth_token_secret:n})})});let l=o.getOAuthRequestToken.bind(o);return o.getOAuthRequestToken=async(e={})=>await new Promise((t,r)=>{l(e,(e,i,n,o)=>{if(e)return r(e);t({oauth_token:i,oauth_token_secret:n,params:o})})}),o},t.oAuth1TokenStore=void 0;var i=r(3990);let n=new Map;t.oAuth1TokenStore=n},1934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openidClient=n;var i=r(5684);async function n(e){let t;let r=e.provider;if(r.httpOptions&&i.custom.setHttpOptionsDefaults(r.httpOptions),r.wellKnown)t=await i.Issuer.discover(r.wellKnown);else{var n,o,s;t=new i.Issuer({issuer:r.issuer,authorization_endpoint:null===(n=r.authorization)||void 0===n?void 0:n.url,token_endpoint:null===(o=r.token)||void 0===o?void 0:o.url,userinfo_endpoint:null===(s=r.userinfo)||void 0===s?void 0:s.url,jwks_uri:r.jwks_endpoint})}let a=new t.Client({client_id:r.clientId,client_secret:r.clientSecret,redirect_uris:[r.callbackUrl],...r.client},r.jwks);return a[i.custom.clock_tolerance]=10,a}},412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,providerId:r}=e,o=e.providers.map(({options:e,...r})=>{var o,s;if("oauth"===r.type){let o=n(r),a=n(e,!0),l=null!==(s=null==a?void 0:a.id)&&void 0!==s?s:r.id;return(0,i.merge)(o,{...a,signinUrl:`${t}/signin/${l}`,callbackUrl:`${t}/callback/${l}`})}let a=null!==(o=null==e?void 0:e.id)&&void 0!==o?o:r.id;return(0,i.merge)(r,{...e,signinUrl:`${t}/signin/${a}`,callbackUrl:`${t}/callback/${a}`})});return{providers:o,provider:o.find(({id:e})=>e===r)}};var i=r(7838);function n(e,t=!1){var r,i,n,o,s,a,l;if(!e)return;let c=Object.entries(e).reduce((e,[t,r])=>{if(["authorization","token","userinfo"].includes(t)&&"string"==typeof r){var i;let n=new URL(r);e[t]={url:`${n.origin}${n.pathname}`,params:Object.fromEntries(null!==(i=n.searchParams)&&void 0!==i?i:[])}}else e[t]=r;return e},{});return t||null!==(r=c.version)&&void 0!==r&&r.startsWith("1.")||(c.idToken=!!(null!==(i=null!==(n=c.idToken)&&void 0!==n?n:null===(o=c.wellKnown)||void 0===o?void 0:o.includes("openid-configuration"))&&void 0!==i?i:null===(s=c.authorization)||void 0===s?void 0:null===(a=s.params)||void 0===a?void 0:null===(l=a.scope)||void 0===l?void 0:l.includes("openid")),c.checks||(c.checks=["state"])),c}},9001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSecret=function(e){var t;let{authOptions:r,url:n}=e;return null!==(t=r.secret)&&void 0!==t?t:(0,i.createHash)("sha256").update(JSON.stringify({...n,...r})).digest("hex")},t.fromDate=function(e,t=Date.now()){return new Date(t+1e3*e)},t.hashToken=function(e,t){var r;let{provider:n,secret:o}=t;return(0,i.createHash)("sha256").update(`${e}${null!==(r=n.secret)&&void 0!==r?r:o}`).digest("hex")};var i=r(6113)},1329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let{url:r,error:n="default",theme:o}=e,s=`${r}/signin`,a={default:{status:200,heading:"Error",message:(0,i.h)("p",null,(0,i.h)("a",{className:"site",href:null==r?void 0:r.origin},null==r?void 0:r.host))},configuration:{status:500,heading:"Server error",message:(0,i.h)("div",null,(0,i.h)("p",null,"There is a problem with the server configuration."),(0,i.h)("p",null,"Check the server logs for more information."))},accessdenied:{status:403,heading:"Access Denied",message:(0,i.h)("div",null,(0,i.h)("p",null,"You do not have permission to sign in."),(0,i.h)("p",null,(0,i.h)("a",{className:"button",href:s},"Sign in")))},verification:{status:403,heading:"Unable to sign in",message:(0,i.h)("div",null,(0,i.h)("p",null,"The sign in link is no longer valid."),(0,i.h)("p",null,"It may have been used already or it may have expired.")),signin:(0,i.h)("a",{className:"button",href:s},"Sign in")}},{status:l,heading:c,message:u,signin:d}=null!==(t=a[n.toLowerCase()])&&void 0!==t?t:a.default;return{status:l,html:(0,i.h)("div",{className:"error"},(null==o?void 0:o.brandColor)&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${null==o?void 0:o.brandColor} + } + `}}),(0,i.h)("div",{className:"card"},(null==o?void 0:o.logo)&&(0,i.h)("img",{src:o.logo,alt:"Logo",className:"logo"}),(0,i.h)("h1",null,c),(0,i.h)("div",{className:"message"},u),d))}};var i=r(2806)},5858:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,theme:r,query:i,cookies:u}=e;function d({html:e,title:t,status:i}){var o;return{cookies:u,status:i,headers:[{key:"Content-Type",value:"text/html"}],body:`<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${(0,c.default)()}</style><title>${t}</title></head><body class="__next-auth-theme-${null!==(o=null==r?void 0:r.colorScheme)&&void 0!==o?o:"auto"}"><div class="page">${(0,n.default)(e)}</div></body></html>`}}return{signin:t=>d({html:(0,o.default)({csrfToken:e.csrfToken,providers:e.providers,callbackUrl:e.callbackUrl,theme:r,...i,...t}),title:"Sign In"}),signout:i=>d({html:(0,s.default)({csrfToken:e.csrfToken,url:t,theme:r,...i}),title:"Sign Out"}),verifyRequest:e=>d({html:(0,a.default)({url:t,theme:r,...e}),title:"Verify Request"}),error:e=>d({...(0,l.default)({url:t,theme:r,...e}),title:"Error"})}};var n=i(r(2824)),o=i(r(337)),s=i(r(9241)),a=i(r(9776)),l=i(r(1329)),c=i(r(8053))},337:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let{csrfToken:r,providers:i,callbackUrl:a,theme:l,email:c,error:u}=e,d=i.filter(e=>"oauth"===e.type||"email"===e.type||"credentials"===e.type&&!!e.credentials);"undefined"!=typeof document&&l.buttonText&&document.documentElement.style.setProperty("--button-text-color",l.buttonText),"undefined"!=typeof document&&l.brandColor&&document.documentElement.style.setProperty("--brand-color",l.brandColor);let h={Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallback:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"The e-mail could not be sent.",CredentialsSignin:"Sign in failed. Check the details you provided are correct.",SessionRequired:"Please sign in to access this page.",default:"Unable to sign in."},p=u&&(null!==(t=h[u])&&void 0!==t?t:h.default),f="https://authjs.dev/img/providers";return(0,n.h)("div",{className:"signin"},l.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${l.brandColor} + } + `}}),l.buttonText&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --button-text-color: ${l.buttonText} + } + `}}),(0,n.h)("div",{className:"card"},l.logo&&(0,n.h)("img",{src:l.logo,alt:"Logo",className:"logo"}),p&&(0,n.h)("div",{className:"error"},(0,n.h)("p",null,p)),d.map((e,t)=>{let i,l,u,h,p,y;if("oauth"===e.type){var g;({bg:i="",text:l="",logo:u="",bgDark:p=i,textDark:y=l,logoDark:h=""}=null!==(g=e.style)&&void 0!==g?g:{}),u=u.startsWith("/")?`${f}${u}`:u,(h=h.startsWith("/")?`${f}${h}`:h||u)||(h=u)}return(0,n.h)("div",{key:e.id,className:"provider"},"oauth"===e.type&&(0,n.h)("form",{action:e.signinUrl,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),a&&(0,n.h)("input",{type:"hidden",name:"callbackUrl",value:a}),(0,n.h)("button",{type:"submit",className:"button",style:{"--provider-bg":i,"--provider-dark-bg":p,"--provider-color":l,"--provider-dark-color":y,"--provider-bg-hover":s(i,.8),"--provider-dark-bg-hover":s(p,.8)}},u&&(0,n.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo",src:`${u.startsWith("/")?f:""}${u}`}),h&&(0,n.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo-dark",src:`${u.startsWith("/")?f:""}${h}`}),(0,n.h)("span",null,"Sign in with ",e.name))),("email"===e.type||"credentials"===e.type)&&t>0&&"email"!==d[t-1].type&&"credentials"!==d[t-1].type&&(0,n.h)("hr",null),"email"===e.type&&(0,n.h)("form",{action:e.signinUrl,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,n.h)("label",{className:"section-header",htmlFor:`input-email-for-${e.id}-provider`},"Email"),(0,n.h)("input",{id:`input-email-for-${e.id}-provider`,autoFocus:!0,type:"email",name:"email",value:c,placeholder:"[email protected]",required:!0}),(0,n.h)("button",{id:"submitButton",type:"submit"},"Sign in with ",e.name)),"credentials"===e.type&&(0,n.h)("form",{action:e.callbackUrl,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),Object.keys(e.credentials).map(t=>{var r,i,s;return(0,n.h)("div",{key:`input-group-${e.id}`},(0,n.h)("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`},null!==(r=e.credentials[t].label)&&void 0!==r?r:t),(0,n.h)("input",(0,o.default)({name:t,id:`input-${t}-for-${e.id}-provider`,type:null!==(i=e.credentials[t].type)&&void 0!==i?i:"text",placeholder:null!==(s=e.credentials[t].placeholder)&&void 0!==s?s:""},e.credentials[t])))}),(0,n.h)("button",{type:"submit"},"Sign in with ",e.name)),("email"===e.type||"credentials"===e.type)&&t+1<d.length&&(0,n.h)("hr",null))})))};var n=r(2806),o=i(r(7701));function s(e,t=1){if(!e)return;3===(e=e.replace(/^#/,"")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let r=parseInt(e,16);return t=Math.min(Math.max(t,0),1),`rgba(${r>>16&255}, ${r>>8&255}, ${255&r}, ${t})`}},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,csrfToken:r,theme:n}=e;return(0,i.h)("div",{className:"signout"},n.brandColor&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${n.brandColor} + } + `}}),n.buttonText&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --button-text-color: ${n.buttonText} + } + `}}),(0,i.h)("div",{className:"card"},n.logo&&(0,i.h)("img",{src:n.logo,alt:"Logo",className:"logo"}),(0,i.h)("h1",null,"Signout"),(0,i.h)("p",null,"Are you sure you want to sign out?"),(0,i.h)("form",{action:`${t}/signout`,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,i.h)("button",{id:"submitButton",type:"submit"},"Sign out"))))};var i=r(2806)},9776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,theme:r}=e;return(0,i.h)("div",{className:"verify-request"},r.brandColor&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${r.brandColor} + } + `}}),(0,i.h)("div",{className:"card"},r.logo&&(0,i.h)("img",{src:r.logo,alt:"Logo",className:"logo"}),(0,i.h)("h1",null,"Check your email"),(0,i.h)("p",null,"A sign in link has been sent to your email address."),(0,i.h)("p",null,(0,i.h)("a",{className:"site",href:t.origin},t.host))))};var i=r(2806)},8538:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(r(9656)),o=i(r(1553)),s=r(9001),a=i(r(8832));async function l(e){var t,r,i,l,c,u;let{options:d,query:h,body:p,method:f,headers:y,sessionStore:g}=e,{provider:m,adapter:_,url:v,callbackUrl:w,pages:b,jwt:S,events:k,callbacks:E,session:{strategy:A,maxAge:x},logger:O}=d,T=[],P="jwt"===A;if("oauth"===m.type)try{let{profile:i,account:s,OAuthProfile:a,cookies:l}=await (0,n.default)({query:h,body:p,method:f,options:d,cookies:e.cookies});l.length&&T.push(...l);try{if(O.debug("OAUTH_CALLBACK_RESPONSE",{profile:i,account:s,OAuthProfile:a}),!i||!s||!a)return{redirect:`${v}/signin`,cookies:T};let e=i;if(_){let{getUserByAccount:t}=_,r=await t({providerAccountId:s.providerAccountId,provider:m.id});r&&(e=r)}try{let t=await E.signIn({user:e,account:s,profile:a});if(!t)return{redirect:`${v}/error?error=AccessDenied`,cookies:T};if("string"==typeof t)return{redirect:t,cookies:T}}catch(e){return{redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:T}}let{user:n,session:l,isNewUser:c}=await (0,o.default)({sessionToken:g.value,profile:i,account:s,options:d});if(P){let e={name:n.name,email:n.email,picture:n.image,sub:null===(r=n.id)||void 0===r?void 0:r.toString()},t=await E.jwt({token:e,user:n,account:s,profile:a,isNewUser:c,trigger:c?"signUp":"signIn"}),i=await S.encode({...S,token:t}),o=new Date;o.setTime(o.getTime()+1e3*x);let l=g.chunk(i,{expires:o});T.push(...l)}else T.push({name:d.cookies.sessionToken.name,value:l.sessionToken,options:{...d.cookies.sessionToken.options,expires:l.expires}});if(await (null===(t=k.signIn)||void 0===t?void 0:t.call(k,{user:n,account:s,profile:i,isNewUser:c})),c&&b.newUser)return{redirect:`${b.newUser}${b.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(w)}`,cookies:T};return{redirect:w,cookies:T}}catch(e){if("AccountNotLinkedError"===e.name)return{redirect:`${v}/error?error=OAuthAccountNotLinked`,cookies:T};if("CreateUserError"===e.name)return{redirect:`${v}/error?error=OAuthCreateAccount`,cookies:T};return O.error("OAUTH_CALLBACK_HANDLER_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:T}}}catch(e){if("OAuthCallbackError"===e.name)return O.error("OAUTH_CALLBACK_ERROR",{error:e,providerId:m.id}),{redirect:`${v}/error?error=OAuthCallback`,cookies:T};return O.error("OAUTH_CALLBACK_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:T}}else if("email"===m.type)try{let e=null==h?void 0:h.token,t=null==h?void 0:h.email;if(!e||!t)return{redirect:`${v}/error?error=configuration`,cookies:T};let r=await _.useVerificationToken({identifier:t,token:(0,s.hashToken)(e,d)});if(!r||r.expires.valueOf()<Date.now())return{redirect:`${v}/error?error=Verification`,cookies:T};let n=await (0,a.default)({email:t,adapter:_}),c={providerAccountId:n.email,type:"email",provider:m.id};try{let e=await E.signIn({user:n,account:c});if(!e)return{redirect:`${v}/error?error=AccessDenied`,cookies:T};if("string"==typeof e)return{redirect:e,cookies:T}}catch(e){return{redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:T}}let{user:u,session:p,isNewUser:f}=await (0,o.default)({sessionToken:g.value,profile:n,account:c,options:d});if(P){let e={name:u.name,email:u.email,picture:u.image,sub:null===(l=u.id)||void 0===l?void 0:l.toString()},t=await E.jwt({token:e,user:u,account:c,isNewUser:f,trigger:f?"signUp":"signIn"}),r=await S.encode({...S,token:t}),i=new Date;i.setTime(i.getTime()+1e3*x);let n=g.chunk(r,{expires:i});T.push(...n)}else T.push({name:d.cookies.sessionToken.name,value:p.sessionToken,options:{...d.cookies.sessionToken.options,expires:p.expires}});if(await (null===(i=k.signIn)||void 0===i?void 0:i.call(k,{user:u,account:c,isNewUser:f})),f&&b.newUser)return{redirect:`${b.newUser}${b.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(w)}`,cookies:T};return{redirect:w,cookies:T}}catch(e){if("CreateUserError"===e.name)return{redirect:`${v}/error?error=EmailCreateAccount`,cookies:T};return O.error("CALLBACK_EMAIL_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:T}}else if("credentials"===m.type&&"POST"===f){let e;try{if(!(e=await m.authorize(p,{query:h,body:p,headers:y,method:f})))return{status:401,redirect:`${v}/error?${new URLSearchParams({error:"CredentialsSignin",provider:m.id})}`,cookies:T}}catch(e){return{status:401,redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:T}}let t={providerAccountId:e.id,type:"credentials",provider:m.id};try{let r=await E.signIn({user:e,account:t,credentials:p});if(!r)return{status:403,redirect:`${v}/error?error=AccessDenied`,cookies:T};if("string"==typeof r)return{redirect:r,cookies:T}}catch(e){return{redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:T}}let r={name:e.name,email:e.email,picture:e.image,sub:null===(c=e.id)||void 0===c?void 0:c.toString()},i=await E.jwt({token:r,user:e,account:t,isNewUser:!1,trigger:"signIn"}),n=await S.encode({...S,token:i}),o=new Date;o.setTime(o.getTime()+1e3*x);let s=g.chunk(n,{expires:o});return T.push(...s),await (null===(u=k.signIn)||void 0===u?void 0:u.call(k,{user:e,account:t})),{redirect:w,cookies:T}}return{status:500,body:`Error: Callback for provider type ${m.type} not supported`,cookies:T}}},8024:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callback",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"providers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"session",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"signin",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"signout",{enumerable:!0,get:function(){return s.default}});var n=i(r(8538)),o=i(r(4125)),s=i(r(4611)),a=i(r(7181)),l=i(r(9344))},9344:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{headers:[{key:"Content-Type",value:"application/json"}],body:e.reduce((e,{id:t,name:r,type:i,signinUrl:n,callbackUrl:o})=>(e[t]={id:t,name:r,type:i,signinUrl:n,callbackUrl:o},e),{})}}},7181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=r(9001);async function n(e){var t,r,n,o,s,a;let{options:l,sessionStore:c,newSession:u,isUpdate:d}=e,{adapter:h,jwt:p,events:f,callbacks:y,logger:g,session:{strategy:m,maxAge:_}}=l,v={body:{},headers:[{key:"Content-Type",value:"application/json"}],cookies:[]},w=c.value;if(!w)return v;if("jwt"===m)try{let e=await p.decode({...p,token:w});if(!e)throw Error("JWT invalid");let n=await y.jwt({token:e,...d&&{trigger:"update"},session:u}),o=(0,i.fromDate)(_),s=await y.session({session:{user:{name:null==e?void 0:e.name,email:null==e?void 0:e.email,image:null==e?void 0:e.picture},expires:o.toISOString()},token:n});v.body=s;let a=await p.encode({...p,token:n,maxAge:l.session.maxAge}),h=c.chunk(a,{expires:o});null===(t=v.cookies)||void 0===t||t.push(...h),await (null===(r=f.session)||void 0===r?void 0:r.call(f,{session:s,token:n}))}catch(e){g.error("JWT_SESSION_ERROR",e),null===(n=v.cookies)||void 0===n||n.push(...c.clean())}else try{let{getSessionAndUser:e,deleteSession:t,updateSession:r}=h,n=await e(w);if(n&&n.session.expires.valueOf()<Date.now()&&(await t(w),n=null),n){let{user:e,session:t}=n,a=l.session.updateAge,c=t.expires.valueOf()-1e3*_+1e3*a,h=(0,i.fromDate)(_);c<=Date.now()&&await r({sessionToken:w,expires:h});let p=await y.session({session:{user:{name:e.name,email:e.email,image:e.image},expires:t.expires.toISOString()},user:e,newSession:u,...d?{trigger:"update"}:{}});v.body=p,null===(o=v.cookies)||void 0===o||o.push({name:l.cookies.sessionToken.name,value:w,options:{...l.cookies.sessionToken.options,expires:h}}),await (null===(s=f.session)||void 0===s?void 0:s.call(f,{session:p}))}else w&&(null===(a=v.cookies)||void 0===a||a.push(...c.clean()))}catch(e){g.error("SESSION_ERROR",e)}return v}},4125:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(r(9581)),o=i(r(9278)),s=i(r(8832));async function a(e){let{options:t,query:r,body:i}=e,{url:a,callbacks:l,logger:c,provider:u}=t;if(!u.type)return{status:500,text:`Error: Type not specified for ${u.name}`};if("oauth"===u.type)try{return await (0,n.default)({options:t,query:r})}catch(e){return c.error("SIGNIN_OAUTH_ERROR",{error:e,providerId:u.id}),{redirect:`${a}/error?error=OAuthSignin`}}else if("email"===u.type){var d;let e=null==i?void 0:i.email;if(!e)return{redirect:`${a}/error?error=EmailSignin`};let r=null!==(d=u.normalizeIdentifier)&&void 0!==d?d:e=>{let[t,r]=e.toLowerCase().trim().split("@");return r=r.split(",")[0],`${t}@${r}`};try{e=r(null==i?void 0:i.email)}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${a}/error?error=EmailSignin`}}let n=await (0,s.default)({email:e,adapter:t.adapter}),h={providerAccountId:e,userId:e,type:"email",provider:u.id};try{let e=await l.signIn({user:n,account:h,email:{verificationRequest:!0}});if(!e)return{redirect:`${a}/error?error=AccessDenied`};if("string"==typeof e)return{redirect:e}}catch(e){return{redirect:`${a}/error?${new URLSearchParams({error:e})}`}}try{return{redirect:await (0,o.default)(e,t)}}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${a}/error?error=EmailSignin`}}}return{redirect:`${a}/signin`}}},4611:(e,t)=>{"use strict";async function r(e){var t,r;let{options:i,sessionStore:n}=e,{adapter:o,events:s,jwt:a,callbackUrl:l,logger:c,session:u}=i,d=null==n?void 0:n.value;if(!d)return{redirect:l};if("jwt"===u.strategy)try{let e=await a.decode({...a,token:d});await (null===(t=s.signOut)||void 0===t?void 0:t.call(s,{token:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}else try{let e=await o.deleteSession(d);await (null===(r=s.signOut)||void 0===r?void 0:r.call(s,{session:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}return{redirect:l,cookies:n.clean()}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},4395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8053:e=>{"use strict";e.exports=function(){return':root{--border-width:1px;--border-radius:0.5rem;--color-error:#c94b4b;--color-info:#157efb;--color-info-hover:#0f6ddb;--color-info-text:#fff}.__next-auth-theme-auto,.__next-auth-theme-light{--color-background:#ececec;--color-background-hover:hsla(0,0%,93%,.8);--color-background-card:#fff;--color-text:#000;--color-primary:#444;--color-control-border:#bbb;--color-button-active-background:#f9f9f9;--color-button-active-border:#aaa;--color-separator:#ccc}.__next-auth-theme-dark{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}@media (prefers-color-scheme:dark){.__next-auth-theme-auto{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}a.button,button{background-color:var(--provider-dark-bg,var(--color-background));color:var(--provider-dark-color,var(--color-primary))}a.button:hover,button:hover{background-color:var(--provider-dark-bg-hover,var(--color-background-hover))!important}#provider-logo{display:none!important}#provider-logo-dark{display:block!important;width:25px}}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit;margin:0;padding:0}body{background-color:var(--color-background);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:0;padding:0}h1{font-weight:400}h1,p{color:var(--color-text);margin-bottom:1.5rem;padding:0 1rem}form{margin:0;padding:0}label{font-weight:500;margin-bottom:.25rem;text-align:left}input[type],label{color:var(--color-text);display:block}input[type]{background:var(--color-background-card);border:var(--border-width) solid var(--color-control-border);border-radius:var(--border-radius);box-sizing:border-box;font-size:1rem;padding:.5rem 1rem;width:100%}input[type]:focus{box-shadow:none}p{font-size:1.1rem;line-height:2rem}a.button{line-height:1rem;text-decoration:none}a.button:link,a.button:visited{background-color:var(--color-background);color:var(--color-primary)}button span{flex-grow:1}a.button,button{align-items:center;background-color:var(--provider-bg);border-color:rgba(0,0,0,.1);border-radius:var(--border-radius);color:var(--provider-color,var(--color-primary));display:flex;font-size:1.1rem;font-weight:500;justify-content:center;min-height:62px;padding:.75rem 1rem;position:relative;transition:all .1s ease-in-out}a.button:hover,button:hover{background-color:var(--provider-bg-hover,var(--color-background-hover));cursor:pointer}a.button:active,button:active{cursor:pointer}a.button #provider-logo,button #provider-logo{display:block;width:25px}a.button #provider-logo-dark,button #provider-logo-dark{display:none}#submitButton{background-color:var(--brand-color,var(--color-info));color:var(--button-text-color,var(--color-info-text));width:100%}#submitButton:hover{background-color:var(--button-hover-bg,var(--color-info-hover))!important}a.site{color:var(--color-primary);font-size:1rem;line-height:2rem;text-decoration:none}a.site:hover{text-decoration:underline}.page{box-sizing:border-box;display:grid;height:100%;margin:0;padding:0;place-items:center;position:absolute;width:100%}.page>div{text-align:center}.error a.button{margin-top:.5rem;padding-left:2rem;padding-right:2rem}.error .message{margin-bottom:1.5rem}.signin input[type=text]{display:block;margin-left:auto;margin-right:auto}.signin hr{border:0;border-top:1px solid var(--color-separator);display:block;margin:2rem auto 1rem;overflow:visible}.signin hr:before{background:var(--color-background-card);color:#888;content:"or";padding:0 .4rem;position:relative;top:-.7rem}.signin .error{background:#f5f5f5;background:var(--color-error);border-radius:.3rem;font-weight:500}.signin .error p{color:var(--color-info-text);font-size:.9rem;line-height:1.2rem;padding:.5rem 1rem;text-align:left}.signin form,.signin>div{display:block}.signin form input[type],.signin>div input[type]{margin-bottom:.5rem}.signin form button,.signin>div button{width:100%}.signin .provider+.provider{margin-top:1rem}.logo{display:inline-block;margin:1.25rem 0;max-height:70px;max-width:150px}.card{background-color:var(--color-background-card);border-radius:2rem;padding:1.25rem 2rem}.card .header{color:var(--color-primary)}.section-header{color:var(--color-text)}@media screen and (min-width:450px){.card{margin:2rem 0;width:368px}}@media screen and (max-width:450px){.card{margin:1rem 0;width:343px}}'}},7345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var n=r(4395);Object.keys(n).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(i,e))&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))});var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(6590));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}Object.keys(o).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(i,e))&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},1609:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0});var n={encode:!0,decode:!0,getToken:!0};t.decode=h,t.encode=d,t.getToken=p;var o=r(5100),s=i(r(217)),a=r(2295),l=r(2486),c=r(266);Object.keys(c).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});let u=()=>Date.now()/1e3|0;async function d(e){let{token:t={},secret:r,maxAge:i=2592e3,salt:n=""}=e,s=await f(r,n);return await new o.EncryptJWT(t).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(u()+i).setJti((0,a.v4)()).encrypt(s)}async function h(e){let{token:t,secret:r,salt:i=""}=e;if(!t)return null;let n=await f(r,i),{payload:s}=await (0,o.jwtDecrypt)(t,n,{clockTolerance:15});return s}async function p(e){var t,r,i;let{req:n,secureCookie:o=null!==(t=null===(r=process.env.NEXTAUTH_URL)||void 0===r?void 0:r.startsWith("https://"))&&void 0!==t?t:!!process.env.VERCEL,cookieName:s=o?"__Secure-next-auth.session-token":"next-auth.session-token",raw:a,decode:c=h,logger:u=console,secret:d=process.env.NEXTAUTH_SECRET}=e;if(!n)throw Error("Must pass `req` to JWT getToken()");let p=new l.SessionStore({name:s,options:{secure:o}},{cookies:n.cookies,headers:n.headers},u).value,f=n.headers instanceof Headers?n.headers.get("authorization"):null===(i=n.headers)||void 0===i?void 0:i.authorization;if(p||(null==f?void 0:f.split(" ")[0])!=="Bearer"||(p=decodeURIComponent(f.split(" ")[1])),!p)return null;if(a)return p;try{return await c({token:p,secret:d})}catch(e){return null}}async function f(e,t){return await (0,s.default)("sha256",e,t,`NextAuth.js Generated Encryption Key${t?` (${t})`:""}`,32)}},266:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getServerSession=a,t.unstable_getServerSession=l;var i=r(7919),n=r(8017);async function o(e,t,r){var o,s,a,l,c,u,d,h;let{nextauth:p,...f}=e.query;null!==(o=r.secret)&&void 0!==o||(r.secret=null!==(s=null===(a=r.jwt)||void 0===a?void 0:a.secret)&&void 0!==s?s:process.env.NEXTAUTH_SECRET);let y=await (0,i.AuthHandler)({req:{body:e.body,query:f,cookies:e.cookies,headers:e.headers,method:e.method,action:null==p?void 0:p[0],providerId:null==p?void 0:p[1],error:null!==(l=e.query.error)&&void 0!==l?l:null==p?void 0:p[1]},options:r});if(t.status(null!==(c=y.status)&&void 0!==c?c:200),null===(u=y.cookies)||void 0===u||u.forEach(e=>(0,n.setCookie)(t,e)),null===(d=y.headers)||void 0===d||d.forEach(e=>t.setHeader(e.key,e.value)),y.redirect){if((null===(h=e.body)||void 0===h?void 0:h.json)!=="true"){t.status(302).setHeader("Location",y.redirect),t.end();return}return t.json({url:y.redirect})}return t.send(y.body)}async function s(e,t,o){var s,a,l;null!==(s=o.secret)&&void 0!==s||(o.secret=process.env.NEXTAUTH_SECRET);let{headers:c,cookies:u}=r(7167),d=null===(a=t.params)||void 0===a?void 0:a.nextauth,h=Object.fromEntries(e.nextUrl.searchParams),p=await (0,n.getBody)(e),f=await (0,i.AuthHandler)({req:{body:p,query:h,cookies:Object.fromEntries(u().getAll().map(e=>[e.name,e.value])),headers:Object.fromEntries(c()),method:e.method,action:null==d?void 0:d[0],providerId:null==d?void 0:d[1],error:null!==(l=h.error)&&void 0!==l?l:null==d?void 0:d[1]},options:o}),y=(0,n.toResponse)(f),g=y.headers.get("Location");return(null==p?void 0:p.json)==="true"&&g?(y.headers.delete("Location"),y.headers.set("Content-Type","application/json"),new Response(JSON.stringify({url:g}),{status:f.status,headers:y.headers})):y}async function a(...e){var t,o;let s,l,c;let u=0===e.length||1===e.length;if(u){c=Object.assign({},e[0],{providers:[]});let{headers:t,cookies:i}=r(7167);s={headers:Object.fromEntries(t()),cookies:Object.fromEntries(i().getAll().map(e=>[e.name,e.value]))},l={getHeader(){},setCookie(){},setHeader(){}}}else s=e[0],l=e[1],c=Object.assign({},e[2],{providers:[]});null!==(o=(t=c).secret)&&void 0!==o||(t.secret=process.env.NEXTAUTH_SECRET);let{body:d,cookies:h,status:p=200}=await (0,i.AuthHandler)({options:c,req:{action:"session",method:"GET",cookies:s.cookies,headers:s.headers}});if(null==h||h.forEach(e=>(0,n.setCookie)(l,e)),d&&"string"!=typeof d&&Object.keys(d).length){if(200===p)return u&&delete d.expires,d;throw Error(d.message)}return null}async function l(...e){return await a(...e)}t.default=function(...e){var t;return 1===e.length?async(t,r)=>null!=r&&r.params?await s(t,r,e[0]):await o(t,r,e[0]):null!==(t=e[1])&&void 0!==t&&t.params?s(...e):o(...e)}},8017:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBody=n,t.setCookie=function(e,t){var r;let n=null!==(r=e.getHeader("Set-Cookie"))&&void 0!==r?r:[];Array.isArray(n)||(n=[n]);let{name:o,value:s,options:a}=t,l=(0,i.serialize)(o,s,a);n.push(l),e.setHeader("Set-Cookie",n)},t.toResponse=function(e){var t,r,n;let o=new Headers(null===(t=e.headers)||void 0===t?void 0:t.reduce((e,{key:t,value:r})=>(e[t]=r,e),{}));null===(r=e.cookies)||void 0===r||r.forEach(e=>{let{name:t,value:r,options:n}=e,s=(0,i.serialize)(t,r,n);o.has("Set-Cookie")?o.append("Set-Cookie",s):o.set("Set-Cookie",s)});let s=e.body;"application/json"===o.get("content-type")?s=JSON.stringify(e.body):"application/x-www-form-urlencoded"===o.get("content-type")&&(s=new URLSearchParams(e.body).toString());let a=e.redirect?302:null!==(n=e.status)&&void 0!==n?n:200,l=new Response(s,{headers:o,status:a});return e.redirect&&l.headers.set("Location",e.redirect),l};var i=r(7162);async function n(e){if(!("body"in e)||!e.body||"POST"!==e.method)return;let t=e.headers.get("content-type");return null!=t&&t.includes("application/json")?await e.json():null!=t&&t.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await e.text())):void 0}},4569:(e,t)=>{"use strict";t.Z=function(e){return{id:"google",name:"Google",type:"oauth",wellKnown:"https://accounts.google.com/.well-known/openid-configuration",authorization:{params:{scope:"openid email profile"}},idToken:!0,checks:["pkce","state"],profile:e=>({id:e.sub,name:e.name,email:e.email,image:e.picture}),style:{logo:"/google.svg",bg:"#fff",text:"#000"},options:e}}},7885:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectOrigin=function(e,t){var r;return(null!==(r=process.env.VERCEL)&&void 0!==r?r:process.env.AUTH_TRUST_HOST)?`${"http"===t?"http":"https"}://${e}`:process.env.NEXTAUTH_URL}},5387:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;arguments.length>1&&arguments[1];try{return e}catch(e){return o}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(o.debug=function(){}),e.error&&(o.error=e.error),e.warn&&(o.warn=e.warn),e.debug&&(o.debug=e.debug)},i(r(2485));var n=r(2394),o={error:function(e,t){t=function e(t){var r;return t instanceof Error&&!(t instanceof n.UnknownError)?{message:t.message,stack:t.stack,name:t.name}:(null!=t&&t.error&&(t.error=e(t.error),t.message=null!==(r=t.message)&&void 0!==r?r:t.error.message),t)}(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=o},7838:(e,t)=>{"use strict";function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function e(t,...i){if(!i.length)return t;let n=i.shift();if(r(t)&&r(n))for(let i in n)r(n[i])?(t[i]||Object.assign(t,{[i]:{}}),e(t[i],n[i])):Object.assign(t,{[i]:n[i]});return e(t,...i)}},550:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let i=new URL(null!==(t=e)&&void 0!==t?t:r),n=("/"===i.pathname?r.pathname:i.pathname).replace(/\/$/,""),o=`${i.origin}${n}`;return{origin:i.origin,host:i.host,path:n,base:o,toString:()=>o}}},7167:(e,t,r)=>{"use strict";r.r(t);var i=r(9767),n={};for(let e in i)"default"!==e&&(n[e]=()=>i[e]);r.d(t,n)},1847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return n}});let i=r(2936);class n{get isEnabled(){return this._provider.isEnabled}enable(){if(!(0,i.staticGenerationBailout)("draftMode().enable()"))return this._provider.enable()}disable(){if(!(0,i.staticGenerationBailout)("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=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)},9767:(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,{headers:function(){return u},cookies:function(){return d},draftMode:function(){return h}});let i=r(9839),n=r(270),o=r(8005),s=r(4580),a=r(2934),l=r(2936),c=r(1847);function u(){if((0,l.staticGenerationBailout)("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return n.HeadersAdapter.seal(new Headers({}));let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function d(){if((0,l.staticGenerationBailout)("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return i.RequestCookiesAdapter.seal(new o.RequestCookies(new Headers({})));let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=a.actionAsyncStorage.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function h(){let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new c.DraftMode(e.draftMode)}("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)},9625:(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,{DynamicServerError:function(){return i},isDynamicServerError:function(){return n}});let r="DYNAMIC_SERVER_USAGE";class i extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function n(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("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)},2936:(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,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return c}});let i=r(9625),n=r(5869),o="NEXT_STATIC_GEN_BAILOUT";class s extends Error{constructor(...e){super(...e),this.code=o}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===o}function l(e,t){let{dynamic:r,link:i}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(i?" See more info here: "+i:"")}let c=(e,t)=>{let{dynamic:r,link:o}=void 0===t?{}:t,a=n.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new s(l(e,{link:o,dynamic:null!=r?r:"error"}));let c=l(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new i.DynamicServerError(c);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("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)},270:(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,{ReadonlyHeadersError:function(){return n},HeadersAdapter:function(){return o}});let i=r(5444);class n extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new n}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return i.ReflectAdapter.get(t,r,n);let o=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==s)return i.ReflectAdapter.get(t,s,n)},set(t,r,n,o){if("symbol"==typeof r)return i.ReflectAdapter.set(t,r,n,o);let s=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===s);return i.ReflectAdapter.set(t,a??r,n,o)},has(t,r){if("symbol"==typeof r)return i.ReflectAdapter.has(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==o&&i.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return i.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===o||i.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return n.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,i]of this.entries())e.call(t,i,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},5444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let i=Reflect.get(e,t,r);return"function"==typeof i?i.bind(e):i}static set(e,t,r,i){return Reflect.set(e,t,r,i)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},9839:(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,{ReadonlyRequestCookiesError:function(){return o},RequestCookiesAdapter:function(){return s},getModifiedCookieValues:function(){return l},appendMutableCookies:function(){return c},MutableRequestCookiesAdapter:function(){return u}});let i=r(8005),n=r(5444);class o extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new o}}class s{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return o.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}}let a=Symbol.for("next.mutated.cookies");function l(e){let t=e[a];return t&&Array.isArray(t)&&0!==t.length?t:[]}function c(e,t){let r=l(t);if(0===r.length)return!1;let n=new i.ResponseCookies(e),o=n.getAll();for(let e of r)n.set(e);for(let e of o)n.set(e);return!0}class u{static wrap(e,t){let r=new i.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let o=[],s=new Set,l=()=>{var e;let n=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();if(n&&(n.pathWasRevalidated=!0),o=r.getAll().filter(e=>s.has(e.name)),t){let e=[];for(let t of o){let r=new i.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case a:return o;case"delete":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{l()}};case"set":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{l()}};default:return n.ReflectAdapter.get(e,t,r)}}})}}},3990:(e,t,r)=>{t.OAuth=r(3899).OAuth,t.OAuthEcho=r(3899).OAuthEcho,t.OAuth2=r(5689).OAuth2},5022:e=>{"use strict";e.exports.isAnEarlyCloseHost=function(e){return e&&e.match(".*google(apis)?.com$")}},3899:(e,t,r)=>{var i=r(6113),n=r(1442),o=r(3685),s=r(5687),a=r(7310),l=r(3477),c=r(5022);t.OAuth=function(e,t,r,i,n,o,s,a,l){if(this._isEcho=!1,this._requestUrl=e,this._accessUrl=t,this._consumerKey=r,this._consumerSecret=this._encodeData(i),"RSA-SHA1"==s&&(this._privateKey=i),this._version=n,void 0===o?this._authorize_callback="oob":this._authorize_callback=o,"PLAINTEXT"!=s&&"HMAC-SHA1"!=s&&"RSA-SHA1"!=s)throw Error("Un-supported signature method: "+s);this._signatureMethod=s,this._nonceSize=a||32,this._headers=l||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._clientOptions=this._defaultClientOptions={requestTokenHttpMethod:"POST",accessTokenHttpMethod:"POST",followRedirects:!0},this._oauthParameterSeperator=","},t.OAuthEcho=function(e,t,r,i,n,o,s,a){if(this._isEcho=!0,this._realm=e,this._verifyCredentials=t,this._consumerKey=r,this._consumerSecret=this._encodeData(i),"RSA-SHA1"==o&&(this._privateKey=i),this._version=n,"PLAINTEXT"!=o&&"HMAC-SHA1"!=o&&"RSA-SHA1"!=o)throw Error("Un-supported signature method: "+o);this._signatureMethod=o,this._nonceSize=s||32,this._headers=a||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._oauthParameterSeperator=","},t.OAuthEcho.prototype=t.OAuth.prototype,t.OAuth.prototype._getTimestamp=function(){return Math.floor(new Date().getTime()/1e3)},t.OAuth.prototype._encodeData=function(e){return null==e||""==e?"":encodeURIComponent(e).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},t.OAuth.prototype._decodeData=function(e){return null!=e&&(e=e.replace(/\+/g," ")),decodeURIComponent(e)},t.OAuth.prototype._getSignature=function(e,t,r,i){var n=this._createSignatureBase(e,t,r);return this._createSignature(n,i)},t.OAuth.prototype._normalizeUrl=function(e){var t=a.parse(e,!0),r="";return t.port&&("http:"==t.protocol&&"80"!=t.port||"https:"==t.protocol&&"443"!=t.port)&&(r=":"+t.port),t.pathname&&""!=t.pathname||(t.pathname="/"),t.protocol+"//"+t.hostname+r+t.pathname},t.OAuth.prototype._isParameterNameAnOAuthParameter=function(e){var t=e.match("^oauth_");return!!t&&"oauth_"===t[0]},t.OAuth.prototype._buildAuthorizationHeaders=function(e){var t="OAuth ";this._isEcho&&(t+='realm="'+this._realm+'",');for(var r=0;r<e.length;r++)this._isParameterNameAnOAuthParameter(e[r][0])&&(t+=""+this._encodeData(e[r][0])+'="'+this._encodeData(e[r][1])+'"'+this._oauthParameterSeperator);return t.substring(0,t.length-this._oauthParameterSeperator.length)},t.OAuth.prototype._makeArrayOfArgumentsHash=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(Array.isArray(i))for(var n=0;n<i.length;n++)t[t.length]=[r,i[n]];else t[t.length]=[r,i]}return t},t.OAuth.prototype._sortRequestParams=function(e){return e.sort(function(e,t){return e[0]==t[0]?e[1]<t[1]?-1:1:e[0]<t[0]?-1:1}),e},t.OAuth.prototype._normaliseRequestParams=function(e){for(var t=this._makeArrayOfArgumentsHash(e),r=0;r<t.length;r++)t[r][0]=this._encodeData(t[r][0]),t[r][1]=this._encodeData(t[r][1]);t=this._sortRequestParams(t);for(var e="",r=0;r<t.length;r++)e+=t[r][0]+"="+t[r][1],r<t.length-1&&(e+="&");return e},t.OAuth.prototype._createSignatureBase=function(e,t,r){return t=this._encodeData(this._normalizeUrl(t)),r=this._encodeData(r),e.toUpperCase()+"&"+t+"&"+r},t.OAuth.prototype._createSignature=function(e,t){if(void 0===t)var t="";else t=this._encodeData(t);var r=this._consumerSecret+"&"+t,o="";return"PLAINTEXT"==this._signatureMethod?o=r:"RSA-SHA1"==this._signatureMethod?(r=this._privateKey||"",o=i.createSign("RSA-SHA1").update(e).sign(r,"base64")):o=i.Hmac?i.createHmac("sha1",r).update(e).digest("base64"):n.HMACSHA1(r,e),o},t.OAuth.prototype.NONCE_CHARS=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"],t.OAuth.prototype._getNonce=function(e){for(var t,r=[],i=this.NONCE_CHARS,n=i.length,o=0;o<e;o++)t=Math.floor(Math.random()*n),r[o]=i[t];return r.join("")},t.OAuth.prototype._createClient=function(e,t,r,i,n,a){return(a?s:o).request({host:t,port:e,path:i,method:r,headers:n})},t.OAuth.prototype._prepareParameters=function(e,t,r,i,n){var o={oauth_timestamp:this._getTimestamp(),oauth_nonce:this._getNonce(this._nonceSize),oauth_version:this._version,oauth_signature_method:this._signatureMethod,oauth_consumer_key:this._consumerKey};if(e&&(o.oauth_token=e),this._isEcho)u=this._getSignature("GET",this._verifyCredentials,this._normaliseRequestParams(o),t);else{if(n)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);var c=a.parse(i,!1);if(c.query){var u,d,h=l.parse(c.query);for(var s in h){var p=h[s];if("object"==typeof p)for(d in p)o[s+"["+d+"]"]=p[d];else o[s]=p}}u=this._getSignature(r,i,this._normaliseRequestParams(o),t)}var f=this._sortRequestParams(this._makeArrayOfArgumentsHash(o));return f[f.length]=["oauth_signature",u],f},t.OAuth.prototype._performSecureRequest=function(e,t,r,i,n,o,s,u){var d,h,p=this._prepareParameters(e,t,r,i,n);s||(s="application/x-www-form-urlencoded");var f=a.parse(i,!1);"http:"!=f.protocol||f.port||(f.port=80),"https:"!=f.protocol||f.port||(f.port=443);var y={},g=this._buildAuthorizationHeaders(p);for(var m in this._isEcho?y["X-Verify-Credentials-Authorization"]=g:y.Authorization=g,y.Host=f.host,this._headers)this._headers.hasOwnProperty(m)&&(y[m]=this._headers[m]);for(var m in n)this._isParameterNameAnOAuthParameter(m)&&delete n[m];("POST"==r||"PUT"==r)&&null==o&&null!=n&&(o=l.stringify(n).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")),o?Buffer.isBuffer(o)?y["Content-length"]=o.length:y["Content-length"]=Buffer.byteLength(o):y["Content-length"]=0,y["Content-Type"]=s,f.pathname&&""!=f.pathname||(f.pathname="/"),d=f.query?f.pathname+"?"+f.query:f.pathname,h="https:"==f.protocol?this._createClient(f.port,f.hostname,r,d,y,!0):this._createClient(f.port,f.hostname,r,d,y);var _=this._clientOptions;if(!u)return("POST"==r||"PUT"==r)&&null!=o&&""!=o&&h.write(o),h;var v="",w=this,b=c.isAnEarlyCloseHost(f.hostname),S=!1,k=function(i){S||(S=!0,i.statusCode>=200&&i.statusCode<=299?u(null,v,i):(301==i.statusCode||302==i.statusCode)&&_.followRedirects&&i.headers&&i.headers.location?w._performSecureRequest(e,t,r,i.headers.location,n,o,s,u):u({statusCode:i.statusCode,data:v},v,i))};h.on("response",function(e){e.setEncoding("utf8"),e.on("data",function(e){v+=e}),e.on("end",function(){k(e)}),e.on("close",function(){b&&k(e)})}),h.on("error",function(e){S||(S=!0,u(e))}),("POST"==r||"PUT"==r)&&null!=o&&""!=o&&h.write(o),h.end()},t.OAuth.prototype.setClientOptions=function(e){var t,r={},i=Object.prototype.hasOwnProperty;for(t in this._defaultClientOptions)i.call(e,t)?r[t]=e[t]:r[t]=this._defaultClientOptions[t];this._clientOptions=r},t.OAuth.prototype.getOAuthAccessToken=function(e,t,r,i){var n={};"function"==typeof r?i=r:n.oauth_verifier=r,this._performSecureRequest(e,t,this._clientOptions.accessTokenHttpMethod,this._accessUrl,n,null,null,function(e,t,r){if(e)i(e);else{var n=l.parse(t),o=n.oauth_token;delete n.oauth_token;var s=n.oauth_token_secret;delete n.oauth_token_secret,i(null,o,s,n)}})},t.OAuth.prototype.getProtectedResource=function(e,t,r,i,n){this._performSecureRequest(r,i,t,e,null,"",null,n)},t.OAuth.prototype.delete=function(e,t,r,i){return this._performSecureRequest(t,r,"DELETE",e,null,"",null,i)},t.OAuth.prototype.get=function(e,t,r,i){return this._performSecureRequest(t,r,"GET",e,null,"",null,i)},t.OAuth.prototype._putOrPost=function(e,t,r,i,n,o,s){var a=null;return"function"==typeof o&&(s=o,o=null),"string"==typeof n||Buffer.isBuffer(n)||(o="application/x-www-form-urlencoded",a=n,n=null),this._performSecureRequest(r,i,e,t,a,n,o,s)},t.OAuth.prototype.put=function(e,t,r,i,n,o){return this._putOrPost("PUT",e,t,r,i,n,o)},t.OAuth.prototype.post=function(e,t,r,i,n,o){return this._putOrPost("POST",e,t,r,i,n,o)},t.OAuth.prototype.getOAuthRequestToken=function(e,t){"function"==typeof e&&(t=e,e={}),this._authorize_callback&&(e.oauth_callback=this._authorize_callback),this._performSecureRequest(null,null,this._clientOptions.requestTokenHttpMethod,this._requestUrl,e,null,null,function(e,r,i){if(e)t(e);else{var n=l.parse(r),o=n.oauth_token,s=n.oauth_token_secret;delete n.oauth_token,delete n.oauth_token_secret,t(null,o,s,n)}})},t.OAuth.prototype.signUrl=function(e,t,r,i){if(void 0===i)var i="GET";for(var n=this._prepareParameters(t,r,i,e,{}),o=a.parse(e,!1),s="",l=0;l<n.length;l++)s+=n[l][0]+"="+this._encodeData(n[l][1])+"&";return s=s.substring(0,s.length-1),o.protocol+"//"+o.host+o.pathname+"?"+s},t.OAuth.prototype.authHeader=function(e,t,r,i){if(void 0===i)var i="GET";var n=this._prepareParameters(t,r,i,e,{});return this._buildAuthorizationHeaders(n)}},5689:(e,t,r)=>{var i=r(3477),n=(r(6113),r(5687)),o=r(3685),s=r(7310),a=r(5022);t.OAuth2=function(e,t,r,i,n,o){this._clientId=e,this._clientSecret=t,this._baseSite=r,this._authorizeUrl=i||"/oauth/authorize",this._accessTokenUrl=n||"/oauth/access_token",this._accessTokenName="access_token",this._authMethod="Bearer",this._customHeaders=o||{},this._useAuthorizationHeaderForGET=!1,this._agent=void 0},t.OAuth2.prototype.setAgent=function(e){this._agent=e},t.OAuth2.prototype.setAccessTokenName=function(e){this._accessTokenName=e},t.OAuth2.prototype.setAuthMethod=function(e){this._authMethod=e},t.OAuth2.prototype.useAuthorizationHeaderforGET=function(e){this._useAuthorizationHeaderForGET=e},t.OAuth2.prototype._getAccessTokenUrl=function(){return this._baseSite+this._accessTokenUrl},t.OAuth2.prototype.buildAuthHeader=function(e){return this._authMethod+" "+e},t.OAuth2.prototype._chooseHttpLibrary=function(e){var t=n;return"https:"!=e.protocol&&(t=o),t},t.OAuth2.prototype._request=function(e,t,r,n,o,a){var l=s.parse(t,!0);"https:"!=l.protocol||l.port||(l.port=443);var c=this._chooseHttpLibrary(l),u={};for(var d in this._customHeaders)u[d]=this._customHeaders[d];if(r)for(var d in r)u[d]=r[d];u.Host=l.host,u["User-Agent"]||(u["User-Agent"]="Node-oauth"),n?Buffer.isBuffer(n)?u["Content-Length"]=n.length:u["Content-Length"]=Buffer.byteLength(n):u["Content-length"]=0,!o||"Authorization"in u||(l.query||(l.query={}),l.query[this._accessTokenName]=o);var h=i.stringify(l.query);h&&(h="?"+h);var p={host:l.hostname,port:l.port,path:l.pathname+h,method:e,headers:u};this._executeRequest(c,p,n,a)},t.OAuth2.prototype._executeRequest=function(e,t,r,i){var n=a.isAnEarlyCloseHost(t.host),o=!1;function s(e,t){o||(o=!0,e.statusCode>=200&&e.statusCode<=299||301==e.statusCode||302==e.statusCode?i(null,t,e):i({statusCode:e.statusCode,data:t}))}var l="";this._agent&&(t.agent=this._agent);var c=e.request(t);c.on("response",function(e){e.on("data",function(e){l+=e}),e.on("close",function(t){n&&s(e,l)}),e.addListener("end",function(){s(e,l)})}),c.on("error",function(e){o=!0,i(e)}),("POST"==t.method||"PUT"==t.method)&&r&&c.write(r),c.end()},t.OAuth2.prototype.getAuthorizeUrl=function(e){var e=e||{};return e.client_id=this._clientId,this._baseSite+this._authorizeUrl+"?"+i.stringify(e)},t.OAuth2.prototype.getOAuthAccessToken=function(e,t,r){var t=t||{};t.client_id=this._clientId,t.client_secret=this._clientSecret;var n="refresh_token"===t.grant_type?"refresh_token":"code";t[n]=e;var o=i.stringify(t);this._request("POST",this._getAccessTokenUrl(),{"Content-Type":"application/x-www-form-urlencoded"},o,null,function(e,t,n){if(e)r(e);else{try{o=JSON.parse(t)}catch(e){o=i.parse(t)}var o,s=o.access_token,a=o.refresh_token;delete o.refresh_token,r(null,s,a,o)}})},t.OAuth2.prototype.getProtectedResource=function(e,t,r){this._request("GET",e,{},"",t,r)},t.OAuth2.prototype.get=function(e,t,r){if(this._useAuthorizationHeaderForGET){var i={Authorization:this.buildAuthHeader(t)};t=null}else i={};this._request("GET",e,i,"",t,r)}},1442:(e,t)=>{function r(e){for(var t,r,i="",n=-1;++n<e.length;)t=e.charCodeAt(n),r=n+1<e.length?e.charCodeAt(n+1):0,55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t=65536+((1023&t)<<10)+(1023&r),n++),t<=127?i+=String.fromCharCode(t):t<=2047?i+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?i+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(i+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return i}function i(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(var r=0;r<8*e.length;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<24-r%32;return t}function n(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var r=Array(80),i=1732584193,n=-271733879,a=-1732584194,l=271733878,c=-1009589776,u=0;u<e.length;u+=16){for(var d=i,h=n,p=a,f=l,y=c,g=0;g<80;g++){g<16?r[g]=e[u+g]:r[g]=s(r[g-3]^r[g-8]^r[g-14]^r[g-16],1);var m,_,v,w,b,S=o(o(s(i,5),(m=g,_=n,v=a,w=l,m<20?_&v|~_&w:m<40?_^v^w:m<60?_&v|_&w|v&w:_^v^w)),o(o(c,r[g]),(b=g)<20?1518500249:b<40?1859775393:b<60?-1894007588:-899497514));c=l,l=a,a=s(n,30),n=i,i=S}i=o(i,d),n=o(n,h),a=o(a,p),l=o(l,f),c=o(c,y)}return[i,n,a,l,c]}function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function s(e,t){return e<<t|e>>>32-t}t.HMACSHA1=function(e,t){return function(e){for(var t="",r=e.length,i=0;i<r;i+=3)for(var n=e.charCodeAt(i)<<16|(i+1<r?e.charCodeAt(i+1)<<8:0)|(i+2<r?e.charCodeAt(i+2):0),o=0;o<4;o++)8*i+6*o>8*e.length?t+="=":t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>>6*(3-o)&63);return t}(function(e,t){var r=i(e);r.length>16&&(r=n(r,8*e.length));for(var o=Array(16),s=Array(16),a=0;a<16;a++)o[a]=909522486^r[a],s[a]=1549556828^r[a];var l=n(o.concat(i(t)),512+8*t.length);return function(e){for(var t="",r=0;r<32*e.length;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}(n(s.concat(l),672))}(r(e),r(t)))}},4481:(e,t,r)=>{"use strict";let i;let{strict:n}=r(9491),{createHash:o}=r(6113),{format:s}=r(3849),a=r(4986);if(Buffer.isEncoding("base64url"))i=e=>e.toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");i=t=>e(t.toString("base64"))}function l(e,t,r){let n=(function(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return o("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return o("sha384");case"HS512":case"RS512":case"PS512":case"ES512":return o("sha512");case"EdDSA":switch(t){case"Ed25519":return o("sha512");case"Ed448":if(!a)throw TypeError("Ed448 *_hash calculation is not supported in your Node.js runtime version");return o("shake256",{outputLength:114});default:throw TypeError("unrecognized or invalid EdDSA curve provided")}default:throw TypeError("unrecognized or invalid JWS algorithm provided")}})(t,r).update(e).digest();return i(n.slice(0,n.length/2))}e.exports={validate:function(e,t,r,i,o){let a,c;if("string"!=typeof e.claim||!e.claim)throw TypeError("names.claim must be a non-empty string");if("string"!=typeof e.source||!e.source)throw TypeError("names.source must be a non-empty string");n("string"==typeof t&&t,`${e.claim} must be a non-empty string`),n("string"==typeof r&&r,`${e.source} must be a non-empty string`);try{a=l(r,i,o)}catch(t){c=s("%s could not be validated (%s)",e.claim,t.message)}c=c||s("%s mismatch, expected %s, got: %s",e.claim,a,t),n.equal(a,t,c)},generate:l}},4986:(e,t,r)=>{"use strict";let i=r(6113),[n,o]=process.version.substring(1).split(".").map(e=>parseInt(e,10)),s=(n>12||12===n&&o>=8)&&i.getHashes().includes("shake256");e.exports=s},8576:(e,t,r)=>{"use strict";let i;let{inspect:n}=r(3849),o=r(3685),s=r(6113),{strict:a}=r(9491),l=r(3477),c=r(7310),{URL:u,URLSearchParams:d}=r(7310),h=r(5100),p=r(4481),f=r(596),y=r(1773),g=r(5825),m=r(498),_=r(6208),{assertSigningAlgValuesSupport:v,assertIssuerConfiguration:w}=r(905),b=r(6849),S=r(8363),k=r(9527),E=r(2939),{OPError:A,RPError:x}=r(9628),O=r(5976),{random:T}=r(1914),P=r(1065),{CLOCK_TOLERANCE:j}=r(1491),{keystores:C}=r(6207),I=r(2874),$=r(7004),{authenticatedPost:J,resolveResponseType:M,resolveRedirectUri:N}=r(7684),{queryKeyStore:R}=r(4332),W=r(1642),[K,U]=process.version.slice(1).split(".").map(e=>parseInt(e,10)),H=K>=17||16===K&&U>=9,D=Symbol(),q=Symbol(),L=Symbol();function B(e){return b(e,"access_token","code","error_description","error_uri","error","expires_in","id_token","iss","response","session_state","state","token_type")}function Q(e,t="Bearer"){return`${t} ${e}`}function z(e){let t=c.parse(e);return t.search?l.parse(t.search.substring(1)):{}}function F(e,t,r){if(void 0===e[r])throw new x({message:`missing required JWT property ${r}`,jwt:t})}function V(e){let t={client_id:this.client_id,scope:"openid",response_type:M.call(this),redirect_uri:N.call(this),...e};return Object.entries(t).forEach(([e,r])=>{null==r?delete t[e]:"claims"===e&&"object"==typeof r?t[e]=JSON.stringify(r):"resource"===e&&Array.isArray(r)?t[e]=r:"string"!=typeof r&&(t[e]=String(r))}),t}function G(e){if(!S(e)||!Array.isArray(e.keys)||e.keys.some(e=>!S(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");return I.fromJWKS(e,{onlyPrivate:!0})}class X{#e;#t;#r;#i;constructor(e,t,r={},i,n){if(this.#e=new Map,this.#t=e,this.#r=t,"string"!=typeof r.client_id||!r.client_id)throw TypeError("client_id is required");let o={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic",...this.fapi()?{grant_types:["authorization_code","implicit"],id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",response_types:["code id_token"],tls_client_certificate_bound_access_tokens:!0,token_endpoint_auth_method:void 0}:void 0,...r};if(this.fapi())switch(o.token_endpoint_auth_method){case"self_signed_tls_client_auth":case"tls_client_auth":break;case"private_key_jwt":if(!i)throw TypeError("jwks is required");break;case void 0:throw TypeError("token_endpoint_auth_method is required");default:throw TypeError("invalid or unsupported token_endpoint_auth_method")}if(function(e,t,r){if(t.token_endpoint_auth_method||function(e,t){try{let r=e.issuer.token_endpoint_auth_methods_supported;!r.includes(t.token_endpoint_auth_method)&&r.includes("client_secret_post")&&(t.token_endpoint_auth_method="client_secret_post")}catch(e){}}(e,r),t.redirect_uri){if(t.redirect_uris)throw TypeError("provide a redirect_uri or redirect_uris, not both");r.redirect_uris=[t.redirect_uri],delete r.redirect_uri}if(t.response_type){if(t.response_types)throw TypeError("provide a response_type or response_types, not both");r.response_types=[t.response_type],delete r.response_type}}(this,r,o),v("token",this.issuer,o),["introspection","revocation"].forEach(e=>{(function(e,t,r){if(!t[`${e}_endpoint`])return;let i=r.token_endpoint_auth_method,n=r.token_endpoint_auth_signing_alg,o=`${e}_endpoint_auth_method`,s=`${e}_endpoint_auth_signing_alg`;void 0===r[o]&&void 0===r[s]&&(void 0!==i&&(r[o]=i),void 0!==n&&(r[s]=n))})(e,this.issuer,o),v(e,this.issuer,o)}),Object.entries(o).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),void 0!==i){let e=G.call(this,i);C.set(this,e)}null!=n&&n.additionalAuthorizedParties&&(this.#i=$(n.additionalAuthorizedParties)),this[j]=0}authorizationUrl(e={}){if(!S(e))throw TypeError("params must be a plain object");w(this.issuer,"authorization_endpoint");let t=new u(this.issuer.authorization_endpoint);for(let[r,i]of Object.entries(V.call(this,e)))if(Array.isArray(i))for(let e of(t.searchParams.delete(r),i))t.searchParams.append(r,e);else t.searchParams.set(r,i);return t.href.replace(/\+/g,"%20")}authorizationPost(e={}){if(!S(e))throw TypeError("params must be a plain object");let t=V.call(this,e),r=Object.keys(t).map(e=>`<input type="hidden" name="${e}" value="${t[e]}"/>`).join("\n");return`<!DOCTYPE html> +<head> +<title>Requesting Authorization</title> +</head> +<body onload="javascript:document.forms[0].submit()"> +<form method="post" action="${this.issuer.authorization_endpoint}"> + ${r} +</form> +</body> +</html>`}endSessionUrl(e={}){let t;w(this.issuer,"end_session_endpoint");let{0:r,length:i}=this.post_logout_redirect_uris||[],{post_logout_redirect_uri:n=1===i?r:void 0}=e;if({id_token_hint:t,...e}=e,t instanceof E){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let o=c.parse(this.issuer.end_session_endpoint),s=m(z(this.issuer.end_session_endpoint),e,{post_logout_redirect_uri:n,client_id:this.client_id},{id_token_hint:t});return Object.entries(s).forEach(([e,t])=>{null==t&&delete s[e]}),o.search=null,o.query=s,c.format(o)}callbackParams(e){let t=e instanceof o.IncomingMessage||e&&e.method&&e.url;if("string"!=typeof e&&!t)throw TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike");if(!t)return B(z(e));switch(e.method){case"GET":return B(z(e.url));case"POST":if(void 0===e.body)throw TypeError("incoming message body missing, include a body parser prior to this method call");switch(typeof e.body){case"object":case"string":if(Buffer.isBuffer(e.body))return B(l.parse(e.body.toString("utf-8")));if("string"==typeof e.body)return B(l.parse(e.body));return B(e.body);default:throw TypeError("invalid IncomingMessage body object")}default:throw TypeError("invalid IncomingMessage method")}}async callback(e,t,r={},{exchangeBody:i,clientAssertionPayload:n,DPoP:o}={}){let s=B(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(s.response);s=await this.validateJARM(e)}}else throw new x({message:"expected a JARM response",checks:r,params:s});if(this.default_max_age&&!r.max_age&&(r.max_age=this.default_max_age),s.state&&!r.state)throw TypeError("checks.state argument is missing");if(!s.state&&r.state)throw new x({message:"state missing from the response",checks:r,params:s});if(r.state!==s.state)throw new x({printf:["state mismatch, expected %s, got: %s",r.state,s.state],checks:r,params:s});if("iss"in s){if(w(this.issuer,"issuer"),s.iss!==this.issuer.issuer)throw new x({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,s.iss],params:s})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in s)&&!("response"in t))throw new x({message:"iss missing from the response",params:s});if(s.error)throw new A(s);let a={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(r.response_type){for(let e of r.response_type.split(" "))if("none"===e){if(s.code||s.id_token||s.access_token)throw new x({message:'unexpected params encountered for "none" response',checks:r,params:s})}else for(let t of a[e])if(!s[t])throw new x({message:`${t} missing from response`,checks:r,params:s})}if(s.id_token){let e=new E(s);if(await this.decryptIdToken(e),await this.validateIdToken(e,r.nonce,"authorization",r.max_age,r.state),!s.code)return e}if(s.code){let t=await this.grant({...i,grant_type:"authorization_code",code:s.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:n,DPoP:o});return await this.decryptIdToken(t),await this.validateIdToken(t,r.nonce,"token",r.max_age),s.session_state&&(t.session_state=s.session_state),t}return new E(s)}async oauthCallback(e,t,r={},{exchangeBody:i,clientAssertionPayload:n,DPoP:o}={}){let s=B(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(s.response);s=await this.validateJARM(e)}}else throw new x({message:"expected a JARM response",checks:r,params:s});if(s.state&&!r.state)throw TypeError("checks.state argument is missing");if(!s.state&&r.state)throw new x({message:"state missing from the response",checks:r,params:s});if(r.state!==s.state)throw new x({printf:["state mismatch, expected %s, got: %s",r.state,s.state],checks:r,params:s});if("iss"in s){if(w(this.issuer,"issuer"),s.iss!==this.issuer.issuer)throw new x({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,s.iss],params:s})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in s)&&!("response"in t))throw new x({message:"iss missing from the response",params:s});if(s.error)throw new A(s);if("string"==typeof s.id_token&&s.id_token.length)throw new x({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:s});delete s.id_token;let a={code:["code"],token:["access_token","token_type"]};if(r.response_type)for(let e of r.response_type.split(" ")){if("none"===e&&(s.code||s.id_token||s.access_token))throw new x({message:'unexpected params encountered for "none" response',checks:r,params:s});if(a[e]){for(let t of a[e])if(!s[t])throw new x({message:`${t} missing from response`,checks:r,params:s})}}if(s.code){let t=await this.grant({...i,grant_type:"authorization_code",code:s.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:n,DPoP:o});if("string"==typeof t.id_token&&t.id_token.length)throw new x({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:s});return delete t.id_token,t}return new E(s)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg)return e;let t=e;if(t instanceof E){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let r=this.id_token_encrypted_response_alg,i=this.id_token_encrypted_response_enc,n=await this.decryptJWE(t,r,i);return e instanceof E?(e.id_token=n,e):n}async validateJWTUserinfo(e){let t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg)return e;let t=this.authorization_encrypted_response_alg,r=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg)return e;let t=this.userinfo_encrypted_response_alg,r=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWE(e,t,r="A128CBC-HS256"){let i;let n=JSON.parse(g.decode(e.split(".")[0]));if(n.alg!==t)throw new x({printf:["unexpected JWE alg received, expected %s, got: %s",t,n.alg],jwt:e});if(n.enc!==r)throw new x({printf:["unexpected JWE enc received, expected %s, got: %s",r,n.enc],jwt:e});let o=e=>new TextDecoder().decode(e.plaintext);if(t.match(/^(?:RSA|ECDH)/)){let t=await C.get(this),r=h.decodeProtectedHeader(e);for(let n of t.all({...r,use:"enc"}))if(i=await h.compactDecrypt(e,await n.keyObject(r.alg)).then(o,()=>{}))break}else i=await h.compactDecrypt(e,this.secretForAlg("dir"===t?r:t)).then(o,()=>{});if(!i)throw new x({message:"failed to decrypt JWE",jwt:e});return i}async validateIdToken(e,t,r,i,n){let o=e,s=this.id_token_signed_response_alg;if(o instanceof E){if(!o.id_token)throw TypeError("id_token not present in TokenSet");o=o.id_token}o=String(o);let a=O(),{protected:l,payload:c,key:u}=await this.validateJWT(o,s);if("number"==typeof i||i!==L&&this.require_auth_time){if(!c.auth_time)throw new x({message:"missing required JWT property auth_time",jwt:o});if("number"!=typeof c.auth_time)throw new x({message:"JWT auth_time claim must be a JSON numeric value",jwt:o})}if("number"==typeof i&&c.auth_time+i<a-this[j])throw new x({printf:["too much time has elapsed since the last End-User authentication, max_age %i, auth_time: %i, now %i",i,c.auth_time,a-this[j]],now:a,tolerance:this[j],auth_time:c.auth_time,jwt:o});if(t!==q&&(c.nonce||void 0!==t)&&c.nonce!==t)throw new x({printf:["nonce mismatch, expected %s, got: %s",t,c.nonce],jwt:o});if("authorization"===r){if(!c.at_hash&&e.access_token)throw new x({message:"missing required property at_hash",jwt:o});if(!c.c_hash&&e.code)throw new x({message:"missing required property c_hash",jwt:o});if(this.fapi()&&!c.s_hash&&(e.state||n))throw new x({message:"missing required property s_hash",jwt:o});if(c.s_hash){if(!n)throw TypeError('cannot verify s_hash, "checks.state" property not provided');try{p.validate({claim:"s_hash",source:"state"},c.s_hash,n,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new x({message:e.message,jwt:o})}}}if(this.fapi()&&c.iat<a-3600)throw new x({printf:["JWT issued too far in the past, now %i, iat %i",a,c.iat],now:a,tolerance:this[j],iat:c.iat,jwt:o});if(e.access_token&&void 0!==c.at_hash)try{p.validate({claim:"at_hash",source:"access_token"},c.at_hash,e.access_token,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new x({message:e.message,jwt:o})}if(e.code&&void 0!==c.c_hash)try{p.validate({claim:"c_hash",source:"code"},c.c_hash,e.code,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new x({message:e.message,jwt:o})}return e}async validateJWT(e,t,r=["iss","sub","aud","exp","iat"]){let i,n,o;let s="https://self-issued.me"===this.issuer.issuer,l=O();try{({header:i,payload:n}=y(e,{complete:!0}))}catch(t){throw new x({printf:["failed to decode JWT (%s: %s)",t.name,t.message],jwt:e})}if(i.alg!==t)throw new x({printf:["unexpected JWT alg received, expected %s, got: %s",t,i.alg],jwt:e});if(s&&(r=[...r,"sub_jwk"]),r.forEach(F.bind(void 0,n,e)),void 0!==n.iss){let t=this.issuer.issuer;if(this.#r&&(t=this.issuer.issuer.replace("{tenantid}",n.tid)),n.iss!==t)throw new x({printf:["unexpected iss value, expected %s, got: %s",t,n.iss],jwt:e})}if(void 0!==n.iat&&"number"!=typeof n.iat)throw new x({message:"JWT iat claim must be a JSON numeric value",jwt:e});if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new x({message:"JWT nbf claim must be a JSON numeric value",jwt:e});if(n.nbf>l+this[j])throw new x({printf:["JWT not active yet, now %i, nbf %i",l+this[j],n.nbf],now:l,tolerance:this[j],nbf:n.nbf,jwt:e})}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new x({message:"JWT exp claim must be a JSON numeric value",jwt:e});if(l-this[j]>=n.exp)throw new x({printf:["JWT expired, now %i, exp %i",l-this[j],n.exp],now:l,tolerance:this[j],exp:n.exp,jwt:e})}if(void 0!==n.aud){if(Array.isArray(n.aud)){if(n.aud.length>1&&!n.azp)throw new x({message:"missing required JWT property azp",jwt:e});if(!n.aud.includes(this.client_id))throw new x({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,n.aud],jwt:e})}else if(n.aud!==this.client_id)throw new x({printf:["aud mismatch, expected %s, got: %s",this.client_id,n.aud],jwt:e})}if(void 0!==n.azp){let t=this.#i;if(!(t="string"==typeof t?[this.client_id,t]:Array.isArray(t)?[this.client_id,...t]:[this.client_id]).includes(n.azp))throw new x({printf:["azp mismatch, got: %s",n.azp],jwt:e})}if(s){try{a(S(n.sub_jwk));let e=await h.importJWK(n.sub_jwk,i.alg);a.equal(e.type,"public"),o=[{keyObject:()=>e}]}catch(t){throw new x({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(await h.calculateJwkThumbprint(n.sub_jwk)!==n.sub)throw new x({message:"failed to match the subject with sub_jwk",jwt:e})}else i.alg.startsWith("HS")?o=[this.secretForAlg(i.alg)]:"none"!==i.alg&&(o=await R.call(this.issuer,{...i,use:"sig"}));if(!o&&"none"===i.alg)return{protected:i,payload:n};for(let t of o){let r=await h.compactVerify(e,t instanceof Uint8Array?t:await t.keyObject(i.alg)).catch(()=>{});if(r)return{payload:n,protected:r.protectedHeader,key:t}}throw new x({message:"failed to validate JWT signature",jwt:e})}async refresh(e,{exchangeBody:t,clientAssertionPayload:r,DPoP:i}={}){let n=e;if(n instanceof E){if(!n.refresh_token)throw TypeError("refresh_token not present in TokenSet");n=n.refresh_token}let o=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(n)},{clientAssertionPayload:r,DPoP:i});if(o.id_token&&(await this.decryptIdToken(o),await this.validateIdToken(o,q,"token",L),e instanceof E&&e.id_token)){let t=e.claims().sub,r=o.claims().sub;if(r!==t)throw new x({printf:["sub mismatch, expected %s, got: %s",t,r],jwt:o.id_token})}return o}async requestResource(e,t,{method:r,headers:i,body:n,DPoP:o,tokenType:s=o?"DPoP":t instanceof E?t.token_type:"Bearer"}={},a){if(t instanceof E){if(!t.access_token)throw TypeError("access_token not present in TokenSet");t=t.access_token}if(t){if("string"!=typeof t)throw TypeError("invalid access token provided")}else throw TypeError("no access token provided");let l={headers:{Authorization:Q(t,s),...i},body:n},c=!!this.tls_client_certificate_bound_access_tokens,u=await P.call(this,{...l,responseType:"buffer",method:r,url:e},{accessToken:t,mTLS:c,DPoP:o}),d=u.headers["www-authenticate"];return a!==D&&d&&d.toLowerCase().startsWith("dpop ")&&"use_dpop_nonce"===_(d).error?this.requestResource(e,t,{method:r,headers:i,body:n,DPoP:o,tokenType:s}):u}async userinfo(e,{method:t="GET",via:r="header",tokenType:i,params:n,DPoP:o}={}){let s;w(this.issuer,"userinfo_endpoint");let l={tokenType:i,method:String(t).toUpperCase(),DPoP:o};if("GET"!==l.method&&"POST"!==l.method)throw TypeError("#userinfo() method can only be POST or a GET");if("body"===r&&"POST"!==l.method)throw TypeError("can only send body on POST");let c=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);c?l.headers={Accept:"application/jwt"}:l.headers={Accept:"application/json"},this.tls_client_certificate_bound_access_tokens&&this.issuer.mtls_endpoint_aliases&&(s=this.issuer.mtls_endpoint_aliases.userinfo_endpoint),s=new u(s||this.issuer.userinfo_endpoint),"body"===r&&(l.headers.Authorization=void 0,l.headers["Content-Type"]="application/x-www-form-urlencoded",l.body=new d,l.body.append("access_token",e instanceof E?e.access_token:e)),n&&("GET"===l.method?Object.entries(n).forEach(([e,t])=>{s.searchParams.append(e,t)}):l.body?Object.entries(n).forEach(([e,t])=>{l.body.append(e,t)}):(l.body=new d,l.headers["Content-Type"]="application/x-www-form-urlencoded",Object.entries(n).forEach(([e,t])=>{l.body.append(e,t)}))),l.body&&(l.body=l.body.toString());let h=await this.requestResource(s,e,l),p=k(h,{bearer:!0});if(c){if(!/^application\/jwt/.test(h.headers["content-type"]))throw new x({message:"expected application/jwt response from the userinfo_endpoint",response:h});let e=h.body.toString(),t=await this.decryptJWTUserinfo(e);if(this.userinfo_signed_response_alg)({payload:p}=await this.validateJWTUserinfo(t));else try{p=JSON.parse(t),a(S(p))}catch(e){throw new x({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else try{p=JSON.parse(h.body)}catch(e){throw Object.defineProperty(e,"response",{value:h}),e}if(e instanceof E&&e.id_token){let t=e.claims().sub;if(p.sub!==t)throw new x({printf:["userinfo sub mismatch, expected %s, got: %s",t,p.sub],body:p,jwt:e.id_token})}return p}encryptionSecret(e){let t=e<=256?"sha256":e<=384?"sha384":e<=512&&"sha512";if(!t)throw Error("unsupported symmetric encryption key derivation");return s.createHash(t).update(this.client_secret).digest().slice(0,e/8)}secretForAlg(e){if(!this.client_secret)throw TypeError("client_secret is required");return/^A(\d{3})(?:GCM)?KW$/.test(e)?this.encryptionSecret(parseInt(RegExp.$1,10)):/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)?this.encryptionSecret(parseInt(RegExp.$2||RegExp.$1,10)):new TextEncoder().encode(this.client_secret)}async grant(e,{clientAssertionPayload:t,DPoP:r}={},i){let n;w(this.issuer,"token_endpoint");let o=await J.call(this,"token",{form:e,responseType:"json"},{clientAssertionPayload:t,DPoP:r});try{n=k(o)}catch(n){if(i!==D&&n instanceof A&&"use_dpop_nonce"===n.error)return this.grant(e,{clientAssertionPayload:t,DPoP:r},D);throw n}return new E(n)}async deviceAuthorization(e={},{exchangeBody:t,clientAssertionPayload:r,DPoP:i}={}){w(this.issuer,"device_authorization_endpoint"),w(this.issuer,"token_endpoint");let n=V.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e}),o=k(await J.call(this,"device_authorization",{responseType:"json",form:n},{clientAssertionPayload:r,endpointAuthMethod:"token"}));return new W({client:this,exchangeBody:t,clientAssertionPayload:r,response:o,maxAge:e.max_age,DPoP:i})}async revoke(e,t,{revokeBody:r,clientAssertionPayload:i}={}){if(w(this.issuer,"revocation_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let n={...r,token:e};t&&(n.token_type_hint=t),k(await J.call(this,"revocation",{form:n},{clientAssertionPayload:i}),{body:!1})}async introspect(e,t,{introspectBody:r,clientAssertionPayload:i}={}){if(w(this.issuer,"introspection_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let n={...r,token:e};return t&&(n.token_type_hint=t),k(await J.call(this,"introspection",{form:n,responseType:"json"},{clientAssertionPayload:i}))}static async register(e,t={}){let{initialAccessToken:r,jwks:i,...n}=t;if(w(this.issuer,"registration_endpoint"),void 0!==i&&!(e.jwks||e.jwks_uri)){let t=await G.call(this,i);e.jwks=t.toJWKS()}return new this(k(await P.call(this,{headers:{Accept:"application/json",...r?{Authorization:Q(r)}:void 0},responseType:"json",json:e,url:this.issuer.registration_endpoint,method:"POST"}),{statusCode:201,bearer:!0}),i,n)}get metadata(){return $(Object.fromEntries(this.#e.entries()))}static async fromUri(e,t,r,i){return new this(k(await P.call(this,{method:"GET",url:e,responseType:"json",headers:{Authorization:Q(t),Accept:"application/json"}}),{bearer:!0}),r,i)}async requestObject(e={},{sign:t=this.request_object_signing_alg||"none",encrypt:{alg:r=this.request_object_encryption_alg,enc:i=this.request_object_encryption_enc||"A128CBC-HS256"}={}}={}){let n,o;if(!S(e))throw TypeError("requestObject must be a plain object");let s=O(),a={alg:t,typ:"oauth-authz-req+jwt"},l=JSON.stringify(m({},e,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:T(),iat:s,exp:s+300,...this.fapi()?{nbf:s}:void 0}));if("none"===t)n=[g.encode(JSON.stringify(a)),g.encode(l),""].join(".");else{let e=t.startsWith("HS");if(e)o=this.secretForAlg(t);else{let e=await C.get(this);if(!e)throw TypeError(`no keystore present for client, cannot sign using alg ${t}`);if(!(o=e.get({alg:t,use:"sig"})))throw TypeError(`no key to sign with found for alg ${t}`)}n=await new h.CompactSign(new TextEncoder().encode(l)).setProtectedHeader({...a,kid:e?void 0:o.jwk.kid}).sign(e?o:await o.keyObject(t))}if(!r)return n;let c={alg:r,enc:i,cty:"oauth-authz-req+jwt"};return c.alg.match(/^(RSA|ECDH)/)?[o]=await R.call(this.issuer,{alg:c.alg,use:"enc"},{allowMulti:!0}):o=this.secretForAlg("dir"===c.alg?c.enc:c.alg),new h.CompactEncrypt(new TextEncoder().encode(n)).setProtectedHeader({...c,kid:o instanceof Uint8Array?void 0:o.jwk.kid}).encrypt(o instanceof Uint8Array?o:await o.keyObject(c.alg))}async pushedAuthorizationRequest(e={},{clientAssertionPayload:t}={}){w(this.issuer,"pushed_authorization_request_endpoint");let r={..."request"in e?e:V.call(this,e),client_id:this.client_id},i=await J.call(this,"pushed_authorization_request",{responseType:"json",form:r},{clientAssertionPayload:t,endpointAuthMethod:"token"}),n=k(i,{statusCode:201});if(!("expires_in"in n))throw new x({message:"expected expires_in in Pushed Authorization Successful Response",response:i});if("number"!=typeof n.expires_in)throw new x({message:"invalid expires_in value in Pushed Authorization Successful Response",response:i});if(!("request_uri"in n))throw new x({message:"expected request_uri in Pushed Authorization Successful Response",response:i});if("string"!=typeof n.request_uri)throw new x({message:"invalid request_uri value in Pushed Authorization Successful Response",response:i});return n}get issuer(){return this.#t}[n.custom](){return`${this.constructor.name} ${n(this.metadata,{depth:1/0,colors:process.stdout.isTTY,compact:!1,sorted:!0})}`}fapi(){return"FAPI1Client"===this.constructor.name}async validateJARM(e){let t=this.authorization_signed_response_alg,{payload:r}=await this.validateJWT(e,t,["iss","exp","aud"]);return B(r)}async dpopProof(e,t,r){let n;if(!S(e))throw TypeError("payload must be a plain object");if(f(t))n=t;else if("CryptoKey"===t[Symbol.toStringTag])n=t;else if("node:crypto"===h.cryptoRuntime)n=s.createPrivateKey(t);else throw TypeError("unrecognized crypto runtime");if("private"!==n.type)throw TypeError('"DPoP" option must be a private key');let o=i.call(this,n,t);if(!o)throw TypeError("could not determine DPoP JWS Algorithm");return new h.SignJWT({ath:r?g.encode(s.createHash("sha256").update(r).digest()):void 0,...e}).setProtectedHeader({alg:o,typ:"dpop+jwt",jwk:await ee(n,t)}).setIssuedAt().setJti(T()).sign(n)}}function Y(e){switch(e.algorithm.name){case"Ed25519":case"Ed448":return"EdDSA";case"ECDSA":switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512"}break;case"RSASSA-PKCS1-v1_5":return`RS${e.algorithm.hash.name.slice(4)}`;case"RSA-PSS":return`PS${e.algorithm.hash.name.slice(4)}`;default:throw TypeError("unsupported DPoP private key")}}if("node:crypto"===h.cryptoRuntime){i=function(i,s){if("CryptoKey"===s[Symbol.toStringTag])return Y(i);switch(i.asymmetricKeyType){case"ed25519":case"ed448":return"EdDSA";case"ec":return function(e,i){switch("object"==typeof i&&"object"==typeof i.key&&i.key.crv){case"P-256":return"ES256";case"secp256k1":return"ES256K";case"P-384":return"ES384";case"P-512":return"ES512"}let s=e.export({format:"der",type:"pkcs8"}),a=s[1]<128?17:18,l=s[a],c=s.slice(a+1,a+1+l);if(c.equals(t))return"ES256";if(c.equals(r))return"ES384";if(c.equals(n))return"ES512";if(c.equals(o))return"ES256K";throw TypeError("unsupported DPoP private key curve")}(i,s);case"rsa":case H&&"rsa-pss":return function(t,r,i){if("object"==typeof r&&"jwk"===r.format&&r.key&&r.key.alg)return r.key.alg;if(Array.isArray(i)){let r=i.filter(RegExp.prototype.test.bind(e));return"rsa-pss"===t.asymmetricKeyType&&(r=r.filter(e=>e.startsWith("PS"))),["PS256","PS384","PS512","RS256","RS384","RS384"].find(e=>r.includes(e))}return"PS256"}(i,s,this.issuer.dpop_signing_alg_values_supported);default:throw TypeError("unsupported DPoP private key")}};let e=/^(?:RS|PS)(?:256|384|512)$/,t=Buffer.from([42,134,72,206,61,3,1,7]),r=Buffer.from([43,129,4,0,34]),n=Buffer.from([43,129,4,0,35]),o=Buffer.from([43,129,4,0,10])}else i=Y;let Z=new WeakMap;async function ee(e,t){if("node:crypto"===h.cryptoRuntime&&"object"==typeof t&&"object"==typeof t.key&&"jwk"===t.format)return b(t.key,"kty","crv","x","y","e","n");if(Z.has(t))return Z.get(t);let r=b(await h.exportJWK(e),"kty","crv","x","y","e","n");return(f(t)||"WebCryptoAPI"===h.cryptoRuntime)&&Z.set(t,r),r}e.exports=(e,t=!1)=>class extends X{constructor(...r){super(e,t,...r)}static get issuer(){return e}},e.exports.BaseClient=X},1642:(e,t,r)=>{"use strict";let{inspect:i}=r(3849),{RPError:n,OPError:o}=r(9628),s=r(5976);class a{#n;#o;#s;#a;#l;#c;#u;#d;#h;constructor({client:e,exchangeBody:t,clientAssertionPayload:r,response:i,maxAge:o,DPoP:a}){if(["verification_uri","user_code","device_code"].forEach(e=>{if("string"!=typeof i[e]||!i[e])throw new n(`expected ${e} string to be returned by Device Authorization Response, got %j`,i[e])}),!Number.isSafeInteger(i.expires_in))throw new n("expected expires_in number to be returned by Device Authorization Response, got %j",i.expires_in);this.#c=s()+i.expires_in,this.#o=e,this.#a=a,this.#d=o,this.#l=t,this.#s=r,this.#h=i,this.#u=1e3*i.interval||5e3}abort(){this.#n=!0}async poll({signal:e}={}){let t;if(e&&e.aborted||this.#n)throw new n("polling aborted");if(this.expired())throw new n("the device code %j has expired and the device authorization session has concluded",this.device_code);await new Promise(e=>setTimeout(e,this.#u));try{t=await this.#o.grant({...this.#l,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},{clientAssertionPayload:this.#s,DPoP:this.#a})}catch(t){switch(t instanceof o&&t.error){case"slow_down":this.#u+=5e3;case"authorization_pending":return this.poll({signal:e});default:throw t}}return"id_token"in t&&(await this.#o.decryptIdToken(t),await this.#o.validateIdToken(t,void 0,"token",this.#d)),t}get device_code(){return this.#h.device_code}get user_code(){return this.#h.user_code}get verification_uri(){return this.#h.verification_uri}get verification_uri_complete(){return this.#h.verification_uri_complete}get expires_in(){return Math.max.apply(null,[this.#c-s(),0])}expired(){return 0===this.expires_in}[i.custom](){return`${this.constructor.name} ${i(this.#h,{depth:1/0,colors:process.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=a},9628:(e,t,r)=>{"use strict";let{format:i}=r(3849);class n extends Error{constructor({error_description:e,error:t,error_uri:r,session_state:i,state:n,scope:o},s){super(e?`${t} (${e})`:t),Object.assign(this,{error:t},e&&{error_description:e},r&&{error_uri:r},n&&{state:n},o&&{scope:o},i&&{session_state:i}),s&&Object.defineProperty(this,"response",{value:s}),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}class o extends Error{constructor(...e){if("string"==typeof e[0])super(i(...e));else{let{message:t,printf:r,response:n,...o}=e[0];r?super(i(...r)):super(t),Object.assign(this,o),n&&Object.defineProperty(this,"response",{value:n})}this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}e.exports={OPError:n,RPError:o}},905:e=>{"use strict";e.exports={assertSigningAlgValuesSupport:function(e,t,r){if(!t[`${e}_endpoint`])return;let i=`${e}_endpoint_auth_method`,n=`${e}_endpoint_auth_signing_alg`,o=`${e}_endpoint_auth_signing_alg_values_supported`;if(r[i]&&r[i].endsWith("_jwt")&&!r[n]&&!t[o])throw TypeError(`${o} must be configured on the issuer if ${n} is not defined on a client`)},assertIssuerConfiguration:function(e,t){if(!e[t])throw TypeError(`${t} must be configured on the issuer`)}}},5825:e=>{"use strict";let t;if(Buffer.isEncoding("base64url"))t=(e,t="utf8")=>Buffer.from(e,t).toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");t=(t,r="utf8")=>e(Buffer.from(t,r).toString("base64"))}e.exports.decode=e=>Buffer.from(e,"base64"),e.exports.encode=t},7684:(e,t,r)=>{"use strict";let i=r(5100),{RPError:n}=r(9628),{assertIssuerConfiguration:o}=r(905),{random:s}=r(1914),a=r(5976),l=r(1065),{keystores:c}=r(6207),u=r(3173),d=e=>encodeURIComponent(e).replace(/%20/g,"+");async function h(e,t){let r=this[`${e}_endpoint_auth_signing_alg`];if(r||o(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`),"client_secret_jwt"===this[`${e}_endpoint_auth_method`]){if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>/^HS(?:256|384|512)/.test(e))}if(!r)throw new n(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);return new i.CompactSign(Buffer.from(JSON.stringify(t))).setProtectedHeader({alg:r}).sign(this.secretForAlg(r))}let s=await c.get(this);if(!s)throw TypeError("no client jwks provided for signing a client assertion with");if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>s.get({alg:e,use:"sig"}))}if(!r)throw new n(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);let a=s.get({alg:r,use:"sig"});if(!a)throw new n(`no key found in client jwks to sign a client assertion with using alg ${r}`);return new i.CompactSign(Buffer.from(JSON.stringify(t))).setProtectedHeader({alg:r,kid:a.jwk&&a.jwk.kid}).sign(await a.keyObject(r))}async function p(e,{clientAssertionPayload:t}={}){switch(this[`${e}_endpoint_auth_method`]){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{form:{client_id:this.client_id}};case"client_secret_post":if("string"!=typeof this.client_secret)throw TypeError("client_secret_post client authentication method requires a client_secret");return{form:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{let r=a(),i=[...new Set([this.issuer.issuer,this.issuer.token_endpoint].filter(Boolean))],n=await h.call(this,e,{iat:r,exp:r+60,jti:s(),iss:this.client_id,sub:this.client_id,aud:i,...t});return{form:{client_id:this.client_id,client_assertion:n,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}case"client_secret_basic":{if("string"!=typeof this.client_secret)throw TypeError("client_secret_basic client authentication method requires a client_secret");let e=`${d(this.client_id)}:${d(this.client_secret)}`,t=Buffer.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}default:throw TypeError(`missing, or unsupported, ${e}_endpoint_auth_method`)}}async function f(e,t,{clientAssertionPayload:r,endpointAuthMethod:i=e,DPoP:n}={}){let o;let s=u(t,await p.call(this,i,{clientAssertionPayload:r})),a=this[`${i}_endpoint_auth_method`].includes("tls_client_auth")||"token"===e&&this.tls_client_certificate_bound_access_tokens;if(a&&this.issuer.mtls_endpoint_aliases&&(o=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]),o=o||this.issuer[`${e}_endpoint`],"form"in s)for(let[e,t]of Object.entries(s.form))void 0===t&&delete s.form[e];return l.call(this,{...s,method:"POST",url:o,headers:{..."revocation"!==e?{Accept:"application/json"}:void 0,...s.headers}},{mTLS:a,DPoP:n})}e.exports={resolveResponseType:function(){let{length:e,0:t}=this.response_types;if(1===e)return t},resolveRedirectUri:function(){let{length:e,0:t}=this.redirect_uris||[];if(1===e)return t},authFor:p,authenticatedPost:f}},1491:e=>{"use strict";let t=Symbol(),r=Symbol();e.exports={CLOCK_TOLERANCE:r,HTTP_OPTIONS:t}},1773:(e,t,r)=>{"use strict";let i=r(5825);e.exports=e=>{if("string"!=typeof e||!e)throw TypeError("JWT must be a string");let{0:t,1:r,2:n,length:o}=e.split(".");if(5===o)throw TypeError("encrypted JWTs cannot be decoded");if(3!==o)throw Error("JWTs must have three components");try{return{header:JSON.parse(i.decode(t)),payload:JSON.parse(i.decode(r)),signature:n}}catch(e){throw Error("JWT is malformed")}}},7004:e=>{"use strict";e.exports=globalThis.structuredClone||(e=>JSON.parse(JSON.stringify(e)))},498:(e,t,r)=>{"use strict";let i=r(8363);function n(e,t,...r){for(let o of r)if(i(o))for(let[r,s]of Object.entries(o))"__proto__"!==r&&"constructor"!==r&&(void 0===t[r]&&void 0!==s&&(t[r]=s),e&&i(t[r])&&i(s)&&n(!0,t[r],s));return t}e.exports=n.bind(void 0,!1),e.exports.deep=n.bind(void 0,!0)},1914:(e,t,r)=>{"use strict";let{createHash:i,randomBytes:n}=r(6113),o=r(5825),s=(e=32)=>o.encode(n(e));e.exports={random:s,state:s,nonce:s,codeVerifier:s,codeChallenge:e=>o.encode(i("sha256").update(e).digest())}},596:(e,t,r)=>{"use strict";let i=r(3849),n=r(6113);e.exports=i.types.isKeyObject||(e=>e&&e instanceof n.KeyObject)},8363:e=>{"use strict";e.exports=e=>!!e&&e.constructor===Object},4332:(e,t,r)=>{"use strict";let i=r(9394),n=r(8852),{RPError:o}=r(9628),{assertIssuerConfiguration:s}=r(905),a=r(2874),{keystores:l}=r(6207),c=r(9527),u=r(1065),d=new WeakMap,h=new WeakMap,p=e=>(h.has(e)||h.set(e,new n({max:100})),h.get(e));async function f(e=!1){s(this,"jwks_uri");let t=l.get(this),r=p(this);return e||!t?(d.has(this)||(r.reset(),d.set(this,(async()=>{let e=c(await u.call(this,{method:"GET",responseType:"json",url:this.jwks_uri,headers:{Accept:"application/json, application/jwk-set+json"}}).finally(()=>{d.delete(this)})),t=a.fromJWKS(e,{onlyPublic:!0});return r.set("throttle",!0,6e4),l.set(this,t),t})())),d.get(this)):t}async function y({kid:e,kty:t,alg:r,use:n},{allowMulti:s=!1}={}){let a=p(this),l={kid:e,kty:t,alg:r,use:n},c=i(l,{algorithm:"sha256",ignoreUnknown:!0,unorderedArrays:!0,unorderedSets:!0}),u=a.get(c)||a.get("throttle"),d=await f.call(this,!u),h=d.all(l);if(delete l.use,0===h.length)throw new o({printf:["no valid key found in issuer's jwks_uri for key parameters %j",l],jwks:d});if(!s&&h.length>1&&!e)throw new o({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",l],jwks:d});return a.set(c,!0),h}e.exports.queryKeyStore=y,e.exports.keystore=f},2874:(e,t,r)=>{"use strict";let i=r(5100),n=r(7004),o=r(8363),s=Symbol(),a=(e,{alg:t,use:r})=>{let i=0;return t&&e.alg&&i++,r&&e.use&&i++,i};e.exports=class{#p;constructor(e,t){if(e!==s)throw Error("invalid constructor call");this.#p=t}toJWKS(){return{keys:this.map(({jwk:{d:e,p:t,q:r,dp:i,dq:n,qi:o,...s}})=>s)}}all({alg:e,kid:t,use:r}={}){if(!r||!e)throw Error();let i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:return}}(e),n={alg:e,use:r};return this.filter(n=>{let o=!0;return void 0!==i&&n.jwk.kty!==i&&(o=!1),o&&void 0!==t&&n.jwk.kid!==t&&(o=!1),o&&void 0!==r&&void 0!==n.jwk.use&&n.jwk.use!==r&&(o=!1),o&&n.jwk.alg&&n.jwk.alg!==e?o=!1:n.algorithms.has(e)||(o=!1),o}).sort((e,t)=>a(t,n)-a(e,n))}get(...e){return this.all(...e)[0]}static async fromJWKS(e,{onlyPublic:t=!1,onlyPrivate:r=!1}={}){if(!o(e)||!Array.isArray(e.keys)||e.keys.some(e=>!o(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");let a=[];for(let o of e.keys){let{kty:e,kid:s,crv:l}=o=n(o),{alg:c,use:u}=o;if("string"==typeof e&&e&&(void 0===u||"sig"===u||"enc"===u)&&("string"==typeof c||void 0===c)&&("string"==typeof s||void 0===s)){if("EC"===e&&"sig"===u)switch(l){case"P-256":c="ES256";break;case"P-384":c="ES384";break;case"P-521":c="ES512"}if("secp256k1"===l&&(u="sig",c="ES256K"),"OKP"===e)switch(l){case"Ed25519":case"Ed448":u="sig",c="EdDSA";break;case"X25519":case"X448":u="enc"}if(c&&!u)switch(!0){case c.startsWith("ECDH"):case c.startsWith("RSA"):u="enc"}if(r&&("oct"===o.kty||!o.d))throw Error("jwks must only contain private keys");t&&(o.d||o.k)||a.push({jwk:{...o,alg:c,use:u},async keyObject(e){if(this[e])return this[e];let t=await i.importJWK(this.jwk,e);return this[e]=t,t},get algorithms(){return Object.defineProperty(this,"algorithms",{value:function(e,t,r,n){if(t)return new Set([t]);switch(r){case"EC":{let t=[];if(("enc"===e||void 0===e)&&(t=t.concat(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"])),"sig"===e||void 0===e)switch(n){case"P-256":case"P-384":t=t.concat([`ES${n.slice(-3)}`.replace("21","12")]);break;case"P-521":t=t.concat(["ES512"]);break;case"secp256k1":"node:crypto"===i.cryptoRuntime&&(t=t.concat(["ES256K"]))}return new Set(t)}case"OKP":return new Set(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"]);case"RSA":{let t=[];return("enc"===e||void 0===e)&&(t=t.concat(["RSA-OAEP","RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512"]),"node:crypto"===i.cryptoRuntime&&(t=t.concat(["RSA1_5"]))),("sig"===e||void 0===e)&&(t=t.concat(["PS256","PS384","PS512","RS256","RS384","RS512"])),new Set(t)}default:throw Error("unreachable")}}(this.jwk.use,this.jwk.alg,this.jwk.kty,this.jwk.crv),enumerable:!0,configurable:!1}),this.algorithms}})}}return new this(s,a)}filter(...e){return this.#p.filter(...e)}find(...e){return this.#p.find(...e)}every(...e){return this.#p.every(...e)}some(...e){return this.#p.some(...e)}map(...e){return this.#p.map(...e)}forEach(...e){return this.#p.forEach(...e)}reduce(...e){return this.#p.reduce(...e)}sort(...e){return this.#p.sort(...e)}*[Symbol.iterator](){for(let e of this.#p)yield e}}},3173:(e,t,r)=>{"use strict";let i=r(8363);e.exports=function e(t,...r){for(let n of r)if(i(n))for(let[r,o]of Object.entries(n))"__proto__"!==r&&"constructor"!==r&&(i(t[r])&&i(o)?t[r]=e(t[r],o):void 0!==o&&(t[r]=o));return t}},6849:e=>{"use strict";e.exports=function(e,...t){let r={};for(let i of t)void 0!==e[i]&&(r[i]=e[i]);return r}},9527:(e,t,r)=>{"use strict";let{STATUS_CODES:i}=r(3685),{format:n}=r(3849),{OPError:o}=r(9628),s=r(6208),a=e=>{let t=s(e.headers["www-authenticate"]);if(t.error)throw new o(t,e)},l=e=>{let t=!1;try{let r;r="object"!=typeof e.body||Buffer.isBuffer(e.body)?JSON.parse(e.body):e.body,(t="string"==typeof r.error&&r.error.length)&&Object.defineProperty(e,"body",{value:r,configurable:!0})}catch(e){}return t};e.exports=function(e,{statusCode:t=200,body:r=!0,bearer:s=!1}={}){if(e.statusCode!==t){if(s&&a(e),l(e))throw new o(e.body,e);throw new o({error:n("expected %i %s, got: %i %s",t,i[t],e.statusCode,i[e.statusCode])},e)}if(r&&!e.body)throw new o({error:n("expected %i %s with body but no body was returned",t,i[t])},e);return e.body}},1065:(e,t,r)=>{"use strict";let i;let n=r(9491),o=r(3477),s=r(3685),a=r(5687),{once:l}=r(2361),{URL:c}=r(7310),u=r(8852),d=r(7605),{RPError:h}=r(9628),p=r(6849),{deep:f}=r(498),{HTTP_OPTIONS:y}=r(1491),g=/^[\x21\x23-\x5B\x5D-\x7E]+$/,m=["agent","ca","cert","crl","headers","key","lookup","passphrase","pfx","timeout"],_=(e,t)=>{i=f({},e.length?p(t,...e):t,i)};function v(e,t,r){r&&(e.removeHeader("content-type"),e.setHeader("content-type",r)),t&&(e.removeHeader("content-length"),e.setHeader("content-length",Buffer.byteLength(t)),e.write(t)),e.end()}_([],{headers:{"User-Agent":`${d.name}/${d.version} (${d.homepage})`,"Accept-Encoding":"identity"},timeout:3500});let w=new u({max:100});e.exports=async function(e,{accessToken:t,mTLS:r=!1,DPoP:u}={}){let d,_,b,S,k,E,A;try{d=new c(e.url),delete e.url,n(/^(https?:)$/.test(d.protocol))}catch(e){throw TypeError("only valid absolute URLs can be requested")}let x=this[y],O=e,T=`${d.origin}${d.pathname}`;if(u&&"dpopProof"in this&&(O.headers=O.headers||{},O.headers.DPoP=await this.dpopProof({htu:`${d.origin}${d.pathname}`,htm:e.method,nonce:w.get(T)},u,t)),x&&(_=p(x.call(this,d,f({},O,i)),...m)),O=f({},_,O,i),r&&!O.pfx&&!(O.key&&O.cert))throw TypeError("mutual-TLS certificate and key not set");if(O.searchParams)for(let[e,t]of Object.entries(O.searchParams))d.searchParams.delete(e),d.searchParams.set(e,t);for(let[e,t]of({form:S,responseType:b,json:k,body:E,...O}=O,Object.entries(O.headers||{})))void 0===t&&delete O.headers[e];let P=("https:"===d.protocol?a.request:s.request)(d.href,O);return(async()=>{if(k?v(P,JSON.stringify(k),"application/json"):S?v(P,o.stringify(S),"application/x-www-form-urlencoded"):E?v(P,E):v(P),[A]=await Promise.race([l(P,"response"),l(P,"timeout")]),!A)throw P.destroy(),new h(`outgoing request timed out after ${O.timeout}ms`);let e=[];for await(let t of A)e.push(t);if(e.length)switch(b){case"json":Object.defineProperty(A,"body",{get(){let t=Buffer.concat(e);try{t=JSON.parse(t)}catch(e){throw Object.defineProperty(e,"response",{value:A}),e}finally{Object.defineProperty(A,"body",{value:t,configurable:!0})}return t},configurable:!0});break;case void 0:case"buffer":Object.defineProperty(A,"body",{get(){let t=Buffer.concat(e);return Object.defineProperty(A,"body",{value:t,configurable:!0}),t},configurable:!0});break;default:throw TypeError("unsupported responseType request option")}return A})().catch(e=>{throw A&&Object.defineProperty(e,"response",{value:A}),e}).finally(()=>{let e=A&&A.headers["dpop-nonce"];e&&g.test(e)&&w.set(T,e)})},e.exports.setDefaults=_.bind(void 0,m)},5976:e=>{"use strict";e.exports=()=>Math.floor(Date.now()/1e3)},6207:e=>{"use strict";e.exports.keystores=new WeakMap},3201:e=>{"use strict";let t=/^\d+$/;e.exports=function(e){if("string"!=typeof e)throw TypeError("input must be a string");return(!function(e){if(e.includes("://"))return!0;let r=e.replace(/(\/|\?)/g,"#").split("#")[0];if(r.includes(":")){let e=r.indexOf(":"),i=r.slice(e+1);if(!t.test(i))return!0}return!1}(e)?!function(e){if(!e.includes("@"))return!1;let t=e.split("@"),r=t[t.length-1];return!(r.includes(":")||r.includes("/")||r.includes("?"))}(e)?`https://${e}`:`acct:${e}`:e).split("#")[0]}},6208:e=>{"use strict";let t=/(\w+)=("[^"]*")/g;e.exports=e=>{let r={};try{for(;null!==t.exec(e);)RegExp.$1&&RegExp.$2&&(r[RegExp.$1]=RegExp.$2.slice(1,-1))}catch(e){}return r}},5684:(e,t,r)=>{"use strict";let i=r(7860),{OPError:n,RPError:o}=r(9628),s=r(6326),a=r(2939),{CLOCK_TOLERANCE:l,HTTP_OPTIONS:c}=r(1491),u=r(1914),{setDefaults:d}=r(1065);e.exports={Issuer:i,Strategy:s,TokenSet:a,errors:{OPError:n,RPError:o},custom:{setHttpOptionsDefaults:d,http_options:c,clock_tolerance:l},generators:u}},7860:(e,t,r)=>{"use strict";let{inspect:i}=r(3849),n=r(7310),{RPError:o}=r(9628),s=r(8576),a=r(2024),l=r(9527),c=r(3201),u=r(1065),d=r(7004),{keystore:h}=r(4332),p=["https://login.microsoftonline.com/common/.well-known/openid-configuration","https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"],f=Symbol(),y={claim_types_supported:["normal"],claims_parameter_supported:!1,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:!1,request_uri_parameter_supported:!0,require_request_uri_registration:!1,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};class g{#e;constructor(e={}){let t=e[f];delete e[f],["introspection","revocation"].forEach(t=>{e[`${t}_endpoint`]&&void 0===e[`${t}_endpoint_auth_methods_supported`]&&void 0===e[`${t}_endpoint_auth_signing_alg_values_supported`]&&(e.token_endpoint_auth_methods_supported&&(e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported),e.token_endpoint_auth_signing_alg_values_supported&&(e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported))}),this.#e=new Map,Object.entries(e).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),a.set(this.issuer,this);let r=s(this,t);Object.defineProperties(this,{Client:{value:r,enumerable:!0},FAPI1Client:{value:class extends r{},enumerable:!0}})}get metadata(){return d(Object.fromEntries(this.#e.entries()))}static async webfinger(e){let t=c(e),{host:r}=n.parse(t),i=`https://${r}/.well-known/webfinger`,s=l(await u.call(this,{method:"GET",url:i,responseType:"json",searchParams:{resource:t,rel:"http://openid.net/specs/connect/1.0/issuer"},headers:{Accept:"application/json"}})),d=Array.isArray(s.links)&&s.links.find(e=>"object"==typeof e&&"http://openid.net/specs/connect/1.0/issuer"===e.rel&&e.href);if(!d)throw new o({message:"no issuer found in webfinger response",body:s});if("string"!=typeof d.href||!d.href.startsWith("https://"))throw new o({printf:["invalid issuer location %s",d.href],body:s});let h=d.href;if(a.has(h))return a.get(h);let p=await this.discover(h);if(p.issuer!==h)throw a.del(p.issuer),new o("discovered issuer mismatch, expected %s, got: %s",h,p.issuer);return p}static async discover(e){let t=function(e){let t=n.parse(e);if(t.pathname.includes("/.well-known/"))return e;{let e;return e=t.pathname.endsWith("/")?`${t.pathname}.well-known/openid-configuration`:`${t.pathname}/.well-known/openid-configuration`,n.format({...t,pathname:e})}}(e),r=l(await u.call(this,{method:"GET",responseType:"json",url:t,headers:{Accept:"application/json"}}));return new g({...y,...r,[f]:!!p.find(e=>t.startsWith(e))})}async reloadJwksUri(){await h.call(this,!0)}[i.custom](){return`${this.constructor.name} ${i(this.metadata,{depth:1/0,colors:process.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=g},2024:(e,t,r)=>{"use strict";let i=r(8852);e.exports=new i({max:100})},6326:(e,t,r)=>{"use strict";let i=r(7310),{format:n}=r(3849),o=r(7004),{RPError:s,OPError:a}=r(9628),{BaseClient:l}=r(8576),{random:c,codeChallenge:u}=r(1914),d=r(6849),{resolveResponseType:h,resolveRedirectUri:p}=r(7684);function f(e,t,r={}){e?this.error(e):t?this.success(t,r):this.fail(r)}function y({client:e,params:t={},passReqToCallback:r=!1,sessionKey:n,usePKCE:s=!0,extras:a={}}={},c){if(!(e instanceof l))throw TypeError("client must be an instance of openid-client Client");if("function"!=typeof c)throw TypeError("verify callback must be a function");if(!e.issuer||!e.issuer.issuer)throw TypeError("client must have an issuer with an identifier");if(this._client=e,this._issuer=e.issuer,this._verify=c,this._passReqToCallback=r,this._usePKCE=s,this._key=n||`oidc:${i.parse(this._issuer.issuer).hostname}`,this._params=o(t),delete this._params.state,delete this._params.nonce,this._extras=o(a),this._params.response_type||(this._params.response_type=h.call(e)),this._params.redirect_uri||(this._params.redirect_uri=p.call(e)),this._params.scope||(this._params.scope="openid"),!0===this._usePKCE){let e=!!Array.isArray(this._issuer.code_challenge_methods_supported)&&this._issuer.code_challenge_methods_supported;if(e&&e.includes("S256"))this._usePKCE="S256";else if(e&&e.includes("plain"))this._usePKCE="plain";else if(e)throw TypeError("neither code_challenge_method supported by the client is supported by the issuer");else this._usePKCE="S256"}else if("string"==typeof this._usePKCE&&!["plain","S256"].includes(this._usePKCE))throw TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`);this.name=i.parse(e.issuer.issuer).hostname}y.prototype.authenticate=function(e,t){(async()=>{let r=this._client;if(!e.session)throw TypeError("authentication requires session support");let i=r.callbackParams(e),o=this._key,{0:a,length:l}=Object.keys(i);if(0===l||1===l&&"iss"===a){let i={state:c(),...this._params,...t};if(!i.nonce&&i.response_type.includes("id_token")&&(i.nonce=c()),e.session[o]=d(i,"nonce","state","max_age","response_type"),this._usePKCE&&i.response_type.includes("code")){let t=c();switch(e.session[o].code_verifier=t,this._usePKCE){case"S256":i.code_challenge=u(t),i.code_challenge_method="S256";break;case"plain":i.code_challenge=t}}this.redirect(r.authorizationUrl(i));return}let h=e.session[o];if(0===Object.keys(h||{}).length)throw Error(n('did not find expected authorization request details in session, req.session["%s"] is %j',o,h));let{state:p,nonce:y,max_age:g,code_verifier:m,response_type:_}=h;try{delete e.session[o]}catch(e){}let v={redirect_uri:this._params.redirect_uri,...t},w=await r.callback(v.redirect_uri,i,{state:p,nonce:y,max_age:g,code_verifier:m,response_type:_},this._extras),b=this._passReqToCallback,S=this._verify.length>(b?3:2)&&r.issuer.userinfo_endpoint,k=[w,f.bind(this)];if(S){if(!w.access_token)throw new s({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:w});let e=await r.userinfo(w);k.splice(1,0,e)}b&&k.unshift(e),this._verify(...k)})().catch(e=>{e instanceof a&&"server_error"!==e.error&&!e.error.startsWith("invalid")||e instanceof s?this.fail(e):this.error(e)})},e.exports=y},2939:(e,t,r)=>{"use strict";let i=r(5825),n=r(5976);class o{constructor(e){Object.assign(this,e);let{constructor:t,...r}=Object.getOwnPropertyDescriptors(this.constructor.prototype);Object.defineProperties(this,r)}set expires_in(e){this.expires_at=n()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-n(),0])}expired(){return 0===this.expires_in}claims(){if(!this.id_token)throw TypeError("id_token not present in TokenSet");return JSON.parse(i.decode(this.id_token.split(".")[1]))}}e.exports=o},9394:(e,t,r)=>{"use strict";var i=r(6113);function n(e,t){return t=a(e,t),function(e,t){if(void 0===(r="passthrough"!==t.algorithm?i.createHash(t.algorithm):new u).write&&(r.write=r.update,r.end=r.update),c(t,r).dispatch(e),r.update||r.end(""),r.digest)return r.digest("buffer"===t.encoding?void 0:t.encoding);var r,n=r.read();return"buffer"===t.encoding?n:n.toString(t.encoding)}(e,t)}(t=e.exports=n).sha1=function(e){return n(e)},t.keys=function(e){return n(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},t.MD5=function(e){return n(e,{algorithm:"md5",encoding:"hex"})},t.keysMD5=function(e){return n(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var o=i.getHashes?i.getHashes().slice():["sha1","md5"];o.push("passthrough");var s=["buffer","hex","binary","base64"];function a(e,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var i=0;i<o.length;++i)o[i].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=o[i]);if(-1===o.indexOf(r.algorithm))throw Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+o.join(", "));if(-1===s.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw Error('Encoding "'+r.encoding+'" not supported. supported values: '+s.join(", "));return r}function l(e){return"function"==typeof e&&null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function c(e,t,r){r=r||[];var i=function(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")};return{dispatch:function(t){e.replacer&&(t=e.replacer(t));var r=typeof t;return null===t&&(r="null"),this["_"+r](t)},_object:function(t){var n=Object.prototype.toString.call(t),o=/\[object (.*)\]/i.exec(n);o=(o=o?o[1]:"unknown:["+n+"]").toLowerCase();var s=null;if((s=r.indexOf(t))>=0)return this.dispatch("[CIRCULAR:"+s+"]");if(r.push(t),"undefined"!=typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t))return i("buffer:"),i(t);if("object"!==o&&"function"!==o&&"asyncfunction"!==o){if(this["_"+o])this["_"+o](t);else if(e.ignoreUnknown)return i("["+o+"]");else throw Error('Unknown object type "'+o+'"')}else{var a=Object.keys(t);e.unorderedObjects&&(a=a.sort()),!1===e.respectType||l(t)||a.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(a=a.filter(function(t){return!e.excludeKeys(t)})),i("object:"+a.length+":");var c=this;return a.forEach(function(r){c.dispatch(r),i(":"),e.excludeValues||c.dispatch(t[r]),i(",")})}},_array:function(t,n){n=void 0!==n?n:!1!==e.unorderedArrays;var o=this;if(i("array:"+t.length+":"),!n||t.length<=1)return t.forEach(function(e){return o.dispatch(e)});var s=[],a=t.map(function(t){var i=new u,n=r.slice();return c(e,i,n).dispatch(t),s=s.concat(n.slice(r.length)),i.read().toString()});return r=r.concat(s),a.sort(),this._array(a,!1)},_date:function(e){return i("date:"+e.toJSON())},_symbol:function(e){return i("symbol:"+e.toString())},_error:function(e){return i("error:"+e.toString())},_boolean:function(e){return i("bool:"+e.toString())},_string:function(e){i("string:"+e.length+":"),i(e.toString())},_function:function(t){i("fn:"),l(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return i("number:"+e.toString())},_xml:function(e){return i("xml:"+e.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(e){return i("regex:"+e.toString())},_uint8array:function(e){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return i("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return i("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return i("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return i("url:"+e.toString(),"utf8")},_map:function(t){i("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){i("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return i("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return i("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return i("domwindow")},_bigint:function(e){return i("bigint:"+e.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function u(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}t.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),c(t=a(e,t),r).dispatch(e)}},5524:function(e,t,r){(function(e,t){var r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,n=/[\s\n\\/='"\0<>]/,o=/^xlink:?./,s=/["&<]/;function a(e){if(!1===s.test(e+=""))return e;for(var t=0,r=0,i="",n="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 60:n="<";break;default:continue}r!==t&&(i+=e.slice(t,r)),i+=n,t=r+1}return r!==t&&(i+=e.slice(t,r)),i}var l=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||" "))},c=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},u={},d=/([A-Z])/g;function h(e){var t="";for(var i in e){var n=e[i];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==i[0]?i:u[i]||(u[i]=i.replace(d,"-$1").toLowerCase()),t="number"==typeof n&&!1===r.test(i)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function p(e,t){return Array.isArray(t)?t.reduce(p,e):null!=t&&!1!==t&&e.push(t),e}function f(){this.__d=!0}function y(e,t){return{__v:e,context:t,props:e.props,setState:f,forceUpdate:f,__d:!0,__h:[]}}function g(e,t){var r=e.contextType,i=r&&t[r.__c];return null!=r?i?i.props.value:r.__:t}var m=[],_={shallow:!0};b.render=b;var v=function(e,t){return b(e,t,_)},w=[];function b(e,r,s){r=r||{};var u=t.options.__s;t.options.__s=!0;var d,f=t.h(t.Fragment,null);return f.__k=[e],d=s&&(s.pretty||s.voidElements||s.sortAttributes||s.shallow||s.allAttributes||s.xml||s.attributeHook)?function e(r,s,u,d,f,_){if(null==r||"boolean"==typeof r)return"";if("object"!=typeof r)return"function"==typeof r?"":a(r);var v=u.pretty,w=v&&"string"==typeof v?v:" ";if(Array.isArray(r)){for(var b="",S=0;S<r.length;S++)v&&S>0&&(b+="\n"),b+=e(r[S],s,u,d,f,_);return b}if(void 0!==r.constructor)return"";var k,E=r.type,A=r.props,x=!1;if("function"==typeof E){if(x=!0,!u.shallow||!d&&!1!==u.renderRootComponent){if(E===t.Fragment){var O=[];return p(O,r.props.children),e(O,s,u,!1!==u.shallowHighOrder,f,_)}var T,P=r.__c=y(r,s);t.options.__b&&t.options.__b(r);var j=t.options.__r;if(E.prototype&&"function"==typeof E.prototype.render){var C=g(E,s);(P=r.__c=new E(A,C)).__v=r,P._dirty=P.__d=!0,P.props=A,null==P.state&&(P.state={}),null==P._nextState&&null==P.__s&&(P._nextState=P.__s=P.state),P.context=C,E.getDerivedStateFromProps?P.state=Object.assign({},P.state,E.getDerivedStateFromProps(P.props,P.state)):P.componentWillMount&&(P.componentWillMount(),P.state=P._nextState!==P.state?P._nextState:P.__s!==P.state?P.__s:P.state),j&&j(r),T=P.render(P.props,P.state,P.context)}else for(var I=g(E,s),$=0;P.__d&&$++<25;)P.__d=!1,j&&j(r),T=E.call(r.__c,A,I);return P.getChildContext&&(s=Object.assign({},s,P.getChildContext())),t.options.diffed&&t.options.diffed(r),e(T,s,u,!1!==u.shallowHighOrder,f,_)}E=(k=E).displayName||k!==Function&&k.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,i=m.length;i--;)if(m[i]===e){r=i;break}r<0&&(r=m.push(e)-1),t="UnnamedComponent"+r}return t}(k)}var J,M,N="<"+E;if(A){var R=Object.keys(A);u&&!0===u.sortAttributes&&R.sort();for(var W=0;W<R.length;W++){var K=R[W],U=A[K];if("children"!==K){if(!n.test(K)&&(u&&u.allAttributes||"key"!==K&&"ref"!==K&&"__self"!==K&&"__source"!==K)){if("defaultValue"===K)K="value";else if("defaultChecked"===K)K="checked";else if("defaultSelected"===K)K="selected";else if("className"===K){if(void 0!==A.class)continue;K="class"}else f&&o.test(K)&&(K=K.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===K){if(A.for)continue;K="for"}"style"===K&&U&&"object"==typeof U&&(U=h(U)),"a"===K[0]&&"r"===K[1]&&"boolean"==typeof U&&(U=String(U));var H=u.attributeHook&&u.attributeHook(K,U,s,u,x);if(H||""===H)N+=H;else if("dangerouslySetInnerHTML"===K)M=U&&U.__html;else if("textarea"===E&&"value"===K)J=U;else if((U||0===U||""===U)&&"function"!=typeof U){if(!(!0!==U&&""!==U||(U=K,u&&u.xml))){N=N+" "+K;continue}if("value"===K){if("select"===E){_=U;continue}"option"===E&&_==U&&void 0===A.selected&&(N+=" selected")}N=N+" "+K+'="'+a(U)+'"'}}}else J=U}}if(v){var D=N.replace(/\n\s*/," ");D===N||~D.indexOf("\n")?v&&~N.indexOf("\n")&&(N+="\n"):N=D}if(N+=">",n.test(E))throw Error(E+" is not a valid HTML tag name in "+N);var q,L=i.test(E)||u.voidElements&&u.voidElements.test(E),B=[];if(M)v&&c(M)&&(M="\n"+w+l(M,w)),N+=M;else if(null!=J&&p(q=[],J).length){for(var Q=v&&~N.indexOf("\n"),z=!1,F=0;F<q.length;F++){var V=q[F];if(null!=V&&!1!==V){var G=e(V,s,u,!0,"svg"===E||"foreignObject"!==E&&f,_);if(v&&!Q&&c(G)&&(Q=!0),G){if(v){var X=G.length>0&&"<"!=G[0];z&&X?B[B.length-1]+=G:B.push(G),z=X}else B.push(G)}}}if(v&&Q)for(var Y=B.length;Y--;)B[Y]="\n"+w+l(B[Y],w)}if(B.length||M)N+=B.join("");else if(u&&u.xml)return N.substring(0,N.length-1)+" />";return!L||q||M?(v&&~N.indexOf("\n")&&(N+="\n"),N=N+"</"+E+">"):N=N.replace(/>$/," />"),N}(e,r,s):function e(r,s,l,c,u){if(null==r||!0===r||!1===r||""===r)return"";if("object"!=typeof r)return"function"==typeof r?"":a(r);if(k(r)){var d="";u.__k=r;for(var p=0;p<r.length;p++)d+=e(r[p],s,l,c,u),r[p]=S(r[p]);return d}if(void 0!==r.constructor)return"";r.__=u,t.options.__b&&t.options.__b(r);var f=r.type,m=r.props;if("function"==typeof f){if(f===t.Fragment)x=m.children;else{x=f.prototype&&"function"==typeof f.prototype.render?(_=s,w=g(v=r.type,_),b=new v(r.props,w),r.__c=b,b.__v=r,b.__d=!0,b.props=r.props,null==b.state&&(b.state={}),null==b.__s&&(b.__s=b.state),b.context=w,v.getDerivedStateFromProps?b.state=E({},b.state,v.getDerivedStateFromProps(b.props,b.state)):b.componentWillMount&&(b.componentWillMount(),b.state=b.__s!==b.state?b.__s:b.state),(A=t.options.__r)&&A(r),b.render(b.props,b.state,b.context)):function(e,r){var i,n=y(e,r),o=g(e.type,r);e.__c=n;for(var s=t.options.__r,a=0;n.__d&&a++<25;)n.__d=!1,s&&s(e),i=e.type.call(n,e.props,o);return i}(r,s);var _,v,w,b,A,x,O=r.__c;O.getChildContext&&(s=E({},s,O.getChildContext()))}var T=e(x=null!=x&&x.type===t.Fragment&&null==x.key?x.props.children:x,s,l,c,r);return t.options.diffed&&t.options.diffed(r),r.__=void 0,t.options.unmount&&t.options.unmount(r),T}var P,j,C="<";if(C+=f,m)for(var I in P=m.children,m){var $,J,M,N=m[I];if(!("key"===I||"ref"===I||"__self"===I||"__source"===I||"children"===I||"className"===I&&"class"in m||"htmlFor"===I&&"for"in m||n.test(I))){if(J=I="className"===($=I)?"class":"htmlFor"===$?"for":"defaultValue"===$?"value":"defaultChecked"===$?"checked":"defaultSelected"===$?"selected":l&&o.test($)?$.toLowerCase().replace(/^xlink:?/,"xlink:"):$,M=N,N="style"===J&&null!=M&&"object"==typeof M?h(M):"a"===J[0]&&"r"===J[1]&&"boolean"==typeof M?String(M):M,"dangerouslySetInnerHTML"===I)j=N&&N.__html;else if("textarea"===f&&"value"===I)P=N;else if((N||0===N||""===N)&&"function"!=typeof N){if(!0===N||""===N){N=I,C=C+" "+I;continue}if("value"===I){if("select"===f){c=N;continue}"option"!==f||c!=N||"selected"in m||(C+=" selected")}C=C+" "+I+'="'+a(N)+'"'}}}var R=C;if(C+=">",n.test(f))throw Error(f+" is not a valid HTML tag name in "+C);var W="",K=!1;if(j)W+=j,K=!0;else if("string"==typeof P)W+=a(P),K=!0;else if(k(P)){r.__k=P;for(var U=0;U<P.length;U++){var H=P[U];if(P[U]=S(H),null!=H&&!1!==H){var D=e(H,s,"svg"===f||"foreignObject"!==f&&l,c,r);D&&(W+=D,K=!0)}}}else if(null!=P&&!1!==P&&!0!==P){r.__k=[S(P)];var q=e(P,s,"svg"===f||"foreignObject"!==f&&l,c,r);q&&(W+=q,K=!0)}if(t.options.diffed&&t.options.diffed(r),r.__=void 0,t.options.unmount&&t.options.unmount(r),K)C+=W;else if(i.test(f))return R+" />";return C+"</"+f+">"}(e,r,!1,void 0,f),t.options.__c&&t.options.__c(e,w),t.options.__s=u,w.length=0,d}function S(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?t.h(null,null,e):e}var k=Array.isArray,E=Object.assign;b.shallowRender=v,e.default=b,e.render=b,e.renderToStaticMarkup=b,e.renderToString=b,e.shallowRender=v})(t,r(2806))},2824:(e,t,r)=>{"use strict";e.exports=r(5524).default},2806:(e,t)=>{var r,i,n,o,s,a,l,c,u={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function f(e,t){for(var r in t)e[r]=t[r];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,i){var n,o,s,a={};for(s in t)"key"==s?n=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):i),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return m(e,a,n,o,null)}function m(e,t,r,o,s){var a={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++n:s,__i:-1,__u:0};return null==s&&null!=i.vnode&&i.vnode(a),a}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?w(e):null}function b(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!S.__r++||s!==i.debounceRendering)&&((s=i.debounceRendering)||a)(S)}function S(){var e,t,r,n=[],s=[];for(o.sort(l);e=o.shift();)e.__d&&(r=o.length,t=function(e,t,r){var n,o=e.__v,s=o.__e,a=e.__P;if(a)return(n=f({},o)).__v=o.__v+1,i.vnode&&i.vnode(n),T(a,n,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[s]:null,t,null==s?w(o):s,!!(32&o.__u),r),n.__v=o.__v,n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=s&&function e(t){var r,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(i=t.__k[r])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return e(t)}}(n),n}(e,n,s)||t,0===r||o.length>r?(P(n,t,s),s.length=n.length=0,t=void 0,o.sort(l)):t&&i.__c&&i.__c(t,d));t&&P(n,t,s),S.__r=0}function k(e,t,r,i,n,o,s,a,l,c,h){var f,y,g,v,b,S=i&&i.__k||d,k=t.length;for(r.__d=l,function(e,t,r){var i,n,o,s,a,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],i=0;i<l;i++)null!=(n=e.__k[i]=null==(n=t[i])||"boolean"==typeof n||"function"==typeof n?null:"string"==typeof n||"number"==typeof n||"bigint"==typeof n||n.constructor==String?m(null,n,null,null,n):p(n)?m(_,{children:n},null,null,null):void 0===n.constructor&&n.__b>0?m(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)?(n.__=e,n.__b=e.__b+1,a=function(e,t,r,i){var n=e.key,o=e.type,s=r-1,a=r+1,l=t[r];if(null===l||l&&n==l.key&&o===l.type)return r;if(i>(null!=l&&0==(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&0==(131072&l.__u)&&n==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&n==l.key&&o===l.type)return a;a++}}return -1}(n,r,s=i+d,u),n.__i=a,o=null,-1!==a&&(u--,(o=r[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof n.type&&(n.__u|=65536)):a!==s&&(a===s+1?d++:a>s?u>l-s?d+=a-s:d--:d=a<s&&a==s-1?a-s:0,a!==i+d&&(n.__u|=65536))):(o=r[i])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=w(o)),C(o,o,!1),r[i]=null,u--);if(u)for(i=0;i<c;i++)null!=(o=r[i])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=w(o)),C(o,o))}(r,t,S),l=r.__d,f=0;f<k;f++)null!=(g=r.__k[f])&&"boolean"!=typeof g&&"function"!=typeof g&&(y=-1===g.__i?u:S[g.__i]||u,g.__i=f,T(e,g,y,n,o,s,a,l,c,h),v=g.__e,g.ref&&y.ref!=g.ref&&(y.ref&&j(y.ref,null,g),h.push(g.ref,g.__c||v,g)),null==b&&null!=v&&(b=v),65536&g.__u||y.__k===g.__k?l=function e(t,r,i){var n,o;if("function"==typeof t.type){for(n=t.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=t,r=e(n[o],r,i));return r}t.__e!=r&&(i.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType);return r}(g,l,e):"function"==typeof g.type&&void 0!==g.__d?l=g.__d:v&&(l=v.nextSibling),g.__d=void 0,g.__u&=-196609);r.__d=l,r.__e=b}function E(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||h.test(t)?r:r+"px"}function A(e,t,r,i,n){var o;e:if("style"===t){if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||E(e.style,t,"");if(r)for(t in r)i&&r[t]===i[t]||E(e.style,t,r[t])}}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?i?r.t=i.t:(r.t=Date.now(),e.addEventListener(t,o?O:x,o)):e.removeEventListener(t,o?O:x,o);else{if(n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function x(e){if(this.l){var t=this.l[e.type+!1];if(e.u){if(e.u<=t.t)return}else e.u=Date.now();return t(i.event?i.event(e):e)}}function O(e){if(this.l)return this.l[e.type+!0](i.event?i.event(e):e)}function T(e,t,n,o,s,a,l,c,d,h){var g,m,b,S,E,x,O,T,P,j,C,$,J,M,N,R=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(d=!!(32&n.__u),a=[c=t.__e=n.__e]),(g=i.__b)&&g(t);e:if("function"==typeof R)try{if(T=t.props,P=(g=R.contextType)&&o[g.__c],j=g?P?P.props.value:g.__:o,n.__c?O=(m=t.__c=n.__c).__=m.__E:("prototype"in R&&R.prototype.render?t.__c=m=new R(T,j):(t.__c=m=new v(T,j),m.constructor=R,m.render=I),P&&P.sub(m),m.props=T,m.state||(m.state={}),m.context=j,m.__n=o,b=m.__d=!0,m.__h=[],m._sb=[]),null==m.__s&&(m.__s=m.state),null!=R.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=f({},m.__s)),f(m.__s,R.getDerivedStateFromProps(T,m.__s))),S=m.props,E=m.state,m.__v=t,b)null==R.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==R.getDerivedStateFromProps&&T!==S&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(T,j),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(T,m.__s,j)||t.__v===n.__v)){for(t.__v!==n.__v&&(m.props=T,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),C=0;C<m._sb.length;C++)m.__h.push(m._sb[C]);m._sb=[],m.__h.length&&l.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(T,m.__s,j),null!=m.componentDidUpdate&&m.__h.push(function(){m.componentDidUpdate(S,E,x)})}if(m.context=j,m.props=T,m.__P=e,m.__e=!1,$=i.__r,J=0,"prototype"in R&&R.prototype.render){for(m.state=m.__s,m.__d=!1,$&&$(t),g=m.render(m.props,m.state,m.context),M=0;M<m._sb.length;M++)m.__h.push(m._sb[M]);m._sb=[]}else do m.__d=!1,$&&$(t),g=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++J<25);m.state=m.__s,null!=m.getChildContext&&(o=f(f({},o),m.getChildContext())),b||null==m.getSnapshotBeforeUpdate||(x=m.getSnapshotBeforeUpdate(S,E)),k(e,p(N=null!=g&&g.type===_&&null==g.key?g.props.children:g)?N:[N],t,n,o,s,a,l,c,d,h),m.base=t.__e,t.__u&=-161,m.__h.length&&l.push(m),O&&(m.__E=m.__=null)}catch(e){t.__v=null,d||null!=a?(t.__e=c,t.__u|=d?160:32,a[a.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),i.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,i,n,o,s,a,l,c){var d,h,f,g,m,_,v,b=i.props,S=t.props,E=t.type;if("svg"===E&&(o=!0),null!=s){for(d=0;d<s.length;d++)if((m=s[d])&&"setAttribute"in m==!!E&&(E?m.localName===E:3===m.nodeType)){e=m,s[d]=null;break}}if(null==e){if(null===E)return document.createTextNode(S);e=o?document.createElementNS("http://www.w3.org/2000/svg",E):document.createElement(E,S.is&&S),s=null,l=!1}if(null===E)b===S||l&&e.data===S||(e.data=S);else{if(s=s&&r.call(e.childNodes),b=i.props||u,!l&&null!=s)for(b={},d=0;d<e.attributes.length;d++)b[(m=e.attributes[d]).name]=m.value;for(d in b)m=b[d],"children"==d||("dangerouslySetInnerHTML"==d?f=m:"key"===d||d in S||A(e,d,null,m,o));for(d in S)m=S[d],"children"==d?g=m:"dangerouslySetInnerHTML"==d?h=m:"value"==d?_=m:"checked"==d?v=m:"key"===d||l&&"function"!=typeof m||b[d]===m||A(e,d,m,b[d],o);if(h)l||f&&(h.__html===f.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(f&&(e.innerHTML=""),k(e,p(g)?g:[g],t,i,n,o&&"foreignObject"!==E,s,a,s?s[0]:i.__k&&w(i,0),l,c),null!=s)for(d=s.length;d--;)null!=s[d]&&y(s[d]);l||(d="value",void 0===_||_===e[d]&&("progress"!==E||_)&&("option"!==E||_===b[d])||A(e,d,_,b[d],!1),d="checked",void 0!==v&&v!==e[d]&&A(e,d,v,b[d],!1))}return e}(n.__e,t,n,o,s,a,l,d,h);(g=i.diffed)&&g(t)}function P(e,t,r){for(var n=0;n<r.length;n++)j(r[n],r[++n],r[++n]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function j(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,r)}}function C(e,t,r){var n,o;if(i.unmount&&i.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||j(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){i.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&C(n[o],t,r||"function"!=typeof e.type);r||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function I(e,t,r){return this.constructor(e,r)}function $(e,t,n){var o,s,a,l;i.__&&i.__(e,t),s=(o="function"==typeof n)?null:n&&n.__k||t.__k,a=[],l=[],T(t,e=(!o&&n||t).__k=g(_,null,[e]),s||u,u,void 0!==t.ownerSVGElement,!o&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,a,!o&&n?n:s?s.__e:t.firstChild,o,l),e.__d=void 0,P(a,e,l)}r=d.slice,i={__e:function(e,t,r,i){for(var n,o,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((o=n.constructor)&&null!=o.getDerivedStateFromError&&(n.setState(o.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,i||{}),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},n=0,v.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},r),this.props)),e&&f(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),b(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},v.prototype.render=_,o=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,c=0,t.Component=v,t.Fragment=_,t.cloneElement=function(e,t,i){var n,o,s,a,l=f({},e.props);for(s in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==s?n=t[s]:"ref"==s?o=t[s]:l[s]=void 0===t[s]&&void 0!==a?a[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):i),m(e.type,l,n||e.key,o||e.ref,null)},t.createContext=function(e,t){var r={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i;return this.getChildContext||(r=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(function(e){e.__e=!0,b(e)})},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,r){$(t,r,e)},t.isValidElement=function(e){return null!=e&&null==e.constructor},t.options=i,t.render=$,t.toChildArray=function e(t,r){return r=r||[],null==t||"boolean"==typeof t||(p(t)?t.some(function(t){e(t,r)}):r.push(t)),r}},2295:(e,t,r)=>{"use strict";let i,n;r.r(t),r.d(t,{NIL:()=>S,parse:()=>m,stringify:()=>p,v1:()=>g,v3:()=>v,v4:()=>w,v5:()=>b,validate:()=>d,version:()=>k});var o=r(6113),s=r.n(o);let a=new Uint8Array(256),l=a.length;function c(){return l>a.length-16&&(s().randomFillSync(a),l=0),a.slice(l,l+=16)}let u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,d=function(e){return"string"==typeof e&&u.test(e)},h=[];for(let e=0;e<256;++e)h.push((e+256).toString(16).substr(1));let p=function(e,t=0){let r=(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase();if(!d(r))throw TypeError("Stringified UUID is invalid");return r},f=0,y=0,g=function(e,t,r){let o=t&&r||0,s=t||Array(16),a=(e=e||{}).node||i,l=void 0!==e.clockseq?e.clockseq:n;if(null==a||null==l){let t=e.random||(e.rng||c)();null==a&&(a=i=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==l&&(l=n=(t[6]<<8|t[7])&16383)}let u=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.nsecs?e.nsecs:y+1,h=u-f+(d-y)/1e4;if(h<0&&void 0===e.clockseq&&(l=l+1&16383),(h<0||u>f)&&void 0===e.nsecs&&(d=0),d>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");f=u,y=d,n=l;let g=((268435455&(u+=122192928e5))*1e4+d)%4294967296;s[o++]=g>>>24&255,s[o++]=g>>>16&255,s[o++]=g>>>8&255,s[o++]=255&g;let m=u/4294967296*1e4&268435455;s[o++]=m>>>8&255,s[o++]=255&m,s[o++]=m>>>24&15|16,s[o++]=m>>>16&255,s[o++]=l>>>8|128,s[o++]=255&l;for(let e=0;e<6;++e)s[o+e]=a[e];return t||p(s)},m=function(e){let t;if(!d(e))throw TypeError("Invalid UUID");let r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function _(e,t,r){function i(e,i,n,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof i&&(i=m(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(i),s.set(e,i.length),(s=r(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,n){o=o||0;for(let e=0;e<16;++e)n[o+e]=s[e];return n}return p(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}let v=_("v3",48,function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),s().createHash("md5").update(e).digest()}),w=function(e,t,r){let i=(e=e||{}).random||(e.rng||c)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return p(i)},b=_("v5",80,function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),s().createHash("sha1").update(e).digest()}),S="00000000-0000-0000-0000-000000000000",k=function(e){if(!d(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},3238:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4634:(e,t,r)=>{"use strict";function i(e){var t=this;if(t instanceof i||(t=new i),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=i,i.Node=n,i.create=i,i.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},i.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},i.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},i.prototype.push=function(){for(var e,t=0,r=arguments.length;t<r;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length},i.prototype.unshift=function(){for(var e,t=0,r=arguments.length;t<r;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},i.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},i.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},i.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,i=0;null!==r;i++)e.call(t,r.value,i,this),r=r.next},i.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,i=this.length-1;null!==r;i--)e.call(t,r.value,i,this),r=r.prev},i.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},i.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},i.prototype.map=function(e,t){t=t||this;for(var r=new i,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},i.prototype.mapReverse=function(e,t){t=t||this;for(var r=new i,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},i.prototype.reduce=function(e,t){var r,i=this.head;if(arguments.length>1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var n=0;null!==i;n++)r=e(r,i.value,n),i=i.next;return r},i.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;null!==i;n--)r=e(r,i.value,n),i=i.prev;return r},i.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},i.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},i.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new i;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;for(;null!==o&&n<t;n++,o=o.next)r.push(o.value);return r},i.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new i;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,o=this.tail;null!==o&&n>t;n--)o=o.prev;for(;null!==o&&n>e;n--,o=o.prev)r.push(o.value);return r},i.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(var s=[],i=0;o&&i<t;i++)s.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<r.length;i++)o=function(e,t,r){var i=t===e.head?new n(r,null,t,e):new n(r,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}(this,o,r[i]);return s},i.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=t,this.tail=e,this};try{r(3238)(i)}catch(e){}},1721:e=>{"use strict";e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6255:e=>{"use strict";function t(e,t,r,i,n,o,s){try{var a=e[o](s),l=a.value}catch(e){r(e);return}a.done?t(l):Promise.resolve(l).then(i,n)}e.exports=function(e){return function(){var r=this,i=arguments;return new Promise(function(n,o){var s=e.apply(r,i);function a(e){t(s,n,o,a,l,"next",e)}function l(e){t(s,n,o,a,l,"throw",e)}a(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},1193:e=>{"use strict";e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},9544:e=>{"use strict";e.exports=function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}},e.exports.__esModule=!0,e.exports.default=e.exports},430:e=>{"use strict";e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},628:e=>{"use strict";e.exports=function(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7972:(e,t,r)=>{"use strict";var i=r(1193),n=r(628);e.exports=function(e,t){var r=n(e,t,"get");return i(e,r)},e.exports.__esModule=!0,e.exports.default=e.exports},3203:(e,t,r)=>{"use strict";var i=r(9544),n=r(628);e.exports=function(e,t,r){var o=n(e,t,"set");return i(e,o,r),r},e.exports.__esModule=!0,e.exports.default=e.exports},7862:(e,t,r)=>{"use strict";var i=r(1178),n=r(569);e.exports=function(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return r&&i(s,r.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},7821:(e,t,r)=>{"use strict";var i=r(6584);function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},2485:(e,t,r)=>{"use strict";var i=r(6584);e.exports=function(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},7701:e=>{"use strict";function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1100:e=>{"use strict";function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},162:(e,t,r)=>{"use strict";var i=r(1178);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},6718:e=>{"use strict";e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},2808:e=>{"use strict";e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},569:e=>{"use strict";function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3144:(e,t,r)=>{"use strict";var i=r(2332).default,n=r(1721);e.exports=function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7531:(e,t,r)=>{"use strict";var i=r(2332).default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,r){return e[t]=r}}function p(e,r,i,n){var o,s,l=Object.create((r&&r.prototype instanceof v?r:v).prototype);return a(l,"_invoke",{value:(o=new j(n||[]),s=y,function(r,n){if(s===g)throw Error("Generator is already running");if(s===m){if("throw"===r)throw n;return{value:t,done:!0}}for(o.method=r,o.arg=n;;){var a=o.delegate;if(a){var l=function e(r,i){var n=i.method,o=r.iterator[n];if(o===t)return i.delegate=null,"throw"===n&&r.iterator.return&&(i.method="return",i.arg=t,e(r,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+n+"' method")),_;var s=f(o,r.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,_;var a=s.arg;return a?a.done?(i[r.resultName]=a.value,i.next=r.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,_):a:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,_)}(a,o);if(l){if(l===_)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===y)throw s=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=g;var c=f(e,i,o);if("normal"===c.type){if(s=o.done?m:"suspendedYield",c.arg===_)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(s=m,o.method="throw",o.arg=c.arg)}})}),l}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var y="suspendedStart",g="executing",m="completed",_={};function v(){}function w(){}function b(){}var S={};h(S,c,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(C([])));E&&E!==o&&s.call(E,c)&&(S=E);var A=b.prototype=v.prototype=Object.create(S);function x(e){["next","throw","return"].forEach(function(t){h(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var r;a(this,"_invoke",{value:function(n,o){function a(){return new t(function(r,a){!function r(n,o,a,l){var c=f(e[n],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&s.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,a,l)},function(e){r("throw",e,a,l)}):t.resolve(d).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,l)})}l(c.arg)}(n,o,r,a)})}return r=r?r.then(a,a):a()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(s.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw TypeError(i(e)+" is not iterable")}return w.prototype=b,a(A,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=h(b,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,h(e,d,"GeneratorFunction")),e.prototype=Object.create(A),e},r.awrap=function(e){return{__await:e}},x(O.prototype),h(O.prototype,u,function(){return this}),r.AsyncIterator=O,r.async=function(e,t,i,n,o){void 0===o&&(o=Promise);var s=new O(p(e,t,i,n),o);return r.isGeneratorFunction(t)?s:s.next().then(function(e){return e.done?e.value:s.next()})},x(A),h(A,d,"Generator"),h(A,c,function(){return this}),h(A,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var i in t)r.push(i);return r.reverse(),function e(){for(;r.length;){var i=r.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},r.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(i,n){return a.type="throw",a.arg=e,r.next=i,n&&(r.method="next",r.arg=t),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,_):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var n=i.arg;P(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:C(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),_}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},1178:e=>{"use strict";function t(r,i){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7371:(e,t,r)=>{"use strict";var i=r(2332).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6584:(e,t,r)=>{"use strict";var i=r(2332).default,n=r(7371);e.exports=function(e){var t=n(e,"string");return"symbol"==i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},2332:e=>{"use strict";function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},148:(e,t,r)=>{"use strict";var i=r(1100),n=r(1178),o=r(2808),s=r(7862);function a(t){var r="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},7315:(e,t,r)=>{"use strict";var i=r(7531)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},8654:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var i=r(1671),n=r(3251);let o=(0,i.D)({server:{DATABASE_URL:n.z.string().refine(e=>!e.includes("YOUR_MYSQL_URL_HERE"),"You forgot to change the default URL"),NODE_ENV:n.z.enum(["development","test","production"]).default("development"),NEXTAUTH_SECRET:n.z.string(),NEXTAUTH_URL:n.z.preprocess(e=>process.env.VERCEL_URL??e,process.env.VERCEL?n.z.string():n.z.string().url()),GOOGLE_CLIENT_ID:n.z.string(),GOOGLE_CLIENT_SECRET:n.z.string()},client:{},runtimeEnv:{DATABASE_URL:process.env.DATABASE_URL,NODE_ENV:"production",NEXTAUTH_SECRET:process.env.NEXTAUTH_SECRET,NEXTAUTH_URL:process.env.NEXTAUTH_URL,GOOGLE_CLIENT_ID:process.env.GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET:process.env.GOOGLE_CLIENT_SECRET},skipValidation:!!process.env.SKIP_ENV_VALIDATION,emptyStringAsUndefined:!0})},7605:e=>{"use strict";e.exports=JSON.parse('{"name":"openid-client","version":"5.6.4","description":"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs","keywords":["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],"homepage":"https://github.com/panva/node-openid-client","repository":"panva/node-openid-client","funding":{"url":"https://github.com/sponsors/panva"},"license":"MIT","author":"Filip Skokan <[email protected]>","exports":{"types":"./types/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"},"main":"./lib/index.js","types":"./types/index.d.ts","files":["lib","types/index.d.ts"],"scripts":{"format":"npx prettier --loglevel silent --write ./lib ./test ./certification ./types","test":"mocha test/**/*.test.js"},"dependencies":{"jose":"^4.15.4","lru-cache":"^6.0.0","object-hash":"^2.2.0","oidc-token-hash":"^5.0.3"},"devDependencies":{"@types/node":"^16.18.59","@types/passport":"^1.0.14","base64url":"^3.0.1","chai":"^4.3.10","mocha":"^10.2.0","nock":"^13.3.6","prettier":"^2.8.8","readable-mock-req":"^0.2.2","sinon":"^9.2.4","timekeeper":"^2.3.1"},"standard-version":{"scripts":{"postchangelog":"sed -i \'\' -e \'s/### \\\\[/## [/g\' CHANGELOG.md"},"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Fixes"},{"type":"chore","hidden":true},{"type":"docs","hidden":true},{"type":"style","hidden":true},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","hidden":true}]}}')}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[369,917],()=>r(2789));module.exports=i})();
\ No newline at end of file diff --git a/apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json new file mode 100644 index 00000000..c8e17b9b --- /dev/null +++ b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../package.json","../../../../../package.json","../../../../chunks/369.js","../../../../chunks/917.js","../../../../webpack-runtime.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/app/api/store/route.js b/apps/web/.next/server/app/api/store/route.js new file mode 100644 index 00000000..975b3dad --- /dev/null +++ b/apps/web/.next/server/app/api/store/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=745,e.ids=[745],e.modules={517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},5626:(e,t,r)=>{r.r(t),r.d(t,{headerHooks:()=>g,originalPathname:()=>P,patchFetch:()=>v,requestAsyncStorage:()=>f,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>p,staticGenerationBailout:()=>b});var n={};r.r(n),r.d(n,{GET:()=>h});var s=r(2390),o=r(1498),a=r(9308),i=r(5054),l=r(4990),u=r(246),d=r(7024);async function h(e){try{let t=e.cookies.get("next-auth.session-token")?.value??e.headers.get("Authorization")?.replace("Bearer ",""),r=await i.db.select().from(u.sessions).where((0,l.eq)(u.sessions.sessionToken,t)).leftJoin(u.users,(0,l.eq)(u.sessions.userId,u.users.id));if(!r||0===r.length)return d.Z.json({message:"Invalid Key, session not found."},{status:404});return d.Z.json({message:"OK",data:r[0]},{status:200})}catch(e){return d.Z.json({message:"Error",error:e},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/store/route",pathname:"/api/store",filename:"route",bundlePath:"app/api/store/route"},resolvedPagePath:"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/api/store/route.ts",nextConfigOutput:"",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:p,serverHooks:m,headerHooks:g,staticGenerationBailout:b}=c,P="/api/store/route";function v(){return(0,a.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:p})}},5054:(e,t,r)=>{r.d(t,{db:()=>l});let n=require("better-sqlite3");var s=r.n(n),o=r(9404),a=r(8654),i=r(246);let l=(0,o.t)(new(s())(a.O.DATABASE_URL,{fileMustExist:!1}),{schema:i})},246:(e,t,r)=>{r.r(t),r.d(t,{accounts:()=>p,accountsRelations:()=>m,createTable:()=>d,posts:()=>h,sessions:()=>g,sessionsRelations:()=>b,users:()=>c,usersRelations:()=>f,verificationTokens:()=>P});var n=r(2393),s=r(9349),o=r(5225),a=r(9415),i=r(440),l=r(7591),u=r(7357);let d=(0,o._9)(e=>`anycontext_${e}`),h=d("post",{id:(0,a.e$)("id",{mode:"number"}).primaryKey({autoIncrement:!0}),name:(0,i.fL)("name",{length:256}),createdById:(0,i.fL)("createdById",{length:255}).notNull().references(()=>c.id),createdAt:(0,a.e$)("created_at",{mode:"timestamp"}).default(n.i6`CURRENT_TIMESTAMP`).notNull(),updatedAt:(0,a.e$)("updatedAt",{mode:"timestamp"})},e=>({createdByIdIdx:(0,l.Kz)("createdById_idx").on(e.createdById),nameIndex:(0,l.Kz)("name_idx").on(e.name)})),c=d("user",{id:(0,i.fL)("id",{length:255}).notNull().primaryKey(),name:(0,i.fL)("name",{length:255}),email:(0,i.fL)("email",{length:255}).notNull(),emailVerified:(0,a.e$)("emailVerified",{mode:"timestamp"}).default(n.i6`CURRENT_TIMESTAMP`),image:(0,i.fL)("image",{length:255})}),f=(0,s.lE)(c,({many:e})=>({accounts:e(p)})),p=d("account",{userId:(0,i.fL)("userId",{length:255}).notNull().references(()=>c.id),type:(0,i.fL)("type",{length:255}).$type().notNull(),provider:(0,i.fL)("provider",{length:255}).notNull(),providerAccountId:(0,i.fL)("providerAccountId",{length:255}).notNull(),refresh_token:(0,i.fL)("refresh_token"),access_token:(0,i.fL)("access_token"),expires_at:(0,a.e$)("expires_at"),token_type:(0,i.fL)("token_type",{length:255}),scope:(0,i.fL)("scope",{length:255}),id_token:(0,i.fL)("id_token"),session_state:(0,i.fL)("session_state",{length:255})},e=>({compoundKey:(0,u.CK)({columns:[e.provider,e.providerAccountId]}),userIdIdx:(0,l.Kz)("account_userId_idx").on(e.userId)})),m=(0,s.lE)(p,({one:e})=>({user:e(c,{fields:[p.userId],references:[c.id]})})),g=d("session",{sessionToken:(0,i.fL)("sessionToken",{length:255}).notNull().primaryKey(),userId:(0,i.fL)("userId",{length:255}).notNull().references(()=>c.id),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({userIdIdx:(0,l.Kz)("session_userId_idx").on(e.userId)})),b=(0,s.lE)(g,({one:e})=>({user:e(c,{fields:[g.userId],references:[c.id]})})),P=d("verificationToken",{identifier:(0,i.fL)("identifier",{length:255}).notNull(),token:(0,i.fL)("token",{length:255}).notNull(),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({compoundKey:(0,u.CK)({columns:[e.identifier,e.token]})}))},7024:(e,t,r)=>{Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return n.NextResponse}});let n=r(8681)},5535:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextURL",{enumerable:!0,get:function(){return d}});let n=r(1309),s=r(3570),o=r(1858),a=r(8375),i=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function l(e,t){return new URL(String(e).replace(i,"localhost"),t&&String(t).replace(i,"localhost"))}let u=Symbol("NextURLInternal");class d{constructor(e,t,r){let n,s;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,s=r||{}):s=r||t||{},this[u]={url:l(e,n??s.base),options:s,basePath:""},this.analyze()}analyze(){var e,t,r,s,i;let l=(0,a.getNextPathnameInfo)(this[u].url.pathname,{nextConfig:this[u].options.nextConfig,parseData:!0,i18nProvider:this[u].options.i18nProvider}),d=(0,o.getHostname)(this[u].url,this[u].options.headers);this[u].domainLocale=this[u].options.i18nProvider?this[u].options.i18nProvider.detectDomainLocale(d):(0,n.detectDomainLocale)(null==(t=this[u].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,d);let h=(null==(r=this[u].domainLocale)?void 0:r.defaultLocale)||(null==(i=this[u].options.nextConfig)?void 0:null==(s=i.i18n)?void 0:s.defaultLocale);this[u].url.pathname=l.pathname,this[u].defaultLocale=h,this[u].basePath=l.basePath??"",this[u].buildId=l.buildId,this[u].locale=l.locale??h,this[u].trailingSlash=l.trailingSlash}formatPathname(){return(0,s.formatNextPathnameInfo)({basePath:this[u].basePath,buildId:this[u].buildId,defaultLocale:this[u].options.forceLocale?void 0:this[u].defaultLocale,locale:this[u].locale,pathname:this[u].url.pathname,trailingSlash:this[u].trailingSlash})}formatSearch(){return this[u].url.search}get buildId(){return this[u].buildId}set buildId(e){this[u].buildId=e}get locale(){return this[u].locale??""}set locale(e){var t,r;if(!this[u].locale||!(null==(r=this[u].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[u].locale=e}get defaultLocale(){return this[u].defaultLocale}get domainLocale(){return this[u].domainLocale}get searchParams(){return this[u].url.searchParams}get host(){return this[u].url.host}set host(e){this[u].url.host=e}get hostname(){return this[u].url.hostname}set hostname(e){this[u].url.hostname=e}get port(){return this[u].url.port}set port(e){this[u].url.port=e}get protocol(){return this[u].url.protocol}set protocol(e){this[u].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[u].url=l(e),this.analyze()}get origin(){return this[u].url.origin}get pathname(){return this[u].url.pathname}set pathname(e){this[u].url.pathname=e}get hash(){return this[u].url.hash}set hash(e){this[u].url.hash=e}get search(){return this[u].url.search}set search(e){this[u].url.search=e}get password(){return this[u].url.password}set password(e){this[u].url.password=e}get username(){return this[u].url.username}set username(e){this[u].url.username=e}get basePath(){return this[u].basePath}set basePath(e){this[u].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new d(String(this),this[u].options)}}},8681:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextResponse",{enumerable:!0,get:function(){return u}});let n=r(5535),s=r(9960),o=r(8005),a=Symbol("internal response"),i=new Set([301,302,303,307,308]);function l(e,t){var r;if(null==e?void 0:null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Error("request.headers must be an instance of Headers");let r=[];for(let[n,s]of e.request.headers)t.set("x-middleware-request-"+n,s),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class u extends Response{constructor(e,t={}){super(e,t),this[a]={cookies:new o.ResponseCookies(this.headers),url:t.url?new n.NextURL(t.url,{headers:(0,s.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[a].cookies}static json(e,t){let r=Response.json(e,t);return new u(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!i.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let n="object"==typeof t?t:{},o=new Headers(null==n?void 0:n.headers);return o.set("Location",(0,s.validateURL)(e)),new u(null,{...n,headers:o,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,s.validateURL)(e)),l(t,r),new u(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),l(e,t),new u(null,{...e,headers:t})}}},9960:(e,t)=>{function r(e){let t=new Headers;for(let[r,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function n(e){var t,r,n,s,o,a=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,o=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),s=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(o=!0,i=s,a.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!o||i>=e.length)&&a.push(e.substring(t,e.length))}return a}function s(e){let t={},r=[];if(e)for(let[s,o]of e.entries())"set-cookie"===s.toLowerCase()?(r.push(...n(o)),t[s]=1===r.length?r[0]:r):t[s]=o;return t}function o(e){try{return String(new URL(String(e)))}catch(t){throw Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t})}}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fromNodeOutgoingHttpHeaders:function(){return r},splitCookiesString:function(){return n},toNodeOutgoingHttpHeaders:function(){return s},validateURL:function(){return o}})},1858:(e,t)=>{function r(e,t){let r;if((null==t?void 0:t.host)&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getHostname",{enumerable:!0,get:function(){return r}})},1309:(e,t)=>{function r(e,t,r){if(e)for(let o of(r&&(r=r.toLowerCase()),e)){var n,s;if(t===(null==(n=o.domain)?void 0:n.split(":",1)[0].toLowerCase())||r===o.defaultLocale.toLowerCase()||(null==(s=o.locales)?void 0:s.some(e=>e.toLowerCase()===r)))return o}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}})},4429:(e,t)=>{function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},8606:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let n=r(6553),s=r(1562);function o(e,t,r,o){if(!t||t===r)return e;let a=e.toLowerCase();return!o&&((0,s.pathHasPrefix)(a,"/api")||(0,s.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},6553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return s}});let n=r(4774);function s(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:s,hash:o}=(0,n.parsePath)(e);return""+t+r+s+o}},726:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return s}});let n=r(4774);function s(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:s,hash:o}=(0,n.parsePath)(e);return""+r+t+s+o}},3570:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(3662),s=r(6553),o=r(726),a=r(8606);function i(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,s.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,s.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},8375:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let n=r(4429),s=r(2487),o=r(1562);function a(e,t){var r,a;let{basePath:i,i18n:l,trailingSlash:u}=null!=(r=t.nextConfig)?r:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};i&&(0,o.pathHasPrefix)(d.pathname,i)&&(d.pathname=(0,s.removePathPrefix)(d.pathname,i),d.basePath=i);let h=d.pathname;if(d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];d.buildId=r,h="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(d.pathname=h)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(d.pathname):(0,n.normalizeLocalePath)(d.pathname,l.locales);d.locale=e.detectedLocale,d.pathname=null!=(a=e.pathname)?a:d.pathname,!e.detectedLocale&&d.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(h):(0,n.normalizeLocalePath)(h,l.locales)).detectedLocale&&(d.locale=e.detectedLocale)}return d}},4774:(e,t)=>{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}})},1562:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return s}});let n=r(4774);function s(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},2487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return s}});let n=r(1562);function s(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},3662:(e,t)=>{function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},8654:(e,t,r)=>{r.d(t,{O:()=>o});var n=r(1671),s=r(3251);let o=(0,n.D)({server:{DATABASE_URL:s.z.string().refine(e=>!e.includes("YOUR_MYSQL_URL_HERE"),"You forgot to change the default URL"),NODE_ENV:s.z.enum(["development","test","production"]).default("development"),NEXTAUTH_SECRET:s.z.string(),NEXTAUTH_URL:s.z.preprocess(e=>process.env.VERCEL_URL??e,process.env.VERCEL?s.z.string():s.z.string().url()),GOOGLE_CLIENT_ID:s.z.string(),GOOGLE_CLIENT_SECRET:s.z.string()},client:{},runtimeEnv:{DATABASE_URL:process.env.DATABASE_URL,NODE_ENV:"production",NEXTAUTH_SECRET:process.env.NEXTAUTH_SECRET,NEXTAUTH_URL:process.env.NEXTAUTH_URL,GOOGLE_CLIENT_ID:process.env.GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET:process.env.GOOGLE_CLIENT_SECRET},skipValidation:!!process.env.SKIP_ENV_VALIDATION,emptyStringAsUndefined:!0})}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[369,917],()=>r(5626));module.exports=n})();
\ No newline at end of file diff --git a/apps/web/.next/server/app/api/store/route.js.nft.json b/apps/web/.next/server/app/api/store/route.js.nft.json new file mode 100644 index 00000000..242e1670 --- /dev/null +++ b/apps/web/.next/server/app/api/store/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../package.json","../../../../package.json","../../../chunks/369.js","../../../chunks/917.js","../../../webpack-runtime.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/app/index.html b/apps/web/.next/server/app/index.html new file mode 100644 index 00000000..b1c4e90d --- /dev/null +++ b/apps/web/.next/server/app/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/6c15d7e3526590b3.css" crossorigin="" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-7c56eb6342069862.js" crossorigin=""/><script src="/_next/static/chunks/1dd3208c-2005e60b0a14e8cf.js" async="" crossorigin=""></script><script src="/_next/static/chunks/997-22e52d7003e9633c.js" async="" crossorigin=""></script><script src="/_next/static/chunks/main-app-6394067cfc5308ad.js" async="" crossorigin=""></script><title>Create T3 App</title><meta name="description" content="Generated by create-t3-app"/><link rel="icon" href="/favicon.ico"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body class="font-sans __variable_aaf875"><main>hi</main><script src="/_next/static/chunks/webpack-7c56eb6342069862.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/css/6c15d7e3526590b3.css\",\"style\",{\"crossOrigin\":\"\"}]\n0:\"$L3\"\n"])</script><script>self.__next_f.push([1,"4:I[8950,[],\"\"]\n6:I[2172,[],\"\"]\n7:I[2533,[],\"\"]\n9:I[5119,[],\"\"]\na:[]\n"])</script><script>self.__next_f.push([1,"3:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/6c15d7e3526590b3.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]],[\"$\",\"$L4\",null,{\"buildId\":\"NZ5J5THZSIm48Kb9Sw_O9\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L5\",[\"$\",\"main\",null,{\"children\":\"hi\"}],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"font-sans __variable_aaf875\",\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null]],\"initialHead\":[false,\"$L8\"],\"globalErrorComponent\":\"$9\",\"missingSlots\":\"$Wa\"}]]\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Create T3 App\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Generated by create-t3-app\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"meta\",\"5\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>
\ No newline at end of file diff --git a/apps/web/.next/server/app/index.meta b/apps/web/.next/server/app/index.meta new file mode 100644 index 00000000..4bb66762 --- /dev/null +++ b/apps/web/.next/server/app/index.meta @@ -0,0 +1,5 @@ +{ + "headers": { + "x-next-cache-tags": "_N_T_/layout,_N_T_/page,_N_T_/" + } +}
\ No newline at end of file diff --git a/apps/web/.next/server/app/index.rsc b/apps/web/.next/server/app/index.rsc new file mode 100644 index 00000000..0c3c9b35 --- /dev/null +++ b/apps/web/.next/server/app/index.rsc @@ -0,0 +1,5 @@ +2:I[2172,[],""] +3:I[2533,[],""] +0:["NZ5J5THZSIm48Kb9Sw_O9",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","main",null,{"children":"hi"}],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"font-sans __variable_aaf875","children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"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"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/6c15d7e3526590b3.css","precedence":"next","crossOrigin":""}]],"$L4"]]]] +4:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Create T3 App"}],["$","meta","3",{"name":"description","content":"Generated by create-t3-app"}],["$","link","4",{"rel":"icon","href":"/favicon.ico"}],["$","meta","5",{"name":"next-size-adjust"}]] +1:null diff --git a/apps/web/.next/server/app/page.js b/apps/web/.next/server/app/page.js new file mode 100644 index 00000000..7cfd2492 --- /dev/null +++ b/apps/web/.next/server/app/page.js @@ -0,0 +1 @@ +(()=>{var e={};e.id=931,e.ids=[931],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},3190:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>o.a,__next_app__:()=>u,originalPathname:()=>p,pages:()=>d,routeModule:()=>x,tree:()=>l});var s=r(9441),n=r(1498),a=r(6580),o=r.n(a),i=r(5511),c={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(c[e]=()=>i[e]);r.d(t,c);let l=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,9475)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(r.bind(r,8205)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,3250,23)),"next/dist/client/components/not-found-error"]}],d=["/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page.tsx"],p="/page",u={require:r,loadChunk:()=>Promise.resolve()},x=new s.AppPageRouteModule({definition:{kind:n.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},7422:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,9489,23)),Promise.resolve().then(r.t.bind(r,6225,23)),Promise.resolve().then(r.t.bind(r,5964,23)),Promise.resolve().then(r.t.bind(r,5804,23)),Promise.resolve().then(r.t.bind(r,7255,23)),Promise.resolve().then(r.t.bind(r,1021,23))},5722:()=>{},3245:()=>{},8205:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,metadata:()=>o});var s=r(6491),n=r(1608),a=r.n(n);r(1603);let o={title:"Create T3 App",description:"Generated by create-t3-app",icons:[{rel:"icon",url:"/favicon.ico"}]};function i({children:e}){return s.jsx("html",{lang:"en",children:s.jsx("body",{className:`font-sans ${a().variable}`,children:e})})}},9475:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(6491);function n(){return s.jsx("main",{children:"hi"})}},1603:()=>{}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[369,38],()=>r(3190));module.exports=s})();
\ No newline at end of file diff --git a/apps/web/.next/server/app/page.js.nft.json b/apps/web/.next/server/app/page.js.nft.json new file mode 100644 index 00000000..4249385f --- /dev/null +++ b/apps/web/.next/server/app/page.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../package.json","../chunks/369.js","../chunks/38.js","../webpack-runtime.js","page_client-reference-manifest.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/app/page_client-reference-manifest.js b/apps/web/.next/server/app/page_client-reference-manifest.js new file mode 100644 index 00000000..c3ebea85 --- /dev/null +++ b/apps/web/.next/server/app/page_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"2172":{"*":{"id":"5964","name":"*","chunks":[],"async":false}},"2533":{"*":{"id":"7255","name":"*","chunks":[],"async":false}},"3398":{"*":{"id":"5804","name":"*","chunks":[],"async":false}},"5119":{"*":{"id":"6225","name":"*","chunks":[],"async":false}},"8950":{"*":{"id":"9489","name":"*","chunks":[],"async":false}},"9256":{"*":{"id":"1021","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"inter\"}":{"id":425,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/styles/globals.css":{"id":3744,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false}},"entryCSSFiles":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/_not-found":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/css/6c15d7e3526590b3.css"],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page":[]}}
\ No newline at end of file diff --git a/apps/web/.next/server/chunks/296.js b/apps/web/.next/server/chunks/296.js new file mode 100644 index 00000000..00f073f0 --- /dev/null +++ b/apps/web/.next/server/chunks/296.js @@ -0,0 +1,6 @@ +"use strict";exports.id=296,exports.ids=[296],exports.modules={5871:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return E},NextScript:function(){return y},Html:function(){return S},Main:function(){return I},default:function(){return T}});let r=n(997),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(6689)),o=n(4653),s=n(5383),a=n(2809),l=function(e){return e&&e.__esModule?e:{default:e}}(n(274)),u=n(3577);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}let p=new Set;function f(e,t,n){let r=(0,s.getPageFiles)(e,"/_app"),i=n?[]:(0,s.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function d(e,t){let{assetPrefix:n,buildManifest:i,assetQueryString:o,disableOptimizedLoading:s,crossOrigin:a}=e;return i.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>(0,r.jsx)("script",{defer:!s,nonce:t.nonce,crossOrigin:t.crossOrigin||a,noModule:!0,src:`${n}/_next/${e}${o}`},e))}function h({styles:e}){if(!e)return null;let t=Array.isArray(e)?e:[];if(e.props&&Array.isArray(e.props.children)){let n=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};e.props.children.forEach(e=>{Array.isArray(e)?e.forEach(e=>n(e)&&t.push(e)):n(e)&&t.push(e)})}return(0,r.jsx)("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:t.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:i,assetPrefix:o,isDevelopment:s,assetQueryString:a,disableOptimizedLoading:l,crossOrigin:u}=e;return i.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:(0,r.jsx)("script",{async:!s&&l,defer:!l,src:`${o}/_next/${encodeURI(e)}${a}`,nonce:t.nonce,crossOrigin:t.crossOrigin||u},e))}function _(e,t,n){var i;let{assetPrefix:o,buildManifest:s,isDevelopment:a,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e;return[...n.allFiles.filter(e=>e.endsWith(".js")),...null==(i=s.lowPriorityFiles)?void 0:i.filter(e=>e.endsWith(".js"))].map(e=>(0,r.jsx)("script",{src:`${o}/_next/${encodeURI(e)}${l}`,nonce:t.nonce,async:!a&&u,defer:!u,crossOrigin:t.crossOrigin||c},e))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:o,crossOrigin:s}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:o,crossOrigin:s,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=(Array.isArray(t.children)?t.children:[t.children]).find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return(0,r.jsxs)(r.Fragment,{children:[!a&&(0,r.jsx)("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:` + partytown = { + lib: "${n}/_next/static/~partytown/" + }; + `}}),(0,r.jsx)("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(o.worker||[]).map((e,n)=>{let{strategy:r,src:o,children:a,dangerouslySetInnerHTML:l,...u}=e,c={};if(o)c.src=o;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(a)c.dangerouslySetInnerHTML={__html:"string"==typeof a?a:Array.isArray(a)?a.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return(0,i.createElement)("script",{...c,...u,type:"text/partytown",key:o||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||s})})]})}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn(`Warning: ${e.message}`),null}}(e,t),u=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{let{strategy:r,...a}=e;return(0,i.createElement)("script",{...a,key:a.src||n,defer:a.defer??!o,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||s})});return(0,r.jsxs)(r.Fragment,{children:[a,u]})}class E extends i.default.Component{static #e=this.contextType=u.HtmlContext;getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:i,crossOrigin:o,optimizeCss:s,optimizeFonts:a}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),p=Array.from(new Set(i.filter(e=>e.endsWith(".css"))));if(p.length){let e=new Set(l);p=p.filter(t=>!(e.has(t)||u.has(t))),c=new Set(p),l.push(...p)}let f=[];return l.forEach(e=>{let i=u.has(e);s||f.push((0,r.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:`${t}/_next/${encodeURI(e)}${n}`,as:"style",crossOrigin:this.props.crossOrigin||o},`${e}-preload`));let a=c.has(e);f.push((0,r.jsx)("link",{nonce:this.props.nonce,rel:"stylesheet",href:`${t}/_next/${encodeURI(e)}${n}`,crossOrigin:this.props.crossOrigin||o,"data-n-g":a?void 0:i?"":void 0,"data-n-p":a?void 0:i?void 0:""},e))}),a&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:i}=this.context;return e.map(e=>e.endsWith(".js")?(0,r.jsx)("link",{rel:"preload",href:`${t}/_next/${encodeURI(e)}${n}`,as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||i},e):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:i,crossOrigin:o}=this.context,s=e.allFiles.filter(e=>e.endsWith(".js"));return[...(i.beforeInteractive||[]).map(e=>(0,r.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o},e.src)),...s.map(e=>(0,r.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:`${t}/_next/${encodeURI(e)}${n}`,as:"script",crossOrigin:this.props.crossOrigin||o},e))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:s,dangerouslySetInnerHTML:a,src:l,...u}=e,c="";return a&&a.__html?c=a.__html:s&&(c="string"==typeof s?s:Array.isArray(s)?s.join(""):""),(0,i.createElement)("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return _(this.context,this.props,e)}getPolyfillScripts(){return d(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(({url:t})=>{var n,r;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(t)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){let{styles:e,ampPath:t,inAmpMode:o,hybridAmp:s,canonicalBase:a,__NEXT_DATA__:l,dangerousAsPath:u,headTags:c,unstable_runtimeJS:p,unstable_JsPreload:d,disableOptimizedLoading:m,optimizeCss:_,optimizeFonts:g,assetPrefix:E,nextFontManifest:y}=this.context,S=!1===p,I=!1===d||!m;this.context.docComponentsRendered.Head=!0;let{head:T}=this.context,x=[],P=[];T&&(T.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&x.push(t),x.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&P.push(t),P.push(e))}),T=x.concat(P));let O=i.default.Children.toArray(this.props.children).filter(Boolean);g&&!o&&(O=this.makeStylesheetInert(O));let v=!1,b=!1;T=i.default.Children.map(T||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(o){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?b=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="<script",Object.keys(n).forEach(e=>{r+=` ${e}="${n[e]}"`}),r+="/>"),r)return console.warn(`Found conflicting amp tag "${e.type}" with conflicting prop ${r} in ${l.page}. https://nextjs.org/docs/messages/conflicting-amp-tag`),null}else"link"===t&&"amphtml"===n.rel&&(v=!0);return e});let j=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,o),N=function(e,t,n=""){if(!e)return{preconnect:null,preload:null};let i=e.pages["/_app"],o=e.pages[t],s=[...i??[],...o??[]];return{preconnect:0===s.length&&(i||o)?(0,r.jsx)("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:s?s.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return(0,r.jsx)("link",{rel:"preload",href:`${n}/_next/${encodeURI(e)}`,as:"font",type:`font/${t}`,crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""},e)}):null}}(y,u,E);return(0,r.jsxs)("head",{...function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),children:[this.context.isDevelopment&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{"data-next-hide-fouc":!0,"data-ampdevmode":o?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),(0,r.jsx)("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":o?"true":void 0,children:(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}})})]}),T,this.context.strictNextHead?null:(0,r.jsx)("meta",{name:"next-head-count",content:i.default.Children.count(T||[]).toString()}),O,g&&(0,r.jsx)("meta",{name:"next-font-preconnect"}),N.preconnect,N.preload,o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!b&&(0,r.jsx)("link",{rel:"canonical",href:a+n(9505).cleanAmpPath(u)}),(0,r.jsx)("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),(0,r.jsx)(h,{styles:e}),(0,r.jsx)("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),(0,r.jsx)("noscript",{children:(0,r.jsx)("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})}),(0,r.jsx)("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})]}),!o&&(0,r.jsxs)(r.Fragment,{children:[!v&&s&&(0,r.jsx)("link",{rel:"amphtml",href:a+(t||`${u}${u.includes("?")?"&":"?"}amp=1`)}),this.getBeforeInteractiveInlineScripts(),!_&&this.getCssLinks(j),!_&&(0,r.jsx)("noscript",{"data-n-css":this.props.nonce??""}),!S&&!I&&this.getPreloadDynamicChunks(),!S&&!I&&this.getPreloadMainLinks(j),!m&&!S&&this.getPolyfillScripts(),!m&&!S&&this.getPreNextScripts(),!m&&!S&&this.getDynamicChunks(j),!m&&!S&&this.getScripts(j),_&&this.getCssLinks(j),_&&(0,r.jsx)("noscript",{"data-n-css":this.props.nonce??""}),this.context.isDevelopment&&(0,r.jsx)("noscript",{id:"__next_css__DO_NOT_USE__"}),e||null]}),i.default.createElement(i.default.Fragment,{},...c||[])]})}}class y extends i.default.Component{static #e=this.contextType=u.HtmlContext;getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return _(this.context,this.props,e)}getPolyfillScripts(){return d(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:r}=e;try{let i=JSON.stringify(t);if(p.has(t.page))return(0,a.htmlEscapeJsonString)(i);let o=Buffer.from(i).byteLength,s=n(6549).Z;return r&&o>r&&(p.add(t.page),console.warn(`Warning: data for page "${t.page}"${t.page===e.dangerousAsPath?"":` (path "${e.dangerousAsPath}")`} is ${s(o)} which exceeds the threshold of ${s(r)}, this amount of data can reduce performance. +See more info here: https://nextjs.org/docs/messages/large-page-data`)),(0,a.htmlEscapeJsonString)(i)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error(`Circular structure in "getInitialProps" result of page "${t.page}". https://nextjs.org/docs/messages/circular-structure`);throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:i,docComponentsRendered:o,assetQueryString:s,disableOptimizedLoading:a,crossOrigin:l}=this.context,u=!1===i;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return(0,r.jsxs)(r.Fragment,{children:[!u&&n.devFiles?n.devFiles.map(t=>(0,r.jsx)("script",{src:`${e}/_next/${encodeURI(t)}${s}`,nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l},t)):null,u?null:(0,r.jsx)("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:y.getInlineScriptSource(this.context)}}),a&&!u&&this.getPolyfillScripts(),a&&!u&&this.getPreNextScripts(),a&&!u&&this.getDynamicChunks(c),a&&!u&&this.getScripts(c)]})}}function S(e){let{inAmpMode:t,docComponentsRendered:n,locale:o,scriptLoader:s,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,function(e,t,n){var r,o,s,a;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===E))?void 0:null==(r=o.props)?void 0:r.children,p=null==(a=u.find(e=>"body"===e.type))?void 0:null==(s=a.props)?void 0:s.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(p)?p:[p]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(s,a,e),(0,r.jsx)("html",{...e,lang:e.lang||o||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function I(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,(0,r.jsx)("next-js-internal-body-render-target",{})}class T extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return(0,r.jsxs)(S,{children:[(0,r.jsx)(E,{}),(0,r.jsxs)("body",{children:[(0,r.jsx)(I,{}),(0,r.jsx)(y,{})]})]})}}T[o.NEXT_BUILTIN_DOCUMENT]=function(){return(0,r.jsxs)(S,{children:[(0,r.jsx)(E,{}),(0,r.jsxs)("body",{children:[(0,r.jsx)(I,{}),(0,r.jsx)(y,{})]})]})}},4653:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{MODERN_BROWSERSLIST_TARGET:function(){return r.default},COMPILER_NAMES:function(){return i},INTERNAL_HEADERS:function(){return o},COMPILER_INDEXES:function(){return s},PHASE_EXPORT:function(){return a},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return u},PHASE_DEVELOPMENT_SERVER:function(){return c},PHASE_TEST:function(){return p},PHASE_INFO:function(){return f},PAGES_MANIFEST:function(){return d},APP_PATHS_MANIFEST:function(){return h},APP_PATH_ROUTES_MANIFEST:function(){return m},BUILD_MANIFEST:function(){return _},APP_BUILD_MANIFEST:function(){return g},FUNCTIONS_CONFIG_MANIFEST:function(){return E},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return y},NEXT_FONT_MANIFEST:function(){return S},EXPORT_MARKER:function(){return I},EXPORT_DETAIL:function(){return T},PRERENDER_MANIFEST:function(){return x},ROUTES_MANIFEST:function(){return P},IMAGES_MANIFEST:function(){return O},SERVER_FILES_MANIFEST:function(){return v},DEV_CLIENT_PAGES_MANIFEST:function(){return b},MIDDLEWARE_MANIFEST:function(){return j},DEV_MIDDLEWARE_MANIFEST:function(){return N},REACT_LOADABLE_MANIFEST:function(){return A},FONT_MANIFEST:function(){return R},SERVER_DIRECTORY:function(){return M},CONFIG_FILES:function(){return L},BUILD_ID_FILE:function(){return C},BLOCKED_PAGES:function(){return w},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_STATIC_FILES_PATH:function(){return D},STRING_LITERAL_DROP_BUNDLE:function(){return k},NEXT_BUILTIN_DOCUMENT:function(){return U},BARREL_OPTIMIZATION_PREFIX:function(){return $},CLIENT_REFERENCE_MANIFEST:function(){return B},SERVER_REFERENCE_MANIFEST:function(){return W},MIDDLEWARE_BUILD_MANIFEST:function(){return H},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return z},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Y},APP_CLIENT_INTERNALS:function(){return V},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return X},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return q},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return K},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return J},EDGE_RUNTIME_WEBPACK:function(){return Q},STATIC_PROPS_ID:function(){return ee},SERVER_PROPS_ID:function(){return et},GOOGLE_FONT_PROVIDER:function(){return en},OPTIMIZED_FONT_PROVIDERS:function(){return er},DEFAULT_SERIF_FONT:function(){return ei},DEFAULT_SANS_SERIF_FONT:function(){return eo},STATIC_STATUS_PAGES:function(){return es},TRACE_OUTPUT_VERSION:function(){return ea},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return el},RSC_MODULE_TYPES:function(){return eu},EDGE_UNSUPPORTED_NODE_APIS:function(){return ec},SYSTEM_ENTRYPOINTS:function(){return ep}});let r=n(7083)._(n(1668)),i={client:"client",server:"server",edgeServer:"edge-server"},o=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],s={[i.client]:0,[i.server]:1,[i.edgeServer]:2},a="phase-export",l="phase-production-build",u="phase-production-server",c="phase-development-server",p="phase-test",f="phase-info",d="pages-manifest.json",h="app-paths-manifest.json",m="app-path-routes-manifest.json",_="build-manifest.json",g="app-build-manifest.json",E="functions-config-manifest.json",y="subresource-integrity-manifest",S="next-font-manifest",I="export-marker.json",T="export-detail.json",x="prerender-manifest.json",P="routes-manifest.json",O="images-manifest.json",v="required-server-files.json",b="_devPagesManifest.json",j="middleware-manifest.json",N="_devMiddlewareManifest.json",A="react-loadable-manifest.json",R="font-manifest.json",M="server",L=["next.config.js","next.config.mjs"],C="BUILD_ID",w=["/_document","/_app","/_error"],F="public",D="static",k="__NEXT_DROP_CLIENT_FILE__",U="__NEXT_BUILTIN_DOCUMENT__",$="__barrel_optimize__",B="client-reference-manifest",W="server-reference-manifest",H="middleware-build-manifest",G="middleware-react-loadable-manifest",z="main",Y=""+z+"-app",V="app-pages-internals",X="react-refresh",q="amp",K="webpack",Z="polyfills",J=Symbol(Z),Q="edge-runtime-webpack",ee="__N_SSG",et="__N_SSP",en="https://fonts.googleapis.com/",er=[{url:en,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],ei={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},eo={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},es=["/500"],ea=1,el=6e3,eu={client:"client",server:"server"},ec=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],ep=new Set([z,X,q,Y]);("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)},8357:(e,t)=>{function n(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==n(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 n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}})},1668:e=>{e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},8911:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return o}});let r=n(2919),i=n(7960);function o(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},1633:(e,t)=>{function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},7889:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return s}});let r=n(1633),i=n(2919),o=n(2404);function s(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(1017),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},7960:(e,t)=>{function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},8462:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return s}});let r=n(1633),i=n(8664);function o(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,i.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function s(e){return e.replace(/\.rsc($|\?)/,"$1")}},2919:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(4681),i=n(7078)},7078:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(6520),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},4681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{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 n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),s=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),s=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},8664:(e,t)=>{function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isGroupSegment:function(){return n},PAGE_SEGMENT_KEY:function(){return r},DEFAULT_SEGMENT_KEY:function(){return i}});let r="__PAGE__",i="__DEFAULT__"},2404:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return p},SP:function(){return f},ST:function(){return d},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return _},MissingStaticPage:function(){return g},MiddlewareNotFoundError:function(){return E},stringifyError:function(){return y}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=s();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 p(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,d=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h 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 E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},274:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return i},getProperError:function(){return o}});let r=n(8357);function i(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return i(e)?e:Error((0,r.isPlainObject)(e)?JSON.stringify(e):e+"")}},6549:(e,t)=>{Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1)return o+r(e,t.locale)+" B";let s=Math.min(Math.floor(Math.log10(e)/3),n.length-1);return o+r(e=Number((e/Math.pow(1e3,s)).toPrecision(3)),t.locale)+" "+n[s]}},6520:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return i},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return s}});let r=n(8462),i=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>i.find(t=>e.startsWith(t)))}function s(e){let t,n,o;for(let r of e.split("/"))if(n=i.find(e=>r.startsWith(e))){[t,o]=e.split(n,2);break}if(!t||!n||!o)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":o="/"===t?`/${o}`:t+"/"+o;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let s=t.split("/");if(s.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);o=s.slice(0,-2).concat(o).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:o}}},8877:(e,t,n)=>{e.exports=n(2785)},3577:(e,t,n)=>{e.exports=n(8877).vendored.contexts.HtmlContext},5383:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(8911),i=n(7889);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},2809:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},9505:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return s}});let r=n(4653);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function s(e,t,n=1/0){let r,i,o;let s=0,a=0;function l(){let u=Date.now(),c=a+t-u;c<=0||s+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,a=Date.now(),void 0===r&&(s=a,r=setTimeout(l,t))}}},7083:(e,t)=>{t._=t._interop_require_default=function(e){return e&&e.__esModule?e:{default:e}}}};
\ No newline at end of file diff --git a/apps/web/.next/server/chunks/369.js b/apps/web/.next/server/chunks/369.js new file mode 100644 index 00000000..176e2246 --- /dev/null +++ b/apps/web/.next/server/chunks/369.js @@ -0,0 +1 @@ +"use strict";exports.id=369,exports.ids=[369],exports.modules={3181:(e,t,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,{prefixes:function(){return a},bootstrap:function(){return l},wait:function(){return s},error:function(){return u},warn:function(){return c},ready:function(){return d},info:function(){return g},event:function(){return p},trace:function(){return f},warnOnce:function(){return v}});let n=r(2761),a={wait:(0,n.white)((0,n.bold)("○")),error:(0,n.red)((0,n.bold)("⨯")),warn:(0,n.yellow)((0,n.bold)("⚠")),ready:"▲",info:(0,n.white)((0,n.bold)(" ")),event:(0,n.green)((0,n.bold)("✓")),trace:(0,n.magenta)((0,n.bold)("\xbb"))},o={log:"log",warn:"warn",error:"error"};function i(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in o?o[e]:"log",n=a[e];0===t.length?console[r](""):console[r](" "+n,...t)}function l(...e){console.log(" ",...e)}function s(...e){i("wait",...e)}function u(...e){i("error",...e)}function c(...e){i("warn",...e)}function d(...e){i("ready",...e)}function g(...e){i("info",...e)}function p(...e){i("event",...e)}function f(...e){i("trace",...e)}let _=new Set;function v(...e){_.has(e[0])||(_.add(e.join(" ")),c(...e))}},1405:e=>{(()=>{var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let n=r(223),a=r(172),o=r(930),i="context",l=new n.NoopContextManager;class s{constructor(){}static getInstance(){return this._instance||(this._instance=new s),this._instance}setGlobalContextManager(e){return(0,a.registerGlobal)(i,e,o.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,a.getGlobal)(i)||l}disable(){this._getContextManager().disable(),(0,a.unregisterGlobal)(i,o.DiagAPI.instance())}}t.ContextAPI=s},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let n=r(56),a=r(912),o=r(957),i=r(172);class l{constructor(){function e(e){return function(...t){let r=(0,i.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:o.DiagLogLevel.INFO})=>{var n,l,s;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=e.stack)&&void 0!==n?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let u=(0,i.getGlobal)("diag"),c=(0,a.createLogLevelDiagLogger)(null!==(l=r.logLevel)&&void 0!==l?l:o.DiagLogLevel.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!==(s=Error().stack)&&void 0!==s?s:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${e}`),c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,i.registerGlobal)("diag",c,t,!0)},t.disable=()=>{(0,i.unregisterGlobal)("diag",t)},t.createComponentLogger=e=>new n.DiagComponentLogger(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}static instance(){return this._instance||(this._instance=new l),this._instance}}t.DiagAPI=l},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let n=r(660),a=r(172),o=r(930),i="metrics";class l{constructor(){}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalMeterProvider(e){return(0,a.registerGlobal)(i,e,o.DiagAPI.instance())}getMeterProvider(){return(0,a.getGlobal)(i)||n.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,a.unregisterGlobal)(i,o.DiagAPI.instance())}}t.MetricsAPI=l},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let n=r(172),a=r(874),o=r(194),i=r(277),l=r(369),s=r(930),u="propagation",c=new a.NoopTextMapPropagator;class d{constructor(){this.createBaggage=l.createBaggage,this.getBaggage=i.getBaggage,this.getActiveBaggage=i.getActiveBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalPropagator(e){return(0,n.registerGlobal)(u,e,s.DiagAPI.instance())}inject(e,t,r=o.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=o.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.unregisterGlobal)(u,s.DiagAPI.instance())}_getGlobalPropagator(){return(0,n.getGlobal)(u)||c}}t.PropagationAPI=d},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let n=r(172),a=r(846),o=r(139),i=r(607),l=r(930),s="trace";class u{constructor(){this._proxyTracerProvider=new a.ProxyTracerProvider,this.wrapSpanContext=o.wrapSpanContext,this.isSpanContextValid=o.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getActiveSpan=i.getActiveSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalTracerProvider(e){let t=(0,n.registerGlobal)(s,this._proxyTracerProvider,l.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(s)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(s,l.DiagAPI.instance()),this._proxyTracerProvider=new a.ProxyTracerProvider}}t.TraceAPI=u},277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;let n=r(491),a=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function o(e){return e.getValue(a)||void 0}t.getBaggage=o,t.getActiveBaggage=function(){return o(n.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(a,t)},t.deleteBaggage=function(e){return e.deleteValue(a)}},993:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaggageImpl=void 0;class r{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries()).map(([e,t])=>[e,t])}setEntry(e,t){let n=new r(this._entries);return n._entries.set(e,t),n}removeEntry(e){let t=new r(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new r(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new r}}t.BaggageImpl=r},830:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataSymbol=void 0,t.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataFromString=t.createBaggage=void 0;let n=r(930),a=r(993),o=r(830),i=n.DiagAPI.instance();t.createBaggage=function(e={}){return new a.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(i.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:o.baggageEntryMetadataSymbol,toString:()=>e}}},67:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.context=void 0;let n=r(491);t.context=n.ContextAPI.getInstance()},223:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopContextManager=void 0;let n=r(780);class a{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=a},780:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ROOT_CONTEXT=t.createContextKey=void 0,t.createContextKey=function(e){return Symbol.for(e)};class r{constructor(e){let t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,n)=>{let a=new r(t._currentContext);return a._currentContext.set(e,n),a},t.deleteValue=e=>{let n=new r(t._currentContext);return n._currentContext.delete(e),n}}}t.ROOT_CONTEXT=new r},506:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diag=void 0;let n=r(930);t.diag=n.DiagAPI.instance()},56:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagComponentLogger=void 0;let n=r(172);class a{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return o("debug",this._namespace,e)}error(...e){return o("error",this._namespace,e)}info(...e){return o("info",this._namespace,e)}warn(...e){return o("warn",this._namespace,e)}verbose(...e){return o("verbose",this._namespace,e)}}function o(e,t,r){let a=(0,n.getGlobal)("diag");if(a)return r.unshift(t),a[e](...r)}t.DiagComponentLogger=a},972:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagConsoleLogger=void 0;let r=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class n{constructor(){for(let e=0;e<r.length;e++)this[r[e].n]=function(e){return function(...t){if(console){let r=console[e];if("function"!=typeof r&&(r=console.log),"function"==typeof r)return r.apply(console,t)}}}(r[e].c)}}t.DiagConsoleLogger=n},912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createLogLevelDiagLogger=void 0;let n=r(957);t.createLogLevelDiagLogger=function(e,t){function r(r,n){let a=t[r];return"function"==typeof a&&e>=n?a.bind(t):function(){}}return e<n.DiagLogLevel.NONE?e=n.DiagLogLevel.NONE:e>n.DiagLogLevel.ALL&&(e=n.DiagLogLevel.ALL),t=t||{},{error:r("error",n.DiagLogLevel.ERROR),warn:r("warn",n.DiagLogLevel.WARN),info:r("info",n.DiagLogLevel.INFO),debug:r("debug",n.DiagLogLevel.DEBUG),verbose:r("verbose",n.DiagLogLevel.VERBOSE)}}},957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagLogLevel=void 0,function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(t.DiagLogLevel||(t.DiagLogLevel={}))},172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unregisterGlobal=t.getGlobal=t.registerGlobal=void 0;let n=r(200),a=r(521),o=r(130),i=a.VERSION.split(".")[0],l=Symbol.for(`opentelemetry.js.api.${i}`),s=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var o;let i=s[l]=null!==(o=s[l])&&void 0!==o?o:{version:a.VERSION};if(!n&&i[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(i.version!==a.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${i.version} for ${e} does not match previously registered API v${a.VERSION}`);return r.error(t.stack||t.message),!1}return i[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${a.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let n=null===(t=s[l])||void 0===t?void 0:t.version;if(n&&(0,o.isCompatible)(n))return null===(r=s[l])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${a.VERSION}.`);let r=s[l];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let n=r(521),a=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function o(e){let t=new Set([e]),r=new Set,n=e.match(a);if(!n)return()=>!1;let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(t){return t===e};function i(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(a);if(!n)return i(e);let l={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=l.prerelease||o.major!==l.major?i(e):0===o.major?o.minor===l.minor&&o.patch<=l.patch?(t.add(e),!0):i(e):o.minor<=l.minor?(t.add(e),!0):i(e)}}t._makeCompatibilityCheck=o,t.isCompatible=o(n.VERSION)},886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.metrics=void 0;let n=r(653);t.metrics=n.MetricsAPI.getInstance()},901:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueType=void 0,function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"}(t.ValueType||(t.ValueType={}))},102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createNoopMeter=t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=t.NOOP_OBSERVABLE_GAUGE_METRIC=t.NOOP_OBSERVABLE_COUNTER_METRIC=t.NOOP_UP_DOWN_COUNTER_METRIC=t.NOOP_HISTOGRAM_METRIC=t.NOOP_COUNTER_METRIC=t.NOOP_METER=t.NoopObservableUpDownCounterMetric=t.NoopObservableGaugeMetric=t.NoopObservableCounterMetric=t.NoopObservableMetric=t.NoopHistogramMetric=t.NoopUpDownCounterMetric=t.NoopCounterMetric=t.NoopMetric=t.NoopMeter=void 0;class r{constructor(){}createHistogram(e,r){return t.NOOP_HISTOGRAM_METRIC}createCounter(e,r){return t.NOOP_COUNTER_METRIC}createUpDownCounter(e,r){return t.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(e,r){return t.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(e,r){return t.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(e,r){return t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}t.NoopMeter=r;class n{}t.NoopMetric=n;class a extends n{add(e,t){}}t.NoopCounterMetric=a;class o extends n{add(e,t){}}t.NoopUpDownCounterMetric=o;class i extends n{record(e,t){}}t.NoopHistogramMetric=i;class l{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=l;class s extends l{}t.NoopObservableCounterMetric=s;class u extends l{}t.NoopObservableGaugeMetric=u;class c extends l{}t.NoopObservableUpDownCounterMetric=c,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new a,t.NOOP_HISTOGRAM_METRIC=new i,t.NOOP_UP_DOWN_COUNTER_METRIC=new o,t.NOOP_OBSERVABLE_COUNTER_METRIC=new s,t.NOOP_OBSERVABLE_GAUGE_METRIC=new u,t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new c,t.createNoopMeter=function(){return t.NOOP_METER}},660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NOOP_METER_PROVIDER=t.NoopMeterProvider=void 0;let n=r(102);class a{getMeter(e,t,r){return n.NOOP_METER}}t.NoopMeterProvider=a,t.NOOP_METER_PROVIDER=new a},200:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(46),t)},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._globalThis=void 0,t._globalThis="object"==typeof globalThis?globalThis:global},46:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(651),t)},939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propagation=void 0;let n=r(181);t.propagation=n.PropagationAPI.getInstance()},874:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTextMapPropagator=void 0;class r{inject(e,t){}extract(e,t){return e}fields(){return[]}}t.NoopTextMapPropagator=r},194:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTextMapSetter=t.defaultTextMapGetter=void 0,t.defaultTextMapGetter={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},t.defaultTextMapSetter={set(e,t,r){null!=e&&(e[t]=r)}}},845:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trace=void 0;let n=r(997);t.trace=n.TraceAPI.getInstance()},403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonRecordingSpan=void 0;let n=r(476);class a{constructor(e=n.INVALID_SPAN_CONTEXT){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}t.NonRecordingSpan=a},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let n=r(491),a=r(607),o=r(403),i=r(139),l=n.ContextAPI.getInstance();class s{startSpan(e,t,r=l.active()){if(null==t?void 0:t.root)return new o.NonRecordingSpan;let n=r&&(0,a.getSpanContext)(r);return"object"==typeof n&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,i.isSpanContextValid)(n)?new o.NonRecordingSpan(n):new o.NonRecordingSpan}startActiveSpan(e,t,r,n){let o,i,s;if(arguments.length<2)return;2==arguments.length?s=t:3==arguments.length?(o=t,s=r):(o=t,i=r,s=n);let u=null!=i?i:l.active(),c=this.startSpan(e,o,u),d=(0,a.setSpan)(u,c);return l.with(d,s,void 0,c)}}t.NoopTracer=s},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let n=r(614);class a{getTracer(e,t,r){return new n.NoopTracer}}t.NoopTracerProvider=a},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let n=new(r(614)).NoopTracer;class a{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):n}}t.ProxyTracer=a},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let n=r(125),a=new(r(124)).NoopTracerProvider;class o{getTracer(e,t,r){var a;return null!==(a=this.getDelegateTracer(e,t,r))&&void 0!==a?a:new n.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:a}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)}}t.ProxyTracerProvider=o},996:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SamplingDecision=void 0,function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(t.SamplingDecision||(t.SamplingDecision={}))},607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSpanContext=t.setSpanContext=t.deleteSpan=t.setSpan=t.getActiveSpan=t.getSpan=void 0;let n=r(780),a=r(403),o=r(491),i=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function l(e){return e.getValue(i)||void 0}function s(e,t){return e.setValue(i,t)}t.getSpan=l,t.getActiveSpan=function(){return l(o.ContextAPI.getInstance().active())},t.setSpan=s,t.deleteSpan=function(e){return e.deleteValue(i)},t.setSpanContext=function(e,t){return s(e,new a.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.spanContext()}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceStateImpl=void 0;let n=r(564);class a{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce((e,t)=>{let r=t.trim(),a=r.indexOf("=");if(-1!==a){let o=r.slice(0,a),i=r.slice(a+1,t.length);(0,n.validateKey)(o)&&(0,n.validateValue)(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new a;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=a},564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateValue=t.validateKey=void 0;let r="[_0-9a-z-*/]",n=`[a-z]${r}{0,255}`,a=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,o=RegExp(`^(?:${n}|${a})$`),i=/^[ -~]{0,255}[!-~]$/,l=/,|=/;t.validateKey=function(e){return o.test(e)},t.validateValue=function(e){return i.test(e)&&!l.test(e)}},98:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTraceState=void 0;let n=r(325);t.createTraceState=function(e){return new n.TraceStateImpl(e)}},476:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=void 0;let n=r(475);t.INVALID_SPANID="0000000000000000",t.INVALID_TRACEID="00000000000000000000000000000000",t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:n.TraceFlags.NONE}},357:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanKind=void 0,function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(t.SpanKind||(t.SpanKind={}))},139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapSpanContext=t.isSpanContextValid=t.isValidSpanId=t.isValidTraceId=void 0;let n=r(476),a=r(403),o=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function l(e){return o.test(e)&&e!==n.INVALID_TRACEID}function s(e){return i.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=l,t.isValidSpanId=s,t.isSpanContextValid=function(e){return l(e.traceId)&&s(e.spanId)},t.wrapSpanContext=function(e){return new a.NonRecordingSpan(e)}},847:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanStatusCode=void 0,function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(t.SpanStatusCode||(t.SpanStatusCode={}))},475:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceFlags=void 0,function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(t.TraceFlags||(t.TraceFlags={}))},521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="1.6.0"}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}},i=!0;try{t[e].call(o.exports,o,o.exports,n),i=!1}finally{i&&delete r[e]}return o.exports}n.ab=__dirname+"/";var a={};(()=>{Object.defineProperty(a,"__esModule",{value:!0}),a.trace=a.propagation=a.metrics=a.diag=a.context=a.INVALID_SPAN_CONTEXT=a.INVALID_TRACEID=a.INVALID_SPANID=a.isValidSpanId=a.isValidTraceId=a.isSpanContextValid=a.createTraceState=a.TraceFlags=a.SpanStatusCode=a.SpanKind=a.SamplingDecision=a.ProxyTracerProvider=a.ProxyTracer=a.defaultTextMapSetter=a.defaultTextMapGetter=a.ValueType=a.createNoopMeter=a.DiagLogLevel=a.DiagConsoleLogger=a.ROOT_CONTEXT=a.createContextKey=a.baggageEntryMetadataFromString=void 0;var e=n(369);Object.defineProperty(a,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=n(780);Object.defineProperty(a,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(a,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=n(972);Object.defineProperty(a,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var o=n(957);Object.defineProperty(a,"DiagLogLevel",{enumerable:!0,get:function(){return o.DiagLogLevel}});var i=n(102);Object.defineProperty(a,"createNoopMeter",{enumerable:!0,get:function(){return i.createNoopMeter}});var l=n(901);Object.defineProperty(a,"ValueType",{enumerable:!0,get:function(){return l.ValueType}});var s=n(194);Object.defineProperty(a,"defaultTextMapGetter",{enumerable:!0,get:function(){return s.defaultTextMapGetter}}),Object.defineProperty(a,"defaultTextMapSetter",{enumerable:!0,get:function(){return s.defaultTextMapSetter}});var u=n(125);Object.defineProperty(a,"ProxyTracer",{enumerable:!0,get:function(){return u.ProxyTracer}});var c=n(846);Object.defineProperty(a,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var d=n(996);Object.defineProperty(a,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var g=n(357);Object.defineProperty(a,"SpanKind",{enumerable:!0,get:function(){return g.SpanKind}});var p=n(847);Object.defineProperty(a,"SpanStatusCode",{enumerable:!0,get:function(){return p.SpanStatusCode}});var f=n(475);Object.defineProperty(a,"TraceFlags",{enumerable:!0,get:function(){return f.TraceFlags}});var _=n(98);Object.defineProperty(a,"createTraceState",{enumerable:!0,get:function(){return _.createTraceState}});var v=n(139);Object.defineProperty(a,"isSpanContextValid",{enumerable:!0,get:function(){return v.isSpanContextValid}}),Object.defineProperty(a,"isValidTraceId",{enumerable:!0,get:function(){return v.isValidTraceId}}),Object.defineProperty(a,"isValidSpanId",{enumerable:!0,get:function(){return v.isValidSpanId}});var S=n(476);Object.defineProperty(a,"INVALID_SPANID",{enumerable:!0,get:function(){return S.INVALID_SPANID}}),Object.defineProperty(a,"INVALID_TRACEID",{enumerable:!0,get:function(){return S.INVALID_TRACEID}}),Object.defineProperty(a,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return S.INVALID_SPAN_CONTEXT}});let b=n(67);Object.defineProperty(a,"context",{enumerable:!0,get:function(){return b.context}});let h=n(506);Object.defineProperty(a,"diag",{enumerable:!0,get:function(){return h.diag}});let E=n(886);Object.defineProperty(a,"metrics",{enumerable:!0,get:function(){return E.metrics}});let O=n(939);Object.defineProperty(a,"propagation",{enumerable:!0,get:function(){return O.propagation}});let P=n(845);Object.defineProperty(a,"trace",{enumerable:!0,get:function(){return P.trace}}),a.default={context:b.context,diag:h.diag,metrics:E.metrics,propagation:O.propagation,trace:P.trace}})(),e.exports=a})()},9226:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NEXT_QUERY_PARAM_PREFIX:function(){return r},PRERENDER_REVALIDATE_HEADER:function(){return n},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},RSC_PREFETCH_SUFFIX:function(){return o},RSC_SUFFIX:function(){return i},NEXT_DATA_SUFFIX:function(){return l},NEXT_META_SUFFIX:function(){return s},NEXT_BODY_SUFFIX:function(){return u},NEXT_CACHE_TAGS_HEADER:function(){return c},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return g},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_LENGTH:function(){return f},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return _},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return v},CACHE_ONE_YEAR:function(){return S},MIDDLEWARE_FILENAME:function(){return b},MIDDLEWARE_LOCATION_REGEXP:function(){return h},INSTRUMENTATION_HOOK_FILENAME:function(){return E},PAGES_DIR_ALIAS:function(){return O},DOT_NEXT_ALIAS:function(){return P},ROOT_DIR_ALIAS:function(){return R},APP_DIR_ALIAS:function(){return T},RSC_MOD_REF_PROXY_ALIAS:function(){return m},RSC_ACTION_VALIDATE_ALIAS:function(){return N},RSC_ACTION_PROXY_ALIAS:function(){return x},RSC_ACTION_ENCRYPTION_ALIAS:function(){return y},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return C},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return A},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return I},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return M},SERVER_PROPS_SSG_CONFLICT:function(){return D},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return L},SERVER_PROPS_EXPORT_ERROR:function(){return w},GSP_NO_RETURNED_VALUE:function(){return j},GSSP_NO_RETURNED_VALUE:function(){return V},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return B},GSSP_COMPONENT_MEMBER_ERROR:function(){return G},NON_STANDARD_NODE_ENV:function(){return U},SSG_FALLBACK_EXPORT_ERROR:function(){return H},ESLINT_DEFAULT_DIRS:function(){return F},ESLINT_PROMPT_VALUES:function(){return $},SERVER_RUNTIME:function(){return X},WEBPACK_LAYERS:function(){return K},WEBPACK_RESOURCE_QUERIES:function(){return W}});let r="nxtP",n="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",o=".prefetch.rsc",i=".rsc",l=".json",s=".meta",u=".body",c="x-next-cache-tags",d="x-next-cache-soft-tags",g="x-next-revalidated-tags",p="x-next-revalidate-tag-token",f=256,_=1024,v="_N_T_",S=31536e3,b="middleware",h=`(?:src/)?${b}`,E="instrumentation",O="private-next-pages",P="private-dot-next",R="private-next-root-dir",T="private-next-app-dir",m="next/dist/build/webpack/loaders/next-flight-loader/module-proxy",N="private-next-rsc-action-validate",x="private-next-rsc-action-proxy",y="private-next-rsc-action-encryption",C="private-next-rsc-action-client-wrapper",A="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",I="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",M="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",D="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",L="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",w="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",j="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",V="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",B="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",G="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",U='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',H="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",F=["app","pages","components","lib","src"],$=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],X={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},k={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},K={...k,GROUP:{server:[k.reactServerComponents,k.actionBrowser,k.appMetadataRoute,k.appRouteHandler],nonClientServerTarget:[k.middleware,k.api],app:[k.reactServerComponents,k.actionBrowser,k.appMetadataRoute,k.appRouteHandler,k.serverSideRendering,k.appPagesBrowser,k.shared]}},W={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},2761:(e,t)=>{var 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,{reset:function(){return s},bold:function(){return u},dim:function(){return c},italic:function(){return d},underline:function(){return g},inverse:function(){return p},hidden:function(){return f},strikethrough:function(){return _},black:function(){return v},red:function(){return S},green:function(){return b},yellow:function(){return h},blue:function(){return E},magenta:function(){return O},purple:function(){return P},cyan:function(){return R},white:function(){return T},gray:function(){return m},bgBlack:function(){return N},bgRed:function(){return x},bgGreen:function(){return y},bgYellow:function(){return C},bgBlue:function(){return A},bgMagenta:function(){return I},bgCyan:function(){return M},bgWhite:function(){return D}});let{env:n,stdout:a}=(null==(r=globalThis)?void 0:r.process)??{},o=n&&!n.NO_COLOR&&(n.FORCE_COLOR||(null==a?void 0:a.isTTY)&&!n.CI&&"dumb"!==n.TERM),i=(e,t,r,n)=>{let a=e.substring(0,n)+r,o=e.substring(n+t.length),l=o.indexOf(t);return~l?a+i(o,t,r,l):a+o},l=(e,t,r=e)=>o?n=>{let a=""+n,o=a.indexOf(t,e.length);return~o?e+i(a,t,r,o)+t:e+a+t}:String,s=o?e=>`\x1b[0m${e}\x1b[0m`:String,u=l("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),c=l("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),d=l("\x1b[3m","\x1b[23m"),g=l("\x1b[4m","\x1b[24m"),p=l("\x1b[7m","\x1b[27m"),f=l("\x1b[8m","\x1b[28m"),_=l("\x1b[9m","\x1b[29m"),v=l("\x1b[30m","\x1b[39m"),S=l("\x1b[31m","\x1b[39m"),b=l("\x1b[32m","\x1b[39m"),h=l("\x1b[33m","\x1b[39m"),E=l("\x1b[34m","\x1b[39m"),O=l("\x1b[35m","\x1b[39m"),P=l("\x1b[38;2;173;127;168m","\x1b[39m"),R=l("\x1b[36m","\x1b[39m"),T=l("\x1b[37m","\x1b[39m"),m=l("\x1b[90m","\x1b[39m"),N=l("\x1b[40m","\x1b[49m"),x=l("\x1b[41m","\x1b[49m"),y=l("\x1b[42m","\x1b[49m"),C=l("\x1b[43m","\x1b[49m"),A=l("\x1b[44m","\x1b[49m"),I=l("\x1b[45m","\x1b[49m"),M=l("\x1b[46m","\x1b[49m"),D=l("\x1b[47m","\x1b[49m")},1498:(e,t)=>{var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},9308:(e,t,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,{validateRevalidate:function(){return s},validateTags:function(){return u},addImplicitTags:function(){return d},patchFetch:function(){return p}});let n=r(7087),a=r(8554),o=r(9226),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(3181));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function s(e,t){try{let r;if(!1===e)r=e;else if("number"==typeof e&&!isNaN(e)&&e>-1)r=e;else if(void 0!==e)throw Error(`Invalid revalidate value "${e}" on "${t}", must be a non-negative number or "false"`);return r}catch(e){if(e instanceof Error&&e.message.includes("Invalid revalidate"))throw e;return}}function u(e,t){let r=[],n=[];for(let t of e)"string"!=typeof t?n.push({tag:t,reason:"invalid type, must be a string"}):t.length>o.NEXT_CACHE_TAG_MAX_LENGTH?n.push({tag:t,reason:`exceeded max length of ${o.NEXT_CACHE_TAG_MAX_LENGTH}`}):r.push(t);if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}let c=e=>{let t=["/layout"];if(e.startsWith("/")){let r=e.split("/");for(let e=1;e<r.length+1;e++){let n=r.slice(0,e).join("/");n&&(n.endsWith("/page")||n.endsWith("/route")||(n=`${n}${n.endsWith("/")?"":"/"}layout`),t.push(n))}}return t};function d(e){var t,r;let n=[],{pagePath:a,urlPathname:i}=e;if(Array.isArray(e.tags)||(e.tags=[]),a)for(let r of c(a))r=`${o.NEXT_CACHE_IMPLICIT_TAG_ID}${r}`,(null==(t=e.tags)?void 0:t.includes(r))||e.tags.push(r),n.push(r);if(i){let t=new URL(i,"http://n").pathname,a=`${o.NEXT_CACHE_IMPLICIT_TAG_ID}${t}`;(null==(r=e.tags)?void 0:r.includes(a))||e.tags.push(a),n.push(a)}return n}function g(e,t){if(!e)return;e.fetchMetrics||(e.fetchMetrics=[]);let r=["url","status","method"];e.fetchMetrics.some(e=>r.every(r=>e[r]===t[r]))||e.fetchMetrics.push({url:t.url,cacheStatus:t.cacheStatus,cacheReason:t.cacheReason,status:t.status,method:t.method,start:t.start,end:Date.now(),idx:e.nextFetchId||0})}function p({serverHooks:e,staticGenerationAsyncStorage:t}){if(globalThis._nextOriginalFetch||(globalThis._nextOriginalFetch=globalThis.fetch),globalThis.fetch.__nextPatched)return;let{DynamicServerError:r}=e,l=globalThis._nextOriginalFetch;globalThis.fetch=async(e,c)=>{var p,f;let _;try{(_=new URL(e instanceof Request?e.url:e)).username="",_.password=""}catch{_=void 0}let v=(null==_?void 0:_.href)??"",S=Date.now(),b=(null==c?void 0:null==(p=c.method)?void 0:p.toUpperCase())||"GET",h=(null==(f=null==c?void 0:c.next)?void 0:f.internal)===!0,E="1"===process.env.NEXT_OTEL_FETCH_DISABLED;return await (0,a.getTracer)().trace(h?n.NextNodeServerSpan.internalFetch:n.AppRenderSpan.fetch,{hideSpan:E,kind:a.SpanKind.CLIENT,spanName:["fetch",b,v].filter(Boolean).join(" "),attributes:{"http.url":v,"http.method":b,"net.peer.name":null==_?void 0:_.hostname,"net.peer.port":(null==_?void 0:_.port)||void 0}},async()=>{var n;let a,p,f;let _=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),b=e&&"object"==typeof e&&"string"==typeof e.method,E=t=>(null==c?void 0:c[t])||(b?e[t]:null);if(!_||h||_.isDraftMode)return l(e,c);let O=t=>{var r,n,a;return void 0!==(null==c?void 0:null==(r=c.next)?void 0:r[t])?null==c?void 0:null==(n=c.next)?void 0:n[t]:b?null==(a=e.next)?void 0:a[t]:void 0},P=O("revalidate"),R=u(O("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(R))for(let e of(_.tags||(_.tags=[]),R))_.tags.includes(e)||_.tags.push(e);let T=d(_),m="only-cache"===_.fetchCache,N="force-cache"===_.fetchCache,x="default-cache"===_.fetchCache,y="default-no-store"===_.fetchCache,C="only-no-store"===_.fetchCache,A="force-no-store"===_.fetchCache,I=!!_.isUnstableNoStore,M=E("cache"),D="";"string"==typeof M&&void 0!==P&&(b&&"default"===M||i.warn(`fetch for ${v} on ${_.urlPathname} specified "cache: ${M}" and "revalidate: ${P}", only one should be specified.`),M=void 0),"force-cache"===M?P=!1:("no-cache"===M||"no-store"===M||A||C)&&(P=0),("no-cache"===M||"no-store"===M)&&(D=`cache: ${M}`),f=s(P,_.urlPathname);let L=E("headers"),w="function"==typeof(null==L?void 0:L.get)?L:new Headers(L||{}),j=w.get("authorization")||w.get("cookie"),V=!["get","head"].includes((null==(n=E("method"))?void 0:n.toLowerCase())||"get"),B=(j||V)&&0===_.revalidate;if(A&&(D="fetchCache = force-no-store"),C){if("force-cache"===M||void 0!==f&&(!1===f||f>0))throw Error(`cache: 'force-cache' used on fetch for ${v} with 'export const fetchCache = 'only-no-store'`);D="fetchCache = only-no-store"}if(m&&"no-store"===M)throw Error(`cache: 'no-store' used on fetch for ${v} with 'export const fetchCache = 'only-cache'`);N&&(void 0===P||0===P)&&(D="fetchCache = force-cache",f=!1),void 0===f?x?(f=!1,D="fetchCache = default-cache"):B?(f=0,D="auto no cache"):y?(f=0,D="fetchCache = default-no-store"):I?(f=0,D="noStore call"):(D="auto cache",f="boolean"!=typeof _.revalidate&&void 0!==_.revalidate&&_.revalidate):D||(D=`revalidate: ${f}`),_.forceStatic&&0===f||B||void 0!==_.revalidate&&("number"!=typeof f||!1!==_.revalidate&&("number"!=typeof _.revalidate||!(f<_.revalidate)))||(0===f&&(null==_.postpone||_.postpone.call(_,"revalidate: 0")),_.revalidate=f);let G="number"==typeof f&&f>0||!1===f;if(_.incrementalCache&&G)try{a=await _.incrementalCache.fetchCacheKey(v,b?e:c)}catch(t){console.error("Failed to generate cache key for",e)}let U=_.nextFetchId??1;_.nextFetchId=U+1;let H="number"!=typeof f?o.CACHE_ONE_YEAR:f,F=async(t,r)=>{let n=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(b){let t=e,r={body:t._ogBody||t.body};for(let e of n)r[e]=t[e];e=new Request(t.url,r)}else if(c){let e=c;for(let t of(c={body:c._ogBody||c.body},n))c[t]=e[t]}let o={...c,next:{...null==c?void 0:c.next,fetchType:"origin",fetchIdx:U}};return l(e,o).then(async n=>{if(t||g(_,{start:S,url:v,cacheReason:r||D,cacheStatus:0===f||r?"skip":"miss",status:n.status,method:o.method||"GET"}),200===n.status&&_.incrementalCache&&a&&G){let t=Buffer.from(await n.arrayBuffer());try{await _.incrementalCache.set(a,{kind:"FETCH",data:{headers:Object.fromEntries(n.headers.entries()),body:t.toString("base64"),status:n.status,url:n.url},revalidate:H},{fetchCache:!0,revalidate:f,fetchUrl:v,fetchIdx:U,tags:R})}catch(t){console.warn("Failed to set fetch cache",e,t)}let r=new Response(t,{headers:new Headers(n.headers),status:n.status});return Object.defineProperty(r,"url",{value:n.url}),r}return n})},$=()=>Promise.resolve();if(a&&_.incrementalCache){$=await _.incrementalCache.lock(a);let e=_.isOnDemandRevalidate?null:await _.incrementalCache.get(a,{kindHint:"fetch",revalidate:f,fetchUrl:v,fetchIdx:U,tags:R,softTags:T});if(e?await $():p="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(_.isRevalidate&&e.isStale)){e.isStale&&(_.pendingRevalidates??={},_.pendingRevalidates[a]||(_.pendingRevalidates[a]=F(!0).catch(console.error)));let t=e.value.data;g(_,{start:S,url:v,cacheReason:D,cacheStatus:"hit",status:t.status||200,method:(null==c?void 0:c.method)||"GET"});let r=new Response(Buffer.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}if(_.isStaticGeneration&&c&&"object"==typeof c){let{cache:t}=c;if(!_.forceStatic&&"no-store"===t){let t=`no-store fetch ${e}${_.urlPathname?` ${_.urlPathname}`:""}`;null==_.postpone||_.postpone.call(_,t),_.revalidate=0;let n=new r(t);_.dynamicUsageErr=n,_.dynamicUsageDescription=t}let n="next"in c,{next:a={}}=c;if("number"==typeof a.revalidate&&(void 0===_.revalidate||"number"==typeof _.revalidate&&a.revalidate<_.revalidate)){if(!_.forceDynamic&&!_.forceStatic&&0===a.revalidate){let t=`revalidate: 0 fetch ${e}${_.urlPathname?` ${_.urlPathname}`:""}`;null==_.postpone||_.postpone.call(_,t);let n=new r(t);_.dynamicUsageErr=n,_.dynamicUsageDescription=t}_.forceStatic&&0===a.revalidate||(_.revalidate=a.revalidate)}n&&delete c.next}return F(!1,p).finally($)})},globalThis.fetch.__nextGetStaticStore=()=>t,globalThis.fetch.__nextPatched=!0}},7087:(e,t)=>{var r,n,a,o,i,l,s,u,c,d,g;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NextVanillaSpanAllowlist:function(){return p},BaseServerSpan:function(){return r},LoadComponentsSpan:function(){return n},NextServerSpan:function(){return a},NextNodeServerSpan:function(){return o},StartServerSpan:function(){return i},RenderSpan:function(){return l},RouterSpan:function(){return u},AppRenderSpan:function(){return s},NodeSpan:function(){return c},AppRouteRouteHandlersSpan:function(){return d},ResolveMetadataSpan:function(){return g}}),function(e){e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404"}(r||(r={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(n||(n={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(a||(a={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch"}(o||(o={})),(i||(i={})).startServer="startServer.startServer",function(e){e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult"}(l||(l={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(s||(s={})),(u||(u={})).executeRoute="Router.executeRoute",(c||(c={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(g||(g={}));let p=["BaseServer.handleRequest","Render.getServerSideProps","Render.getStaticProps","AppRender.fetch","AppRender.getBodyResult","Render.renderDocument","Node.runHandler","AppRouteRouteHandlers.runHandler","ResolveMetadata.generateMetadata","ResolveMetadata.generateViewport","NextNodeServer.findPageComponents","NextNodeServer.getLayoutOrPageModule"]},8554:(e,t,r)=>{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,{getTracer:function(){return b},SpanStatusCode:function(){return s},SpanKind:function(){return u}});let a=r(7087);try{n=r(1405)}catch(e){n=r(1405)}let{context:o,propagation:i,trace:l,SpanStatusCode:s,SpanKind:u,ROOT_CONTEXT:c}=n,d=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,g=(e,t)=>{(null==t?void 0:t.bubble)===!0?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:s.ERROR,message:null==t?void 0:t.message})),e.end()},p=new Map,f=n.createContextKey("next.rootSpanId"),_=0,v=()=>_++;class S{getTracerInstance(){return l.getTracer("next.js","0.0.1")}getContext(){return o}getActiveScopeSpan(){return l.getSpan(null==o?void 0:o.active())}withPropagatedContext(e,t,r){let n=o.active();if(l.getSpanContext(n))return t();let a=i.extract(n,e,r);return o.with(a,t)}trace(...e){var t;let[r,n,i]=e,{fn:s,options:u}="function"==typeof n?{fn:n,options:{}}:{fn:i,options:{...n}};if(!a.NextVanillaSpanAllowlist.includes(r)&&"1"!==process.env.NEXT_OTEL_VERBOSE||u.hideSpan)return s();let _=u.spanName??r,S=this.getSpanContext((null==u?void 0:u.parentSpan)??this.getActiveScopeSpan()),b=!1;S?(null==(t=l.getSpanContext(S))?void 0:t.isRemote)&&(b=!0):(S=c,b=!0);let h=v();return u.attributes={"next.span_name":_,"next.span_type":r,...u.attributes},o.with(S.setValue(f,h),()=>this.getTracerInstance().startActiveSpan(_,u,e=>{let t=()=>{p.delete(h)};b&&p.set(h,new Map(Object.entries(u.attributes??{})));try{if(s.length>1)return s(e,t=>g(e,t));let r=s(e);if(d(r))return r.then(t=>(e.end(),t)).catch(t=>{throw g(e,t),t}).finally(t);return e.end(),t(),r}catch(r){throw g(e,r),t(),r}}))}wrap(...e){let t=this,[r,n,i]=3===e.length?e:[e[0],{},e[1]];return a.NextVanillaSpanAllowlist.includes(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof i&&(e=e.apply(this,arguments));let a=arguments.length-1,l=arguments[a];if("function"!=typeof l)return t.trace(r,e,()=>i.apply(this,arguments));{let n=t.getContext().bind(o.active(),l);return t.trace(r,e,(e,t)=>(arguments[a]=function(e){return null==t||t(e),n.apply(this,arguments)},i.apply(this,arguments)))}}:i}startSpan(...e){let[t,r]=e,n=this.getSpanContext((null==r?void 0:r.parentSpan)??this.getActiveScopeSpan());return this.getTracerInstance().startSpan(t,r,n)}getSpanContext(e){return e?l.setSpan(o.active(),e):void 0}getRootSpanAttributes(){let e=o.active().getValue(f);return p.get(e)}}let b=(()=>{let e=new S;return()=>e})()}};
\ No newline at end of file diff --git a/apps/web/.next/server/chunks/38.js b/apps/web/.next/server/chunks/38.js new file mode 100644 index 00000000..09e84313 --- /dev/null +++ b/apps/web/.next/server/chunks/38.js @@ -0,0 +1 @@ +exports.id=38,exports.ids=[38],exports.modules={1608:e=>{e.exports={style:{fontFamily:"'__Inter_aaf875', '__Inter_Fallback_aaf875'",fontStyle:"normal"},className:"__className_aaf875",variable:"__variable_aaf875"}},9517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return l}});let n=r(8800),o=r(7294);function l(e,t){return(0,o.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)},2641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let n=r(9489);async function o(e,t){let r=(0,n.getServerActionDispatcher)();if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return u}});let n=r(3810),o=r(914),l="next-route-announcer";function u(e){let{tree:t}=e,[r,u]=(0,n.useState)(null);(0,n.useEffect)(()=>(u(function(){var e;let t=document.getElementsByName(l)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(l);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(l)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),s=(0,n.useRef)();return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&i(e),s.current=e},[t]),r?(0,o.createPortal)(a,r):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)},2848:(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,{RSC_HEADER:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH_HEADER:function(){return l},NEXT_URL:function(){return u},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_VARY_HEADER:function(){return i},FLIGHT_PARAMETERS:function(){return s},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_DID_POSTPONE_HEADER:function(){return d}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",l="Next-Router-Prefetch",u="Next-Url",a="text/x-component",i=r+", "+o+", "+l+", "+u,s=[[r],[o],[l]],c="_rsc",d="x-nextjs-postponed";("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)},9489:(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,{getServerActionDispatcher:function(){return O},urlToUrlWithoutFlightMarker:function(){return S},createEmptyCacheNode:function(){return T},default:function(){return N}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7874),a=r(4967),i=r(5458),s=r(7321),c=r(1274),d=r(6225),f=r(4782),p=r(8866),h=r(9517),y=r(2023),_=r(5369),b=r(3567),g=r(8937),v=r(2848),m=r(5084),j=r(8977),P=null,R=null;function O(){return R}let E={};function S(e){let t=new URL(e,location.origin);return t.searchParams.delete(v.NEXT_RSC_UNION_QUERY),t}function x(e){return e.origin!==window.location.origin}function M(e){let{appRouterState:t,sync:r}=e;return(0,l.useInsertionEffect)(()=>{let{tree:e,pushRef:n,canonicalUrl:o}=t,l={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};n.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(l,"",o)):window.history.replaceState(l,"",o),r(t)},[t,r]),null}function T(){return{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map}}function w(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function C(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,l.useDeferredValue)(r,o)}function A(e){let t,{buildId:r,initialHead:n,initialTree:i,initialCanonicalUrl:d,initialSeedData:v,assetPrefix:O,missingSlots:S}=e,T=(0,l.useMemo)(()=>(0,f.createInitialRouterState)({buildId:r,initialSeedData:v,initialCanonicalUrl:d,initialTree:i,initialParallelRoutes:P,isServer:!0,location:null,initialHead:n}),[r,v,d,i,n]),[A,N,U]=(0,c.useReducerWithReduxDevtools)(T);(0,l.useEffect)(()=>{P=null},[]);let{canonicalUrl:F}=(0,c.useUnwrapState)(A),{searchParams:I,pathname:D}=(0,l.useMemo)(()=>{let e=new URL(F,"http://n");return{searchParams:e.searchParams,pathname:(0,j.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),H=(0,l.useCallback)((e,t,r)=>{(0,l.startTransition)(()=>{N({type:a.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r})})},[N]),L=(0,l.useCallback)((e,t,r)=>{let n=new URL((0,h.addBasePath)(e),location.href);return N({type:a.ACTION_NAVIGATE,url:n,isExternalUrl:x(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t})},[N]);R=(0,l.useCallback)(e=>{(0,l.startTransition)(()=>{N({...e,type:a.ACTION_SERVER_ACTION})})},[N]);let k=(0,l.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let r=new URL((0,h.addBasePath)(e),window.location.href);x(r)||(0,l.startTransition)(()=>{var e;N({type:a.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var r;L(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var r;L(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,l.startTransition)(()=>{N({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[N,L]);(0,l.useEffect)(()=>{window.next&&(window.next.router=k)},[k]),(0,l.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&N({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[N]);let{pushRef:G}=(0,c.useUnwrapState)(A);if(G.mpaNavigation){if(E.pendingMpaPath!==F){let e=window.location;G.pendingPush?e.assign(F):e.replace(F),E.pendingMpaPath=F}(0,l.use)((0,g.createInfinitePromise)())}(0,l.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{let t=window.location.href;(0,l.startTransition)(()=>{N({type:a.ACTION_RESTORE,url:new URL(null!=e?e:t,t),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=w(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=w(e),o&&r(o)),t(e,n,o)};let n=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,l.startTransition)(()=>{N({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[N]);let{cache:B,tree:z,nextUrl:W,focusAndScrollRef:K}=(0,c.useUnwrapState)(A),V=(0,l.useMemo)(()=>(0,b.findHeadInCache)(B,z[1]),[B,z]);if(null!==V){let[e,r]=V;t=(0,o.jsx)(C,{headCacheNode:e},r)}else t=null;let X=(0,o.jsxs)(_.RedirectBoundary,{children:[t,B.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:z})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{appRouterState:(0,c.useUnwrapState)(A),sync:U}),(0,o.jsx)(s.PathnameContext.Provider,{value:D,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:I,children:(0,o.jsx)(u.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:H,tree:z,focusAndScrollRef:K,nextUrl:W},children:(0,o.jsx)(u.AppRouterContext.Provider,{value:k,children:(0,o.jsx)(u.LayoutRouterContext.Provider,{value:{childNodes:B.parallelRoutes,tree:z,url:F},children:X})})})})})]})}function N(e){let{globalErrorComponent:t,...r}=e;return(0,o.jsx)(d.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(A,{...r})})}("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)},7391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return l}});let n=r(2768),o=r(4749);function l(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new n.BailoutToCSRError(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)},6515:(e,t,r)=>{"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(3444),r(3810),("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)},6225:(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,{ErrorBoundaryHandler:function(){return c},GlobalError:function(){return d},default:function(){return f},ErrorBoundary:function(){return p}});let n=r(3444),o=r(7685),l=n._(r(3810)),u=r(7435),a=r(2241),i={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"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e;if("function"==typeof fetch.__nextGetStaticStore){var r;let e=null==(r=fetch.__nextGetStaticStore())?void 0:r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class c extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:i.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:i.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:i.text,children:"Digest: "+r}):null]})})]})]})}let f=d;function p(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:l}=e,a=(0,u.usePathname)();return t?(0,o.jsx)(c,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:l}):(0,o.jsx)(o.Fragment,{children: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)},999:(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,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("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)},8937:(e,t)=>{"use strict";let r;function n(){return r||(r=new Promise(()=>{})),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{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)},2241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return l}});let n=r(1951),o=r(8591);function l(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,n.isNotFoundError)(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)},5964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}}),r(3444);let n=r(4816),o=r(7685),l=n._(r(3810));r(914);let u=r(7874),a=r(5917),i=r(8937),s=r(6225),c=r(7666),d=r(3848),f=r(5369),p=r(5804),h=r(9010),y=r(3711),_=["bottom","height","left","right","top","width","x","y"];function b(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class g extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,c.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),!r&&(r=null),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return _.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,d.handleSmoothScroll)(()=>{if(n){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!b(r,t)&&(e.scrollTop=0,b(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function v(e){let{segmentPath:t,children:r}=e,n=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,o.jsx)(g,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function m(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:s,tree:d,cacheKey:f}=e,p=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,b=n.get(f);if(void 0===b){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,parallelRoutes:new Map};b=e,n.set(f,e)}let g=null!==b.prefetchRsc?b.prefetchRsc:b.rsc,v=(0,l.useDeferredValue)(b.rsc,g),m="object"==typeof v&&null!==v&&"function"==typeof v.then?(0,l.use)(v):v;if(!m){let e=b.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,l=2===t.length;if((0,c.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(l){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...s],_);b.lazyData=e=(0,a.fetchServerResponse)(new URL(r,location.origin),t,p.nextUrl,h)}let[t,n]=(0,l.use)(e);b.lazyData=null,setTimeout(()=>{(0,l.startTransition)(()=>{y(_,t,n)})}),(0,l.use)((0,i.createInfinitePromise)())}return(0,o.jsx)(u.LayoutRouterContext.Provider,{value:{tree:d[1][t],childNodes:b.parallelRoutes,url:r},children:m})}function j(e){let{children:t,loading:r,loadingStyles:n,loadingScripts:u,hasLoading:a}=e;return a?(0,o.jsx)(l.Suspense,{fallback:(0,o.jsxs)(o.Fragment,{children:[n,u,r]}),children:t}):(0,o.jsx)(o.Fragment,{children:t})}function P(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:a,errorScripts:i,templateStyles:c,templateScripts:d,loading:_,loadingStyles:b,loadingScripts:g,hasLoading:P,template:R,notFound:O,notFoundStyles:E,styles:S}=e,x=(0,l.useContext)(u.LayoutRouterContext);if(!x)throw Error("invariant expected layout router to be mounted");let{childNodes:M,tree:T,url:w}=x,C=M.get(t);C||(C=new Map,M.set(t,C));let A=T[1][t][0],N=(0,h.getSegmentValue)(A),U=[A];return(0,o.jsxs)(o.Fragment,{children:[S,U.map(e=>{let l=(0,h.getSegmentValue)(e),S=(0,y.createRouterCacheKey)(e);return(0,o.jsxs)(u.TemplateContext.Provider,{value:(0,o.jsx)(v,{segmentPath:r,children:(0,o.jsx)(s.ErrorBoundary,{errorComponent:n,errorStyles:a,errorScripts:i,children:(0,o.jsx)(j,{hasLoading:P,loading:_,loadingStyles:b,loadingScripts:g,children:(0,o.jsx)(p.NotFoundBoundary,{notFound:O,notFoundStyles:E,children:(0,o.jsx)(f.RedirectBoundary,{children:(0,o.jsx)(m,{parallelRouterKey:t,url:w,tree:T,childNodes:C,segmentPath:r,cacheKey:S,isActive:N===l})})})})})}),children:[c,d,R]},(0,y.createRouterCacheKey)(e,!0))})]})}("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)},7666:(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,{matchSegment:function(){return o},canSegmentBeOverridden:function(){return l}});let n=r(5841),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],l=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("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)},7435:(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,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return y},usePathname:function(){return _},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return b},useParams:function(){return g},useSelectedLayoutSegments:function(){return v},useSelectedLayoutSegment:function(){return m},redirect:function(){return c.redirect},permanentRedirect:function(){return c.permanentRedirect},RedirectType:function(){return c.RedirectType},notFound:function(){return d.notFound}});let n=r(3810),o=r(7874),l=r(7321),u=r(6515),a=r(9010),i=r(3940),s=r(7932),c=r(8591),d=r(1951),f=Symbol("internal for urlsearchparams readonly");function p(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw p()}delete(){throw p()}set(){throw p()}sort(){throw p()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function y(){(0,u.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(l.SearchParamsContext),t=(0,n.useMemo)(()=>e?new h(e):null,[e]);{let{bailoutToClientRendering:e}=r(7391);e("useSearchParams()")}return t}function _(){return(0,u.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(l.PathnameContext)}function b(){(0,u.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,u.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(l.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),l=o?t[1]:t;!l||l.startsWith(i.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function v(e){void 0===e&&(e="children"),(0,u.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let l;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)l=t[1][r];else{var u;let e=t[1];l=null!=(u=e.children)?u:Object.values(e)[0]}if(!l)return o;let s=l[0],c=(0,a.getSegmentValue)(s);return!c||c.startsWith(i.PAGE_SEGMENT_KEY)?o:(o.push(c),e(l,r,!1,o))}(t,e)}function m(e){void 0===e&&(e="children"),(0,u.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=v(e);return 0===t.length?null:t[0]}("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)},5804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return c}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7435),a=r(1951);r(4586);let i=r(7874);class s extends l.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function c(e){let{notFound:t,notFoundStyles:r,asNotFound:n,children:a}=e,c=(0,u.usePathname)(),d=(0,l.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(s,{pathname:c,notFound:t,notFoundStyles:r,asNotFound:n,missingSlots:d,children:a}):(0,o.jsx)(o.Fragment,{children: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)},1951:(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,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("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)},5808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return s}});let n=r(8067),o=r(6296);var l=o._("_maxConcurrency"),u=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class s{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),l=async()=>{try{n._(this,u)[u]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,u)[u]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:o,task:l}),n._(this,i)[i](),o}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:c}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,l)[l]=e,n._(this,u)[u]=0,n._(this,a)[a]=[]}}function c(e){if(void 0===e&&(e=!1),(n._(this,u)[u]<n._(this,l)[l]||e)&&n._(this,a)[a].length>0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("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)},5369:(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,{RedirectErrorBoundary:function(){return s},RedirectBoundary:function(){return c}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7435),a=r(8591);function i(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,u.useRouter)();return(0,l.useEffect)(()=>{l.default.startTransition(()=>{n===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class s extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function c(e){let{children:t}=e,r=(0,u.useRouter)();return(0,o.jsx)(s,{router: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)},4011:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(r||(r={})),("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)},8591:(e,t,r)=>{"use strict";var 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,{RedirectType:function(){return n},getRedirectError:function(){return i},redirect:function(){return s},permanentRedirect:function(){return c},isRedirectError:function(){return d},getURLFromRedirectError:function(){return f},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return h}});let o=r(5403),l=r(7849),u=r(4011),a="NEXT_REDIRECT";function i(e,t,r){void 0===r&&(r=u.RedirectStatusCode.TemporaryRedirect);let n=Error(a);n.digest=a+";"+t+";"+e+";"+r+";";let l=o.requestAsyncStorage.getStore();return l&&(n.mutableCookies=l.mutableCookies),n}function s(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw i(e,t,(null==r?void 0:r.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.TemporaryRedirect)}function c(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw i(e,t,(null==r?void 0:r.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,o]=e.digest.split(";",4),l=Number(o);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(l)&&l in u.RedirectStatusCode}function f(e){return d(e)?e.digest.split(";",3)[2]:null}function p(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function h(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(function(e){e.push="push",e.replace="replace"})(n||(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)},7255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7874);function a(){let e=(0,l.useContext)(u.TemplateContext);return(0,o.jsx)(o.Fragment,{children: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)},1968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return l}});let n=r(1678),o=r(7756);function l(e,t,r,l){void 0===l&&(l=!1);let[u,a,i]=r.slice(-3);if(null===a)return!1;if(3===r.length){let r=a[2];t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,u,a,i,l)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,r,l);return!0}("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)},9219:(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,{applyRouterStatePatchToFullTree:function(){return a},applyRouterStatePatchToTreeSkipDefault:function(){return i}});let n=r(3940),o=r(7666);function l(e,t,r){void 0===r&&(r=!1);let[u,a]=e,[i,s]=t;if(!r&&i===n.DEFAULT_SEGMENT_KEY&&u!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==s[e]?t[e]=l(a[e],s[e],r):t[e]=a[e];for(let e in s)t[e]||(t[e]=s[e]);let n=[u,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}function u(e,t,r,n){let a;void 0===n&&(n=!1);let[i,s,,,c]=t;if(1===e.length)return l(t,r,n);let[d,f]=e;if(!(0,o.matchSegment)(d,i))return null;if(2===e.length)a=l(s[f],r,n);else if(null===(a=u(e.slice(2),s[f],r,n)))return null;let p=[e[0],{...s,[f]:a}];return c&&(p[4]=!0),p}function a(e,t,r){return u(e,t,r,!0)}function i(e,t,r){return u(e,t,r,!1)}("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)},1545:(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,{extractPathFromFlightRouterState:function(){return s},computeChangedPath:function(){return c}});let n=r(494),o=r(3940),l=r(7666),u=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?e:e[1];function i(e){return e.reduce((e,t)=>""===(t=u(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function s(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let l=[r],u=null!=(t=e[1])?t:{},a=u.children?s(u.children):void 0;if(void 0!==a)l.push(a);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let r=s(t);void 0!==r&&l.push(r)}return i(l)}function c(e,t){let r=function e(t,r){let[o,u]=t,[i,c]=r,d=a(o),f=a(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)||f.startsWith(e)))return"";if(!(0,l.matchSegment)(o,i)){var p;return null!=(p=s(r))?p:""}for(let t in u)if(c[t]){let r=e(u[t],c[t]);if(null!==r)return a(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("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)},5458:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("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)},4782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return u}});let n=r(5458),o=r(1678),l=r(1545);function u(e){var t;let{buildId:r,initialTree:u,initialSeedData:a,initialCanonicalUrl:i,initialParallelRoutes:s,isServer:c,location:d,initialHead:f}=e,p={lazyData:null,rsc:a[2],prefetchRsc:null,parallelRoutes:c?new Map:s};return(null===s||0===s.size)&&(0,o.fillLazyItemsTillLeafWithHead)(p,void 0,u,a,f),{buildId:r,tree:u,cache:p,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:d?(0,n.createHrefFromUrl)(d):i,nextUrl:null!=(t=(0,l.extractPathFromFlightRouterState)(u)||(null==d?void 0:d.pathname))?t: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)},3711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(3940);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?(e[0]+"|"+e[1]+"|"+e[2]).toLowerCase():t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY: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)},5917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return c}});let n=r(2848),o=r(9489),l=r(2641),u=r(4967),a=r(8467),{createFromFetch:i}=r(5492);function s(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function c(e,t,r,c,d){let f={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};d===u.PrefetchKind.AUTO&&(f[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),r&&(f[n.NEXT_URL]=r);let p=(0,a.hexHash)([f[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",f[n.NEXT_ROUTER_STATE_TREE],f[n.NEXT_URL]].join(","));try{let t=new URL(e);t.searchParams.set(n.NEXT_RSC_UNION_QUERY,p);let r=await fetch(t,{credentials:"same-origin",headers:f}),u=(0,o.urlToUrlWithoutFlightMarker)(r.url),a=r.redirected?u:void 0,d=r.headers.get("content-type")||"",h=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER);if(d!==n.RSC_CONTENT_TYPE_HEADER||!r.ok)return e.hash&&(u.hash=e.hash),s(u.toString());let[y,_]=await i(Promise.resolve(r),{callServer:l.callServer});if(c!==y)return s(r.url);return[_,a,h]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0]}}("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)},3558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,r,o,l){let u=o.length<=2,[a,i]=o,s=(0,n.createRouterCacheKey)(i),c=r.parallelRoutes.get(a),d=t.parallelRoutes.get(a);d&&d!==c||(d=new Map(c),t.parallelRoutes.set(a,d));let f=null==c?void 0:c.get(s),p=d.get(s);if(u){p&&p.lazyData&&p!==f||d.set(s,{lazyData:l(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}if(!p||!f){p||d.set(s,{lazyData:l(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}return p===f&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,parallelRoutes:new Map(p.parallelRoutes)},d.set(s,p)),e(p,f,o.slice(2),l)}}});let n=r(3711);("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)},7756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,r,u,a){let i=u.length<=5,[s,c]=u,d=(0,l.createRouterCacheKey)(c),f=r.parallelRoutes.get(s);if(!f)return;let p=t.parallelRoutes.get(s);p&&p!==f||(p=new Map(f),t.parallelRoutes.set(s,p));let h=f.get(d),y=p.get(d);if(i){if(!y||!y.lazyData||y===h){let e=u[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,parallelRoutes:h?new Map(h.parallelRoutes):new Map},h&&(0,n.invalidateCacheByRouterState)(y,h,u[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,u[2],e,u[4],a),p.set(d,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,parallelRoutes:new Map(y.parallelRoutes)},p.set(d,y)),e(y,h,u.slice(2),a))}}});let n=r(7241),o=r(1678),l=r(3711);("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)},1678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,l,u,a){if(0===Object.keys(o[1]).length){t.head=u;return}for(let i in o[1]){let s;let c=o[1][i],d=c[0],f=(0,n.createRouterCacheKey)(d),p=null!==l&&void 0!==l[1][i]?l[1][i]:null;if(r){let n=r.parallelRoutes.get(i);if(n){let r,o=new Map(n),l=o.get(f);r=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map(null==l?void 0:l.parallelRoutes)}:a&&l?{lazyData:l.lazyData,rsc:l.rsc,prefetchRsc:l.prefetchRsc,parallelRoutes:new Map(l.parallelRoutes)}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map(null==l?void 0:l.parallelRoutes)},o.set(f,r),e(r,l,c,p||null,u,a),t.parallelRoutes.set(i,o);continue}}s=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map};let h=t.parallelRoutes.get(i);h?h.set(f,s):t.parallelRoutes.set(i,new Map([[f,s]])),e(s,void 0,c,p,u,a)}}}});let n=r(3711);("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)},5011:(e,t)=>{"use strict";var r;function n(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+3e4?n?"reusable":"fresh":"auto"===t&&Date.now()<r+3e5?"stale":"full"===t&&Date.now()<r+3e5?"reusable":"expired"}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchCacheEntryStatus:function(){return r},getPrefetchEntryCacheStatus:function(){return n}}),function(e){e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale"}(r||(r={})),("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)},1206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return l}});let n=r(1545);function o(e){return void 0!==e}function l(e,t){var r,l,u;let a=null==(l=t.shouldScroll)||l,i=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?i=r:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(r=t.canonicalUrl)?void 0:r.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(u=null==t?void 0:t.scrollableSegments)?u:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let n=r(4007);function o(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("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)},5322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,o){let l=o.length<=2,[u,a]=o,i=(0,n.createRouterCacheKey)(a),s=r.parallelRoutes.get(u);if(!s)return;let c=t.parallelRoutes.get(u);if(c&&c!==s||(c=new Map(s),t.parallelRoutes.set(u,c)),l){c.delete(i);return}let d=s.get(i),f=c.get(i);f&&d&&(f===d&&(f={lazyData:f.lazyData,rsc:f.rsc,prefetchRsc:f.prefetchRsc,parallelRoutes:new Map(f.parallelRoutes)},c.set(i,f)),e(f,d,o.slice(2)))}}});let n=r(3711);("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)},7241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let n=r(3711);function o(e,t,r){for(let o in r[1]){let l=r[1][o][0],u=(0,n.createRouterCacheKey)(l),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(u),e.parallelRoutes.set(o,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)},6571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],o=r[0];if(Array.isArray(n)&&Array.isArray(o)){if(n[0]!==o[0]||n[2]!==o[2])return!0}else if(n!==o)return!0;if(t[4])return!r[4];if(r[4])return!0;let l=Object.values(t[1])[0],u=Object.values(r[1])[0];return!l||!u||e(l,u)}}}),("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)},5111:(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,{updateCacheNodeOnNavigation:function(){return function e(t,r,a,s,c,d){let f=r[1],p=a[1],h=s[1],y=t.parallelRoutes,_=new Map(y),b={},g=null;for(let t in p){let r;let a=p[t],s=f[t],v=y.get(t),m=h[t],j=a[0],P=(0,l.createRouterCacheKey)(j),R=void 0!==s?s[0]:void 0,O=void 0!==v?v.get(P):void 0;if(null!==(r=j===n.PAGE_SEGMENT_KEY?u(a,void 0!==m?m:null,c,d):j===n.DEFAULT_SEGMENT_KEY?void 0!==s?{route:s,node:null,children:null}:u(a,void 0!==m?m:null,c,d):void 0!==R&&(0,o.matchSegment)(j,R)&&void 0!==O&&void 0!==s?null!=m?e(O,s,a,m,c,d):function(e){let t=i(e,null,null,!1);return{route:e,node:t,children:null}}(a):u(a,void 0!==m?m:null,c,d))){null===g&&(g=new Map),g.set(t,r);let e=r.node;if(null!==e){let r=new Map(v);r.set(P,e),_.set(t,r)}b[t]=r.route}else b[t]=a}if(null===g)return null;let v={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,parallelRoutes:_};return{route:function(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}(a,b),node:v,children:g}}},listenForDynamicRequest:function(){return a},abortTask:function(){return s},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,u=new Map(o);for(let t in n){let r=n[t],a=r[0],i=(0,l.createRouterCacheKey)(a),s=o.get(t);if(void 0!==s){let n=s.get(i);if(void 0!==n){let o=e(n,r),l=new Map(s);l.set(i,o),u.set(t,l)}}}let a=t.rsc,i=f(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,parallelRoutes:u}}}});let n=r(3940),o=r(7666),l=r(3711);function u(e,t,r,n){let o=i(e,t,r,n);return{route:e,node:o,children:null}}function a(e,t){t.then(t=>{for(let r of t[0]){let t=r.slice(0,-3),n=r[r.length-3],u=r[r.length-2],a=r[r.length-1];"string"!=typeof t&&function(e,t,r,n,u){let a=e;for(let e=0;e<t.length;e+=2){let r=t[e],n=t[e+1],l=a.children;if(null!==l){let e=l.get(r);if(void 0!==e){let t=e.route[0];if((0,o.matchSegment)(n,t)){a=e;continue}}}return}(function e(t,r,n,u){let a=t.children,i=t.node;if(null===a){null!==i&&(function e(t,r,n,u,a){let i=r[1],s=n[1],d=u[1],p=t.parallelRoutes;for(let t in i){let r=i[t],n=s[t],u=d[t],f=p.get(t),h=r[0],y=(0,l.createRouterCacheKey)(h),_=void 0!==f?f.get(y):void 0;void 0!==_&&(void 0!==n&&(0,o.matchSegment)(h,n[0])&&null!=u?e(_,r,n,u,a):c(r,_,null))}let h=t.rsc,y=u[2];null===h?t.rsc=y:f(h)&&h.resolve(y);let _=t.head;f(_)&&_.resolve(a)}(i,t.route,r,n,u),t.node=null);return}let s=r[1],d=n[1];for(let t in r){let r=s[t],n=d[t],l=a.get(t);if(void 0!==l){let t=l.route[0];if((0,o.matchSegment)(r[0],t)&&null!=n)return e(l,r,n,u)}}})(a,r,n,u)}(e,t,n,u,a)}s(e,null)},t=>{s(e,t)})}function i(e,t,r,n){let o=e[1],u=null!==t?t[1]:null,a=new Map;for(let e in o){let t=o[e],s=null!==u?u[e]:null,c=t[0],d=(0,l.createRouterCacheKey)(c),f=i(t,void 0===s?null:s,r,n),p=new Map;p.set(d,f),a.set(e,p)}let s=0===a.size,c=null!==t?t[2]:null;return{lazyData:null,parallelRoutes:a,prefetchRsc:n||void 0===c?null:c,prefetchHead:!n&&s?r:null,rsc:p(),head:s?p():null}}function s(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)c(e.route,r,t);else for(let e of n.values())s(e,t);e.node=null}function c(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],u=o.get(e);if(void 0===u)continue;let a=t[0],i=(0,l.createRouterCacheKey)(a),s=u.get(i);void 0!==s&&c(t,s,r)}let u=t.rsc;f(u)&&(null===r?u.resolve(null):u.reject(r));let a=t.head;f(a)&&a.resolve(null)}let d=Symbol();function f(e){return e&&e.tag===d}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=d,r}("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)},2025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPrefetchCacheKey",{enumerable:!0,get:function(){return u}});let n=r(8800),o=r(1369),l=r(5458);function u(e,t){let r=(0,l.createHrefFromUrl)(e,!1);return t&&!(0,o.pathHasPrefix)(r,t)?(0,n.addPathPrefix)(r,""+t+"%"):r}("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)},4814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fastRefreshReducer",{enumerable:!0,get:function(){return n}}),r(5917),r(5458),r(9219),r(6571),r(4007),r(1206),r(1968),r(9489),r(6939);let n=function(e,t){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)},3567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(3711);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let l in r){let[u,a]=r[l],i=t.parallelRoutes.get(l);if(!i)continue;let s=(0,n.createRouterCacheKey)(u),c=i.get(s);if(!c)continue;let d=e(c,a,o+"/"+s);if(d)return d}return null}(e,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)},9010:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("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)},4007:(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,{handleExternalUrl:function(){return v},navigateReducer:function(){return j}});let n=r(5917),o=r(5458),l=r(5322),u=r(3558),a=r(9219),i=r(9877),s=r(6571),c=r(4967),d=r(1206),f=r(1968),p=r(5011),h=r(4991),y=r(8959),_=r(9489),b=r(3940),g=(r(5111),r(2025));function v(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,d.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}let j=function(e,t){let{url:r,isExternalUrl:j,navigateType:P,shouldScroll:R}=t,O={},{hash:E}=r,S=(0,o.createHrefFromUrl)(r),x="push"===P;if((0,h.prunePrefetchCache)(e.prefetchCache),O.preserveCustomHistoryState=!1,j)return v(e,O,r.toString(),x);let M=(0,g.createPrefetchCacheKey)(r,e.nextUrl),T=e.prefetchCache.get(M);if(!T){let t={data:(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,void 0),kind:c.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:null};e.prefetchCache.set(M,t),T=t}let w=(0,p.getPrefetchEntryCacheStatus)(T),{treeAtTimeOfPrefetch:C,data:A}=T;return y.prefetchQueue.bump(A),A.then(t=>{let[c,h,y]=t;if(T&&!T.lastUsedTime&&(T.lastUsedTime=Date.now()),"string"==typeof c)return v(e,O,c,x);let g=e.tree,j=e.cache,P=[];for(let t of c){let o=t.slice(0,-4),c=t.slice(-3)[0],d=["",...o],h=(0,a.applyRouterStatePatchToTreeSkipDefault)(d,g,c);if(null===h&&(h=(0,a.applyRouterStatePatchToTreeSkipDefault)(d,C,c)),null!==h){if((0,s.isNavigatingToNewRootLayout)(g,h))return v(e,O,S,x);let a=(0,_.createEmptyCacheNode)(),R=(0,f.applyFlightData)(j,a,t,(null==T?void 0:T.kind)==="auto"&&w===p.PrefetchCacheEntryStatus.reusable);for(let t of((!R&&w===p.PrefetchCacheEntryStatus.stale||y)&&(R=function(e,t,r,n,o){let l=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,u.fillCacheWithDataProperty)(e,t,a,o),l=!0;return l}(a,j,o,c,()=>(0,n.fetchServerResponse)(r,g,e.nextUrl,e.buildId))),(0,i.shouldHardNavigate)(d,g)?(a.rsc=j.rsc,a.prefetchRsc=j.prefetchRsc,(0,l.invalidateCacheBelowFlightSegmentPath)(a,j,o),O.cache=a):R&&(O.cache=a),j=a,g=h,m(c))){let e=[...o,...t];e[e.length-1]!==b.DEFAULT_SEGMENT_KEY&&P.push(e)}}}return O.patchedTree=g,O.canonicalUrl=h?(0,o.createHrefFromUrl)(h):S,O.pendingPush=x,O.scrollableSegments=P,O.hashFragment=E,O.shouldScroll=R,(0,d.handleMutable)(e,O)},()=>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)},8959:(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,{prefetchQueue:function(){return s},prefetchReducer:function(){return c}});let n=r(5917),o=r(4967),l=r(4991),u=r(2848),a=r(5808),i=r(2025),s=new a.PromiseQueue(5);function c(e,t){(0,l.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(u.NEXT_RSC_UNION_QUERY);let a=(0,i.createPrefetchCacheKey)(r,e.nextUrl),c=e.prefetchCache.get(a);if(c&&(c.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(a,{...c,kind:t.kind}),!(c.kind===o.PrefetchKind.AUTO&&t.kind===o.PrefetchKind.FULL)))return e;let d=s.enqueue(()=>(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,t.kind));return e.prefetchCache.set(a,{treeAtTimeOfPrefetch:e.tree,data:d,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),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)},4991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return o}});let n=r(5011);function o(e){for(let[t,r]of e)(0,n.getPrefetchEntryCacheStatus)(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(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)},427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return f}});let n=r(5917),o=r(5458),l=r(9219),u=r(6571),a=r(4007),i=r(1206),s=r(1678),c=r(9489),d=r(6939);function f(e,t){let{origin:r}=t,f={},p=e.canonicalUrl,h=e.tree;f.preserveCustomHistoryState=!1;let y=(0,c.createEmptyCacheNode)();return y.lazyData=(0,n.fetchServerResponse)(new URL(p,r),[h[0],h[1],h[2],"refetch"],e.nextUrl,e.buildId),y.lazyData.then(r=>{let[n,c]=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,f,n,e.pushRef.pendingPush);for(let r of(y.lazyData=null,n)){if(3!==r.length)return console.log("REFRESH FAILED"),e;let[n]=r,i=(0,l.applyRouterStatePatchToFullTree)([""],h,n);if(null===i)return(0,d.handleSegmentMismatch)(e,t,n);if((0,u.isNavigatingToNewRootLayout)(h,i))return(0,a.handleExternalUrl)(e,f,p,e.pushRef.pendingPush);let _=c?(0,o.createHrefFromUrl)(c):void 0;c&&(f.canonicalUrl=_);let[b,g]=r.slice(-2);if(null!==b){let e=b[2];y.rsc=e,y.prefetchRsc=null,(0,s.fillLazyItemsTillLeafWithHead)(y,void 0,n,b,g),f.cache=y,f.prefetchCache=new Map}f.patchedTree=i,f.canonicalUrl=p,h=i}return(0,i.handleMutable)(e,f)},()=>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)},4072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return l}});let n=r(5458),o=r(1545);function l(e,t){var r;let{url:l,tree:u}=t,a=(0,n.createHrefFromUrl)(l),i=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:i,prefetchCache:e.prefetchCache,tree:u,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(u))?r:l.pathname}}r(5111),("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)},8229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let n=r(2641),o=r(2848),l=r(9517),u=r(5458),a=r(4007),i=r(9219),s=r(6571),c=r(1206),d=r(1678),f=r(9489),p=r(1545),h=r(6939),{createFromFetch:y,encodeReply:_}=r(5492);async function b(e,t){let r,{actionId:u,actionArgs:a}=t,i=await _(a),s=(0,p.extractPathFromFlightRouterState)(e.tree),c=e.nextUrl&&e.nextUrl!==s,d=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:u,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...c?{[o.NEXT_URL]:e.nextUrl}:{}},body:i}),f=d.headers.get("x-action-redirect");try{let e=JSON.parse(d.headers.get("x-action-revalidated")||"[[],0,0]");r={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){r={paths:[],tag:!1,cookie:!1}}let h=f?new URL((0,l.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(d.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await y(Promise.resolve(d),{callServer:n.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:h,revalidatedParts:r}}let[t,[,o]]=null!=e?e:[];return{actionResult:t,actionFlightData:o,redirectLocation:h,revalidatedParts:r}}return{redirectLocation:h,revalidatedParts:r}}function g(e,t){let{resolve:r,reject:n}=t,o={},l=e.canonicalUrl,p=e.tree;return o.preserveCustomHistoryState=!1,o.inFlightServerAction=b(e,t),o.inFlightServerAction.then(n=>{let{actionResult:y,actionFlightData:_,redirectLocation:b}=n;if(b&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!_)return(o.actionResultResolved||(r(y),o.actionResultResolved=!0),b)?(0,a.handleExternalUrl)(e,o,b.href,e.pushRef.pendingPush):e;if("string"==typeof _)return(0,a.handleExternalUrl)(e,o,_,e.pushRef.pendingPush);for(let r of(o.inFlightServerAction=null,_)){if(3!==r.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[n]=r,u=(0,i.applyRouterStatePatchToFullTree)([""],p,n);if(null===u)return(0,h.handleSegmentMismatch)(e,t,n);if((0,s.isNavigatingToNewRootLayout)(p,u))return(0,a.handleExternalUrl)(e,o,l,e.pushRef.pendingPush);let[c,y]=r.slice(-2),_=null!==c?c[2]:null;if(null!==_){let e=(0,f.createEmptyCacheNode)();e.rsc=_,e.prefetchRsc=null,(0,d.fillLazyItemsTillLeafWithHead)(e,void 0,n,c,y),o.cache=e,o.prefetchCache=new Map}o.patchedTree=u,o.canonicalUrl=l,p=u}if(b){let e=(0,u.createHrefFromUrl)(b,!1);o.canonicalUrl=e}return o.actionResultResolved||(r(y),o.actionResultResolved=!0),(0,c.handleMutable)(e,o)},t=>{if("rejected"===t.status)return o.actionResultResolved||(n(t.reason),o.actionResultResolved=!0),e;throw 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)},445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return d}});let n=r(5458),o=r(9219),l=r(6571),u=r(4007),a=r(1968),i=r(1206),s=r(9489),c=r(6939);function d(e,t){let{flightData:r,overrideCanonicalUrl:d}=t,f={};if(f.preserveCustomHistoryState=!1,"string"==typeof r)return(0,u.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let p=e.tree,h=e.cache;for(let i of r){let r=i.slice(0,-4),[y]=i.slice(-3,-2),_=(0,o.applyRouterStatePatchToTreeSkipDefault)(["",...r],p,y);if(null===_)return(0,c.handleSegmentMismatch)(e,t,y);if((0,l.isNavigatingToNewRootLayout)(p,_))return(0,u.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let b=d?(0,n.createHrefFromUrl)(d):void 0;b&&(f.canonicalUrl=b);let g=(0,s.createEmptyCacheNode)();(0,a.applyFlightData)(h,g,i),f.patchedTree=_,f.cache=g,h=g,p=_}return(0,i.handleMutable)(e,f)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4967:(e,t)=>{"use strict";var 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,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return u},ACTION_PREFETCH:function(){return a},ACTION_FAST_REFRESH:function(){return i},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return c}});let n="refresh",o="navigate",l="restore",u="server-patch",a="prefetch",i="fast-refresh",s="server-action";function c(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"})(r||(r={})),("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)},6417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return n}}),r(4967),r(4007),r(445),r(4072),r(427),r(8959),r(4814),r(8229);let n=function(e,t){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)},9877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,l]=r,[u,a]=t;return(0,n.matchSegment)(u,o)?!(t.length<=2)&&e(t.slice(2),l[a]):!!Array.isArray(u)}}});let n=r(7666);("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)},9523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(3634);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+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)},3634:(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,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return s}});let n=r(999),o=r(4749),l="NEXT_STATIC_GEN_BAILOUT";class u extends Error{constructor(...e){super(...e),this.code=l}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===l}function i(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let s=(e,t)=>{let{dynamic:r,link:l}=void 0===t?{}:t,a=o.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new u(i(e,{link:l,dynamic:null!=r?r:"error"}));let s=i(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(s);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("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)},1021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),r(3444);let n=r(7685);r(3810);let o=r(9523);function l(e){let{Component:t,propsForComponent:r,isStaticGeneration:l}=e;if(l){let e=(0,o.createSearchParamsBailoutProxy)();return(0,n.jsx)(t,{searchParams:e,...r})}return(0,n.jsx)(t,{...r})}("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)},1274:(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,{useUnwrapState:function(){return u},useReducerWithReduxDevtools:function(){return a}});let n=r(4816)._(r(3810)),o=r(4967);function l(e){if(e instanceof Map){let t={};for(let[r,n]of e.entries()){if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n._bundlerConfig){t[r]="FlightData";continue}}t[r]=l(n)}return t}if("object"==typeof e&&null!==e){let t={};for(let r in e){let n=e[r];if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n.hasOwnProperty("_bundlerConfig")){t[r]="FlightData";continue}}t[r]=l(n)}return t}return Array.isArray(e)?e.map(l):e}function u(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}r(3240);let a=function(e){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)},8977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(1369);function o(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)},7294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return l}});let n=r(3370),o=r(8032),l=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:l}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+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)},5084:(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(8977),("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)},5841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(494);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}},494:(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 o},isInterceptionRouteAppPath:function(){return l},extractInterceptionRouteInformation:function(){return u}});let n=r(590),o=["(..)(..)","(.)","(..)","(...)"];function l(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function u(e){let t,r,l;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,l]=e.split(r,2);break}if(!t||!r||!l)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":l="/"===t?`/${l}`:t+"/"+l;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);l=t.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":let u=t.split("/");if(u.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);l=u.slice(0,-2).concat(l).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:l}}},943:(e,t,r)=>{"use strict";e.exports=r(399)},7874:(e,t,r)=>{"use strict";e.exports=r(943).vendored.contexts.AppRouterContext},7321:(e,t,r)=>{"use strict";e.exports=r(943).vendored.contexts.HooksClientContext},7932:(e,t,r)=>{"use strict";e.exports=r(943).vendored.contexts.ServerInsertedHtml},914:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].ReactDOM},7685:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].ReactJsxRuntime},5492:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].ReactServerDOMWebpackClientEdge},3810:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].React},8467:(e,t)=>{"use strict";function r(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r)&4294967295;return t>>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},2768:(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 o}});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 o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},8699:(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}})},3240:(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,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return c}});let n=r(4816),o=r(4967),l=r(6417),u=n._(r(3810)),a=u.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending&&s({actionQueue:e,action:e.pending,setState:t}))}async function s(e){let{actionQueue:t,action:r,setState:n}=e,l=t.state;if(!l)throw Error("Invariant: Router state not initialized");t.pending=r;let u=r.payload,a=t.action(l,u);function s(e){if(r.discarded){t.needsRefresh&&null===t.pending&&(t.needsRefresh=!1,t.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},n));return}t.state=e,t.devToolsInstance&&t.devToolsInstance.send(u,e),i(t,n),r.resolve(e)}(0,o.isThenable)(a)?a.then(s,e=>{i(t,n),r.reject(e)}):s(a)}function c(){let e={state:null,dispatch:(t,r)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,u.startTransition)(()=>{r(e)})}let l={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=l,s({actionQueue:e,action:l,setState:r})):t.type===o.ACTION_NAVIGATE?(e.pending.discarded=!0,e.last=l,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),s({actionQueue:e,action:l,setState:r})):(null!==e.last&&(e.last.next=l),e.last=l)})(e,t,r),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,l.reducer)(e,t)},pending:null,last:null};return e}},8800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(8032);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:l}=(0,n.parsePath)(e);return""+t+r+o+l}},590:(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 l},normalizeRscURL:function(){return u}});let n=r(8699),o=r(3940);function l(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},3848:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,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,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},8866:(e,t)=>{"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},8032:(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}})},1369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(8032);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},3370:(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}})},3940:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},4586:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createProxy",{enumerable:!0,get:function(){return n}});let n=r(8187).createClientModuleProxy},8019:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js")},6580:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js")},9625:(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,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("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)},9363:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js")},4860:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js")},3250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),r(2274);let n=r(6491);r(1367);let o={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:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function l(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"404: This page could not be found."}),(0,n.jsx)("div",{style:o.error,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,n.jsx)("h1",{className:"next-error-h1",style:o.h1,children:"404"}),(0,n.jsx)("div",{style:o.desc,children:(0,n.jsx)("h2",{style:o.h2,children:"This page could not be found."})})]})})]})}("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)},277:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js")},288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(2936);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+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)},2936:(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,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return s}});let n=r(9625),o=r(5869),l="NEXT_STATIC_GEN_BAILOUT";class u extends Error{constructor(...e){super(...e),this.code=l}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===l}function i(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let s=(e,t)=>{let{dynamic:r,link:l}=void 0===t?{}:t,a=o.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new u(i(e,{link:l,dynamic:null!=r?r:"error"}));let s=i(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(s);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("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)},9279:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js")},5511:(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,{renderToReadableStream:function(){return n.renderToReadableStream},decodeReply:function(){return n.decodeReply},decodeAction:function(){return n.decodeAction},decodeFormState:function(){return n.decodeFormState},AppRouter:function(){return o.default},LayoutRouter:function(){return l.default},RenderFromTemplateContext:function(){return u.default},staticGenerationAsyncStorage:function(){return a.staticGenerationAsyncStorage},requestAsyncStorage:function(){return i.requestAsyncStorage},actionAsyncStorage:function(){return s.actionAsyncStorage},staticGenerationBailout:function(){return c.staticGenerationBailout},createSearchParamsBailoutProxy:function(){return f.createSearchParamsBailoutProxy},serverHooks:function(){return p},preloadStyle:function(){return _.preloadStyle},preloadFont:function(){return _.preloadFont},preconnect:function(){return _.preconnect},taintObjectReference:function(){return b.taintObjectReference},StaticGenerationSearchParamsBailoutProvider:function(){return d.default},NotFoundBoundary:function(){return h.NotFoundBoundary},patchFetch:function(){return m}});let n=r(8187),o=g(r(8019)),l=g(r(9363)),u=g(r(277)),a=r(5869),i=r(4580),s=r(2934),c=r(2936),d=g(r(9279)),f=r(288),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=o?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}(r(9625)),h=r(4860),y=r(9308);r(6580);let _=r(2588),b=r(3487);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function m(){return(0,y.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:a.staticGenerationAsyncStorage})}},2588:(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,{preloadStyle:function(){return o},preloadFont:function(){return l},preconnect:function(){return u}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(3429));function o(e,t){let r={as:"style"};"string"==typeof t&&(r.crossOrigin=t),n.default.preload(e,r)}function l(e,t,r){let o={as:"font",type:t};"string"==typeof r&&(o.crossOrigin=r),n.default.preload(e,o)}function u(e,t){n.default.preconnect(e,"string"==typeof t?{crossOrigin:t}:void 0)}},3487:(e,t,r)=>{"use strict";function n(){throw Error("Taint can only be used with the taint flag.")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{taintObjectReference:function(){return o},taintUniqueValue:function(){return l}}),r(1367);let o=n,l=n},9441:(e,t,r)=>{"use strict";e.exports=r(399)},3429:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].ReactDOM},6491:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].ReactJsxRuntime},8187:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].ReactServerDOMWebpackServerEdge},1367:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].React},8067:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n,_class_private_field_loose_base:()=>n})},6296:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>o,_class_private_field_loose_key:()=>o});var n=0;function o(e){return"__private_"+n+++"_"+e}},3444:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n,_interop_require_default:()=>n})},4816:(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 o(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 o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=l?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o,_interop_require_wildcard:()=>o})},2274:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n,_interop_require_default:()=>n})}};
\ No newline at end of file diff --git a/apps/web/.next/server/chunks/917.js b/apps/web/.next/server/chunks/917.js new file mode 100644 index 00000000..55af03e2 --- /dev/null +++ b/apps/web/.next/server/chunks/917.js @@ -0,0 +1,13 @@ +"use strict";exports.id=917,exports.ids=[917],exports.modules={8263:e=>{var t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,n={};function a(e){var t;let i=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${i.join("; ")}`}function l(e){let t=new Map;for(let i of e.split(/; */)){if(!i)continue;let e=i.indexOf("=");if(-1===e){t.set(i,"true");continue}let[s,r]=[i.slice(0,e),i.slice(e+1)];try{t.set(s,decodeURIComponent(null!=r?r:"true"))}catch{}}return t}function o(e){var t,i;if(!e)return;let[[s,r],...n]=l(e),{domain:a,expires:o,httponly:c,maxage:h,path:p,samesite:f,secure:m,priority:y}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let i in e)e[i]&&(t[i]=e[i]);return t}({name:s,value:decodeURIComponent(r),domain:a,...o&&{expires:new Date(o)},...c&&{httpOnly:!0},..."string"==typeof h&&{maxAge:Number(h)},path:p,...f&&{sameSite:u.includes(t=(t=f).toLowerCase())?t:void 0},...m&&{secure:!0},...y&&{priority:d.includes(i=(i=y).toLowerCase())?i:void 0}})}((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(n,{RequestCookies:()=>c,ResponseCookies:()=>h,parseCookie:()=>l,parseSetCookie:()=>o,stringifyCookie:()=>a}),e.exports=((e,n,a,l)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of s(n))r.call(e,a)||void 0===a||t(e,a,{get:()=>n[a],enumerable:!(l=i(n,a))||l.enumerable});return e})(t({},"__esModule",{value:!0}),n);var u=["strict","lax","none"],d=["low","medium","high"],c=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,i]of l(t))this._parsed.set(e,{name:e,value:i})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed);if(!e.length)return i.map(([e,t])=>t);let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(([e])=>e===s).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,i]=1===e.length?[e[0].name,e[0].value]:e,s=this._parsed;return s.set(t,{name:t,value:i}),this._headers.set("cookie",Array.from(s).map(([e,t])=>a(t)).join("; ")),this}delete(e){let t=this._parsed,i=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>a(t)).join("; ")),i}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},h=class{constructor(e){var t,i,s;this._parsed=new Map,this._headers=e;let r=null!=(s=null!=(i=null==(t=e.getSetCookie)?void 0:t.call(e))?i:e.get("set-cookie"))?s:[];for(let e of Array.isArray(r)?r:function(e){if(!e)return[];var t,i,s,r,n,a=[],l=0;function o(){for(;l<e.length&&/\s/.test(e.charAt(l));)l+=1;return l<e.length}for(;l<e.length;){for(t=l,n=!1;o();)if(","===(i=e.charAt(l))){for(s=l,l+=1,o(),r=l;l<e.length&&"="!==(i=e.charAt(l))&&";"!==i&&","!==i;)l+=1;l<e.length&&"="===e.charAt(l)?(n=!0,l=r,a.push(e.substring(t,s)),t=l):l=s+1}else l+=1;(!n||l>=e.length)&&a.push(e.substring(t,e.length))}return a}(r)){let t=o(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed.values());if(!e.length)return i;let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(e=>e.name===s)}has(e){return this._parsed.has(e)}set(...e){let[t,i,s]=1===e.length?[e[0].name,e[0].value,e[0]]:e,r=this._parsed;return r.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:i,...s})),function(e,t){for(let[,i]of(t.delete("set-cookie"),e)){let e=a(i);t.append("set-cookie",e)}}(r,this._headers),this}delete(...e){let[t,i,s]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:i,domain:s,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},2390:(e,t,i)=>{e.exports=i(517)},8005:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{RequestCookies:function(){return s.RequestCookies},ResponseCookies:function(){return s.ResponseCookies}});let s=i(8263)},1671:(e,t,i)=>{i.d(t,{D:()=>r});var s=i(3251);function r(e){let t="object"==typeof e.client?e.client:{},i="object"==typeof e.server?e.server:{},r=e.shared,n=e.runtimeEnv?e.runtimeEnv:{...process.env,...e.experimental__runtimeEnv};return function(e){let t=e.runtimeEnvStrict??e.runtimeEnv??process.env;if(e.emptyStringAsUndefined)for(let[e,i]of Object.entries(t))""===i&&delete t[e];if(e.skipValidation)return t;let i="object"==typeof e.client?e.client:{},r="object"==typeof e.server?e.server:{},n="object"==typeof e.shared?e.shared:{},a=s.z.object(i),l=s.z.object(r),o=s.z.object(n),u=e.isServer??!0,d=a.merge(o),c=l.merge(o).merge(a),h=u?c.safeParse(t):d.safeParse(t),p=e.onValidationError??(e=>{throw console.error("❌ Invalid environment variables:",e.flatten().fieldErrors),Error("Invalid environment variables")}),f=e.onInvalidAccess??(e=>{throw Error("❌ Attempted to access a server-side environment variable on the client")});return!1===h.success?p(h.error):new Proxy(h.data,{get(t,i){if("string"==typeof i&&"__esModule"!==i&&"$$typeof"!==i)return u||!e.clientPrefix||i.startsWith(e.clientPrefix)||void 0!==o.shape[i]?t[i]:f(i)}})}({...e,shared:r,client:t,server:i,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:n})}},4456:(e,t,i)=>{i.d(t,{RQ:()=>c,UI:()=>f,dZ:()=>o,lw:()=>h,qD:()=>p,wH:()=>u});var s=i(9105),r=i(4869),n=i(2393),a=i(3543),l=i(776);class o{constructor(e){this.table=e}static{this[r.Q]="ColumnAliasProxyHandler"}get(e,t){return"table"===t?this.table:e[t]}}class u{constructor(e,t){this.alias=e,this.replaceOriginalName=t}static{this[r.Q]="TableAliasProxyHandler"}get(e,t){if(t===a.iA.Symbol.IsAlias)return!0;if(t===a.iA.Symbol.Name||this.replaceOriginalName&&t===a.iA.Symbol.OriginalName)return this.alias;if(t===l.d)return{...e[l.d],name:this.alias,isAlias:!0};if(t===a.iA.Symbol.Columns){let t=e[a.iA.Symbol.Columns];if(!t)return t;let i={};return Object.keys(t).map(s=>{i[s]=new Proxy(t[s],new o(new Proxy(e,this)))}),i}let i=e[t];return(0,r.is)(i,s.s)?new Proxy(i,new o(new Proxy(e,this))):i}}class d{constructor(e){this.alias=e}static{this[r.Q]="RelationTableAliasProxyHandler"}get(e,t){return"sourceTable"===t?c(e.sourceTable,this.alias):e[t]}}function c(e,t){return new Proxy(e,new u(t,!1))}function h(e,t){return new Proxy(e,new o(new Proxy(e.table,new u(t,!1))))}function p(e,t){return new n.$s.Aliased(f(e.sql,t),e.fieldAlias)}function f(e,t){return n.i6.join(e.queryChunks.map(e=>(0,r.is)(e,s.s)?h(e,t):(0,r.is)(e,n.$s)?f(e,t):(0,r.is)(e,n.$s.Aliased)?p(e,t):e))}},9404:(e,t,i)=>{i.d(t,{t:()=>w});var s=i(4869);class r{static{this[s.Q]="ConsoleLogWriter"}write(e){console.log(e)}}class n{static{this[s.Q]="DefaultLogger"}constructor(e){this.writer=e?.writer??new r}logQuery(e,t){let i=t.map(e=>{try{return JSON.stringify(e)}catch{return String(e)}}),s=i.length?` -- params: [${i.join(", ")}]`:"";this.writer.write(`Query: ${e}${s}`)}}class a{static{this[s.Q]="NoopLogger"}logQuery(){}}var l=i(9349),o=i(8728),u=i(4888),d=i(2393),c=i(6702),h=i(2852);class p extends h.N{constructor(e){super(),this.resultCb=e}static{this[s.Q]="ExecuteResultSync"}async execute(){return this.resultCb()}sync(){return this.resultCb()}}class f{constructor(e,t,i){this.mode=e,this.executeMethod=t,this.query=i}static{this[s.Q]="PreparedQuery"}getQuery(){return this.query}mapRunResult(e,t){return e}mapAllResult(e,t){throw Error("Not implemented")}mapGetResult(e,t){throw Error("Not implemented")}execute(e){return"async"===this.mode?this[this.executeMethod](e):new p(()=>this[this.executeMethod](e))}mapResult(e,t){switch(this.executeMethod){case"run":return this.mapRunResult(e,t);case"all":return this.mapAllResult(e,t);case"get":return this.mapGetResult(e,t)}}}class m{constructor(e){this.dialect=e}static{this[s.Q]="SQLiteSession"}prepareOneTimeQuery(e,t,i){return this.prepareQuery(e,t,i)}run(e){let t=this.dialect.sqlToQuery(e);try{return this.prepareOneTimeQuery(t,void 0,"run").run()}catch(e){throw new c.k({cause:e,message:`Failed to run the query '${t.sql}'`})}}extractRawRunValueFromBatchResult(e){return e}all(e){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(e),void 0,"run").all()}extractRawAllValueFromBatchResult(e){throw Error("Not implemented")}get(e){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(e),void 0,"run").get()}extractRawGetValueFromBatchResult(e){throw Error("Not implemented")}values(e){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(e),void 0,"run").values()}extractRawValuesValueFromBatchResult(e){throw Error("Not implemented")}}class y extends o.z{constructor(e,t,i,s,r=0){super(e,t,i,s),this.schema=s,this.nestedIndex=r}static{this[s.Q]="SQLiteTransaction"}rollback(){throw new c.F}}var g=i(9324);class v extends m{constructor(e,t,i,s={}){super(t),this.client=e,this.schema=i,this.logger=s.logger??new a}static{this[s.Q]="BetterSQLiteSession"}prepareQuery(e,t,i,s){return new _(this.client.prepare(e.sql),e,this.logger,t,i,s)}transaction(e,t={}){let i=new b("sync",this.dialect,this,this.schema);return this.client.transaction(e)[t.behavior??"deferred"](i)}}class b extends y{static{this[s.Q]="BetterSQLiteTransaction"}transaction(e){let t=`sp${this.nestedIndex}`,i=new b("sync",this.dialect,this.session,this.schema,this.nestedIndex+1);this.session.run(d.i6.raw(`savepoint ${t}`));try{let s=e(i);return this.session.run(d.i6.raw(`release savepoint ${t}`)),s}catch(e){throw this.session.run(d.i6.raw(`rollback to savepoint ${t}`)),e}}}class _ extends f{constructor(e,t,i,s,r,n){super("sync",r,t),this.stmt=e,this.logger=i,this.fields=s,this.customResultMapper=n}static{this[s.Q]="BetterSQLitePreparedQuery"}run(e){let t=(0,d.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.run(...t)}all(e){let{fields:t,joinsNotNullableMap:i,query:s,logger:r,stmt:n,customResultMapper:a}=this;if(!t&&!a){let t=(0,d.Pr)(s.params,e??{});return r.logQuery(s.sql,t),n.all(...t)}let l=this.values(e);return a?a(l):l.map(e=>(0,g.M4)(t,e,i))}get(e){let t=(0,d.Pr)(this.query.params,e??{});this.logger.logQuery(this.query.sql,t);let{fields:i,stmt:s,joinsNotNullableMap:r,customResultMapper:n}=this;if(!i&&!n)return s.get(...t);let a=s.raw().get(...t);return a?n?n([a]):(0,g.M4)(i,a,r):void 0}values(e){let t=(0,d.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.raw().all(...t)}}function w(e,t={}){let i,s;let r=new u.Ac;if(!0===t.logger?i=new n:!1!==t.logger&&(i=t.logger),t.schema){let e=(0,l.pb)(t.schema,l._J);s={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new v(e,r,s,{logger:i});return new o.z("sync",r,a,s)}},6711:(e,t,i)=>{i.d(t,{L:()=>r});var s=i(4869);class r{static{this[s.Q]="ColumnBuilder"}constructor(e,t,i){this.$default=this.$defaultFn,this.config={name:e,notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:t,columnType:i}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}}},9105:(e,t,i)=>{i.d(t,{s:()=>r});var s=i(4869);class r{constructor(e,t){this.enumValues=void 0,this.table=e,this.config=t,this.name=t.name,this.notNull=t.notNull,this.default=t.default,this.defaultFn=t.defaultFn,this.hasDefault=t.hasDefault,this.primary=t.primaryKey,this.isUnique=t.isUnique,this.uniqueName=t.uniqueName,this.uniqueType=t.uniqueType,this.dataType=t.dataType,this.columnType=t.columnType}static{this[s.Q]="Column"}mapFromDriverValue(e){return e}mapToDriverValue(e){return e}}},4869:(e,t,i)=>{i.d(t,{Q:()=>s,is:()=>r});let s=Symbol.for("drizzle:entityKind");function r(e,t){if(!e||"object"!=typeof e)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,s))throw Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let i=e.constructor;if(i)for(;i;){if(s in i&&i[s]===t[s])return!0;i=Object.getPrototypeOf(i)}return!1}Symbol.for("drizzle:hasOwnEntityKind")},6702:(e,t,i)=>{i.d(t,{F:()=>n,k:()=>r});var s=i(4869);class r extends Error{static{this[s.Q]="DrizzleError"}constructor({message:e,cause:t}){super(e),this.name="DrizzleError",this.cause=t}}class n extends r{static{this[s.Q]="TransactionRollbackError"}constructor(){super({message:"Rollback"})}}},6655:(e,t,i)=>{i.d(t,{CK:()=>n,ut:()=>a});var s=i(4869),r=i(3851);function n(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[s.Q]="PgPrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new l(e,this.columns,this.name)}}class l{constructor(e,t,i){this.table=e,this.columns=t,this.name=i}static{this[s.Q]="PgPrimaryKey"}getName(){return this.name??`${this.table[r.YA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},3851:(e,t,i)=>{let s;i.d(t,{YA:()=>l,af:()=>o});var r=i(4869),n=i(3543);let a=Symbol.for("drizzle:PgInlineForeignKeys");class l extends n.iA{static{s=n.iA.Symbol.ExtraConfigBuilder}static{this[r.Q]="PgTable"}static{this.Symbol=Object.assign({},n.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[s]=void 0}}let o=(e,t,i)=>(function(e,t,i,s,r=e){let o=new l(e,s,r),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let i=t.build(o);return o[a].push(...t.buildForeignKeys(i,o)),[e,i]})),d=Object.assign(o,u);return d[n.iA.Symbol.Columns]=u,i&&(d[l.Symbol.ExtraConfigBuilder]=i),d})(e,t,i,void 0)},6834:(e,t,i)=>{i.d(t,{b:()=>r});var s=i(4869);class r{static{this[s.Q]="TypedQueryBuilder"}getSelectedFields(){return this._.selectedFields}}},2852:(e,t,i)=>{let s;i.d(t,{N:()=>n});var r=i(4869);class n{static{s=Symbol.toStringTag}static{this[r.Q]="QueryPromise"}catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}then(e,t){return this.execute().then(e,t)}constructor(){this[s]="QueryPromise"}}},9349:(e,t,i)=>{i.d(t,{sj:()=>f,fh:()=>p,or:()=>c,_J:()=>_,pb:()=>g,vU:()=>m,pl:()=>y,WX:()=>function e(t,i,s,a,l=e=>e){let u={};for(let[d,c]of a.entries())if(c.isJson){let r=i.relations[c.tsKey],a=s[d],o="string"==typeof a?JSON.parse(a):a;u[c.tsKey]=(0,n.is)(r,p)?o&&e(t,t[c.relationTableTsKey],o,c.selection,l):o.map(i=>e(t,t[c.relationTableTsKey],i,c.selection,l))}else{let e;let t=l(s[d]),i=c.field;e=(0,n.is)(i,r.s)?i:(0,n.is)(i,o.$s)?i.decoder:i.sql.decoder,u[c.tsKey]=null===t?null:e.mapFromDriverValue(t)}return u},wG:()=>b,lE:()=>v});var s=i(3543),r=i(9105),n=i(4869),a=i(6655),l=i(4990),o=i(2393);function u(e){return o.i6`${e} asc`}function d(e){return o.i6`${e} desc`}class c{constructor(e,t,i){this.sourceTable=e,this.referencedTable=t,this.relationName=i,this.referencedTableName=t[s.iA.Symbol.Name]}static{this[n.Q]="Relation"}}class h{constructor(e,t){this.table=e,this.config=t}static{this[n.Q]="Relations"}}class p extends c{constructor(e,t,i,s){super(e,t,i?.relationName),this.config=i,this.isNullable=s}static{this[n.Q]="One"}withFieldName(e){let t=new p(this.sourceTable,this.referencedTable,this.config,this.isNullable);return t.fieldName=e,t}}class f extends c{constructor(e,t,i){super(e,t,i?.relationName),this.config=i}static{this[n.Q]="Many"}withFieldName(e){let t=new f(this.sourceTable,this.referencedTable,this.config);return t.fieldName=e,t}}function m(){return{and:l.xD,between:l.vX,eq:l.eq,exists:l.Gg,gt:l.gt,gte:l.eg,ilike:l.o$,inArray:l.d3,isNull:l.Ft,isNotNull:l.K0,like:l.vL,lt:l.lt,lte:l.G,ne:l.ne,not:l.ff,notBetween:l.OL,notExists:l.UN,notLike:l.Qg,notIlike:l.mM,notInArray:l.Nl,or:l.or,sql:o.i6}}function y(){return{sql:o.i6,asc:u,desc:d}}function g(e,t){1===Object.keys(e).length&&"default"in e&&!(0,n.is)(e.default,s.iA)&&(e=e.default);let i={},r={},l={};for(let[o,u]of Object.entries(e))if((0,s.wb)(u)){let e=u[s.iA.Symbol.Name],t=r[e];for(let r of(i[e]=o,l[o]={tsName:o,dbName:u[s.iA.Symbol.Name],schema:u[s.iA.Symbol.Schema],columns:u[s.iA.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]},Object.values(u[s.iA.Symbol.Columns])))r.primary&&l[o].primaryKey.push(r);let d=u[s.iA.Symbol.ExtraConfigBuilder]?.(u);if(d)for(let e of Object.values(d))(0,n.is)(e,a.ut)&&l[o].primaryKey.push(...e.columns)}else if((0,n.is)(u,h)){let e;let n=u.table[s.iA.Symbol.Name],a=i[n];for(let[i,s]of Object.entries(u.config(t(u.table))))if(a){let t=l[a];t.relations[i]=s,e&&t.primaryKey.push(...e)}else n in r||(r[n]={relations:{},primaryKey:e}),r[n].relations[i]=s}return{tables:l,tableNamesMap:i}}function v(e,t){return new h(e,e=>Object.fromEntries(Object.entries(t(e)).map(([e,t])=>[e,t.withFieldName(e)])))}function b(e,t,i){if((0,n.is)(i,p)&&i.config)return{fields:i.config.fields,references:i.config.references};let r=t[i.referencedTable[s.iA.Symbol.Name]];if(!r)throw Error(`Table "${i.referencedTable[s.iA.Symbol.Name]}" not found in schema`);let a=e[r];if(!a)throw Error(`Table "${r}" not found in schema`);let l=i.sourceTable,o=t[l[s.iA.Symbol.Name]];if(!o)throw Error(`Table "${l[s.iA.Symbol.Name]}" not found in schema`);let u=[];for(let e of Object.values(a.relations))(i.relationName&&i!==e&&e.relationName===i.relationName||!i.relationName&&e.referencedTable===i.sourceTable)&&u.push(e);if(u.length>1)throw i.relationName?Error(`There are multiple relations with name "${i.relationName}" in table "${r}"`):Error(`There are multiple relations between "${r}" and "${i.sourceTable[s.iA.Symbol.Name]}". Please specify relation name`);if(u[0]&&(0,n.is)(u[0],p)&&u[0].config)return{fields:u[0].config.references,references:u[0].config.fields};throw Error(`There is not enough information to infer relation "${o}.${i.fieldName}"`)}function _(e){return{one:function(t,i){return new p(e,t,i,i?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)},many:function(t,i){return new f(e,t,i)}}}},4143:(e,t,i)=>{i.d(t,{e:()=>u});var s=i(4456),r=i(9105),n=i(4869),a=i(2393),l=i(2877),o=i(776);class u{static{this[n.Q]="SelectionProxyHandler"}constructor(e){this.config={...e}}get(e,t){if(t===l.g1)return{...e[l.g1],selection:new Proxy(e[l.g1].selection,this)};if(t===o.d)return{...e[o.d],selectedFields:new Proxy(e[o.d].selectedFields,this)};if("symbol"==typeof t)return e[t];let i=((0,n.is)(e,l.k)?e[l.g1].selection:(0,n.is)(e,a.G7)?e[o.d].selectedFields:e)[t];if((0,n.is)(i,a.$s.Aliased)){if("sql"===this.config.sqlAliasedBehavior&&!i.isSelectionField)return i.sql;let e=i.clone();return e.isSelectionField=!0,e}if((0,n.is)(i,a.$s)){if("sql"===this.config.sqlBehavior)return i;throw Error(`You tried to reference "${t}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}return(0,n.is)(i,r.s)?this.config.alias?new Proxy(i,new s.dZ(new Proxy(i.table,new s.wH(this.config.alias,this.config.replaceOriginalName??!1)))):i:"object"!=typeof i||null===i?i:new Proxy(i,new u(this.config))}}},4990:(e,t,i)=>{i.d(t,{Ft:()=>b,G:()=>y,Gg:()=>w,K0:()=>_,Nl:()=>v,OL:()=>k,Qg:()=>$,UN:()=>S,d3:()=>g,eg:()=>f,eq:()=>o,ff:()=>h,gt:()=>p,lt:()=>m,mM:()=>O,ne:()=>u,o$:()=>Q,or:()=>c,vL:()=>N,vX:()=>x,xD:()=>d});var s=i(9105),r=i(4869),n=i(3543),a=i(2393);function l(e,t){return!(0,a._B)(t)||(0,a.zl)(e)||(0,r.is)(e,a.dO)||(0,r.is)(e,a.Vm)||(0,r.is)(e,s.s)||(0,r.is)(e,n.iA)||(0,r.is)(e,a.G7)?e:new a.dO(e,t)}let o=(e,t)=>a.i6`${e} = ${l(t,e)}`,u=(e,t)=>a.i6`${e} <> ${l(t,e)}`;function d(...e){let t=e.filter(e=>void 0!==e);return 0===t.length?void 0:new a.$s(1===t.length?t:[new a.Zm("("),a.i6.join(t,new a.Zm(" and ")),new a.Zm(")")])}function c(...e){let t=e.filter(e=>void 0!==e);return 0===t.length?void 0:new a.$s(1===t.length?t:[new a.Zm("("),a.i6.join(t,new a.Zm(" or ")),new a.Zm(")")])}function h(e){return a.i6`not ${e}`}let p=(e,t)=>a.i6`${e} > ${l(t,e)}`,f=(e,t)=>a.i6`${e} >= ${l(t,e)}`,m=(e,t)=>a.i6`${e} < ${l(t,e)}`,y=(e,t)=>a.i6`${e} <= ${l(t,e)}`;function g(e,t){if(Array.isArray(t)){if(0===t.length)throw Error("inArray requires at least one value");return a.i6`${e} in ${t.map(t=>l(t,e))}`}return a.i6`${e} in ${l(t,e)}`}function v(e,t){if(Array.isArray(t)){if(0===t.length)throw Error("notInArray requires at least one value");return a.i6`${e} not in ${t.map(t=>l(t,e))}`}return a.i6`${e} not in ${l(t,e)}`}function b(e){return a.i6`${e} is null`}function _(e){return a.i6`${e} is not null`}function w(e){return a.i6`exists ${e}`}function S(e){return a.i6`not exists ${e}`}function x(e,t,i){return a.i6`${e} between ${l(t,e)} and ${l(i,e)}`}function k(e,t,i){return a.i6`${e} not between ${l(t,e)} and ${l(i,e)}`}function N(e,t){return a.i6`${e} like ${t}`}function $(e,t){return a.i6`${e} not like ${t}`}function Q(e,t){return a.i6`${e} ilike ${t}`}function O(e,t){return a.i6`${e} not ilike ${t}`}},2393:(e,t,i)=>{i.d(t,{$s:()=>p,G7:()=>S,Pr:()=>w,Vm:()=>_,Zm:()=>h,_B:()=>m,dO:()=>v,i6:()=>b,zl:()=>c});var s=i(4869),r=i(9349),n=i(2877),a=i(7415),l=i(776),o=i(9105),u=i(3543);class d{static{this[s.Q]="FakePrimitiveParam"}}function c(e){return"object"==typeof e&&null!==e&&"getSQL"in e&&"function"==typeof e.getSQL}class h{static{this[s.Q]="StringChunk"}constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new p([this])}}class p{constructor(e){this.decoder=y,this.shouldInlineParams=!1,this.queryChunks=e}static{this[s.Q]="SQL"}append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return a.Z.startActiveSpan("drizzle.buildSQL",t=>{let i=this.buildQueryFromSourceParams(this.queryChunks,e);return t?.setAttributes({"drizzle.query.text":i.sql,"drizzle.query.params":JSON.stringify(i.params)}),i})}buildQueryFromSourceParams(e,t){let i=Object.assign({},t,{inlineParams:t.inlineParams||this.shouldInlineParams,paramStartIndex:t.paramStartIndex||{value:0}}),{escapeName:a,escapeParam:d,prepareTyping:m,inlineParams:y,paramStartIndex:g}=i;return function(e){let t={sql:"",params:[]};for(let i of e)t.sql+=i.sql,t.params.push(...i.params),i.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...i.typings));return t}(e.map(e=>{if((0,s.is)(e,h))return{sql:e.value.join(""),params:[]};if((0,s.is)(e,f))return{sql:a(e.value),params:[]};if(void 0===e)return{sql:"",params:[]};if(Array.isArray(e)){let t=[new h("(")];for(let[i,s]of e.entries())t.push(s),i<e.length-1&&t.push(new h(", "));return t.push(new h(")")),this.buildQueryFromSourceParams(t,i)}if((0,s.is)(e,p))return this.buildQueryFromSourceParams(e.queryChunks,{...i,inlineParams:y||e.shouldInlineParams});if((0,s.is)(e,u.iA)){let t=e[u.iA.Symbol.Schema],i=e[u.iA.Symbol.Name];return{sql:void 0===t?a(i):a(t)+"."+a(i),params:[]}}if((0,s.is)(e,o.s))return{sql:a(e.table[u.iA.Symbol.Name])+"."+a(e.name),params:[]};if((0,s.is)(e,S)){let t=e[l.d].schema,i=e[l.d].name;return{sql:void 0===t?a(i):a(t)+"."+a(i),params:[]}}if((0,s.is)(e,v)){let t;let r=null===e.value?null:e.encoder.mapToDriverValue(e.value);return(0,s.is)(r,p)?this.buildQueryFromSourceParams([r],i):y?{sql:this.mapInlineParam(r,i),params:[]}:(void 0!==m&&(t=[m(e.encoder)]),{sql:d(g.value++,r),params:[r],typings:t})}return(0,s.is)(e,_)?{sql:d(g.value++,e),params:[e]}:(0,s.is)(e,p.Aliased)&&void 0!==e.fieldAlias?{sql:a(e.fieldAlias),params:[]}:(0,s.is)(e,n.k)?e[n.g1].isWith?{sql:a(e[n.g1].alias),params:[]}:this.buildQueryFromSourceParams([new h("("),e[n.g1].sql,new h(") "),new f(e[n.g1].alias)],i):c(e)?this.buildQueryFromSourceParams([new h("("),e.getSQL(),new h(")")],i):(0,s.is)(e,r.or)?this.buildQueryFromSourceParams([e.sourceTable,new h("."),b.identifier(e.fieldName)],i):y?{sql:this.mapInlineParam(e,i),params:[]}:{sql:d(g.value++,e),params:[e]}}))}mapInlineParam(e,{escapeString:t}){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return e.toString();if("string"==typeof e)return t(e);if("object"==typeof e){let i=e.toString();return"[object Object]"===i?t(JSON.stringify(e)):t(i)}throw Error("Unexpected param value: "+e)}getSQL(){return this}as(e){return void 0===e?this:new p.Aliased(this,e)}mapWith(e){return this.decoder="function"==typeof e?{mapFromDriverValue:e}:e,this}inlineParams(){return this.shouldInlineParams=!0,this}}class f{constructor(e){this.value=e}static{this[s.Q]="Name"}getSQL(){return new p([this])}}function m(e){return"object"==typeof e&&null!==e&&"mapToDriverValue"in e&&"function"==typeof e.mapToDriverValue}let y={mapFromDriverValue:e=>e},g={mapToDriverValue:e=>e};({...y,...g});class v{constructor(e,t=g){this.value=e,this.encoder=t}static{this[s.Q]="Param"}getSQL(){return new p([this])}}function b(e,...t){let i=[];for(let[s,r]of((t.length>0||e.length>0&&""!==e[0])&&i.push(new h(e[0])),t.entries()))i.push(r,new h(e[s+1]));return new p(i)}(e=>{e.empty=function(){return new p([])},e.fromList=function(e){return new p(e)},e.raw=function(e){return new p([new h(e)])},e.join=function(e,t){let i=[];for(let[s,r]of e.entries())s>0&&void 0!==t&&i.push(t),i.push(r);return new p(i)},e.identifier=function(e){return new f(e)},e.placeholder=function(e){return new _(e)},e.param=function(e,t){return new v(e,t)}})(b||(b={})),(e=>{class t{constructor(e,t){this.isSelectionField=!1,this.sql=e,this.fieldAlias=t}static{this[s.Q]="SQL.Aliased"}getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(p||(p={}));class _{constructor(e){this.name=e}static{this[s.Q]="Placeholder"}getSQL(){return new p([this])}}function w(e,t){return e.map(e=>{if((0,s.is)(e,_)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}return e})}class S{static{this[s.Q]="View"}constructor({name:e,schema:t,selectedFields:i,query:s}){this[l.d]={name:e,originalName:e,schema:t,selectedFields:i,query:s,isExisting:!s,isAlias:!1}}getSQL(){return new p([this])}}o.s.prototype.getSQL=function(){return new p([this])},u.iA.prototype.getSQL=function(){return new p([this])},n.k.prototype.getSQL=function(){return new p([this])}},7279:(e,t,i)=>{i.d(t,{l:()=>f,d:()=>p});var s=i(6711),r=i(9105),n=i(4869),a=i(5225);class l{static{this[n.Q]="SQLiteForeignKeyBuilder"}constructor(e,t){this.reference=()=>{let{name:t,columns:i,foreignColumns:s}=e();return{name:t,columns:i,foreignTable:s[0].table,foreignColumns:s}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e,this}onDelete(e){return this._onDelete=e,this}build(e){return new o(e,this)}}class o{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[n.Q]="SQLiteForeignKey"}getName(){let{name:e,columns:t,foreignColumns:i}=this.reference(),s=t.map(e=>e.name),r=i.map(e=>e.name),n=[this.table[a.xA.Symbol.Name],...s,i[0].table[a.xA.Symbol.Name],...r];return e??`${n.join("_")}_fk`}}function u(e,t){return`${e[a.xA.Symbol.Name]}_${t.join("_")}_unique`}class d{constructor(e,t){this.name=t,this.columns=e}static{this[n.Q]="SQLiteUniqueConstraintBuilder"}build(e){return new h(e,this.columns,this.name)}}class c{static{this[n.Q]="SQLiteUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new d(e,this.name)}}class h{constructor(e,t,i){this.table=e,this.columns=t,this.name=i??u(this.table,this.columns.map(e=>e.name))}static{this[n.Q]="SQLiteUniqueConstraint"}getName(){return this.name}}class p extends s.L{static{this[n.Q]="SQLiteColumnBuilder"}references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e){return this.config.isUnique=!0,this.config.uniqueName=e,this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:i,actions:s})=>((i,s)=>{let r=new l(()=>({columns:[e],foreignColumns:[i()]}));return s.onUpdate&&r.onUpdate(s.onUpdate),s.onDelete&&r.onDelete(s.onDelete),r.build(t)})(i,s))}constructor(...e){super(...e),this.foreignKeyConfigs=[]}}class f extends r.s{constructor(e,t){t.uniqueName||(t.uniqueName=u(e,[t.name])),super(e,t),this.table=e}static{this[n.Q]="SQLiteColumn"}}},9415:(e,t,i)=>{i.d(t,{_L:()=>f,e$:()=>m});var s=i(4869),r=i(2393),n=i(7279);class a extends n.d{static{this[s.Q]="SQLiteBaseIntegerBuilder"}constructor(e,t,i){super(e,t,i),this.config.autoIncrement=!1}primaryKey(e){return e?.autoIncrement&&(this.config.autoIncrement=!0),this.config.hasDefault=!0,super.primaryKey()}}class l extends n.l{static{this[s.Q]="SQLiteBaseInteger"}getSQLType(){return"integer"}constructor(...e){super(...e),this.autoIncrement=this.config.autoIncrement}}class o extends a{static{this[s.Q]="SQLiteIntegerBuilder"}constructor(e){super(e,"number","SQLiteInteger")}build(e){return new u(e,this.config)}}class u extends l{static{this[s.Q]="SQLiteInteger"}}class d extends a{static{this[s.Q]="SQLiteTimestampBuilder"}constructor(e,t){super(e,"date","SQLiteTimestamp"),this.config.mode=t}defaultNow(){return this.default(r.i6`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build(e){return new c(e,this.config)}}class c extends l{static{this[s.Q]="SQLiteTimestamp"}mapFromDriverValue(e){return new Date("timestamp"===this.config.mode?1e3*e:e)}mapToDriverValue(e){let t=e.getTime();return"timestamp"===this.config.mode?Math.floor(t/1e3):t}constructor(...e){super(...e),this.mode=this.config.mode}}class h extends a{static{this[s.Q]="SQLiteBooleanBuilder"}constructor(e,t){super(e,"boolean","SQLiteBoolean"),this.config.mode=t}build(e){return new p(e,this.config)}}class p extends l{static{this[s.Q]="SQLiteBoolean"}mapFromDriverValue(e){return 1===Number(e)}mapToDriverValue(e){return e?1:0}constructor(...e){super(...e),this.mode=this.config.mode}}function f(e,t){return t?.mode==="timestamp"||t?.mode==="timestamp_ms"?new d(e,t.mode):t?.mode==="boolean"?new h(e,t.mode):new o(e)}let m=f},440:(e,t,i)=>{i.d(t,{fL:()=>u});var s=i(4869),r=i(7279);class n extends r.d{static{this[s.Q]="SQLiteTextBuilder"}constructor(e,t){super(e,"string","SQLiteText"),this.config.enumValues=t.enum,this.config.length=t.length}build(e){return new a(e,this.config)}}class a extends r.l{static{this[s.Q]="SQLiteText"}constructor(e,t){super(e,t),this.enumValues=this.config.enumValues,this.length=this.config.length}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class l extends r.d{static{this[s.Q]="SQLiteTextJsonBuilder"}constructor(e){super(e,"json","SQLiteTextJson")}build(e){return new o(e,this.config)}}class o extends r.l{static{this[s.Q]="SQLiteTextJson"}getSQLType(){return"text"}mapFromDriverValue(e){return JSON.parse(e)}mapToDriverValue(e){return JSON.stringify(e)}}function u(e,t={}){return"json"===t.mode?new l(e):new n(e,t)}},8728:(e,t,i)=>{i.d(t,{z:()=>P});var s=i(4869),r=i(4143),n=i(4888),a=i(6834),l=i(2852),o=i(2393),u=i(3543),d=i(9324),c=i(776),h=i(2877),p=i(2904);class f{static{this[s.Q]="SQLiteSelectBuilder"}constructor(e){this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,this.withList=e.withList,this.distinct=e.distinct}from(e){let t;let i=!!this.fields;return t=this.fields?this.fields:(0,s.is)(e,h.k)?Object.fromEntries(Object.keys(e[h.g1].selection).map(t=>[t,e[t]])):(0,s.is)(e,p.B)?e[c.d].selectedFields:(0,s.is)(e,o.$s)?{}:(0,d.SS)(e),new y({table:e,fields:t,isPartialSelect:i,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class m extends a.b{static{this[s.Q]="SQLiteSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:i,session:s,dialect:r,withList:n,distinct:a}){super(),this.leftJoin=this.createJoin("left"),this.rightJoin=this.createJoin("right"),this.innerJoin=this.createJoin("inner"),this.fullJoin=this.createJoin("full"),this.union=this.createSetOperator("union",!1),this.unionAll=this.createSetOperator("union",!0),this.intersect=this.createSetOperator("intersect",!1),this.except=this.createSetOperator("except",!1),this.config={withList:n,table:e,fields:{...t},distinct:a,setOperators:[]},this.isPartialSelect=i,this.session=s,this.dialect=r,this._={selectedFields:t},this.tableName=(0,d.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,i)=>{let n=this.tableName,a=(0,d.dP)(t);if("string"==typeof a&&this.config.joins?.some(e=>e.alias===a))throw Error(`Alias "${a}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof n&&(this.config.fields={[n]:this.config.fields}),"string"==typeof a&&!(0,s.is)(t,o.$s))){let e=(0,s.is)(t,h.k)?t[h.g1].selection:(0,s.is)(t,o.G7)?t[c.d].selectedFields:t[u.iA.Symbol.Columns];this.config.fields[a]=e}if("function"==typeof i&&(i=i(new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:i,table:t,joinType:e,alias:a}),"string"==typeof a)switch(e){case"left":this.joinsNotNullableMap[a]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!0;break;case"inner":this.joinsNotNullableMap[a]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!1}return this}}createSetOperator(e,t){return i=>{let s="function"==typeof i?i(v()):i;if(!(0,d.ux)(this.getSelectedFields(),s.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:e,isAll:t,rightSelect:s}),this}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=e,this}groupBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),i=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=i:this.config.orderBy=i}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=e:this.config.orderBy=e;return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){return new Proxy(new h.k(this.getSQL(),this.config.fields,e),new r.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new r.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class y extends m{static{this[s.Q]="SQLiteSelect"}prepare(e){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let t=(0,d.ZS)(this.config.fields),i=this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),t,"all");return i.joinsNotNullableMap=this.joinsNotNullableMap,i}async execute(){return this.all()}constructor(...e){super(...e),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e)}}function g(e,t){return(i,s,...r)=>{let n=[s,...r].map(i=>({type:e,isAll:t,rightSelect:i}));for(let e of n)if(!(0,d.ux)(i.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return i.addSetOperators(n)}}(0,d.ef)(y,[l.N]);let v=()=>({union:b,unionAll:_,intersect:w,except:S}),b=g("union",!1),_=g("union",!0),w=g("intersect",!1),S=g("except",!1);class x{static{this[s.Q]="SQLiteQueryBuilder"}$with(e){let t=this;return{as:i=>("function"==typeof i&&(i=i(t)),new Proxy(new h.SC(i.getSQL(),i.getSelectedFields(),e,!0),new r.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(i){return new f({fields:i??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(i){return new f({fields:i??void 0,session:void 0,dialect:t.getDialect(),withList:e,distinct:!0})}}}select(e){return new f({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new f({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){return this.dialect||(this.dialect=new n.Ac),this.dialect}}var k=i(5225);class N{constructor(e,t,i){this.table=e,this.session=t,this.dialect=i}static{this[s.Q]="SQLiteUpdateBuilder"}set(e){return new $(this.table,(0,d.M6)(this.table,e),this.session,this.dialect)}}class $ extends l.N{constructor(e,t,i,s){super(),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e),this.session=i,this.dialect=s,this.config={set:t,table:e}}static{this[s.Q]="SQLiteUpdate"}where(e){return this.config.where=e,this}returning(e=this.config.table[k.xA.Symbol.Columns]){return this.config.returning=(0,d.ZS)(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(e){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class Q{constructor(e,t,i){this.table=e,this.session=t,this.dialect=i}static{this[s.Q]="SQLiteInsertBuilder"}values(e){if(0===(e=Array.isArray(e)?e:[e]).length)throw Error("values() must be called with at least one value");let t=e.map(e=>{let t={},i=this.table[u.iA.Symbol.Columns];for(let r of Object.keys(e)){let n=e[r];t[r]=(0,s.is)(n,o.$s)?n:new o.dO(n,i[r])}return t});return new O(this.table,t,this.session,this.dialect)}}class O extends l.N{constructor(e,t,i,s){super(),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e),this.session=i,this.dialect=s,this.config={table:e,values:t}}static{this[s.Q]="SQLiteInsert"}returning(e=this.config.table[k.xA.Symbol.Columns]){return this.config.returning=(0,d.ZS)(e),this}onConflictDoNothing(e={}){if(void 0===e.target)this.config.onConflict=o.i6`do nothing`;else{let t=Array.isArray(e.target)?o.i6`${e.target}`:o.i6`${[e.target]}`,i=e.where?o.i6` where ${e.where}`:o.i6``;this.config.onConflict=o.i6`${t} do nothing${i}`}return this}onConflictDoUpdate(e){let t=Array.isArray(e.target)?o.i6`${e.target}`:o.i6`${[e.target]}`,i=e.where?o.i6` where ${e.where}`:o.i6``,s=this.dialect.buildUpdateSet(this.config.table,(0,d.M6)(this.config.table,e.set));return this.config.onConflict=o.i6`${t} do update set ${s}${i}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(e){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class T extends l.N{constructor(e,t,i){super(),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e),this.table=e,this.session=t,this.dialect=i,this.config={table:e}}static{this[s.Q]="SQLiteDelete"}where(e){return this.config.where=e,this}returning(e=this.table[k.xA.Symbol.Columns]){return this.config.returning=(0,d.ZS)(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(e){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}async execute(e){return this.prepare(!0).execute(e)}$dynamic(){return this}}var A=i(9349);class j{constructor(e,t,i,s,r,n,a,l){this.mode=e,this.fullSchema=t,this.schema=i,this.tableNamesMap=s,this.table=r,this.tableConfig=n,this.dialect=a,this.session=l}static{this[s.Q]="SQLiteAsyncRelationalQueryBuilder"}findMany(e){return"sync"===this.mode?new L(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many"):new C(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many")}findFirst(e){return"sync"===this.mode?new L(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first"):new C(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first")}}class C extends l.N{constructor(e,t,i,s,r,n,a,l,o){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=i,this.table=s,this.tableConfig=r,this.dialect=n,this.session=a,this.config=l,this.mode=o}static{this[s.Q]="SQLiteAsyncRelationalQuery"}getSQL(){return this.dialect.buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName}).sql}prepare(){let{query:e,builtQuery:t}=this._toSQL();return this.session.prepareQuery(t,void 0,"first"===this.mode?"get":"all",(t,i)=>{let s=t.map(t=>(0,A.WX)(this.schema,this.tableConfig,t,e.selection,i));return"first"===this.mode?s[0]:s})}_toSQL(){let e=this.dialect.buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName}),t=this.dialect.sqlToQuery(e.sql);return{query:e,builtQuery:t}}toSQL(){return this._toSQL().builtQuery}executeRaw(){return"first"===this.mode?this.prepare().get():this.prepare().all()}async execute(){return this.executeRaw()}}class L extends C{static{this[s.Q]="SQLiteSyncRelationalQuery"}sync(){return this.executeRaw()}}class Z extends l.N{constructor(e,t,i,s,r){super(),this.cb=e,this.getSQLCb=t,this.dialect=s,this.mapBatchResult=r,this.config={action:i}}static{this[s.Q]="SQLiteRaw"}getSQL(){return this.getSQLCb()}async execute(){return this.cb()}prepare(){return{getQuery:()=>this.dialect.sqlToQuery(this.getSQL()),mapResult:(e,t)=>t?this.mapBatchResult(e):e}}}class P{constructor(e,t,i,s){if(this.resultKind=e,this.dialect=t,this.session=i,this._=s?{schema:s.schema,tableNamesMap:s.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={},this._.schema)for(let[r,n]of Object.entries(this._.schema))this.query[r]=new j(e,s.fullSchema,this._.schema,this._.tableNamesMap,s.fullSchema[r],n,t,i)}static{this[s.Q]="BaseSQLiteDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new x)),new Proxy(new h.SC(t.getSQL(),t.getSelectedFields(),e,!0),new r.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(i){return new f({fields:i??void 0,session:t.session,dialect:t.dialect,withList:e})},selectDistinct:function(i){return new f({fields:i??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}}}select(e){return new f({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new f({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(e){return new N(e,this.session,this.dialect)}insert(e){return new Q(e,this.session,this.dialect)}delete(e){return new T(e,this.session,this.dialect)}run(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.run(t),()=>t,"run",this.dialect,this.session.extractRawRunValueFromBatchResult.bind(this.session)):this.session.run(t)}all(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.all(t),()=>t,"all",this.dialect,this.session.extractRawAllValueFromBatchResult.bind(this.session)):this.session.all(t)}get(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.get(t),()=>t,"get",this.dialect,this.session.extractRawGetValueFromBatchResult.bind(this.session)):this.session.get(t)}values(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.values(t),()=>t,"values",this.dialect,this.session.extractRawValuesValueFromBatchResult.bind(this.session)):this.session.values(t)}transaction(e,t){return this.session.transaction(e,t)}}},4888:(e,t,i)=>{i.d(t,{Ac:()=>v});var s=i(4456),r=i(9105),n=i(4869),a=i(6702),l=i(9349),o=i(2393),u=i(4990),d=i(7279),c=i(5225),h=i(2877),p=i(3543),f=i(9324),m=i(776),y=i(2904);class g{static{this[n.Q]="SQLiteDialect"}escapeName(e){return`"${e}"`}escapeParam(e){return"?"}escapeString(e){return`'${e.replace(/'/g,"''")}'`}buildDeleteQuery({table:e,where:t,returning:i}){let s=i?o.i6` returning ${this.buildSelection(i,{isSingleTable:!0})}`:void 0,r=t?o.i6` where ${t}`:void 0;return o.i6`delete from ${e}${r}${s}`}buildUpdateSet(e,t){let i=Object.entries(t),s=i.length;return o.i6.join(i.flatMap(([t,i],r)=>{let n=e[p.iA.Symbol.Columns][t],a=o.i6`${o.i6.identifier(n.name)} = ${i}`;return r<s-1?[a,o.i6.raw(", ")]:[a]}))}buildUpdateQuery({table:e,set:t,where:i,returning:s}){let r=this.buildUpdateSet(e,t),n=s?o.i6` returning ${this.buildSelection(s,{isSingleTable:!0})}`:void 0,a=i?o.i6` where ${i}`:void 0;return o.i6`update ${e} set ${r}${a}${n}`}buildSelection(e,{isSingleTable:t=!1}={}){let i=e.length,s=e.flatMap(({field:e},s)=>{let a=[];if((0,n.is)(e,o.$s.Aliased)&&e.isSelectionField)a.push(o.i6.identifier(e.fieldAlias));else if((0,n.is)(e,o.$s.Aliased)||(0,n.is)(e,o.$s)){let i=(0,n.is)(e,o.$s.Aliased)?e.sql:e;t?a.push(new o.$s(i.queryChunks.map(e=>(0,n.is)(e,r.s)?o.i6.identifier(e.name):e))):a.push(i),(0,n.is)(e,o.$s.Aliased)&&a.push(o.i6` as ${o.i6.identifier(e.fieldAlias)}`)}else if((0,n.is)(e,r.s)){let i=e.table[p.iA.Symbol.Name],s=e.name;t?a.push(o.i6.identifier(s)):a.push(o.i6`${o.i6.identifier(i)}.${o.i6.identifier(s)}`)}return s<i-1&&a.push(o.i6`, `),a});return o.i6.join(s)}buildSelectQuery({withList:e,fields:t,fieldsFlat:i,where:s,having:a,table:l,joins:u,orderBy:d,groupBy:g,limit:v,offset:b,distinct:_,setOperators:w}){let S;let x=i??(0,f.ZS)(t);for(let e of x){var k;if((0,n.is)(e.field,r.s)&&(0,p.SP)(e.field.table)!==((0,n.is)(l,h.k)?l[h.g1].alias:(0,n.is)(l,y.B)?l[m.d].name:(0,n.is)(l,o.$s)?void 0:(0,p.SP)(l))&&(k=e.field.table,!u?.some(({alias:e})=>e===(k[p.iA.Symbol.IsAlias]?p.SP(k):k[p.iA.Symbol.BaseName])))){let t=(0,p.SP)(e.field.table);throw Error(`Your "${e.path.join("->")}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}}let N=!u||0===u.length;if(e?.length){let t=[o.i6`with `];for(let[i,s]of e.entries())t.push(o.i6`${o.i6.identifier(s[h.g1].alias)} as (${s[h.g1].sql})`),i<e.length-1&&t.push(o.i6`, `);t.push(o.i6` `),S=o.i6.join(t)}let $=_?o.i6` distinct`:void 0,Q=this.buildSelection(x,{isSingleTable:N}),O=(0,n.is)(l,p.iA)&&l[p.iA.Symbol.OriginalName]!==l[p.iA.Symbol.Name]?o.i6`${o.i6.identifier(l[p.iA.Symbol.OriginalName])} ${o.i6.identifier(l[p.iA.Symbol.Name])}`:l,T=[];if(u)for(let[e,t]of u.entries()){0===e&&T.push(o.i6` `);let i=t.table;if((0,n.is)(i,c.xA)){let e=i[c.xA.Symbol.Name],s=i[c.xA.Symbol.Schema],r=i[c.xA.Symbol.OriginalName],n=e===r?void 0:t.alias;T.push(o.i6`${o.i6.raw(t.joinType)} join ${s?o.i6`${o.i6.identifier(s)}.`:void 0}${o.i6.identifier(r)}${n&&o.i6` ${o.i6.identifier(n)}`} on ${t.on}`)}else T.push(o.i6`${o.i6.raw(t.joinType)} join ${i} on ${t.on}`);e<u.length-1&&T.push(o.i6` `)}let A=o.i6.join(T),j=s?o.i6` where ${s}`:void 0,C=a?o.i6` having ${a}`:void 0,L=[];if(d)for(let[e,t]of d.entries())L.push(t),e<d.length-1&&L.push(o.i6`, `);let Z=[];if(g)for(let[e,t]of g.entries())Z.push(t),e<g.length-1&&Z.push(o.i6`, `);let P=Z.length>0?o.i6` group by ${o.i6.join(Z)}`:void 0,E=L.length>0?o.i6` order by ${o.i6.join(L)}`:void 0,q=v?o.i6` limit ${v}`:void 0,R=b?o.i6` offset ${b}`:void 0,I=o.i6`${S}select${$} ${Q} from ${O}${A}${j}${P}${C}${E}${q}${R}`;return w.length>0?this.buildSetOperations(I,w):I}buildSetOperations(e,t){let[i,...s]=t;if(!i)throw Error("Cannot pass undefined values to any set operator");return 0===s.length?this.buildSetOperationQuery({leftSelect:e,setOperator:i}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:i}),s)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:i,rightSelect:s,limit:r,orderBy:a,offset:l}}){let u;let c=o.i6`${e.getSQL()} `,h=o.i6`${s.getSQL()}`;if(a&&a.length>0){let e=[];for(let t of a)if((0,n.is)(t,d.l))e.push(o.i6.identifier(t.name));else if((0,n.is)(t,o.$s)){for(let e=0;e<t.queryChunks.length;e++){let i=t.queryChunks[e];(0,n.is)(i,d.l)&&(t.queryChunks[e]=o.i6.identifier(i.name))}e.push(o.i6`${t}`)}else e.push(o.i6`${t}`);u=o.i6` order by ${o.i6.join(e,o.i6`, `)}`}let p=r?o.i6` limit ${r}`:void 0,f=o.i6.raw(`${t} ${i?"all ":""}`),m=l?o.i6` offset ${l}`:void 0;return o.i6`${c}${f}${h}${u}${p}${m}`}buildInsertQuery({table:e,values:t,onConflict:i,returning:s}){let r=[],a=Object.entries(e[p.iA.Symbol.Columns]),l=a.map(([,e])=>o.i6.identifier(e.name));for(let[e,i]of t.entries()){let s=[];for(let[e,t]of a){let r=i[e];if(void 0===r||(0,n.is)(r,o.dO)&&void 0===r.value){let e;if(null!==t.default&&void 0!==t.default)e=(0,n.is)(t.default,o.$s)?t.default:o.i6.param(t.default,t);else if(void 0!==t.defaultFn){let i=t.defaultFn();e=(0,n.is)(i,o.$s)?i:o.i6.param(i,t)}else e=o.i6`null`;s.push(e)}else s.push(r)}r.push(s),e<t.length-1&&r.push(o.i6`, `)}let u=o.i6.join(r),d=s?o.i6` returning ${this.buildSelection(s,{isSingleTable:!0})}`:void 0,c=i?o.i6` on conflict ${i}`:void 0;return o.i6`insert into ${e} ${l} values ${u}${c}${d}`}sqlToQuery(e){return e.toQuery({escapeName:this.escapeName,escapeParam:this.escapeParam,escapeString:this.escapeString})}buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:i,table:f,tableConfig:m,queryConfig:y,tableAlias:g,nestedQueryRelation:v,joinOn:b}){let _,w=[],S,x,k=[],N,$=[];if(!0===y)w=Object.entries(m.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:(0,s.lw)(t,g),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let a=Object.fromEntries(Object.entries(m.columns).map(([e,t])=>[e,(0,s.lw)(t,g)]));if(y.where){let e="function"==typeof y.where?y.where(a,(0,l.vU)()):y.where;N=e&&(0,s.UI)(e,g)}let d=[],c=[];if(y.columns){let e=!1;for(let[t,i]of Object.entries(y.columns))void 0!==i&&t in m.columns&&(e||!0!==i||(e=!0),c.push(t));c.length>0&&(c=e?c.filter(e=>y.columns?.[e]===!0):Object.keys(m.columns).filter(e=>!c.includes(e)))}else c=Object.keys(m.columns);for(let e of c){let t=m.columns[e];d.push({tsKey:e,value:t})}let h=[];if(y.with&&(h=Object.entries(y.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:m.relations[e]}))),y.extras)for(let[e,t]of Object.entries("function"==typeof y.extras?y.extras(a,{sql:o.i6}):y.extras))d.push({tsKey:e,value:(0,s.qD)(t,g)});for(let{tsKey:e,value:t}of d)w.push({dbKey:(0,n.is)(t,o.$s.Aliased)?t.fieldAlias:m.columns[e].name,tsKey:e,field:(0,n.is)(t,r.s)?(0,s.lw)(t,g):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let f="function"==typeof y.orderBy?y.orderBy(a,(0,l.pl)()):y.orderBy??[];for(let{tsKey:a,queryConfig:d,relation:c}of(Array.isArray(f)||(f=[f]),k=f.map(e=>(0,n.is)(e,r.s)?(0,s.lw)(e,g):(0,s.UI)(e,g)),S=y.limit,x=y.offset,h)){let r=(0,l.wG)(t,i,c),h=i[c.referencedTable[p.iA.Symbol.Name]],f=`${g}_${a}`,m=(0,u.xD)(...r.fields.map((e,t)=>(0,u.eq)((0,s.lw)(r.references[t],f),(0,s.lw)(e,g)))),y=this.buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:i,table:e[h],tableConfig:t[h],queryConfig:(0,n.is)(c,l.fh)?!0===d?{limit:1}:{...d,limit:1}:d,tableAlias:f,joinOn:m,nestedQueryRelation:c}),v=o.i6`(${y.sql})`.as(a);w.push({dbKey:a,tsKey:a,field:v,relationTableTsKey:h,isJson:!0,selection:y.selection})}}if(0===w.length)throw new a.k({message:`No fields selected for table "${m.tsName}" ("${g}"). You need to have at least one item in "columns", "with" or "extras". If you need to select all columns, omit the "columns" key or set it to undefined.`});if(N=(0,u.xD)(b,N),v){let e=o.i6`json_array(${o.i6.join(w.map(({field:e})=>(0,n.is)(e,d.l)?o.i6.identifier(e.name):(0,n.is)(e,o.$s.Aliased)?e.sql:e),o.i6`, `)})`;(0,n.is)(v,l.sj)&&(e=o.i6`coalesce(json_group_array(${e}), json_array())`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:m.tsName,selection:w}];void 0!==S||void 0!==x||k.length>0?(_=this.buildSelectQuery({table:(0,s.RQ)(f,g),fields:{},fieldsFlat:[{path:[],field:o.i6.raw("*")}],where:N,limit:S,offset:x,orderBy:k,setOperators:[]}),N=void 0,S=void 0,x=void 0,k=void 0):_=(0,s.RQ)(f,g),_=this.buildSelectQuery({table:(0,n.is)(_,c.xA)?_:new h.k(_,{},g),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,n.is)(e,r.s)?(0,s.lw)(e,g):e})),joins:$,where:N,limit:S,offset:x,orderBy:k,setOperators:[]})}else _=this.buildSelectQuery({table:(0,s.RQ)(f,g),fields:{},fieldsFlat:w.map(({field:e})=>({path:[],field:(0,n.is)(e,r.s)?(0,s.lw)(e,g):e})),joins:$,where:N,limit:S,offset:x,orderBy:k,setOperators:[]});return{tableTsKey:m.tsName,sql:_,selection:w}}}class v extends g{static{this[n.Q]="SQLiteSyncDialect"}migrate(e,t){let i=o.i6` + CREATE TABLE IF NOT EXISTS "__drizzle_migrations" ( + id SERIAL PRIMARY KEY, + hash text NOT NULL, + created_at numeric + ) + `;t.run(i);let s=t.values(o.i6`SELECT id, hash, created_at FROM "__drizzle_migrations" ORDER BY created_at DESC LIMIT 1`)[0]??void 0;t.run(o.i6`BEGIN`);try{for(let i of e)if(!s||Number(s[2])<i.folderMillis){for(let e of i.sql)t.run(o.i6.raw(e));t.run(o.i6`INSERT INTO "__drizzle_migrations" ("hash", "created_at") VALUES(${i.hash}, ${i.folderMillis})`)}t.run(o.i6`COMMIT`)}catch(e){throw t.run(o.i6`ROLLBACK`),e}}}class b extends g{static{this[n.Q]="SQLiteAsyncDialect"}async migrate(e,t){let i=o.i6` + CREATE TABLE IF NOT EXISTS "__drizzle_migrations" ( + id SERIAL PRIMARY KEY, + hash text NOT NULL, + created_at numeric + ) + `;await t.run(i);let s=(await t.values(o.i6`SELECT id, hash, created_at FROM "__drizzle_migrations" ORDER BY created_at DESC LIMIT 1`))[0]??void 0;await t.transaction(async t=>{for(let i of e)if(!s||Number(s[2])<i.folderMillis){for(let e of i.sql)await t.run(o.i6.raw(e));await t.run(o.i6`INSERT INTO "__drizzle_migrations" ("hash", "created_at") VALUES(${i.hash}, ${i.folderMillis})`)}})}}},7591:(e,t,i)=>{i.d(t,{Kz:()=>l});var s=i(4869);class r{constructor(e,t){this.name=e,this.unique=t}static{this[s.Q]="SQLiteIndexBuilderOn"}on(...e){return new n(this.name,e,this.unique)}}class n{static{this[s.Q]="SQLiteIndexBuilder"}constructor(e,t,i){this.config={name:e,columns:t,unique:i,where:void 0}}where(e){return this.config.where=e,this}build(e){return new a(this.config,e)}}class a{static{this[s.Q]="SQLiteIndex"}constructor(e,t){this.config={...e,table:t}}}function l(e){return new r(e,!1)}},7357:(e,t,i)=>{i.d(t,{CK:()=>n});var s=i(4869),r=i(5225);function n(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[s.Q]="SQLitePrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new l(e,this.columns,this.name)}}class l{constructor(e,t,i){this.table=e,this.columns=t,this.name=i}static{this[s.Q]="SQLitePrimaryKey"}getName(){return this.name??`${this.table[r.xA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},5225:(e,t,i)=>{let s;i.d(t,{Px:()=>u,_9:()=>d,xA:()=>l});var r=i(4869),n=i(3543);let a=Symbol.for("drizzle:SQLiteInlineForeignKeys");class l extends n.iA{static{n.iA.Symbol.Columns,s=n.iA.Symbol.ExtraConfigBuilder}static{this[r.Q]="SQLiteTable"}static{this.Symbol=Object.assign({},n.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[s]=void 0}}function o(e,t,i,s,r=e){let o=new l(e,s,r),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let i=t.build(o);return o[a].push(...t.buildForeignKeys(i,o)),[e,i]})),d=Object.assign(o,u);return d[n.iA.Symbol.Columns]=u,i&&(d[l.Symbol.ExtraConfigBuilder]=i),d}let u=(e,t,i)=>o(e,t,i);function d(e){return(t,i,s)=>o(e(t),i,s,void 0,t)}},2904:(e,t,i)=>{i.d(t,{B:()=>n});var s=i(4869),r=i(2393);class n extends r.G7{static{this[s.Q]="SQLiteViewBase"}}},2877:(e,t,i)=>{i.d(t,{SC:()=>a,g1:()=>r,k:()=>n});var s=i(4869);let r=Symbol.for("drizzle:SubqueryConfig");class n{static{this[s.Q]="Subquery"}constructor(e,t,i,s=!1){this[r]={sql:e,selection:t,alias:i,isWith:s}}}class a extends n{static{this[s.Q]="WithSubquery"}}},3543:(e,t,i)=>{i.d(t,{SP:()=>f,iA:()=>h,wb:()=>p});var s=i(4869);let r=Symbol.for("drizzle:Name"),n=Symbol.for("drizzle:Schema"),a=Symbol.for("drizzle:Columns"),l=Symbol.for("drizzle:OriginalName"),o=Symbol.for("drizzle:BaseName"),u=Symbol.for("drizzle:IsAlias"),d=Symbol.for("drizzle:ExtraConfigBuilder"),c=Symbol.for("drizzle:IsDrizzleTable");class h{static{this[s.Q]="Table"}static{this.Symbol={Name:r,Schema:n,OriginalName:l,Columns:a,BaseName:o,IsAlias:u,ExtraConfigBuilder:d}}constructor(e,t,i){this[u]=!1,this[d]=void 0,this[c]=!0,this[r]=this[l]=e,this[n]=t,this[o]=i}}function p(e){return"object"==typeof e&&null!==e&&c in e}function f(e){return e[r]}},8823:(e,t,i)=>{i.d(t,{t:()=>s});function s(e,...t){return e(...t)}},7415:(e,t,i)=>{let s,r;i.d(t,{Z:()=>a});var n=i(8823);let a={startActiveSpan:(e,t)=>s?(r||(r=s.trace.getTracer("drizzle-orm","0.29.3")),(0,n.t)((i,s)=>s.startActiveSpan(e,e=>{try{return t(e)}catch(t){throw e.setStatus({code:i.SpanStatusCode.ERROR,message:t instanceof Error?t.message:"Unknown error"}),t}finally{e.end()}}),s,r)):t()}},9324:(e,t,i)=>{i.d(t,{M4:()=>u,M6:()=>c,SS:()=>p,ZS:()=>function e(t,i){return Object.entries(t).reduce((t,[a,o])=>{if("string"!=typeof a)return t;let u=i?[...i,a]:[a];return(0,r.is)(o,s.s)||(0,r.is)(o,n.$s)||(0,r.is)(o,n.$s.Aliased)?t.push({path:u,field:o}):(0,r.is)(o,l.iA)?t.push(...e(o[l.iA.Symbol.Columns],u)):t.push(...e(o,u)),t},[])},dP:()=>f,ef:()=>h,ux:()=>d});var s=i(9105),r=i(4869),n=i(2393),a=i(2877),l=i(3543),o=i(776);function u(e,t,i){let a={},o=e.reduce((e,{path:o,field:u},d)=>{let c;c=(0,r.is)(u,s.s)?u:(0,r.is)(u,n.$s)?u.decoder:u.sql.decoder;let h=e;for(let[e,n]of o.entries())if(e<o.length-1)n in h||(h[n]={}),h=h[n];else{let e=t[d],p=h[n]=null===e?null:c.mapFromDriverValue(e);if(i&&(0,r.is)(u,s.s)&&2===o.length){let e=o[0];e in a?"string"==typeof a[e]&&a[e]!==(0,l.SP)(u.table)&&(a[e]=!1):a[e]=null===p&&(0,l.SP)(u.table)}}return e},{});if(i&&Object.keys(a).length>0)for(let[e,t]of Object.entries(a))"string"!=typeof t||i[t]||(o[e]=null);return o}function d(e,t){let i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(let[e,t]of i.entries())if(t!==s[e])return!1;return!0}function c(e,t){let i=Object.entries(t).filter(([,e])=>void 0!==e).map(([t,i])=>(0,r.is)(i,n.$s)?[t,i]:[t,new n.dO(i,e[l.iA.Symbol.Columns][t])]);if(0===i.length)throw Error("No values to set");return Object.fromEntries(i)}function h(e,t){for(let i of t)for(let t of Object.getOwnPropertyNames(i.prototype))"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(i.prototype,t)||Object.create(null))}function p(e){return e[l.iA.Symbol.Columns]}function f(e){return(0,r.is)(e,a.k)?e[a.g1].alias:(0,r.is)(e,n.G7)?e[o.d].name:(0,r.is)(e,n.$s)?void 0:e[l.iA.Symbol.IsAlias]?e[l.iA.Symbol.Name]:e[l.iA.Symbol.BaseName]}},776:(e,t,i)=>{i.d(t,{d:()=>s});let s=Symbol.for("drizzle:ViewBaseConfig")},3251:(e,t,i)=>{let s;i.d(t,{z:()=>e9}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},e.getValidEnumValues=t=>{let i=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),s={};for(let e of i)s[e]=t[e];return e.objectValues(s)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(let i of e)if(t(i))return i},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(e0||(e0={})),(e6||(e6={})).mergeShapes=(e,t)=>({...e,...t});let r=e0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),n=e=>{switch(typeof e){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(e)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("undefined"!=typeof Map&&e instanceof Map)return r.map;if("undefined"!=typeof Set&&e instanceof Set)return r.set;if("undefined"!=typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}},a=e0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},i={_errors:[]},s=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(s);else if("invalid_return_type"===r.code)s(r.returnTypeError);else if("invalid_arguments"===r.code)s(r.argumentsError);else if(0===r.path.length)i._errors.push(t(r));else{let e=i,s=0;for(;s<r.path.length;){let i=r.path[s];s===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],s++}}};return s(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,e0.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},i=[];for(let s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):i.push(e(s));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);let o=(e,t)=>{let i;switch(e.code){case a.invalid_type:i=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,e0.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:i=`Unrecognized key(s) in object: ${e0.joinValues(e.keys,", ")}`;break;case a.invalid_union:i="Invalid input";break;case a.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${e0.joinValues(e.options)}`;break;case a.invalid_enum_value:i=`Invalid enum value. Expected ${e0.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:i="Invalid function arguments";break;case a.invalid_return_type:i="Invalid function return type";break;case a.invalid_date:i="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:e0.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:i="Invalid input";break;case a.invalid_intersection_types:i="Intersection results could not be merged";break;case a.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:i="Number must be finite";break;default:i=t.defaultError,e0.assertNever(e)}return{message:i}},u=o;function d(){return u}let c=e=>{let{data:t,path:i,errorMaps:s,issueData:r}=e,n=[...i,...r.path||[]],a={...r,path:n},l="";for(let e of s.filter(e=>!!e).slice().reverse())l=e(a,{data:t,defaultError:l}).message;return{...r,path:n,message:r.message||l}};function h(e,t){let i=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,d(),o].filter(e=>!!e)});e.common.issues.push(i)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let s of t){if("aborted"===s.status)return f;"dirty"===s.status&&e.dirty(),i.push(s.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t)i.push({key:await e.key,value:await e.value});return p.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let s of t){let{key:t,value:r}=s;if("aborted"===t.status||"aborted"===r.status)return f;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||s.alwaysSet)&&(i[t.value]=r.value)}return{status:e.value,value:i}}}let f=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),g=e=>"aborted"===e.status,v=e=>"dirty"===e.status,b=e=>"valid"===e.status,_=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(e1||(e1={}));class w{constructor(e,t,i,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let S=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l(e.common.issues);return this._error=t,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:s,description:r}=e;if(t&&(i||s))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=s?s:t.defaultError}:{message:null!=i?i:t.defaultError},description:r}}class k{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return n(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(_(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;let s={common:{issues:[],async:null!==(i=null==t?void 0:t.async)&&void 0!==i&&i,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:n(e)},r=this._parseSync({data:e,path:s.path,parent:s});return S(s,r)}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:n(e)},s=this._parse({data:e,path:i.path,parent:i});return S(i,await (_(s)?s:Promise.resolve(s)))}refine(e,t){let i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,s)=>{let r=e(t),n=()=>s.addIssue({code:a.custom,...i(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then(e=>!!e||(n(),!1)):!!r||(n(),!1)})}refinement(e,t){return this._refinement((i,s)=>!!e(i)||(s.addIssue("function"==typeof t?t(i,s):t),!1))}_refinement(e){return new eo({schema:this,typeName:e2.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eu.create(this,this._def)}nullable(){return ed.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return K.create(this,this._def)}promise(){return el.create(this,this._def)}or(e){return V.create([this,e],this._def)}and(e){return G.create(this,e,this._def)}transform(e){return new eo({...x(this._def),schema:this,typeName:e2.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ec({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:e2.ZodDefault})}brand(){return new em({typeName:e2.ZodBranded,type:this,...x(this._def)})}catch(e){return new eh({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:e2.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ey.create(this,e)}readonly(){return eg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let N=/^c[^\s-]{8,}$/i,$=/^[a-z][a-z0-9]*$/,Q=/^[0-9A-HJKMNP-TV-Z]{26}$/,O=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,T=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,A=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,j=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,C=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class L extends k{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r.string){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.string,received:t.parsedType}),f}let i=new p;for(let r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if("max"===r.kind)e.data.length>r.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if("length"===r.kind){let s=e.data.length>r.value,n=e.data.length<r.value;(s||n)&&(t=this._getOrReturnCtx(e,t),s?h(t,{code:a.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):n&&h(t,{code:a.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if("email"===r.kind)T.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.invalid_string,message:r.message}),i.dirty());else if("emoji"===r.kind)s||(s=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),s.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.invalid_string,message:r.message}),i.dirty());else if("uuid"===r.kind)O.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.invalid_string,message:r.message}),i.dirty());else if("cuid"===r.kind)N.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.invalid_string,message:r.message}),i.dirty());else if("cuid2"===r.kind)$.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.invalid_string,message:r.message}),i.dirty());else if("ulid"===r.kind)Q.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.invalid_string,message:r.message}),i.dirty());else if("url"===r.kind)try{new URL(e.data)}catch(s){h(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.invalid_string,message:r.message}),i.dirty()}else if("regex"===r.kind)r.regex.lastIndex=0,r.regex.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.invalid_string,message:r.message}),i.dirty());else if("trim"===r.kind)e.data=e.data.trim();else if("includes"===r.kind)e.data.includes(r.value,r.position)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty());else if("toLowerCase"===r.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===r.kind)e.data=e.data.toUpperCase();else if("startsWith"===r.kind)e.data.startsWith(r.value)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty());else if("endsWith"===r.kind)e.data.endsWith(r.value)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty());else if("datetime"===r.kind)C(r).test(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"datetime",message:r.message}),i.dirty());else if("ip"===r.kind){var n,l;n=e.data,("v4"===(l=r.version)||!l)&&A.test(n)||("v6"===l||!l)&&j.test(n)||(h(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.invalid_string,message:r.message}),i.dirty())}else e0.assertNever(r);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...e1.errToObj(i)})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...e1.errToObj(e)})}url(e){return this._addCheck({kind:"url",...e1.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...e1.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...e1.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...e1.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...e1.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...e1.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...e1.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...e1.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...e1.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...e1.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...e1.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...e1.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...e1.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...e1.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...e1.errToObj(t)})}nonempty(e){return this.min(1,e1.errToObj(e))}trim(){return new L({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}L.create=e=>{var t;return new L({checks:[],typeName:e2.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class Z extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==r.number){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.number,received:t.parsedType}),f}let i=new p;for(let s of this._def.checks)"int"===s.kind?e0.isInteger(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):"multipleOf"===s.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=i>s?i:s;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}(e.data,s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):"finite"===s.kind?Number.isFinite(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:s.message}),i.dirty()):e0.assertNever(s);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e1.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e1.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e1.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e1.toString(t))}setLimit(e,t,i,s){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:e1.toString(s)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e1.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e1.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e1.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e1.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e1.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e1.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:e1.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:e1.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:e1.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&e0.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:e2.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class P extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==r.bigint){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.bigint,received:t.parsedType}),f}let i=new p;for(let s of this._def.checks)"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):"multipleOf"===s.kind?e.data%s.value!==BigInt(0)&&(h(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):e0.assertNever(s);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e1.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e1.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e1.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e1.toString(t))}setLimit(e,t,i,s){return new P({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:e1.toString(s)}]})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:e1.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:e1.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:e1.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:e1.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e1.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}P.create=e=>{var t;return new P({checks:[],typeName:e2.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class E extends k{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r.boolean){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.boolean,received:t.parsedType}),f}return y(e.data)}}E.create=e=>new E({typeName:e2.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class q extends k{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==r.date){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.date,received:t.parsedType}),f}if(isNaN(e.data.getTime()))return h(this._getOrReturnCtx(e),{code:a.invalid_date}),f;let i=new p;for(let s of this._def.checks)"min"===s.kind?e.data.getTime()<s.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):"max"===s.kind?e.data.getTime()>s.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):e0.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e1.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e1.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}q.create=e=>new q({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:e2.ZodDate,...x(e)});class R extends k{_parse(e){if(this._getType(e)!==r.symbol){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.symbol,received:t.parsedType}),f}return y(e.data)}}R.create=e=>new R({typeName:e2.ZodSymbol,...x(e)});class I extends k{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.undefined,received:t.parsedType}),f}return y(e.data)}}I.create=e=>new I({typeName:e2.ZodUndefined,...x(e)});class B extends k{_parse(e){if(this._getType(e)!==r.null){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.null,received:t.parsedType}),f}return y(e.data)}}B.create=e=>new B({typeName:e2.ZodNull,...x(e)});class D extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}D.create=e=>new D({typeName:e2.ZodAny,...x(e)});class M extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}M.create=e=>new M({typeName:e2.ZodUnknown,...x(e)});class z extends k{_parse(e){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.never,received:t.parsedType}),f}}z.create=e=>new z({typeName:e2.ZodNever,...x(e)});class F extends k{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.void,received:t.parsedType}),f}return y(e.data)}}F.create=e=>new F({typeName:e2.ZodVoid,...x(e)});class K extends k{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),s=this._def;if(t.parsedType!==r.array)return h(t,{code:a.invalid_type,expected:r.array,received:t.parsedType}),f;if(null!==s.exactLength){let e=t.data.length>s.exactLength.value,r=t.data.length<s.exactLength.value;(e||r)&&(h(t,{code:e?a.too_big:a.too_small,minimum:r?s.exactLength.value:void 0,maximum:e?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),i.dirty())}if(null!==s.minLength&&t.data.length<s.minLength.value&&(h(t,{code:a.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),i.dirty()),null!==s.maxLength&&t.data.length>s.maxLength.value&&(h(t,{code:a.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>s.type._parseAsync(new w(t,e,t.path,i)))).then(e=>p.mergeArray(i,e));let n=[...t.data].map((e,i)=>s.type._parseSync(new w(t,e,t.path,i)));return p.mergeArray(i,n)}get element(){return this._def.type}min(e,t){return new K({...this._def,minLength:{value:e,message:e1.toString(t)}})}max(e,t){return new K({...this._def,maxLength:{value:e,message:e1.toString(t)}})}length(e,t){return new K({...this._def,exactLength:{value:e,message:e1.toString(t)}})}nonempty(e){return this.min(1,e)}}K.create=(e,t)=>new K({type:e,minLength:null,maxLength:null,exactLength:null,typeName:e2.ZodArray,...x(t)});class U extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e0.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==r.object){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),f}let{status:t,ctx:i}=this._processInputParams(e),{shape:s,keys:n}=this._getCached(),l=[];if(!(this._def.catchall instanceof z&&"strip"===this._def.unknownKeys))for(let e in i.data)n.includes(e)||l.push(e);let o=[];for(let e of n){let t=s[e],r=i.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new w(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof z){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of l)o.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)l.length>0&&(h(i,{code:a.unrecognized_keys,keys:l}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of l){let s=i.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new w(i,s,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let i=await t.key;e.push({key:i,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return e1.errToObj,new U({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{var s,r,n,a;let l=null!==(n=null===(r=(s=this._def).errorMap)||void 0===r?void 0:r.call(s,t,i).message)&&void 0!==n?n:i.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=e1.errToObj(e).message)&&void 0!==a?a:l}:{message:l}}}:{}})}strip(){return new U({...this._def,unknownKeys:"strip"})}passthrough(){return new U({...this._def,unknownKeys:"passthrough"})}extend(e){return new U({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new U({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:e2.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new U({...this._def,catchall:e})}pick(e){let t={};return e0.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new U({...this._def,shape:()=>t})}omit(e){let t={};return e0.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new U({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof U){let i={};for(let s in t.shape){let r=t.shape[s];i[s]=eu.create(e(r))}return new U({...t._def,shape:()=>i})}return t instanceof K?new K({...t._def,type:e(t.element)}):t instanceof eu?eu.create(e(t.unwrap())):t instanceof ed?ed.create(e(t.unwrap())):t instanceof Y?Y.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return e0.objectKeys(this.shape).forEach(i=>{let s=this.shape[i];e&&!e[i]?t[i]=s:t[i]=s.optional()}),new U({...this._def,shape:()=>t})}required(e){let t={};return e0.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof eu;)e=e._def.innerType;t[i]=e}}),new U({...this._def,shape:()=>t})}keyof(){return er(e0.objectKeys(this.shape))}}U.create=(e,t)=>new U({shape:()=>e,unknownKeys:"strip",catchall:z.create(),typeName:e2.ZodObject,...x(t)}),U.strictCreate=(e,t)=>new U({shape:()=>e,unknownKeys:"strict",catchall:z.create(),typeName:e2.ZodObject,...x(t)}),U.lazycreate=(e,t)=>new U({shape:e,unknownKeys:"strip",catchall:z.create(),typeName:e2.ZodObject,...x(t)});class V extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new l(e.ctx.common.issues));return h(t,{code:a.invalid_union,unionErrors:i}),f});{let e;let s=[];for(let r of i){let i={...t,common:{...t.common,issues:[]},parent:null},n=r._parseSync({data:t.data,path:t.path,parent:i});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:i}),i.common.issues.length&&s.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=s.map(e=>new l(e));return h(t,{code:a.invalid_union,unionErrors:r}),f}}get options(){return this._def.options}}V.create=(e,t)=>new V({options:e,typeName:e2.ZodUnion,...x(t)});let J=e=>{if(e instanceof ei)return J(e.schema);if(e instanceof eo)return J(e.innerType());if(e instanceof es)return[e.value];if(e instanceof en)return e.options;if(e instanceof ea)return Object.keys(e.enum);if(e instanceof ec)return J(e._def.innerType);if(e instanceof I)return[void 0];else if(e instanceof B)return[null];else return null};class W extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return h(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),f;let i=this.discriminator,s=t.data[i],n=this.optionsMap.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),f)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let s=new Map;for(let i of t){let t=J(i.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of t){if(s.has(r))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);s.set(r,i)}}return new W({typeName:e2.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...x(i)})}}class G extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),s=(e,s)=>{if(g(e)||g(s))return f;let l=function e(t,i){let s=n(t),a=n(i);if(t===i)return{valid:!0,data:t};if(s===r.object&&a===r.object){let s=e0.objectKeys(i),r=e0.objectKeys(t).filter(e=>-1!==s.indexOf(e)),n={...t,...i};for(let s of r){let r=e(t[s],i[s]);if(!r.valid)return{valid:!1};n[s]=r.data}return{valid:!0,data:n}}if(s===r.array&&a===r.array){if(t.length!==i.length)return{valid:!1};let s=[];for(let r=0;r<t.length;r++){let n=e(t[r],i[r]);if(!n.valid)return{valid:!1};s.push(n.data)}return{valid:!0,data:s}}return s===r.date&&a===r.date&&+t==+i?{valid:!0,data:t}:{valid:!1}}(e.value,s.value);return l.valid?((v(e)||v(s))&&t.dirty(),{status:t.value,value:l.data}):(h(i,{code:a.invalid_intersection_types}),f)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}G.create=(e,t,i)=>new G({left:e,right:t,typeName:e2.ZodIntersection,...x(i)});class Y extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.array)return h(i,{code:a.invalid_type,expected:r.array,received:i.parsedType}),f;if(i.data.length<this._def.items.length)return h(i,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),f;!this._def.rest&&i.data.length>this._def.items.length&&(h(i,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...i.data].map((e,t)=>{let s=this._def.items[t]||this._def.rest;return s?s._parse(new w(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(s).then(e=>p.mergeArray(t,e)):p.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new Y({...this._def,rest:e})}}Y.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Y({items:e,typeName:e2.ZodTuple,rest:null,...x(t)})};class H extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.object)return h(i,{code:a.invalid_type,expected:r.object,received:i.parsedType}),f;let s=[],n=this._def.keyType,l=this._def.valueType;for(let e in i.data)s.push({key:n._parse(new w(i,e,i.path,e)),value:l._parse(new w(i,i.data[e],i.path,e))});return i.common.async?p.mergeObjectAsync(t,s):p.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,i){return new H(t instanceof k?{keyType:e,valueType:t,typeName:e2.ZodRecord,...x(i)}:{keyType:L.create(),valueType:e,typeName:e2.ZodRecord,...x(t)})}}class X extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.map)return h(i,{code:a.invalid_type,expected:r.map,received:i.parsedType}),f;let s=this._def.keyType,n=this._def.valueType,l=[...i.data.entries()].map(([e,t],r)=>({key:s._parse(new w(i,e,i.path,[r,"key"])),value:n._parse(new w(i,t,i.path,[r,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of l){let s=await i.key,r=await i.value;if("aborted"===s.status||"aborted"===r.status)return f;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of l){let s=i.key,r=i.value;if("aborted"===s.status||"aborted"===r.status)return f;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}}}}X.create=(e,t,i)=>new X({valueType:t,keyType:e,typeName:e2.ZodMap,...x(i)});class ee extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.set)return h(i,{code:a.invalid_type,expected:r.set,received:i.parsedType}),f;let s=this._def;null!==s.minSize&&i.data.size<s.minSize.value&&(h(i,{code:a.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),null!==s.maxSize&&i.data.size>s.maxSize.value&&(h(i,{code:a.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let n=this._def.valueType;function l(e){let i=new Set;for(let s of e){if("aborted"===s.status)return f;"dirty"===s.status&&t.dirty(),i.add(s.value)}return{status:t.value,value:i}}let o=[...i.data.values()].map((e,t)=>n._parse(new w(i,e,i.path,t)));return i.common.async?Promise.all(o).then(e=>l(e)):l(o)}min(e,t){return new ee({...this._def,minSize:{value:e,message:e1.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:e1.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:e2.ZodSet,...x(t)});class et extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return h(t,{code:a.invalid_type,expected:r.function,received:t.parsedType}),f;function i(e,i){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),o].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:i}})}function s(e,i){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),o].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:i}})}let n={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof el){let e=this;return y(async function(...t){let r=new l([]),a=await e._def.args.parseAsync(t,n).catch(e=>{throw r.addIssue(i(t,e)),r}),o=await Reflect.apply(u,this,a);return await e._def.returns._def.type.parseAsync(o,n).catch(e=>{throw r.addIssue(s(o,e)),r})})}{let e=this;return y(function(...t){let r=e._def.args.safeParse(t,n);if(!r.success)throw new l([i(t,r.error)]);let a=Reflect.apply(u,this,r.data),o=e._def.returns.safeParse(a,n);if(!o.success)throw new l([s(a,o.error)]);return o.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:Y.create(e).rest(M.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new et({args:e||Y.create([]).rest(M.create()),returns:t||M.create(),typeName:e2.ZodFunction,...x(i)})}}class ei extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ei.create=(e,t)=>new ei({getter:e,typeName:e2.ZodLazy,...x(t)});class es extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),f}return{status:"valid",value:e.data}}get value(){return this._def.value}}function er(e,t){return new en({values:e,typeName:e2.ZodEnum,...x(t)})}es.create=(e,t)=>new es({value:e,typeName:e2.ZodLiteral,...x(t)});class en extends k{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return h(t,{expected:e0.joinValues(i),received:t.parsedType,code:a.invalid_type}),f}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return h(t,{received:t.data,code:a.invalid_enum_value,options:i}),f}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return en.create(e)}exclude(e){return en.create(this.options.filter(t=>!e.includes(t)))}}en.create=er;class ea extends k{_parse(e){let t=e0.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==r.string&&i.parsedType!==r.number){let e=e0.objectValues(t);return h(i,{expected:e0.joinValues(e),received:i.parsedType,code:a.invalid_type}),f}if(-1===t.indexOf(e.data)){let e=e0.objectValues(t);return h(i,{received:i.data,code:a.invalid_enum_value,options:e}),f}return y(e.data)}get enum(){return this._def.values}}ea.create=(e,t)=>new ea({values:e,typeName:e2.ZodNativeEnum,...x(t)});class el extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==r.promise&&!1===t.common.async?(h(t,{code:a.invalid_type,expected:r.promise,received:t.parsedType}),f):y((t.parsedType===r.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}el.create=(e,t)=>new el({type:e,typeName:e2.ZodPromise,...x(t)});class eo extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===e2.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),s=this._def.effect||null,r={addIssue:e=>{h(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===s.type){let e=s.transform(i.data,r);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:i.path,parent:i})):this._def.schema._parseSync({data:e,path:i.path,parent:i})}if("refinement"===s.type){let e=e=>{let t=s.refinement(e,r);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?f:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===s.status?f:("dirty"===s.status&&t.dirty(),e(s.value),{status:t.value,value:s.value})}}if("transform"===s.type){if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>b(e)?Promise.resolve(s.transform(e.value,r)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!b(e))return e;let n=s.transform(e.value,r);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}}e0.assertNever(s)}}eo.create=(e,t,i)=>new eo({schema:e,typeName:e2.ZodEffects,effect:t,...x(i)}),eo.createWithPreprocess=(e,t,i)=>new eo({schema:t,effect:{type:"preprocess",transform:e},typeName:e2.ZodEffects,...x(i)});class eu extends k{_parse(e){return this._getType(e)===r.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:e2.ZodOptional,...x(t)});class ed extends k{_parse(e){return this._getType(e)===r.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:e2.ZodNullable,...x(t)});class ec extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===r.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:e2.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class eh extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return _(s)?s.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new l(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:e2.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class ep extends k{_parse(e){if(this._getType(e)!==r.nan){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.nan,received:t.parsedType}),f}return{status:"valid",value:e.data}}}ep.create=e=>new ep({typeName:e2.ZodNaN,...x(e)});let ef=Symbol("zod_brand");class em extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class ey extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new ey({in:e,out:t,typeName:e2.ZodPipeline})}}class eg extends k{_parse(e){let t=this._def.innerType._parse(e);return b(t)&&(t.value=Object.freeze(t.value)),t}}eg.create=(e,t)=>new eg({innerType:e,typeName:e2.ZodReadonly,...x(t)});let ev=(e,t={},i)=>e?D.create().superRefine((s,r)=>{var n,a;if(!e(s)){let e="function"==typeof t?t(s):"string"==typeof t?{message:t}:t,l=null===(a=null!==(n=e.fatal)&&void 0!==n?n:i)||void 0===a||a;r.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:l})}}):D.create(),eb={object:U.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(e2||(e2={}));let e_=L.create,ew=Z.create,eS=ep.create,ex=P.create,ek=E.create,eN=q.create,e$=R.create,eQ=I.create,eO=B.create,eT=D.create,eA=M.create,ej=z.create,eC=F.create,eL=K.create,eZ=U.create,eP=U.strictCreate,eE=V.create,eq=W.create,eR=G.create,eI=Y.create,eB=H.create,eD=X.create,eM=ee.create,ez=et.create,eF=ei.create,eK=es.create,eU=en.create,eV=ea.create,eJ=el.create,eW=eo.create,eG=eu.create,eY=ed.create,eH=eo.createWithPreprocess,eX=ey.create;var e0,e6,e1,e2,e9=Object.freeze({__proto__:null,defaultErrorMap:o,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:c,EMPTY_PATH:[],addIssueToContext:h,ParseStatus:p,INVALID:f,DIRTY:m,OK:y,isAborted:g,isDirty:v,isValid:b,isAsync:_,get util(){return e0},get objectUtil(){return e6},ZodParsedType:r,getParsedType:n,ZodType:k,ZodString:L,ZodNumber:Z,ZodBigInt:P,ZodBoolean:E,ZodDate:q,ZodSymbol:R,ZodUndefined:I,ZodNull:B,ZodAny:D,ZodUnknown:M,ZodNever:z,ZodVoid:F,ZodArray:K,ZodObject:U,ZodUnion:V,ZodDiscriminatedUnion:W,ZodIntersection:G,ZodTuple:Y,ZodRecord:H,ZodMap:X,ZodSet:ee,ZodFunction:et,ZodLazy:ei,ZodLiteral:es,ZodEnum:en,ZodNativeEnum:ea,ZodPromise:el,ZodEffects:eo,ZodTransformer:eo,ZodOptional:eu,ZodNullable:ed,ZodDefault:ec,ZodCatch:eh,ZodNaN:ep,BRAND:ef,ZodBranded:em,ZodPipeline:ey,ZodReadonly:eg,custom:ev,Schema:k,ZodSchema:k,late:eb,get ZodFirstPartyTypeKind(){return e2},coerce:{string:e=>L.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>E.create({...e,coerce:!0}),bigint:e=>P.create({...e,coerce:!0}),date:e=>q.create({...e,coerce:!0})},any:eT,array:eL,bigint:ex,boolean:ek,date:eN,discriminatedUnion:eq,effect:eW,enum:eU,function:ez,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ev(t=>t instanceof e,t),intersection:eR,lazy:eF,literal:eK,map:eD,nan:eS,nativeEnum:eV,never:ej,null:eO,nullable:eY,number:ew,object:eZ,oboolean:()=>ek().optional(),onumber:()=>ew().optional(),optional:eG,ostring:()=>e_().optional(),pipeline:eX,preprocess:eH,promise:eJ,record:eB,set:eM,strictObject:eP,string:e_,symbol:e$,transformer:eW,tuple:eI,undefined:eQ,union:eE,unknown:eA,void:eC,NEVER:f,ZodIssueCode:a,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}};
\ No newline at end of file diff --git a/apps/web/.next/server/chunks/font-manifest.json b/apps/web/.next/server/chunks/font-manifest.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/apps/web/.next/server/chunks/font-manifest.json @@ -0,0 +1 @@ +[]
\ No newline at end of file diff --git a/apps/web/.next/server/font-manifest.json b/apps/web/.next/server/font-manifest.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/apps/web/.next/server/font-manifest.json @@ -0,0 +1 @@ +[]
\ No newline at end of file diff --git a/apps/web/.next/server/functions-config-manifest.json b/apps/web/.next/server/functions-config-manifest.json new file mode 100644 index 00000000..996cd783 --- /dev/null +++ b/apps/web/.next/server/functions-config-manifest.json @@ -0,0 +1 @@ +{"version":1,"functions":{}}
\ No newline at end of file diff --git a/apps/web/.next/server/middleware-build-manifest.js b/apps/web/.next/server/middleware-build-manifest.js new file mode 100644 index 00000000..9d1286d0 --- /dev/null +++ b/apps/web/.next/server/middleware-build-manifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js","static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-7c56eb6342069862.js","static/chunks/1dd3208c-2005e60b0a14e8cf.js","static/chunks/997-22e52d7003e9633c.js","static/chunks/main-app-6394067cfc5308ad.js"],pages:{"/_app":["static/chunks/webpack-7c56eb6342069862.js","static/chunks/framework-9e68550641db712d.js","static/chunks/main-2f8ae24bc202a544.js","static/chunks/pages/_app-22ef1381f3010e9c.js"],"/_error":["static/chunks/webpack-7c56eb6342069862.js","static/chunks/framework-9e68550641db712d.js","static/chunks/main-2f8ae24bc202a544.js","static/chunks/pages/_error-2312f57de16788ac.js"]},ampFirstPages:[]};
\ No newline at end of file diff --git a/apps/web/.next/server/middleware-manifest.json b/apps/web/.next/server/middleware-manifest.json new file mode 100644 index 00000000..57712aad --- /dev/null +++ b/apps/web/.next/server/middleware-manifest.json @@ -0,0 +1,6 @@ +{ + "sortedMiddleware": [], + "middleware": {}, + "functions": {}, + "version": 2 +}
\ No newline at end of file diff --git a/apps/web/.next/server/middleware-react-loadable-manifest.js b/apps/web/.next/server/middleware-react-loadable-manifest.js new file mode 100644 index 00000000..170749ec --- /dev/null +++ b/apps/web/.next/server/middleware-react-loadable-manifest.js @@ -0,0 +1 @@ +self.__REACT_LOADABLE_MANIFEST="{}";
\ No newline at end of file diff --git a/apps/web/.next/server/next-font-manifest.js b/apps/web/.next/server/next-font-manifest.js new file mode 100644 index 00000000..00b97b69 --- /dev/null +++ b/apps/web/.next/server/next-font-manifest.js @@ -0,0 +1 @@ +self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/media/c9a5bc6a7c948fb0-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}';
\ No newline at end of file diff --git a/apps/web/.next/server/next-font-manifest.json b/apps/web/.next/server/next-font-manifest.json new file mode 100644 index 00000000..d007a4c9 --- /dev/null +++ b/apps/web/.next/server/next-font-manifest.json @@ -0,0 +1 @@ +{"pages":{},"app":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/media/c9a5bc6a7c948fb0-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}
\ No newline at end of file diff --git a/apps/web/.next/server/pages-manifest.json b/apps/web/.next/server/pages-manifest.json new file mode 100644 index 00000000..f7c2e894 --- /dev/null +++ b/apps/web/.next/server/pages-manifest.json @@ -0,0 +1 @@ +{"/_app":"pages/_app.js","/_error":"pages/_error.js","/_document":"pages/_document.js","/404":"pages/404.html"}
\ No newline at end of file diff --git a/apps/web/.next/server/pages/404.html b/apps/web/.next/server/pages/404.html new file mode 100644 index 00000000..5b9ab9b8 --- /dev/null +++ b/apps/web/.next/server/pages/404.html @@ -0,0 +1 @@ +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/6c15d7e3526590b3.css" crossorigin="" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-7c56eb6342069862.js" crossorigin=""/><script src="/_next/static/chunks/1dd3208c-2005e60b0a14e8cf.js" async="" crossorigin=""></script><script src="/_next/static/chunks/997-22e52d7003e9633c.js" async="" crossorigin=""></script><script src="/_next/static/chunks/main-app-6394067cfc5308ad.js" async="" crossorigin=""></script><title>404: This page could not be found.</title><title>Create T3 App</title><meta name="description" content="Generated by create-t3-app"/><link rel="icon" href="/favicon.ico"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body class="font-sans __variable_aaf875"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-7c56eb6342069862.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/css/6c15d7e3526590b3.css\",\"style\",{\"crossOrigin\":\"\"}]\n0:\"$L3\"\n"])</script><script>self.__next_f.push([1,"4:I[8950,[],\"\"]\n6:I[2172,[],\"\"]\n7:I[2533,[],\"\"]\nd:I[5119,[],\"\"]\n8:{\"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\"}\n9:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\na:{\"display\":\"inline-block\"}\nb:{\"fontSize\":14,\"fontWeigh"])</script><script>self.__next_f.push([1,"t\":400,\"lineHeight\":\"49px\",\"margin\":0}\ne:[]\n"])</script><script>self.__next_f.push([1,"3:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/6c15d7e3526590b3.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]],[\"$\",\"$L4\",null,{\"buildId\":\"NZ5J5THZSIm48Kb9Sw_O9\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L5\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"font-sans __variable_aaf875\",\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$9\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$a\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$b\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null]],\"initialHead\":[false,\"$Lc\"],\"globalErrorComponent\":\"$d\",\"missingSlots\":\"$We\"}]]\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Create T3 App\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Generated by create-t3-app\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"meta\",\"5\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>
\ No newline at end of file diff --git a/apps/web/.next/server/pages/500.html b/apps/web/.next/server/pages/500.html new file mode 100644 index 00000000..aa5dccc5 --- /dev/null +++ b/apps/web/.next/server/pages/500.html @@ -0,0 +1 @@ +<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" crossorigin="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7c56eb6342069862.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-9e68550641db712d.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-2f8ae24bc202a544.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-22ef1381f3010e9c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_error-2312f57de16788ac.js" defer="" crossorigin=""></script><script src="/_next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js" defer="" crossorigin=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json" crossorigin="">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"NZ5J5THZSIm48Kb9Sw_O9","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
\ No newline at end of file diff --git a/apps/web/.next/server/pages/_app.js b/apps/web/.next/server/pages/_app.js new file mode 100644 index 00000000..f07d40ee --- /dev/null +++ b/apps/web/.next/server/pages/_app.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=888,e.ids=[888],e.modules={2073:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(7083),o=r(997),i=n._(r(6689)),u=r(2404);async function s(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,u.loadGetInitialProps)(t,r)}}class a extends i.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}a.origGetInitialProps=s,a.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)},2404:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return u},getURL:function(){return s},getDisplayName:function(){return a},isResSent:function(){return c},normalizeRepeatedSlashes:function(){return l},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return P},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return E},stringifyError:function(){return x}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=u();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function l(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n)throw Error('"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class m extends Error{}class P extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")},7083:(e,t)=>{t._=t._interop_require_default=function(e){return e&&e.__esModule?e:{default:e}}}};var t=require("../webpack-runtime.js");t.C(e);var r=t(t.s=2073);module.exports=r})();
\ No newline at end of file diff --git a/apps/web/.next/server/pages/_app.js.nft.json b/apps/web/.next/server/pages/_app.js.nft.json new file mode 100644 index 00000000..560eceae --- /dev/null +++ b/apps/web/.next/server/pages/_app.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../node_modules/next/dist/pages/_app.js","../../package.json","../webpack-runtime.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/pages/_document.js b/apps/web/.next/server/pages/_document.js new file mode 100644 index 00000000..e669633b --- /dev/null +++ b/apps/web/.next/server/pages/_document.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=660,e.ids=[660],e.modules={2785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")},1017:e=>{e.exports=require("path")}};var r=require("../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[296],()=>s(5871));module.exports=t})();
\ No newline at end of file diff --git a/apps/web/.next/server/pages/_document.js.nft.json b/apps/web/.next/server/pages/_document.js.nft.json new file mode 100644 index 00000000..74b20fa0 --- /dev/null +++ b/apps/web/.next/server/pages/_document.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../node_modules/next/dist/pages/_document.js","../../package.json","../chunks/296.js","../webpack-runtime.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/pages/_error.js b/apps/web/.next/server/pages/_error.js new file mode 100644 index 00000000..e84fe8ff --- /dev/null +++ b/apps/web/.next/server/pages/_error.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=820,e.ids=[820,660],e.modules={6021:(e,t)=>{Object.defineProperty(t,"l",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},8445:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>p,getServerSideProps:()=>g,getStaticPaths:()=>f,getStaticProps:()=>c,reportWebVitals:()=>y,routeModule:()=>v,unstable_getServerProps:()=>_,unstable_getServerSideProps:()=>x,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>m,unstable_getStaticProps:()=>b});var n=r(8877),o=r(4591),a=r(6021),l=r(5871),i=r.n(l),d=r(2073),u=r.n(d),s=r(487);let p=(0,a.l)(s,"default"),c=(0,a.l)(s,"getStaticProps"),f=(0,a.l)(s,"getStaticPaths"),g=(0,a.l)(s,"getServerSideProps"),h=(0,a.l)(s,"config"),y=(0,a.l)(s,"reportWebVitals"),b=(0,a.l)(s,"unstable_getStaticProps"),m=(0,a.l)(s,"unstable_getStaticPaths"),P=(0,a.l)(s,"unstable_getStaticParams"),_=(0,a.l)(s,"unstable_getServerProps"),x=(0,a.l)(s,"unstable_getServerSideProps"),v=new n.PagesRouteModule({definition:{kind:o.x.PAGES,page:"/_error",pathname:"/_error",bundlePath:"",filename:""},components:{App:u(),Document:i()},userland:s})},2073:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(7083),o=r(997),a=n._(r(6689)),l=r(2404);async function i(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,l.loadGetInitialProps)(t,r)}}class d extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}d.origGetInitialProps=i,d.getInitialProps=i,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=r(7083),o=r(997),a=n._(r(6689)),l=n._(r(3837)),i={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}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"},wrap:{display:"inline-block"}};class s extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||i[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:u.error,children:[(0,o.jsx)(l.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:u.desc,children:[(0,o.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,o.jsx)("h1",{className:"next-error-h1",style:u.h1,children:e}):null,(0,o.jsx)("div",{style:u.wrap,children:(0,o.jsxs)("h2",{style:u.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}s.displayName="ErrorPage",s.getInitialProps=d,s.origGetInitialProps=d,("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)},6478:(e,t)=>{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}})},3837:(e,t,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,{defaultHead:function(){return p},default:function(){return h}});let n=r(7083),o=r(5570),a=r(997),l=o._(r(6689)),i=n._(r(391)),d=r(3826),u=r(6566),s=r(6478);function p(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(5734);let f=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(c,[]).reverse().concat(p(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,l=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){l=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=f.length;e<t;e++){let t=f[e];if(o.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?a=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;("name"!==t||!l)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}}return a}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:n})})}let h=function(e){let{children:t}=e,r=(0,l.useContext)(d.AmpStateContext),n=(0,l.useContext)(u.HeadManagerContext);return(0,a.jsx)(i.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,s.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)},391:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(6689),o=()=>{},a=()=>{};function l(e){var t;let{headManager:r,reduceComponentsToState:l}=e;function i(){if(r&&r.mountedInstances){let t=n.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(l(t,e))}}return null==r||null==(t=r.mountedInstances)||t.add(e.children),i(),o(()=>{var t;return null==r||null==(t=r.mountedInstances)||t.add(e.children),()=>{var t;null==r||null==(t=r.mountedInstances)||t.delete(e.children)}}),o(()=>(r&&(r._pendingUpdate=i),()=>{r&&(r._pendingUpdate=i)})),a(()=>(r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),()=>{r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)})),null}},5734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},4591:(e,t)=>{var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},3826:(e,t,r)=>{e.exports=r(8877).vendored.contexts.AmpContext},6566:(e,t,r)=>{e.exports=r(8877).vendored.contexts.HeadManagerContext},2785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")},1017:e=>{e.exports=require("path")},5570:(e,t)=>{function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t._=t._interop_require_wildcard=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=a?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(o,l,i):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[296],()=>r(8445));module.exports=n})();
\ No newline at end of file diff --git a/apps/web/.next/server/pages/_error.js.nft.json b/apps/web/.next/server/pages/_error.js.nft.json new file mode 100644 index 00000000..e9c0f6db --- /dev/null +++ b/apps/web/.next/server/pages/_error.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../package.json","../chunks/296.js","../webpack-runtime.js"]}
\ No newline at end of file diff --git a/apps/web/.next/server/server-reference-manifest.js b/apps/web/.next/server/server-reference-manifest.js new file mode 100644 index 00000000..a5a648c8 --- /dev/null +++ b/apps/web/.next/server/server-reference-manifest.js @@ -0,0 +1 @@ +self.__RSC_SERVER_MANIFEST="{\"node\":{},\"edge\":{},\"encryptionKey\":\"zoYS7eKctv8NMNKvLKdr9QnD2UAk1TlrecwShygpbgI=\"}"
\ No newline at end of file diff --git a/apps/web/.next/server/server-reference-manifest.json b/apps/web/.next/server/server-reference-manifest.json new file mode 100644 index 00000000..8603d71a --- /dev/null +++ b/apps/web/.next/server/server-reference-manifest.json @@ -0,0 +1 @@ +{"node":{},"edge":{},"encryptionKey":"zoYS7eKctv8NMNKvLKdr9QnD2UAk1TlrecwShygpbgI="}
\ No newline at end of file diff --git a/apps/web/.next/server/webpack-runtime.js b/apps/web/.next/server/webpack-runtime.js new file mode 100644 index 00000000..c0784bc1 --- /dev/null +++ b/apps/web/.next/server/webpack-runtime.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={exports:{}},u=!0;try{e[o].call(a.exports,a,a.exports,t),u=!1}finally{u&&delete r[o]}return a.exports}t.m=e,t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},(()=>{var e,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;t.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);t.r(a);var u={};e=e||[null,r({}),r([]),r(r)];for(var f=2&n&&o;"object"==typeof f&&!~e.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach(e=>u[e]=()=>o[e]);return u.default=()=>o,t.d(a,u),a}})(),t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,o)=>(t.f[o](e,r),r),[])),t.u=e=>""+e+".js",t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.X=(e,r,o)=>{var n=r;o||(r=e,o=()=>t(t.s=n)),r.map(t.e,t);var a=o();return void 0===a?e:a},(()=>{var e={658:1},r=r=>{var o=r.modules,n=r.ids,a=r.runtime;for(var u in o)t.o(o,u)&&(t.m[u]=o[u]);a&&a(t);for(var f=0;f<n.length;f++)e[n[f]]=1};t.f.require=(o,n)=>{e[o]||(658!=o?r(require("./chunks/"+t.u(o))):e[o]=1)},module.exports=t,t.C=r})()})();
\ No newline at end of file diff --git a/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js new file mode 100644 index 00000000..35fd8859 --- /dev/null +++ b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-2312f57de16788ac.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file diff --git a/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js new file mode 100644 index 00000000..5b3ff592 --- /dev/null +++ b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/1dd3208c-2005e60b0a14e8cf.js b/apps/web/.next/static/chunks/1dd3208c-2005e60b0a14e8cf.js new file mode 100644 index 00000000..d8a3b20d --- /dev/null +++ b/apps/web/.next/static/chunks/1dd3208c-2005e60b0a14e8cf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[293],{4513:function(e,t,n){var r,l=n(6655),a=n(9550),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=Object.assign,s=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=s.ReactCurrentDispatcher,f={pending:!1,data:null,method:null,action:null},d=[],p=-1;function m(e){return{current:e}}function h(e){0>p||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.context"),E=Symbol.for("react.server_context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),$={$$typeof:C,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};function B(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?sW(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=sH(e=sW(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function V(){h(D),h(A),h(I)}function j(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=sH(t,e.type);t!==n&&(g(A,e),g(D,n))}function Q(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),$._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=null,er=null,el=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ea(e)/eo|0)|0},ea=Math.log,eo=Math.LN2,ei=128,eu=4194304;function es(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ec(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=es(n):0!=(e&=a)&&(r=es(e)):0!=(n&=~l)?r=es(n):0!==e&&(r=es(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function ef(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function ed(){var e=eu;return 0==(62914560&(eu<<=1))&&(eu=4194304),e}function ep(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function em(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0)}function eh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-el(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-el(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ey=0;function ev(e){return 2<(e&=-e)?8<e?0!=(134217727&e)?32:268435456:8:2}var eb=Object.prototype.hasOwnProperty,ek=Math.random().toString(36).slice(2),ew="__reactFiber$"+ek,eS="__reactProps$"+ek,eC="__reactContainer$"+ek,eE="__reactEvents$"+ek,ex="__reactListeners$"+ek,ez="__reactHandles$"+ek,eP="__reactResources$"+ek,eN="__reactMarker$"+ek;function e_(e){delete e[ew],delete e[eS],delete e[eE],delete e[ex],delete e[ez]}function eL(e){var t=e[ew];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eC]||n[ew]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=s8(e);null!==e;){if(n=e[ew])return n;e=s8(e)}return t}n=(e=n).parentNode}return null}function eT(e){if(e=e[ew]||e[eC]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function eF(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function eM(e){return e[eS]||null}function eO(e){var t=e[eP];return t||(t=e[eP]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function eR(e){e[eN]=!0}var eD=new Set,eA={};function eI(e,t){eU(e,t),eU(e+"Capture",t)}function eU(e,t){for(eA[e]=t,e=0;e<t.length;e++)eD.add(t[e])}var e$=!(void 0===window.document||void 0===window.document.createElement),eB=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),eV={},ej={};function eQ(e,t,n){if(eb.call(ej,t)||!eb.call(eV,t)&&(eB.test(t)?ej[t]=!0:(eV[t]=!0,!1))){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}}function eW(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function eH(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function eq(e){if(void 0===iI)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);iI=t&&t[1]||""}return"\n"+iI+e}var eK=!1;function eY(e,t){if(!e||eK)return"";eK=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});try{var a=r.DetermineComponentFrameRoot(),o=a[0],i=a[1];if(o&&i){var u=o.split("\n"),s=i.split("\n");for(l=r=0;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;for(;l<s.length&&!s[l].includes("DetermineComponentFrameRoot");)l++;if(r===u.length||l===s.length)for(r=u.length-1,l=s.length-1;1<=r&&0<=l&&u[r]!==s[l];)l--;for(;1<=r&&0<=l;r--,l--)if(u[r]!==s[l]){if(1!==r||1!==l)do if(r--,l--,0>l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eK=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eq(n):""}var eX=Symbol.for("react.client.reference");function eG(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function eZ(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eJ(e){e._valueTracker||(e._valueTracker=function(e){var t=eZ(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eZ(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e1(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e2=/[\n"\\]/g;function e3(e){return e.replace(e2,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e4(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+eG(t)):e.value!==""+eG(t)&&(e.value=""+eG(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?e8(e,o,eG(t)):null!=n?e8(e,o,eG(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+eG(i):e.removeAttribute("name")}function e6(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+eG(n):"",t=null!=t?""+eG(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function e8(e,t,n){"number"===t&&e1(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var e5=Array.isArray;function e7(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(l=0,n=""+eG(n),t=null;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function e9(e,t,n){if(null!=t&&((t=""+eG(t))!==e.value&&(e.value=t),null==n)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=null!=n?""+eG(n):""}function te(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(e5(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=eG(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function tt(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((iU=iU||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=iU.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var tn=tt;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(tn=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return tt(e,t)})});var tr=tn;function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ta=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function to(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||ta.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ti(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&to(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&to(e,a,t[a])}function tu(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ts=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tc=null;function tf(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var td=null,tp=null;function tm(e){var t=eT(e);if(t&&(e=t.stateNode)){var n=eM(e);switch(e=t.stateNode,t.type){case"input":if(e4(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e3(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=eM(r);if(!l)throw Error(i(90));e4(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&e0(r)}break;case"textarea":e9(e,n.value,n.defaultValue);break;case"select":null!=(t=n.value)&&e7(e,!!n.multiple,t,!1)}}}function th(e){td?tp?tp.push(e):tp=[e]:td=e}function tg(){if(td){var e=td,t=tp;if(tp=td=null,tm(e),t)for(e=0;e<t.length;e++)tm(t[e])}}function ty(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function tv(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function tb(e){if(ty(e)!==e)throw Error(i(188))}function tk(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ty(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){n=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return tb(l),e;if(a===r)return tb(l),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=l,r=a;else{for(var o=!1,u=l.child;u;){if(u===n){o=!0,n=l,r=a;break}if(u===r){o=!0,r=l,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,r=l;break}if(u===r){o=!0,r=a,n=l;break}u=u.sibling}if(!o)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?function e(t){var n=t.tag;if(5===n||26===n||27===n||6===n)return t;for(t=t.child;null!==t;){if(null!==(n=e(t)))return n;t=t.sibling}return null}(e):null}var tw={},tS=m(tw),tC=m(!1),tE=tw;function tx(e,t){var n=e.type.contextTypes;if(!n)return tw;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function tz(e){return null!=(e=e.childContextTypes)}function tP(){h(tC),h(tS)}function tN(e,t,n){if(tS.current!==tw)throw Error(i(168));g(tS,t),g(tC,n)}function t_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var l in r=r.getChildContext())if(!(l in t))throw Error(i(108,function(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===eX?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case b:return"Fragment";case v:return"Portal";case w:return"Profiler";case k:return"StrictMode";case z:return"Suspense";case P:return"SuspenseList";case M:return"Cache"}if("object"==typeof t)switch(t.$$typeof){case C:return(t.displayName||"Context")+".Consumer";case S:return(t._context.displayName||"Context")+".Provider";case x:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case N:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case _:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",l));return u({},n,r)}function tL(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tw,tE=tS.current,g(tS,e),g(tC,tC.current),!0}function tT(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=t_(e,t,tE),r.__reactInternalMemoizedMergedChildContext=e,h(tC),h(tS),g(tS,e)):h(tC),g(tC,n)}var tF="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},tM=[],tO=0,tR=null,tD=0,tA=[],tI=0,tU=null,t$=1,tB="";function tV(e,t){tM[tO++]=tD,tM[tO++]=tR,tR=e,tD=t}function tj(e,t,n){tA[tI++]=t$,tA[tI++]=tB,tA[tI++]=tU,tU=e;var r=t$;e=tB;var l=32-el(r)-1;r&=~(1<<l),n+=1;var a=32-el(t)+l;if(30<a){var o=l-l%5;a=(r&(1<<o)-1).toString(32),r>>=o,l-=o,t$=1<<32-el(t)+l|n<<l|r,tB=a+e}else t$=1<<a|n<<l|r,tB=e}function tQ(e){null!==e.return&&(tV(e,1),tj(e,1,0))}function tW(e){for(;e===tR;)tR=tM[--tO],tM[tO]=null,tD=tM[--tO],tM[tO]=null;for(;e===tU;)tU=tA[--tI],tA[tI]=null,tB=tA[--tI],tA[tI]=null,t$=tA[--tI],tA[tI]=null}var tH=null,tq=null,tK=!1,tY=null,tX=!1;function tG(e,t){var n=ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function tZ(e,t){t.flags=-4097&t.flags|2}function tJ(e,t){return null!==(t=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[eN])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(l=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||l!==n.rel||e.getAttribute("href")!==(null==n.href?null:n.href)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute("title")!==(null==n.title?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((l=e.getAttribute("src"))!==(null==n.src?null:n.src)||e.getAttribute("type")!==(null==n.type?null:n.type)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var l=null==n.name?null:""+n.name;if("hidden"===n.type&&e.getAttribute("name")===l)return e}if(null===(e=s4(e)))break}return null}(t,e.type,e.pendingProps,tX))&&(e.stateNode=t,tH=e,tq=s3(t.firstChild),tX=!1,!0)}function t0(e,t){return null!==(t=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n||null===(e=s4(e)))return null;return e}(t,e.pendingProps,tX))&&(e.stateNode=t,tH=e,tq=null,!0)}function t1(e,t){e:{var n=t;for(t=tX;8!==n.nodeType;)if(!t||null===(n=s4(n))){t=null;break e}t=n}return null!==t&&(n=null!==tU?{id:t$,overflow:tB}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:536870912},(n=ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,tH=e,tq=null,!0)}function t2(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function t3(){throw Error(i(418))}function t4(e){for(tH=e.return;tH;)switch(tH.tag){case 3:case 27:tX=!0;return;case 5:case 13:tX=!1;return;default:tH=tH.return}}function t6(e){if(e!==tH)return!1;if(!tK)return t4(e),tK=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||sq(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&(n=tq)){if(t2(e))t8(),t3();else for(;n;)tG(e,n),n=s4(n)}if(t4(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(n=0,e=e.nextSibling;e;){if(8===e.nodeType){if("/$"===(t=e.data)){if(0===n){tq=s4(e);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}tq=null}}else tq=tH?s4(e.stateNode):null;return!0}function t8(){for(var e=tq;e;)e=s4(e)}function t5(){tq=tH=null,tK=!1}function t7(e){null===tY?tY=[e]:tY.push(e)}var t9=[],ne=0,nt=0;function nn(){for(var e=ne,t=nt=ne=0;t<e;){var n=t9[t];t9[t++]=null;var r=t9[t];t9[t++]=null;var l=t9[t];t9[t++]=null;var a=t9[t];if(t9[t++]=null,null!==r&&null!==l){var o=r.pending;null===o?l.next=l:(l.next=o.next,o.next=l),r.pending=l}0!==a&&no(n,l,a)}}function nr(e,t,n,r){t9[ne++]=e,t9[ne++]=t,t9[ne++]=n,t9[ne++]=r,nt|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function nl(e,t,n,r){return nr(e,t,n,r),ni(e)}function na(e,t){return nr(e,null,null,t),ni(e)}function no(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var l=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(l=!0)),e=a,a=a.return;l&&null!==t&&3===e.tag&&(a=e.stateNode,l=31-el(n),null===(e=(a=a.hiddenUpdates)[l])?a[l]=[t]:e.push(t),t.lane=536870912|n)}function ni(e){if(50<oU)throw oU=0,o$=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var nu=!1;function ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function nf(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function nd(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&od)){var l=r.pending;return null===l?t.next=t:(t.next=l.next,l.next=t),r.pending=t,t=ni(e),no(e,null,n),t}return nr(e,r,t,n),ni(e)}function np(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194176&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eg(e,n)}}function nm(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?l=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function nh(e,t,n,r){var l=e.updateQueue;nu=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(null!==i){l.shared.pending=null;var s=i,c=s.next;s.next=null,null===o?a=c:o.next=c,o=s;var f=e.alternate;null!==f&&(i=(f=f.updateQueue).lastBaseUpdate)!==o&&(null===i?f.firstBaseUpdate=c:i.next=c,f.lastBaseUpdate=s)}if(null!==a){var d=l.baseState;for(o=0,f=c=s=null,i=a;;){var p=-536870913&i.lane,m=p!==i.lane;if(m?(oh&p)===p:(r&p)===p){null!==f&&(f=f.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var h=e,g=i;switch(p=t,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(n,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=g.payload)?h.call(n,d,p):h))break e;d=u({},d,p);break e;case 2:nu=!0}}null!==(p=i.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=l.callbacks)?l.callbacks=[p]:m.push(p))}else m={lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(c=f=m,s=d):f=f.next=m,o|=p;if(null===(i=i.next)){if(null===(i=l.shared.pending))break;i=(m=i).next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}null===f&&(s=d),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=f,null===a&&(l.shared.lanes=0),oS|=o,e.lanes=o,e.memoizedState=d}}function ng(e,t){if("function"!=typeof e)throw Error(i(191,e));e.call(t)}function ny(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ng(n[e],t)}function nv(e,t){if(tF(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!eb.call(t,l)||!tF(e[l],t[l]))return!1}return!0}var nb=Error(i(460)),nk=Error(i(474)),nw={then:function(){}};function nS(e){return"fulfilled"===(e=e.status)||"rejected"===e}function nC(){}function nE(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(nC,nC),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===nb)throw Error(i(483));throw e;default:if("string"==typeof t.status)t.then(nC,nC);else{if(null!==(e=op)&&100<e.shellSuspendCounter)throw Error(i(482));switch((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===nb)throw Error(i(483));throw e}}throw nx=t,nb}}var nx=null;function nz(){if(null===nx)throw Error(i(459));var e=nx;return nx=null,e}var nP=null,nN=0;function n_(e){var t=nN;return nN+=1,null===nP&&(nP=[]),nE(nP,e,t)}function nL(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var l=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=l.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function nT(e,t){throw Error(i(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nF(e){return(0,e._init)(e._payload)}function nM(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=ip(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function u(e,t,n,r){return null===t||6!==t.tag?(t=iv(n,e.mode,r)).return=e:(t=l(t,n)).return=e,t}function s(e,t,n,r){var a=n.type;return a===b?f(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===_&&nF(a)===t.type)?(r=l(t,n.props)).ref=nL(e,t,n):(r=ih(n.type,n.key,n.props,null,null,e.mode,r)).ref=nL(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ib(n,e.mode,r)).return=e:(t=l(t,n.children||[])).return=e,t}function f(e,t,n,r,a){return null===t||7!==t.tag?(t=ig(n,e.mode,r,a)).return=e:(t=l(t,n)).return=e,t}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=iv(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=ih(t.type,t.key,t.props,null,null,e.mode,n)).ref=nL(e,null,t),n.return=e,n;case v:return(t=ib(t,e.mode,n)).return=e,t;case _:return d(e,(0,t._init)(t._payload),n)}if(e5(t)||R(t))return(t=ig(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return d(e,n_(t),n);if(t.$$typeof===C||t.$$typeof===E)return d(e,an(e,t,n),n);nT(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==l?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===l?s(e,t,n,r):null;case v:return n.key===l?c(e,t,n,r):null;case _:return p(e,t,(l=n._init)(n._payload),r)}if(e5(n)||R(n))return null!==l?null:f(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,n_(n),r);if(n.$$typeof===C||n.$$typeof===E)return p(e,t,an(e,n,r),r);nT(e,n)}return null}function m(e,t,n,r,l){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return s(t,e=e.get(null===r.key?n:r.key)||null,r,l);case v:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l);case _:return m(e,t,n,(0,r._init)(r._payload),l)}if(e5(r)||R(r))return f(t,e=e.get(n)||null,r,l,null);if("function"==typeof r.then)return m(e,t,n,n_(r),l);if(r.$$typeof===C||r.$$typeof===E)return m(e,t,n,an(t,r,l),l);nT(t,r)}return null}return function u(s,c,f,h){return nN=0,s=function s(c,f,h,g){if("object"==typeof h&&null!==h&&h.type===b&&null===h.key&&(h=h.props.children),"object"==typeof h&&null!==h){switch(h.$$typeof){case y:e:{for(var k=h.key,w=f;null!==w;){if(w.key===k){if((k=h.type)===b){if(7===w.tag){n(c,w.sibling),(f=l(w,h.props.children)).return=c,c=f;break e}}else if(w.elementType===k||"object"==typeof k&&null!==k&&k.$$typeof===_&&nF(k)===w.type){n(c,w.sibling),(f=l(w,h.props)).ref=nL(c,w,h),f.return=c,c=f;break e}n(c,w);break}t(c,w),w=w.sibling}h.type===b?((f=ig(h.props.children,c.mode,g,h.key)).return=c,c=f):((g=ih(h.type,h.key,h.props,null,null,c.mode,g)).ref=nL(c,f,h),g.return=c,c=g)}return o(c);case v:e:{for(w=h.key;null!==f;){if(f.key===w){if(4===f.tag&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(c,f.sibling),(f=l(f,h.children||[])).return=c,c=f;break e}n(c,f);break}t(c,f),f=f.sibling}(f=ib(h,c.mode,g)).return=c,c=f}return o(c);case _:return u(c,f,(w=h._init)(h._payload),g)}if(e5(h))return function(l,o,i,u){for(var s=null,c=null,f=o,h=o=0,g=null;null!==f&&h<i.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tK&&tV(l,h),s;if(null===f){for(;h<i.length;h++)null!==(f=d(l,i[h],u))&&(o=a(f,o,h),null===c?s=f:c.sibling=f,c=f);return tK&&tV(l,h),s}for(f=r(l,f);h<i.length;h++)null!==(g=m(f,l,h,i[h],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),o=a(g,o,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(l,e)}),tK&&tV(l,h),s}(c,f,h,g);if(R(h))return function(l,o,u,s){var c=R(u);if("function"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,h=o,g=o=0,y=null,v=u.next();null!==h&&!v.done;g++,v=u.next()){h.index>g?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tK&&tV(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tK&&tV(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tK&&tV(l,g),c}(c,f,h,g);if("function"==typeof h.then)return s(c,f,n_(h),g);if(h.$$typeof===C||h.$$typeof===E)return s(c,f,an(c,h,g),g);nT(c,h)}return"string"==typeof h&&""!==h||"number"==typeof h?(h=""+h,null!==f&&6===f.tag?(n(c,f.sibling),(f=l(f,h)).return=c):(n(c,f),(f=iv(h,c.mode,g)).return=c),o(c=f)):n(c,f)}(s,c,f,h),nP=null,s}}var nO=nM(!0),nR=nM(!1),nD=m(null),nA=m(0);function nI(e,t){g(nA,e=ob),g(nD,t),ob=e|t.baseLanes}function nU(){g(nA,ob),g(nD,nD.current)}function n$(){ob=nA.current,h(nD),h(nA)}var nB=m(null),nV=null;function nj(e){var t=e.alternate;g(nq,1&nq.current),g(nB,e),null===nV&&(null===t||null!==nD.current?nV=e:null!==t.memoizedState&&(nV=e))}function nQ(e){if(22===e.tag){if(g(nq,nq.current),g(nB,e),null===nV){var t=e.alternate;null!==t&&null!==t.memoizedState&&(nV=e)}}else nW(e)}function nW(){g(nq,nq.current),g(nB,nB.current)}function nH(e){h(nB),nV===e&&(nV=null),h(nq)}var nq=m(0);function nK(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nY=null,nX=null,nG=!1,nZ=!1,nJ=!1,n0=0;function n1(e){e!==nX&&null===e.next&&(null===nX?nY=nX=e:nX=nX.next=e),nZ=!0,nG||(nG=!0,n8(n4))}function n2(e){if(!nJ&&nZ){var t=null;nJ=!0;do for(var n=!1,r=nY;null!==r;){if(!e||0===r.tag){var l=oh,a=ec(r,r===op?l:0);if(0!=(3&a))try{if(n=!0,l=r,0!=(6&od))throw Error(i(327));if(!ie()){var o=o3(l,a);if(0!==l.tag&&2===o){var u=a,s=ef(l,u);0!==s&&(a=s,o=oQ(l,u,s))}if(1===o)throw u=ow,oG(l,0),oq(l,a,0),n1(l),u;6===o?oq(l,a,ox):(l.finishedWork=l.current.alternate,l.finishedLanes=a,o7(l,oP,oL,ox))}n1(l)}catch(e){null===t?t=[e]:t.push(e)}}r=r.next}while(n);if(nJ=!1,null!==t){if(1<t.length){if("function"==typeof AggregateError)throw AggregateError(t);for(e=1;e<t.length;e++)n8(n3.bind(null,t[e]))}throw t[0]}}}function n3(e){throw e}function n4(){nZ=nG=!1;for(var e=Y(),t=null,n=nY;null!==n;){var r=n.next;if(0!==n0&&function(){var e=window.event;return e&&"popstate"===e.type?e!==sK&&(sK=e,!0):(sK=null,!1)}()){var l=n,a=n0;l.pendingLanes|=2,l.entangledLanes|=2,l.entanglements[1]|=a}0===(l=n6(n,e))?(n.next=null,null===t?nY=r:t.next=r,null===r&&(nX=t)):(t=n,0!=(3&l)&&(nZ=!0)),n=r}n0=0,n2(!1)}function n6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-el(a),i=1<<o,u=l[o];-1===u?(0==(i&n)||0!=(i&r))&&(l[o]=function(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(i,t)):u<=t&&(e.expiredLanes|=i),a&=~i}if(t=op,n=oh,n=ec(e,e===t?n:0),r=e.callbackNode,0===n||e===t&&2===og||null!==e.cancelPendingCommit)return null!==r&&null!==r&&H(r),e.callbackNode=null,e.callbackPriority=0;if(0!=(3&n))return null!==r&&null!==r&&H(r),e.callbackPriority=2,e.callbackNode=null,2;if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&H(r),ev(n)){case 2:n=G;break;case 8:n=Z;break;case 32:default:n=J;break;case 268435456:n=et}return n=W(n,r=oj.bind(null,e)),e.callbackPriority=t,e.callbackNode=n,t}function n8(e){sZ(function(){0!=(6&od)?W(G,e):e()})}function n5(){if(0===n0){var e=ei;0==(4194176&(ei<<=1))&&(ei=128),n0=e}return n0}var n7=null,n9=0,re=0;function rt(e,t){if(null===n7){var n=n7=[];n9=0,re=n5()}else n=n7;n9++;var r,l,a=rl(n),o="pending";return e.then(function(e){o="fulfilled",r=null!==t?t:e,rr()},function(e){o="rejected",l=e,rr()}),n.push(function(){switch(o){case"fulfilled":a.status="fulfilled",a.value=r;break;case"rejected":a.status="rejected",a.reason=l;break;default:throw Error(i(478))}}),a}function rn(e,t){var n=null!==t?t:e;if(null===n7)return n;var r=rl(e=n7);return e.push(function(){r.status="fulfilled",r.value=n}),r}function rr(){if(null!==n7&&0==--n9){var e=n7;n7=null;for(var t=re=0;t<e.length;t++)(0,e[t])()}}function rl(e){return{status:"pending",value:null,reason:null,then:function(t){e.push(t)}}}var ra=s.ReactCurrentDispatcher,ro=s.ReactCurrentBatchConfig,ri=0,ru=null,rs=null,rc=null,rf=!1,rd=!1,rp=!1,rm=0,rh=0,rg=null,ry=0;function rv(){throw Error(i(321))}function rb(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tF(e[n],t[n]))return!1;return!0}function rk(e,t,n,r,l,a){return ri=a,ru=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ra.current=null===e||null===e.memoizedState?ld:lp,rp=!1,e=n(r,l),rp=!1,rd&&(e=rS(t,n,r,l)),rw(),e}function rw(){ra.current=lf;var e=null!==rs&&null!==rs.next;if(ri=0,rc=rs=ru=null,rf=!1,rh=0,rg=null,e)throw Error(i(300))}function rS(e,t,n,r){ru=e;var l=0;do{if(rd&&(rg=null),rh=0,rd=!1,25<=l)throw Error(i(301));l+=1,rc=rs=null,e.updateQueue=null,ra.current=lm;var a=t(n,r)}while(rd);return a}function rC(){var e=ra.current.useState()[0];return"function"==typeof e.then?r_(e):e}function rE(){var e=0!==rm;return rm=0,e}function rx(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rz(e){if(rf){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}rf=!1}ri=0,rc=rs=ru=null,rd=!1,rh=rm=0,rg=null}function rP(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===rc?ru.memoizedState=rc=e:rc=rc.next=e,rc}function rN(){if(null===rs){var e=ru.alternate;e=null!==e?e.memoizedState:null}else e=rs.next;var t=null===rc?ru.memoizedState:rc.next;if(null!==t)rc=t,rs=e;else{if(null===e){if(null===ru.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(rs=e).memoizedState,baseState:rs.baseState,baseQueue:rs.baseQueue,queue:rs.queue,next:null},null===rc?ru.memoizedState=rc=e:rc=rc.next=e}return rc}function r_(e){var t=rh;return rh+=1,null===rg&&(rg=[]),e=nE(rg,e,t),null===ru.alternate&&(null===rc?null===ru.memoizedState:null===rc.next)&&(ra.current=ld),e}function rL(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return r_(e);if(e.$$typeof===C||e.$$typeof===E)return at(e)}throw Error(i(438,String(e)))}function rT(e,t){return"function"==typeof t?t(e):t}function rF(e){return rM(rN(),rs,e)}function rM(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var l=e.baseQueue,a=r.pending;if(null!==a){if(null!==l){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,r.pending=null}if(a=e.baseState,null===l)e.memoizedState=a;else{t=l.next;var u=o=null,s=null,c=t;do{var f=-536870913&c.lane;if(f!==c.lane?(oh&f)===f:(ri&f)===f){if(0===(f=c.revertLane))null!==s&&(s=s.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null});else if((ri&f)===f){c=c.next;continue}else{var d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,o=a):s=s.next=d,ru.lanes|=f,oS|=f}f=c.action,rp&&n(a,f),a=c.hasEagerState?c.eagerState:n(a,f)}else d={lane:f,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=d,o=a):s=s.next=d,ru.lanes|=f,oS|=f;c=c.next}while(null!==c&&c!==t);null===s?o=a:s.next=u,tF(a,e.memoizedState)||(lL=!0),e.memoizedState=a,e.baseState=o,e.baseQueue=s,r.lastRenderedState=a}return null===l&&(r.lanes=0),[e.memoizedState,r.dispatch]}function rO(e){var t=rN(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tF(a,t.memoizedState)||(lL=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function rR(e,t,n){var r=ru,l=rN(),a=tK;if(a){if(void 0===n)throw Error(i(407));n=n()}else n=t();var o=!tF((rs||l).memoizedState,n);if(o&&(l.memoizedState=n,lL=!0),l=l.queue,r0(rI.bind(null,r,l,e),[e]),l.getSnapshot!==t||o||null!==rc&&1&rc.memoizedState.tag){if(r.flags|=2048,rY(9,rA.bind(null,r,l,n,t),{destroy:void 0},null),null===op)throw Error(i(349));a||0!=(60&ri)||rD(r,t,n)}return n}function rD(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ru.updateQueue)?(t=i$(),ru.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function rA(e,t,n,r){t.value=n,t.getSnapshot=r,rU(t)&&r$(e)}function rI(e,t,n){return n(function(){rU(t)&&r$(e)})}function rU(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tF(e,n)}catch(e){return!0}}function r$(e){var t=na(e,2);null!==t&&oV(t,e,2)}function rB(e){var t=rP();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rT,lastRenderedState:e},t}function rV(e,t,n,r){return e.baseState=n,rM(e,rs,"function"==typeof r?r:rT)}function rj(e,t,n,r){if(lu(e))throw Error(i(485));null===(e=t.pending)?((e={payload:r,next:null}).next=t.pending=e,rQ(t,n,r)):t.pending=e.next={payload:r,next:e.next}}function rQ(e,t,n){var r=e.action,l=e.state,a=ro.transition;ro.transition={};try{var o=r(l,n);if(null!==o&&"object"==typeof o&&"function"==typeof o.then){o.then(function(n){e.state=n,rW(e,t)},function(){return rW(e,t)});var i=rt(o,null);t(i)}else{var u=rn(o,null);t(u),e.state=o,rW(e,t)}}catch(n){t({then:function(){},status:"rejected",reason:n}),rW(e,t)}finally{ro.transition=a}}function rW(e,t){var n=e.pending;if(null!==n){var r=n.next;r===n?e.pending=null:(r=r.next,n.next=r,rQ(e,t,r.payload))}}function rH(e,t){return t}function rq(e,t,n){e="object"==typeof(e=rM(e,t,rH)[0])&&null!==e&&"function"==typeof e.then?r_(e):e;var r=(t=rN()).queue,l=r.dispatch;return n!==t.memoizedState&&(ru.flags|=2048,rY(9,rK.bind(null,r,n),{destroy:void 0},null)),[e,l]}function rK(e,t){e.action=t}function rY(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=ru.updateQueue)?(t=i$(),ru.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function rX(){return rN().memoizedState}function rG(e,t,n,r){var l=rP();ru.flags|=e,l.memoizedState=rY(1|t,n,{destroy:void 0},void 0===r?null:r)}function rZ(e,t,n,r){var l=rN();r=void 0===r?null:r;var a=l.memoizedState.inst;null!==rs&&null!==r&&rb(r,rs.memoizedState.deps)?l.memoizedState=rY(t,n,a,r):(ru.flags|=e,l.memoizedState=rY(1|t,n,a,r))}function rJ(e,t){rG(8390656,8,e,t)}function r0(e,t){rZ(2048,8,e,t)}function r1(e,t){return rZ(4,2,e,t)}function r2(e,t){return rZ(4,4,e,t)}function r3(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function r4(e,t,n){n=null!=n?n.concat([e]):null,rZ(4,4,r3.bind(null,t,e),n)}function r6(){}function r8(e,t){var n=rN();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&rb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function r5(e,t){var n=rN();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&rb(t,r[1])?r[0]:(rp&&e(),e=e(),n.memoizedState=[e,t],e)}function r7(e,t,n){return tF(n,t)?n:null!==nD.current?(e.memoizedState=n,tF(n,t)||(lL=!0),n):0==(42&ri)?(lL=!0,e.memoizedState=n):(0===ox&&(ox=0==(536870912&oh)||tK?n5():536870912),null!==(e=nB.current)&&(e.flags|=32),e=ox,ru.lanes|=e,oS|=e,t)}function r9(e,t,n,r,l){var a=ey;ey=0!==a&&8>a?a:8;var o=ro.transition;ro.transition={},li(e,!1,t,n);try{var i=l();if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var u=rt(i,r);lo(e,t,u)}else{var s=rn(i,r);lo(e,t,s)}}catch(n){lo(e,t,{then:function(){},status:"rejected",reason:n})}finally{ey=a,ro.transition=o}}function le(e,t,n,r){if(5!==e.tag)throw Error(i(476));if(null===e.memoizedState){var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rT,lastRenderedState:f},a=l;l={memoizedState:f,baseState:f,baseQueue:null,queue:l,next:null},e.memoizedState=l;var o=e.alternate;null!==o&&(o.memoizedState=l)}else a=e.memoizedState.queue;r9(e,a,t,f,function(){return n(r)})}function lt(){var e=at($);return null!==e?e:f}function ln(){return rN().memoizedState}function lr(){return rN().memoizedState}function ll(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=oB(t),r=nd(t,e=nf(n),n);null!==r&&(oV(r,t,n),np(r,t,n)),t={cache:au()},e.payload=t;return}t=t.return}}function la(e,t,n){var r=oB(e);n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},lu(e)?ls(t,n):null!==(n=nl(e,t,n,r))&&(oV(n,e,r),lc(n,t,r))}function lo(e,t,n){var r=oB(e),l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(lu(e))ls(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,tF(i,o)){nr(e,t,l,0),null===op&&nn();return}}catch(e){}finally{}null!==(n=nl(e,t,l,r))&&(oV(n,e,r),lc(n,t,r))}}function li(e,t,n,r){if(r={lane:2,revertLane:n5(),action:r,hasEagerState:!1,eagerState:null,next:null},lu(e)){if(t)throw Error(i(479))}else null!==(t=nl(e,n,r,2))&&oV(t,e,2)}function lu(e){var t=e.alternate;return e===ru||null!==t&&t===ru}function ls(e,t){rd=rf=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(0!=(4194176&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eg(e,n)}}i$=function(){return{lastEffect:null,events:null,stores:null}};var lf={readContext:at,use:rL,useCallback:rv,useContext:rv,useEffect:rv,useImperativeHandle:rv,useInsertionEffect:rv,useLayoutEffect:rv,useMemo:rv,useReducer:rv,useRef:rv,useState:rv,useDebugValue:rv,useDeferredValue:rv,useTransition:rv,useSyncExternalStore:rv,useId:rv};lf.useCacheRefresh=rv,lf.useHostTransitionStatus=rv,lf.useFormState=rv,lf.useOptimistic=rv;var ld={readContext:at,use:rL,useCallback:function(e,t){return rP().memoizedState=[e,void 0===t?null:t],e},useContext:at,useEffect:rJ,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,rG(4194308,4,r3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rG(4194308,4,e,t)},useInsertionEffect:function(e,t){rG(4,2,e,t)},useMemo:function(e,t){var n=rP();return t=void 0===t?null:t,rp&&e(),e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rP();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=la.bind(null,ru,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rP().memoizedState=e},useState:function(e){var t=(e=rB(e)).queue,n=lo.bind(null,ru,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:r6,useDeferredValue:function(e){return rP().memoizedState=e,e},useTransition:function(){var e=rB(!1);return e=r9.bind(null,ru,e.queue,!0,!1),rP().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ru,l=rP();if(tK){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===op)throw Error(i(349));0!=(60&oh)||rD(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,rJ(rI.bind(null,r,a,e),[e]),r.flags|=2048,rY(9,rA.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=rP(),t=op.identifierPrefix;if(tK){var n=tB,r=t$;t=":"+t+"R"+(n=(r&~(1<<32-el(r)-1)).toString(32)+n),0<(n=rm++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ry++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return rP().memoizedState=ll.bind(null,ru)}};ld.useHostTransitionStatus=lt,ld.useFormState=function(e,t){if(tK){var n=op.formState;if(null!==n){e:{if(tK){if(tq){t:{for(var r=tq,l=tX;8!==r.nodeType;)if(!l||null===(r=s4(r))){r=null;break t}r="F!"===(l=r.data)||"F"===l?r:null}if(r){tq=s4(r),r="F!"===r.data;break e}}t3()}r=!1}r&&(t=n[0])}}return(n=rP()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rH,lastRenderedState:t},n.queue=r,n=lo.bind(null,ru,r),r.dispatch=n,r=rP(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,n=rj.bind(null,ru,l,n),l.dispatch=n,r.memoizedState=e,[t,n]},ld.useOptimistic=function(e){var t=rP();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=li.bind(null,ru,!0,n),n.dispatch=t,[e,t]};var lp={readContext:at,use:rL,useCallback:r8,useContext:at,useEffect:r0,useImperativeHandle:r4,useInsertionEffect:r1,useLayoutEffect:r2,useMemo:r5,useReducer:rF,useRef:rX,useState:function(){return rF(rT)},useDebugValue:r6,useDeferredValue:function(e){return r7(rN(),rs.memoizedState,e)},useTransition:function(){var e=rF(rT)[0],t=rN().memoizedState;return["boolean"==typeof e?e:r_(e),t]},useSyncExternalStore:rR,useId:ln};lp.useCacheRefresh=lr,lp.useHostTransitionStatus=lt,lp.useFormState=function(e){return rq(rN(),rs,e)},lp.useOptimistic=function(e,t){return rV(rN(),rs,e,t)};var lm={readContext:at,use:rL,useCallback:r8,useContext:at,useEffect:r0,useImperativeHandle:r4,useInsertionEffect:r1,useLayoutEffect:r2,useMemo:r5,useReducer:rO,useRef:rX,useState:function(){return rO(rT)},useDebugValue:r6,useDeferredValue:function(e){var t=rN();return null===rs?(t.memoizedState=e,e):r7(t,rs.memoizedState,e)},useTransition:function(){var e=rO(rT)[0],t=rN().memoizedState;return["boolean"==typeof e?e:r_(e),t]},useSyncExternalStore:rR,useId:ln};function lh(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function lg(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}lm.useCacheRefresh=lr,lm.useHostTransitionStatus=lt,lm.useFormState=function(e){var t=rN(),n=rs;if(null!==n)return rq(t,n,e);t=t.memoizedState;var r=(n=rN()).queue.dispatch;return n.memoizedState=e,[t,r]},lm.useOptimistic=function(e,t){var n=rN();return null!==rs?rV(n,rs,e,t):(n.baseState=e,[e,n.queue.dispatch])};var ly={isMounted:function(e){return!!(e=e._reactInternals)&&ty(e)===e},enqueueSetState:function(e,t,n){var r=oB(e=e._reactInternals),l=nf(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=nd(e,l,r))&&(oV(t,e,r),np(t,e,r))},enqueueReplaceState:function(e,t,n){var r=oB(e=e._reactInternals),l=nf(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=nd(e,l,r))&&(oV(t,e,r),np(t,e,r))},enqueueForceUpdate:function(e,t){var n=oB(e=e._reactInternals),r=nf(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=nd(e,r,n))&&(oV(t,e,n),np(t,e,n))}};function lv(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!nv(n,r)||!nv(l,a)}function lb(e,t,n){var r=!1,l=tw,a=t.contextType;return"object"==typeof a&&null!==a?a=at(a):(l=tz(t)?tE:tS.current,a=(r=null!=(r=t.contextTypes))?tx(e,l):tw),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ly,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function lk(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ly.enqueueReplaceState(t,t.state,null)}function lw(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ns(e);var a=t.contextType;"object"==typeof a&&null!==a?l.context=at(a):(a=tz(t)?tE:tS.current,l.context=tx(e,a)),l.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(lg(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&ly.enqueueReplaceState(l,l.state,null),nh(e,n,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function lS(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 26:case 27:case 5:return eq(e.type);case 16:return eq("Lazy");case 13:return eq("Suspense");case 19:return eq("SuspenseList");case 0:case 2:case 15:return e=eY(e.type,!1);case 11:return e=eY(e.type.render,!1);case 1:return e=eY(e.type,!0);default:return""}}(r),r=r.return;while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l,digest:null}}function lC(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function lE(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function lx(e,t,n){(n=nf(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oT||(oT=!0,oF=r),lE(e,t)},n}function lz(e,t,n){(n=nf(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){lE(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){lE(e,t),"function"!=typeof r&&(null===oM?oM=new Set([this]):oM.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function lP(e,t,n,r,l){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=nf(2)).tag=2,nd(n,t,2))),n.lanes|=2):(e.flags|=65536,e.lanes=l),e}var lN=s.ReactCurrentOwner,l_=Error(i(461)),lL=!1;function lT(e,t,n,r){t.child=null===e?nR(t,null,n,r):nO(t,e.child,n,r)}function lF(e,t,n,r,l){n=n.render;var a=t.ref;return(ae(t,l),r=rk(e,t,n,r,a,l),n=rE(),null===e||lL)?(tK&&n&&tQ(t),t.flags|=1,lT(e,t,r,l),t.child):(rx(e,t,l),l0(e,t,l))}function lM(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||id(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ih(n.type,null,r,null,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,lO(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:nv)(o,r)&&e.ref===t.ref)return l0(e,t,l)}return t.flags|=1,(e=ip(a,r)).ref=t.ref,e.return=t,t.child=e}function lO(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(nv(a,r)&&e.ref===t.ref){if(lL=!1,t.pendingProps=r=a,0==(e.lanes&l))return t.lanes=e.lanes,l0(e,t,l);0!=(131072&e.flags)&&(lL=!0)}}return lI(e,t,n,r,l)}function lR(e,t,n){var r=t.pendingProps,l=r.children,a=0!=(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(lA(e,t),"hidden"===r.mode||a){if(0!=(128&t.flags)){if(n=null!==o?o.baseLanes|n:n,null!==e){for(l=0,r=t.child=e.child;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~n}else t.childLanes=0,t.child=null;return lD(e,t,n)}if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ap(t,null),nU(),nQ(t);else{if(0==(536870912&n))return t.lanes=t.childLanes=536870912,lD(e,t,null!==o?o.baseLanes|n:n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ap(t,null!==o?o.cachePool:null),null!==o?nI(t,o):nU(),nQ(t)}}else null!==o?(ap(t,o.cachePool),nI(t,o),nW(t),t.memoizedState=null):(null!==e&&ap(t,null),nU(),nW(t));return lT(e,t,l,n),t.child}function lD(e,t,n){var r=ad();return r=null===r?null:{parent:ai._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&ap(t,null),nU(),nQ(t),null}function lA(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lI(e,t,n,r,l){var a=tz(n)?tE:tS.current;return(a=tx(t,a),ae(t,l),n=rk(e,t,n,r,a,l),r=rE(),null===e||lL)?(tK&&r&&tQ(t),t.flags|=1,lT(e,t,n,l),t.child):(rx(e,t,l),l0(e,t,l))}function lU(e,t,n,r,l,a){return(ae(t,a),n=rS(t,r,n,l),rw(),r=rE(),null===e||lL)?(tK&&r&&tQ(t),t.flags|=1,lT(e,t,n,a),t.child):(rx(e,t,a),l0(e,t,a))}function l$(e,t,n,r,l){if(tz(n)){var a=!0;tL(t)}else a=!1;if(ae(t,l),null===t.stateNode)lJ(e,t),lb(t,n,r),lw(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?at(s):tx(t,s=tz(n)?tE:tS.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&lk(t,o,r,s),nu=!1;var d=t.memoizedState;o.state=d,nh(t,r,o,l),u=t.memoizedState,i!==r||d!==u||tC.current||nu?("function"==typeof c&&(lg(t,n,c,r),u=t.memoizedState),(i=nu||lv(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,nc(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:lh(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?at(u):tx(t,u=tz(n)?tE:tS.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&lk(t,o,r,u),nu=!1,d=t.memoizedState,o.state=d,nh(t,r,o,l);var m=t.memoizedState;i!==f||d!==m||tC.current||nu?("function"==typeof p&&(lg(t,n,p,r),m=t.memoizedState),(s=nu||lv(t,n,s,r,d,m,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return lB(e,t,n,r,a,l)}function lB(e,t,n,r,l,a){lA(e,t);var o=0!=(128&t.flags);if(!r&&!o)return l&&tT(t,n,!1),l0(e,t,a);r=t.stateNode,lN.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=nO(t,e.child,null,a),t.child=nO(t,null,i,a)):lT(e,t,i,a),t.memoizedState=r.state,l&&tT(t,n,!0),t.child}function lV(e){var t=e.stateNode;t.pendingContext?tN(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tN(e,t.context,!1),B(e,t.containerInfo)}function lj(e,t,n,r,l){return t5(),t7(l),t.flags|=256,lT(e,t,n,r),t.child}var lQ={dehydrated:null,treeContext:null,retryLane:0};function lW(e){return{baseLanes:e,cachePool:am()}}function lH(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=ox),e}function lq(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&nq.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(tK){if(a?nj(t):nW(t),tK){var u=o=tq;if(u){if(!t1(t,u)){t2(t)&&t3(),tq=s4(u);var s=tH;tq&&t1(t,tq)?tG(s,u):(tZ(tH,t),tK=!1,tH=t,tq=o)}}else t2(t)&&t3(),tZ(tH,t),tK=!1,tH=t,tq=o}if(null!==(o=t.memoizedState)&&null!==(o=o.dehydrated))return 0==(1&t.mode)?t.lanes=2:"$!"===o.data?t.lanes=16:t.lanes=536870912,null;nH(t)}return(o=l.children,l=l.fallback,a)?(nW(t),a=t.mode,u=t.child,o={mode:"hidden",children:o},0==(1&a)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=iy(o,a,0,null),l=ig(l,a,n,null),u.return=t,l.return=t,u.sibling=l,t.child=u,(a=t.child).memoizedState=lW(n),a.childLanes=lH(e,r,n),t.memoizedState=lQ,l):(nj(t),lK(t,o))}if(null!==(u=e.memoizedState)&&null!==(s=u.dehydrated))return function(e,t,n,r,l,a,o,u){if(n)return 256&t.flags?(nj(t),t.flags&=-257,lY(e,t,u,a=lC(Error(i(422))))):null!==t.memoizedState?(nW(t),t.child=e.child,t.flags|=128,null):(nW(t),a=l.fallback,o=t.mode,l=iy({mode:"visible",children:l.children},o,0,null),a=ig(a,o,u,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,0!=(1&t.mode)&&nO(t,e.child,null,u),(o=t.child).memoizedState=lW(u),o.childLanes=lH(e,r,u),t.memoizedState=lQ,a);if(nj(t),0==(1&t.mode))return lY(e,t,u,null);if("$!"===a.data){if(a=a.nextSibling&&a.nextSibling.dataset)var s=a.dgst;return a=s,(r=Error(i(419))).digest=a,lY(e,t,u,a=lC(r,a,void 0))}if(r=0!=(u&e.childLanes),lL||r){if(null!==(r=op)){if(0!=(42&(l=u&-u)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==o.retryLane)throw o.retryLane=l,na(e,l),oV(r,e,l),l_}return"$?"!==a.data&&o2(),lY(e,t,u,null)}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=ii.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,tq=s3(a.nextSibling),tH=t,tK=!0,tY=null,tX=!1,null!==e&&(tA[tI++]=t$,tA[tI++]=tB,tA[tI++]=tU,t$=e.id,tB=e.overflow,tU=t),t=lK(t,l.children),t.flags|=4096,t)}(e,t,o,r,l,s,u,n);if(a){nW(t),a=l.fallback,o=t.mode,s=(u=e.child).sibling;var c={mode:"hidden",children:l.children};return 0==(1&o)&&t.child!==u?((l=t.child).childLanes=0,l.pendingProps=c,t.deletions=null):(l=ip(u,c)).subtreeFlags=31457280&u.subtreeFlags,null!==s?a=ip(s,a):(a=ig(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(o=e.child.memoizedState)?o=lW(n):(null!==(u=o.cachePool)?(s=ai._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=am(),o={baseLanes:o.baseLanes|n,cachePool:u}),a.memoizedState=o,a.childLanes=lH(e,r,n),t.memoizedState=lQ,l}return nj(t),e=(r=e.child).sibling,r=ip(r,{mode:"visible",children:l.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lK(e,t){return(t=iy({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function lY(e,t,n,r){return null!==r&&t7(r),nO(t,e.child,null,n),e=lK(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lX(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),l7(e.return,t,n)}function lG(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function lZ(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(lT(e,t,r.children,n),0!=(2&(r=nq.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lX(e,n,t);else if(19===e.tag)lX(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(g(nq,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===nK(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),lG(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===nK(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}lG(t,!0,n,null,a);break;case"together":lG(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lJ(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function l0(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),oS|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ip(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ip(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var l1=m(null),l2=null,l3=null,l4=null;function l6(){l4=l3=l2=null}function l8(e,t,n){g(l1,t._currentValue),t._currentValue=n}function l5(e){e._currentValue=l1.current,h(l1)}function l7(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function l9(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var l=r.dependencies;if(null!==l)for(var a=r.child,o=l.firstContext;null!==o;){if(o.context===t){if(1===r.tag){(o=nf(n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var s=(u=u.shared).pending;null===s?o.next=o:(o.next=s.next,s.next=o),u.pending=o}}r.lanes|=n,null!==(o=r.alternate)&&(o.lanes|=n),l7(r.return,n,e),l.lanes|=n;break}o=o.next}else if(10===r.tag)a=r.type===e.type?null:r.child;else if(18===r.tag){if(null===(a=r.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),l7(a,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}if(null!==(r=a.sibling)){r.return=a.return,a=r;break}a=a.return}r=a}}function ae(e,t){l2=e,l4=l3=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(lL=!0),e.firstContext=null)}function at(e){return ar(l2,e)}function an(e,t,n){return null===l2&&ae(e,n),ar(e,t)}function ar(e,t){var n=t._currentValue;if(l4!==t){if(t={context:t,memoizedValue:n,next:null},null===l3){if(null===e)throw Error(i(308));l3=t,e.dependencies={lanes:0,firstContext:t}}else l3=l3.next=t}return n}var al="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=a.unstable_scheduleCallback,ao=a.unstable_NormalPriority,ai={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_defaultValue:null,_globalName:null};function au(){return{controller:new al,data:new Map,refCount:0}}function as(e){e.refCount--,0===e.refCount&&aa(ao,function(){e.controller.abort()})}var ac=s.ReactCurrentBatchConfig,af=m(null);function ad(){var e=af.current;return null!==e?e:op.pooledCache}function ap(e,t){null===t?g(af,af.current):g(af,t.pool)}function am(){var e=ad();return null===e?null:{parent:ai._currentValue,pool:e}}function ah(e){e.flags|=4}function ag(e){e.flags|=2097664}function ay(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,0==(42&oh)&&!(t="stylesheet"!==t.type||0!=(3&t.state.loading))){if(oJ())e.flags|=8192;else throw nx=nw,nk}}function av(e,t){null!==t?e.flags|=4:16384&e.flags&&(t=22!==e.tag?ed():536870912,e.lanes|=t)}function ab(e,t){if(!tK)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ak(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function aw(e,t){switch(tW(t),t.tag){case 1:null!=(e=t.type.childContextTypes)&&tP();break;case 3:l5(ai),V(),h(tC),h(tS);break;case 26:case 27:case 5:Q(t);break;case 4:V();break;case 13:nH(t);break;case 19:h(nq);break;case 10:l5(t.type._context);break;case 22:case 23:nH(t),n$(),null!==e&&h(af);break;case 24:l5(ai)}}function aS(e,t,n){var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){this.onError(e)}}var aC=!1,aE=null,ax=!1,az=null,aP={onError:function(e){aC=!0,aE=e}};function aN(e,t,n,r,l,a,o,i,u){aC=!1,aE=null,aS.apply(aP,arguments)}var a_=!1,aL=!1,aT="function"==typeof WeakSet?WeakSet:Set,aF=null;function aM(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=r;break;default:l=r}"function"==typeof n?e.refCleanup=n(l):n.current=l}}catch(n){ir(e,t,n)}}function aO(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if("function"==typeof r)try{r()}catch(n){ir(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ir(e,t,n)}else n.current=null}}function aR(e,t,n){try{n()}catch(n){ir(e,t,n)}}var aD=!1;function aA(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,o=a.destroy;void 0!==o&&(a.destroy=void 0,aR(t,n,o))}l=l.next}while(l!==r)}}function aI(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create,l=n.inst;r=r(),l.destroy=r}n=n.next}while(n!==t)}}function aU(e,t){try{aI(t,e)}catch(t){ir(e,e.return,t)}}function a$(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ny(t,n)}catch(t){ir(e,e.return,t)}}}function aB(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src&&(r.src=n.src)}}catch(t){ir(e,e.return,t)}}function aV(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:a2(e,n),4&r&&aU(n,5);break;case 1:if(a2(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ir(n,n.return,e)}else{var l=n.elementType===n.type?t.memoizedProps:lh(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ir(n,n.return,e)}}}64&r&&a$(n),512&r&&aM(n,n.return);break;case 3:if(a2(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{ny(r,e)}catch(e){ir(n,n.return,e)}}break;case 26:a2(e,n),512&r&&aM(n,n.return);break;case 27:case 5:a2(e,n),null===t&&4&r&&aB(n),512&r&&aM(n,n.return);break;case 12:default:a2(e,n);break;case 13:a2(e,n),4&r&&aX(e,n);break;case 22:if(0!=(1&n.mode)){if(!(l=null!==n.memoizedState||a_)){t=null!==t&&null!==t.memoizedState||aL;var a=a_,o=aL;a_=l,(aL=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),aU(o,4);break;case 1:if(e(a,o,r),"function"==typeof(a=o.stateNode).componentDidMount)try{a.componentDidMount()}catch(e){ir(o,o.return,e)}if(null!==(l=o.updateQueue)){var u=l.shared.hiddenCallbacks;if(null!==u)for(l.shared.hiddenCallbacks=null,l=0;l<u.length;l++)ng(u[l],a)}r&&64&i&&a$(o),aM(o,o.return);break;case 26:case 27:case 5:e(a,o,r),r&&null===l&&4&i&&aB(o),aM(o,o.return);break;case 12:default:e(a,o,r);break;case 13:e(a,o,r),r&&4&i&&aX(a,o);break;case 22:null===o.memoizedState&&e(a,o,r),aM(o,o.return)}n=n.sibling}}(e,n,0!=(8772&n.subtreeFlags)):a2(e,n),a_=a,aL=o}}else a2(e,n);512&r&&("manual"===n.memoizedProps.mode?aM(n,n.return):aO(n,n.return))}}function aj(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function aQ(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||aj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function aW(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(aW(e,t,n),e=e.sibling;null!==e;)aW(e,t,n),e=e.sibling}var aH=null,aq=!1;function aK(e,t,n){for(n=n.child;null!==n;)aY(e,t,n),n=n.sibling}function aY(e,t,n){if(er&&"function"==typeof er.onCommitFiberUnmount)try{er.onCommitFiberUnmount(en,n)}catch(e){}switch(n.tag){case 26:aL||aO(n,t),aK(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:aL||aO(n,t);var r=aH,l=aq;for(aH=n.stateNode,aK(e,t,n),e=(n=n.stateNode).attributes;e.length;)n.removeAttributeNode(e[0]);e_(n),aH=r,aq=l;break;case 5:aL||aO(n,t);case 6:r=aH,l=aq,aH=null,aK(e,t,n),aH=r,aq=l,null!==aH&&(aq?(e=aH,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):aH.removeChild(n.stateNode));break;case 18:null!==aH&&(aq?(e=aH,n=n.stateNode,8===e.nodeType?s0(e.parentNode,n):1===e.nodeType&&s0(e,n),ub(e)):s0(aH,n.stateNode));break;case 4:r=aH,l=aq,aH=n.stateNode.containerInfo,aq=!0,aK(e,t,n),aH=r,aq=l;break;case 0:case 11:case 14:case 15:if(!aL&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l.tag,o=l.inst,i=o.destroy;void 0!==i&&(0!=(2&a)?(o.destroy=void 0,aR(n,t,i)):0!=(4&a)&&(o.destroy=void 0,aR(n,t,i))),l=l.next}while(l!==r)}aK(e,t,n);break;case 1:if(!aL&&(aO(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ir(n,t,e)}aK(e,t,n);break;case 21:default:aK(e,t,n);break;case 22:aO(n,t),1&n.mode?(aL=(r=aL)||null!==n.memoizedState,aK(e,t,n),aL=r):aK(e,t,n)}}function aX(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{ub(e)}catch(e){ir(t,t.return,e)}}function aG(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new aT),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new aT),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){var r=iu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function aZ(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var l=n[r];try{var a=t,o=a;e:for(;null!==o;){switch(o.tag){case 27:case 5:aH=o.stateNode,aq=!1;break e;case 3:case 4:aH=o.stateNode.containerInfo,aq=!0;break e}o=o.return}if(null===aH)throw Error(i(160));aY(e,a,l),aH=null,aq=!1;var u=l.alternate;null!==u&&(u.return=null),l.return=null}catch(e){ir(l,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)a0(t,e),t=t.sibling}var aJ=null;function a0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(aZ(t,e),a1(e),4&r){try{aA(3,e,e.return),aI(3,e)}catch(t){ir(e,e.return,t)}try{aA(5,e,e.return)}catch(t){ir(e,e.return,t)}}break;case 1:aZ(t,e),a1(e),512&r&&null!==n&&aO(n,n.return),64&r&&a_&&null!==(e=e.updateQueue)&&null!==(n=e.callbacks)&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===r?n:r.concat(n));break;case 26:var l=aJ;if(aZ(t,e),a1(e),512&r&&null!==n&&aO(n,n.return),4&r){if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n){if(null===r){if(null===e.stateNode){e:{n=e.type,r=e.memoizedProps,t=l.ownerDocument||l;t:switch(n){case"title":(!(l=t.getElementsByTagName("title")[0])||l[eN]||l[ew]||"http://www.w3.org/2000/svg"===l.namespaceURI||l.hasAttribute("itemprop"))&&(l=t.createElement(n),t.head.insertBefore(l,t.querySelector("head > title"))),s$(l,n,r),l[ew]=e,eR(l),n=l;break e;case"link":var a=cp("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o<a.length;o++)if((l=a[o]).getAttribute("href")===(null==r.href?null:r.href)&&l.getAttribute("rel")===(null==r.rel?null:r.rel)&&l.getAttribute("title")===(null==r.title?null:r.title)&&l.getAttribute("crossorigin")===(null==r.crossOrigin?null:r.crossOrigin)){a.splice(o,1);break t}}s$(l=t.createElement(n),n,r),t.head.appendChild(l);break;case"meta":if(a=cp("meta","content",t).get(n+(r.content||""))){for(o=0;o<a.length;o++)if((l=a[o]).getAttribute("content")===(null==r.content?null:""+r.content)&&l.getAttribute("name")===(null==r.name?null:r.name)&&l.getAttribute("property")===(null==r.property?null:r.property)&&l.getAttribute("http-equiv")===(null==r.httpEquiv?null:r.httpEquiv)&&l.getAttribute("charset")===(null==r.charSet?null:r.charSet)){a.splice(o,1);break t}}s$(l=t.createElement(n),n,r),t.head.appendChild(l);break;default:throw Error(i(468,n))}l[ew]=e,eR(l),n=l}e.stateNode=n}else cm(l,e.type,e.stateNode)}else e.stateNode=cu(l,r,e.memoizedProps)}else if(t!==r)null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?cm(l,e.type,e.stateNode):cu(l,r,e.memoizedProps);else if(null===r&&null!==e.stateNode){e.updateQueue=null;try{var u=e.stateNode,s=e.memoizedProps;sB(u,e.type,n.memoizedProps,s),u[eS]=s}catch(t){ir(e,e.return,t)}}}break;case 27:if(4&r&&null===e.alternate){for(l=e.stateNode,a=e.memoizedProps,o=l.firstChild;o;){var c=o.nextSibling,f=o.nodeName;o[eN]||"HEAD"===f||"BODY"===f||"SCRIPT"===f||"STYLE"===f||"LINK"===f&&"stylesheet"===o.rel.toLowerCase()||l.removeChild(o),o=c}for(o=e.type,c=l.attributes;c.length;)l.removeAttributeNode(c[0]);s$(l,o,a),l[ew]=e,l[eS]=a}case 5:if(aZ(t,e),a1(e),512&r&&null!==n&&aO(n,n.return),32&e.flags){t=e.stateNode;try{tl(t,"")}catch(t){ir(e,e.return,t)}}if(4&r&&null!=(r=e.stateNode)){t=e.memoizedProps,n=null!==n?n.memoizedProps:t,l=e.type,e.updateQueue=null;try{sB(r,l,n,t),r[eS]=t}catch(t){ir(e,e.return,t)}}break;case 6:if(aZ(t,e),a1(e),4&r){if(null===e.stateNode)throw Error(i(162));n=e.stateNode,r=e.memoizedProps;try{n.nodeValue=r}catch(t){ir(e,e.return,t)}}break;case 3:if(cd=null,l=aJ,aJ=ce(t.containerInfo),aZ(t,e),aJ=l,a1(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{ub(t.containerInfo)}catch(t){ir(e,e.return,t)}break;case 4:n=aJ,aJ=ce(e.stateNode.containerInfo),aZ(t,e),a1(e),aJ=n;break;case 13:aZ(t,e),a1(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(oN=Y()),4&r&&null!==(n=e.updateQueue)&&(e.updateQueue=null,aG(e,n));break;case 22:if(512&r&&null!==n&&aO(n,n.return),u=null!==e.memoizedState,s=null!==n&&null!==n.memoizedState,1&e.mode){var d=a_,p=aL;a_=d||u,aL=p||s,aZ(t,e),aL=p,a_=d}else aZ(t,e);if(a1(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=u?-2&t._visibility:1|t._visibility,u&&(t=a_||aL,null===n||s||t||0!=(1&e.mode)&&function e(t){for(t=t.child;null!==t;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:aA(4,n,n.return),e(n);break;case 1:aO(n,n.return);var r=n.stateNode;if("function"==typeof r.componentWillUnmount){var l=n.return;try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ir(n,l,e)}}e(n);break;case 26:case 27:case 5:aO(n,n.return),e(n);break;case 22:aO(n,n.return),null===n.memoizedState&&e(n);break;default:e(n)}t=t.sibling}}(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){n=t;try{l=t.stateNode,u?(a=l.style,"function"==typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(o=t.stateNode,f=null!=(c=t.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,o.style.display=null==f||"boolean"==typeof f?"":(""+f).trim())}catch(t){ir(e,e.return,t)}}}else if(6===t.tag){if(null===n)try{t.stateNode.nodeValue=u?"":t.memoizedProps}catch(t){ir(e,e.return,t)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(n=e.updateQueue)&&null!==(r=n.retryQueue)&&(n.retryQueue=null,aG(e,r));break;case 19:aZ(t,e),a1(e),4&r&&null!==(n=e.updateQueue)&&(e.updateQueue=null,aG(e,n));break;case 21:break;default:aZ(t,e),a1(e)}}function a1(e){var t=e.flags;if(2&t){try{if(27!==e.tag){t:{for(var n=e.return;null!==n;){if(aj(n)){var r=n;break t}n=n.return}throw Error(i(160))}switch(r.tag){case 27:var l=r.stateNode,a=aQ(e);aW(e,a,l);break;case 5:var o=r.stateNode;32&r.flags&&(tl(o,""),r.flags&=-33);var u=aQ(e);aW(e,u,o);break;case 3:case 4:var s=r.stateNode.containerInfo,c=aQ(e);!function e(t,n,r){var l=t.tag;if(5===l||6===l)t=t.stateNode,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=sA));else if(4!==l&&27!==l&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,c,s);break;default:throw Error(i(161))}}}catch(t){ir(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function a2(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)aV(e,t.alternate,t),t=t.sibling}function a3(e,t){try{aI(t,e)}catch(t){ir(e,e.return,t)}}function a4(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&as(n))}function a6(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&as(e))}function a8(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)a5(e,t,n,r),t=t.sibling}function a5(e,t,n,r){var l=t.flags;switch(t.tag){case 0:case 11:case 15:a8(e,t,n,r),2048&l&&a3(t,9);break;case 3:a8(e,t,n,r),2048&l&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&as(e)));break;case 23:break;case 22:var a=t.stateNode;null!==t.memoizedState?4&a._visibility?a8(e,t,n,r):1&t.mode?a7(e,t):(a._visibility|=4,a8(e,t,n,r)):4&a._visibility?a8(e,t,n,r):(a._visibility|=4,function e(t,n,r,l,a){for(a=a&&0!=(10256&n.subtreeFlags),n=n.child;null!==n;){var o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(t,o,r,l,a),a3(o,8);break;case 23:break;case 22:var u=o.stateNode;null!==o.memoizedState?4&u._visibility?e(t,o,r,l,a):1&o.mode?a7(t,o):(u._visibility|=4,e(t,o,r,l,a)):(u._visibility|=4,e(t,o,r,l,a)),a&&2048&i&&a4(o.alternate,o);break;case 24:e(t,o,r,l,a),a&&2048&i&&a6(o.alternate,o);break;default:e(t,o,r,l,a)}n=n.sibling}}(e,t,n,r,0!=(10256&t.subtreeFlags))),2048&l&&a4(t.alternate,t);break;case 24:a8(e,t,n,r),2048&l&&a6(t.alternate,t);break;default:a8(e,t,n,r)}}function a7(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=t,r=n.flags;switch(n.tag){case 22:a7(e,n),2048&r&&a4(n.alternate,n);break;case 24:a7(e,n),2048&r&&a6(n.alternate,n);break;default:a7(e,n)}t=t.sibling}}var a9=8192;function oe(e){if(e.subtreeFlags&a9)for(e=e.child;null!==e;)ot(e),e=e.sibling}function ot(e){switch(e.tag){case 26:oe(e),e.flags&a9&&null!==e.memoizedState&&function(e,t,n){if(null===ch)throw Error(i(475));var r=ch;if("stylesheet"===t.type&&("string"!=typeof n.media||!1!==matchMedia(n.media).matches)&&0==(4&t.state.loading)){if(null===t.instance){var l=cr(n.href),a=e.querySelector(cl(l));if(a){null!==(e=a._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=cy.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,eR(a);return}a=e.ownerDocument||e,n=ca(n),(l=s7.get(l))&&cc(n,l),eR(a=a.createElement("link"));var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),s$(a,"link",n),t.instance=a}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0==(3&t.state.loading)&&(r.count++,t=cy.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(aJ,e.memoizedState,e.memoizedProps);break;case 5:default:oe(e);break;case 3:case 4:var t=aJ;aJ=ce(e.stateNode.containerInfo),oe(e),aJ=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=a9,a9=16777216,oe(e),a9=t):oe(e))}}function on(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(null!==e)}}function or(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];aF=r,oa(r,e)}on(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)ol(e),e=e.sibling}function ol(e){switch(e.tag){case 0:case 11:case 15:or(e),2048&e.flags&&aA(9,e,e.return);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,function e(t){var n=t.deletions;if(0!=(16&t.flags)){if(null!==n)for(var r=0;r<n.length;r++){var l=n[r];aF=l,oa(l,t)}on(t)}for(t=t.child;null!==t;){switch((n=t).tag){case 0:case 11:case 15:aA(8,n,n.return),e(n);break;case 22:4&(r=n.stateNode)._visibility&&(r._visibility&=-5,e(n));break;default:e(n)}t=t.sibling}}(e)):or(e);break;default:or(e)}}function oa(e,t){for(;null!==aF;){var n=aF;switch(n.tag){case 0:case 11:case 15:aA(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:as(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,aF=r;else for(n=e;null!==aF;){var l=(r=aF).sibling,a=r.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&e_(n),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(r),r===n){aF=null;break}if(null!==l){l.return=a,aF=l;break}aF=a}}}var oo={getCacheSignal:function(){return at(ai).controller.signal},getCacheForType:function(e){var t=at(ai),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},oi="function"==typeof WeakMap?WeakMap:Map,ou=s.ReactCurrentDispatcher,os=s.ReactCurrentCache,oc=s.ReactCurrentOwner,of=s.ReactCurrentBatchConfig,od=0,op=null,om=null,oh=0,og=0,oy=null,ov=!1,ob=0,ok=0,ow=null,oS=0,oC=0,oE=0,ox=0,oz=null,oP=null,oN=0,o_=1/0,oL=null,oT=!1,oF=null,oM=null,oO=!1,oR=null,oD=0,oA=0,oI=null,oU=0,o$=null;function oB(e){return 0==(1&e.mode)?2:0!=(2&od)&&0!==oh?oh&-oh:null!==ac.transition?0!==(e=re)?e:n5():0!==(e=ey)?e:e=void 0===(e=window.event)?32:uN(e.type)}function oV(e,t,n){(e===op&&2===og||null!==e.cancelPendingCommit)&&(oG(e,0),oq(e,oh,ox)),em(e,n),(0==(2&od)||e!==op)&&(e===op&&(0==(2&od)&&(oC|=n),4===ok&&oq(e,oh,ox)),n1(e),2===n&&0===od&&0==(1&t.mode)&&(o_=Y()+500,n2(!0)))}function oj(e,t){if(0!=(6&od))throw Error(i(327));var n=e.callbackNode;if(ie()&&e.callbackNode!==n)return null;var r=ec(e,e===op?oh:0);if(0===r)return null;var l=0==(60&r)&&0==(r&e.expiredLanes)&&!t;if(0!==(t=l?function(e,t){var n=od;od|=2;var r=o0(),l=o1();(op!==e||oh!==t)&&(oL=null,o_=Y()+500,oG(e,t));e:for(;;)try{if(0!==og&&null!==om){t=om;var a=oy;t:switch(og){case 1:case 6:og=0,oy=null,o8(t,a);break;case 2:if(nS(a)){og=0,oy=null,o6(t);break}t=function(){2===og&&op===e&&(og=7),n1(e)},a.then(t,t);break e;case 3:og=7;break e;case 4:og=5;break e;case 7:nS(a)?(og=0,oy=null,o6(t)):(og=0,oy=null,o8(t,a));break;case 5:switch(om.tag){case 5:case 26:case 27:t=om,og=0,oy=null;var o=t.sibling;if(null!==o)om=o;else{var u=t.return;null!==u?(om=u,o5(u)):om=null}break t}og=0,oy=null,o8(t,a);break;case 8:oX(),ok=6;break e;default:throw Error(i(462))}}!function(){for(;null!==om&&!q();)o4(om)}();break}catch(t){oZ(e,t)}return(l6(),ou.current=r,os.current=l,od=n,null!==om)?0:(op=null,oh=0,nn(),ok)}(e,r):o3(e,r)))for(var a=l;;){if(6===t)oq(e,r,0);else{if(l=e.current.alternate,a&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var l=n[r],a=l.getSnapshot;l=l.value;try{if(!tF(a(),l))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)){t=o3(e,r),a=!1;continue}if(2===t){var o=ef(e,a=r);0!==o&&(r=o,t=oQ(e,a,o))}if(1===t)throw n=ow,oG(e,0),oq(e,r,0),n1(e),n;e.finishedWork=l,e.finishedLanes=r;e:{switch(a=e,t){case 0:case 1:throw Error(i(345));case 4:if((4194176&r)===r){oq(a,r,ox);break e}break;case 2:case 3:case 5:break;default:throw Error(i(329))}if((62914560&r)===r&&10<(t=oN+300-Y())){if(oq(a,r,ox),0!==ec(a,0))break e;a.timeoutHandle=sY(oH.bind(null,a,l,oP,oL,r,ox),t);break e}oH(a,l,oP,oL,r,ox)}}break}return n1(e),n6(e,Y()),e=e.callbackNode===n?oj.bind(null,e):null}function oQ(e,t,n){var r=oz,l=e.current.memoizedState.isDehydrated;if(l&&(oG(e,n).flags|=256),2!==(n=o3(e,n))){if(ov&&!l)return e.errorRecoveryDisabledLanes|=t,oC|=t,4;e=oP,oP=r,null!==e&&oW(e)}return n}function oW(e){null===oP?oP=e:oP.push.apply(oP,e)}function oH(e,t,n,r,l,a){if(0==(42&l)&&(ch={stylesheets:null,count:0,unsuspend:cg},ot(t),null!==(t=function(){if(null===ch)throw Error(i(475));var e=ch;return e.stylesheets&&0===e.count&&cb(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&cb(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}()))){e.cancelPendingCommit=t(o7.bind(null,e,n,r)),oq(e,l,a);return}o7(e,n,r,a)}function oq(e,t,n){t&=~oE,t&=~oC,e.suspendedLanes|=t,e.pingedLanes&=~t;for(var r=e.expirationTimes,l=t;0<l;){var a=31-el(l),o=1<<a;r[a]=-1,l&=~o}0!==n&&eh(e,n,t)}function oK(e,t){var n=od;od|=1;try{return e(t)}finally{0===(od=n)&&(o_=Y()+500,n2(!0))}}function oY(e){null!==oR&&0===oR.tag&&0==(6&od)&&ie();var t=od;od|=1;var n=of.transition,r=ey;try{if(of.transition=null,ey=2,e)return e()}finally{ey=r,of.transition=n,0==(6&(od=t))&&n2(!1)}}function oX(){if(null!==om){if(0===og)var e=om.return;else e=om,l6(),rz(e),nP=null,nN=0,e=om;for(;null!==e;)aw(e.alternate,e),e=e.return;om=null}}function oG(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,sX(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),oX(),op=e,om=n=ip(e.current,null),oh=t,og=0,oy=null,ov=!1,ok=0,ow=null,ox=oE=oC=oS=0,oP=oz=null,0!=(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var l=31-el(r),a=1<<l;t|=e[l],r&=~a}return ob=t,nn(),n}function oZ(e,t){ru=null,ra.current=lf,oc.current=null,t===nb?(t=nz(),og=oJ()&&0==(134217727&oS)&&0==(134217727&oC)?2:3):t===nk?(t=nz(),og=4):og=t===l_?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,oy=t,null===om&&(ok=1,ow=t)}function oJ(){var e=nB.current;return null===e||((4194176&oh)===oh?null===nV:((62914560&oh)===oh||0!=(536870912&oh))&&e===nV)}function o0(){var e=ou.current;return ou.current=lf,null===e?lf:e}function o1(){var e=os.current;return os.current=oo,e}function o2(){ok=4,0==(134217727&oS)&&0==(134217727&oC)||null===op||oq(op,oh,ox)}function o3(e,t){var n=od;od|=2;var r=o0(),l=o1();(op!==e||oh!==t)&&(oL=null,oG(e,t)),t=!1;e:for(;;)try{if(0!==og&&null!==om){var a=om,o=oy;switch(og){case 8:oX(),ok=6;break e;case 3:case 2:t||null!==nB.current||(t=!0);default:og=0,oy=null,o8(a,o)}}!function(){for(;null!==om;)o4(om)}();break}catch(t){oZ(e,t)}if(t&&e.shellSuspendCounter++,l6(),od=n,ou.current=r,os.current=l,null!==om)throw Error(i(261));return op=null,oh=0,nn(),ok}function o4(e){var t=iB(e.alternate,e,ob);e.memoizedProps=e.pendingProps,null===t?o5(e):om=t,oc.current=null}function o6(e){var t=e.alternate;switch(e.tag){case 2:e.tag=0;case 15:case 0:var n=e.type,r=e.pendingProps;r=e.elementType===n?r:lh(n,r);var l=tz(n)?tE:tS.current;l=tx(e,l),t=lU(t,e,r,n,l,oh);break;case 11:n=e.type.render,r=e.pendingProps,r=e.elementType===n?r:lh(n,r),t=lU(t,e,r,n,e.ref,oh);break;case 5:rz(e);default:aw(t,e),e=om=im(e,ob),t=iB(t,e,ob)}e.memoizedProps=e.pendingProps,null===t?o5(e):om=t,oc.current=null}function o8(e,t){l6(),rz(e),nP=null,nN=0;var n=e.return;if(null===n||null===op)ok=1,ow=t,om=null;else{try{!function(e,t,n,r,l){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=n.tag;if(0!=(1&n.mode)||0!==a&&11!==a&&15!==a||((a=n.alternate)?(n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.lanes=a.lanes):(n.updateQueue=null,n.memoizedState=null)),null!==(a=nB.current)){switch(a.tag){case 13:1&n.mode&&(null===nV?o2():null===a.alternate&&0===ok&&(ok=3)),a.flags&=-257,lP(a,t,n,e,l),r===nw?a.flags|=16384:(null===(t=a.updateQueue)?a.updateQueue=new Set([r]):t.add(r),1&a.mode&&il(e,r,l));return;case 22:if(1&a.mode){a.flags|=65536,r===nw?a.flags|=16384:(null===(t=a.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),il(e,r,l));return}}throw Error(i(435,a.tag))}if(1===e.tag){il(e,r,l),o2();return}r=Error(i(426))}if(tK&&1&n.mode&&null!==(a=nB.current)){0==(65536&a.flags)&&(a.flags|=256),lP(a,t,n,e,l),t7(lS(r,n));return}e=r=lS(r,n),4!==ok&&(ok=2),null===oz?oz=[e]:oz.push(e),e=t;do{switch(e.tag){case 3:e.flags|=65536,l&=-l,e.lanes|=l,l=lx(e,r,l),nm(e,l);return;case 1:if(t=r,n=e.type,a=e.stateNode,0==(128&e.flags)&&("function"==typeof n.getDerivedStateFromError||null!==a&&"function"==typeof a.componentDidCatch&&(null===oM||!oM.has(a)))){e.flags|=65536,l&=-l,e.lanes|=l,l=lz(e,t,l),nm(e,l);return}}e=e.return}while(null!==e)}(op,n,e,t,oh)}catch(e){throw om=n,e}if(32768&e.flags)e:{do{if(null!==(t=function(e,t){switch(tW(t),t.tag){case 1:return tz(t.type)&&tP(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return l5(ai),V(),h(tC),h(tS),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Q(t),null;case 13:if(nH(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));t5()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return h(nq),null;case 4:return V(),null;case 10:return l5(t.type._context),null;case 22:case 23:return nH(t),n$(),null!==e&&h(af),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return l5(ai),null;default:return null}}(e.alternate,e))){t.flags&=32767,om=t;break e}null!==(e=e.return)&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),om=e}while(null!==e);ok=6,om=null}else o5(e)}}function o5(e){var t=e;do{e=t.return;var n=function(e,t,n){var r=t.pendingProps;switch(tW(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ak(t),null;case 1:case 17:return tz(t.type)&&tP(),ak(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),l5(ai),V(),h(tC),h(tS),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(t6(t)?ah(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==tY&&(oW(tY),tY=null))),ak(t),null;case 26:if(n=t.memoizedState,null===e)ah(t),null!==t.ref&&ag(t),null!==n?(ak(t),ay(t,n)):(ak(t),t.flags&=-16777217);else{var l=e.memoizedState;n!==l&&ah(t),e.ref!==t.ref&&ag(t),null!==n?(ak(t),n===l?t.flags&=-16777217:ay(t,n)):(e.memoizedProps!==r&&ah(t),ak(t),t.flags&=-16777217)}return null;case 27:if(Q(t),n=I.current,l=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ah(t),e.ref!==t.ref&&ag(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ak(t),null}e=D.current,t6(t)?s6(t.stateNode,t.type,t.memoizedProps,e,t):(e=s5(l,r,n),t.stateNode=e,ah(t)),null!==t.ref&&ag(t)}return ak(t),null;case 5:if(Q(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ah(t),e.ref!==t.ref&&ag(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ak(t),null}if(e=D.current,t6(t))s6(t.stateNode,t.type,t.memoizedProps,e,t);else{switch(l=sQ(I.current),e){case 1:e=l.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=l.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=l.createElement("div")).innerHTML="<script></script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[ew]=t,e[eS]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,s$(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ah(t)}null!==t.ref&&ag(t)}return ak(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ah(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t6(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[ew]=t,(r=e.nodeValue!==n)&&null!==(l=tH))switch(l.tag){case 3:if(l=0!=(1&l.mode),sD(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sD(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&ah(t)}else(e=sQ(e).createTextNode(r))[ew]=t,t.stateNode=e}return ak(t),null;case 13:if(nH(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tK&&null!==tq&&0!=(1&t.mode)&&0==(128&t.flags))t8(),t5(),t.flags|=384,l=!1;else if(l=t6(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[ew]=t}else t5(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ak(t),l=!1}else null!==tY&&(oW(tY),tY=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),av(t,t.updateQueue),ak(t),null;case 4:return V(),null===e&&sz(t.stateNode.containerInfo),ak(t),null;case 10:return l5(t.type._context),ak(t),null;case 19:if(h(nq),null===(l=t.memoizedState))return ak(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)ab(l,!1);else{if(0!==ok||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=nK(e))){for(t.flags|=128,ab(l,!1),e=a.updateQueue,t.updateQueue=e,av(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)im(n,e),n=n.sibling;return g(nq,1&nq.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>o_&&(t.flags|=128,r=!0,ab(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=nK(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,av(t,e),ab(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tK)return ak(t),null}else 2*Y()-l.renderingStartTime>o_&&536870912!==n&&(t.flags|=128,r=!0,ab(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=nq.current,g(nq,r?1&e|2:1&e),t;return ak(t),null;case 22:case 23:return nH(t),n$(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(ak(t),6&t.subtreeFlags&&(t.flags|=8192)):ak(t),null!==(n=t.updateQueue)&&av(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(af),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),l5(ai),ak(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,ob);if(null!==n){om=n;return}if(null!==(t=t.sibling)){om=t;return}om=t=e}while(null!==t);0===ok&&(ok=5)}function o7(e,t,n,r){var l=ey,a=of.transition;try{of.transition=null,ey=2,function(e,t,n,r,l){do ie();while(null!==oR);if(0!=(6&od))throw Error(i(327));var a=e.finishedWork,o=e.finishedLanes;if(null!==a){if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=a.lanes|a.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0<r;){var o=31-el(r),i=1<<o;t[o]=0,l[o]=-1;var u=a[o];if(null!==u)for(a[o]=null,o=0;o<u.length;o++){var s=u[o];null!==s&&(s.lane&=-536870913)}r&=~i}0!==n&&eh(e,n,0)}(e,u|=nt,l),e===op&&(om=op=null,oh=0),0==(10256&a.subtreeFlags)&&0==(10256&a.flags)||oO||(oO=!0,oA=u,oI=n,W(J,function(){return ie(),null})),n=0!=(15990&a.flags),0!=(15990&a.subtreeFlags)||n){n=of.transition,of.transition=null,l=ey,ey=2;var s=od;od|=4,oc.current=null,function(e,t){if(sV=uw,u7(e=u5())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var l,a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var u=0,s=-1,c=-1,f=0,d=0,p=e,m=null;t:for(;;){for(;p!==n||0!==a&&3!==p.nodeType||(s=u+a),p!==o||0!==r&&3!==p.nodeType||(c=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(l=p.firstChild);)m=p,p=l;for(;;){if(p===e)break t;if(m===n&&++f===a&&(s=u),m===o&&++d===r&&(c=u),null!==(l=p.nextSibling))break;m=(p=m).parentNode}p=l}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(sj={focusedElem:e,selectionRange:n},uw=!1,aF=t;null!==aF;)if(e=(t=aF).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,aF=e;else for(;null!==aF;){t=aF;try{var h=t.alternate,g=t.flags;switch(t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&g)&&null!==h){var y=h.memoizedProps,v=h.memoizedState,b=t.stateNode,k=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:lh(t.type,y),v);b.__reactInternalSnapshotBeforeUpdate=k}break;case 3:0!=(1024&g)&&s1(t.stateNode.containerInfo);break;default:if(0!=(1024&g))throw Error(i(163))}}catch(e){ir(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,aF=e;break}aF=t.return}h=aD,aD=!1}(e,a),a0(a,e),function(e){var t=u5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&u7(n)){if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var l=n.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=u8(n,a);var o=u8(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(sj),uw=!!sV,sj=sV=null,e.current=a,aV(e,a.alternate,a),K(),od=s,ey=l,of.transition=n}else e.current=a;if(oO?(oO=!1,oR=e,oD=o):o9(e,u),0===(u=e.pendingLanes)&&(oM=null),function(e){if(er&&"function"==typeof er.onCommitFiberRoot)try{er.onCommitFiberRoot(en,e,void 0,128==(128&e.current.flags))}catch(e){}}(a.stateNode,r),n1(e),null!==t)for(r=e.onRecoverableError,a=0;a<t.length;a++)n={digest:(u=t[a]).digest,componentStack:u.stack},r(u.value,n);if(oT)throw oT=!1,e=oF,oF=null,e;0!=(3&oD)&&0!==e.tag&&ie(),u=e.pendingLanes,0!=(4194218&o)&&0!=(42&u)?e===o$?oU++:(oU=0,o$=e):oU=0,n2(!1)}}(e,t,n,l,r)}finally{of.transition=a,ey=l}return null}function o9(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,as(t))}function ie(){if(null!==oR){var e=oR,t=oA;oA=0;var n=ev(oD),r=32>n?32:n;n=of.transition;var l=ey;try{if(of.transition=null,ey=r,null===oR)var a=!1;else{r=oI,oI=null;var o=oR,u=oD;if(oR=null,oD=0,0!=(6&od))throw Error(i(331));var s=od;if(od|=4,ol(o.current),a5(o,o.current,u,r),od=s,n2(!1),er&&"function"==typeof er.onPostCommitFiberRoot)try{er.onPostCommitFiberRoot(en,o)}catch(e){}a=!0}return a}finally{ey=l,of.transition=n,o9(e,t)}}return!1}function it(e,t,n){t=lx(e,t=lS(n,t),2),null!==(e=nd(e,t,2))&&(em(e,2),n1(e))}function ir(e,t,n){if(3===e.tag)it(e,e,n);else for(;null!==t;){if(3===t.tag){it(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oM||!oM.has(r))){e=lz(t,e=lS(n,e),2),null!==(t=nd(t,e,2))&&(em(t,2),n1(t));break}}t=t.return}}function il(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new oi;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ov=!0,l.add(n),e=ia.bind(null,e,t,n),t.then(e,e))}function ia(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,op===e&&(oh&n)===n&&(4===ok||3===ok&&(62914560&oh)===oh&&300>Y()-oN?0==(2&od)&&oG(e,0):oE|=n),n1(e)}function io(e,t){0===t&&(t=0==(1&e.mode)?2:ed()),null!==(e=na(e,t))&&(em(e,t),n1(e))}function ii(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),io(e,n)}function iu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),io(e,n)}function is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ic(e,t,n,r){return new is(e,t,n,r)}function id(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ip(e,t){var n=e.alternate;return null===n?((n=ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function im(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ih(e,t,n,r,l,a,o){if(l=2,r=e,"function"==typeof e)id(e)&&(l=1);else if("string"==typeof e)l=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;case"script":if(!0===t.async&&!t.onLoad&&!t.onError&&"string"==typeof t.src&&t.src)return!0}return!1}(e,n,D.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case b:return ig(n.children,a,o,t);case k:l=8,0!=(1&(a|=8))&&(a|=16);break;case w:return(e=ic(12,n,t,2|a)).elementType=w,e.lanes=o,e;case z:return(e=ic(13,n,t,a)).elementType=z,e.lanes=o,e;case P:return(e=ic(19,n,t,a)).elementType=P,e.lanes=o,e;case T:return iy(n,a,o,t);case F:case L:case M:return(e=ic(24,n,t,a)).elementType=M,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:l=10;break e;case C:l=9;break e;case x:l=11;break e;case N:l=14;break e;case _:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=ic(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function ig(e,t,n,r){return(e=ic(7,e,r,t)).lanes=n,e}function iy(e,t,n,r){(e=ic(22,e,r,t)).elementType=T,e.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0==(2&l._pendingVisibility)){var t=na(e,2);null!==t&&(l._pendingVisibility|=2,oV(t,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0!=(2&l._pendingVisibility)){var t=na(e,2);null!==t&&(l._pendingVisibility&=-3,oV(t,e,2))}}};return e.stateNode=l,e}function iv(e,t,n){return(e=ic(6,e,null,t)).lanes=n,e}function ib(e,t,n){return(t=ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ik(e,t,n,r,l,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ep(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ep(0),this.hiddenUpdates=ep(null),this.identifierPrefix=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function iw(e,t,n,r,l,a,o,i,u,s,c){return e=new ik(e,t,n,i,u,c),1===t?(t=1,!0===a&&(t|=24)):t=0,a=ic(3,null,null,t),e.current=a,a.stateNode=e,t=au(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ns(a),e}function iS(e){if(!e)return tw;e=e._reactInternals;e:{if(ty(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(tz(n))return t_(e,n,t)}return t}function iC(e,t,n,r,l,a,o,i,u,s,c){return(e=iw(n,r,!0,e,l,a,o,i,u,s,c)).context=iS(null),(l=nf(r=oB(n=e.current))).callback=null!=t?t:null,nd(n,l,r),e.current.lanes=r,em(e,r),n1(e),e}function iE(e,t,n,r){var l=t.current,a=oB(l);return n=iS(n),null===t.context?t.context=n:t.pendingContext=n,(t=nf(a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=nd(l,t,a))&&(oV(e,l,a),np(e,l,a)),a}function ix(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function iz(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function iP(e,t){iz(e,t),(e=e.alternate)&&iz(e,t)}function iN(e){if(13===e.tag){var t=na(e,67108864);null!==t&&oV(t,e,67108864),iP(e,67108864)}}iB=function(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps||tC.current)lL=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return lL=!1,function(e,t,n){switch(t.tag){case 3:lV(t),l8(t,ai,e.memoizedState.cache),t5();break;case 27:case 5:j(t);break;case 1:tz(t.type)&&tL(t);break;case 4:B(t,t.stateNode.containerInfo);break;case 10:l8(t,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return nj(t),t.flags|=128,null;if(0!=(n&t.child.childLanes))return lq(e,t,n);return nj(t),null!==(e=l0(e,t,n))?e.sibling:null}nj(t);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return lZ(e,t,n);t.flags|=128}var l=t.memoizedState;if(null!==l&&(l.rendering=null,l.tail=null,l.lastEffect=null),g(nq,nq.current),!r)return null;break;case 22:case 23:return t.lanes=0,lR(e,t,n);case 24:l8(t,ai,e.memoizedState.cache)}return l0(e,t,n)}(e,t,n);lL=0!=(131072&e.flags)}}else lL=!1,tK&&0!=(1048576&t.flags)&&tj(t,tD,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lJ(e,t),e=t.pendingProps;var l=tx(t,tS.current);ae(t,n),l=rk(null,t,r,e,l,n);var a=rE();return t.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tz(r)?(a=!0,tL(t)):a=!1,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,ns(t),l.updater=ly,t.stateNode=l,l._reactInternals=t,lw(t,r,e,n),t=lB(null,t,r,!0,a,n)):(t.tag=0,tK&&a&&tQ(t),lT(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lJ(e,t),e=t.pendingProps,r=(l=r._init)(r._payload),t.type=r,l=t.tag=function(e){if("function"==typeof e)return id(e)?1:0;if(null!=e){if((e=e.$$typeof)===x)return 11;if(e===N)return 14}return 2}(r),e=lh(r,e),l){case 0:t=lI(null,t,r,e,n);break e;case 1:t=l$(null,t,r,e,n);break e;case 11:t=lF(null,t,r,e,n);break e;case 14:t=lM(null,t,r,lh(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lh(r,l),lI(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lh(r,l),l$(e,t,r,l,n);case 3:e:{if(lV(t),null===e)throw Error(i(387));l=t.pendingProps,r=(a=t.memoizedState).element,nc(e,t),nh(t,l,null,n);var o=t.memoizedState;if(l8(t,ai,l=o.cache),l!==a.cache&&l9(t,ai,n),l=o.element,a.isDehydrated){if(a={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){r=lS(Error(i(423)),t),t=lj(e,t,l,n,r);break e}if(l!==r){r=lS(Error(i(424)),t),t=lj(e,t,l,n,r);break e}for(tq=s3(t.stateNode.containerInfo.firstChild),tH=t,tK=!0,tY=null,tX=!0,n=nR(t,null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(t5(),l===r){t=l0(e,t,n);break e}lT(e,t,l,n)}t=t.child}return t;case 26:return lA(e,t),n=t.memoizedState=function(e,t,n){if(!(t=(t=I.current)?ce(t):null))throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(n=cr(n.href),(e=(t=eO(t).hoistableStyles).get(n))||(e={type:"style",instance:null,count:0,state:null},t.set(n,e)),e):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=cr(n.href);var r,l,a,o,u=eO(t).hoistableStyles,s=u.get(e);return s||(t=t.ownerDocument||t,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),s7.has(e)||(r=t,l=e,a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},o=s.state,s7.set(l,a),r.querySelector(cl(l))||(r.querySelector('link[rel="preload"][as="style"]['+l+"]")?o.loading=1:(l=r.createElement("link"),o.preload=l,l.addEventListener("load",function(){return o.loading|=1}),l.addEventListener("error",function(){return o.loading|=2}),s$(l,"link",a),eR(l),r.head.appendChild(l))))),s}return null;case"script":return"string"==typeof n.src&&!0===n.async?(n=co(n.src),(e=(t=eO(t).hoistableScripts).get(n))||(e={type:"script",instance:null,count:0,state:null},t.set(n,e)),e):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}(t.type,null===e?null:e.memoizedProps,t.pendingProps),null!==e||tK||null!==n||(n=t.type,e=t.pendingProps,(r=sQ(I.current).createElement(n))[ew]=t,r[eS]=e,s$(r,n,e),eR(r),t.stateNode=r),null;case 27:return j(t),null===e&&tK&&(r=t.stateNode=s5(t.type,t.pendingProps,I.current),tH=t,tX=!0,tq=s3(r.firstChild)),r=t.pendingProps.children,null!==e||tK?lT(e,t,r,n):t.child=nO(t,null,r,n),lA(e,t),t.child;case 5:return j(t),null===e&&tK&&((l=r=tq)?tJ(t,l)||(t2(t)&&t3(),tq=s4(l),a=tH,tq&&tJ(t,tq)?tG(a,l):(tZ(tH,t),tK=!1,tH=t,tq=r)):(t2(t)&&t3(),tZ(tH,t),tK=!1,tH=t,tq=r)),l=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,sq(l,a)?r=null:null!==o&&sq(l,o)&&(t.flags|=32),null!==t.memoizedState&&(l=rk(e,t,rC,null,null,n),$._currentValue=l,lL&&null!==e&&e.memoizedState.memoizedState!==l&&l9(t,$,n)),lA(e,t),lT(e,t,r,n),t.child;case 6:return null===e&&tK&&((r=""!==t.pendingProps,(e=n=tq)&&r)?t0(t,e)||(t2(t)&&t3(),tq=s4(e),r=tH,tq&&t0(t,tq)?tG(r,e):(tZ(tH,t),tK=!1,tH=t,tq=n)):(t2(t)&&t3(),tZ(tH,t),tK=!1,tH=t,tq=n)),null;case 13:return lq(e,t,n);case 4:return B(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=nO(t,null,r,n):lT(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lh(r,l),lF(e,t,r,l,n);case 7:return lT(e,t,t.pendingProps,n),t.child;case 8:case 12:return lT(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,a=t.memoizedProps,l8(t,r,o=l.value),null!==a){if(tF(a.value,o)){if(a.children===l.children&&!tC.current){t=l0(e,t,n);break e}}else l9(t,r,n)}lT(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,ae(t,n),r=r(l=at(l)),t.flags|=1,lT(e,t,r,n),t.child;case 14:return l=lh(r=t.type,t.pendingProps),l=lh(r.type,l),lM(e,t,r,l,n);case 15:return lO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:lh(r,l),lJ(e,t),t.tag=1,tz(r)?(e=!0,tL(t)):e=!1,ae(t,n),lb(t,r,l),lw(t,r,l,n),lB(null,t,r,!0,e,n);case 19:return lZ(e,t,n);case 22:return lR(e,t,n);case 24:return ae(t,n),r=at(ai),null===e?(null===(l=ad())&&(l=op,a=au(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:r,cache:l},ns(t),l8(t,ai,l)):(0!=(e.lanes&n)&&(nc(e,t),nh(t,null,null,n)),l=e.memoizedState,a=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=l),l8(t,ai,r)):(l8(t,ai,r=a.cache),r!==l.cache&&l9(t,ai,n))),lT(e,t,t.pendingProps.children,n),t.child}throw Error(i(156,t.tag))};var i_=!1;function iL(e,t,n){if(i_)return e(t,n);i_=!0;try{return oK(e,t,n)}finally{i_=!1,(null!==td||null!==tp)&&(oY(),tg())}}function iT(e,t){var n=e.stateNode;if(null===n)return null;var r=eM(n);if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var iF=!1;if(e$)try{var iM={};Object.defineProperty(iM,"passive",{get:function(){iF=!0}}),window.addEventListener("test",iM,iM),window.removeEventListener("test",iM,iM)}catch(e){iF=!1}function iO(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function iR(){return!0}function iD(){return!1}function iA(e){function t(t,n,r,l,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?iR:iD,this.isPropagationStopped=iD,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=iR)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=iR)},persist:function(){},isPersistent:iR}),t}var iI,iU,i$,iB,iV,ij,iQ,iW={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iH=iA(iW),iq=u({},iW,{view:0,detail:0}),iK=iA(iq),iY=u({},iq,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:i8,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==iQ&&(iQ&&"mousemove"===e.type?(iV=e.screenX-iQ.screenX,ij=e.screenY-iQ.screenY):ij=iV=0,iQ=e),iV)},movementY:function(e){return"movementY"in e?e.movementY:ij}}),iX=iA(iY),iG=iA(u({},iY,{dataTransfer:0})),iZ=iA(u({},iq,{relatedTarget:0})),iJ=iA(u({},iW,{animationName:0,elapsedTime:0,pseudoElement:0})),i0=iA(u({},iW,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),i1=iA(u({},iW,{data:0})),i2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},i4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=i4[e])&&!!t[e]}function i8(){return i6}var i5=iA(u({},iq,{key:function(e){if(e.key){var t=i2[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=iO(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?i3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:i8,charCode:function(e){return"keypress"===e.type?iO(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?iO(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),i7=iA(u({},iY,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),i9=iA(u({},iq,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:i8})),ue=iA(u({},iW,{propertyName:0,elapsedTime:0,pseudoElement:0})),ut=iA(u({},iY,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),un=!1,ur=null,ul=null,ua=null,uo=new Map,ui=new Map,uu=[],us="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function uc(e,t){switch(e){case"focusin":case"focusout":ur=null;break;case"dragenter":case"dragleave":ul=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":uo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(t.pointerId)}}function uf(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==t&&null!==(t=eT(t))&&iN(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l)),e}function ud(e){var t=eL(e.target);if(null!==t){var n=ty(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=tv(n))){e.blockedOn=t,function(e,t){var n=ey;try{return ey=e,t()}finally{ey=n}}(e.priority,function(){if(13===n.tag){var e=oB(n),t=na(n,e);null!==t&&oV(t,n,e),iP(n,e)}});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function up(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ux(e.nativeEvent);if(null!==n)return null!==(t=eT(n))&&iN(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tc=r,n.target.dispatchEvent(r),tc=null,t.shift()}return!0}function um(e,t,n){up(e)&&n.delete(t)}function uh(){un=!1,null!==ur&&up(ur)&&(ur=null),null!==ul&&up(ul)&&(ul=null),null!==ua&&up(ua)&&(ua=null),uo.forEach(um),ui.forEach(um)}function ug(e,t){e.blockedOn===t&&(e.blockedOn=null,un||(un=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,uh)))}var uy=null;function uv(e){uy!==e&&(uy=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){uy===e&&(uy=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],l=e[t+2];if("function"!=typeof r){if(null===uP(r||n))continue;break}var a=eT(n);null!==a&&(e.splice(t,3),t-=3,le(a,{pending:!0,data:l,method:n.method,action:r},r,l))}}))}function ub(e){function t(t){return ug(t,e)}null!==ur&&ug(ur,e),null!==ul&&ug(ul,e),null!==ua&&ug(ua,e),uo.forEach(t),ui.forEach(t);for(var n=0;n<uu.length;n++){var r=uu[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<uu.length&&null===(n=uu[0]).blockedOn;)ud(n),null===n.blockedOn&&uu.shift();if(null!=(n=e.getRootNode().$$reactFormReplay))for(r=0;r<n.length;r+=3){var l=n[r],a=n[r+1],o=eM(l);if("function"==typeof a)o||uv(n);else if(o){var i=null;if(a&&a.hasAttribute("formAction")){if(l=a,o=eM(a))i=o.formAction;else if(null!==uP(l))continue}else i=o.action;"function"==typeof i?n[r+1]=i:(n.splice(r,3),r-=3),uv(n)}}}var uk=s.ReactCurrentBatchConfig,uw=!0;function uS(e,t,n,r){var l=ey,a=uk.transition;uk.transition=null;try{ey=2,uE(e,t,n,r)}finally{ey=l,uk.transition=a}}function uC(e,t,n,r){var l=ey,a=uk.transition;uk.transition=null;try{ey=8,uE(e,t,n,r)}finally{ey=l,uk.transition=a}}function uE(e,t,n,r){if(uw){var l=ux(r);if(null===l)sN(e,t,r,uz,n),uc(e,r);else if(function(e,t,n,r,l){switch(t){case"focusin":return ur=uf(ur,e,t,n,r,l),!0;case"dragenter":return ul=uf(ul,e,t,n,r,l),!0;case"mouseover":return ua=uf(ua,e,t,n,r,l),!0;case"pointerover":var a=l.pointerId;return uo.set(a,uf(uo.get(a)||null,e,t,n,r,l)),!0;case"gotpointercapture":return a=l.pointerId,ui.set(a,uf(ui.get(a)||null,e,t,n,r,l)),!0}return!1}(l,e,t,n,r))r.stopPropagation();else if(uc(e,r),4&t&&-1<us.indexOf(e)){for(;null!==l;){var a=eT(l);if(null!==a&&function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=es(t.pendingLanes);0!==n&&(function(e,t){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-el(t);e.entanglements[1]|=n,t&=~n}}(t,n),n1(t),0==(6&od)&&(o_=Y()+500,n2(!1)))}break;case 13:oY(function(){var t=na(e,2);null!==t&&oV(t,e,2)}),iP(e,2)}}(a),null===(a=ux(r))&&sN(e,t,r,uz,n),a===l)break;l=a}null!==l&&r.stopPropagation()}else sN(e,t,r,null,n)}}function ux(e){return uP(e=tf(e))}var uz=null;function uP(e){if(uz=null,null!==(e=eL(e))){var t=ty(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=tv(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uz=e,null}function uN(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(X()){case G:return 2;case Z:return 8;case J:case ee:return 32;case et:return 268435456;default:return 32}default:return 32}}var u_=null,uL=null,uT=null;function uF(){if(uT)return uT;var e,t,n=uL,r=n.length,l="value"in u_?u_.value:u_.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===l[a-t];t++);return uT=l.slice(e,1<t?1-t:void 0)}var uM=[9,13,27,32],uO=e$&&"CompositionEvent"in window,uR=null;e$&&"documentMode"in document&&(uR=document.documentMode);var uD=e$&&"TextEvent"in window&&!uR,uA=e$&&(!uO||uR&&8<uR&&11>=uR),uI=!1;function uU(e,t){switch(e){case"keyup":return -1!==uM.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u$(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uB=!1,uV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uV[e.type]:"textarea"===t}function uQ(e,t,n,r){th(r),0<(t=sL(t,"onChange")).length&&(n=new iH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uW=null,uH=null;function uq(e){sS(e,0)}function uK(e){if(e0(eF(e)))return e}function uY(e,t){if("change"===e)return t}var uX=!1;if(e$){if(e$){var uG="oninput"in document;if(!uG){var uZ=document.createElement("div");uZ.setAttribute("oninput","return;"),uG="function"==typeof uZ.oninput}r=uG}else r=!1;uX=r&&(!document.documentMode||9<document.documentMode)}function uJ(){uW&&(uW.detachEvent("onpropertychange",u0),uH=uW=null)}function u0(e){if("value"===e.propertyName&&uK(uH)){var t=[];uQ(t,uH,e,tf(e)),iL(uq,t)}}function u1(e,t,n){"focusin"===e?(uJ(),uW=t,uH=n,uW.attachEvent("onpropertychange",u0)):"focusout"===e&&uJ()}function u2(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return uK(uH)}function u3(e,t){if("click"===e)return uK(t)}function u4(e,t){if("input"===e||"change"===e)return uK(t)}function u6(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function u8(e,t){var n,r=u6(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=u6(r)}}function u5(){for(var e=window,t=e1();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e1(e.document)}return t}function u7(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var u9=e$&&"documentMode"in document&&11>=document.documentMode,se=null,st=null,sn=null,sr=!1;function sl(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==se||se!==e1(r)||(r="selectionStart"in(r=se)&&u7(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sn&&nv(sn,r)||(sn=r,0<(r=sL(st,"onSelect")).length&&(t=new iH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=se)))}function sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionend:sa("Transition","TransitionEnd")},si={},su={};function ss(e){if(si[e])return si[e];if(!so[e])return e;var t,n=so[e];for(t in n)if(n.hasOwnProperty(t)&&t in su)return si[e]=n[t];return e}e$&&(su=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);var sc=ss("animationend"),sf=ss("animationiteration"),sd=ss("animationstart"),sp=ss("transitionend"),sm=new Map,sh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function sg(e,t){sm.set(e,t),eI(t,[e])}for(var sy=0;sy<sh.length;sy++){var sv=sh[sy];sg(sv.toLowerCase(),"on"+(sv[0].toUpperCase()+sv.slice(1)))}sg(sc,"onAnimationEnd"),sg(sf,"onAnimationIteration"),sg(sd,"onAnimationStart"),sg("dblclick","onDoubleClick"),sg("focusin","onFocus"),sg("focusout","onBlur"),sg(sp,"onTransitionEnd"),eU("onMouseEnter",["mouseout","mouseover"]),eU("onMouseLeave",["mouseout","mouseover"]),eU("onPointerEnter",["pointerout","pointerover"]),eU("onPointerLeave",["pointerout","pointerover"]),eI("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),eI("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),eI("onBeforeInput",["compositionend","keypress","textInput","paste"]),eI("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),eI("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),eI("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sb="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sk=new Set("cancel close invalid load scroll scrollend toggle".split(" ").concat(sb));function sw(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,l,a,o,u,s){if(aN.apply(this,arguments),aC){if(aC){var c=aE;aC=!1,aE=null}else throw Error(i(198));ax||(ax=!0,az=c)}}(r,t,void 0,e),e.currentTarget=null}function sS(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==a&&l.isPropagationStopped())break e;sw(l,i,s),a=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==a&&l.isPropagationStopped())break e;sw(l,i,s),a=u}}}if(ax)throw e=az,ax=!1,az=null,e}function sC(e,t){var n=t[eE];void 0===n&&(n=t[eE]=new Set);var r=e+"__bubble";n.has(r)||(sP(t,e,2,!1),n.add(r))}function sE(e,t,n){var r=0;t&&(r|=4),sP(n,e,r,t)}var sx="_reactListening"+Math.random().toString(36).slice(2);function sz(e){if(!e[sx]){e[sx]=!0,eD.forEach(function(t){"selectionchange"!==t&&(sk.has(t)||sE(t,!1,e),sE(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[sx]||(t[sx]=!0,sE("selectionchange",!1,t))}}function sP(e,t,n,r){switch(uN(t)){case 2:var l=uS;break;case 8:l=uC;break;default:l=uE}n=l.bind(null,t,n,e),l=void 0,iF&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function sN(e,t,n,r,l){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===l||8===i.nodeType&&i.parentNode===l)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===l||8===u.nodeType&&u.parentNode===l))return;o=o.return}for(;null!==i;){if(null===(o=eL(i)))return;if(5===(u=o.tag)||6===u||26===u||27===u){r=a=o;continue e}i=i.parentNode}}r=r.return}iL(function(){var r=a,l=tf(n),o=[];e:{var i=sm.get(e);if(void 0!==i){var u=iH,s=e;switch(e){case"keypress":if(0===iO(n))break e;case"keydown":case"keyup":u=i5;break;case"focusin":s="focus",u=iZ;break;case"focusout":s="blur",u=iZ;break;case"beforeblur":case"afterblur":u=iZ;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=iX;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=iG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=i9;break;case sc:case sf:case sd:u=iJ;break;case sp:u=ue;break;case"scroll":case"scrollend":u=iK;break;case"wheel":u=ut;break;case"copy":case"cut":case"paste":u=i0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=i7}var c=0!=(4&t),f=!c&&("scroll"===e||"scrollend"===e),d=c?null!==i?i+"Capture":null:i;c=[];for(var p,m=r;null!==m;){var h=m;if(p=h.stateNode,5!==(h=h.tag)&&26!==h&&27!==h||null===p||null===d||null!=(h=iT(m,d))&&c.push(s_(m,h,p)),f)break;m=m.return}0<c.length&&(i=new u(i,s,null,n,l),o.push({event:i,listeners:c}))}}if(0==(7&t)){if(i="mouseover"===e||"pointerover"===e,u="mouseout"===e||"pointerout"===e,!(i&&n!==tc&&(s=n.relatedTarget||n.fromElement)&&(eL(s)||s[eC]))&&(u||i)&&(i=l.window===l?l:(i=l.ownerDocument)?i.defaultView||i.parentWindow:window,u?(s=n.relatedTarget||n.toElement,u=r,null!==(s=s?eL(s):null)&&(f=ty(s),c=s.tag,s!==f||5!==c&&27!==c&&6!==c)&&(s=null)):(u=null,s=r),u!==s)){if(c=iX,h="onMouseLeave",d="onMouseEnter",m="mouse",("pointerout"===e||"pointerover"===e)&&(c=i7,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?i:eF(u),p=null==s?i:eF(s),(i=new c(h,m+"leave",u,n,l)).target=f,i.relatedTarget=p,h=null,eL(l)===r&&((c=new c(d,m+"enter",s,n,l)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)t:{for(c=u,d=s,m=0,p=c;p;p=sT(p))m++;for(p=0,h=d;h;h=sT(h))p++;for(;0<m-p;)c=sT(c),m--;for(;0<p-m;)d=sT(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break t;c=sT(c),d=sT(d)}c=null}else c=null;null!==u&&sF(o,i,u,c,!1),null!==s&&null!==f&&sF(o,f,s,c,!0)}e:{if("select"===(u=(i=r?eF(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var g,y=uY;else if(uj(i)){if(uX)y=u4;else{y=u2;var v=u1}}else(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(y=u3);if(y&&(y=y(e,r))){uQ(o,y,n,l);break e}v&&v(e,i,r),"focusout"===e&&r&&"number"===i.type&&null!=r.memoizedProps.value&&e8(i,"number",i.value)}switch(v=r?eF(r):window,e){case"focusin":(uj(v)||"true"===v.contentEditable)&&(se=v,st=r,sn=null);break;case"focusout":sn=st=se=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,sl(o,n,l);break;case"selectionchange":if(u9)break;case"keydown":case"keyup":sl(o,n,l)}if(uO)t:{switch(e){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else uB?uU(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(uA&&"ko"!==n.locale&&(uB||"onCompositionStart"!==b?"onCompositionEnd"===b&&uB&&(g=uF()):(uL="value"in(u_=l)?u_.value:u_.textContent,uB=!0)),0<(v=sL(r,b)).length&&(b=new i1(b,e,null,n,l),o.push({event:b,listeners:v}),g?b.data=g:null!==(g=u$(n))&&(b.data=g))),(g=uD?function(e,t){switch(e){case"compositionend":return u$(t);case"keypress":if(32!==t.which)return null;return uI=!0," ";case"textInput":return" "===(e=t.data)&&uI?null:e;default:return null}}(e,n):function(e,t){if(uB)return"compositionend"===e||!uO&&uU(e,t)?(e=uF(),uT=uL=u_=null,uB=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return uA&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(b=sL(r,"onBeforeInput")).length&&(v=new i1("onBeforeInput","beforeinput",null,n,l),o.push({event:v,listeners:b}),v.data=g),function(e,t,n,r,l){if("submit"===t&&n&&n.stateNode===l){var a=eM(l).action,o=r.submitter;if(o&&null!=(t=(t=eM(o))?t.formAction:o.getAttribute("formAction"))&&(a=t,o=null),"function"==typeof a){var i=new iH("action","action",null,r,l);e.push({event:i,listeners:[{instance:null,listener:function(){if(!r.defaultPrevented){if(i.preventDefault(),o){var e=o.ownerDocument.createElement("input");e.name=o.name,e.value=o.value,o.parentNode.insertBefore(e,o);var t=new FormData(l);e.parentNode.removeChild(e)}else t=new FormData(l);le(n,{pending:!0,data:t,method:l.method,action:a},a,t)}},currentTarget:l}]})}}}(o,e,r,n,l)}sS(o,t)})}function s_(e,t,n){return{instance:e,listener:t,currentTarget:n}}function sL(e,t){for(var n=t+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5!==(l=l.tag)&&26!==l&&27!==l||null===a||(null!=(l=iT(e,n))&&r.unshift(s_(e,l,a)),null!=(l=iT(e,t))&&r.push(s_(e,l,a))),e=e.return}return r}function sT(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag&&27!==e.tag);return e||null}function sF(e,t,n,r,l){for(var a=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(i=i.tag,null!==u&&u===r)break;5!==i&&26!==i&&27!==i||null===s||(u=s,l?null!=(s=iT(n,a))&&o.unshift(s_(n,s,u)):l||null!=(s=iT(n,a))&&o.push(s_(n,s,u))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var sM=/\r\n?/g,sO=/\u0000|\uFFFD/g;function sR(e){return("string"==typeof e?e:""+e).replace(sM,"\n").replace(sO,"")}function sD(e,t,n){if(t=sR(t),sR(e)!==t&&n)throw Error(i(425))}function sA(){}function sI(e,t,n,r,l,a){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||tl(e,r):"number"==typeof r&&"body"!==t&&tl(e,""+r);break;case"className":eW(e,"class",r);break;case"tabIndex":eW(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":eW(e,n,r);break;case"style":ti(e,r,a);break;case"src":case"href":if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}e.setAttribute(n,""+r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===n?("input"!==t&&sI(e,t,"name",l.name,l,null),sI(e,t,"formEncType",l.formEncType,l,null),sI(e,t,"formMethod",l.formMethod,l,null),sI(e,t,"formTarget",l.formTarget,l,null)):(sI(e,t,"encType",l.encType,l,null),sI(e,t,"method",l.method,l,null),sI(e,t,"target",l.target,l,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}e.setAttribute(n,""+r);break;case"onClick":null!=r&&(e.onclick=sA);break;case"onScroll":null!=r&&sC("scroll",e);break;case"onScrollEnd":null!=r&&sC("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(r=r.__html)){if(null!=l.children)throw Error(i(60));tr(e,r)}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",""+r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"xlinkActuate":eH(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":eH(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":eH(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":eH(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":eH(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":eH(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":eH(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":eH(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":eH(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":eQ(e,"is",r);break;default:2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1])||eQ(e,l=ts.get(n)||n,r)}}function sU(e,t,n,r,l,a){switch(n){case"style":ti(e,r,a);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(t=r.__html)){if(null!=l.children)throw Error(i(60));tr(e,t)}}break;case"children":"string"==typeof r?tl(e,r):"number"==typeof r&&tl(e,""+r);break;case"onScroll":null!=r&&sC("scroll",e);break;case"onScrollEnd":null!=r&&sC("scrollend",e);break;case"onClick":null!=r&&(e.onclick=sA);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":break;default:eA.hasOwnProperty(n)||("boolean"==typeof r&&(r=""+r),eQ(e,n,r))}}function s$(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":sC("invalid",e);var r=null,l=null,a=null,o=null,u=null,s=null;for(f in n)if(n.hasOwnProperty(f)){var c=n[f];if(null!=c)switch(f){case"name":r=c;break;case"type":l=c;break;case"checked":u=c;break;case"defaultChecked":s=c;break;case"value":a=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(null!=c)throw Error(i(137,t));break;default:sI(e,t,f,c,n,null)}}e6(e,a,o,u,s,l,r,!1),eJ(e);return;case"select":sC("invalid",e);var f=l=a=null;for(r in n)if(n.hasOwnProperty(r)&&null!=(o=n[r]))switch(r){case"value":a=o;break;case"defaultValue":l=o;break;case"multiple":f=o;default:sI(e,t,r,o,n,null)}t=a,n=l,e.multiple=!!f,null!=t?e7(e,!!f,t,!1):null!=n&&e7(e,!!f,n,!0);return;case"textarea":for(l in sC("invalid",e),a=r=f=null,n)if(n.hasOwnProperty(l)&&null!=(o=n[l]))switch(l){case"value":f=o;break;case"defaultValue":r=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(i(91));break;default:sI(e,t,l,o,n,null)}te(e,f,r,a),eJ(e);return;case"option":for(o in n)n.hasOwnProperty(o)&&null!=(f=n[o])&&("selected"===o?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:sI(e,t,o,f,n,null));return;case"dialog":sC("cancel",e),sC("close",e);break;case"iframe":case"object":sC("load",e);break;case"video":case"audio":for(f=0;f<sb.length;f++)sC(sb[f],e);break;case"image":sC("error",e),sC("load",e);break;case"details":sC("toggle",e);break;case"embed":case"source":case"img":case"link":sC("error",e),sC("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(f=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:sI(e,t,u,f,n,null)}return;default:if(tu(t)){for(s in n)n.hasOwnProperty(s)&&null!=(f=n[s])&&sU(e,t,s,f,n,null);return}}for(a in n)n.hasOwnProperty(a)&&null!=(f=n[a])&&sI(e,t,a,f,n,null)}function sB(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,u=null,s=null,c=null,f=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(m)||sI(e,t,m,null,r,d)}}for(var p in r){var m=r[p];if(d=n[p],r.hasOwnProperty(p)&&(null!=m||null!=d))switch(p){case"type":a=m;break;case"name":l=m;break;case"checked":c=m;break;case"defaultChecked":f=m;break;case"value":o=m;break;case"defaultValue":u=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(i(137,t));break;default:m!==d&&sI(e,t,p,m,r,d)}}e4(e,o,u,s,c,f,a,l);return;case"select":for(a in m=o=u=p=null,n)if(s=n[a],n.hasOwnProperty(a)&&null!=s)switch(a){case"value":break;case"multiple":m=s;default:r.hasOwnProperty(a)||sI(e,t,a,null,r,s)}for(l in r)if(a=r[l],s=n[l],r.hasOwnProperty(l)&&(null!=a||null!=s))switch(l){case"value":p=a;break;case"defaultValue":u=a;break;case"multiple":o=a;default:a!==s&&sI(e,t,l,a,r,s)}t=u,n=o,r=m,null!=p?e7(e,!!n,p,!1):!!r!=!!n&&(null!=t?e7(e,!!n,t,!0):e7(e,!!n,n?[]:"",!1));return;case"textarea":for(u in m=p=null,n)if(l=n[u],n.hasOwnProperty(u)&&null!=l&&!r.hasOwnProperty(u))switch(u){case"value":case"children":break;default:sI(e,t,u,null,r,l)}for(o in r)if(l=r[o],a=n[o],r.hasOwnProperty(o)&&(null!=l||null!=a))switch(o){case"value":p=l;break;case"defaultValue":m=l;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:l!==a&&sI(e,t,o,l,r,a)}e9(e,p,m);return;case"option":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:sI(e,t,h,null,r,p));for(s in r)p=r[s],m=n[s],r.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m)&&("selected"===s?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:sI(e,t,s,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&sI(e,t,g,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:sI(e,t,c,p,r,m)}return;default:if(tu(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&sU(e,t,y,null,r,p);for(f in r)p=r[f],m=n[f],r.hasOwnProperty(f)&&p!==m&&(null!=p||null!=m)&&sU(e,t,f,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&sI(e,t,v,null,r,p);for(d in r)p=r[d],m=n[d],r.hasOwnProperty(d)&&p!==m&&(null!=p||null!=m)&&sI(e,t,d,p,r,m)}var sV=null,sj=null;function sQ(e){return 9===e.nodeType?e:e.ownerDocument}function sW(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sH(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function sq(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var sK=null,sY="function"==typeof setTimeout?setTimeout:void 0,sX="function"==typeof clearTimeout?clearTimeout:void 0,sG="function"==typeof Promise?Promise:void 0,sZ="function"==typeof queueMicrotask?queueMicrotask:void 0!==sG?function(e){return sG.resolve(null).then(e).catch(sJ)}:sY;function sJ(e){setTimeout(function(){throw e})}function s0(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&8===l.nodeType){if("/$"===(n=l.data)){if(0===r){e.removeChild(l),ub(t);return}r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++}n=l}while(n);ub(t)}function s1(e){var t=e.nodeType;if(9===t)s2(e);else if(1===t)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":s2(e);break;default:e.textContent=""}}function s2(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":s2(n),e_(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function s3(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function s4(e){return s3(e.nextSibling)}function s6(e,t,n,r,l){switch(e[ew]=l,e[eS]=n,r=0!=(1&l.mode),t){case"dialog":sC("cancel",e),sC("close",e);break;case"iframe":case"object":case"embed":sC("load",e);break;case"video":case"audio":for(l=0;l<sb.length;l++)sC(sb[l],e);break;case"source":sC("error",e);break;case"img":case"image":case"link":sC("error",e),sC("load",e);break;case"details":sC("toggle",e);break;case"input":sC("invalid",e),e6(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),eJ(e);break;case"select":sC("invalid",e);break;case"textarea":sC("invalid",e),te(e,n.value,n.defaultValue,n.children),eJ(e)}"string"!=typeof(l=n.children)&&"number"!=typeof l||e.textContent===""+l||(!0!==n.suppressHydrationWarning&&sD(e.textContent,l,r),r||"body"===t||(e.textContent=l)),null!=n.onScroll&&sC("scroll",e),null!=n.onScrollEnd&&sC("scrollend",e),null!=n.onClick&&(e.onclick=sA)}function s8(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function s5(e,t,n){switch(t=sQ(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}var s7=new Map,s9=new Set;function ce(e){return"function"==typeof e.getRootNode?e.getRootNode():e.ownerDocument}var ct={prefetchDNS:function(e){cn("dns-prefetch",e,null)},preconnect:function(e,t){cn("preconnect",e,t)},preload:function(e,t,n){var r=document;if(e&&t&&r){var l='link[rel="preload"][as="'+e3(t)+'"]';"image"===t&&n&&n.imageSrcSet?(l+='[imagesrcset="'+e3(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(l+='[imagesizes="'+e3(n.imageSizes)+'"]')):l+='[href="'+e3(e)+'"]';var a=l;switch(t){case"style":a=cr(e);break;case"script":a=co(e)}s7.has(a)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),s7.set(a,e),null!==r.querySelector(l)||"style"===t&&r.querySelector(cl(a))||"script"===t&&r.querySelector(ci(a))||(s$(t=r.createElement("link"),"link",e),eR(t),r.head.appendChild(t)))}},preloadModule:function(e,t){var n=document;if(e){var r=t&&"string"==typeof t.as?t.as:"script",l='link[rel="modulepreload"][as="'+e3(r)+'"][href="'+e3(e)+'"]',a=l;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=co(e)}if(!s7.has(a)&&(e=u({rel:"modulepreload",href:e},t),s7.set(a,e),null===n.querySelector(l))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ci(a)))return}s$(r=n.createElement("link"),"link",e),eR(r),n.head.appendChild(r)}}},preinitStyle:function(e,t,n){var r=document;if(e){var l=eO(r).hoistableStyles,a=cr(e);t=t||"default";var o=l.get(a);if(!o){var i={loading:0,preload:null};if(o=r.querySelector(cl(a)))i.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=s7.get(a))&&cc(e,n);var s=o=r.createElement("link");eR(s),s$(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){i.loading|=1}),s.addEventListener("error",function(){i.loading|=2}),i.loading|=4,cs(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:i},l.set(a,o)}}},preinitScript:function(e,t){var n=document;if(e){var r=eO(n).hoistableScripts,l=co(e),a=r.get(l);a||((a=n.querySelector(ci(l)))||(e=u({src:e,async:!0},t),(t=s7.get(l))&&cf(e,t),eR(a=n.createElement("script")),s$(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(l,a))}},preinitModuleScript:function(e,t){var n=document;if(e){var r=eO(n).hoistableScripts,l=co(e),a=r.get(l);a||((a=n.querySelector(ci(l)))||(e=u({src:e,async:!0,type:"module"},t),(t=s7.get(l))&&cf(e,t),eR(a=n.createElement("script")),s$(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(l,a))}}};function cn(e,t,n){var r=document;if("string"==typeof t&&t){var l=e3(t);l='link[rel="'+e+'"][href="'+l+'"]',"string"==typeof n&&(l+='[crossorigin="'+n+'"]'),s9.has(l)||(s9.add(l),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(l)&&(s$(t=r.createElement("link"),"link",e),eR(t),r.head.appendChild(t)))}}function cr(e){return'href="'+e3(e)+'"'}function cl(e){return'link[rel="stylesheet"]['+e+"]"}function ca(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function co(e){return'[src="'+e3(e)+'"]'}function ci(e){return"script[async]"+e}function cu(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+e3(n.href)+'"]');if(r)return t.instance=r,eR(r),r;var l=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return eR(r=(e.ownerDocument||e).createElement("style")),s$(r,"style",l),cs(r,n.precedence,e),t.instance=r;case"stylesheet":l=cr(n.href);var a=e.querySelector(cl(l));if(a)return t.state.loading|=4,t.instance=a,eR(a),a;r=ca(n),(l=s7.get(l))&&cc(r,l),eR(a=(e.ownerDocument||e).createElement("link"));var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),s$(a,"link",r),t.state.loading|=4,cs(a,n.precedence,e),t.instance=a;case"script":if(a=co(n.src),l=e.querySelector(ci(a)))return t.instance=l,eR(l),l;return r=n,(l=s7.get(a))&&cf(r=u({},n),l),eR(l=(e=e.ownerDocument||e).createElement("script")),s$(l,"link",r),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,cs(r,n.precedence,e));return t.instance}function cs(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,o=0;o<r.length;o++){var i=r[o];if(i.dataset.precedence===t)a=i;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function cc(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function cf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var cd=null;function cp(e,t,n){if(null===cd){var r=new Map,l=cd=new Map;l.set(n,r)}else(r=(l=cd).get(n))||(r=new Map,l.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[eN]||a[ew]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var o=a.getAttribute(t)||"";o=e+o;var i=r.get(o);i?i.push(a):r.set(o,[a])}}return r}function cm(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}var ch=null;function cg(){}function cy(){if(this.count--,0===this.count){if(this.stylesheets)cb(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cv=null;function cb(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cv=new Map,t.forEach(ck,e),cv=null,cy.call(e))}function ck(e,t){if(!(4&t.state.loading)){var n=cv.get(e);if(n)var r=n.get("last");else{n=new Map,cv.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var o=l[a];("link"===o.nodeName||"not all"!==o.getAttribute("media"))&&(n.set("p"+o.dataset.precedence,o),r=o)}r&&n.set("last",r)}o=(l=t.instance).getAttribute("data-precedence"),(a=n.get("p"+o)||r)===r&&n.set("last",l),n.set(o,l),this.count++,r=cy.bind(this),l.addEventListener("load",r),l.addEventListener("error",r),a?a.parentNode.insertBefore(l,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(l,e.firstChild),t.state.loading|=4}}var cw=o.Dispatcher;"undefined"!=typeof document&&(cw.current=ct);var cS="function"==typeof reportError?reportError:function(e){console.error(e)};function cC(e){this._internalRoot=e}function cE(e){this._internalRoot=e}function cx(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function cz(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function cP(){}function cN(e,t,n,r,l){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof l){var i=l;l=function(){var e=ix(o);i.call(e)}}iE(t,o,e,l)}else o=function(e,t,n,r,l){if(l){if("function"==typeof r){var a=r;r=function(){var e=ix(o);a.call(e)}}var o=iC(t,r,e,0,null,!1,!1,"",cP,null,null);return e._reactRootContainer=o,e[eC]=o.current,sz(8===e.nodeType?e.parentNode:e),oY(),o}if(s1(e),"function"==typeof r){var i=r;r=function(){var e=ix(u);i.call(e)}}var u=iw(e,0,!1,null,null,!1,!1,"",cP,null,null);return e._reactRootContainer=u,e[eC]=u.current,sz(8===e.nodeType?e.parentNode:e),oY(function(){iE(t,u,n,r)}),u}(n,t,e,l,r);return ix(o)}function c_(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}cE.prototype.render=cC.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));iE(e,t,null,null)},cE.prototype.unmount=cC.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;oY(function(){iE(null,e,null,null)}),t[eC]=null}},cE.prototype.unstable_scheduleHydration=function(e){if(e){var t=ey;e={blockedOn:null,target:e,priority:t};for(var n=0;n<uu.length&&0!==t&&t<uu[n].priority;n++);uu.splice(n,0,e),0===n&&ud(e)}};var cL=o.Dispatcher;o.Events=[eT,eF,eM,th,tg,oK];var cT={findFiberByHostInstance:eL,bundleType:0,version:"18.3.0-canary-60a927d04-20240113",rendererPackageName:"react-dom"},cF={bundleType:cT.bundleType,version:cT.version,rendererPackageName:cT.rendererPackageName,rendererConfig:cT.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tk(e))?null:e.stateNode},findFiberByHostInstance:cT.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-canary-60a927d04-20240113"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cM=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cM.isDisabled&&cM.supportsFiber)try{en=cM.inject(cF),er=cM}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!cx(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:v,key:null==r?null:""+r,children:e,containerInfo:t,implementation:null}}(e,t,null,n)},t.createRoot=function(e,t){if(!cx(e))throw Error(i(299));var n=!1,r="",l=cS,a=null;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&(a=t.unstable_transitionCallbacks)),t=iw(e,1,!1,null,null,n,!1,r,l,a,null),e[eC]=t.current,cw.current=ct,sz(8===e.nodeType?e.parentNode:e),new cC(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,e=Object.keys(e).join(",")))}return e=null===(e=tk(t))?null:e.stateNode},t.flushSync=function(e){return oY(e)},t.hydrate=function(e,t,n){if(!cz(t))throw Error(i(200));return cN(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!cx(e))throw Error(i(405));var r=!1,l="",a=cS,o=null,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&(o=n.unstable_transitionCallbacks),void 0!==n.formState&&(u=n.formState)),t=iC(t,null,e,1,null!=n?n:null,r,!1,l,a,o,u),e[eC]=t.current,cw.current=ct,sz(e),new cE(t)},t.preconnect=function(e,t){var n=cL.current;n&&"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,n.preconnect(e,t))},t.prefetchDNS=function(e){var t=cL.current;t&&"string"==typeof e&&t.prefetchDNS(e)},t.preinit=function(e,t){var n=cL.current;if(n&&"string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,l=c_(r,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?n.preinitStyle(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:o}):"script"===r&&n.preinitScript(e,{crossOrigin:l,integrity:a,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){var n=cL.current;if(n&&"string"==typeof e){if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=c_(t.as,t.crossOrigin);n.preinitModuleScript(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&n.preinitModuleScript(e)}},t.preload=function(e,t){var n=cL.current;if(n&&"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,l=c_(r,t.crossOrigin);n.preload(e,r,{crossOrigin:l,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0})}},t.preloadModule=function(e,t){var n=cL.current;if(n&&"string"==typeof e){if(t){var r=c_(t.as,t.crossOrigin);n.preloadModule(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else n.preloadModule(e)}},t.render=function(e,t,n){if(!cz(t))throw Error(i(200));return cN(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!cz(e))throw Error(i(40));return!!e._reactRootContainer&&(oY(function(){cN(null,null,e,!1,function(){e._reactRootContainer=null,e[eC]=null})}),!0)},t.unstable_batchedUpdates=oK,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cz(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return cN(e,t,n,!1,r)},t.useFormState=function(e,t,n){return c.current.useFormState(e,t,n)},t.useFormStatus=function(){return c.current.useHostTransitionStatus()},t.version="18.3.0-canary-60a927d04-20240113"}}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/997-22e52d7003e9633c.js b/apps/web/.next/static/chunks/997-22e52d7003e9633c.js new file mode 100644 index 00000000..0466cb47 --- /dev/null +++ b/apps/web/.next/static/chunks/997-22e52d7003e9633c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[997],{7025:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},6388:function(){"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]})},5380:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let n=r(2265),o=r(8707);function u(e,t){return(0,o.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)},1192:function(e,t){"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"14.1.0",appDir:!0},("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)},1378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let n=r(8950);async function o(e,t){let r=(0,n.getServerActionDispatcher)();if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3618:function(e,t,r){"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return C}});let u=r(907),l=r(5129),a=r(1674);r(6388);let i=u._(r(3930)),c=l._(r(6655)),s=r(9567),f=r(9188);r(8251);let d=u._(r(7226)),p=r(1378),h=r(2963),y=r(1927),_=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];(0,h.isNextRouterError)(t[0])||_.apply(window.console,t)},window.addEventListener("error",e=>{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=()=>{let{pathname:e,search:t}=location;return e+t},g=new TextEncoder,m=!1,P=!1,j=null;function R(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(g.encode(e[1])):n.push(e[1])}else 2===e[0]&&(j=e[1])}let O=function(){o&&!P&&(o.close(),P=!0,n=void 0),m=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O,!1):O();let S=self.__next_f=self.__next_f||[];S.forEach(R),S.push=R;let E=new Map;function w(e){let{cacheKey:t}=e;c.default.useEffect(()=>{E.delete(t)});let r=function(e){let t=E.get(e);if(t)return t;let r=new ReadableStream({start(e){n&&(n.forEach(t=>{e.enqueue(g.encode(t))}),m&&!P&&(e.close(),P=!0,n=void 0)),o=e}}),u=(0,s.createFromReadableStream)(r,{callServer:p.callServer});return E.set(e,u),u}(t);return(0,c.use)(r)}let M=c.default.StrictMode;function T(e){let{children:t}=e;return t}function x(e){return(0,a.jsx)(w,{...e,cacheKey:b()})}function C(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(M,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(T,{children:(0,a.jsx)(x,{})})})})}),r={onRecoverableError:d.default};"__next_error__"===document.documentElement.id?i.default.createRoot(v,r).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...r,formState:j}))}("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)},7220:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3333),(0,r(1192).appBootstrap)(()=>{let{hydrate:e}=r(3618);r(8950),r(2172),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)},3333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(7025);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return encodeURI(e(...r))}}("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)},7839:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(9115).createAsyncLocalStorage)();("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)},5930:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return l}});let n=r(6655),o=r(6859),u="next-route-announcer";function l(e){let{tree:t}=e,[r,l]=(0,n.useState)(null);(0,n.useEffect)(()=>(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),c=(0,n.useRef)();return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),r?(0,o.createPortal)(a,r):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)},3840:function(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,{RSC_HEADER:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_VARY_HEADER:function(){return i},FLIGHT_PARAMETERS:function(){return c},NEXT_RSC_UNION_QUERY:function(){return s},NEXT_DID_POSTPONE_HEADER:function(){return f}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=r+", "+o+", "+u+", "+l,c=[[r],[o],[u]],s="_rsc",f="x-nextjs-postponed";("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)},8950:function(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,{getServerActionDispatcher:function(){return O},urlToUrlWithoutFlightMarker:function(){return E},createEmptyCacheNode:function(){return T},default:function(){return A}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(8251),a=r(706),i=r(3274),c=r(6379),s=r(2705),f=r(5119),d=r(6250),p=r(4910),h=r(5380),y=r(5930),_=r(449),v=r(4674),b=r(4082),g=r(3840),m=r(2616),P=r(7685),j=new Map,R=null;function O(){return R}let S={};function E(e){let t=new URL(e,location.origin);return t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t}function w(e){return e.origin!==window.location.origin}function M(e){let{appRouterState:t,sync:r}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:n,canonicalUrl:o}=t,u={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};n.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),r(t)},[t,r]),null}function T(){return{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map}}function x(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function C(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,u.useDeferredValue)(r,o)}function N(e){let t,{buildId:r,initialHead:n,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,assetPrefix:O,missingSlots:E}=e,T=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:r,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:j,isServer:!1,location:window.location,initialHead:n}),[r,g,f,i,n]),[N,A,I]=(0,s.useReducerWithReduxDevtools)(T);(0,u.useEffect)(()=>{j=null},[]);let{canonicalUrl:k}=(0,s.useUnwrapState)(N),{searchParams:U,pathname:D}=(0,u.useMemo)(()=>{let e=new URL(k,window.location.href);return{searchParams:e.searchParams,pathname:(0,P.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[k]),F=(0,u.useCallback)((e,t,r)=>{(0,u.startTransition)(()=>{A({type:a.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r})})},[A]),L=(0,u.useCallback)((e,t,r)=>{let n=new URL((0,h.addBasePath)(e),location.href);return A({type:a.ACTION_NAVIGATE,url:n,isExternalUrl:w(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t})},[A]);R=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{A({...e,type:a.ACTION_SERVER_ACTION})})},[A]);let H=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let r=new URL((0,h.addBasePath)(e),window.location.href);w(r)||(0,u.startTransition)(()=>{var e;A({type:a.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;L(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;L(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,u.startTransition)(()=>{A({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[A,L]);(0,u.useEffect)(()=>{window.next&&(window.next.router=H)},[H]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&A({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[A]);let{pushRef:$}=(0,s.useUnwrapState)(N);if($.mpaNavigation){if(S.pendingMpaPath!==k){let e=window.location;$.pendingPush?e.assign(k):e.replace(k),S.pendingMpaPath=k}(0,u.use)((0,b.createInfinitePromise)())}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{let t=window.location.href;(0,u.startTransition)(()=>{A({type:a.ACTION_RESTORE,url:new URL(null!=e?e:t,t),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=x(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=x(e),o&&r(o)),t(e,n,o)};let n=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{A({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[A]);let{cache:B,tree:G,nextUrl:W,focusAndScrollRef:z}=(0,s.useUnwrapState)(N),K=(0,u.useMemo)(()=>(0,v.findHeadInCache)(B,G[1]),[B,G]);if(null!==K){let[e,r]=K;t=(0,o.jsx)(C,{headCacheNode:e},r)}else t=null;let V=(0,o.jsxs)(_.RedirectBoundary,{children:[t,B.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:G})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{appRouterState:(0,s.useUnwrapState)(N),sync:I}),(0,o.jsx)(c.PathnameContext.Provider,{value:D,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:U,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:F,tree:G,focusAndScrollRef:z,nextUrl:W},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:H,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:B.parallelRoutes,tree:G,url:k},children:V})})})})})]})}function A(e){let{globalErrorComponent:t,...r}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(N,{...r})})}("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)},5738:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(907),r(6655),("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)},5119:function(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,{ErrorBoundaryHandler:function(){return s},GlobalError:function(){return f},default:function(){return d},ErrorBoundary:function(){return p}});let n=r(907),o=r(1674),u=n._(r(6655)),l=r(2988),a=r(2963),i={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"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function c(e){let{error:t}=e;if("function"==typeof fetch.__nextGetStaticStore){var r;let e=null==(r=fetch.__nextGetStaticStore())?void 0:r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class s extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function f(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(c,{error:t}),(0,o.jsx)("div",{style:i.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:i.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:i.text,children:"Digest: "+r}):null]})})]})]})}let d=f;function p(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(s,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("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)},9907:function(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,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("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)},4082:function(e,t){"use strict";let r;function n(){return r||(r=new Promise(()=>{})),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{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)},2963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=r(2387),o=r(4502);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,n.isNotFoundError)(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)},2172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return O}});let n=r(907),o=r(5129),u=r(1674),l=o._(r(6655)),a=n._(r(6859)),i=r(8251),c=r(280),s=r(4082),f=r(5119),d=r(8741),p=r(2554),h=r(449),y=r(3398),_=r(8423),v=r(5713),b=["bottom","height","left","right","top","width","x","y"];function g(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class m extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var r;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,d.matchSegment)(t,e[r]))))return;let n=null,o=e.hashFragment;if(o&&(n="top"===o?document.body:null!=(r=document.getElementById(o))?r:document.getElementsByName(o)[0]),n||(n=a.default.findDOMNode(this)),!(n instanceof Element))return;for(;!(n instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return b.every(e=>0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){n.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!g(n,t)&&(e.scrollTop=0,g(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,n.focus()}}}}function P(e){let{segmentPath:t,children:r}=e,n=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,u.jsx)(m,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function j(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=n.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,parallelRoutes:new Map};v=e,n.set(f,e)}let b=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,g=(0,l.useDeferredValue)(v.rsc,b),m="object"==typeof g&&null!==g&&"function"==typeof g.then?(0,l.use)(g):g;if(!m){let e=v.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,u=2===t.length;if((0,d.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(u){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...o],_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(r,location.origin),t,p.nextUrl,h)}let[t,n]=(0,l.use)(e);v.lazyData=null,setTimeout(()=>{(0,l.startTransition)(()=>{y(_,t,n)})}),(0,l.use)((0,s.createInfinitePromise)())}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:r},children:m})}function R(e){let{children:t,loading:r,loadingStyles:n,loadingScripts:o,hasLoading:a}=e;return a?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[n,o,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function O(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,loading:d,loadingStyles:p,loadingScripts:b,hasLoading:g,template:m,notFound:O,notFoundStyles:S,styles:E}=e,w=(0,l.useContext)(i.LayoutRouterContext);if(!w)throw Error("invariant expected layout router to be mounted");let{childNodes:M,tree:T,url:x}=w,C=M.get(t);C||(C=new Map,M.set(t,C));let N=T[1][t][0],A=(0,_.getSegmentValue)(N),I=[N];return(0,u.jsxs)(u.Fragment,{children:[E,I.map(e=>{let l=(0,_.getSegmentValue)(e),E=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:r,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:n,errorStyles:o,errorScripts:a,children:(0,u.jsx)(R,{hasLoading:g,loading:d,loadingStyles:p,loadingScripts:b,children:(0,u.jsx)(y.NotFoundBoundary,{notFound:O,notFoundStyles:S,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:x,tree:T,childNodes:C,segmentPath:r,cacheKey:E,isActive:A===l})})})})})}),children:[c,s,m]},(0,v.createRouterCacheKey)(e,!0))})]})}("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)},8741:function(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,{matchSegment:function(){return o},canSegmentBeOverridden:function(){return u}});let n=r(5884),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("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)},2988:function(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,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return y},usePathname:function(){return _},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return c.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return b},useSelectedLayoutSegments:function(){return g},useSelectedLayoutSegment:function(){return m},redirect:function(){return s.redirect},permanentRedirect:function(){return s.permanentRedirect},RedirectType:function(){return s.RedirectType},notFound:function(){return f.notFound}});let n=r(6655),o=r(8251),u=r(6379),l=r(5738),a=r(8423),i=r(7970),c=r(7167),s=r(4502),f=r(2387),d=Symbol("internal for urlsearchparams readonly");function p(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw p()}delete(){throw p()}set(){throw p()}sort(){throw p()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function y(){(0,l.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(u.SearchParamsContext);return(0,n.useMemo)(()=>e?new h(e):null,[e])}function _(){return(0,l.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(u.PathnameContext)}function v(){(0,l.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function b(){(0,l.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(u.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(i.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function g(e){void 0===e&&(e="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let u;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)u=t[1][r];else{var l;let e=t[1];u=null!=(l=e.children)?l:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,a.getSegmentValue)(c);return!s||s.startsWith(i.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,r,!1,o))}(t,e)}function m(e){void 0===e&&(e="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=g(e);return 0===t.length?null:t[0]}("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)},3398:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(2988),a=r(2387);r(7720);let i=r(8251);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:r,asNotFound:n,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:r,asNotFound:n,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children: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)},2387:function(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,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("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)},8902:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let n=r(6190),o=r(5866);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),u=async()=>{try{n._(this,l)[l]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,l)[l]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:o,task:u}),n._(this,i)[i](),o}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,u)[u]=e,n._(this,l)[l]=0,n._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(n._(this,l)[l]<n._(this,u)[u]||e)&&n._(this,a)[a].length>0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("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)},449:function(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,{RedirectErrorBoundary:function(){return c},RedirectBoundary:function(){return s}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(2988),a=r(4502);function i(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{n===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,r=(0,l.useRouter)();return(0,o.jsx)(c,{router: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)},7523:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("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)},4502:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return c},redirect:function(){return s},permanentRedirect:function(){return f},isRedirectError:function(){return d},getURLFromRedirectError:function(){return p},getRedirectTypeFromError:function(){return h},getRedirectStatusCodeFromError:function(){return y}});let u=r(2907),l=r(7839),a=r(7523),i="NEXT_REDIRECT";function c(e,t,r){void 0===r&&(r=a.RedirectStatusCode.TemporaryRedirect);let n=Error(i);n.digest=i+";"+t+";"+e+";"+r+";";let o=u.requestAsyncStorage.getStore();return o&&(n.mutableCookies=o.mutableCookies),n}function s(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=n||(n={})).push="push",o.replace="replace",("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)},2533:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(8251);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children: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)},2907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(9115).createAsyncLocalStorage)();("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)},3961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let n=r(9740),o=r(8648);function u(e,t,r,u){void 0===u&&(u=!1);let[l,a,i]=r.slice(-3);if(null===a)return!1;if(3===r.length){let r=a[2];t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,r,u);return!0}("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)},5634:function(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,{applyRouterStatePatchToFullTree:function(){return a},applyRouterStatePatchToTreeSkipDefault:function(){return i}});let n=r(7970),o=r(8741);function u(e,t,r){void 0===r&&(r=!1);let[l,a]=e,[i,c]=t;if(!r&&i===n.DEFAULT_SEGMENT_KEY&&l!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(l,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=u(a[e],c[e],r):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let n=[l,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}function l(e,t,r,n){let a;void 0===n&&(n=!1);let[i,c,,,s]=t;if(1===e.length)return u(t,r,n);let[f,d]=e;if(!(0,o.matchSegment)(f,i))return null;if(2===e.length)a=u(c[d],r,n);else if(null===(a=l(e.slice(2),c[d],r,n)))return null;let p=[e[0],{...c,[d]:a}];return s&&(p[4]=!0),p}function a(e,t,r){return l(e,t,r,!0)}function i(e,t,r){return l(e,t,r,!1)}("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)},5038:function(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,{extractPathFromFlightRouterState:function(){return c},computeChangedPath:function(){return s}});let n=r(7954),o=r(7970),u=r(8741),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[r],l=null!=(t=e[1])?t:{},a=l.children?c(l.children):void 0;if(void 0!==a)u.push(a);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let r=c(t);void 0!==r&&u.push(r)}return i(u)}function s(e,t){let r=function e(t,r){let[o,l]=t,[i,s]=r,f=a(o),d=a(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(r))?p:""}for(let t in l)if(s[t]){let r=e(l[t],s[t]);if(null!==r)return a(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("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)},3274:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("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)},6250:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return l}});let n=r(3274),o=r(9740),u=r(5038);function l(e){var t;let{buildId:r,initialTree:l,initialSeedData:a,initialCanonicalUrl:i,initialParallelRoutes:c,isServer:s,location:f,initialHead:d}=e,p={lazyData:null,rsc:a[2],prefetchRsc:null,parallelRoutes:s?new Map:c};return(null===c||0===c.size)&&(0,o.fillLazyItemsTillLeafWithHead)(p,void 0,l,a,d),{buildId:r,tree:l,cache:p,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:f?(0,n.createHrefFromUrl)(f):i,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(l)||(null==f?void 0:f.pathname))?t: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)},5713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(7970);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?(e[0]+"|"+e[1]+"|"+e[2]).toLowerCase():t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY: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)},280:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let n=r(3840),o=r(8950),u=r(1378),l=r(706),a=r(651),{createFromFetch:i}=r(9567);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function s(e,t,r,s,f){let d={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),r&&(d[n.NEXT_URL]=r);let p=(0,a.hexHash)([d[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[n.NEXT_ROUTER_STATE_TREE],d[n.NEXT_URL]].join(","));try{let t=new URL(e);t.searchParams.set(n.NEXT_RSC_UNION_QUERY,p);let r=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(r.url),a=r.redirected?l:void 0,f=r.headers.get("content-type")||"",h=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER);if(f!==n.RSC_CONTENT_TYPE_HEADER||!r.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[y,_]=await i(Promise.resolve(r),{callServer:u.callServer});if(s!==y)return c(r.url);return[_,a,h]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0]}}("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)},2965:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,r,o,u){let l=o.length<=2,[a,i]=o,c=(0,n.createRouterCacheKey)(i),s=r.parallelRoutes.get(a),f=t.parallelRoutes.get(a);f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f));let d=null==s?void 0:s.get(c),p=f.get(c);if(l){p&&p.lazyData&&p!==d||f.set(c,{lazyData:u(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}if(!p||!d){p||f.set(c,{lazyData:u(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,parallelRoutes:new Map(p.parallelRoutes)},f.set(c,p)),e(p,d,o.slice(2),u)}}});let n=r(5713);("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)},8648:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,r,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=r.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,parallelRoutes:h?new Map(h.parallelRoutes):new Map},h&&(0,n.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,parallelRoutes:new Map(y.parallelRoutes)},p.set(f,y)),e(y,h,l.slice(2),a))}}});let n=r(436),o=r(9740),u=r(5713);("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)},9740:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,u,l,a){if(0===Object.keys(o[1]).length){t.head=l;return}for(let i in o[1]){let c;let s=o[1][i],f=s[0],d=(0,n.createRouterCacheKey)(f),p=null!==u&&void 0!==u[1][i]?u[1][i]:null;if(r){let n=r.parallelRoutes.get(i);if(n){let r,o=new Map(n),u=o.get(d);r=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map(null==u?void 0:u.parallelRoutes)}:a&&u?{lazyData:u.lazyData,rsc:u.rsc,prefetchRsc:u.prefetchRsc,parallelRoutes:new Map(u.parallelRoutes)}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map(null==u?void 0:u.parallelRoutes)},o.set(d,r),e(r,u,s,p||null,l,a),t.parallelRoutes.set(i,o);continue}}c=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map};let h=t.parallelRoutes.get(i);h?h.set(d,c):t.parallelRoutes.set(i,new Map([[d,c]])),e(c,void 0,s,p,l,a)}}}});let n=r(5713);("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)},807:function(e,t){"use strict";var r,n;function o(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+3e4?n?"reusable":"fresh":"auto"===t&&Date.now()<r+3e5?"stale":"full"===t&&Date.now()<r+3e5?"reusable":"expired"}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchCacheEntryStatus:function(){return r},getPrefetchEntryCacheStatus:function(){return o}}),(n=r||(r={})).fresh="fresh",n.reusable="reusable",n.expired="expired",n.stale="stale",("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)},7089:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let n=r(5038);function o(e){return void 0!==e}function u(e,t){var r,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?i=r:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(r=t.canonicalUrl)?void 0:r.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8682:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let n=r(8854);function o(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("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)},8039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,o){let u=o.length<=2,[l,a]=o,i=(0,n.createRouterCacheKey)(a),c=r.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,parallelRoutes:new Map(d.parallelRoutes)},s.set(i,d)),e(d,f,o.slice(2)))}}});let n=r(5713);("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)},436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let n=r(5713);function o(e,t,r){for(let o in r[1]){let u=r[1][o][0],l=(0,n.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,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)},9236:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],o=r[0];if(Array.isArray(n)&&Array.isArray(o)){if(n[0]!==o[0]||n[2]!==o[2])return!0}else if(n!==o)return!0;if(t[4])return!r[4];if(r[4])return!0;let u=Object.values(t[1])[0],l=Object.values(r[1])[0];return!u||!l||e(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)},2198:function(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,{updateCacheNodeOnNavigation:function(){return function e(t,r,a,c,s,f){let d=r[1],p=a[1],h=c[1],y=t.parallelRoutes,_=new Map(y),v={},b=null;for(let t in p){let r;let a=p[t],c=d[t],g=y.get(t),m=h[t],P=a[0],j=(0,u.createRouterCacheKey)(P),R=void 0!==c?c[0]:void 0,O=void 0!==g?g.get(j):void 0;if(null!==(r=P===n.PAGE_SEGMENT_KEY?l(a,void 0!==m?m:null,s,f):P===n.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==m?m:null,s,f):void 0!==R&&(0,o.matchSegment)(P,R)&&void 0!==O&&void 0!==c?null!=m?e(O,c,a,m,s,f):function(e){let t=i(e,null,null,!1);return{route:e,node:t,children:null}}(a):l(a,void 0!==m?m:null,s,f))){null===b&&(b=new Map),b.set(t,r);let e=r.node;if(null!==e){let r=new Map(g);r.set(j,e),_.set(t,r)}v[t]=r.route}else v[t]=a}if(null===b)return null;let g={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,parallelRoutes:_};return{route:function(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}(a,v),node:g,children:b}}},listenForDynamicRequest:function(){return a},abortTask:function(){return c},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,l=new Map(o);for(let t in n){let r=n[t],a=r[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let n=c.get(i);if(void 0!==n){let o=e(n,r),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,parallelRoutes:l}}}});let n=r(7970),o=r(8741),u=r(5713);function l(e,t,r,n){let o=i(e,t,r,n);return{route:e,node:o,children:null}}function a(e,t){t.then(t=>{for(let r of t[0]){let t=r.slice(0,-3),n=r[r.length-3],l=r[r.length-2],a=r[r.length-1];"string"!=typeof t&&function(e,t,r,n,l){let a=e;for(let e=0;e<t.length;e+=2){let r=t[e],n=t[e+1],u=a.children;if(null!==u){let e=u.get(r);if(void 0!==e){let t=e.route[0];if((0,o.matchSegment)(n,t)){a=e;continue}}}return}!function e(t,r,n,l){let a=t.children,i=t.node;if(null===a){null!==i&&(function e(t,r,n,l,a){let i=r[1],c=n[1],f=l[1],p=t.parallelRoutes;for(let t in i){let r=i[t],n=c[t],l=f[t],d=p.get(t),h=r[0],y=(0,u.createRouterCacheKey)(h),_=void 0!==d?d.get(y):void 0;void 0!==_&&(void 0!==n&&(0,o.matchSegment)(h,n[0])&&null!=l?e(_,r,n,l,a):s(r,_,null))}let h=t.rsc,y=l[2];null===h?t.rsc=y:d(h)&&h.resolve(y);let _=t.head;d(_)&&_.resolve(a)}(i,t.route,r,n,l),t.node=null);return}let c=r[1],f=n[1];for(let t in r){let r=c[t],n=f[t],u=a.get(t);if(void 0!==u){let t=u.route[0];if((0,o.matchSegment)(r[0],t)&&null!=n)return e(u,r,n,l)}}}(a,r,n,l)}(e,t,n,l,a)}c(e,null)},t=>{c(e,t)})}function i(e,t,r,n){let o=e[1],l=null!==t?t[1]:null,a=new Map;for(let e in o){let t=o[e],c=null!==l?l[e]:null,s=t[0],f=(0,u.createRouterCacheKey)(s),d=i(t,void 0===c?null:c,r,n),p=new Map;p.set(f,d),a.set(e,p)}let c=0===a.size,s=null!==t?t[2]:null;return{lazyData:null,parallelRoutes:a,prefetchRsc:n||void 0===s?null:s,prefetchHead:!n&&c?r:null,rsc:p(),head:c?p():null}}function c(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)s(e.route,r,t);else for(let e of n.values())c(e,t);e.node=null}function s(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,r)}let l=t.rsc;d(l)&&(null===r?l.resolve(null):l.reject(r));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=f,r}("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)},9633:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPrefetchCacheKey",{enumerable:!0,get:function(){return l}});let n=r(2265),o=r(7302),u=r(3274);function l(e,t){let r=(0,u.createHrefFromUrl)(e,!1);return t&&!(0,o.pathHasPrefix)(r,t)?(0,n.addPathPrefix)(r,""+t+"%"):r}("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)},712:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fastRefreshReducer",{enumerable:!0,get:function(){return n}}),r(280),r(3274),r(5634),r(9236),r(8854),r(7089),r(3961),r(8950),r(8682);let n=function(e,t){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)},4674:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(5713);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let u in r){let[l,a]=r[u],i=t.parallelRoutes.get(u);if(!i)continue;let c=(0,n.createRouterCacheKey)(l),s=i.get(c);if(!s)continue;let f=e(s,a,o+"/"+c);if(f)return f}return null}(e,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)},8423:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("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)},8854:function(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,{handleExternalUrl:function(){return g},navigateReducer:function(){return P}});let n=r(280),o=r(3274),u=r(8039),l=r(2965),a=r(5634),i=r(3686),c=r(9236),s=r(706),f=r(7089),d=r(3961),p=r(807),h=r(8322),y=r(1831),_=r(8950),v=r(7970);r(2198);let b=r(9633);function g(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,f.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}let P=function(e,t){let{url:r,isExternalUrl:P,navigateType:j,shouldScroll:R}=t,O={},{hash:S}=r,E=(0,o.createHrefFromUrl)(r),w="push"===j;if((0,h.prunePrefetchCache)(e.prefetchCache),O.preserveCustomHistoryState=!1,P)return g(e,O,r.toString(),w);let M=(0,b.createPrefetchCacheKey)(r,e.nextUrl),T=e.prefetchCache.get(M);if(!T){let t={data:(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,void 0),kind:s.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:null};e.prefetchCache.set(M,t),T=t}let x=(0,p.getPrefetchEntryCacheStatus)(T),{treeAtTimeOfPrefetch:C,data:N}=T;return y.prefetchQueue.bump(N),N.then(t=>{let[s,h,y]=t;if(T&&!T.lastUsedTime&&(T.lastUsedTime=Date.now()),"string"==typeof s)return g(e,O,s,w);let b=e.tree,P=e.cache,j=[];for(let t of s){let o=t.slice(0,-4),s=t.slice(-3)[0],f=["",...o],h=(0,a.applyRouterStatePatchToTreeSkipDefault)(f,b,s);if(null===h&&(h=(0,a.applyRouterStatePatchToTreeSkipDefault)(f,C,s)),null!==h){if((0,c.isNavigatingToNewRootLayout)(b,h))return g(e,O,E,w);let a=(0,_.createEmptyCacheNode)(),R=(0,d.applyFlightData)(P,a,t,(null==T?void 0:T.kind)==="auto"&&x===p.PrefetchCacheEntryStatus.reusable);for(let t of((!R&&x===p.PrefetchCacheEntryStatus.stale||y)&&(R=function(e,t,r,n,o){let u=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,l.fillCacheWithDataProperty)(e,t,a,o),u=!0;return u}(a,P,o,s,()=>(0,n.fetchServerResponse)(r,b,e.nextUrl,e.buildId))),(0,i.shouldHardNavigate)(f,b)?(a.rsc=P.rsc,a.prefetchRsc=P.prefetchRsc,(0,u.invalidateCacheBelowFlightSegmentPath)(a,P,o),O.cache=a):R&&(O.cache=a),P=a,b=h,m(s))){let e=[...o,...t];e[e.length-1]!==v.DEFAULT_SEGMENT_KEY&&j.push(e)}}}return O.patchedTree=b,O.canonicalUrl=h?(0,o.createHrefFromUrl)(h):E,O.pendingPush=w,O.scrollableSegments=j,O.hashFragment=S,O.shouldScroll=R,(0,f.handleMutable)(e,O)},()=>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)},1831:function(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,{prefetchQueue:function(){return c},prefetchReducer:function(){return s}});let n=r(280),o=r(706),u=r(8322),l=r(3840),a=r(8902),i=r(9633),c=new a.PromiseQueue(5);function s(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(l.NEXT_RSC_UNION_QUERY);let a=(0,i.createPrefetchCacheKey)(r,e.nextUrl),s=e.prefetchCache.get(a);if(s&&(s.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(a,{...s,kind:t.kind}),!(s.kind===o.PrefetchKind.AUTO&&t.kind===o.PrefetchKind.FULL)))return e;let f=c.enqueue(()=>(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,t.kind));return e.prefetchCache.set(a,{treeAtTimeOfPrefetch:e.tree,data:f,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),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)},8322:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return o}});let n=r(807);function o(e){for(let[t,r]of e)(0,n.getPrefetchEntryCacheStatus)(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(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)},865:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return d}});let n=r(280),o=r(3274),u=r(5634),l=r(9236),a=r(8854),i=r(7089),c=r(9740),s=r(8950),f=r(8682);function d(e,t){let{origin:r}=t,d={},p=e.canonicalUrl,h=e.tree;d.preserveCustomHistoryState=!1;let y=(0,s.createEmptyCacheNode)();return y.lazyData=(0,n.fetchServerResponse)(new URL(p,r),[h[0],h[1],h[2],"refetch"],e.nextUrl,e.buildId),y.lazyData.then(r=>{let[n,s]=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,d,n,e.pushRef.pendingPush);for(let r of(y.lazyData=null,n)){if(3!==r.length)return console.log("REFRESH FAILED"),e;let[n]=r,i=(0,u.applyRouterStatePatchToFullTree)([""],h,n);if(null===i)return(0,f.handleSegmentMismatch)(e,t,n);if((0,l.isNavigatingToNewRootLayout)(h,i))return(0,a.handleExternalUrl)(e,d,p,e.pushRef.pendingPush);let _=s?(0,o.createHrefFromUrl)(s):void 0;s&&(d.canonicalUrl=_);let[v,b]=r.slice(-2);if(null!==v){let e=v[2];y.rsc=e,y.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(y,void 0,n,v,b),d.cache=y,d.prefetchCache=new Map}d.patchedTree=i,d.canonicalUrl=p,h=i}return(0,i.handleMutable)(e,d)},()=>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)},7286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let n=r(3274),o=r(5038);function u(e,t){var r;let{url:u,tree:l}=t,a=(0,n.createHrefFromUrl)(u),i=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:i,prefetchCache:e.prefetchCache,tree:l,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(l))?r:u.pathname}}r(2198),("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)},8756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return b}});let n=r(1378),o=r(3840),u=r(5380),l=r(3274),a=r(8854),i=r(5634),c=r(9236),s=r(7089),f=r(9740),d=r(8950),p=r(5038),h=r(8682),{createFromFetch:y,encodeReply:_}=r(9567);async function v(e,t){let r,{actionId:l,actionArgs:a}=t,i=await _(a),c=(0,p.extractPathFromFlightRouterState)(e.tree),s=e.nextUrl&&e.nextUrl!==c,f=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:l,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...s?{[o.NEXT_URL]:e.nextUrl}:{}},body:i}),d=f.headers.get("x-action-redirect");try{let e=JSON.parse(f.headers.get("x-action-revalidated")||"[[],0,0]");r={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){r={paths:[],tag:!1,cookie:!1}}let h=d?new URL((0,u.addBasePath)(d),new URL(e.canonicalUrl,window.location.href)):void 0;if(f.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await y(Promise.resolve(f),{callServer:n.callServer});if(d){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:h,revalidatedParts:r}}let[t,[,o]]=null!=e?e:[];return{actionResult:t,actionFlightData:o,redirectLocation:h,revalidatedParts:r}}return{redirectLocation:h,revalidatedParts:r}}function b(e,t){let{resolve:r,reject:n}=t,o={},u=e.canonicalUrl,p=e.tree;return o.preserveCustomHistoryState=!1,o.inFlightServerAction=v(e,t),o.inFlightServerAction.then(n=>{let{actionResult:y,actionFlightData:_,redirectLocation:v}=n;if(v&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!_)return(o.actionResultResolved||(r(y),o.actionResultResolved=!0),v)?(0,a.handleExternalUrl)(e,o,v.href,e.pushRef.pendingPush):e;if("string"==typeof _)return(0,a.handleExternalUrl)(e,o,_,e.pushRef.pendingPush);for(let r of(o.inFlightServerAction=null,_)){if(3!==r.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[n]=r,l=(0,i.applyRouterStatePatchToFullTree)([""],p,n);if(null===l)return(0,h.handleSegmentMismatch)(e,t,n);if((0,c.isNavigatingToNewRootLayout)(p,l))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[s,y]=r.slice(-2),_=null!==s?s[2]:null;if(null!==_){let e=(0,d.createEmptyCacheNode)();e.rsc=_,e.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(e,void 0,n,s,y),o.cache=e,o.prefetchCache=new Map}o.patchedTree=l,o.canonicalUrl=u,p=l}if(v){let e=(0,l.createHrefFromUrl)(v,!1);o.canonicalUrl=e}return o.actionResultResolved||(r(y),o.actionResultResolved=!0),(0,s.handleMutable)(e,o)},t=>{if("rejected"===t.status)return o.actionResultResolved||(n(t.reason),o.actionResultResolved=!0),e;throw 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)},3789:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let n=r(3274),o=r(5634),u=r(9236),l=r(8854),a=r(3961),i=r(7089),c=r(8950),s=r(8682);function f(e,t){let{flightData:r,overrideCanonicalUrl:f}=t,d={};if(d.preserveCustomHistoryState=!1,"string"==typeof r)return(0,l.handleExternalUrl)(e,d,r,e.pushRef.pendingPush);let p=e.tree,h=e.cache;for(let i of r){let r=i.slice(0,-4),[y]=i.slice(-3,-2),_=(0,o.applyRouterStatePatchToTreeSkipDefault)(["",...r],p,y);if(null===_)return(0,s.handleSegmentMismatch)(e,t,y);if((0,u.isNavigatingToNewRootLayout)(p,_))return(0,l.handleExternalUrl)(e,d,e.canonicalUrl,e.pushRef.pendingPush);let v=f?(0,n.createHrefFromUrl)(f):void 0;v&&(d.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(h,b,i),d.patchedTree=_,d.cache=b,h=b,p=_}return(0,i.handleMutable)(e,d)}("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)},706:function(e,t){"use strict";var r,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,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return f}});let o="refresh",u="navigate",l="restore",a="server-patch",i="prefetch",c="fast-refresh",s="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("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)},6214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(706),o=r(8854),u=r(3789),l=r(7286),a=r(865),i=r(1831),c=r(712),s=r(8756),f=function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case n.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("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)},3686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,u]=r,[l,a]=t;return(0,n.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let n=r(8741);("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)},9031:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(7103);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+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)},8414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(9115).createAsyncLocalStorage)();("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)},7103:function(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,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return c}});let n=r(9907),o=r(8414),u="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=u}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===u}function i(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let c=(e,t)=>{let{dynamic:r,link:u}=void 0===t?{}:t,a=o.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new l(i(e,{link:u,dynamic:null!=r?r:"error"}));let c=i(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(c);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("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)},9256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}}),r(907);let n=r(1674);r(6655);let o=r(9031);function u(e){let{Component:t,propsForComponent:r,isStaticGeneration:u}=e;if(u){let e=(0,o.createSearchParamsBailoutProxy)();return(0,n.jsx)(t,{searchParams:e,...r})}return(0,n.jsx)(t,{...r})}("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)},2705:function(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,{useUnwrapState:function(){return a},useReducerWithReduxDevtools:function(){return i}});let n=r(5129)._(r(6655)),o=r(706),u=r(1927);function l(e){if(e instanceof Map){let t={};for(let[r,n]of e.entries()){if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n._bundlerConfig){t[r]="FlightData";continue}}t[r]=l(n)}return t}if("object"==typeof e&&null!==e){let t={};for(let r in e){let n=e[r];if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n.hasOwnProperty("_bundlerConfig")){t[r]="FlightData";continue}}t[r]=l(n)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}let i=function(e){let[t,r]=n.default.useState(e),o=(0,n.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,n.useRef)(),i=(0,n.useRef)();return(0,n.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,n.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,r)},[o,e]),(0,n.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(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)},7685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(7302);function o(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)},8707:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=r(969),o=r(3465),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+u};("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)},7226:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(9006);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2616:function(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(7685),("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)},3930:function(e,t,r){"use strict";var n=r(6859);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},6859:function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(4513)},3523:function(e,t,r){"use strict";var n=r(6859),o=r(6655),u={stream:!0},l=new Map;function a(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function i(){}var c=new Map,s=r.u;r.u=function(e){var t=c.get(e);return void 0!==t?t:s(e)};var f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,d=Symbol.for("react.element"),p=Symbol.for("react.provider"),h=Symbol.for("react.server_context"),y=Symbol.for("react.lazy"),_=Symbol.for("react.default_value"),v=Symbol.iterator,b=Array.isArray,g=Object.getPrototypeOf,m=Object.prototype,P=new WeakMap,j=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function R(e,t,r,n){this.status=e,this.value=t,this.reason=r,this._response=n}function O(e){switch(e.status){case"resolved_model":C(e);break;case"resolved_module":N(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function S(e,t){for(var r=0;r<e.length;r++)(0,e[r])(t)}function E(e,t,r){switch(e.status){case"fulfilled":S(t,e.value);break;case"pending":case"blocked":case"cyclic":e.value=t,e.reason=r;break;case"rejected":r&&S(r,e.reason)}}function w(e,t){if("pending"===e.status||"blocked"===e.status){var r=e.reason;e.status="rejected",e.reason=t,null!==r&&S(r,t)}}function M(e,t){if("pending"===e.status||"blocked"===e.status){var r=e.value,n=e.reason;e.status="resolved_module",e.value=t,null!==r&&(N(e),E(e,r,n))}}R.prototype=Object.create(Promise.prototype),R.prototype.then=function(e,t){switch(this.status){case"resolved_model":C(this);break;case"resolved_module":N(this)}switch(this.status){case"fulfilled":e(this.value);break;case"pending":case"blocked":case"cyclic":e&&(null===this.value&&(this.value=[]),this.value.push(e)),t&&(null===this.reason&&(this.reason=[]),this.reason.push(t));break;default:t(this.reason)}};var T=null,x=null;function C(e){var t=T,r=x;T=e,x=null;var n=e.value;e.status="cyclic",e.value=null,e.reason=null;try{var o=JSON.parse(n,e._response._fromJSON);if(null!==x&&0<x.deps)x.value=o,e.status="blocked",e.value=null,e.reason=null;else{var u=e.value;e.status="fulfilled",e.value=o,null!==u&&S(u,o)}}catch(t){e.status="rejected",e.reason=t}finally{T=t,x=r}}function N(e){try{var t=e.value,n=r(t[0]);if(4===t.length&&"function"==typeof n.then){if("fulfilled"===n.status)n=n.value;else throw n.reason}var o="*"===t[2]?n:""===t[2]?n.__esModule?n.default:n:n[t[2]];e.status="fulfilled",e.value=o}catch(t){e.status="rejected",e.reason=t}}function A(e,t){e._chunks.forEach(function(e){"pending"===e.status&&w(e,t)})}function I(e,t){var r=e._chunks,n=r.get(t);return n||(n=new R("pending",null,null,e),r.set(t,n)),n}function k(e,t){if("resolved_model"===(e=I(e,t)).status&&C(e),"fulfilled"===e.status)return e.value;throw e.reason}function U(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.')}function D(e,t,r,n){var o;return(e={_bundlerConfig:e,_moduleLoading:t,_callServer:void 0!==r?r:U,_nonce:n,_chunks:new Map,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]})._fromJSON=(o=e,function(e,t){return"string"==typeof t?function(e,t,r,n){if("$"===n[0]){if("$"===n)return d;switch(n[1]){case"$":return n.slice(1);case"L":return{$$typeof:y,_payload:e=I(e,t=parseInt(n.slice(2),16)),_init:O};case"@":return I(e,t=parseInt(n.slice(2),16));case"S":return Symbol.for(n.slice(2));case"P":return j[e=n.slice(2)]||((t={$$typeof:h,_currentValue:_,_currentValue2:_,_defaultValue:_,_threadCount:0,Provider:null,Consumer:null,_globalName:e}).Provider={$$typeof:p,_context:t},j[e]=t),j[e].Provider;case"F":return t=k(e,t=parseInt(n.slice(2),16)),function(e,t){function r(){var e=Array.prototype.slice.call(arguments),r=t.bound;return r?"fulfilled"===r.status?n(t.id,r.value.concat(e)):Promise.resolve(r).then(function(r){return n(t.id,r.concat(e))}):n(t.id,e)}var n=e._callServer;return P.set(r,t),r}(e,t);case"Q":return e=k(e,t=parseInt(n.slice(2),16)),new Map(e);case"W":return e=k(e,t=parseInt(n.slice(2),16)),new Set(e);case"I":return 1/0;case"-":return"$-0"===n?-0:-1/0;case"N":return NaN;case"u":return;case"D":return new Date(Date.parse(n.slice(2)));case"n":return BigInt(n.slice(2));default:switch((e=I(e,n=parseInt(n.slice(1),16))).status){case"resolved_model":C(e);break;case"resolved_module":N(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":var o;return n=T,e.then(function(e,t,r,n){if(x){var o=x;n||o.deps++}else o=x={deps:n?0:1,value:null};return function(n){t[r]=n,o.deps--,0===o.deps&&"blocked"===e.status&&(n=e.value,e.status="fulfilled",e.value=o.value,null!==n&&S(n,o.value))}}(n,t,r,"cyclic"===e.status),(o=n,function(e){return w(o,e)})),null;default:throw e.reason}}}return n}(o,this,e,t):"object"==typeof t&&null!==t?e=t[0]===d?{$$typeof:d,type:t[1],key:t[2],ref:null,props:t[3],_owner:null}:t:t}),e}function F(e,t){function n(t){A(e,t)}var o=t.getReader();o.read().then(function t(s){var d=s.value;if(s.done)A(e,Error("Connection closed."));else{var p=0,h=e._rowState,y=e._rowID,_=e._rowTag,v=e._rowLength;s=e._buffer;for(var b=d.length;p<b;){var g=-1;switch(h){case 0:58===(g=d[p++])?h=1:y=y<<4|(96<g?g-87:g-48);continue;case 1:84===(h=d[p])?(_=h,h=2,p++):64<h&&91>h?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(g=d[p++])?h=4:v=v<<4|(96<g?g-87:g-48);continue;case 3:g=d.indexOf(10,p);break;case 4:(g=p+v)>d.length&&(g=-1)}var m=d.byteOffset+p;if(-1<g){p=new Uint8Array(d.buffer,m,g-p),v=e,m=_;var P=v._stringDecoder;_="";for(var j=0;j<s.length;j++)_+=P.decode(s[j],u);switch(_+=P.decode(p),m){case 73:!function(e,t,n){var o=e._chunks,u=o.get(t);n=JSON.parse(n,e._fromJSON);var s=function(e,t){if(e){var r=e[t[0]];if(e=r[t[2]])r=e.name;else{if(!(e=r["*"]))throw Error('Could not find the module "'+t[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');r=t[2]}return 4===t.length?[e.id,e.chunks,r,1]:[e.id,e.chunks,r]}return t}(e._bundlerConfig,n);if(n=function(e){for(var t=e[1],n=[],o=0;o<t.length;){var u=t[o++],s=t[o++],f=l.get(u);void 0===f?(c.set(u,s),s=r.e(u),n.push(s),f=l.set.bind(l,u,null),s.then(f,i),l.set(u,s)):null!==f&&n.push(f)}return 4===e.length?0===n.length?a(e[0]):Promise.all(n).then(function(){return a(e[0])}):0<n.length?Promise.all(n):null}(s)){if(u){var f=u;f.status="blocked"}else f=new R("blocked",null,null,e),o.set(t,f);n.then(function(){return M(f,s)},function(e){return w(f,e)})}else u?M(u,s):o.set(t,new R("resolved_module",s,null,e))}(v,y,_);break;case 72:if(y=_[0],v=JSON.parse(_=_.slice(1),v._fromJSON),_=f.current)switch(y){case"D":_.prefetchDNS(v);break;case"C":"string"==typeof v?_.preconnect(v):_.preconnect(v[0],v[1]);break;case"L":y=v[0],p=v[1],3===v.length?_.preload(y,p,v[2]):_.preload(y,p);break;case"m":"string"==typeof v?_.preloadModule(v):_.preloadModule(v[0],v[1]);break;case"S":"string"==typeof v?_.preinitStyle(v):_.preinitStyle(v[0],0===v[1]?void 0:v[1],3===v.length?v[2]:void 0);break;case"X":"string"==typeof v?_.preinitScript(v):_.preinitScript(v[0],v[1]);break;case"M":"string"==typeof v?_.preinitModuleScript(v):_.preinitModuleScript(v[0],v[1])}break;case 69:p=(_=JSON.parse(_)).digest,(_=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.")).stack="Error: "+_.message,_.digest=p,(m=(p=v._chunks).get(y))?w(m,_):p.set(y,new R("rejected",null,_,v));break;case 84:v._chunks.set(y,new R("fulfilled",_,null,v));break;default:(m=(p=v._chunks).get(y))?(v=m,y=_,"pending"===v.status&&(_=v.value,p=v.reason,v.status="resolved_model",v.value=y,null!==_&&(C(v),E(v,_,p)))):p.set(y,new R("resolved_model",_,null,v))}p=g,3===h&&p++,v=y=_=h=0,s.length=0}else{d=new Uint8Array(d.buffer,m,d.byteLength-p),s.push(d),v-=d.byteLength;break}}return e._rowState=h,e._rowID=y,e._rowTag=_,e._rowLength=v,o.read().then(t).catch(n)}}).catch(n)}t.createFromFetch=function(e,t){var r=D(null,null,t&&t.callServer?t.callServer:void 0,void 0);return e.then(function(e){F(r,e.body)},function(e){A(r,e)}),I(r,0)},t.createFromReadableStream=function(e,t){return F(t=D(null,null,t&&t.callServer?t.callServer:void 0,void 0),e),I(t,0)},t.createServerReference=function(e,t){function r(){var r=Array.prototype.slice.call(arguments);return t(e,r)}return P.set(r,{id:e,bound:null}),r},t.encodeReply=function(e){return new Promise(function(t,r){var n,o,u,l;o=1,u=0,l=null,n=JSON.stringify(n=e,function e(n,a){if(null===a)return null;if("object"==typeof a){if("function"==typeof a.then){null===l&&(l=new FormData),u++;var i,c,s=o++;return a.then(function(r){r=JSON.stringify(r,e);var n=l;n.append(""+s,r),0==--u&&t(n)},function(e){r(e)}),"$@"+s.toString(16)}if(b(a))return a;if(a instanceof FormData){null===l&&(l=new FormData);var f=l,d=""+(n=o++)+"_";return a.forEach(function(e,t){f.append(d+t,e)}),"$K"+n.toString(16)}if(a instanceof Map)return a=JSON.stringify(Array.from(a),e),null===l&&(l=new FormData),n=o++,l.append(""+n,a),"$Q"+n.toString(16);if(a instanceof Set)return a=JSON.stringify(Array.from(a),e),null===l&&(l=new FormData),n=o++,l.append(""+n,a),"$W"+n.toString(16);if(null===(c=a)||"object"!=typeof c?null:"function"==typeof(c=v&&c[v]||c["@@iterator"])?c:null)return Array.from(a);if((n=g(a))!==m&&(null===n||null!==g(n)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return a}if("string"==typeof a)return"Z"===a[a.length-1]&&this[n]instanceof Date?"$D"+a:a="$"===a[0]?"$"+a:a;if("boolean"==typeof a)return a;if("number"==typeof a)return Number.isFinite(i=a)?0===i&&-1/0==1/i?"$-0":i:1/0===i?"$Infinity":-1/0===i?"$-Infinity":"$NaN";if(void 0===a)return"$undefined";if("function"==typeof a){if(void 0!==(a=P.get(a)))return a=JSON.stringify(a,e),null===l&&(l=new FormData),n=o++,l.set(""+n,a),"$F"+n.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.")}if("symbol"==typeof a){if(Symbol.for(n=a.description)!==a)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+a.description+") cannot be found among global symbols.");return"$S"+n}if("bigint"==typeof a)return"$n"+a.toString(10);throw Error("Type "+typeof a+" is not supported as an argument to a Server Function.")}),null===l?t(n):(l.set("0",n),0===u&&t(l))})}},4474:function(e,t,r){"use strict";e.exports=r(3523)},9567:function(e,t,r){"use strict";e.exports=r(4474)},7199:function(e,t,r){"use strict";var n=r(6655),o=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,u={},c=null,s=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,n)&&!i.hasOwnProperty(n)&&(u[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===u[n]&&(u[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:s,props:u,_owner:a.current}}t.Fragment=u,t.jsx=c,t.jsxs=c},4963:function(e,t){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,_={};function v(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||h}function b(){}function g(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var m=g.prototype=new b;m.constructor=g,y(m,v.prototype),m.isPureReactComponent=!0;var P=Array.isArray,j=Object.prototype.hasOwnProperty,R={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var o,u={},l=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(l=""+t.key),t)j.call(t,o)&&!O.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var c=Array(i),s=0;s<i;s++)c[s]=arguments[s+2];u.children=c}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:l,ref:a,props:u,_owner:R.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var w=/\/+/g;function M(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function T(e,t,o){if(null==e)return e;var u=[],l=0;return!function e(t,o,u,l,a){var i,c,s,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case r:case n:d=!0}}if(d)return a=a(d=t),t=""===l?"."+M(d,0):l,P(a)?(u="",null!=t&&(u=t.replace(w,"$&/")+"/"),e(a,o,u,"",function(e){return e})):null!=a&&(E(a)&&(i=a,c=u+(!a.key||d&&d.key===a.key?"":(""+a.key).replace(w,"$&/")+"/")+t,a={$$typeof:r,type:i.type,key:c,ref:i.ref,props:i.props,_owner:i._owner}),o.push(a)),1;if(d=0,l=""===l?".":l+":",P(t))for(var h=0;h<t.length;h++){var y=l+M(f=t[h],h);d+=e(f,o,u,y,a)}else if("function"==typeof(y=null===(s=t)||"object"!=typeof s?null:"function"==typeof(s=p&&s[p]||s["@@iterator"])?s:null))for(t=y.call(t),h=0;!(f=t.next()).done;)y=l+M(f=f.value,h++),d+=e(f,o,u,y,a);else if("object"===f)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return d}(e,u,"","",function(e){return t.call(o,e,l++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var C={current:null};function N(){return new WeakMap}function A(){return{s:0,v:void 0,o:null,p:null}}var I={current:null},k={transition:null};t.Children={map:T,forEach:function(e,t,r){T(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=l,t.PureComponent=g,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:I,ReactCurrentCache:C,ReactCurrentBatchConfig:k,ReactCurrentOwner:R},t.cache=function(e){return function(){var t=C.current;if(!t)return e.apply(null,arguments);var r=t.getCacheForType(N);void 0===(t=r.get(e))&&(t=A(),r.set(e,t)),r=0;for(var n=arguments.length;r<n;r++){var o=arguments[r];if("function"==typeof o||"object"==typeof o&&null!==o){var u=t.o;null===u&&(t.o=u=new WeakMap),void 0===(t=u.get(o))&&(t=A(),u.set(o,t))}else null===(u=t.p)&&(t.p=u=new Map),void 0===(t=u.get(o))&&(t=A(),u.set(o,t))}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var l=e.apply(null,arguments);return(r=t).s=1,r.v=l}catch(e){throw(l=t).s=2,l.v=e,e}}},t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=y({},e.props),u=e.key,l=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,a=R.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(c in t)j.call(t,c)&&!O.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==i?i[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){i=Array(c);for(var s=0;s<c;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:l,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.unstable_useCacheRefresh=function(){return I.current.useCacheRefresh()},t.use=function(e){return I.current.use(e)},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return I.current.useDeferredValue(e,t)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useOptimistic=function(e,t){return I.current.useOptimistic(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.0-canary-60a927d04-20240113"},6655:function(e,t,r){"use strict";e.exports=r(4963)},1674:function(e,t,r){"use strict";e.exports=r(7199)},5758:function(e,t){"use strict";function r(e,t){var r=e.length;for(e.push(t);0<r;){var n=r-1>>>1,o=e[n];if(0<u(o,t))e[n]=t,e[r]=o,r=n;else break}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;for(var n=0,o=e.length,l=o>>>1;n<l;){var a=2*(n+1)-1,i=e[a],c=a+1,s=e[c];if(0>u(i,r))c<o&&0>u(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[a]=r,n=a);else if(c<o&&0>u(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function u(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function P(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function j(e){if(v=!1,P(e),!_){if(null!==n(s))_=!0,C();else{var t=n(f);null!==t&&N(j,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var R=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-E<S)}function M(){if(R){var e=t.unstable_now();E=e;var r=!0;try{e:{_=!1,v&&(v=!1,g(O),O=-1),y=!0;var u=h;try{t:{for(P(e),p=n(s);null!==p&&!(p.expirationTime>e&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,P(e),r=!0;break t}p===n(s)&&o(s),P(e)}else o(s);p=n(s)}if(null!==p)r=!0;else{var c=n(f);null!==c&&N(j,c.startTime-e),r=!1}}break e}finally{p=null,h=u,y=!1}r=void 0}}finally{r?l():R=!1}}}if("function"==typeof m)l=function(){m(M)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,x=T.port2;T.port1.onmessage=M,l=function(){x.postMessage(null)}}else l=function(){b(M,0)};function C(){R||(R=!0,l())}function N(e,r){O=b(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(s)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,o,u){var l=t.unstable_now();switch(u="object"==typeof u&&null!==u&&"number"==typeof(u=u.delay)&&0<u?l+u:l,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=u+a,e={id:d++,callback:o,priorityLevel:e,startTime:u,expirationTime:a,sortIndex:-1},u>l?(e.sortIndex=u,r(f,e),null===n(s)&&e===n(f)&&(v?(g(O),O=-1):v=!0,N(j,u-l))):(e.sortIndex=a,r(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},9550:function(e,t,r){"use strict";e.exports=r(5758)},5884:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(7954);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}},7954:function(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 o},isInterceptionRouteAppPath:function(){return u},extractInterceptionRouteInformation:function(){return l}});let n=r(3844),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,r,u;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,u]=e.split(r,2);break}if(!t||!r||!u)throw Error("Invalid interception route: ".concat(e,". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"));switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":u="/"===t?"/".concat(u):t+"/"+u;break;case"(..)":if("/"===t)throw Error("Invalid interception route: ".concat(e,". Cannot use (..) marker at the root level, use (.) instead."));u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error("Invalid interception route: ".concat(e,". Cannot use (..)(..) marker at the root level or one level up."));u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},8251:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},LayoutRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return l},TemplateContext:function(){return a},MissingSlotContext:function(){return i}});let n=r(907)._(r(6655)),o=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(new Set)},651:function(e,t){"use strict";function r(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r)&4294967295;return t>>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},9188:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(907)._(r(6655)).default.createContext({})},6379:function(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,{SearchParamsContext:function(){return o},PathnameContext:function(){return u},PathParamsContext:function(){return l}});let n=r(6655),o=(0,n.createContext)(null),u=(0,n.createContext)(null),l=(0,n.createContext)(null)},9006:function(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 o}});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 o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},6482:function(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}})},1927:function(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,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let n=r(5129),o=r(706),u=r(6214),l=n._(r(6655)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending&&c({actionQueue:e,action:e.pending,setState:t}))}async function c(e){let{actionQueue:t,action:r,setState:n}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=r;let l=r.payload,a=t.action(u,l);function c(e){if(r.discarded){t.needsRefresh&&null===t.pending&&(t.needsRefresh=!1,t.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},n));return}t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,n),r.resolve(e)}(0,o.isThenable)(a)?a.then(c,e=>{i(t,n),r.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,r)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,l.startTransition)(()=>{r(e)})}let u={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:r})):t.type===o.ACTION_NAVIGATE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:r})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,r),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},2265:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(3465);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:u}=(0,n.parsePath)(e);return""+t+r+o+u}},3844:function(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 u},normalizeRscURL:function(){return l}});let n=r(6482),o=r(7970);function u(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},2554:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,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,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},4910:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},3465:function(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}})},7302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(3465);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},969:function(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}})},7970:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},7167:function(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,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let n=r(5129)._(r(6655)),o=n.default.createContext(null);function u(e){let t=(0,n.useContext)(o);t&&t(e)}},7720:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},9115:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new 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)},6190:function(e,t,r){"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:function(){return n},_class_private_field_loose_base:function(){return n}})},5866:function(e,t,r){"use strict";r.r(t),r.d(t,{_:function(){return o},_class_private_field_loose_key:function(){return o}});var n=0;function o(e){return"__private_"+n+++"_"+e}},907:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},5129:function(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 o(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 o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/_not-found-2c355b04f2805185.js b/apps/web/.next/static/chunks/app/_not-found-2c355b04f2805185.js new file mode 100644 index 00000000..a3e43dd6 --- /dev/null +++ b/apps/web/.next/static/chunks/app/_not-found-2c355b04f2805185.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{700:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found",function(){return n(8217)}])},8217:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),n(907);let o=n(1674);n(6655);let r={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:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function i(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"404: This page could not be found."}),(0,o.jsx)("div",{style:r.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,o.jsx)("h1",{className:"next-error-h1",style:r.h1,children:"404"}),(0,o.jsx)("div",{style:r.desc,children:(0,o.jsx)("h2",{style:r.h2,children:"This page could not be found."})})]})})]})}("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)}},function(e){e.O(0,[293,997,744],function(){return e(e.s=700)}),_N_E=e.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/account/page-0cdf2840d5548012.js b/apps/web/.next/static/chunks/app/account/page-0cdf2840d5548012.js new file mode 100644 index 00000000..331162ce --- /dev/null +++ b/apps/web/.next/static/chunks/app/account/page-0cdf2840d5548012.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[346],{4446:function(e,n,t){Promise.resolve().then(t.bind(t,6695))},6695:function(e,n,t){"use strict";t.r(n);var u=t(6655);n.default=function(e){let{jwt:n}=e;return(0,u.useEffect)(()=>{setInterval(()=>{window.postMessage({jwt:n},"*")},1e3)},[n]),null}}},function(e){e.O(0,[293,997,744],function(){return e(e.s=4446)}),_N_E=e.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/layout-d03d6a3648fc999a.js b/apps/web/.next/static/chunks/app/layout-d03d6a3648fc999a.js new file mode 100644 index 00000000..c9157ded --- /dev/null +++ b/apps/web/.next/static/chunks/app/layout-d03d6a3648fc999a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{8895:function(a,e,n){Promise.resolve().then(n.t.bind(n,425,23)),Promise.resolve().then(n.t.bind(n,3744,23))},3744:function(){},425:function(a){a.exports={style:{fontFamily:"'__Inter_aaf875', '__Inter_Fallback_aaf875'",fontStyle:"normal"},className:"__className_aaf875",variable:"__variable_aaf875"}}},function(a){a.O(0,[293,997,744],function(){return a(a.s=8895)}),_N_E=a.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/page-4446d9ce009d4a80.js b/apps/web/.next/static/chunks/app/page-4446d9ce009d4a80.js new file mode 100644 index 00000000..5334f6ec --- /dev/null +++ b/apps/web/.next/static/chunks/app/page-4446d9ce009d4a80.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{6166:function(){}},function(n){n.O(0,[293,997,744],function(){return n(n.s=6166)}),_N_E=n.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/framework-9e68550641db712d.js b/apps/web/.next/static/chunks/framework-9e68550641db712d.js new file mode 100644 index 00000000..c8937976 --- /dev/null +++ b/apps/web/.next/static/chunks/framework-9e68550641db712d.js @@ -0,0 +1,33 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{2967:function(e,n,t){/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,l,a,u,o,i,s=t(2784),c=t(4616);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=new Set,p={};function m(e,n){h(e,n),h(e+"Capture",n)}function h(e,n){for(p[e]=n,e=0;e<n.length;e++)d.add(n[e])}var g=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),v=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},k={};function w(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=u}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new w(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];S[n]=new w(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new w(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new w(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new w(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new w(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new w(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new w(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new w(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function _(e,n,t,r){var l,a=S.hasOwnProperty(n)?S[n]:null;(null!==a?0!==a.type:r||!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==t)return!t.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,a,r)&&(t=null),r||null===a?(l=n,(!!v.call(k,l)||!v.call(b,l)&&(y.test(l)?k[l]=!0:(b[l]=!0,!1)))&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t))):a.mustUseProperty?e[a.propertyName]=null===t?3!==a.type&&"":t:(n=a.attributeName,r=a.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(a=a.type)||4===a&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(x,E);S[n]=new w(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!0,!0)});var C=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=Symbol.for("react.element"),N=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),M=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),U=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var V=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var $=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}var j,B=Object.assign;function H(e){if(void 0===j)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);j=n&&n[1]||""}return"\n"+j+e}var W=!1;function Q(e,n){if(!e||W)return"";W=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n){if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&"string"==typeof n.stack){for(var l=n.stack.split("\n"),a=r.stack.split("\n"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do if(u--,0>--o||l[u]!==a[o]){var i="\n"+l[u].replace(" at new "," at ");return e.displayName&&i.includes("<anonymous>")&&(i=i.replace("<anonymous>",e.displayName)),i}while(1<=u&&0<=o);break}}}finally{W=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var n=K(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function X(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Z(e,n){var t=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function J(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=q(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ee(e,n){null!=(n=n.checked)&&_(e,"checked",n,!1)}function en(e,n){ee(e,n);var t=q(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}n.hasOwnProperty("value")?er(e,n.type,t):n.hasOwnProperty("defaultValue")&&er(e,n.type,q(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function et(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function er(e,n,t){("number"!==n||G(e.ownerDocument)!==e)&&(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var el=Array.isArray;function ea(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(l=0,t=""+q(t),n=null;l<e.length;l++){if(e[l].value===t){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function eu(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(f(91));return B({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eo(e,n){var t=n.value;if(null==t){if(t=n.children,n=n.defaultValue,null!=t){if(null!=n)throw Error(f(92));if(el(t)){if(1<t.length)throw Error(f(93));t=t[0]}n=t}null==n&&(n=""),t=n}e._wrapperState={initialValue:q(t)}}function ei(e,n){var t=q(n.value),r=q(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function es(e){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}function ec(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ef(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?ec(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}var ed,ep,em=(ed=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((ep=ep||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction(function(){return ed(e,n,t,r)})}:ed);function eh(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType){t.nodeValue=n;return}}e.textContent=n}var eg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ev=["Webkit","ms","Moz","O"];function ey(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||eg.hasOwnProperty(e)&&eg[e]?(""+n).trim():n+"px"}function eb(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=ey(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}Object.keys(eg).forEach(function(e){ev.forEach(function(n){eg[n=n+e.charAt(0).toUpperCase()+e.substring(1)]=eg[e]})});var ek=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ew(e,n){if(n){if(ek[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(f(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(f(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(f(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(f(62))}}function eS(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ex=null;function eE(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var e_=null,eC=null,eP=null;function eN(e){if(e=rD(e)){if("function"!=typeof e_)throw Error(f(280));var n=e.stateNode;n&&(n=rU(n),e_(e.stateNode,e.type,n))}}function ez(e){eC?eP?eP.push(e):eP=[e]:eC=e}function eT(){if(eC){var e=eC,n=eP;if(eP=eC=null,eN(e),n)for(e=0;e<n.length;e++)eN(n[e])}}function eL(e,n){return e(n)}function eR(){}var eM=!1;function eF(e,n,t){if(eM)return e(n,t);eM=!0;try{return eL(e,n,t)}finally{eM=!1,(null!==eC||null!==eP)&&(eR(),eT())}}function eO(e,n){var t=e.stateNode;if(null===t)return null;var r=rU(t);if(null===r)return null;switch(t=r[n],n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(f(231,n,typeof t));return t}var eD=!1;if(g)try{var eI={};Object.defineProperty(eI,"passive",{get:function(){eD=!0}}),window.addEventListener("test",eI,eI),window.removeEventListener("test",eI,eI)}catch(e){eD=!1}function eU(e,n,t,r,l,a,u,o,i){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}}var eV=!1,e$=null,eA=!1,ej=null,eB={onError:function(e){eV=!0,e$=e}};function eH(e,n,t,r,l,a,u,o,i){eV=!1,e$=null,eU.apply(eB,arguments)}function eW(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do 0!=(4098&(n=e).flags)&&(t=n.return),e=n.return;while(e)}return 3===n.tag?t:null}function eQ(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function eq(e){if(eW(e)!==e)throw Error(f(188))}function eK(e){return null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=eW(e)))throw Error(f(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return eq(l),e;if(a===r)return eq(l),n;a=a.sibling}throw Error(f(188))}if(t.return!==r.return)t=l,r=a;else{for(var u=!1,o=l.child;o;){if(o===t){u=!0,t=l,r=a;break}if(o===r){u=!0,r=l,t=a;break}o=o.sibling}if(!u){for(o=a.child;o;){if(o===t){u=!0,t=a,r=l;break}if(o===r){u=!0,r=a,t=l;break}o=o.sibling}if(!u)throw Error(f(189))}}if(t.alternate!==r)throw Error(f(190))}if(3!==t.tag)throw Error(f(188));return t.stateNode.current===t?e:n}(e))?function e(n){if(5===n.tag||6===n.tag)return n;for(n=n.child;null!==n;){var t=e(n);if(null!==t)return t;n=n.sibling}return null}(e):null}var eY=c.unstable_scheduleCallback,eX=c.unstable_cancelCallback,eG=c.unstable_shouldYield,eZ=c.unstable_requestPaint,eJ=c.unstable_now,e0=c.unstable_getCurrentPriorityLevel,e1=c.unstable_ImmediatePriority,e2=c.unstable_UserBlockingPriority,e3=c.unstable_NormalPriority,e4=c.unstable_LowPriority,e8=c.unstable_IdlePriority,e6=null,e5=null,e7=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(e9(e)/ne|0)|0},e9=Math.log,ne=Math.LN2,nn=64,nt=4194304;function nr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nl(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=nr(o):0!=(a&=u)&&(r=nr(a))}else 0!=(u=t&~l)?r=nr(u):0!==a&&(r=nr(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)l=1<<(t=31-e7(n)),r|=e[t],n&=~l;return r}function na(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function nu(){var e=nn;return 0==(4194240&(nn<<=1))&&(nn=64),e}function no(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function ni(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-e7(n)]=t}function ns(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-e7(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}var nc=0;function nf(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var nd,np,nm,nh,ng,nv=!1,ny=[],nb=null,nk=null,nw=null,nS=new Map,nx=new Map,nE=[],n_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nC(e,n){switch(e){case"focusin":case"focusout":nb=null;break;case"dragenter":case"dragleave":nk=null;break;case"mouseover":case"mouseout":nw=null;break;case"pointerover":case"pointerout":nS.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":nx.delete(n.pointerId)}}function nP(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==n&&null!==(n=rD(n))&&np(n)):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l)),e}function nN(e){var n=rO(e.target);if(null!==n){var t=eW(n);if(null!==t){if(13===(n=t.tag)){if(null!==(n=eQ(t))){e.blockedOn=n,ng(e.priority,function(){nm(t)});return}}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===t.tag?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nz(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=n$(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=rD(t))&&np(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);ex=r,t.target.dispatchEvent(r),ex=null,n.shift()}return!0}function nT(e,n,t){nz(e)&&t.delete(n)}function nL(){nv=!1,null!==nb&&nz(nb)&&(nb=null),null!==nk&&nz(nk)&&(nk=null),null!==nw&&nz(nw)&&(nw=null),nS.forEach(nT),nx.forEach(nT)}function nR(e,n){e.blockedOn===n&&(e.blockedOn=null,nv||(nv=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,nL)))}function nM(e){function n(n){return nR(n,e)}if(0<ny.length){nR(ny[0],e);for(var t=1;t<ny.length;t++){var r=ny[t];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==nb&&nR(nb,e),null!==nk&&nR(nk,e),null!==nw&&nR(nw,e),nS.forEach(n),nx.forEach(n),t=0;t<nE.length;t++)(r=nE[t]).blockedOn===e&&(r.blockedOn=null);for(;0<nE.length&&null===(t=nE[0]).blockedOn;)nN(t),null===t.blockedOn&&nE.shift()}var nF=C.ReactCurrentBatchConfig,nO=!0;function nD(e,n,t,r){var l=nc,a=nF.transition;nF.transition=null;try{nc=1,nU(e,n,t,r)}finally{nc=l,nF.transition=a}}function nI(e,n,t,r){var l=nc,a=nF.transition;nF.transition=null;try{nc=4,nU(e,n,t,r)}finally{nc=l,nF.transition=a}}function nU(e,n,t,r){if(nO){var l=n$(e,n,t,r);if(null===l)ro(e,n,r,nV,t),nC(e,r);else if(function(e,n,t,r,l){switch(n){case"focusin":return nb=nP(nb,e,n,t,r,l),!0;case"dragenter":return nk=nP(nk,e,n,t,r,l),!0;case"mouseover":return nw=nP(nw,e,n,t,r,l),!0;case"pointerover":var a=l.pointerId;return nS.set(a,nP(nS.get(a)||null,e,n,t,r,l)),!0;case"gotpointercapture":return a=l.pointerId,nx.set(a,nP(nx.get(a)||null,e,n,t,r,l)),!0}return!1}(l,e,n,t,r))r.stopPropagation();else if(nC(e,r),4&n&&-1<n_.indexOf(e)){for(;null!==l;){var a=rD(l);if(null!==a&&nd(a),null===(a=n$(e,n,t,r))&&ro(e,n,r,nV,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else ro(e,n,r,null,t)}}var nV=null;function n$(e,n,t,r){if(nV=null,null!==(e=rO(e=eE(r)))){if(null===(n=eW(e)))e=null;else if(13===(t=n.tag)){if(null!==(e=eQ(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}return nV=e,null}function nA(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(e0()){case e1:return 1;case e2:return 4;case e3:case e4:return 16;case e8:return 536870912;default:return 16}default:return 16}}var nj=null,nB=null,nH=null;function nW(){if(nH)return nH;var e,n,t=nB,r=t.length,l="value"in nj?nj.value:nj.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===l[a-n];n++);return nH=l.slice(e,1<n?1-n:void 0)}function nQ(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function nq(){return!0}function nK(){return!1}function nY(e){function n(n,t,r,l,a){for(var u in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?nq:nK,this.isPropagationStopped=nK,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nq)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nq)},persist:function(){},isPersistent:nq}),n}var nX,nG,nZ,nJ={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},n0=nY(nJ),n1=B({},nJ,{view:0,detail:0}),n2=nY(n1),n3=B({},n1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tl,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nZ&&(nZ&&"mousemove"===e.type?(nX=e.screenX-nZ.screenX,nG=e.screenY-nZ.screenY):nG=nX=0,nZ=e),nX)},movementY:function(e){return"movementY"in e?e.movementY:nG}}),n4=nY(n3),n8=nY(B({},n3,{dataTransfer:0})),n6=nY(B({},n1,{relatedTarget:0})),n5=nY(B({},nJ,{animationName:0,elapsedTime:0,pseudoElement:0})),n7=nY(B({},nJ,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),n9=nY(B({},nJ,{data:0})),te={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tr(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=tt[e])&&!!n[e]}function tl(){return tr}var ta=nY(B({},n1,{key:function(e){if(e.key){var n=te[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=nQ(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?tn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tl,charCode:function(e){return"keypress"===e.type?nQ(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nQ(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),tu=nY(B({},n3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),to=nY(B({},n1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tl})),ti=nY(B({},nJ,{propertyName:0,elapsedTime:0,pseudoElement:0})),ts=nY(B({},n3,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),tc=[9,13,27,32],tf=g&&"CompositionEvent"in window,td=null;g&&"documentMode"in document&&(td=document.documentMode);var tp=g&&"TextEvent"in window&&!td,tm=g&&(!tf||td&&8<td&&11>=td),th=!1;function tg(e,n){switch(e){case"keyup":return -1!==tc.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tv(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ty=!1,tb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tk(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!tb[e.type]:"textarea"===n}function tw(e,n,t,r){ez(r),0<(n=rs(n,"onChange")).length&&(t=new n0("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tS=null,tx=null;function tE(e){rn(e,0)}function t_(e){if(X(rI(e)))return e}function tC(e,n){if("change"===e)return n}var tP=!1;if(g){if(g){var tN="oninput"in document;if(!tN){var tz=document.createElement("div");tz.setAttribute("oninput","return;"),tN="function"==typeof tz.oninput}r=tN}else r=!1;tP=r&&(!document.documentMode||9<document.documentMode)}function tT(){tS&&(tS.detachEvent("onpropertychange",tL),tx=tS=null)}function tL(e){if("value"===e.propertyName&&t_(tx)){var n=[];tw(n,tx,e,eE(e)),eF(tE,n)}}function tR(e,n,t){"focusin"===e?(tT(),tS=n,tx=t,tS.attachEvent("onpropertychange",tL)):"focusout"===e&&tT()}function tM(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return t_(tx)}function tF(e,n){if("click"===e)return t_(n)}function tO(e,n){if("input"===e||"change"===e)return t_(n)}var tD="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function tI(e,n){if(tD(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!v.call(n,l)||!tD(e[l],n[l]))return!1}return!0}function tU(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tV(e,n){var t,r=tU(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tU(r)}}function t$(){for(var e=window,n=G();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=G(e.document)}return n}function tA(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tj=g&&"documentMode"in document&&11>=document.documentMode,tB=null,tH=null,tW=null,tQ=!1;function tq(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tQ||null==tB||tB!==G(r)||(r="selectionStart"in(r=tB)&&tA(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tW&&tI(tW,r)||(tW=r,0<(r=rs(tH,"onSelect")).length&&(n=new n0("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=tB)))}function tK(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var tY={animationend:tK("Animation","AnimationEnd"),animationiteration:tK("Animation","AnimationIteration"),animationstart:tK("Animation","AnimationStart"),transitionend:tK("Transition","TransitionEnd")},tX={},tG={};function tZ(e){if(tX[e])return tX[e];if(!tY[e])return e;var n,t=tY[e];for(n in t)if(t.hasOwnProperty(n)&&n in tG)return tX[e]=t[n];return e}g&&(tG=document.createElement("div").style,"AnimationEvent"in window||(delete tY.animationend.animation,delete tY.animationiteration.animation,delete tY.animationstart.animation),"TransitionEvent"in window||delete tY.transitionend.transition);var tJ=tZ("animationend"),t0=tZ("animationiteration"),t1=tZ("animationstart"),t2=tZ("transitionend"),t3=new Map,t4="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function t8(e,n){t3.set(e,n),m(n,[e])}for(var t6=0;t6<t4.length;t6++){var t5=t4[t6];t8(t5.toLowerCase(),"on"+(t5[0].toUpperCase()+t5.slice(1)))}t8(tJ,"onAnimationEnd"),t8(t0,"onAnimationIteration"),t8(t1,"onAnimationStart"),t8("dblclick","onDoubleClick"),t8("focusin","onFocus"),t8("focusout","onBlur"),t8(t2,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var t7="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),t9=new Set("cancel close invalid load scroll toggle".split(" ").concat(t7));function re(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,function(e,n,t,r,l,a,u,o,i){if(eH.apply(this,arguments),eV){if(eV){var s=e$;eV=!1,e$=null}else throw Error(f(198));eA||(eA=!0,ej=s)}}(r,n,void 0,e),e.currentTarget=null}function rn(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var u=r.length-1;0<=u;u--){var o=r[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==a&&l.isPropagationStopped())break e;re(l,o,s),a=i}else for(u=0;u<r.length;u++){if(i=(o=r[u]).instance,s=o.currentTarget,o=o.listener,i!==a&&l.isPropagationStopped())break e;re(l,o,s),a=i}}}if(eA)throw e=ej,eA=!1,ej=null,e}function rt(e,n){var t=n[rR];void 0===t&&(t=n[rR]=new Set);var r=e+"__bubble";t.has(r)||(ru(n,e,2,!1),t.add(r))}function rr(e,n,t){var r=0;n&&(r|=4),ru(t,e,r,n)}var rl="_reactListening"+Math.random().toString(36).slice(2);function ra(e){if(!e[rl]){e[rl]=!0,d.forEach(function(n){"selectionchange"!==n&&(t9.has(n)||rr(n,!1,e),rr(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[rl]||(n[rl]=!0,rr("selectionchange",!1,n))}}function ru(e,n,t,r){switch(nA(n)){case 1:var l=nD;break;case 4:l=nI;break;default:l=nU}t=l.bind(null,n,t,e),l=void 0,eD&&("touchstart"===n||"touchmove"===n||"wheel"===n)&&(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function ro(e,n,t,r,l){var a=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var u=r.tag;if(3===u||4===u){var o=r.stateNode.containerInfo;if(o===l||8===o.nodeType&&o.parentNode===l)break;if(4===u)for(u=r.return;null!==u;){var i=u.tag;if((3===i||4===i)&&((i=u.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;u=u.return}for(;null!==o;){if(null===(u=rO(o)))return;if(5===(i=u.tag)||6===i){r=a=u;continue e}o=o.parentNode}}r=r.return}eF(function(){var r=a,l=eE(t),u=[];e:{var o=t3.get(e);if(void 0!==o){var i=n0,s=e;switch(e){case"keypress":if(0===nQ(t))break e;case"keydown":case"keyup":i=ta;break;case"focusin":s="focus",i=n6;break;case"focusout":s="blur",i=n6;break;case"beforeblur":case"afterblur":i=n6;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=n4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=n8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=to;break;case tJ:case t0:case t1:i=n5;break;case t2:i=ti;break;case"scroll":i=n2;break;case"wheel":i=ts;break;case"copy":case"cut":case"paste":i=n7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=tu}var c=0!=(4&n),f=!c&&"scroll"===e,d=c?null!==o?o+"Capture":null:o;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=eO(m,d))&&c.push(ri(m,h,p))),f)break;m=m.return}0<c.length&&(o=new i(o,s,null,t,l),u.push({event:o,listeners:c}))}}if(0==(7&n)){if(o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e,!(o&&t!==ex&&(s=t.relatedTarget||t.fromElement)&&(rO(s)||s[rL]))&&(i||o)&&(o=l.window===l?l:(o=l.ownerDocument)?o.defaultView||o.parentWindow:window,i?(s=t.relatedTarget||t.toElement,i=r,null!==(s=s?rO(s):null)&&(f=eW(s),s!==f||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=n4,h="onMouseLeave",d="onMouseEnter",m="mouse",("pointerout"===e||"pointerover"===e)&&(c=tu,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==i?o:rI(i),p=null==s?o:rI(s),(o=new c(h,m+"leave",i,t,l)).target=f,o.relatedTarget=p,h=null,rO(l)===r&&((c=new c(d,m+"enter",s,t,l)).target=p,c.relatedTarget=f,h=c),f=h,i&&s)n:{for(c=i,d=s,m=0,p=c;p;p=rc(p))m++;for(p=0,h=d;h;h=rc(h))p++;for(;0<m-p;)c=rc(c),m--;for(;0<p-m;)d=rc(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break n;c=rc(c),d=rc(d)}c=null}else c=null;null!==i&&rf(u,o,i,c,!1),null!==s&&null!==f&&rf(u,f,s,c,!0)}e:{if("select"===(i=(o=r?rI(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===i&&"file"===o.type)var g,v=tC;else if(tk(o)){if(tP)v=tO;else{v=tM;var y=tR}}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(v=tF);if(v&&(v=v(e,r))){tw(u,v,t,l);break e}y&&y(e,o,r),"focusout"===e&&(y=o._wrapperState)&&y.controlled&&"number"===o.type&&er(o,"number",o.value)}switch(y=r?rI(r):window,e){case"focusin":(tk(y)||"true"===y.contentEditable)&&(tB=y,tH=r,tW=null);break;case"focusout":tW=tH=tB=null;break;case"mousedown":tQ=!0;break;case"contextmenu":case"mouseup":case"dragend":tQ=!1,tq(u,t,l);break;case"selectionchange":if(tj)break;case"keydown":case"keyup":tq(u,t,l)}if(tf)n:{switch(e){case"compositionstart":var b="onCompositionStart";break n;case"compositionend":b="onCompositionEnd";break n;case"compositionupdate":b="onCompositionUpdate";break n}b=void 0}else ty?tg(e,t)&&(b="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(b="onCompositionStart");b&&(tm&&"ko"!==t.locale&&(ty||"onCompositionStart"!==b?"onCompositionEnd"===b&&ty&&(g=nW()):(nB="value"in(nj=l)?nj.value:nj.textContent,ty=!0)),0<(y=rs(r,b)).length&&(b=new n9(b,e,null,t,l),u.push({event:b,listeners:y}),g?b.data=g:null!==(g=tv(t))&&(b.data=g))),(g=tp?function(e,n){switch(e){case"compositionend":return tv(n);case"keypress":if(32!==n.which)return null;return th=!0," ";case"textInput":return" "===(e=n.data)&&th?null:e;default:return null}}(e,t):function(e,n){if(ty)return"compositionend"===e||!tf&&tg(e,n)?(e=nW(),nH=nB=nj=null,ty=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return tm&&"ko"!==n.locale?null:n.data}}(e,t))&&0<(r=rs(r,"onBeforeInput")).length&&(l=new n9("onBeforeInput","beforeinput",null,t,l),u.push({event:l,listeners:r}),l.data=g)}rn(u,n)})}function ri(e,n,t){return{instance:e,listener:n,currentTarget:t}}function rs(e,n){for(var t=n+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=eO(e,t))&&r.unshift(ri(e,a,l)),null!=(a=eO(e,n))&&r.push(ri(e,a,l))),e=e.return}return r}function rc(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function rf(e,n,t,r,l){for(var a=n._reactName,u=[];null!==t&&t!==r;){var o=t,i=o.alternate,s=o.stateNode;if(null!==i&&i===r)break;5===o.tag&&null!==s&&(o=s,l?null!=(i=eO(t,a))&&u.unshift(ri(t,i,o)):l||null!=(i=eO(t,a))&&u.push(ri(t,i,o))),t=t.return}0!==u.length&&e.push({event:n,listeners:u})}var rd=/\r\n?/g,rp=/\u0000|\uFFFD/g;function rm(e){return("string"==typeof e?e:""+e).replace(rd,"\n").replace(rp,"")}function rh(e,n,t){if(n=rm(n),rm(e)!==n&&t)throw Error(f(425))}function rg(){}var rv=null,ry=null;function rb(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"object"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var rk="function"==typeof setTimeout?setTimeout:void 0,rw="function"==typeof clearTimeout?clearTimeout:void 0,rS="function"==typeof Promise?Promise:void 0,rx="function"==typeof queueMicrotask?queueMicrotask:void 0!==rS?function(e){return rS.resolve(null).then(e).catch(rE)}:rk;function rE(e){setTimeout(function(){throw e})}function r_(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&8===l.nodeType){if("/$"===(t=l.data)){if(0===r){e.removeChild(l),nM(n);return}r--}else"$"!==t&&"$?"!==t&&"$!"!==t||r++}t=l}while(t);nM(n)}function rC(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n)break;if("/$"===n)return null}}return e}function rP(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}var rN=Math.random().toString(36).slice(2),rz="__reactFiber$"+rN,rT="__reactProps$"+rN,rL="__reactContainer$"+rN,rR="__reactEvents$"+rN,rM="__reactListeners$"+rN,rF="__reactHandles$"+rN;function rO(e){var n=e[rz];if(n)return n;for(var t=e.parentNode;t;){if(n=t[rL]||t[rz]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=rP(e);null!==e;){if(t=e[rz])return t;e=rP(e)}return n}t=(e=t).parentNode}return null}function rD(e){return(e=e[rz]||e[rL])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function rI(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(f(33))}function rU(e){return e[rT]||null}var rV=[],r$=-1;function rA(e){return{current:e}}function rj(e){0>r$||(e.current=rV[r$],rV[r$]=null,r$--)}function rB(e,n){rV[++r$]=e.current,e.current=n}var rH={},rW=rA(rH),rQ=rA(!1),rq=rH;function rK(e,n){var t=e.type.contextTypes;if(!t)return rH;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function rY(e){return null!=(e=e.childContextTypes)}function rX(){rj(rQ),rj(rW)}function rG(e,n,t){if(rW.current!==rH)throw Error(f(168));rB(rW,n),rB(rQ,t)}function rZ(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error(f(108,function(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(n){if(null==n)return null;if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case z:return"Fragment";case N:return"Portal";case L:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case D:return"SuspenseList"}if("object"==typeof n)switch(n.$$typeof){case M:return(n.displayName||"Context")+".Consumer";case R:return(n._context.displayName||"Context")+".Provider";case F:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case I:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case U:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(n);case 8:return n===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}(e)||"Unknown",l));return B({},t,r)}function rJ(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rH,rq=rW.current,rB(rW,e),rB(rQ,rQ.current),!0}function r0(e,n,t){var r=e.stateNode;if(!r)throw Error(f(169));t?(e=rZ(e,n,rq),r.__reactInternalMemoizedMergedChildContext=e,rj(rQ),rj(rW),rB(rW,e)):rj(rQ),rB(rQ,t)}var r1=null,r2=!1,r3=!1;function r4(e){null===r1?r1=[e]:r1.push(e)}function r8(){if(!r3&&null!==r1){r3=!0;var e=0,n=nc;try{var t=r1;for(nc=1;e<t.length;e++){var r=t[e];do r=r(!0);while(null!==r)}r1=null,r2=!1}catch(n){throw null!==r1&&(r1=r1.slice(e+1)),eY(e1,r8),n}finally{nc=n,r3=!1}}return null}var r6=[],r5=0,r7=null,r9=0,le=[],ln=0,lt=null,lr=1,ll="";function la(e,n){r6[r5++]=r9,r6[r5++]=r7,r7=e,r9=n}function lu(e,n,t){le[ln++]=lr,le[ln++]=ll,le[ln++]=lt,lt=e;var r=lr;e=ll;var l=32-e7(r)-1;r&=~(1<<l),t+=1;var a=32-e7(n)+l;if(30<a){var u=l-l%5;a=(r&(1<<u)-1).toString(32),r>>=u,l-=u,lr=1<<32-e7(n)+l|t<<l|r,ll=a+e}else lr=1<<a|t<<l|r,ll=e}function lo(e){null!==e.return&&(la(e,1),lu(e,1,0))}function li(e){for(;e===r7;)r7=r6[--r5],r6[r5]=null,r9=r6[--r5],r6[r5]=null;for(;e===lt;)lt=le[--ln],le[ln]=null,ll=le[--ln],le[ln]=null,lr=le[--ln],le[ln]=null}var ls=null,lc=null,lf=!1,ld=null;function lp(e,n){var t=oq(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)}function lm(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,ls=e,lc=rC(n.firstChild),!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,ls=e,lc=null,!0);case 13:return null!==(n=8!==n.nodeType?null:n)&&(t=null!==lt?{id:lr,overflow:ll}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},(t=oq(18,null,null,0)).stateNode=n,t.return=e,e.child=t,ls=e,lc=null,!0);default:return!1}}function lh(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lg(e){if(lf){var n=lc;if(n){var t=n;if(!lm(e,n)){if(lh(e))throw Error(f(418));n=rC(t.nextSibling);var r=ls;n&&lm(e,n)?lp(r,t):(e.flags=-4097&e.flags|2,lf=!1,ls=e)}}else{if(lh(e))throw Error(f(418));e.flags=-4097&e.flags|2,lf=!1,ls=e}}}function lv(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ls=e}function ly(e){if(e!==ls)return!1;if(!lf)return lv(e),lf=!0,!1;if((n=3!==e.tag)&&!(n=5!==e.tag)&&(n="head"!==(n=e.type)&&"body"!==n&&!rb(e.type,e.memoizedProps)),n&&(n=lc)){if(lh(e))throw lb(),Error(f(418));for(;n;)lp(e,n),n=rC(n.nextSibling)}if(lv(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(f(317));e:{for(n=0,e=e.nextSibling;e;){if(8===e.nodeType){var n,t=e.data;if("/$"===t){if(0===n){lc=rC(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}lc=null}}else lc=ls?rC(e.stateNode.nextSibling):null;return!0}function lb(){for(var e=lc;e;)e=rC(e.nextSibling)}function lk(){lc=ls=null,lf=!1}function lw(e){null===ld?ld=[e]:ld.push(e)}var lS=C.ReactCurrentBatchConfig;function lx(e,n){if(e&&e.defaultProps)for(var t in n=B({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}var lE=rA(null),l_=null,lC=null,lP=null;function lN(){lP=lC=l_=null}function lz(e){var n=lE.current;rj(lE),e._currentValue=n}function lT(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function lL(e,n){l_=e,lP=lC=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(uu=!0),e.firstContext=null)}function lR(e){var n=e._currentValue;if(lP!==e){if(e={context:e,memoizedValue:n,next:null},null===lC){if(null===l_)throw Error(f(308));lC=e,l_.dependencies={lanes:0,firstContext:e}}else lC=lC.next=e}return n}var lM=null;function lF(e){null===lM?lM=[e]:lM.push(e)}function lO(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,lF(n)):(t.next=l.next,l.next=t),n.interleaved=t,lD(e,r)}function lD(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}var lI=!1;function lU(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lV(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function l$(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function lA(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&u3)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,lD(e,t)}return null===(l=r.interleaved)?(n.next=n,lF(r)):(n.next=l.next,l.next=n),r.interleaved=n,lD(e,t)}function lj(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ns(e,t)}}function lB(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=t;return}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function lH(e,n,t,r){var l=e.updateQueue;lI=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i)}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=B({},f,d);break e;case 2:lI=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do u|=l.lane,l=l.next;while(l!==n)}else null===a&&(l.shared.lanes=0);on|=u,e.lanes=u,e.memoizedState=f}}function lW(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var r=e[n],l=r.callback;if(null!==l){if(r.callback=null,r=t,"function"!=typeof l)throw Error(f(191,l));l.call(r)}}}var lQ=(new s.Component).refs;function lq(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:B({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var lK={isMounted:function(e){return!!(e=e._reactInternals)&&eW(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=ob(),l=ok(e),a=l$(r,l);a.payload=n,null!=t&&(a.callback=t),null!==(n=lA(e,a,l))&&(ow(n,e,l,r),lj(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=ob(),l=ok(e),a=l$(r,l);a.tag=1,a.payload=n,null!=t&&(a.callback=t),null!==(n=lA(e,a,l))&&(ow(n,e,l,r),lj(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=ob(),r=ok(e),l=l$(t,r);l.tag=2,null!=n&&(l.callback=n),null!==(n=lA(e,l,r))&&(ow(n,e,r,t),lj(n,e,r))}};function lY(e,n,t,r,l,a,u){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!n.prototype||!n.prototype.isPureReactComponent||!tI(t,r)||!tI(l,a)}function lX(e,n,t){var r=!1,l=rH,a=n.contextType;return"object"==typeof a&&null!==a?a=lR(a):(l=rY(n)?rq:rW.current,a=(r=null!=(r=n.contextTypes))?rK(e,l):rH),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=lK,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function lG(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&lK.enqueueReplaceState(n,n.state,null)}function lZ(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs=lQ,lU(e);var a=n.contextType;"object"==typeof a&&null!==a?l.context=lR(a):(a=rY(n)?rq:rW.current,l.context=rK(e,a)),l.state=e.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(lq(e,n,a,t),l.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(n=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&lK.enqueueReplaceState(l,l.state,null),lH(e,t,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function lJ(e,n,t){if(null!==(e=t.ref)&&"function"!=typeof e&&"object"!=typeof e){if(t._owner){if(t=t._owner){if(1!==t.tag)throw Error(f(309));var r=t.stateNode}if(!r)throw Error(f(147,e));var l=r,a=""+e;return null!==n&&null!==n.ref&&"function"==typeof n.ref&&n.ref._stringRef===a?n.ref:((n=function(e){var n=l.refs;n===lQ&&(n=l.refs={}),null===e?delete n[a]:n[a]=e})._stringRef=a,n)}if("string"!=typeof e)throw Error(f(284));if(!t._owner)throw Error(f(290,e))}return e}function l0(e,n){throw Error(f(31,"[object Object]"===(e=Object.prototype.toString.call(n))?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function l1(e){return(0,e._init)(e._payload)}function l2(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function l(e,n){return(e=oY(e,n)).index=0,e.sibling=null,e}function a(n,t,r){return(n.index=r,e)?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=2,t):r:(n.flags|=2,t):(n.flags|=1048576,t)}function u(n){return e&&null===n.alternate&&(n.flags|=2),n}function o(e,n,t,r){return null===n||6!==n.tag?(n=oJ(t,e.mode,r)).return=e:(n=l(n,t)).return=e,n}function i(e,n,t,r){var a=t.type;return a===z?c(e,n,t.props.children,r,t.key):(null!==n&&(n.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===U&&l1(a)===n.type)?(r=l(n,t.props)).ref=lJ(e,n,t):(r=oX(t.type,t.key,t.props,null,e.mode,r)).ref=lJ(e,n,t),r.return=e,r)}function s(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?(n=o0(t,e.mode,r)).return=e:(n=l(n,t.children||[])).return=e,n}function c(e,n,t,r,a){return null===n||7!==n.tag?(n=oG(t,e.mode,r,a)).return=e:(n=l(n,t)).return=e,n}function d(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n)return(n=oJ(""+n,e.mode,t)).return=e,n;if("object"==typeof n&&null!==n){switch(n.$$typeof){case P:return(t=oX(n.type,n.key,n.props,null,e.mode,t)).ref=lJ(e,null,n),t.return=e,t;case N:return(n=o0(n,e.mode,t)).return=e,n;case U:return d(e,(0,n._init)(n._payload),t)}if(el(n)||A(n))return(n=oG(n,e.mode,t,null)).return=e,n;l0(e,n)}return null}function p(e,n,t,r){var l=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t)return null!==l?null:o(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case P:return t.key===l?i(e,n,t,r):null;case N:return t.key===l?s(e,n,t,r):null;case U:return p(e,n,(l=t._init)(t._payload),r)}if(el(t)||A(t))return null!==l?null:c(e,n,t,r,null);l0(e,t)}return null}function m(e,n,t,r,l){if("string"==typeof r&&""!==r||"number"==typeof r)return o(n,e=e.get(t)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case P:return i(n,e=e.get(null===r.key?t:r.key)||null,r,l);case N:return s(n,e=e.get(null===r.key?t:r.key)||null,r,l);case U:return m(e,n,t,(0,r._init)(r._payload),l)}if(el(r)||A(r))return c(n,e=e.get(t)||null,r,l,null);l0(n,r)}return null}return function o(i,s,c,h){if("object"==typeof c&&null!==c&&c.type===z&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case P:e:{for(var g=c.key,v=s;null!==v;){if(v.key===g){if((g=c.type)===z){if(7===v.tag){t(i,v.sibling),(s=l(v,c.props.children)).return=i,i=s;break e}}else if(v.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===U&&l1(g)===v.type){t(i,v.sibling),(s=l(v,c.props)).ref=lJ(i,v,c),s.return=i,i=s;break e}t(i,v);break}n(i,v),v=v.sibling}c.type===z?((s=oG(c.props.children,i.mode,h,c.key)).return=i,i=s):((h=oX(c.type,c.key,c.props,null,i.mode,h)).ref=lJ(i,s,c),h.return=i,i=h)}return u(i);case N:e:{for(v=c.key;null!==s;){if(s.key===v){if(4===s.tag&&s.stateNode.containerInfo===c.containerInfo&&s.stateNode.implementation===c.implementation){t(i,s.sibling),(s=l(s,c.children||[])).return=i,i=s;break e}t(i,s);break}n(i,s),s=s.sibling}(s=o0(c,i.mode,h)).return=i,i=s}return u(i);case U:return o(i,s,(v=c._init)(c._payload),h)}if(el(c))return function(l,u,o,i){for(var s=null,c=null,f=u,h=u=0,g=null;null!==f&&h<o.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var v=p(l,f,o[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),u=a(v,u,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===o.length)return t(l,f),lf&&la(l,h),s;if(null===f){for(;h<o.length;h++)null!==(f=d(l,o[h],i))&&(u=a(f,u,h),null===c?s=f:c.sibling=f,c=f);return lf&&la(l,h),s}for(f=r(l,f);h<o.length;h++)null!==(g=m(f,l,h,o[h],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),u=a(g,u,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return n(l,e)}),lf&&la(l,h),s}(i,s,c,h);if(A(c))return function(l,u,o,i){var s=A(o);if("function"!=typeof s)throw Error(f(150));if(null==(o=s.call(o)))throw Error(f(151));for(var c=s=null,h=u,g=u=0,v=null,y=o.next();null!==h&&!y.done;g++,y=o.next()){h.index>g?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,i);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),u=a(b,u,g),null===c?s=b:c.sibling=b,c=b,h=v}if(y.done)return t(l,h),lf&&la(l,g),s;if(null===h){for(;!y.done;g++,y=o.next())null!==(y=d(l,y.value,i))&&(u=a(y,u,g),null===c?s=y:c.sibling=y,c=y);return lf&&la(l,g),s}for(h=r(l,h);!y.done;g++,y=o.next())null!==(y=m(h,l,g,y.value,i))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),u=a(y,u,g),null===c?s=y:c.sibling=y,c=y);return e&&h.forEach(function(e){return n(l,e)}),lf&&la(l,g),s}(i,s,c,h);l0(i,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==s&&6===s.tag?(t(i,s.sibling),(s=l(s,c)).return=i):(t(i,s),(s=oJ(c,i.mode,h)).return=i),u(i=s)):t(i,s)}}var l3=l2(!0),l4=l2(!1),l8={},l6=rA(l8),l5=rA(l8),l7=rA(l8);function l9(e){if(e===l8)throw Error(f(174));return e}function ae(e,n){switch(rB(l7,n),rB(l5,e),rB(l6,l8),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ef(null,"");break;default:n=ef(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}rj(l6),rB(l6,n)}function an(){rj(l6),rj(l5),rj(l7)}function at(e){l9(l7.current);var n=l9(l6.current),t=ef(n,e.type);n!==t&&(rB(l5,e),rB(l6,t))}function ar(e){l5.current===e&&(rj(l6),rj(l5))}var al=rA(0);function aa(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var au=[];function ao(){for(var e=0;e<au.length;e++)au[e]._workInProgressVersionPrimary=null;au.length=0}var ai=C.ReactCurrentDispatcher,as=C.ReactCurrentBatchConfig,ac=0,af=null,ad=null,ap=null,am=!1,ah=!1,ag=0,av=0;function ay(){throw Error(f(321))}function ab(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!tD(e[t],n[t]))return!1;return!0}function ak(e,n,t,r,l,a){if(ac=a,af=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,ai.current=null===e||null===e.memoizedState?a3:a4,e=t(r,l),ah){a=0;do{if(ah=!1,ag=0,25<=a)throw Error(f(301));a+=1,ap=ad=null,n.updateQueue=null,ai.current=a8,e=t(r,l)}while(ah)}if(ai.current=a2,n=null!==ad&&null!==ad.next,ac=0,ap=ad=af=null,am=!1,n)throw Error(f(300));return e}function aw(){var e=0!==ag;return ag=0,e}function aS(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ap?af.memoizedState=ap=e:ap=ap.next=e,ap}function ax(){if(null===ad){var e=af.alternate;e=null!==e?e.memoizedState:null}else e=ad.next;var n=null===ap?af.memoizedState:ap.next;if(null!==n)ap=n,ad=e;else{if(null===e)throw Error(f(310));e={memoizedState:(ad=e).memoizedState,baseState:ad.baseState,baseQueue:ad.baseQueue,queue:ad.queue,next:null},null===ap?af.memoizedState=ap=e:ap=ap.next=e}return ap}function aE(e,n){return"function"==typeof n?n(e):n}function a_(e){var n=ax(),t=n.queue;if(null===t)throw Error(f(311));t.lastRenderedReducer=e;var r=ad,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var o=u=null,i=null,s=a;do{var c=s.lane;if((ac&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};null===i?(o=i=d,u=r):i=i.next=d,af.lanes|=c,on|=c}s=s.next}while(null!==s&&s!==a);null===i?u=r:i.next=o,tD(r,n.memoizedState)||(uu=!0),n.memoizedState=r,n.baseState=u,n.baseQueue=i,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do a=l.lane,af.lanes|=a,on|=a,l=l.next;while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function aC(e){var n=ax(),t=n.queue;if(null===t)throw Error(f(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var u=l=l.next;do a=e(a,u.action),u=u.next;while(u!==l);tD(a,n.memoizedState)||(uu=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function aP(){}function aN(e,n){var t=af,r=ax(),l=n(),a=!tD(r.memoizedState,l);if(a&&(r.memoizedState=l,uu=!0),r=r.queue,a$(aL.bind(null,t,r,e),[e]),r.getSnapshot!==n||a||null!==ap&&1&ap.memoizedState.tag){if(t.flags|=2048,aO(9,aT.bind(null,t,r,l,n),void 0,null),null===u4)throw Error(f(349));0!=(30&ac)||az(t,n,l)}return l}function az(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=af.updateQueue)?(n={lastEffect:null,stores:null},af.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function aT(e,n,t,r){n.value=t,n.getSnapshot=r,aR(n)&&aM(e)}function aL(e,n,t){return t(function(){aR(n)&&aM(e)})}function aR(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!tD(e,t)}catch(e){return!0}}function aM(e){var n=lD(e,1);null!==n&&ow(n,e,1,-1)}function aF(e){var n=aS();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:aE,lastRenderedState:e},n.queue=e,e=e.dispatch=aZ.bind(null,af,e),[n.memoizedState,e]}function aO(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=af.updateQueue)?(n={lastEffect:null,stores:null},af.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function aD(){return ax().memoizedState}function aI(e,n,t,r){var l=aS();af.flags|=e,l.memoizedState=aO(1|n,t,void 0,void 0===r?null:r)}function aU(e,n,t,r){var l=ax();r=void 0===r?null:r;var a=void 0;if(null!==ad){var u=ad.memoizedState;if(a=u.destroy,null!==r&&ab(r,u.deps)){l.memoizedState=aO(n,t,a,r);return}}af.flags|=e,l.memoizedState=aO(1|n,t,a,r)}function aV(e,n){return aI(8390656,8,e,n)}function a$(e,n){return aU(2048,8,e,n)}function aA(e,n){return aU(4,2,e,n)}function aj(e,n){return aU(4,4,e,n)}function aB(e,n){return"function"==typeof n?(n(e=e()),function(){n(null)}):null!=n?(e=e(),n.current=e,function(){n.current=null}):void 0}function aH(e,n,t){return t=null!=t?t.concat([e]):null,aU(4,4,aB.bind(null,n,e),t)}function aW(){}function aQ(e,n){var t=ax();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&ab(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function aq(e,n){var t=ax();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&ab(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function aK(e,n,t){return 0==(21&ac)?(e.baseState&&(e.baseState=!1,uu=!0),e.memoizedState=t):(tD(t,n)||(t=nu(),af.lanes|=t,on|=t,e.baseState=!0),n)}function aY(e,n){var t=nc;nc=0!==t&&4>t?t:4,e(!0);var r=as.transition;as.transition={};try{e(!1),n()}finally{nc=t,as.transition=r}}function aX(){return ax().memoizedState}function aG(e,n,t){var r=ok(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},aJ(e)?a0(n,t):null!==(t=lO(e,n,t,r))&&(ow(t,e,r,ob()),a1(t,n,r))}function aZ(e,n,t){var r=ok(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(aJ(e))a0(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,tD(o,u)){var i=n.interleaved;null===i?(l.next=l,lF(n)):(l.next=i.next,i.next=l),n.interleaved=l;return}}catch(e){}finally{}null!==(t=lO(e,n,l,r))&&(ow(t,e,r,l=ob()),a1(t,n,r))}}function aJ(e){var n=e.alternate;return e===af||null!==n&&n===af}function a0(e,n){ah=am=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function a1(e,n,t){if(0!=(4194240&t)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ns(e,t)}}var a2={readContext:lR,useCallback:ay,useContext:ay,useEffect:ay,useImperativeHandle:ay,useInsertionEffect:ay,useLayoutEffect:ay,useMemo:ay,useReducer:ay,useRef:ay,useState:ay,useDebugValue:ay,useDeferredValue:ay,useTransition:ay,useMutableSource:ay,useSyncExternalStore:ay,useId:ay,unstable_isNewReconciler:!1},a3={readContext:lR,useCallback:function(e,n){return aS().memoizedState=[e,void 0===n?null:n],e},useContext:lR,useEffect:aV,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,aI(4194308,4,aB.bind(null,n,e),t)},useLayoutEffect:function(e,n){return aI(4194308,4,e,n)},useInsertionEffect:function(e,n){return aI(4,2,e,n)},useMemo:function(e,n){var t=aS();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=aS();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=aG.bind(null,af,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},aS().memoizedState=e},useState:aF,useDebugValue:aW,useDeferredValue:function(e){return aS().memoizedState=e},useTransition:function(){var e=aF(!1),n=e[0];return e=aY.bind(null,e[1]),aS().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=af,l=aS();if(lf){if(void 0===t)throw Error(f(407));t=t()}else{if(t=n(),null===u4)throw Error(f(349));0!=(30&ac)||az(r,n,t)}l.memoizedState=t;var a={value:t,getSnapshot:n};return l.queue=a,aV(aL.bind(null,r,a,e),[e]),r.flags|=2048,aO(9,aT.bind(null,r,a,t,n),void 0,null),t},useId:function(){var e=aS(),n=u4.identifierPrefix;if(lf){var t=ll,r=lr;n=":"+n+"R"+(t=(r&~(1<<32-e7(r)-1)).toString(32)+t),0<(t=ag++)&&(n+="H"+t.toString(32)),n+=":"}else n=":"+n+"r"+(t=av++).toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},a4={readContext:lR,useCallback:aQ,useContext:lR,useEffect:a$,useImperativeHandle:aH,useInsertionEffect:aA,useLayoutEffect:aj,useMemo:aq,useReducer:a_,useRef:aD,useState:function(){return a_(aE)},useDebugValue:aW,useDeferredValue:function(e){return aK(ax(),ad.memoizedState,e)},useTransition:function(){return[a_(aE)[0],ax().memoizedState]},useMutableSource:aP,useSyncExternalStore:aN,useId:aX,unstable_isNewReconciler:!1},a8={readContext:lR,useCallback:aQ,useContext:lR,useEffect:a$,useImperativeHandle:aH,useInsertionEffect:aA,useLayoutEffect:aj,useMemo:aq,useReducer:aC,useRef:aD,useState:function(){return aC(aE)},useDebugValue:aW,useDeferredValue:function(e){var n=ax();return null===ad?n.memoizedState=e:aK(n,ad.memoizedState,e)},useTransition:function(){return[aC(aE)[0],ax().memoizedState]},useMutableSource:aP,useSyncExternalStore:aN,useId:aX,unstable_isNewReconciler:!1};function a6(e,n){try{var t="",r=n;do t+=function(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=Q(e.type,!1);case 11:return e=Q(e.type.render,!1);case 1:return e=Q(e.type,!0);default:return""}}(r),r=r.return;while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function a5(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function a7(e,n){try{console.error(n.value)}catch(e){setTimeout(function(){throw e})}}var a9="function"==typeof WeakMap?WeakMap:Map;function ue(e,n,t){(t=l$(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){os||(os=!0,oc=r),a7(e,n)},t}function un(e,n,t){(t=l$(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){a7(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){a7(e,n),"function"!=typeof r&&(null===of?of=new Set([this]):of.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function ut(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new a9;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=oj.bind(null,e,n,t),n.then(e,e))}function ur(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function ul(e,n,t,r,l){return 0==(1&e.mode)?e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=l$(-1,1)).tag=2,lA(t,n,1))),t.lanes|=1):(e.flags|=65536,e.lanes=l),e}var ua=C.ReactCurrentOwner,uu=!1;function uo(e,n,t,r){n.child=null===e?l4(n,null,t,r):l3(n,e.child,t,r)}function ui(e,n,t,r,l){t=t.render;var a=n.ref;return(lL(n,l),r=ak(e,n,t,r,a,l),t=aw(),null===e||uu)?(lf&&t&&lo(n),n.flags|=1,uo(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,uP(e,n,l))}function us(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||oK(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=oX(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,uc(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:tI)(u,r)&&e.ref===n.ref)return uP(e,n,l)}return n.flags|=1,(e=oY(a,r)).ref=n.ref,e.return=n,n.child=e}function uc(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(tI(a,r)&&e.ref===n.ref){if(uu=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,uP(e,n,l);0!=(131072&e.flags)&&(uu=!0)}}return up(e,n,t,r,l)}function uf(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},rB(u7,u5),u5|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,rB(u7,u5),u5|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,rB(u7,u5),u5|=r}}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,rB(u7,u5),u5|=r;return uo(e,n,l,t),n.child}function ud(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function up(e,n,t,r,l){var a=rY(t)?rq:rW.current;return(a=rK(n,a),lL(n,l),t=ak(e,n,t,r,a,l),r=aw(),null===e||uu)?(lf&&r&&lo(n),n.flags|=1,uo(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,uP(e,n,l))}function um(e,n,t,r,l){if(rY(t)){var a=!0;rJ(n)}else a=!1;if(lL(n,l),null===n.stateNode)uC(e,n),lX(n,t,r),lZ(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;s="object"==typeof s&&null!==s?lR(s):rK(n,s=rY(t)?rq:rW.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof u.getSnapshotBeforeUpdate;f||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&lG(n,u,r,s),lI=!1;var d=n.memoizedState;u.state=d,lH(n,r,u,l),i=n.memoizedState,o!==r||d!==i||rQ.current||lI?("function"==typeof c&&(lq(n,t,c,r),i=n.memoizedState),(o=lI||lY(n,t,o,r,d,i,s))?(f||"function"!=typeof u.UNSAFE_componentWillMount&&"function"!=typeof u.componentWillMount||("function"==typeof u.componentWillMount&&u.componentWillMount(),"function"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),"function"==typeof u.componentDidMount&&(n.flags|=4194308)):("function"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):("function"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,lV(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:lx(n.type,o),u.props=s,f=n.pendingProps,d=u.context,i="object"==typeof(i=t.contextType)&&null!==i?lR(i):rK(n,i=rY(t)?rq:rW.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof u.getSnapshotBeforeUpdate)||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&lG(n,u,r,i),lI=!1,d=n.memoizedState,u.state=d,lH(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||rQ.current||lI?("function"==typeof p&&(lq(n,t,p,r),m=n.memoizedState),(s=lI||lY(n,t,s,r,d,m,i)||!1)?(c||"function"!=typeof u.UNSAFE_componentWillUpdate&&"function"!=typeof u.componentWillUpdate||("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),"function"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),"function"==typeof u.componentDidUpdate&&(n.flags|=4),"function"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return uh(e,n,t,r,a,l)}function uh(e,n,t,r,l,a){ud(e,n);var u=0!=(128&n.flags);if(!r&&!u)return l&&r0(n,t,!1),uP(e,n,a);r=n.stateNode,ua.current=n;var o=u&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=l3(n,e.child,null,a),n.child=l3(n,null,o,a)):uo(e,n,o,a),n.memoizedState=r.state,l&&r0(n,t,!0),n.child}function ug(e){var n=e.stateNode;n.pendingContext?rG(e,n.pendingContext,n.pendingContext!==n.context):n.context&&rG(e,n.context,!1),ae(e,n.containerInfo)}function uv(e,n,t,r,l){return lk(),lw(l),n.flags|=256,uo(e,n,t,r),n.child}var uy={dehydrated:null,treeContext:null,retryLane:0};function ub(e){return{baseLanes:e,cachePool:null,transitions:null}}function uk(e,n,t){var r,l=n.pendingProps,a=al.current,u=!1,o=0!=(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(u=!0,n.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),rB(al,1&a),null===e)return(lg(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&n.mode)?n.lanes=1:"$!"===e.data?n.lanes=8:n.lanes=1073741824,null):(o=l.children,e=l.fallback,u?(l=n.mode,u=n.child,o={mode:"hidden",children:o},0==(1&l)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=oZ(o,l,0,null),e=oG(e,l,t,null),u.return=n,e.return=n,u.sibling=e,n.child=u,n.child.memoizedState=ub(t),n.memoizedState=uy,e):uw(n,o));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,n,t,r,l,a,u){if(t)return 256&n.flags?(n.flags&=-257,uS(e,n,u,r=a5(Error(f(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,l=n.mode,r=oZ({mode:"visible",children:r.children},l,0,null),a=oG(a,l,u,null),a.flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&l3(n,e.child,null,u),n.child.memoizedState=ub(u),n.memoizedState=uy,a);if(0==(1&n.mode))return uS(e,n,u,null);if("$!"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var o=r.dgst;return r=o,uS(e,n,u,r=a5(a=Error(f(419)),r,void 0))}if(o=0!=(u&e.childLanes),uu||o){if(null!==(r=u4)){switch(u&-u){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==a.retryLane&&(a.retryLane=l,lD(e,l),ow(r,e,l,-1))}return oF(),uS(e,n,u,r=a5(Error(f(421))))}return"$?"===l.data?(n.flags|=128,n.child=e.child,n=oH.bind(null,e),l._reactRetry=n,null):(e=a.treeContext,lc=rC(l.nextSibling),ls=n,lf=!0,ld=null,null!==e&&(le[ln++]=lr,le[ln++]=ll,le[ln++]=lt,lr=e.id,ll=e.overflow,lt=n),n=uw(n,r.children),n.flags|=4096,n)}(e,n,o,l,r,a,t);if(u){u=l.fallback,o=n.mode,r=(a=e.child).sibling;var i={mode:"hidden",children:l.children};return 0==(1&o)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=i,n.deletions=null):(l=oY(a,i)).subtreeFlags=14680064&a.subtreeFlags,null!==r?u=oY(r,u):(u=oG(u,o,t,null),u.flags|=2),u.return=n,l.return=n,l.sibling=u,n.child=l,l=u,u=n.child,o=null===(o=e.child.memoizedState)?ub(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},u.memoizedState=o,u.childLanes=e.childLanes&~t,n.memoizedState=uy,l}return e=(u=e.child).sibling,l=oY(u,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function uw(e,n){return(n=oZ({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function uS(e,n,t,r){return null!==r&&lw(r),l3(n,e.child,null,t),e=uw(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function ux(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),lT(e.return,n,t)}function uE(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function u_(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(uo(e,n,r.children,t),0!=(2&(r=al.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ux(e,t,n);else if(19===e.tag)ux(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rB(al,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(l=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===aa(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),uE(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===aa(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}uE(n,!0,t,null,a);break;case"together":uE(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function uC(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function uP(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),on|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(f(153));if(null!==n.child){for(t=oY(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=oY(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function uN(e,n){if(!lf)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uz(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}l=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},a=function(){},u=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,l9(l6.current);var a,u=null;switch(t){case"input":l=Z(e,l),r=Z(e,r),u=[];break;case"select":l=B({},l,{value:void 0}),r=B({},r,{value:void 0}),u=[];break;case"textarea":l=eu(e,l),r=eu(e,r),u=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=rg)}for(s in ew(t,r),t=null,l)if(!r.hasOwnProperty(s)&&l.hasOwnProperty(s)&&null!=l[s]){if("style"===s){var o=l[s];for(a in o)o.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(p.hasOwnProperty(s)?u||(u=[]):(u=u||[]).push(s,null))}for(s in r){var i=r[s];if(o=null!=l?l[s]:void 0,r.hasOwnProperty(s)&&i!==o&&(null!=i||null!=o)){if("style"===s){if(o){for(a in o)!o.hasOwnProperty(a)||i&&i.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in i)i.hasOwnProperty(a)&&o[a]!==i[a]&&(t||(t={}),t[a]=i[a])}else t||(u||(u=[]),u.push(s,t)),t=i}else"dangerouslySetInnerHTML"===s?(i=i?i.__html:void 0,o=o?o.__html:void 0,null!=i&&o!==i&&(u=u||[]).push(s,i)):"children"===s?"string"!=typeof i&&"number"!=typeof i||(u=u||[]).push(s,""+i):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(p.hasOwnProperty(s)?(null!=i&&"onScroll"===s&&rt("scroll",e),u||o===i||(u=[])):(u=u||[]).push(s,i))}}t&&(u=u||[]).push("style",t);var s=u;(n.updateQueue=s)&&(n.flags|=4)}},o=function(e,n,t,r){t!==r&&(n.flags|=4)};var uT=!1,uL=!1,uR="function"==typeof WeakSet?WeakSet:Set,uM=null;function uF(e,n){var t=e.ref;if(null!==t){if("function"==typeof t)try{t(null)}catch(t){oA(e,n,t)}else t.current=null}}function uO(e,n,t){try{t()}catch(t){oA(e,n,t)}}var uD=!1;function uI(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&uO(n,t,a)}l=l.next}while(l!==r)}}function uU(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function uV(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,"function"==typeof n?n(e):n.current=e}}function u$(e){return 5===e.tag||3===e.tag||4===e.tag}function uA(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||u$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var uj=null,uB=!1;function uH(e,n,t){for(t=t.child;null!==t;)uW(e,n,t),t=t.sibling}function uW(e,n,t){if(e5&&"function"==typeof e5.onCommitFiberUnmount)try{e5.onCommitFiberUnmount(e6,t)}catch(e){}switch(t.tag){case 5:uL||uF(t,n);case 6:var r=uj,l=uB;uj=null,uH(e,n,t),uj=r,uB=l,null!==uj&&(uB?(e=uj,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):uj.removeChild(t.stateNode));break;case 18:null!==uj&&(uB?(e=uj,t=t.stateNode,8===e.nodeType?r_(e.parentNode,t):1===e.nodeType&&r_(e,t),nM(e)):r_(uj,t.stateNode));break;case 4:r=uj,l=uB,uj=t.stateNode.containerInfo,uB=!0,uH(e,n,t),uj=r,uB=l;break;case 0:case 11:case 14:case 15:if(!uL&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(0!=(2&a)?uO(t,n,u):0!=(4&a)&&uO(t,n,u)),l=l.next}while(l!==r)}uH(e,n,t);break;case 1:if(!uL&&(uF(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){oA(t,n,e)}uH(e,n,t);break;case 21:default:uH(e,n,t);break;case 22:1&t.mode?(uL=(r=uL)||null!==t.memoizedState,uH(e,n,t),uL=r):uH(e,n,t)}}function uQ(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new uR),n.forEach(function(n){var r=oW.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function uq(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var l=t[r];try{var a=n,u=a;e:for(;null!==u;){switch(u.tag){case 5:uj=u.stateNode,uB=!1;break e;case 3:case 4:uj=u.stateNode.containerInfo,uB=!0;break e}u=u.return}if(null===uj)throw Error(f(160));uW(e,a,l),uj=null,uB=!1;var o=l.alternate;null!==o&&(o.return=null),l.return=null}catch(e){oA(l,n,e)}}if(12854&n.subtreeFlags)for(n=n.child;null!==n;)uK(n,e),n=n.sibling}function uK(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(uq(n,e),uY(e),4&r){try{uI(3,e,e.return),uU(3,e)}catch(n){oA(e,e.return,n)}try{uI(5,e,e.return)}catch(n){oA(e,e.return,n)}}break;case 1:uq(n,e),uY(e),512&r&&null!==t&&uF(t,t.return);break;case 5:if(uq(n,e),uY(e),512&r&&null!==t&&uF(t,t.return),32&e.flags){var l=e.stateNode;try{eh(l,"")}catch(n){oA(e,e.return,n)}}if(4&r&&null!=(l=e.stateNode)){var a=e.memoizedProps,u=null!==t?t.memoizedProps:a,o=e.type,i=e.updateQueue;if(e.updateQueue=null,null!==i)try{"input"===o&&"radio"===a.type&&null!=a.name&&ee(l,a),eS(o,u);var s=eS(o,a);for(u=0;u<i.length;u+=2){var c=i[u],d=i[u+1];"style"===c?eb(l,d):"dangerouslySetInnerHTML"===c?em(l,d):"children"===c?eh(l,d):_(l,c,d,s)}switch(o){case"input":en(l,a);break;case"textarea":ei(l,a);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?ea(l,!!a.multiple,m,!1):!!a.multiple!==p&&(null!=a.defaultValue?ea(l,!!a.multiple,a.defaultValue,!0):ea(l,!!a.multiple,a.multiple?[]:"",!1))}l[rT]=a}catch(n){oA(e,e.return,n)}}break;case 6:if(uq(n,e),uY(e),4&r){if(null===e.stateNode)throw Error(f(162));l=e.stateNode,a=e.memoizedProps;try{l.nodeValue=a}catch(n){oA(e,e.return,n)}}break;case 3:if(uq(n,e),uY(e),4&r&&null!==t&&t.memoizedState.isDehydrated)try{nM(n.containerInfo)}catch(n){oA(e,e.return,n)}break;case 4:default:uq(n,e),uY(e);break;case 13:uq(n,e),uY(e),8192&(l=e.child).flags&&(a=null!==l.memoizedState,l.stateNode.isHidden=a,a&&(null===l.alternate||null===l.alternate.memoizedState)&&(ou=eJ())),4&r&&uQ(e);break;case 22:if(c=null!==t&&null!==t.memoizedState,1&e.mode?(uL=(s=uL)||c,uq(n,e),uL=s):uq(n,e),uY(e),8192&r){if(s=null!==e.memoizedState,(e.stateNode.isHidden=s)&&!c&&0!=(1&e.mode))for(uM=e,c=e.child;null!==c;){for(d=uM=c;null!==uM;){switch(m=(p=uM).child,p.tag){case 0:case 11:case 14:case 15:uI(4,p,p.return);break;case 1:uF(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,t=p.return;try{n=r,h.props=n.memoizedProps,h.state=n.memoizedState,h.componentWillUnmount()}catch(e){oA(r,t,e)}}break;case 5:uF(p,p.return);break;case 22:if(null!==p.memoizedState){uG(d);continue}}null!==m?(m.return=p,uM=m):uG(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{l=d.stateNode,s?(a=l.style,"function"==typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(o=d.stateNode,u=null!=(i=d.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=ey("display",u))}catch(n){oA(e,e.return,n)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=s?"":d.memoizedProps}catch(n){oA(e,e.return,n)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:uq(n,e),uY(e),4&r&&uQ(e);case 21:}}function uY(e){var n=e.flags;if(2&n){try{e:{for(var t=e.return;null!==t;){if(u$(t)){var r=t;break e}t=t.return}throw Error(f(160))}switch(r.tag){case 5:var l=r.stateNode;32&r.flags&&(eh(l,""),r.flags&=-33);var a=uA(e);!function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?r.insertBefore(n,t):r.appendChild(n);else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,a,l);break;case 3:case 4:var u=r.stateNode.containerInfo,o=uA(e);!function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(n,t):r.insertBefore(n,t):(8===r.nodeType?(t=r.parentNode).insertBefore(n,r):(t=r).appendChild(n),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=rg));else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,o,u);break;default:throw Error(f(161))}}catch(n){oA(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function uX(e){for(;null!==uM;){var n=uM;if(0!=(8772&n.flags)){var t=n.alternate;try{if(0!=(8772&n.flags))switch(n.tag){case 0:case 11:case 15:uL||uU(5,n);break;case 1:var r=n.stateNode;if(4&n.flags&&!uL){if(null===t)r.componentDidMount();else{var l=n.elementType===n.type?t.memoizedProps:lx(n.type,t.memoizedProps);r.componentDidUpdate(l,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var a=n.updateQueue;null!==a&&lW(n,a,r);break;case 3:var u=n.updateQueue;if(null!==u){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}lW(n,u,t)}break;case 5:var o=n.stateNode;if(null===t&&4&n.flags){t=o;var i=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":i.autoFocus&&t.focus();break;case"img":i.src&&(t.src=i.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===n.memoizedState){var s=n.alternate;if(null!==s){var c=s.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&nM(d)}}}break;default:throw Error(f(163))}uL||512&n.flags&&uV(n)}catch(e){oA(n,n.return,e)}}if(n===e){uM=null;break}if(null!==(t=n.sibling)){t.return=n.return,uM=t;break}uM=n.return}}function uG(e){for(;null!==uM;){var n=uM;if(n===e){uM=null;break}var t=n.sibling;if(null!==t){t.return=n.return,uM=t;break}uM=n.return}}function uZ(e){for(;null!==uM;){var n=uM;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{uU(4,n)}catch(e){oA(n,t,e)}break;case 1:var r=n.stateNode;if("function"==typeof r.componentDidMount){var l=n.return;try{r.componentDidMount()}catch(e){oA(n,l,e)}}var a=n.return;try{uV(n)}catch(e){oA(n,a,e)}break;case 5:var u=n.return;try{uV(n)}catch(e){oA(n,u,e)}}}catch(e){oA(n,n.return,e)}if(n===e){uM=null;break}var o=n.sibling;if(null!==o){o.return=n.return,uM=o;break}uM=n.return}}var uJ=Math.ceil,u0=C.ReactCurrentDispatcher,u1=C.ReactCurrentOwner,u2=C.ReactCurrentBatchConfig,u3=0,u4=null,u8=null,u6=0,u5=0,u7=rA(0),u9=0,oe=null,on=0,ot=0,or=0,ol=null,oa=null,ou=0,oo=1/0,oi=null,os=!1,oc=null,of=null,od=!1,op=null,om=0,oh=0,og=null,ov=-1,oy=0;function ob(){return 0!=(6&u3)?eJ():-1!==ov?ov:ov=eJ()}function ok(e){return 0==(1&e.mode)?1:0!=(2&u3)&&0!==u6?u6&-u6:null!==lS.transition?(0===oy&&(oy=nu()),oy):0!==(e=nc)?e:e=void 0===(e=window.event)?16:nA(e.type)}function ow(e,n,t,r){if(50<oh)throw oh=0,og=null,Error(f(185));ni(e,t,r),(0==(2&u3)||e!==u4)&&(e===u4&&(0==(2&u3)&&(ot|=t),4===u9&&oC(e,u6)),oS(e,r),1===t&&0===u3&&0==(1&n.mode)&&(oo=eJ()+500,r2&&r8()))}function oS(e,n){var t,r=e.callbackNode;!function(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-e7(a),o=1<<u,i=l[u];-1===i?(0==(o&t)||0!=(o&r))&&(l[u]=function(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return -1}}(o,n)):i<=n&&(e.expiredLanes|=o),a&=~o}}(e,n);var l=nl(e,e===u4?u6:0);if(0===l)null!==r&&eX(r),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(null!=r&&eX(r),1===n)0===e.tag?(t=oP.bind(null,e),r2=!0,r4(t)):r4(oP.bind(null,e)),rx(function(){0==(6&u3)&&r8()}),r=null;else{switch(nf(l)){case 1:r=e1;break;case 4:r=e2;break;case 16:default:r=e3;break;case 536870912:r=e8}r=eY(r,ox.bind(null,e))}e.callbackPriority=n,e.callbackNode=r}}function ox(e,n){if(ov=-1,oy=0,0!=(6&u3))throw Error(f(327));var t=e.callbackNode;if(oV()&&e.callbackNode!==t)return null;var r=nl(e,e===u4?u6:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||n)n=oO(e,r);else{n=r;var l=u3;u3|=2;var a=oM();for((u4!==e||u6!==n)&&(oi=null,oo=eJ()+500,oL(e,n));;)try{!function(){for(;null!==u8&&!eG();)oD(u8)}();break}catch(n){oR(e,n)}lN(),u0.current=a,u3=l,null!==u8?n=0:(u4=null,u6=0,n=u9)}if(0!==n){if(2===n&&0!==(l=na(e))&&(r=l,n=oE(e,l)),1===n)throw t=oe,oL(e,0),oC(e,r),oS(e,eJ()),t;if(6===n)oC(e,r);else{if(l=e.current.alternate,0==(30&r)&&!function(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!tD(a(),l))return!1}catch(e){return!1}}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(l)&&(2===(n=oO(e,r))&&0!==(a=na(e))&&(r=a,n=oE(e,a)),1===n))throw t=oe,oL(e,0),oC(e,r),oS(e,eJ()),t;switch(e.finishedWork=l,e.finishedLanes=r,n){case 0:case 1:throw Error(f(345));case 2:case 5:oU(e,oa,oi);break;case 3:if(oC(e,r),(130023424&r)===r&&10<(n=ou+500-eJ())){if(0!==nl(e,0))break;if(((l=e.suspendedLanes)&r)!==r){ob(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=rk(oU.bind(null,e,oa,oi),n);break}oU(e,oa,oi);break;case 4:if(oC(e,r),(4194240&r)===r)break;for(l=-1,n=e.eventTimes;0<r;){var u=31-e7(r);a=1<<u,(u=n[u])>l&&(l=u),r&=~a}if(r=l,10<(r=(120>(r=eJ()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uJ(r/1960))-r)){e.timeoutHandle=rk(oU.bind(null,e,oa,oi),r);break}oU(e,oa,oi);break;default:throw Error(f(329))}}}return oS(e,eJ()),e.callbackNode===t?ox.bind(null,e):null}function oE(e,n){var t=ol;return e.current.memoizedState.isDehydrated&&(oL(e,n).flags|=256),2!==(e=oO(e,n))&&(n=oa,oa=t,null!==n&&o_(n)),e}function o_(e){null===oa?oa=e:oa.push.apply(oa,e)}function oC(e,n){for(n&=~or,n&=~ot,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-e7(n),r=1<<t;e[t]=-1,n&=~r}}function oP(e){if(0!=(6&u3))throw Error(f(327));oV();var n=nl(e,0);if(0==(1&n))return oS(e,eJ()),null;var t=oO(e,n);if(0!==e.tag&&2===t){var r=na(e);0!==r&&(n=r,t=oE(e,r))}if(1===t)throw t=oe,oL(e,0),oC(e,n),oS(e,eJ()),t;if(6===t)throw Error(f(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,oU(e,oa,oi),oS(e,eJ()),null}function oN(e,n){var t=u3;u3|=1;try{return e(n)}finally{0===(u3=t)&&(oo=eJ()+500,r2&&r8())}}function oz(e){null!==op&&0===op.tag&&0==(6&u3)&&oV();var n=u3;u3|=1;var t=u2.transition,r=nc;try{if(u2.transition=null,nc=1,e)return e()}finally{nc=r,u2.transition=t,0==(6&(u3=n))&&r8()}}function oT(){u5=u7.current,rj(u7)}function oL(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,rw(t)),null!==u8)for(t=u8.return;null!==t;){var r=t;switch(li(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&rX();break;case 3:an(),rj(rQ),rj(rW),ao();break;case 5:ar(r);break;case 4:an();break;case 13:case 19:rj(al);break;case 10:lz(r.type._context);break;case 22:case 23:oT()}t=t.return}if(u4=e,u8=e=oY(e.current,null),u6=u5=n,u9=0,oe=null,or=ot=on=0,oa=ol=null,null!==lM){for(n=0;n<lM.length;n++)if(null!==(r=(t=lM[n]).interleaved)){t.interleaved=null;var l=r.next,a=t.pending;if(null!==a){var u=a.next;a.next=l,r.next=u}t.pending=r}lM=null}return e}function oR(e,n){for(;;){var t=u8;try{if(lN(),ai.current=a2,am){for(var r=af.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}am=!1}if(ac=0,ap=ad=af=null,ah=!1,ag=0,u1.current=null,null===t||null===t.return){u9=1,oe=n,u8=null;break}e:{var a=e,u=t.return,o=t,i=n;if(n=u6,o.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){var s=i,c=o,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=ur(u);if(null!==m){m.flags&=-257,ul(m,u,o,a,n),1&m.mode&&ut(a,s,n),n=m,i=s;var h=n.updateQueue;if(null===h){var g=new Set;g.add(i),n.updateQueue=g}else h.add(i);break e}if(0==(1&n)){ut(a,s,n),oF();break e}i=Error(f(426))}else if(lf&&1&o.mode){var v=ur(u);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ul(v,u,o,a,n),lw(a6(i,o));break e}}a=i=a6(i,o),4!==u9&&(u9=2),null===ol?ol=[a]:ol.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,n&=-n,a.lanes|=n;var y=ue(a,i,n);lB(a,y);break e;case 1:o=i;var b=a.type,k=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===of||!of.has(k)))){a.flags|=65536,n&=-n,a.lanes|=n;var w=un(a,o,n);lB(a,w);break e}}a=a.return}while(null!==a)}oI(t)}catch(e){n=e,u8===t&&null!==t&&(u8=t=t.return);continue}break}}function oM(){var e=u0.current;return u0.current=a2,null===e?a2:e}function oF(){(0===u9||3===u9||2===u9)&&(u9=4),null===u4||0==(268435455&on)&&0==(268435455&ot)||oC(u4,u6)}function oO(e,n){var t=u3;u3|=2;var r=oM();for((u4!==e||u6!==n)&&(oi=null,oL(e,n));;)try{!function(){for(;null!==u8;)oD(u8)}();break}catch(n){oR(e,n)}if(lN(),u3=t,u0.current=r,null!==u8)throw Error(f(261));return u4=null,u6=0,u9}function oD(e){var n=i(e.alternate,e,u5);e.memoizedProps=e.pendingProps,null===n?oI(e):u8=n,u1.current=null}function oI(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(t=function(e,n,t){var r=n.pendingProps;switch(li(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return uz(n),null;case 1:case 17:return rY(n.type)&&rX(),uz(n),null;case 3:return r=n.stateNode,an(),rj(rQ),rj(rW),ao(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===e||null===e.child)&&(ly(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==ld&&(o_(ld),ld=null))),a(e,n),uz(n),null;case 5:ar(n);var i=l9(l7.current);if(t=n.type,null!==e&&null!=n.stateNode)u(e,n,t,r,i),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(f(166));return uz(n),null}if(e=l9(l6.current),ly(n)){r=n.stateNode,t=n.type;var s=n.memoizedProps;switch(r[rz]=n,r[rT]=s,e=0!=(1&n.mode),t){case"dialog":rt("cancel",r),rt("close",r);break;case"iframe":case"object":case"embed":rt("load",r);break;case"video":case"audio":for(i=0;i<t7.length;i++)rt(t7[i],r);break;case"source":rt("error",r);break;case"img":case"image":case"link":rt("error",r),rt("load",r);break;case"details":rt("toggle",r);break;case"input":J(r,s),rt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},rt("invalid",r);break;case"textarea":eo(r,s),rt("invalid",r)}for(var c in ew(t,s),i=null,s)if(s.hasOwnProperty(c)){var d=s[c];"children"===c?"string"==typeof d?r.textContent!==d&&(!0!==s.suppressHydrationWarning&&rh(r.textContent,d,e),i=["children",d]):"number"==typeof d&&r.textContent!==""+d&&(!0!==s.suppressHydrationWarning&&rh(r.textContent,d,e),i=["children",""+d]):p.hasOwnProperty(c)&&null!=d&&"onScroll"===c&&rt("scroll",r)}switch(t){case"input":Y(r),et(r,s,!0);break;case"textarea":Y(r),es(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=rg)}r=i,n.updateQueue=r,null!==r&&(n.flags|=4)}else{c=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ec(t)),"http://www.w3.org/1999/xhtml"===e?"script"===t?((e=c.createElement("div")).innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(t,{is:r.is}):(e=c.createElement(t),"select"===t&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,t),e[rz]=n,e[rT]=r,l(e,n,!1,!1),n.stateNode=e;e:{switch(c=eS(t,r),t){case"dialog":rt("cancel",e),rt("close",e),i=r;break;case"iframe":case"object":case"embed":rt("load",e),i=r;break;case"video":case"audio":for(i=0;i<t7.length;i++)rt(t7[i],e);i=r;break;case"source":rt("error",e),i=r;break;case"img":case"image":case"link":rt("error",e),rt("load",e),i=r;break;case"details":rt("toggle",e),i=r;break;case"input":J(e,r),i=Z(e,r),rt("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),rt("invalid",e);break;case"textarea":eo(e,r),i=eu(e,r),rt("invalid",e)}for(s in ew(t,i),d=i)if(d.hasOwnProperty(s)){var m=d[s];"style"===s?eb(e,m):"dangerouslySetInnerHTML"===s?null!=(m=m?m.__html:void 0)&&em(e,m):"children"===s?"string"==typeof m?("textarea"!==t||""!==m)&&eh(e,m):"number"==typeof m&&eh(e,""+m):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(p.hasOwnProperty(s)?null!=m&&"onScroll"===s&&rt("scroll",e):null!=m&&_(e,s,m,c))}switch(t){case"input":Y(e),et(e,r,!1);break;case"textarea":Y(e),es(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ea(e,!!r.multiple,s,!1):null!=r.defaultValue&&ea(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=rg)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return uz(n),null;case 6:if(e&&null!=n.stateNode)o(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error(f(166));if(t=l9(l7.current),l9(l6.current),ly(n)){if(r=n.stateNode,t=n.memoizedProps,r[rz]=n,(s=r.nodeValue!==t)&&null!==(e=ls))switch(e.tag){case 3:rh(r.nodeValue,t,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rh(r.nodeValue,t,0!=(1&e.mode))}s&&(n.flags|=4)}else(r=(9===t.nodeType?t:t.ownerDocument).createTextNode(r))[rz]=n,n.stateNode=r}return uz(n),null;case 13:if(rj(al),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(lf&&null!==lc&&0!=(1&n.mode)&&0==(128&n.flags))lb(),lk(),n.flags|=98560,s=!1;else if(s=ly(n),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(f(318));if(!(s=null!==(s=n.memoizedState)?s.dehydrated:null))throw Error(f(317));s[rz]=n}else lk(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;uz(n),s=!1}else null!==ld&&(o_(ld),ld=null),s=!0;if(!s)return 65536&n.flags?n:null}if(0!=(128&n.flags))return n.lanes=t,n;return(r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&al.current)?0===u9&&(u9=3):oF())),null!==n.updateQueue&&(n.flags|=4),uz(n),null;case 4:return an(),a(e,n),null===e&&ra(n.stateNode.containerInfo),uz(n),null;case 10:return lz(n.type._context),uz(n),null;case 19:if(rj(al),null===(s=n.memoizedState))return uz(n),null;if(r=0!=(128&n.flags),null===(c=s.rendering)){if(r)uN(s,!1);else{if(0!==u9||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(c=aa(e))){for(n.flags|=128,uN(s,!1),null!==(r=c.updateQueue)&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;null!==t;)s=t,e=r,s.flags&=14680066,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return rB(al,1&al.current|2),n.child}e=e.sibling}null!==s.tail&&eJ()>oo&&(n.flags|=128,r=!0,uN(s,!1),n.lanes=4194304)}}else{if(!r){if(null!==(e=aa(c))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),uN(s,!0),null===s.tail&&"hidden"===s.tailMode&&!c.alternate&&!lf)return uz(n),null}else 2*eJ()-s.renderingStartTime>oo&&1073741824!==t&&(n.flags|=128,r=!0,uN(s,!1),n.lanes=4194304)}s.isBackwards?(c.sibling=n.child,n.child=c):(null!==(t=s.last)?t.sibling=c:n.child=c,s.last=c)}if(null!==s.tail)return n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=eJ(),n.sibling=null,t=al.current,rB(al,r?1&t|2:1&t),n;return uz(n),null;case 22:case 23:return oT(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&u5)&&(uz(n),6&n.subtreeFlags&&(n.flags|=8192)):uz(n),null;case 24:case 25:return null}throw Error(f(156,n.tag))}(t,n,u5))){u8=t;return}}else{if(null!==(t=function(e,n){switch(li(n),n.tag){case 1:return rY(n.type)&&rX(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return an(),rj(rQ),rj(rW),ao(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return ar(n),null;case 13:if(rj(al),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(f(340));lk()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return rj(al),null;case 4:return an(),null;case 10:return lz(n.type._context),null;case 22:case 23:return oT(),null;default:return null}}(t,n))){t.flags&=32767,u8=t;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{u9=6,u8=null;return}}if(null!==(n=n.sibling)){u8=n;return}u8=n=e}while(null!==n);0===u9&&(u9=5)}function oU(e,n,t){var r=nc,l=u2.transition;try{u2.transition=null,nc=1,function(e,n,t,r){do oV();while(null!==op);if(0!=(6&u3))throw Error(f(327));t=e.finishedWork;var l=e.finishedLanes;if(null!==t){if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(f(177));e.callbackNode=null,e.callbackPriority=0;var a=t.lanes|t.childLanes;if(function(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-e7(t),a=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~a}}(e,a),e===u4&&(u8=u4=null,u6=0),0==(2064&t.subtreeFlags)&&0==(2064&t.flags)||od||(od=!0,u=e3,o=function(){return oV(),null},eY(u,o)),a=0!=(15990&t.flags),0!=(15990&t.subtreeFlags)||a){a=u2.transition,u2.transition=null;var u,o,i,s,c,d=nc;nc=1;var p=u3;u3|=4,u1.current=null,function(e,n){if(rv=nO,tA(e=t$())){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l,a=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch(e){t=null;break e}var o=0,i=-1,s=-1,c=0,d=0,p=e,m=null;n:for(;;){for(;p!==t||0!==a&&3!==p.nodeType||(i=o+a),p!==u||0!==r&&3!==p.nodeType||(s=o+r),3===p.nodeType&&(o+=p.nodeValue.length),null!==(l=p.firstChild);)m=p,p=l;for(;;){if(p===e)break n;if(m===t&&++c===a&&(i=o),m===u&&++d===r&&(s=o),null!==(l=p.nextSibling))break;m=(p=m).parentNode}p=l}t=-1===i||-1===s?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ry={focusedElem:e,selectionRange:t},nO=!1,uM=n;null!==uM;)if(e=(n=uM).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,uM=e;else for(;null!==uM;){n=uM;try{var h=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:lx(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(f(163))}}catch(e){oA(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,uM=e;break}uM=n.return}h=uD,uD=!1}(e,t),uK(t,e),function(e){var n=t$(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&function e(n,t){return!!n&&!!t&&(n===t||(!n||3!==n.nodeType)&&(t&&3===t.nodeType?e(n,t.parentNode):"contains"in n?n.contains(t):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(t))))}(t.ownerDocument.documentElement,t)){if(null!==r&&tA(t)){if(n=r.start,void 0===(e=r.end)&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=tV(t,a);var u=tV(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t<n.length;t++)(e=n[t]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(ry),nO=!!rv,ry=rv=null,e.current=t,i=t,s=e,c=l,uM=i,function e(n,t,r){for(var l=0!=(1&n.mode);null!==uM;){var a=uM,u=a.child;if(22===a.tag&&l){var o=null!==a.memoizedState||uT;if(!o){var i=a.alternate,s=null!==i&&null!==i.memoizedState||uL;i=uT;var c=uL;if(uT=o,(uL=s)&&!c)for(uM=a;null!==uM;)s=(o=uM).child,22===o.tag&&null!==o.memoizedState?uZ(a):null!==s?(s.return=o,uM=s):uZ(a);for(;null!==u;)uM=u,e(u,t,r),u=u.sibling;uM=a,uT=i,uL=c}uX(n,t,r)}else 0!=(8772&a.subtreeFlags)&&null!==u?(u.return=a,uM=u):uX(n,t,r)}}(i,s,c),eZ(),u3=p,nc=d,u2.transition=a}else e.current=t;if(od&&(od=!1,op=e,om=l),0===(a=e.pendingLanes)&&(of=null),function(e){if(e5&&"function"==typeof e5.onCommitFiberRoot)try{e5.onCommitFiberRoot(e6,e,void 0,128==(128&e.current.flags))}catch(e){}}(t.stateNode,r),oS(e,eJ()),null!==n)for(r=e.onRecoverableError,t=0;t<n.length;t++)r((l=n[t]).value,{componentStack:l.stack,digest:l.digest});if(os)throw os=!1,e=oc,oc=null,e;0!=(1&om)&&0!==e.tag&&oV(),0!=(1&(a=e.pendingLanes))?e===og?oh++:(oh=0,og=e):oh=0,r8()}}(e,n,t,r)}finally{u2.transition=l,nc=r}return null}function oV(){if(null!==op){var e=nf(om),n=u2.transition,t=nc;try{if(u2.transition=null,nc=16>e?16:e,null===op)var r=!1;else{if(e=op,op=null,om=0,0!=(6&u3))throw Error(f(331));var l=u3;for(u3|=4,uM=e.current;null!==uM;){var a=uM,u=a.child;if(0!=(16&uM.flags)){var o=a.deletions;if(null!==o){for(var i=0;i<o.length;i++){var s=o[i];for(uM=s;null!==uM;){var c=uM;switch(c.tag){case 0:case 11:case 15:uI(8,c,a)}var d=c.child;if(null!==d)d.return=c,uM=d;else for(;null!==uM;){var p=(c=uM).sibling,m=c.return;if(!function e(n){var t=n.alternate;null!==t&&(n.alternate=null,e(t)),n.child=null,n.deletions=null,n.sibling=null,5===n.tag&&null!==(t=n.stateNode)&&(delete t[rz],delete t[rT],delete t[rR],delete t[rM],delete t[rF]),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}(c),c===s){uM=null;break}if(null!==p){p.return=m,uM=p;break}uM=m}}}var h=a.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}uM=a}}if(0!=(2064&a.subtreeFlags)&&null!==u)u.return=a,uM=u;else for(;null!==uM;){if(a=uM,0!=(2048&a.flags))switch(a.tag){case 0:case 11:case 15:uI(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,uM=y;break}uM=a.return}}var b=e.current;for(uM=b;null!==uM;){var k=(u=uM).child;if(0!=(2064&u.subtreeFlags)&&null!==k)k.return=u,uM=k;else for(u=b;null!==uM;){if(o=uM,0!=(2048&o.flags))try{switch(o.tag){case 0:case 11:case 15:uU(9,o)}}catch(e){oA(o,o.return,e)}if(o===u){uM=null;break}var w=o.sibling;if(null!==w){w.return=o.return,uM=w;break}uM=o.return}}if(u3=l,r8(),e5&&"function"==typeof e5.onPostCommitFiberRoot)try{e5.onPostCommitFiberRoot(e6,e)}catch(e){}r=!0}return r}finally{nc=t,u2.transition=n}}return!1}function o$(e,n,t){n=ue(e,n=a6(t,n),1),e=lA(e,n,1),n=ob(),null!==e&&(ni(e,1,n),oS(e,n))}function oA(e,n,t){if(3===e.tag)o$(e,e,t);else for(;null!==n;){if(3===n.tag){o$(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===of||!of.has(r))){e=un(n,e=a6(t,e),1),n=lA(n,e,1),e=ob(),null!==n&&(ni(n,1,e),oS(n,e));break}}n=n.return}}function oj(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=ob(),e.pingedLanes|=e.suspendedLanes&t,u4===e&&(u6&t)===t&&(4===u9||3===u9&&(130023424&u6)===u6&&500>eJ()-ou?oL(e,0):or|=t),oS(e,n)}function oB(e,n){0===n&&(0==(1&e.mode)?n=1:(n=nt,0==(130023424&(nt<<=1))&&(nt=4194304)));var t=ob();null!==(e=lD(e,n))&&(ni(e,n,t),oS(e,t))}function oH(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),oB(e,t)}function oW(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(f(314))}null!==r&&r.delete(n),oB(e,t)}function oQ(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oq(e,n,t,r){return new oQ(e,n,t,r)}function oK(e){return!(!(e=e.prototype)||!e.isReactComponent)}function oY(e,n){var t=e.alternate;return null===t?((t=oq(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function oX(e,n,t,r,l,a){var u=2;if(r=e,"function"==typeof e)oK(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case z:return oG(t.children,l,a,n);case T:u=8,l|=8;break;case L:return(e=oq(12,t,n,2|l)).elementType=L,e.lanes=a,e;case O:return(e=oq(13,t,n,l)).elementType=O,e.lanes=a,e;case D:return(e=oq(19,t,n,l)).elementType=D,e.lanes=a,e;case V:return oZ(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case R:u=10;break e;case M:u=9;break e;case F:u=11;break e;case I:u=14;break e;case U:u=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(n=oq(u,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function oG(e,n,t,r){return(e=oq(7,e,r,n)).lanes=t,e}function oZ(e,n,t,r){return(e=oq(22,e,r,n)).elementType=V,e.lanes=t,e.stateNode={isHidden:!1},e}function oJ(e,n,t){return(e=oq(6,e,null,n)).lanes=t,e}function o0(e,n,t){return(n=oq(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function o1(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function o2(e,n,t,r,l,a,u,o,i){return e=new o1(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=oq(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},lU(a),e}function o3(e){if(!e)return rH;e=e._reactInternals;e:{if(eW(e)!==e||1!==e.tag)throw Error(f(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(rY(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(f(171))}if(1===e.tag){var t=e.type;if(rY(t))return rZ(e,t,n)}return n}function o4(e,n,t,r,l,a,u,o,i){return(e=o2(t,r,!0,e,l,a,u,o,i)).context=o3(null),t=e.current,(a=l$(r=ob(),l=ok(t))).callback=null!=n?n:null,lA(t,a,l),e.current.lanes=l,ni(e,l,r),oS(e,r),e}function o8(e,n,t,r){var l=n.current,a=ob(),u=ok(l);return t=o3(t),null===n.context?n.context=t:n.pendingContext=t,(n=l$(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=lA(l,n,u))&&(ow(e,l,u,a),lj(e,l,u)),u}function o6(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function o5(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function o7(e,n){o5(e,n),(e=e.alternate)&&o5(e,n)}i=function(e,n,t){if(null!==e){if(e.memoizedProps!==n.pendingProps||rQ.current)uu=!0;else{if(0==(e.lanes&t)&&0==(128&n.flags))return uu=!1,function(e,n,t){switch(n.tag){case 3:ug(n),lk();break;case 5:at(n);break;case 1:rY(n.type)&&rJ(n);break;case 4:ae(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;rB(lE,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState)){if(null!==r.dehydrated)return rB(al,1&al.current),n.flags|=128,null;if(0!=(t&n.child.childLanes))return uk(e,n,t);return rB(al,1&al.current),null!==(e=uP(e,n,t))?e.sibling:null}rB(al,1&al.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return u_(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),rB(al,al.current),!r)return null;break;case 22:case 23:return n.lanes=0,uf(e,n,t)}return uP(e,n,t)}(e,n,t);uu=0!=(131072&e.flags)}}else uu=!1,lf&&0!=(1048576&n.flags)&&lu(n,r9,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;uC(e,n),e=n.pendingProps;var l=rK(n,rW.current);lL(n,t),l=ak(null,n,r,e,l,t);var a=aw();return n.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,rY(r)?(a=!0,rJ(n)):a=!1,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,lU(n),l.updater=lK,n.stateNode=l,l._reactInternals=n,lZ(n,r,e,t),n=uh(null,n,r,!0,a,t)):(n.tag=0,lf&&a&&lo(n),uo(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(uC(e,n),e=n.pendingProps,r=(l=r._init)(r._payload),n.type=r,l=n.tag=function(e){if("function"==typeof e)return oK(e)?1:0;if(null!=e){if((e=e.$$typeof)===F)return 11;if(e===I)return 14}return 2}(r),e=lx(r,e),l){case 0:n=up(null,n,r,e,t);break e;case 1:n=um(null,n,r,e,t);break e;case 11:n=ui(null,n,r,e,t);break e;case 14:n=us(null,n,r,lx(r.type,e),t);break e}throw Error(f(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:lx(r,l),up(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:lx(r,l),um(e,n,r,l,t);case 3:e:{if(ug(n),null===e)throw Error(f(387));r=n.pendingProps,l=(a=n.memoizedState).element,lV(e,n),lH(n,r,null,t);var u=n.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=a,n.memoizedState=a,256&n.flags){l=a6(Error(f(423)),n),n=uv(e,n,r,t,l);break e}if(r!==l){l=a6(Error(f(424)),n),n=uv(e,n,r,t,l);break e}for(lc=rC(n.stateNode.containerInfo.firstChild),ls=n,lf=!0,ld=null,t=l4(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(lk(),r===l){n=uP(e,n,t);break e}uo(e,n,r,t)}n=n.child}return n;case 5:return at(n),null===e&&lg(n),r=n.type,l=n.pendingProps,a=null!==e?e.memoizedProps:null,u=l.children,rb(r,l)?u=null:null!==a&&rb(r,a)&&(n.flags|=32),ud(e,n),uo(e,n,u,t),n.child;case 6:return null===e&&lg(n),null;case 13:return uk(e,n,t);case 4:return ae(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=l3(n,null,r,t):uo(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:lx(r,l),ui(e,n,r,l,t);case 7:return uo(e,n,n.pendingProps,t),n.child;case 8:case 12:return uo(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,a=n.memoizedProps,u=l.value,rB(lE,r._currentValue),r._currentValue=u,null!==a){if(tD(a.value,u)){if(a.children===l.children&&!rQ.current){n=uP(e,n,t);break e}}else for(null!==(a=n.child)&&(a.return=n);null!==a;){var o=a.dependencies;if(null!==o){u=a.child;for(var i=o.firstContext;null!==i;){if(i.context===r){if(1===a.tag){(i=l$(-1,t&-t)).tag=2;var s=a.updateQueue;if(null!==s){var c=(s=s.shared).pending;null===c?i.next=i:(i.next=c.next,c.next=i),s.pending=i}}a.lanes|=t,null!==(i=a.alternate)&&(i.lanes|=t),lT(a.return,t,n),o.lanes|=t;break}i=i.next}}else if(10===a.tag)u=a.type===n.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(f(341));u.lanes|=t,null!==(o=u.alternate)&&(o.lanes|=t),lT(u,t,n),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===n){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}}uo(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,lL(n,t),r=r(l=lR(l)),n.flags|=1,uo(e,n,r,t),n.child;case 14:return l=lx(r=n.type,n.pendingProps),l=lx(r.type,l),us(e,n,r,l,t);case 15:return uc(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:lx(r,l),uC(e,n),n.tag=1,rY(r)?(e=!0,rJ(n)):e=!1,lL(n,t),lX(n,r,l),lZ(n,r,l,t),uh(null,n,r,!0,e,t);case 19:return u_(e,n,t);case 22:return uf(e,n,t)}throw Error(f(156,n.tag))};var o9="function"==typeof reportError?reportError:function(e){console.error(e)};function ie(e){this._internalRoot=e}function it(e){this._internalRoot=e}function ir(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function il(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ia(){}function iu(e,n,t,r,l){var a=t._reactRootContainer;if(a){var u=a;if("function"==typeof l){var o=l;l=function(){var e=o6(u);o.call(e)}}o8(n,u,e,l)}else u=function(e,n,t,r,l){if(l){if("function"==typeof r){var a=r;r=function(){var e=o6(u);a.call(e)}}var u=o4(n,r,e,0,null,!1,!1,"",ia);return e._reactRootContainer=u,e[rL]=u.current,ra(8===e.nodeType?e.parentNode:e),oz(),u}for(;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var o=r;r=function(){var e=o6(i);o.call(e)}}var i=o2(e,0,!1,null,null,!1,!1,"",ia);return e._reactRootContainer=i,e[rL]=i.current,ra(8===e.nodeType?e.parentNode:e),oz(function(){o8(n,i,t,r)}),i}(t,n,e,l,r);return o6(u)}it.prototype.render=ie.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(f(409));o8(e,n,null,null)},it.prototype.unmount=ie.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;oz(function(){o8(null,e,null,null)}),n[rL]=null}},it.prototype.unstable_scheduleHydration=function(e){if(e){var n=nh();e={blockedOn:null,target:e,priority:n};for(var t=0;t<nE.length&&0!==n&&n<nE[t].priority;t++);nE.splice(t,0,e),0===t&&nN(e)}},nd=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=nr(n.pendingLanes);0!==t&&(ns(n,1|t),oS(n,eJ()),0==(6&u3)&&(oo=eJ()+500,r8()))}break;case 13:oz(function(){var n=lD(e,1);null!==n&&ow(n,e,1,ob())}),o7(e,1)}},np=function(e){if(13===e.tag){var n=lD(e,134217728);null!==n&&ow(n,e,134217728,ob()),o7(e,134217728)}},nm=function(e){if(13===e.tag){var n=ok(e),t=lD(e,n);null!==t&&ow(t,e,n,ob()),o7(e,n)}},nh=function(){return nc},ng=function(e,n){var t=nc;try{return nc=e,n()}finally{nc=t}},e_=function(e,n,t){switch(n){case"input":if(en(e,t),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=rU(r);if(!l)throw Error(f(90));X(r),en(r,l)}}}break;case"textarea":ei(e,t);break;case"select":null!=(n=t.value)&&ea(e,!!t.multiple,n,!1)}},eL=oN,eR=oz;var io={findFiberByHostInstance:rO,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ii={bundleType:io.bundleType,version:io.version,rendererPackageName:io.rendererPackageName,rendererConfig:io.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=eK(e))?null:e.stateNode},findFiberByHostInstance:io.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!is.isDisabled&&is.supportsFiber)try{e6=is.inject(ii),e5=is}catch(e){}}n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={usingClientEntryPoint:!1,Events:[rD,rI,rU,ez,eT,oN]},n.createPortal=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ir(n))throw Error(f(200));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:N,key:null==r?null:""+r,children:e,containerInfo:n,implementation:null}}(e,n,null,t)},n.createRoot=function(e,n){if(!ir(e))throw Error(f(299));var t=!1,r="",l=o9;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),n=o2(e,1,!1,null,null,t,!1,r,l),e[rL]=n.current,ra(8===e.nodeType?e.parentNode:e),new ie(n)},n.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if("function"==typeof e.render)throw Error(f(188));throw Error(f(268,e=Object.keys(e).join(",")))}return e=null===(e=eK(n))?null:e.stateNode},n.flushSync=function(e){return oz(e)},n.hydrate=function(e,n,t){if(!il(n))throw Error(f(200));return iu(null,e,n,!0,t)},n.hydrateRoot=function(e,n,t){if(!ir(e))throw Error(f(405));var r=null!=t&&t.hydratedSources||null,l=!1,a="",u=o9;if(null!=t&&(!0===t.unstable_strictMode&&(l=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(u=t.onRecoverableError)),n=o4(n,null,e,1,null!=t?t:null,l,!1,a,u),e[rL]=n.current,ra(e),r)for(e=0;e<r.length;e++)l=(l=(t=r[e])._getVersion)(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l);return new it(n)},n.render=function(e,n,t){if(!il(n))throw Error(f(200));return iu(null,e,n,!1,t)},n.unmountComponentAtNode=function(e){if(!il(e))throw Error(f(40));return!!e._reactRootContainer&&(oz(function(){iu(null,null,e,!1,function(){e._reactRootContainer=null,e[rL]=null})}),!0)},n.unstable_batchedUpdates=oN,n.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!il(t))throw Error(f(200));if(null==e||void 0===e._reactInternals)throw Error(f(38));return iu(e,n,t,!1,r)},n.version="18.2.0-next-9e3b772b8-20220608"},7029:function(e,n,t){var r=t(8316);n.createRoot=r.createRoot,n.hydrateRoot=r.hydrateRoot},8316:function(e,n,t){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(2967)},1837:function(e,n,t){/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=t(2784),l=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var r,a={},s=null,c=null;for(r in void 0!==t&&(s=""+t),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(c=n.ref),n)u.call(n,r)&&!i.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:l,type:e,key:s,ref:c,props:a,_owner:o.current}}n.Fragment=a,n.jsx=s,n.jsxs=s},3426:function(e,n){/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}function y(){}function b(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var k=b.prototype=new y;k.constructor=b,h(k,v.prototype),k.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,n,r){var l,a={},u=null,o=null;if(null!=n)for(l in void 0!==n.ref&&(o=n.ref),void 0!==n.key&&(u=""+n.key),n)S.call(n,l)&&!E.hasOwnProperty(l)&&(a[l]=n[l]);var i=arguments.length-2;if(1===i)a.children=r;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(l in i=e.defaultProps)void 0===a[l]&&(a[l]=i[l]);return{$$typeof:t,type:e,key:u,ref:o,props:a,_owner:x.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var P=/\/+/g;function N(e,n){var t,r;return"object"==typeof e&&null!==e&&null!=e.key?(t=""+e.key,r={"=":"=0",":":"=2"},"$"+t.replace(/[=:]/g,function(e){return r[e]})):n.toString(36)}function z(e,n,l){if(null==e)return e;var a=[],u=0;return!function e(n,l,a,u,o){var i,s,c,f=typeof n;("undefined"===f||"boolean"===f)&&(n=null);var d=!1;if(null===n)d=!0;else switch(f){case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case t:case r:d=!0}}if(d)return o=o(d=n),n=""===u?"."+N(d,0):u,w(o)?(a="",null!=n&&(a=n.replace(P,"$&/")+"/"),e(o,l,a,"",function(e){return e})):null!=o&&(C(o)&&(i=o,s=a+(!o.key||d&&d.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+n,o={$$typeof:t,type:i.type,key:s,ref:i.ref,props:i.props,_owner:i._owner}),l.push(o)),1;if(d=0,u=""===u?".":u+":",w(n))for(var m=0;m<n.length;m++){var h=u+N(f=n[m],m);d+=e(f,l,a,h,o)}else if("function"==typeof(h=null===(c=n)||"object"!=typeof c?null:"function"==typeof(c=p&&c[p]||c["@@iterator"])?c:null))for(n=h.call(n),m=0;!(f=n.next()).done;)h=u+N(f=f.value,m++),d+=e(f,l,a,h,o);else if("object"===f)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(l=String(n))?"object with keys {"+Object.keys(n).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.");return d}(e,a,"","",function(e){return n.call(l,e,u++)}),a}function T(e){if(-1===e._status){var n=e._result;(n=n()).then(function(n){(0===e._status||-1===e._status)&&(e._status=1,e._result=n)},function(n){(0===e._status||-1===e._status)&&(e._status=2,e._result=n)}),-1===e._status&&(e._status=0,e._result=n)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},R={transition:null};n.Children={map:z,forEach:function(e,n,t){z(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return z(e,function(){n++}),n},toArray:function(e){return z(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=v,n.Fragment=l,n.Profiler=u,n.PureComponent=b,n.StrictMode=a,n.Suspense=c,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:R,ReactCurrentOwner:x},n.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l=h({},e.props),a=e.key,u=e.ref,o=e._owner;if(null!=n){if(void 0!==n.ref&&(u=n.ref,o=x.current),void 0!==n.key&&(a=""+n.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in n)S.call(n,s)&&!E.hasOwnProperty(s)&&(l[s]=void 0===n[s]&&void 0!==i?i[s]:n[s])}var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){i=Array(s);for(var c=0;c<s;c++)i[c]=arguments[c+2];l.children=i}return{$$typeof:t,type:e.type,key:a,ref:u,props:l,_owner:o}},n.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},n.createElement=_,n.createFactory=function(e){var n=_.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:s,render:e}},n.isValidElement=C,n.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:T}},n.memo=function(e,n){return{$$typeof:f,type:e,compare:void 0===n?null:n}},n.startTransition=function(e){var n=R.transition;R.transition={};try{e()}finally{R.transition=n}},n.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},n.useCallback=function(e,n){return L.current.useCallback(e,n)},n.useContext=function(e){return L.current.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e){return L.current.useDeferredValue(e)},n.useEffect=function(e,n){return L.current.useEffect(e,n)},n.useId=function(){return L.current.useId()},n.useImperativeHandle=function(e,n,t){return L.current.useImperativeHandle(e,n,t)},n.useInsertionEffect=function(e,n){return L.current.useInsertionEffect(e,n)},n.useLayoutEffect=function(e,n){return L.current.useLayoutEffect(e,n)},n.useMemo=function(e,n){return L.current.useMemo(e,n)},n.useReducer=function(e,n,t){return L.current.useReducer(e,n,t)},n.useRef=function(e){return L.current.useRef(e)},n.useState=function(e){return L.current.useState(e)},n.useSyncExternalStore=function(e,n,t){return L.current.useSyncExternalStore(e,n,t)},n.useTransition=function(){return L.current.useTransition()},n.version="18.2.0"},2784:function(e,n,t){e.exports=t(3426)},2322:function(e,n,t){e.exports=t(1837)},6475:function(e,n){/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function t(e,n){var t=e.length;for(e.push(n);0<t;){var r=t-1>>>1,l=e[r];if(0<a(l,n))e[r]=n,e[t]=l,t=r;else break}}function r(e){return 0===e.length?null:e[0]}function l(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;for(var r=0,l=e.length,u=l>>>1;r<u;){var o=2*(r+1)-1,i=e[o],s=o+1,c=e[s];if(0>a(i,t))s<l&&0>a(c,i)?(e[r]=c,e[s]=t,r=s):(e[r]=i,e[o]=t,r=o);else if(s<l&&0>a(c,t))e[r]=c,e[s]=t,r=s;else break}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var u,o=performance;n.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();n.unstable_now=function(){return i.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,k="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var n=r(f);null!==n;){if(null===n.callback)l(f);else if(n.startTime<=e)l(f),n.sortIndex=n.expirationTime,t(c,n);else break;n=r(f)}}function S(e){if(v=!1,w(e),!g){if(null!==r(c))g=!0,M(x);else{var n=r(f);null!==n&&F(S,n.startTime-e)}}}function x(e,t){g=!1,v&&(v=!1,b(C),C=-1),h=!0;var a=m;try{for(w(t),p=r(c);null!==p&&(!(p.expirationTime>t)||e&&!z());){var u=p.callback;if("function"==typeof u){p.callback=null,m=p.priorityLevel;var o=u(p.expirationTime<=t);t=n.unstable_now(),"function"==typeof o?p.callback=o:p===r(c)&&l(c),w(t)}else l(c);p=r(c)}if(null!==p)var i=!0;else{var s=r(f);null!==s&&F(S,s.startTime-t),i=!1}return i}finally{p=null,m=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,_=null,C=-1,P=5,N=-1;function z(){return!(n.unstable_now()-N<P)}function T(){if(null!==_){var e=n.unstable_now();N=e;var t=!0;try{t=_(!0,e)}finally{t?u():(E=!1,_=null)}}else E=!1}if("function"==typeof k)u=function(){k(T)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=T,u=function(){R.postMessage(null)}}else u=function(){y(T,0)};function M(e){_=e,E||(E=!0,u())}function F(e,t){C=y(function(){e(n.unstable_now())},t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){g||h||(g=!0,M(x))},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},n.unstable_getCurrentPriorityLevel=function(){return m},n.unstable_getFirstCallbackNode=function(){return r(c)},n.unstable_next=function(e){switch(m){case 1:case 2:case 3:var n=3;break;default:n=m}var t=m;m=n;try{return e()}finally{m=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=m;m=e;try{return n()}finally{m=t}},n.unstable_scheduleCallback=function(e,l,a){var u=n.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?u+a:u,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:d++,callback:l,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>u?(e.sortIndex=a,t(f,e),null===r(c)&&e===r(f)&&(v?(b(C),C=-1):v=!0,F(S,a-u))):(e.sortIndex=o,t(c,e),g||h||(g=!0,M(x))),e},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(e){var n=m;return function(){var t=m;m=n;try{return e.apply(this,arguments)}finally{m=t}}}},4616:function(e,n,t){e.exports=t(6475)}}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/main-2f8ae24bc202a544.js b/apps/web/.next/static/chunks/main-2f8ae24bc202a544.js new file mode 100644 index 00000000..948b8659 --- /dev/null +++ b/apps/web/.next/static/chunks/main-2f8ae24bc202a544.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{8749:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},1541:function(){"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]})},830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(4441),o=r(9864);function a(e,t){return(0,o.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)},8177:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(9864);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)},9111:function(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,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},395:function(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,{addMessageListener:function(){return o},sendMessage:function(){return a},connectHMR:function(){return u}});let n=[];function o(e){n.push(e)}function a(e){if(r&&r.readyState===r.OPEN)return r.send(e)}let i=0;function u(e){!function t(){let o;function a(){if(r.onerror=null,r.onclose=null,r.close(),++i>25){window.location.reload();return}clearTimeout(o),o=setTimeout(t,i>5?5e3:1e3)}r&&r.close();let{hostname:u,port:l}=location,s=function(e){let t=location.protocol;try{t=new URL(e).protocol}catch(e){}return"http:"===t?"ws":"wss"}(e.assetPrefix||""),c=e.assetPrefix.replace(/^\/+/,""),f=s+"://"+u+":"+l+(c?"/"+c:"");c.startsWith("http")&&(f=s+"://"+c.split("://",2)[1]),(r=new window.WebSocket(""+f+e.path)).onopen=function(){i=0,window.console.log("[HMR] connected")},r.onerror=a,r.onclose=a,r.onmessage=function(e){let t=JSON.parse(e.data);for(let e of n)e(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)},6440:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(5924);function o(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)},4249:function(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,{DOMAttributeNames:function(){return n},isEqualNode:function(){return a},default:function(){return i}});let n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(e){let{type:t,props:r}=e,o=document.createElement(t);for(let e in r){if(!r.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===r[e])continue;let a=n[e]||e.toLowerCase();"script"===t&&("async"===a||"defer"===a||"noModule"===a)?o[a]=!!r[e]:o.setAttribute(a,r[e])}let{children:a,dangerouslySetInnerHTML:i}=r;return i?o.innerHTML=i.__html||"":a&&(o.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),o}function a(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 i(){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;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 n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),u=[];for(let t=0,r=n.previousElementSibling;t<i;t++,r=(null==r?void 0:r.previousElementSibling)||null){var l;(null==r?void 0:null==(l=r.tagName)?void 0:l.toLowerCase())===e&&u.push(r)}let s=t.map(o).filter(e=>{for(let t=0,r=u.length;t<r;t++)if(a(u[t],e))return u.splice(t,1),!1;return!0});u.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>r.insertBefore(e,n)),n.content=(i-u.length+s.length).toString()},("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)},7340:function(e,t,r){"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=r(6794);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{version:function(){return G},router:function(){return n},emitter:function(){return z},initialize:function(){return $},hydrate:function(){return ef}});let _=r(3219),g=r(2322);r(1541);let y=_._(r(2784)),b=_._(r(7029)),v=r(421),P=_._(r(634)),E=r(1413),S=r(4077),j=r(9294),w=r(7337),O=r(1880),R=r(5443),T=r(7285),M=_._(r(4249)),x=_._(r(3681)),I=_._(r(4613)),C=r(5590),A=r(6182),L=r(274),N=r(5182),D=r(2576),k=r(6440),F=r(4362),B=r(5706),U=r(2295),H=_._(r(9283)),W=_._(r(6746)),q=_._(r(2704)),G="14.1.0",z=(0,P.default)(),V=e=>[].slice.call(e),X=!1;class Y extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,j.isDynamicRoute)(n.pathname)||location.search||X)||o.props&&o.props.__N_SSG&&(location.search||X))&&n.replace(n.pathname+"?"+String((0,w.assign)((0,w.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!X}).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 $(e){void 0===e&&(e={}),W.default.onSpanEnd(q.default),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,O.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,R.getURL)(),(0,k.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(2314);e(o.scriptLoader)}i=new x.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,M.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function K(e,t){return(0,g.jsx)(e,{...t})}function J(e){var t;let{children:r}=e,o=y.default.useMemo(()=>(0,B.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(Y,{fn:e=>Z({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(F.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(U.SearchParamsContext.Provider,{value:(0,B.adaptForSearchParams)(n),children:(0,g.jsx)(B.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(U.PathParamsContext.Provider,{value:(0,B.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,A.makePublicRouterInstance)(n),children:(0,g.jsx)(v.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:!1},children:r})})})})})})})})}let Q=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(J,{children:K(e,r)})};function Z(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>m._(r(8859))).then(n=>Promise.resolve().then(()=>m._(r(7230))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=Q(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,R.loadGetInitialProps)(t,f)).then(t=>es({...e,err:u,Component:l,styleSheets:s,props:t}))})}function ee(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let et={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},er={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},en=null,eo=!0;function ea(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(e=>performance.clearMarks(e))}function ei(){R.ST&&(performance.mark(et.afterHydrate),performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),d&&performance.getEntriesByName(er.hydration).forEach(d),ea())}function eu(){if(!R.ST)return;performance.mark(et.afterRender);let e=performance.getEntriesByName(et.routeChange,"mark");e.length&&(performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.routeChangeToRender,e[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),d&&(performance.getEntriesByName(er.render).forEach(d),performance.getEntriesByName(er.routeChangeToRender).forEach(d))),ea(),[er.routeChangeToRender,er.render].forEach(e=>performance.clearMeasures(e)))}function el(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,I.default)(d)},[]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,l="initial"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=V(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map(e=>e.getAttribute("data-n-href"))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");l.forEach(e=>{let{href:r,text:o}=e;if(!t.has(r)){let e=document.createElement("style");e.setAttribute("data-n-href",r),e.setAttribute("media","x"),n&&e.setAttribute("nonce",n),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ee,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=V(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&&l.forEach(e=>{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),V(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(J,{children:[K(r,f),(0,g.jsx)(T.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});return!function(e,t){R.ST&&performance.mark(et.beforeRender);let r=t(eo?ei:eu);en?(0,y.default.startTransition)(()=>{en.render(r)}):(en=b.default.hydrateRoot(e,r,{onRecoverableError:H.default}),eo=!1)}(u,e=>(0,g.jsx)(el,{callbacks:[e,h],children:m})),p}async function ec(e){if(e.err){await Z(e);return}try{await es(e)}catch(r){let t=(0,L.getProperError)(r);if(t.cancelled)throw t;await Z({...e,err:t})}}async function ef(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,L.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,A.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:Q,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ec(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),X=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ec(r)}("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)},6918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(378);let n=r(7340);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)},9864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(7870),o=r(6242),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(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)},9283:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(2128);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3681:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(3219),o=r(830),a=r(8331),i=n._(r(1344)),u=r(8177),l=r(9294),s=r(7599),c=r(7870),f=r(8213);r(6114);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw Error('Route name should start with a "/", got "'+m+'"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(f,h,d).result:m)}_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,f.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)},4613:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let o=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let a=!1;function i(e){n&&n(e)}let u=e=>{if(n=e,!a)for(let e of(a=!0,o))try{let t;t||(t=r(6590)),t["on"+e](i)}catch(t){console.warn("Failed to track "+e+" web-vital",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)},7285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(2784),o=r(8316),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.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)},2576:function(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(6440),("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)},3646:function(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(6242),("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)},342:function(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,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});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)},4411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(7337),o=r(4214),a=r(8942),i=r(5443),u=r(9864),l=r(8467),s=r(9226),c=r(8331);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("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)},5590:function(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 s}});let n=r(3219),o=r(2322),a=n._(r(2784)),i=r(6182),u={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,i.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,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=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)},8213:function(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,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return p},createRouteLoader:function(){return m}}),r(3219),r(1344);let n=r(1066),o=r(342),a=r(8749);function i(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,u,{})}function s(e){return e&&u in e}let c=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 d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function h(e,t){return p().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function u(e){{var t;let n=r.get(e.toString());return 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(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return i(r,a,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(u)),Promise.all(o.map(s))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).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==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.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)},6182:function(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},default:function(){return p},withRouter:function(){return l.default},useRouter:function(){return h},createRouter:function(){return m},makePublicRouterInstance:function(){return _}});let n=r(3219),o=n._(r(2784)),a=n._(r(6977)),i=r(1413),u=n._(r(274)),l=n._(r(735)),s={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"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return d()[e](...r)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{s.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 o="on"+e.charAt(0).toUpperCase()+e.substring(1);if(s[o])try{s[o](...r)}catch(e){console.error("Error when running the Router event: "+o),console.error((0,u.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let p=s;function h(){let e=o.default.useContext(i.RouterContext);if(!e)throw Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");return e}function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.router=new a.default(...t),s.readyCallbacks.forEach(e=>e()),s.readyCallbacks=[],s.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,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];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)},2314:function(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,{handleClientScriptLoad:function(){return _},initScriptLoader:function(){return g},default:function(){return b}});let n=r(3219),o=r(6794),a=r(2322),i=n._(r(8316)),u=o._(r(2784)),l=r(421),s=r(4249),c=r(342),f=new Map,d=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],h=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{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)})}},m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:u="afterInteractive",onError:l,stylesheets:c}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(m)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(g.innerHTML=a.__html||"",_()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(g.src=t,f.set(t,y)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();g.setAttribute(e,n)}"worker"===u&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",u),c&&h(c),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:p,...h}=e,{updateScripts:_,scripts:g,getIsSsr:y,appDir:b,nonce:v}=(0,u.useContext)(l.HeadManagerContext),P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;P.current||(o&&e&&d.has(e)&&o(),P.current=!0)},[o,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!E.current&&("afterInteractive"===s?m(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(_?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h}]),_(g)):y&&y()?d.add(t||r):y&&!y()&&m(e)),b){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return r?(i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"}),(0,a.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===s&&r&&i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("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)},2704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(395);function o(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,n.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("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)},6746:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(3219)._(r(634));class o{end(e){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(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 i=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)},1066:function(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)},378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8749),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)},735:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(3219);let n=r(2322);r(2784);let o=r(6182);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.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)},7230:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(3219),o=r(2322),a=n._(r(2784)),i=r(5443);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,("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)},8859:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(3219),o=r(2322),a=n._(r(2784)),i=n._(r(5883)),u={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let s={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"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.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,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (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)},9028:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(3219)._(r(2784)).default.createContext({})},1899:function(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}})},4362:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return i},TemplateContext:function(){return u},MissingSlotContext:function(){return l}});let n=r(3219)._(r(2784)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},1664:function(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),1540483477),t^=t>>>13,t=Math.imul(t,1540483477);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)}}},6114:function(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,{MODERN_BROWSERSLIST_TARGET:function(){return n.default},COMPILER_NAMES:function(){return o},INTERNAL_HEADERS:function(){return a},COMPILER_INDEXES:function(){return i},PHASE_EXPORT:function(){return u},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return s},PHASE_DEVELOPMENT_SERVER:function(){return c},PHASE_TEST:function(){return f},PHASE_INFO:function(){return d},PAGES_MANIFEST:function(){return p},APP_PATHS_MANIFEST:function(){return h},APP_PATH_ROUTES_MANIFEST:function(){return m},BUILD_MANIFEST:function(){return _},APP_BUILD_MANIFEST:function(){return g},FUNCTIONS_CONFIG_MANIFEST:function(){return y},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return b},NEXT_FONT_MANIFEST:function(){return v},EXPORT_MARKER:function(){return P},EXPORT_DETAIL:function(){return E},PRERENDER_MANIFEST:function(){return S},ROUTES_MANIFEST:function(){return j},IMAGES_MANIFEST:function(){return w},SERVER_FILES_MANIFEST:function(){return O},DEV_CLIENT_PAGES_MANIFEST:function(){return R},MIDDLEWARE_MANIFEST:function(){return T},DEV_MIDDLEWARE_MANIFEST:function(){return M},REACT_LOADABLE_MANIFEST:function(){return x},FONT_MANIFEST:function(){return I},SERVER_DIRECTORY:function(){return C},CONFIG_FILES:function(){return A},BUILD_ID_FILE:function(){return L},BLOCKED_PAGES:function(){return N},CLIENT_PUBLIC_FILES_PATH:function(){return D},CLIENT_STATIC_FILES_PATH:function(){return k},STRING_LITERAL_DROP_BUNDLE:function(){return F},NEXT_BUILTIN_DOCUMENT:function(){return B},BARREL_OPTIMIZATION_PREFIX:function(){return U},CLIENT_REFERENCE_MANIFEST:function(){return H},SERVER_REFERENCE_MANIFEST:function(){return W},MIDDLEWARE_BUILD_MANIFEST:function(){return q},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return z},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return V},APP_CLIENT_INTERNALS:function(){return X},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return $},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return K},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return J},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return Q},EDGE_RUNTIME_WEBPACK:function(){return Z},STATIC_PROPS_ID:function(){return ee},SERVER_PROPS_ID:function(){return et},GOOGLE_FONT_PROVIDER:function(){return er},OPTIMIZED_FONT_PROVIDERS:function(){return en},DEFAULT_SERIF_FONT:function(){return eo},DEFAULT_SANS_SERIF_FONT:function(){return ea},STATIC_STATUS_PAGES:function(){return ei},TRACE_OUTPUT_VERSION:function(){return eu},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return el},RSC_MODULE_TYPES:function(){return es},EDGE_UNSUPPORTED_NODE_APIS:function(){return ec},SYSTEM_ENTRYPOINTS:function(){return ef}});let n=r(3219)._(r(2028)),o={client:"client",server:"server",edgeServer:"edge-server"},a=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u="phase-export",l="phase-production-build",s="phase-production-server",c="phase-development-server",f="phase-test",d="phase-info",p="pages-manifest.json",h="app-paths-manifest.json",m="app-path-routes-manifest.json",_="build-manifest.json",g="app-build-manifest.json",y="functions-config-manifest.json",b="subresource-integrity-manifest",v="next-font-manifest",P="export-marker.json",E="export-detail.json",S="prerender-manifest.json",j="routes-manifest.json",w="images-manifest.json",O="required-server-files.json",R="_devPagesManifest.json",T="middleware-manifest.json",M="_devMiddlewareManifest.json",x="react-loadable-manifest.json",I="font-manifest.json",C="server",A=["next.config.js","next.config.mjs"],L="BUILD_ID",N=["/_document","/_app","/_error"],D="public",k="static",F="__NEXT_DROP_CLIENT_FILE__",B="__NEXT_BUILTIN_DOCUMENT__",U="__barrel_optimize__",H="client-reference-manifest",W="server-reference-manifest",q="middleware-build-manifest",G="middleware-react-loadable-manifest",z="main",V=""+z+"-app",X="app-pages-internals",Y="react-refresh",$="amp",K="webpack",J="polyfills",Q=Symbol(J),Z="edge-runtime-webpack",ee="__N_SSG",et="__N_SSP",er="https://fonts.googleapis.com/",en=[{url:er,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],eo={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ea={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ei=["/500"],eu=1,el=6e3,es={client:"client",server:"server"},ec=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],ef=new Set([z,Y,$,V]);("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)},9310:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},421:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(3219)._(r(2784)).default.createContext({})},5883:function(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,{defaultHead:function(){return f},default:function(){return m}});let n=r(3219),o=r(6794),a=r(2322),i=o._(r(2784)),u=n._(r(566)),l=r(9028),s=r(421),c=r(1899);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(2862);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(o.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?a=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;("name"!==t||!i)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}}return a}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,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)},2295:function(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,{SearchParamsContext:function(){return o},PathnameContext:function(){return a},PathParamsContext:function(){return i}});let n=r(2784),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},6568:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},5182:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(3219)._(r(2784)),o=r(7177),a=n.default.createContext(o.imageConfigDefault)},7177:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},4688:function(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}})},2128:function(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 o}});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 o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},634:function(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),o=1;o<r;o++)n[o-1]=arguments[o];(e[t]||[]).slice().map(e=>{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},2028:function(e){"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},9719:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(9226),o=r(7416);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},3101:function(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}})},7416:function(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}})},1413:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(3219)._(r(2784)).default.createContext(null)},5706:function(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,{adaptForAppRouterInstance:function(){return c},adaptForSearchParams:function(){return f},adaptForPathParams:function(){return d},PathnameContextProviderAdapter:function(){return p}});let n=r(6794),o=r(2322),a=n._(r(2784)),i=r(2295),u=r(9226),l=r(9946),s=r(2007);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},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 f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.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,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},6977:function(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 V},matchesMiddleware:function(){return N},createKey:function(){return q}});let n=r(3219),o=r(6794),a=r(7870),i=r(8213),u=r(2314),l=o._(r(274)),s=r(9719),c=r(6568),f=n._(r(634)),d=r(5443),p=r(9294),h=r(7599);r(2094);let m=r(1539),_=r(2007),g=r(4214);r(9111);let y=r(6242),b=r(8177),v=r(3646),P=r(2576),E=r(830),S=r(6440),j=r(4411),w=r(4219),O=r(713),R=r(2010),T=r(5780),M=r(8467),x=r(9075),I=r(8942),C=r(8331),A=r(4077);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function N(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,o=(0,E.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function D(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function k(e,t,r){let[n,o]=(0,j.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=D(n),o=o?D(o):o;let l=i?n:(0,E.addBasePath)(n),s=r?D((0,j.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,E.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,_.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await N(e)||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,P.removeBasePath)(f),r.router.locales).pathname)){let r=(0,O.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});f=(0,E.addBasePath)(r.pathname),t.pathname=f}if(!i.includes(s)){let e=F(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:F((0,c.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,m.getRouteMatcher)((0,_.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,R.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,y.parsePath)(s),t=(0,R.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(e.pathname,{nextConfig:n,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:s})}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}}catch(e){return null}}let U=Symbol("SSG_DATA_NOT_FOUND");function H(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:u,parseJSON:l,persistCache:s,isBackground:c,unstable_skipClientCache:f}=e,{href:d}=new URL(r,window.location.href),p=e=>(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(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,u?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:d}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:d};if(404===t.status){var n;if(null==(n=H(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:U},response:t,text:e,cacheKey:d}}let o=Error("Failed to load static props");throw u||(0,i.markAssetError)(o),o}return{dataHref:r,json:l?H(e):null,response:t,text:e,cacheKey:d}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[d],e)).catch(e=>{throw f||delete n[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return f&&s?p({}).then(e=>(n[d]=Promise.resolve(e),e)):void 0!==n[d]?n[d]:n[d]=p(c?{method:"HEAD"}:{})}function q(){return Math.random().toString(36).slice(2,10)}function G(e){let{url:t,router:r}=e;if(t===(0,E.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===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}=k(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let l=!1,s=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,E.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,u;for(let e of(l=l||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f)),[t,f])){let t=e.split("/");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&(null==(u=this._bfl_d)?void 0:u.contains(r))){s=!0;break}}}if(l||s){if(n)return!0;return G({url:(0,E.addBasePath)((0,b.addLocale)(e,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,j,w,O,R,x,A;let D,B;if(!(0,M.isLocalURL)(t))return G({url:t,router:this}),!1;let H=1===n._h;H||n.shallow||await this._bfl(r,void 0,n.locale);let W=H||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,q={...this.state},z=!0!==this.isReady;this.isReady=!0;let X=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let Y=q.locale;d.ST&&performance.mark("routeChange");let{shallow:$=!1,scroll:K=!0}=n,J={shallow:$};this._inFlightRoute&&this.clc&&(X||V.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,E.addBasePath)((0,b.addLocale)((0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n.locale,this.defaultLocale));let Q=(0,v.removeLocale)((0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,q.locale);this._inFlightRoute=r;let Z=Y!==q.locale;if(!H&&this.onlyAHashChange(Q)&&!Z){q.asPath=Q,V.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),K&&this.scrollToHash(Q);try{await this.set(q,this.components[q.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return V.events.emit("hashChangeComplete",r,J),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[D,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return G({url:r,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return G({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,_.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await N({asPath:r,locale:q.locale,router:this});if(H&&eu&&(W=!1),W&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=F(et,D),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,E.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,M.isLocalURL)(r))return G({url:r,router:this}),!1;en=(0,v.removeLocale)((0,P.removeBasePath)(en),q.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,_.getRouteRegex)(eo);el=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,C.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw 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 ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}H||V.events.emit("routeChangeStart",r,J);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:q.locale,isPreview:q.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:ei});if(H||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,q.locale),"route"in a&&eu){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,E.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,q.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,_.getRouteRegex)(et),n=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return G({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,D);let{url:o,as:a}=k(this,t,t);return this.change(e,o,a,n)}return G({url:t,router:this}),new Promise(()=>{})}if(q.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===U){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}H&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(j=a.props)?void 0:j.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&q.route===(null!=(w=a.route)?w:eo),d=null!=(O=n.scroll)?O:!H&&!s,g=null!=o?o:d?{x:0,y:0}:null,y={...q,route:eo,pathname:et,query:er,asPath:Q,isFallback:!1};if(H&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isQueryUpdating:H&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(x=self.__NEXT_DATA__.props)?void 0:null==(R=x.pageProps)?void 0:R.statusCode)===500&&(null==(A=a.props)?void 0:A.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return!0}if(V.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n),!(H&&!g&&!z&&!Z&&(0,T.compareRouterStates)(y,this.state))){try{await this.set(y,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw H||V.events.emit("routeChangeError",a.error,Q,J),a.error;H||V.events.emit("routeChangeComplete",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:q()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,o),G({url:n,router:this}),L();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:_}=e,y=t;try{var b,v,E,S;let e=z({route:y,router:this}),t=this.components[y];if(u.shallow&&t&&this.route===y)return t;f&&(t=void 0);let l=!t||"initial"in t?void 0:t,j={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},O=h&&!m?null:await B({fetchData:()=>W(j),asPath:_?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),h&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(v=O.effect)?void 0:v.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(E=O.effect)?void 0:E.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,P.removeBasePath)((0,c.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],u.shallow&&t&&this.route===y&&!f))return{...t,route:y}}if((0,w.isAPIRoute)(y))return G({url:o,router:this}),new Promise(()=>{});let R=l||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==O?void 0:null==(S=O.response)?void 0:S.headers.get("x-middleware-skip"),M=R.__N_SSG||R.__N_SSP;T&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:x,cacheKey:I}=await this._getData(async()=>{if(M){if((null==O?void 0:O.json)&&!T)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(R.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return R.__N_SSP&&j.dataHref&&I&&delete this.sdc[I],this.isPreview||!R.__N_SSG||h||W(Object.assign({},j,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),x.pageProps=Object.assign({},x.pageProps),R.props=x,R.route=y,R.query=n,R.resolvedAs=i,this.components[y]=R,R}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}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,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,A.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}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,x.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await N({asPath:t,locale:f,router:this});n.pathname=F(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,m.getRouteMatcher)((0,_.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let b=await B({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,u={...u,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let v=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(v).then(t=>!!t&&W({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),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"](v)])}async fetchComponent(e){let t=z({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=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return W({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.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,n,{initialProps:o,pageLoader:i,App:u,wrapApp:l,Component:s,err:c,subscription:f,isFallback:m,locale:_,locales:y,defaultLocale:b,domainLocales:v,isPreview:P}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=q(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,E.addBasePath)(this.asPath)||l!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let S=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:u,styleSheets:[]};{let{BloomFilter:e}=r(1664),t={numItems:4,errorRate:1e-4,numBits:77,numHashes:14,bitArray:[1,0,0,1,0,1,0,0,1,1,0,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,0,1,0,0,0,0,0,0,1,1,0,1,1,1,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,1,1,0,0,0,1]},n={numItems:1,errorRate:1e-4,numBits:20,numHashes:14,bitArray:[1,0,0,0,0,0,1,1,1,0,1,1,0,1,0,1,0,1,1,1]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=V.events,this.pageLoader=i;let j=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=l,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||!j&&!self.location.search),this.state={route:S,pathname:e,query:t,asPath:j?e:n,isPreview:!!P,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=N({router:this,locale:_,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},6616:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(4441),o=r(5924);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},4441:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(6242);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},601:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(6242);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},3927:function(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 i}});let n=r(3101),o=r(4151);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},9946:function(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}})},5780:function(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 o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},2010:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(7870),o=r(4441),a=r(601),i=r(6616);function u(e){let t=(0,i.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,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},4214:function(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},urlObjectKeys:function(){return i},formatWithValidation:function(){return u}});let n=r(6794)._(r(7337)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+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||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},1344:function(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}})},713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(6568),o=r(5103),a=r(5924);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}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!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},4077:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,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,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},9226:function(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,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(7064),o=r(9294)},8331:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(1539),o=r(2007);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},9075:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},9294:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(6520),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},8467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(5443),o=r(6440);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,o.hasBasePath)(r.pathname)}catch(e){return!1}}},8942:function(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}})},6242:function(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}})},7599:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(5443),o=r(7337);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:u,search:l,hash:s,href:c,origin:f}=new URL(e,a);if(f!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(u),search:l,hash:s,href:c.slice(r.origin.length)}}},5924:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(6242);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},7337:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),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];return r.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),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,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},5103:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(5924);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},7870:function(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}})},1539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(5443);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},2007:function(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,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});let n=r(6520),o=r(9310),a=r(7870);function i(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}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),r={},u=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:n,repeat:l}=i(a[1]);return r[e]={pos:u++,repeat:l,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:u++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function s(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=i(n),f=l.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),u?a[f]=""+u+l:a[f]=l;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split("/"),u=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&a){let[r]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:r,segment:a[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let r=c(e,t);return{...l(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=u(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},7064:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get: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 Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');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 Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._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()}},1880:function(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 o}});let n=()=>r;function o(e){r=e}},4151:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(2784),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{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)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5443:function(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,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return u},getDisplayName:function(){return l},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return _},MissingStaticPage:function(){return g},MiddlewareNotFoundError:function(){return y},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>o.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(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 f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h 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 b(e){return JSON.stringify({message:e.message,stack:e.stack})}},2862:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},6590:function(e){var t,r,n,o,a,i,u,l,s,c,f,d,p,h,m,_,g,y,b,v,P,E,S,j,w,O,R,T,M,x,I,C,A,L,N,D,k,F,B,U,H,W,q,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==t&&(t.ab="//"),r={},t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return v},getFID:function(){return x},getINP:function(){return W},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return S},onFCP:function(){return v},onFID:function(){return x},onINP:function(){return W},onLCP:function(){return G},onTTFB:function(){return V}}),l=-1,s=function(e){addEventListener("pageshow",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var r=c(),n="navigate";return l>=0?n="back-forward-cache":r&&(n=document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?"poor":u>r[0]?"needs-improvement":"good",e(t))}},_=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){_=e.timeStamp},!0)},b=function(){return _<0&&(_=g(),y(),s(function(){setTimeout(function(){_=g(),y()},0)})),{get firstHiddenTime(){return _}}},v=function(e,t){t=t||{};var r,n=[1800,3e3],o=b(),a=d("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(l&&l.disconnect(),e.startTime<o.firstHiddenTime&&(a.value=e.startTime-f(),a.entries.push(e),r(!0)))})},u=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName("first-contentful-paint")[0],l=u?null:p("paint",i);(u||l)&&(r=m(e,a,n,t.reportAllChanges),u&&i([u]),s(function(o){r=m(e,a=d("FCP"),n,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-o.timeStamp,r(!0)})})}))},P=!1,E=-1,S=function(e,t){t=t||{};var r=[.1,.25];P||(v(function(e){E=e.value}),P=!0);var n,o=function(t){E>-1&&e(t)},a=d("CLS",0),i=0,u=[],l=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},c=p("layout-shift",l);c&&(n=m(o,a,r,t.reportAllChanges),h(function(){l(c.takeRecords()),n(!0)}),s(function(){i=0,E=-1,n=m(o,a=d("CLS",0),r,t.reportAllChanges)}))},j={passive:!0,capture:!0},w=new Date,O=function(e,t){n||(n=t,o=e,a=new Date,M(removeEventListener),R())},R=function(){if(o>=0&&o<a-w){var e={entryType:"first-input",name:n.type,target:n.target,cancelable:n.cancelable,startTime:n.timeStamp,processingStart:n.timeStamp+o};i.forEach(function(t){t(e)}),i=[]}},T=function(e){if(e.cancelable){var t,r,n,o=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){O(o,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,j),removeEventListener("pointercancel",r,j)},addEventListener("pointerup",t,j),addEventListener("pointercancel",r,j)):O(o,e)}},M=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,T,j)})},x=function(e,t){t=t||{};var r,a=[100,300],u=b(),l=d("FID"),c=function(e){e.startTime<u.firstHiddenTime&&(l.value=e.processingStart-e.startTime,l.entries.push(e),r(!0))},f=function(e){e.forEach(c)},_=p("first-input",f);r=m(e,l,a,t.reportAllChanges),_&&h(function(){f(_.takeRecords()),_.disconnect()},!0),_&&s(function(){r=m(e,l=d("FID"),a,t.reportAllChanges),i=[],o=-1,n=null,M(addEventListener),i.push(c),R()})},I=0,C=1/0,A=0,L=function(e){e.forEach(function(e){e.interactionId&&(C=Math.min(C,e.interactionId),I=(A=Math.max(A,e.interactionId))?(A-C)/7+1:0)})},N=function(){return u?I:performance.interactionCount||0},D=function(){"interactionCount"in performance||u||(u=p("event",L,{type:"event",buffered:!0,durationThreshold:0}))},k=0,F=function(){return N()-k},B=[],U={},H=function(e){var t=B[B.length-1],r=U[e.interactionId];if(r||B.length<10||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};U[n.id]=n,B.push(n)}B.sort(function(e,t){return t.latency-e.latency}),B.splice(10).forEach(function(e){delete U[e.id]})}},W=function(e,t){t=t||{};var r=[200,500];D();var n,o=d("INP"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),"first-input"!==e.entryType||B.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(B.length-1,Math.floor(F()/50)),B[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=p("event",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&F()>0&&(o.value=0,o.entries=[]),n(!0)}),s(function(){B=[],k=N(),n=m(e,o=d("INP"),r,t.reportAllChanges)}))},q={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=b(),a=d("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();n<o.firstHiddenTime&&(a.value=n,a.entries=[t],r())}},u=p("largest-contentful-paint",i);if(u){r=m(e,a,n,t.reportAllChanges);var l=function(){q[a.id]||(i(u.takeRecords()),u.disconnect(),q[a.id]=!0,r(!0))};["keydown","click"].forEach(function(e){addEventListener(e,l,{once:!0,capture:!0})}),h(l,!0),s(function(o){r=m(e,a=d("LCP"),n,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-o.timeStamp,q[a.id]=!0,r(!0)})})})}},z=function e(t){document.prerendering?addEventListener("prerenderingchange",function(){return e(t)},!0):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},V=function(e,t){t=t||{};var r=[800,1800],n=d("TTFB"),o=m(e,n,r,t.reportAllChanges);z(function(){var a=c();if(a){if(n.value=Math.max(a.responseStart-f(),0),n.value<0||n.value>performance.now())return;n.entries=[a],o(!0),s(function(){(o=m(e,n=d("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},4219:function(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}})},274:function(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 o},getProperError:function(){return a}});let n=r(4688);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},6520:function(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 o},isInterceptionRouteAppPath:function(){return a},extractInterceptionRouteInformation:function(){return i}});let n=r(3927),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},2094:function(){},3219:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},6794:function(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 o(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 o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[774],function(){return e(e.s=6918)}),_N_E=e.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/main-app-6394067cfc5308ad.js b/apps/web/.next/static/chunks/main-app-6394067cfc5308ad.js new file mode 100644 index 00000000..826e1bf0 --- /dev/null +++ b/apps/web/.next/static/chunks/main-app-6394067cfc5308ad.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{871:function(e,n,t){Promise.resolve().then(t.t.bind(t,8950,23)),Promise.resolve().then(t.t.bind(t,5119,23)),Promise.resolve().then(t.t.bind(t,2172,23)),Promise.resolve().then(t.t.bind(t,3398,23)),Promise.resolve().then(t.t.bind(t,2533,23)),Promise.resolve().then(t.t.bind(t,9256,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[293,997],function(){return n(7220),n(871)}),_N_E=e.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/pages/_app-22ef1381f3010e9c.js b/apps/web/.next/static/chunks/pages/_app-22ef1381f3010e9c.js new file mode 100644 index 00000000..4dcf13d4 --- /dev/null +++ b/apps/web/.next/static/chunks/pages/_app-22ef1381f3010e9c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{1588:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return u(7230)}])}},function(n){var _=function(_){return n(n.s=_)};n.O(0,[774,179],function(){return _(1588),_(6182)}),_N_E=n.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/pages/_error-2312f57de16788ac.js b/apps/web/.next/static/chunks/pages/_error-2312f57de16788ac.js new file mode 100644 index 00000000..83a41f97 --- /dev/null +++ b/apps/web/.next/static/chunks/pages/_error-2312f57de16788ac.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{341:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(8859)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=341)}),_N_E=n.O()}]);
\ No newline at end of file diff --git a/apps/web/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js b/apps/web/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js new file mode 100644 index 00000000..3858b79f --- /dev/null +++ b/apps/web/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js @@ -0,0 +1 @@ +!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,s=u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a,c={f:s},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},p="".split,d=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return d(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!y(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!y(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},S=n.document,E=y(S)&&y(S.createElement),x=function(t){return E?S.createElement(t):{}},A=!i&&!o(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,R={f:i?O:function(t,e){if(t=g(t),e=m(e,!0),A)try{return O(t,e)}catch(t){}if(w(t,e))return f(!c.f.call(t,e),t[e])}},j=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,I={f:i?P:function(t,e,r){if(j(t),e=m(e,!0),j(r),A)try{return P(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},T=i?function(t,e,r){return I.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},k=function(t,e){try{T(n,t,e)}catch(r){n[t]=e}return e},L="__core-js_shared__",U=n[L]||k(L,{}),M=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(t){return M.call(t)});var _,N,C,F=U.inspectSource,B=n.WeakMap,D="function"==typeof B&&/native code/.test(F(B)),q=!1,z=e(function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),W=0,K=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++W+K).toString(36)},$=z("keys"),V=function(t){return $[t]||($[t]=G(t))},H={};if(D){var X=new(0,n.WeakMap),Y=X.get,J=X.has,Q=X.set;_=function(t,e){return Q.call(X,t,e),e},N=function(t){return Y.call(X,t)||{}},C=function(t){return J.call(X,t)}}else{var Z=V("state");H[Z]=!0,_=function(t,e){return T(t,Z,e),e},N=function(t){return w(t,Z)?t[Z]:{}},C=function(t){return w(t,Z)}}var tt,et={set:_,get:N,has:C,enforce:function(t){return C(t)?N(t):_(t,{})},getterFor:function(t){return function(e){var r;if(!y(e)||(r=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},rt=e(function(t){var e=et.get,r=et.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||T(i,"name",e),r(i).source=o.join("string"==typeof e?e:"")),t!==n?(u?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:T(t,e,i)):s?t[e]=i:k(e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||F(this)})}),nt=n,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(nt[t])||ot(n[t]):nt[t]&&nt[t][e]||n[t]&&n[t][e]},at=Math.ceil,ut=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},ct=Math.min,ft=function(t){return t>0?ct(st(t),9007199254740991):0},lt=Math.max,ht=Math.min,pt=function(t,e){var r=st(t);return r<0?lt(r+e,0):ht(r,e)},dt=function(t){return function(e,r,n){var o,i=g(e),a=ft(i.length),u=pt(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},vt={includes:dt(!0),indexOf:dt(!1)},gt=vt.indexOf,yt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!w(H,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~gt(i,r)||i.push(r));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,bt)}},St={f:Object.getOwnPropertySymbols},Et=it("Reflect","ownKeys")||function(t){var e=wt.f(j(t)),r=St.f;return r?e.concat(r(t)):e},xt=function(t,e){for(var r=Et(e),n=I.f,o=R.f,i=0;i<r.length;i++){var a=r[i];w(t,a)||n(t,a,o(e,a))}},At=/#|\.prototype\./,Ot=function(t,e){var r=jt[Rt(t)];return r==It||r!=Pt&&("function"==typeof e?o(e):!!e)},Rt=Ot.normalize=function(t){return String(t).replace(At,".").toLowerCase()},jt=Ot.data={},Pt=Ot.NATIVE="N",It=Ot.POLYFILL="P",Tt=Ot,kt=R.f,Lt=function(t,e){var r,o,i,a,u,s=t.target,c=t.global,f=t.stat;if(r=c?n:f?n[s]||k(s,{}):(n[s]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(u=kt(r,o))&&u.value:r[o],!Tt(c?o:s+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;xt(a,i)}(t.sham||i&&i.sham)&&T(a,"sham",!0),rt(r,o,a,t)}},Ut=function(t){return Object(v(t))},Mt=Math.min,_t=[].copyWithin||function(t,e){var r=Ut(this),n=ft(r.length),o=pt(t,n),i=pt(e,n),a=arguments.length>2?arguments[2]:void 0,u=Mt((void 0===a?n:pt(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},Nt=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Ct=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=z("wks"),Bt=n.Symbol,Dt=Ct?Bt:Bt&&Bt.withoutSetter||G,qt=function(t){return w(Ft,t)||(Ft[t]=Nt&&w(Bt,t)?Bt[t]:Dt("Symbol."+t)),Ft[t]},zt=Object.keys||function(t){return yt(t,mt)},Wt=i?Object.defineProperties:function(t,e){j(t);for(var r,n=zt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},Kt=it("document","documentElement"),Gt=V("IE_PROTO"),$t=function(){},Vt=function(t){return"<script>"+t+"<\/script>"},Ht=function(){try{tt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ht=tt?function(t){t.write(Vt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(tt):((e=x("iframe")).style.display="none",Kt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Vt("document.F=Object")),t.close(),t.F);for(var r=mt.length;r--;)delete Ht.prototype[mt[r]];return Ht()};H[Gt]=!0;var Xt=Object.create||function(t,e){var r;return null!==t?($t.prototype=j(t),r=new $t,$t.prototype=null,r[Gt]=t):r=Ht(),void 0===e?r:Wt(r,e)},Yt=qt("unscopables"),Jt=Array.prototype;null==Jt[Yt]&&I.f(Jt,Yt,{configurable:!0,value:Xt(null)});var Qt=function(t){Jt[Yt][t]=!0};Lt({target:"Array",proto:!0},{copyWithin:_t}),Qt("copyWithin");var Zt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},te=function(t,e,r){if(Zt(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},ee=Function.call,re=function(t,e,r){return te(ee,n[t].prototype[e],r)};re("Array","copyWithin"),Lt({target:"Array",proto:!0},{fill:function(t){for(var e=Ut(this),r=ft(e.length),n=arguments.length,o=pt(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:pt(i,r);a>o;)e[o++]=t;return e}}),Qt("fill"),re("Array","fill");var ne=Array.isArray||function(t){return"Array"==h(t)},oe=qt("species"),ie=function(t,e){var r;return ne(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!ne(r.prototype)?y(r)&&null===(r=r[oe])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},ae=[].push,ue=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,s,c,f){for(var l,h,p=Ut(u),v=d(p),g=te(s,c,3),y=ft(v.length),m=0,b=f||ie,w=e?b(u,y):r?b(u,0):void 0;y>m;m++)if((a||m in v)&&(h=g(l=v[m],m,p),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return m;case 2:ae.call(w,l)}else if(o)return!1;return i?-1:n||o?o:w}},se={forEach:ue(0),map:ue(1),filter:ue(2),some:ue(3),every:ue(4),find:ue(5),findIndex:ue(6)},ce=Object.defineProperty,fe={},le=function(t){throw t},he=function(t,e){if(w(fe,t))return fe[t];e||(e={});var r=[][t],n=!!w(e,"ACCESSORS")&&e.ACCESSORS,a=w(e,0)?e[0]:le,u=w(e,1)?e[1]:void 0;return fe[t]=!!r&&!o(function(){if(n&&!i)return!0;var t={length:-1};n?ce(t,1,{enumerable:!0,get:le}):t[1]=1,r.call(t,a,u)})},pe=se.find,de="find",ve=!0,ge=he(de);de in[]&&Array(1).find(function(){ve=!1}),Lt({target:"Array",proto:!0,forced:ve||!ge},{find:function(t){return pe(this,t,arguments.length>1?arguments[1]:void 0)}}),Qt(de),re("Array","find");var ye=se.findIndex,me="findIndex",be=!0,we=he(me);me in[]&&Array(1).findIndex(function(){be=!1}),Lt({target:"Array",proto:!0,forced:be||!we},{findIndex:function(t){return ye(this,t,arguments.length>1?arguments[1]:void 0)}}),Qt(me),re("Array","findIndex");var Se=function(t,e,r,n,o,i,a,u){for(var s,c=o,f=0,l=!!a&&te(a,u,3);f<n;){if(f in r){if(s=l?l(r[f],f,e):r[f],i>0&&ne(s))c=Se(t,e,s,ft(s.length),c,i-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Ee=Se;Lt({target:"Array",proto:!0},{flatMap:function(t){var e,r=Ut(this),n=ft(r.length);return Zt(t),(e=ie(r,0)).length=Ee(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),Qt("flatMap"),re("Array","flatMap"),Lt({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Ut(this),r=ft(e.length),n=ie(e,0);return n.length=Ee(n,e,e,r,0,void 0===t?1:st(t)),n}}),Qt("flat"),re("Array","flat");var xe,Ae,Oe,Re=function(t){return function(e,r){var n,o,i=String(v(e)),a=st(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},je={codeAt:Re(!1),charAt:Re(!0)},Pe=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ie=V("IE_PROTO"),Te=Object.prototype,ke=Pe?Object.getPrototypeOf:function(t){return t=Ut(t),w(t,Ie)?t[Ie]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Te:null},Le=qt("iterator"),Ue=!1;[].keys&&("next"in(Oe=[].keys())?(Ae=ke(ke(Oe)))!==Object.prototype&&(xe=Ae):Ue=!0),null==xe&&(xe={}),w(xe,Le)||T(xe,Le,function(){return this});var Me={IteratorPrototype:xe,BUGGY_SAFARI_ITERATORS:Ue},_e=I.f,Ne=qt("toStringTag"),Ce=function(t,e,r){t&&!w(t=r?t:t.prototype,Ne)&&_e(t,Ne,{configurable:!0,value:e})},Fe={},Be=Me.IteratorPrototype,De=function(){return this},qe=function(t,e,r){var n=e+" Iterator";return t.prototype=Xt(Be,{next:f(1,r)}),Ce(t,n,!1),Fe[n]=De,t},ze=function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},We=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),ze(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Ke=Me.IteratorPrototype,Ge=Me.BUGGY_SAFARI_ITERATORS,$e=qt("iterator"),Ve="keys",He="values",Xe="entries",Ye=function(){return this},Je=function(t,e,r,n,o,i,a){qe(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!Ge&&t in p)return p[t];switch(t){case Ve:case He:case Xe:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[$e]||p["@@iterator"]||o&&p[o],v=!Ge&&d||f(o),g="Array"==e&&p.entries||d;if(g&&(u=ke(g.call(new t)),Ke!==Object.prototype&&u.next&&(ke(u)!==Ke&&(We?We(u,Ke):"function"!=typeof u[$e]&&T(u,$e,Ye)),Ce(u,l,!0))),o==He&&d&&d.name!==He&&(h=!0,v=function(){return d.call(this)}),p[$e]!==v&&T(p,$e,v),Fe[e]=v,o)if(s={values:f(He),keys:i?v:f(Ve),entries:f(Xe)},a)for(c in s)(Ge||h||!(c in p))&&rt(p,c,s[c]);else Lt({target:e,proto:!0,forced:Ge||h},s);return s},Qe=je.charAt,Ze="String Iterator",tr=et.set,er=et.getterFor(Ze);Je(String,"String",function(t){tr(this,{type:Ze,string:String(t),index:0})},function(){var t,e=er(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Qe(r,n),e.index+=t.length,{value:t,done:!1})});var rr=function(t,e,r,n){try{return n?e(j(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&j(o.call(t)),e}},nr=qt("iterator"),or=Array.prototype,ir=function(t){return void 0!==t&&(Fe.Array===t||or[nr]===t)},ar=function(t,e,r){var n=m(e);n in t?I.f(t,n,f(0,r)):t[n]=r},ur={};ur[qt("toStringTag")]="z";var sr="[object z]"===String(ur),cr=qt("toStringTag"),fr="Arguments"==h(function(){return arguments}()),lr=sr?h:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),cr))?r:fr?h(e):"Object"==(n=h(e))&&"function"==typeof e.callee?"Arguments":n},hr=qt("iterator"),pr=function(t){if(null!=t)return t[hr]||t["@@iterator"]||Fe[lr(t)]},dr=function(t){var e,r,n,o,i,a,u=Ut(t),s="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=pr(u),p=0;if(l&&(f=te(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&ir(h))for(r=new s(e=ft(u.length));e>p;p++)a=l?f(u[p],p):u[p],ar(r,p,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;p++)a=l?rr(o,f,[n.value,p],!0):n.value,ar(r,p,a);return r.length=p,r},vr=qt("iterator"),gr=!1;try{var yr=0,mr={next:function(){return{done:!!yr++}},return:function(){gr=!0}};mr[vr]=function(){return this},Array.from(mr,function(){throw 2})}catch(t){}var br=function(t,e){if(!e&&!gr)return!1;var r=!1;try{var n={};n[vr]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},wr=!br(function(t){Array.from(t)});Lt({target:"Array",stat:!0,forced:wr},{from:dr});var Sr=vt.includes,Er=he("indexOf",{ACCESSORS:!0,1:0});Lt({target:"Array",proto:!0,forced:!Er},{includes:function(t){return Sr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qt("includes"),re("Array","includes");var xr="Array Iterator",Ar=et.set,Or=et.getterFor(xr),Rr=Je(Array,"Array",function(t,e){Ar(this,{type:xr,target:g(t),index:0,kind:e})},function(){var t=Or(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Fe.Arguments=Fe.Array,Qt("keys"),Qt("values"),Qt("entries"),re("Array","values");var jr=o(function(){function t(){}return!(Array.of.call(t)instanceof t)});Lt({target:"Array",stat:!0,forced:jr},{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)ar(r,t,arguments[t++]);return r.length=e,r}});var Pr=qt("hasInstance"),Ir=Function.prototype;Pr in Ir||I.f(Ir,Pr,{value:function(t){if("function"!=typeof this||!y(t))return!1;if(!y(this.prototype))return t instanceof this;for(;t=ke(t);)if(this.prototype===t)return!0;return!1}}),qt("hasInstance");var Tr=Function.prototype,kr=Tr.toString,Lr=/^\s*function ([^ (]*)/,Ur="name";i&&!(Ur in Tr)&&(0,I.f)(Tr,Ur,{configurable:!0,get:function(){try{return kr.call(this).match(Lr)[1]}catch(t){return""}}});var Mr=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),_r=e(function(t){var e=I.f,r=G("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:"O"+ ++n,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!y(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!w(t,r)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!w(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Mr&&a.REQUIRED&&o(t)&&!w(t,r)&&i(t),t}};H[r]=!0}),Nr=e(function(t){var e=function(t,e){this.stopped=t,this.result=e},r=t.exports=function(t,r,n,o,i){var a,u,s,c,f,l,h,p=te(r,n,o?2:1);if(i)a=t;else{if("function"!=typeof(u=pr(t)))throw TypeError("Target is not iterable");if(ir(u)){for(s=0,c=ft(t.length);c>s;s++)if((f=o?p(j(h=t[s])[0],h[1]):p(t[s]))&&f instanceof e)return f;return new e(!1)}a=u.call(t)}for(l=a.next;!(h=l.call(a)).done;)if("object"==typeof(f=rr(a,p,h.value,o))&&f&&f instanceof e)return f;return new e(!1)};r.stop=function(t){return new e(!0,t)}}),Cr=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Fr=function(t,e,r){var n,o;return We&&"function"==typeof(n=e.constructor)&&n!==r&&y(o=n.prototype)&&o!==r.prototype&&We(t,o),t},Br=function(t,e,r){var i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),u=i?"set":"add",s=n[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=c[t];rt(c,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return a&&!y(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(Tt(t,"function"!=typeof s||!(a||c.forEach&&!o(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,i,u),_r.REQUIRED=!0;else if(Tt(t,!0)){var p=new f,d=p[u](a?{}:-0,1)!=p,v=o(function(){p.has(1)}),g=br(function(t){new s(t)}),m=!a&&o(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(e,r){Cr(e,f,t);var n=Fr(new s,e,f);return null!=r&&Nr(r,n[u],n,i),n})).prototype=c,c.constructor=f),(v||m)&&(h("delete"),h("has"),i&&h("get")),(m||d)&&h(u),a&&c.clear&&delete c.clear}return l[t]=f,Lt({global:!0,forced:f!=s},l),Ce(f,t),a||r.setStrong(f,t,i),f},Dr=function(t,e,r){for(var n in e)rt(t,n,e[n],r);return t},qr=qt("species"),zr=function(t){var e=it(t);i&&e&&!e[qr]&&(0,I.f)(e,qr,{configurable:!0,get:function(){return this}})},Wr=I.f,Kr=_r.fastKey,Gr=et.set,$r=et.getterFor,Vr={getConstructor:function(t,e,r,n){var o=t(function(t,a){Cr(t,o,e),Gr(t,{type:e,index:Xt(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=a&&Nr(a,t[n],t,r)}),a=$r(e),u=function(t,e,r){var n,o,u=a(t),c=s(t,e);return c?c.value=r:(u.last=c={index:o=Kr(e,!0),key:e,value:r,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=c),n&&(n.next=c),i?u.size++:t.size++,"F"!==o&&(u.index[o]=c)),t},s=function(t,e){var r,n=a(t),o=Kr(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Dr(o.prototype,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,i?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=s(e,t);if(n){var o=n.next,u=n.previous;delete r.index[n.index],n.removed=!0,u&&(u.next=o),o&&(o.previous=u),r.first==n&&(r.first=o),r.last==n&&(r.last=u),i?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=te(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),Dr(o.prototype,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),i&&Wr(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=$r(e),i=$r(n);Je(t,e,function(t,e){Gr(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),zr(e)}},Hr=Br("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Vr);sr||rt(Object.prototype,"toString",sr?{}.toString:function(){return"[object "+lr(this)+"]"},{unsafe:!0});var Xr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Yr=qt("iterator"),Jr=qt("toStringTag"),Qr=Rr.values;for(var Zr in Xr){var tn=n[Zr],en=tn&&tn.prototype;if(en){if(en[Yr]!==Qr)try{T(en,Yr,Qr)}catch(t){en[Yr]=Qr}if(en[Jr]||T(en,Jr,Zr),Xr[Zr])for(var rn in Rr)if(en[rn]!==Rr[rn])try{T(en,rn,Rr[rn])}catch(t){en[rn]=Rr[rn]}}}var nn=function(t){var e,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return Zt(this),(e=void 0!==a)&&Zt(a),null==t?new this:(r=[],e?(n=0,o=te(a,i>2?arguments[2]:void 0,2),Nr(t,function(t){r.push(o(t,n++))})):Nr(t,r.push,r),new this(r))};Lt({target:"Map",stat:!0},{from:nn});var on=function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)};Lt({target:"Map",stat:!0},{of:on});var an=function(){for(var t,e=j(this),r=Zt(e.delete),n=!0,o=0,i=arguments.length;o<i;o++)t=r.call(e,arguments[o]),n=n&&t;return!!n};Lt({target:"Map",proto:!0,real:!0,forced:q},{deleteAll:function(){return an.apply(this,arguments)}});var un=function(t){var e=pr(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return j(e.call(t))},sn=function(t){return Map.prototype.entries.call(t)};Lt({target:"Map",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=sn(e),n=te(t,arguments.length>1?arguments[1]:void 0,3);return!Nr(r,function(t,r){if(!n(r,t,e))return Nr.stop()},void 0,!0,!0).stopped}});var cn=qt("species"),fn=function(t,e){var r,n=j(t).constructor;return void 0===n||null==(r=j(n)[cn])?e:Zt(r)};Lt({target:"Map",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=sn(e),n=te(t,arguments.length>1?arguments[1]:void 0,3),o=new(fn(e,it("Map"))),i=Zt(o.set);return Nr(r,function(t,r){n(r,t,e)&&i.call(o,t,r)},void 0,!0,!0),o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=sn(e),n=te(t,arguments.length>1?arguments[1]:void 0,3);return Nr(r,function(t,r){if(n(r,t,e))return Nr.stop(r)},void 0,!0,!0).result}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{findKey:function(t){var e=j(this),r=sn(e),n=te(t,arguments.length>1?arguments[1]:void 0,3);return Nr(r,function(t,r){if(n(r,t,e))return Nr.stop(t)},void 0,!0,!0).result}}),Lt({target:"Map",stat:!0},{groupBy:function(t,e){var r=new this;Zt(e);var n=Zt(r.has),o=Zt(r.get),i=Zt(r.set);return Nr(t,function(t){var a=e(t);n.call(r,a)?o.call(r,a).push(t):i.call(r,a,[t])}),r}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{includes:function(t){return Nr(sn(j(this)),function(e,r){if((n=r)===(o=t)||n!=n&&o!=o)return Nr.stop();var n,o},void 0,!0,!0).stopped}}),Lt({target:"Map",stat:!0},{keyBy:function(t,e){var r=new this;Zt(e);var n=Zt(r.set);return Nr(t,function(t){n.call(r,e(t),t)}),r}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{keyOf:function(t){return Nr(sn(j(this)),function(e,r){if(r===t)return Nr.stop(e)},void 0,!0,!0).result}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{mapKeys:function(t){var e=j(this),r=sn(e),n=te(t,arguments.length>1?arguments[1]:void 0,3),o=new(fn(e,it("Map"))),i=Zt(o.set);return Nr(r,function(t,r){i.call(o,n(r,t,e),r)},void 0,!0,!0),o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{mapValues:function(t){var e=j(this),r=sn(e),n=te(t,arguments.length>1?arguments[1]:void 0,3),o=new(fn(e,it("Map"))),i=Zt(o.set);return Nr(r,function(t,r){i.call(o,t,n(r,t,e))},void 0,!0,!0),o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{merge:function(t){for(var e=j(this),r=Zt(e.set),n=0;n<arguments.length;)Nr(arguments[n++],r,e,!0);return e}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=sn(e),n=arguments.length<2,o=n?void 0:arguments[1];if(Zt(t),Nr(r,function(r,i){n?(n=!1,o=i):o=t(o,i,r,e)},void 0,!0,!0),n)throw TypeError("Reduce of empty map with no initial value");return o}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=sn(e),n=te(t,arguments.length>1?arguments[1]:void 0,3);return Nr(r,function(t,r){if(n(r,t,e))return Nr.stop()},void 0,!0,!0).stopped}}),Lt({target:"Map",proto:!0,real:!0,forced:q},{update:function(t,e){var r=j(this),n=arguments.length;Zt(e);var o=r.has(t);if(!o&&n<3)throw TypeError("Updating absent value");var i=o?r.get(t):Zt(n>2?arguments[2]:void 0)(t,r);return r.set(t,e(i,t,r)),r}});var ln=function(t,e){var r,n=j(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof e&&"function"!=typeof o)throw TypeError("At least one callback required");return n.has(t)?(r=n.get(t),"function"==typeof e&&(r=e(r),n.set(t,r))):"function"==typeof o&&(r=o(),n.set(t,r)),r};Lt({target:"Map",proto:!0,real:!0,forced:q},{upsert:ln}),Lt({target:"Map",proto:!0,real:!0,forced:q},{updateOrInsert:ln});var hn="\t\n\v\f\r \u2028\u2029\ufeff",pn="["+hn+"]",dn=RegExp("^"+pn+pn+"*"),vn=RegExp(pn+pn+"*$"),gn=function(t){return function(e){var r=String(v(e));return 1&t&&(r=r.replace(dn,"")),2&t&&(r=r.replace(vn,"")),r}},yn={start:gn(1),end:gn(2),trim:gn(3)},mn=wt.f,bn=R.f,wn=I.f,Sn=yn.trim,En="Number",xn=n.Number,An=xn.prototype,On=h(Xt(An))==En,Rn=function(t){var e,r,n,o,i,a,u,s,c=m(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=Sn(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,u=0;u<a;u++)if((s=i.charCodeAt(u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(Tt(En,!xn(" 0o1")||!xn("0b1")||xn("+0x1"))){for(var jn,Pn=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Pn&&(On?o(function(){An.valueOf.call(r)}):h(r)!=En)?Fr(new xn(Rn(e)),r,Pn):Rn(e)},In=i?mn(xn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Tn=0;In.length>Tn;Tn++)w(xn,jn=In[Tn])&&!w(Pn,jn)&&wn(Pn,jn,bn(xn,jn));Pn.prototype=An,An.constructor=Pn,rt(n,En,Pn)}Lt({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)});var kn=n.isFinite;Lt({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&kn(t)}});var Ln=Math.floor,Un=function(t){return!y(t)&&isFinite(t)&&Ln(t)===t};Lt({target:"Number",stat:!0},{isInteger:Un}),Lt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Mn=Math.abs;Lt({target:"Number",stat:!0},{isSafeInteger:function(t){return Un(t)&&Mn(t)<=9007199254740991}}),Lt({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Lt({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991});var _n=yn.trim,Nn=n.parseFloat,Cn=1/Nn(hn+"-0")!=-Infinity?function(t){var e=_n(String(t)),r=Nn(e);return 0===r&&"-"==e.charAt(0)?-0:r}:Nn;Lt({target:"Number",stat:!0,forced:Number.parseFloat!=Cn},{parseFloat:Cn});var Fn=yn.trim,Bn=n.parseInt,Dn=/^[+-]?0[Xx]/,qn=8!==Bn(hn+"08")||22!==Bn(hn+"0x16")?function(t,e){var r=Fn(String(t));return Bn(r,e>>>0||(Dn.test(r)?16:10))}:Bn;Lt({target:"Number",stat:!0,forced:Number.parseInt!=qn},{parseInt:qn});var zn=c.f,Wn=function(t){return function(e){for(var r,n=g(e),o=zt(n),a=o.length,u=0,s=[];a>u;)r=o[u++],i&&!zn.call(n,r)||s.push(t?[r,n[r]]:n[r]);return s}},Kn={entries:Wn(!0),values:Wn(!1)},Gn=Kn.entries;Lt({target:"Object",stat:!0},{entries:function(t){return Gn(t)}}),Lt({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=g(t),o=R.f,i=Et(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&ar(a,e,r);return a}});var $n=o(function(){zt(1)});Lt({target:"Object",stat:!0,forced:$n},{keys:function(t){return zt(Ut(t))}});var Vn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Lt({target:"Object",stat:!0},{is:Vn});var Hn=Kn.values;Lt({target:"Object",stat:!0},{values:function(t){return Hn(t)}});var Xn=it("Reflect","apply"),Yn=Function.apply,Jn=!o(function(){Xn(function(){})});Lt({target:"Reflect",stat:!0,forced:Jn},{apply:function(t,e,r){return Zt(t),j(r),Xn?Xn(t,e,r):Yn.call(t,e,r)}});var Qn=[].slice,Zn={},to=function(t,e,r){if(!(e in Zn)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Zn[e]=Function("C,a","return new C("+n.join(",")+")")}return Zn[e](t,r)},eo=Function.bind||function(t){var e=Zt(this),r=Qn.call(arguments,1),n=function(){var o=r.concat(Qn.call(arguments));return this instanceof n?to(e,o.length,o):e.apply(t,o)};return y(e.prototype)&&(n.prototype=e.prototype),n},ro=it("Reflect","construct"),no=o(function(){function t(){}return!(ro(function(){},[],t)instanceof t)}),oo=!o(function(){ro(function(){})}),io=no||oo;Lt({target:"Reflect",stat:!0,forced:io,sham:io},{construct:function(t,e){Zt(t),j(e);var r=arguments.length<3?t:Zt(arguments[2]);if(oo&&!no)return ro(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(eo.apply(t,n))}var o=r.prototype,i=Xt(y(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return y(a)?a:i}});var ao=o(function(){Reflect.defineProperty(I.f({},1,{value:1}),1,{value:2})});Lt({target:"Reflect",stat:!0,forced:ao,sham:!i},{defineProperty:function(t,e,r){j(t);var n=m(e,!0);j(r);try{return I.f(t,n,r),!0}catch(t){return!1}}});var uo=R.f;Lt({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=uo(j(t),e);return!(r&&!r.configurable)&&delete t[e]}}),Lt({target:"Reflect",stat:!0},{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return j(e)===i?e[r]:(n=R.f(e,r))?w(n,"value")?n.value:void 0===n.get?void 0:n.get.call(i):y(o=ke(e))?t(o,r,i):void 0}}),Lt({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return R.f(j(t),e)}}),Lt({target:"Reflect",stat:!0,sham:!Pe},{getPrototypeOf:function(t){return ke(j(t))}}),Lt({target:"Reflect",stat:!0},{has:function(t,e){return e in t}});var so=Object.isExtensible;Lt({target:"Reflect",stat:!0},{isExtensible:function(t){return j(t),!so||so(t)}}),Lt({target:"Reflect",stat:!0},{ownKeys:Et}),Lt({target:"Reflect",stat:!0,sham:!Mr},{preventExtensions:function(t){j(t);try{var e=it("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}});var co=o(function(){var t=I.f({},"a",{configurable:!0});return!1!==Reflect.set(ke(t),"a",1,t)});Lt({target:"Reflect",stat:!0,forced:co},{set:function t(e,r,n){var o,i,a=arguments.length<4?e:arguments[3],u=R.f(j(e),r);if(!u){if(y(i=ke(e)))return t(i,r,n,a);u=f(0)}if(w(u,"value")){if(!1===u.writable||!y(a))return!1;if(o=R.f(a,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,I.f(a,r,o)}else I.f(a,r,f(0,n));return!0}return void 0!==u.set&&(u.set.call(a,n),!0)}}),We&&Lt({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){j(t),ze(e);try{return We(t,e),!0}catch(t){return!1}}});var fo=_r.getWeakData,lo=et.set,ho=et.getterFor,po=se.find,vo=se.findIndex,go=0,yo=function(t){return t.frozen||(t.frozen=new mo)},mo=function(){this.entries=[]},bo=function(t,e){return po(t.entries,function(t){return t[0]===e})};mo.prototype={get:function(t){var e=bo(this,t);if(e)return e[1]},has:function(t){return!!bo(this,t)},set:function(t,e){var r=bo(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=vo(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}};var wo={getConstructor:function(t,e,r,n){var o=t(function(t,i){Cr(t,o,e),lo(t,{type:e,id:go++,frozen:void 0}),null!=i&&Nr(i,t[n],t,r)}),i=ho(e),a=function(t,e,r){var n=i(t),o=fo(j(e),!0);return!0===o?yo(n).set(e,r):o[n.id]=r,t};return Dr(o.prototype,{delete:function(t){var e=i(this);if(!y(t))return!1;var r=fo(t);return!0===r?yo(e).delete(t):r&&w(r,e.id)&&delete r[e.id]},has:function(t){var e=i(this);if(!y(t))return!1;var r=fo(t);return!0===r?yo(e).has(t):r&&w(r,e.id)}}),Dr(o.prototype,r?{get:function(t){var e=i(this);if(y(t)){var r=fo(t);return!0===r?yo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},So=e(function(t){var e,r=et.enforce,o=!n.ActiveXObject&&"ActiveXObject"in n,i=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},u=t.exports=Br("WeakMap",a,wo);if(D&&o){e=wo.getConstructor(a,"WeakMap",!0),_r.REQUIRED=!0;var s=u.prototype,c=s.delete,f=s.has,l=s.get,h=s.set;Dr(s,{delete:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),c.call(this,t)||n.frozen.delete(t)}return c.call(this,t)},has:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)||n.frozen.has(t)}return f.call(this,t)},get:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)?l.call(this,t):n.frozen.get(t)}return l.call(this,t)},set:function(t,n){if(y(t)&&!i(t)){var o=r(this);o.frozen||(o.frozen=new e),f.call(this,t)?h.call(this,t,n):o.frozen.set(t,n)}else h.call(this,t,n);return this}})}}),Eo=z("metadata"),xo=Eo.store||(Eo.store=new So),Ao=function(t,e,r){var n=xo.get(t);if(!n){if(!r)return;xo.set(t,n=new Hr)}var o=n.get(e);if(!o){if(!r)return;n.set(e,o=new Hr)}return o},Oo={store:xo,getMap:Ao,has:function(t,e,r){var n=Ao(e,r,!1);return void 0!==n&&n.has(t)},get:function(t,e,r){var n=Ao(e,r,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,r,n){Ao(r,n,!0).set(t,e)},keys:function(t,e){var r=Ao(t,e,!1),n=[];return r&&r.forEach(function(t,e){n.push(e)}),n},toKey:function(t){return void 0===t||"symbol"==typeof t?t:String(t)}},Ro=Oo.toKey,jo=Oo.set;Lt({target:"Reflect",stat:!0},{defineMetadata:function(t,e,r){var n=arguments.length<4?void 0:Ro(arguments[3]);jo(t,e,j(r),n)}});var Po=Oo.toKey,Io=Oo.getMap,To=Oo.store;Lt({target:"Reflect",stat:!0},{deleteMetadata:function(t,e){var r=arguments.length<3?void 0:Po(arguments[2]),n=Io(j(e),r,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var o=To.get(e);return o.delete(r),!!o.size||To.delete(e)}});var ko=Oo.has,Lo=Oo.get,Uo=Oo.toKey,Mo=function(t,e,r){if(ko(t,e,r))return Lo(t,e,r);var n=ke(e);return null!==n?Mo(t,n,r):void 0};Lt({target:"Reflect",stat:!0},{getMetadata:function(t,e){var r=arguments.length<3?void 0:Uo(arguments[2]);return Mo(t,j(e),r)}});var _o=Br("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Vr),No=Oo.keys,Co=Oo.toKey,Fo=function(t,e){var r=No(t,e),n=ke(t);if(null===n)return r;var o,i,a=Fo(n,e);return a.length?r.length?(o=new _o(r.concat(a)),Nr(o,(i=[]).push,i),i):a:r};Lt({target:"Reflect",stat:!0},{getMetadataKeys:function(t){var e=arguments.length<2?void 0:Co(arguments[1]);return Fo(j(t),e)}});var Bo=Oo.get,Do=Oo.toKey;Lt({target:"Reflect",stat:!0},{getOwnMetadata:function(t,e){var r=arguments.length<3?void 0:Do(arguments[2]);return Bo(t,j(e),r)}});var qo=Oo.keys,zo=Oo.toKey;Lt({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(t){var e=arguments.length<2?void 0:zo(arguments[1]);return qo(j(t),e)}});var Wo=Oo.has,Ko=Oo.toKey,Go=function(t,e,r){if(Wo(t,e,r))return!0;var n=ke(e);return null!==n&&Go(t,n,r)};Lt({target:"Reflect",stat:!0},{hasMetadata:function(t,e){var r=arguments.length<3?void 0:Ko(arguments[2]);return Go(t,j(e),r)}});var $o=Oo.has,Vo=Oo.toKey;Lt({target:"Reflect",stat:!0},{hasOwnMetadata:function(t,e){var r=arguments.length<3?void 0:Vo(arguments[2]);return $o(t,j(e),r)}});var Ho=Oo.toKey,Xo=Oo.set;Lt({target:"Reflect",stat:!0},{metadata:function(t,e){return function(r,n){Xo(t,e,j(r),Ho(n))}}});var Yo=qt("match"),Jo=function(t){var e;return y(t)&&(void 0!==(e=t[Yo])?!!e:"RegExp"==h(t))},Qo=function(){var t=j(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Zo(t,e){return RegExp(t,e)}var ti=o(function(){var t=Zo("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),ei=o(function(){var t=Zo("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),ri={UNSUPPORTED_Y:ti,BROKEN_CARET:ei},ni=I.f,oi=wt.f,ii=et.set,ai=qt("match"),ui=n.RegExp,si=ui.prototype,ci=/a/g,fi=/a/g,li=new ui(ci)!==ci,hi=ri.UNSUPPORTED_Y;if(i&&Tt("RegExp",!li||hi||o(function(){return fi[ai]=!1,ui(ci)!=ci||ui(fi)==fi||"/a/i"!=ui(ci,"i")}))){for(var pi=function(t,e){var r,n=this instanceof pi,o=Jo(t),i=void 0===e;if(!n&&o&&t.constructor===pi&&i)return t;li?o&&!i&&(t=t.source):t instanceof pi&&(i&&(e=Qo.call(t)),t=t.source),hi&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a=Fr(li?new ui(t,e):ui(t,e),n?this:si,pi);return hi&&r&&ii(a,{sticky:r}),a},di=function(t){t in pi||ni(pi,t,{configurable:!0,get:function(){return ui[t]},set:function(e){ui[t]=e}})},vi=oi(ui),gi=0;vi.length>gi;)di(vi[gi++]);si.constructor=pi,pi.prototype=si,rt(n,"RegExp",pi)}zr("RegExp");var yi="toString",mi=RegExp.prototype,bi=mi.toString;(o(function(){return"/a/b"!=bi.call({source:"a",flags:"b"})})||bi.name!=yi)&&rt(RegExp.prototype,yi,function(){var t=j(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in mi)?Qo.call(t):r)},{unsafe:!0});var wi=RegExp.prototype.exec,Si=String.prototype.replace,Ei=wi,xi=function(){var t=/a/,e=/b*/g;return wi.call(t,"a"),wi.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Ai=ri.UNSUPPORTED_Y||ri.BROKEN_CARET,Oi=void 0!==/()??/.exec("")[1];(xi||Oi||Ai)&&(Ei=function(t){var e,r,n,o,i=this,a=Ai&&i.sticky,u=Qo.call(i),s=i.source,c=0,f=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(s="(?: "+s+")",f=" "+f,c++),r=new RegExp("^(?:"+s+")",u)),Oi&&(r=new RegExp("^"+s+"$(?!\\s)",u)),xi&&(e=i.lastIndex),n=wi.call(a?r:i,f),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:xi&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),Oi&&n&&n.length>1&&Si.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var Ri=Ei;Lt({target:"RegExp",proto:!0,forced:/./.exec!==Ri},{exec:Ri}),i&&("g"!=/./g.flags||ri.UNSUPPORTED_Y)&&I.f(RegExp.prototype,"flags",{configurable:!0,get:Qo});var ji=et.get,Pi=RegExp.prototype;i&&ri.UNSUPPORTED_Y&&(0,I.f)(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==Pi){if(this instanceof RegExp)return!!ji(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}});var Ii,Ti,ki=(Ii=!1,(Ti=/[ac]/).exec=function(){return Ii=!0,/./.exec.apply(this,arguments)},!0===Ti.test("abc")&&Ii),Li=/./.test;Lt({target:"RegExp",proto:!0,forced:!ki},{test:function(t){if("function"!=typeof this.exec)return Li.call(this,t);var e=this.exec(t);if(null!==e&&!y(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}});var Ui=qt("species"),Mi=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),_i="$0"==="a".replace(/./,"$0"),Ni=qt("replace"),Ci=!!/./[Ni]&&""===/./[Ni]("a","$0"),Fi=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Bi=function(t,e,r,n){var i=qt(t),a=!o(function(){var e={};return e[i]=function(){return 7},7!=""[t](e)}),u=a&&!o(function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ui]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e});if(!a||!u||"replace"===t&&(!Mi||!_i||Ci)||"split"===t&&!Fi){var s=/./[i],c=r(i,""[t],function(t,e,r,n,o){return e.exec===Ri?a&&!o?{done:!0,value:s.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:_i,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ci}),f=c[1];rt(String.prototype,t,c[0]),rt(RegExp.prototype,i,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&T(RegExp.prototype[i],"sham",!0)},Di=je.charAt,qi=function(t,e,r){return e+(r?Di(t,e).length:1)},zi=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==h(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ri.call(t,e)};Bi("match",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this);if(!o.global)return zi(o,i);var a=o.unicode;o.lastIndex=0;for(var u,s=[],c=0;null!==(u=zi(o,i));){var f=String(u[0]);s[c]=f,""===f&&(o.lastIndex=qi(i,ft(o.lastIndex),a)),c++}return 0===c?null:s}]});var Wi=Math.max,Ki=Math.min,Gi=Math.floor,$i=/\$([$&'`]|\d\d?|<[^>]*>)/g,Vi=/\$([$&'`]|\d\d?)/g;Bi("replace",2,function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(r,n){var o=v(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(a)){var s=r(e,t,this,n);if(s.done)return s.value}var c=j(t),f=String(this),l="function"==typeof n;l||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var v=zi(c,f);if(null===v)break;if(d.push(v),!h)break;""===String(v[0])&&(c.lastIndex=qi(f,ft(c.lastIndex),p))}for(var g,y="",m=0,b=0;b<d.length;b++){v=d[b];for(var w=String(v[0]),S=Wi(Ki(st(v.index),f.length),0),E=[],x=1;x<v.length;x++)E.push(void 0===(g=v[x])?g:String(g));var A=v.groups;if(l){var O=[w].concat(E,S,f);void 0!==A&&O.push(A);var R=String(n.apply(void 0,O))}else R=u(w,f,S,E,A,n);S>=m&&(y+=f.slice(m,S)+R,m=S+w.length)}return y+f.slice(m)}];function u(t,r,n,o,i,a){var u=n+t.length,s=o.length,c=Vi;return void 0!==i&&(i=Ut(i),c=$i),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":c=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return e;if(f>s){var l=Gi(f/10);return 0===l?e:l<=s?void 0===o[l-1]?a.charAt(1):o[l-1]+a.charAt(1):e}c=o[f-1]}return void 0===c?"":c})}}),Bi("search",1,function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=j(t),i=String(this),a=o.lastIndex;Vn(a,0)||(o.lastIndex=0);var u=zi(o,i);return Vn(o.lastIndex,a)||(o.lastIndex=a),null===u?-1:u.index}]});var Hi=[].push,Xi=Math.min,Yi=4294967295,Ji=!o(function(){return!RegExp(Yi,"y")});Bi("split",2,function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(v(this)),o=void 0===r?Yi:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Jo(t))return e.call(n,t,o);for(var i,a,u,s=[],c=0,f=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(i=Ri.call(f,n))&&!((a=f.lastIndex)>c&&(s.push(n.slice(c,i.index)),i.length>1&&i.index<n.length&&Hi.apply(s,i.slice(1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===n.length?!u&&f.test("")||s.push(""):s.push(n.slice(c)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=v(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,o){var i=r(n,t,this,o,n!==e);if(i.done)return i.value;var a=j(t),u=String(this),s=fn(a,RegExp),c=a.unicode,f=new s(Ji?a:"^(?:"+a.source+")",(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ji?"y":"g")),l=void 0===o?Yi:o>>>0;if(0===l)return[];if(0===u.length)return null===zi(f,u)?[u]:[];for(var h=0,p=0,d=[];p<u.length;){f.lastIndex=Ji?p:0;var v,g=zi(f,Ji?u:u.slice(p));if(null===g||(v=Xi(ft(f.lastIndex+(Ji?0:p)),u.length))===h)p=qi(u,p,c);else{if(d.push(u.slice(h,p)),d.length===l)return d;for(var y=1;y<=g.length-1;y++)if(d.push(g[y]),d.length===l)return d;p=h=v}}return d.push(u.slice(h)),d}]},!Ji),Lt({target:"Set",stat:!0},{from:nn}),Lt({target:"Set",stat:!0},{of:on});var Qi=function(){for(var t=j(this),e=Zt(t.add),r=0,n=arguments.length;r<n;r++)e.call(t,arguments[r]);return t};Lt({target:"Set",proto:!0,real:!0,forced:q},{addAll:function(){return Qi.apply(this,arguments)}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{deleteAll:function(){return an.apply(this,arguments)}});var Zi=function(t){return Set.prototype.values.call(t)};Lt({target:"Set",proto:!0,real:!0,forced:q},{every:function(t){var e=j(this),r=Zi(e),n=te(t,arguments.length>1?arguments[1]:void 0,3);return!Nr(r,function(t){if(!n(t,t,e))return Nr.stop()},void 0,!1,!0).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{difference:function(t){var e=j(this),r=new(fn(e,it("Set")))(e),n=Zt(r.delete);return Nr(t,function(t){n.call(r,t)}),r}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{filter:function(t){var e=j(this),r=Zi(e),n=te(t,arguments.length>1?arguments[1]:void 0,3),o=new(fn(e,it("Set"))),i=Zt(o.add);return Nr(r,function(t){n(t,t,e)&&i.call(o,t)},void 0,!1,!0),o}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{find:function(t){var e=j(this),r=Zi(e),n=te(t,arguments.length>1?arguments[1]:void 0,3);return Nr(r,function(t){if(n(t,t,e))return Nr.stop(t)},void 0,!1,!0).result}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{intersection:function(t){var e=j(this),r=new(fn(e,it("Set"))),n=Zt(e.has),o=Zt(r.add);return Nr(t,function(t){n.call(e,t)&&o.call(r,t)}),r}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{isDisjointFrom:function(t){var e=j(this),r=Zt(e.has);return!Nr(t,function(t){if(!0===r.call(e,t))return Nr.stop()}).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{isSubsetOf:function(t){var e=un(this),r=j(t),n=r.has;return"function"!=typeof n&&(r=new(it("Set"))(t),n=Zt(r.has)),!Nr(e,function(t){if(!1===n.call(r,t))return Nr.stop()},void 0,!1,!0).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{isSupersetOf:function(t){var e=j(this),r=Zt(e.has);return!Nr(t,function(t){if(!1===r.call(e,t))return Nr.stop()}).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{join:function(t){var e=j(this),r=Zi(e),n=void 0===t?",":String(t),o=[];return Nr(r,o.push,o,!1,!0),o.join(n)}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{map:function(t){var e=j(this),r=Zi(e),n=te(t,arguments.length>1?arguments[1]:void 0,3),o=new(fn(e,it("Set"))),i=Zt(o.add);return Nr(r,function(t){i.call(o,n(t,t,e))},void 0,!1,!0),o}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{reduce:function(t){var e=j(this),r=Zi(e),n=arguments.length<2,o=n?void 0:arguments[1];if(Zt(t),Nr(r,function(r){n?(n=!1,o=r):o=t(o,r,r,e)},void 0,!1,!0),n)throw TypeError("Reduce of empty set with no initial value");return o}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{some:function(t){var e=j(this),r=Zi(e),n=te(t,arguments.length>1?arguments[1]:void 0,3);return Nr(r,function(t){if(n(t,t,e))return Nr.stop()},void 0,!1,!0).stopped}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{symmetricDifference:function(t){var e=j(this),r=new(fn(e,it("Set")))(e),n=Zt(r.delete),o=Zt(r.add);return Nr(t,function(t){n.call(r,t)||o.call(r,t)}),r}}),Lt({target:"Set",proto:!0,real:!0,forced:q},{union:function(t){var e=j(this),r=new(fn(e,it("Set")))(e);return Nr(t,Zt(r.add),r),r}});var ta,ea,ra=it("navigator","userAgent")||"",na=n.process,oa=na&&na.versions,ia=oa&&oa.v8;ia?ea=(ta=ia.split("."))[0]+ta[1]:ra&&(!(ta=ra.match(/Edge\/(\d+)/))||ta[1]>=74)&&(ta=ra.match(/Chrome\/(\d+)/))&&(ea=ta[1]);var aa=ea&&+ea,ua=qt("species"),sa=qt("isConcatSpreadable"),ca=9007199254740991,fa="Maximum allowed index exceeded",la=aa>=51||!o(function(){var t=[];return t[sa]=!1,t.concat()[0]!==t}),ha=aa>=51||!o(function(){var t=[];return(t.constructor={})[ua]=function(){return{foo:1}},1!==t.concat(Boolean).foo}),pa=function(t){if(!y(t))return!1;var e=t[sa];return void 0!==e?!!e:ne(t)};Lt({target:"Array",proto:!0,forced:!la||!ha},{concat:function(t){var e,r,n,o,i,a=Ut(this),u=ie(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(pa(i=-1===e?a:arguments[e])){if(s+(o=ft(i.length))>ca)throw TypeError(fa);for(r=0;r<o;r++,s++)r in i&&ar(u,s,i[r])}else{if(s>=ca)throw TypeError(fa);ar(u,s++,i)}return u.length=s,u}});var da=wt.f,va={}.toString,ga="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ya={f:function(t){return ga&&"[object Window]"==va.call(t)?function(t){try{return da(t)}catch(t){return ga.slice()}}(t):da(g(t))}},ma={f:qt},ba=I.f,wa=function(t){var e=nt.Symbol||(nt.Symbol={});w(e,t)||ba(e,t,{value:ma.f(t)})},Sa=se.forEach,Ea=V("hidden"),xa="Symbol",Aa=qt("toPrimitive"),Oa=et.set,Ra=et.getterFor(xa),ja=Object.prototype,Pa=n.Symbol,Ia=it("JSON","stringify"),Ta=R.f,ka=I.f,La=ya.f,Ua=c.f,Ma=z("symbols"),_a=z("op-symbols"),Na=z("string-to-symbol-registry"),Ca=z("symbol-to-string-registry"),Fa=z("wks"),Ba=n.QObject,Da=!Ba||!Ba.prototype||!Ba.prototype.findChild,qa=i&&o(function(){return 7!=Xt(ka({},"a",{get:function(){return ka(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=Ta(ja,e);n&&delete ja[e],ka(t,e,r),n&&t!==ja&&ka(ja,e,n)}:ka,za=function(t,e){var r=Ma[t]=Xt(Pa.prototype);return Oa(r,{type:xa,tag:t,description:e}),i||(r.description=e),r},Wa=Ct?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Pa},Ka=function(t,e,r){t===ja&&Ka(_a,e,r),j(t);var n=m(e,!0);return j(r),w(Ma,n)?(r.enumerable?(w(t,Ea)&&t[Ea][n]&&(t[Ea][n]=!1),r=Xt(r,{enumerable:f(0,!1)})):(w(t,Ea)||ka(t,Ea,f(1,{})),t[Ea][n]=!0),qa(t,n,r)):ka(t,n,r)},Ga=function(t,e){j(t);var r=g(e),n=zt(r).concat(Xa(r));return Sa(n,function(e){i&&!$a.call(r,e)||Ka(t,e,r[e])}),t},$a=function(t){var e=m(t,!0),r=Ua.call(this,e);return!(this===ja&&w(Ma,e)&&!w(_a,e))&&(!(r||!w(this,e)||!w(Ma,e)||w(this,Ea)&&this[Ea][e])||r)},Va=function(t,e){var r=g(t),n=m(e,!0);if(r!==ja||!w(Ma,n)||w(_a,n)){var o=Ta(r,n);return!o||!w(Ma,n)||w(r,Ea)&&r[Ea][n]||(o.enumerable=!0),o}},Ha=function(t){var e=La(g(t)),r=[];return Sa(e,function(t){w(Ma,t)||w(H,t)||r.push(t)}),r},Xa=function(t){var e=t===ja,r=La(e?_a:g(t)),n=[];return Sa(r,function(t){!w(Ma,t)||e&&!w(ja,t)||n.push(Ma[t])}),n};if(Nt||(Pa=function(){if(this instanceof Pa)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=G(t),r=function(t){this===ja&&r.call(_a,t),w(this,Ea)&&w(this[Ea],e)&&(this[Ea][e]=!1),qa(this,e,f(1,t))};return i&&Da&&qa(ja,e,{configurable:!0,set:r}),za(e,t)},rt(Pa.prototype,"toString",function(){return Ra(this).tag}),rt(Pa,"withoutSetter",function(t){return za(G(t),t)}),c.f=$a,I.f=Ka,R.f=Va,wt.f=ya.f=Ha,St.f=Xa,ma.f=function(t){return za(qt(t),t)},i&&(ka(Pa.prototype,"description",{configurable:!0,get:function(){return Ra(this).description}}),rt(ja,"propertyIsEnumerable",$a,{unsafe:!0}))),Lt({global:!0,wrap:!0,forced:!Nt,sham:!Nt},{Symbol:Pa}),Sa(zt(Fa),function(t){wa(t)}),Lt({target:xa,stat:!0,forced:!Nt},{for:function(t){var e=String(t);if(w(Na,e))return Na[e];var r=Pa(e);return Na[e]=r,Ca[r]=e,r},keyFor:function(t){if(!Wa(t))throw TypeError(t+" is not a symbol");if(w(Ca,t))return Ca[t]},useSetter:function(){Da=!0},useSimple:function(){Da=!1}}),Lt({target:"Object",stat:!0,forced:!Nt,sham:!i},{create:function(t,e){return void 0===e?Xt(t):Ga(Xt(t),e)},defineProperty:Ka,defineProperties:Ga,getOwnPropertyDescriptor:Va}),Lt({target:"Object",stat:!0,forced:!Nt},{getOwnPropertyNames:Ha,getOwnPropertySymbols:Xa}),Lt({target:"Object",stat:!0,forced:o(function(){St.f(1)})},{getOwnPropertySymbols:function(t){return St.f(Ut(t))}}),Ia){var Ya=!Nt||o(function(){var t=Pa();return"[null]"!=Ia([t])||"{}"!=Ia({a:t})||"{}"!=Ia(Object(t))});Lt({target:"JSON",stat:!0,forced:Ya},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(y(e)||void 0!==t)&&!Wa(t))return ne(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Wa(e))return e}),o[1]=e,Ia.apply(null,o)}})}Pa.prototype[Aa]||T(Pa.prototype,Aa,Pa.prototype.valueOf),Ce(Pa,xa),H[Ea]=!0,wa("asyncIterator");var Ja=I.f,Qa=n.Symbol;if(i&&"function"==typeof Qa&&(!("description"in Qa.prototype)||void 0!==Qa().description)){var Za={},tu=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof tu?new Qa(t):void 0===t?Qa():Qa(t);return""===t&&(Za[e]=!0),e};xt(tu,Qa);var eu=tu.prototype=Qa.prototype;eu.constructor=tu;var ru=eu.toString,nu="Symbol(test)"==String(Qa("test")),ou=/^Symbol\((.*)\)[^)]+$/;Ja(eu,"description",{configurable:!0,get:function(){var t=y(this)?this.valueOf():this,e=ru.call(t);if(w(Za,t))return"";var r=nu?e.slice(7,-1):e.replace(ou,"$1");return""===r?void 0:r}}),Lt({global:!0,forced:!0},{Symbol:tu})}wa("hasInstance"),wa("isConcatSpreadable"),wa("iterator"),wa("match"),wa("matchAll"),wa("replace"),wa("search"),wa("species"),wa("split"),wa("toPrimitive"),wa("toStringTag"),wa("unscopables"),Ce(Math,"Math",!0),Ce(n.JSON,"JSON",!0),wa("asyncDispose"),wa("dispose"),wa("observable"),wa("patternMatch"),wa("replaceAll"),ma.f("asyncIterator");var iu=je.codeAt;Lt({target:"String",proto:!0},{codePointAt:function(t){return iu(this,t)}}),re("String","codePointAt");var au,uu=function(t){if(Jo(t))throw TypeError("The method doesn't accept regular expressions");return t},su=qt("match"),cu=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[su]=!1,"/./"[t](e)}catch(t){}}return!1},fu=R.f,lu="".endsWith,hu=Math.min,pu=cu("endsWith"),du=!(pu||(au=fu(String.prototype,"endsWith"),!au||au.writable));Lt({target:"String",proto:!0,forced:!du&&!pu},{endsWith:function(t){var e=String(v(this));uu(t);var r=arguments.length>1?arguments[1]:void 0,n=ft(e.length),o=void 0===r?n:hu(ft(r),n),i=String(t);return lu?lu.call(e,i,o):e.slice(o-i.length,o)===i}}),re("String","endsWith");var vu=String.fromCharCode,gu=String.fromCodePoint;Lt({target:"String",stat:!0,forced:!!gu&&1!=gu.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],pt(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?vu(e):vu(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}}),Lt({target:"String",proto:!0,forced:!cu("includes")},{includes:function(t){return!!~String(v(this)).indexOf(uu(t),arguments.length>1?arguments[1]:void 0)}}),re("String","includes");var yu="".repeat||function(t){var e=String(v(this)),r="",n=st(t);if(n<0||Infinity==n)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},mu=Math.ceil,bu=function(t){return function(e,r,n){var o,i,a=String(v(e)),u=a.length,s=void 0===n?" ":String(n),c=ft(r);return c<=u||""==s?a:((i=yu.call(s,mu((o=c-u)/s.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},wu={start:bu(!1),end:bu(!0)},Su=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(ra),Eu=wu.start;Lt({target:"String",proto:!0,forced:Su},{padStart:function(t){return Eu(this,t,arguments.length>1?arguments[1]:void 0)}}),re("String","padStart");var xu=wu.end;Lt({target:"String",proto:!0,forced:Su},{padEnd:function(t){return xu(this,t,arguments.length>1?arguments[1]:void 0)}}),re("String","padEnd"),Lt({target:"String",stat:!0},{raw:function(t){for(var e=g(t.raw),r=ft(e.length),n=arguments.length,o=[],i=0;r>i;)o.push(String(e[i++])),i<n&&o.push(String(arguments[i]));return o.join("")}}),Lt({target:"String",proto:!0},{repeat:yu}),re("String","repeat");var Au=R.f,Ou="".startsWith,Ru=Math.min,ju=cu("startsWith"),Pu=!ju&&!!function(){var t=Au(String.prototype,"startsWith");return t&&!t.writable}();Lt({target:"String",proto:!0,forced:!Pu&&!ju},{startsWith:function(t){var e=String(v(this));uu(t);var r=ft(Ru(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return Ou?Ou.call(e,n,r):e.slice(r,r+n.length)===n}}),re("String","startsWith");var Iu=function(t){return o(function(){return!!hn[t]()||"
"!="
"[t]()||hn[t].name!==t})},Tu=yn.start,ku=Iu("trimStart"),Lu=ku?function(){return Tu(this)}:"".trimStart;Lt({target:"String",proto:!0,forced:ku},{trimStart:Lu,trimLeft:Lu}),re("String","trimLeft");var Uu=yn.end,Mu=Iu("trimEnd"),_u=Mu?function(){return Uu(this)}:"".trimEnd;Lt({target:"String",proto:!0,forced:Mu},{trimEnd:_u,trimRight:_u}),re("String","trimRight");var Nu=qt("iterator"),Cu=!o(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach(function(t,n){e.delete("b"),r+=n+t}),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Nu]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),Fu=Object.assign,Bu=Object.defineProperty,Du=!Fu||o(function(){if(i&&1!==Fu({b:1},Fu(Bu({},"a",{enumerable:!0,get:function(){Bu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=Fu({},t)[r]||zt(Fu({},e)).join("")!=n})?function(t,e){for(var r=Ut(t),n=arguments.length,o=1,a=St.f,u=c.f;n>o;)for(var s,f=d(arguments[o++]),l=a?zt(f).concat(a(f)):zt(f),h=l.length,p=0;h>p;)s=l[p++],i&&!u.call(f,s)||(r[s]=f[s]);return r}:Fu,qu=2147483647,zu=/[^\0-\u007E]/,Wu=/[.\u3002\uFF0E\uFF61]/g,Ku="Overflow: input needs wider integers to process",Gu=Math.floor,$u=String.fromCharCode,Vu=function(t){return t+22+75*(t<26)},Hu=function(t,e,r){var n=0;for(t=r?Gu(t/700):t>>1,t+=Gu(t/e);t>455;n+=36)t=Gu(t/35);return Gu(n+36*t/(t+38))},Xu=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t);var r,n,o=t.length,i=128,a=0,u=72;for(r=0;r<t.length;r++)(n=t[r])<128&&e.push($u(n));var s=e.length,c=s;for(s&&e.push("-");c<o;){var f=qu;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<f&&(f=n);var l=c+1;if(f-i>Gu((qu-a)/l))throw RangeError(Ku);for(a+=(f-i)*l,i=f,r=0;r<t.length;r++){if((n=t[r])<i&&++a>qu)throw RangeError(Ku);if(n==i){for(var h=a,p=36;;p+=36){var d=p<=u?1:p>=u+26?26:p-u;if(h<d)break;var v=h-d,g=36-d;e.push($u(Vu(d+v%g))),h=Gu(v/g)}e.push($u(Vu(h))),u=Hu(a,l,c==s),a=0,++c}}++a,++i}return e.join("")},Yu=it("fetch"),Ju=it("Headers"),Qu=qt("iterator"),Zu="URLSearchParams",ts="URLSearchParamsIterator",es=et.set,rs=et.getterFor(Zu),ns=et.getterFor(ts),os=/\+/g,is=Array(4),as=function(t){return is[t-1]||(is[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},us=function(t){try{return decodeURIComponent(t)}catch(e){return t}},ss=function(t){var e=t.replace(os," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(as(r--),us);return e}},cs=/[!'()~]|%20/g,fs={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ls=function(t){return fs[t]},hs=function(t){return encodeURIComponent(t).replace(cs,ls)},ps=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:ss(n.shift()),value:ss(n.join("="))}))},ds=function(t){this.entries.length=0,ps(this.entries,t)},vs=function(t,e){if(t<e)throw TypeError("Not enough arguments")},gs=qe(function(t,e){es(this,{type:ts,iterator:un(rs(t).entries),kind:e})},"Iterator",function(){var t=ns(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),ys=function(){Cr(this,ys,Zu);var t,e,r,n,o,i,a,u,s,c=arguments.length>0?arguments[0]:void 0,f=this,l=[];if(es(f,{type:Zu,entries:l,updateURL:function(){},updateSearchParams:ds}),void 0!==c)if(y(c))if("function"==typeof(t=pr(c)))for(r=(e=t.call(c)).next;!(n=r.call(e)).done;){if((a=(i=(o=un(j(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");l.push({key:a.value+"",value:u.value+""})}else for(s in c)w(c,s)&&l.push({key:s,value:c[s]+""});else ps(l,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},ms=ys.prototype;Dr(ms,{append:function(t,e){vs(arguments.length,2);var r=rs(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){vs(arguments.length,1);for(var e=rs(this),r=e.entries,n=t+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){vs(arguments.length,1);for(var e=rs(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){vs(arguments.length,1);for(var e=rs(this).entries,r=t+"",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){vs(arguments.length,1);for(var e=rs(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){vs(arguments.length,1);for(var r,n=rs(this),o=n.entries,i=!1,a=t+"",u=e+"",s=0;s<o.length;s++)(r=o[s]).key===a&&(i?o.splice(s--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=rs(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=rs(this).entries,n=te(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new gs(this,"keys")},values:function(){return new gs(this,"values")},entries:function(){return new gs(this,"entries")}},{enumerable:!0}),rt(ms,Qu,ms.entries),rt(ms,"toString",function(){for(var t,e=rs(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(hs(t.key)+"="+hs(t.value));return r.join("&")},{enumerable:!0}),Ce(ys,Zu),Lt({global:!0,forced:!Cu},{URLSearchParams:ys}),Cu||"function"!=typeof Yu||"function"!=typeof Ju||Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(y(e=arguments[1])&&lr(r=e.body)===Zu&&((n=e.headers?new Ju(e.headers):new Ju).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=Xt(e,{body:f(0,String(r)),headers:f(0,n)})),o.push(e)),Yu.apply(this,o)}});var bs,ws={URLSearchParams:ys,getState:rs},Ss=je.codeAt,Es=n.URL,xs=ws.URLSearchParams,As=ws.getState,Os=et.set,Rs=et.getterFor("URL"),js=Math.floor,Ps=Math.pow,Is="Invalid scheme",Ts="Invalid host",ks="Invalid port",Ls=/[A-Za-z]/,Us=/[\d+-.A-Za-z]/,Ms=/\d/,_s=/^(0x|0X)/,Ns=/^[0-7]+$/,Cs=/^\d+$/,Fs=/^[\dA-Fa-f]+$/,Bs=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Ds=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,qs=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,zs=/[\u0009\u000A\u000D]/g,Ws=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return Ts;if(!(r=Gs(e.slice(1,-1))))return Ts;t.host=r}else if(Zs(t)){if(e=function(t){var e,r,n=[],o=t.toLowerCase().replace(Wu,".").split(".");for(e=0;e<o.length;e++)n.push(zu.test(r=o[e])?"xn--"+Xu(r):r);return n.join(".")}(e),Bs.test(e))return Ts;if(null===(r=Ks(e)))return Ts;t.host=r}else{if(Ds.test(e))return Ts;for(r="",n=dr(e),o=0;o<n.length;o++)r+=Js(n[o],Vs);t.host=r}},Ks=function(t){var e,r,n,o,i,a,u,s=t.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=s[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=_s.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?Cs:8==i?Ns:Fs).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Ps(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*Ps(256,3-n);return u},Gs=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=r=0;r<4&&Fs.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Ms.test(h()))return;for(;Ms.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s},$s=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=js(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},Vs={},Hs=Du({},Vs,{" ":1,'"':1,"<":1,">":1,"`":1}),Xs=Du({},Hs,{"#":1,"?":1,"{":1,"}":1}),Ys=Du({},Xs,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Js=function(t,e){var r=Ss(t,0);return r>32&&r<127&&!w(e,t)?t:encodeURIComponent(t)},Qs={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Zs=function(t){return w(Qs,t.scheme)},tc=function(t){return""!=t.username||""!=t.password},ec=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},rc=function(t,e){var r;return 2==t.length&&Ls.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},nc=function(t){var e;return t.length>1&&rc(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},oc=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&rc(e[0],!0)||e.pop()},ic=function(t){return"."===t||"%2e"===t.toLowerCase()},ac={},uc={},sc={},cc={},fc={},lc={},hc={},pc={},dc={},vc={},gc={},yc={},mc={},bc={},wc={},Sc={},Ec={},xc={},Ac={},Oc={},Rc={},jc=function(t,e,r,n){var o,i,a,u,s,c=r||ac,f=0,l="",h=!1,p=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(qs,"")),e=e.replace(zs,""),o=dr(e);f<=o.length;){switch(i=o[f],c){case ac:if(!i||!Ls.test(i)){if(r)return Is;c=sc;continue}l+=i.toLowerCase(),c=uc;break;case uc:if(i&&(Us.test(i)||"+"==i||"-"==i||"."==i))l+=i.toLowerCase();else{if(":"!=i){if(r)return Is;l="",c=sc,f=0;continue}if(r&&(Zs(t)!=w(Qs,l)||"file"==l&&(tc(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(Zs(t)&&Qs[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?c=bc:Zs(t)&&n&&n.scheme==t.scheme?c=cc:Zs(t)?c=pc:"/"==o[f+1]?(c=fc,f++):(t.cannotBeABaseURL=!0,t.path.push(""),c=Ac)}break;case sc:if(!n||n.cannotBeABaseURL&&"#"!=i)return Is;if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,c=Rc;break}c="file"==n.scheme?bc:lc;continue;case cc:if("/"!=i||"/"!=o[f+1]){c=lc;continue}c=dc,f++;break;case fc:if("/"==i){c=vc;break}c=xc;continue;case lc:if(t.scheme=n.scheme,i==bs)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&Zs(t))c=hc;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",c=Oc;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),c=xc;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=Rc}break;case hc:if(!Zs(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,c=xc;continue}c=vc}else c=dc;break;case pc:if(c=dc,"/"!=i||"/"!=l.charAt(f+1))continue;f++;break;case dc:if("/"!=i&&"\\"!=i){c=vc;continue}break;case vc:if("@"==i){h&&(l="%40"+l),h=!0,a=dr(l);for(var v=0;v<a.length;v++){var g=a[v];if(":"!=g||d){var y=Js(g,Ys);d?t.password+=y:t.username+=y}else d=!0}l=""}else if(i==bs||"/"==i||"?"==i||"#"==i||"\\"==i&&Zs(t)){if(h&&""==l)return"Invalid authority";f-=dr(l).length+1,l="",c=gc}else l+=i;break;case gc:case yc:if(r&&"file"==t.scheme){c=Sc;continue}if(":"!=i||p){if(i==bs||"/"==i||"?"==i||"#"==i||"\\"==i&&Zs(t)){if(Zs(t)&&""==l)return Ts;if(r&&""==l&&(tc(t)||null!==t.port))return;if(u=Ws(t,l))return u;if(l="",c=Ec,r)return;continue}"["==i?p=!0:"]"==i&&(p=!1),l+=i}else{if(""==l)return Ts;if(u=Ws(t,l))return u;if(l="",c=mc,r==yc)return}break;case mc:if(!Ms.test(i)){if(i==bs||"/"==i||"?"==i||"#"==i||"\\"==i&&Zs(t)||r){if(""!=l){var m=parseInt(l,10);if(m>65535)return ks;t.port=Zs(t)&&m===Qs[t.scheme]?null:m,l=""}if(r)return;c=Ec;continue}return ks}l+=i;break;case bc:if(t.scheme="file","/"==i||"\\"==i)c=wc;else{if(!n||"file"!=n.scheme){c=xc;continue}if(i==bs)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",c=Oc;else{if("#"!=i){nc(o.slice(f).join(""))||(t.host=n.host,t.path=n.path.slice(),oc(t)),c=xc;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=Rc}}break;case wc:if("/"==i||"\\"==i){c=Sc;break}n&&"file"==n.scheme&&!nc(o.slice(f).join(""))&&(rc(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),c=xc;continue;case Sc:if(i==bs||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&rc(l))c=xc;else if(""==l){if(t.host="",r)return;c=Ec}else{if(u=Ws(t,l))return u;if("localhost"==t.host&&(t.host=""),r)return;l="",c=Ec}continue}l+=i;break;case Ec:if(Zs(t)){if(c=xc,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=bs&&(c=xc,"/"!=i))continue}else t.fragment="",c=Rc;else t.query="",c=Oc;break;case xc:if(i==bs||"/"==i||"\\"==i&&Zs(t)||!r&&("?"==i||"#"==i)){if(".."===(s=(s=l).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(oc(t),"/"==i||"\\"==i&&Zs(t)||t.path.push("")):ic(l)?"/"==i||"\\"==i&&Zs(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&rc(l)&&(t.host&&(t.host=""),l=l.charAt(0)+":"),t.path.push(l)),l="","file"==t.scheme&&(i==bs||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",c=Oc):"#"==i&&(t.fragment="",c=Rc)}else l+=Js(i,Xs);break;case Ac:"?"==i?(t.query="",c=Oc):"#"==i?(t.fragment="",c=Rc):i!=bs&&(t.path[0]+=Js(i,Vs));break;case Oc:r||"#"!=i?i!=bs&&("'"==i&&Zs(t)?t.query+="%27":t.query+="#"==i?"%23":Js(i,Vs)):(t.fragment="",c=Rc);break;case Rc:i!=bs&&(t.fragment+=Js(i,Hs))}f++}},Pc=function(t){var e,r,n=Cr(this,Pc,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(t),u=Os(n,{type:"URL"});if(void 0!==o)if(o instanceof Pc)e=Rs(o);else if(r=jc(e={},String(o)))throw TypeError(r);if(r=jc(u,a,null,e))throw TypeError(r);var s=u.searchParams=new xs,c=As(s);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(s)||null},i||(n.href=Tc.call(n),n.origin=kc.call(n),n.protocol=Lc.call(n),n.username=Uc.call(n),n.password=Mc.call(n),n.host=_c.call(n),n.hostname=Nc.call(n),n.port=Cc.call(n),n.pathname=Fc.call(n),n.search=Bc.call(n),n.searchParams=Dc.call(n),n.hash=qc.call(n))},Ic=Pc.prototype,Tc=function(){var t=Rs(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+":";return null!==o?(c+="//",tc(t)&&(c+=r+(n?":"+n:"")+"@"),c+=$s(o),null!==i&&(c+=":"+i)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},kc=function(){var t=Rs(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Zs(t)?e+"://"+$s(t.host)+(null!==r?":"+r:""):"null"},Lc=function(){return Rs(this).scheme+":"},Uc=function(){return Rs(this).username},Mc=function(){return Rs(this).password},_c=function(){var t=Rs(this),e=t.host,r=t.port;return null===e?"":null===r?$s(e):$s(e)+":"+r},Nc=function(){var t=Rs(this).host;return null===t?"":$s(t)},Cc=function(){var t=Rs(this).port;return null===t?"":String(t)},Fc=function(){var t=Rs(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Bc=function(){var t=Rs(this).query;return t?"?"+t:""},Dc=function(){return Rs(this).searchParams},qc=function(){var t=Rs(this).fragment;return t?"#"+t:""},zc=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&Wt(Ic,{href:zc(Tc,function(t){var e=Rs(this),r=String(t),n=jc(e,r);if(n)throw TypeError(n);As(e.searchParams).updateSearchParams(e.query)}),origin:zc(kc),protocol:zc(Lc,function(t){var e=Rs(this);jc(e,String(t)+":",ac)}),username:zc(Uc,function(t){var e=Rs(this),r=dr(String(t));if(!ec(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=Js(r[n],Ys)}}),password:zc(Mc,function(t){var e=Rs(this),r=dr(String(t));if(!ec(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=Js(r[n],Ys)}}),host:zc(_c,function(t){var e=Rs(this);e.cannotBeABaseURL||jc(e,String(t),gc)}),hostname:zc(Nc,function(t){var e=Rs(this);e.cannotBeABaseURL||jc(e,String(t),yc)}),port:zc(Cc,function(t){var e=Rs(this);ec(e)||(""==(t=String(t))?e.port=null:jc(e,t,mc))}),pathname:zc(Fc,function(t){var e=Rs(this);e.cannotBeABaseURL||(e.path=[],jc(e,t+"",Ec))}),search:zc(Bc,function(t){var e=Rs(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",jc(e,t,Oc)),As(e.searchParams).updateSearchParams(e.query)}),searchParams:zc(Dc),hash:zc(qc,function(t){var e=Rs(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",jc(e,t,Rc)):e.fragment=null})}),rt(Ic,"toJSON",function(){return Tc.call(this)},{enumerable:!0}),rt(Ic,"toString",function(){return Tc.call(this)},{enumerable:!0}),Es){var Wc=Es.createObjectURL,Kc=Es.revokeObjectURL;Wc&&rt(Pc,"createObjectURL",function(t){return Wc.apply(Es,arguments)}),Kc&&rt(Pc,"revokeObjectURL",function(t){return Kc.apply(Es,arguments)})}Ce(Pc,"URL"),Lt({global:!0,forced:!Cu,sham:!i},{URL:Pc}),Lt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}}),Lt({target:"WeakMap",stat:!0},{from:nn}),Lt({target:"WeakMap",stat:!0},{of:on}),Lt({target:"WeakMap",proto:!0,real:!0,forced:q},{deleteAll:function(){return an.apply(this,arguments)}}),Lt({target:"WeakMap",proto:!0,real:!0,forced:q},{upsert:ln}),Br("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},wo),Lt({target:"WeakSet",proto:!0,real:!0,forced:q},{addAll:function(){return Qi.apply(this,arguments)}}),Lt({target:"WeakSet",proto:!0,real:!0,forced:q},{deleteAll:function(){return an.apply(this,arguments)}}),Lt({target:"WeakSet",stat:!0},{from:nn}),Lt({target:"WeakSet",stat:!0},{of:on});var Gc,$c,Vc,Hc=n.Promise,Xc=/(iphone|ipod|ipad).*applewebkit/i.test(ra),Yc=n.location,Jc=n.setImmediate,Qc=n.clearImmediate,Zc=n.process,tf=n.MessageChannel,ef=n.Dispatch,rf=0,nf={},of=function(t){if(nf.hasOwnProperty(t)){var e=nf[t];delete nf[t],e()}},af=function(t){return function(){of(t)}},uf=function(t){of(t.data)},sf=function(t){n.postMessage(t+"",Yc.protocol+"//"+Yc.host)};Jc&&Qc||(Jc=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return nf[++rf]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Gc(rf),rf},Qc=function(t){delete nf[t]},"process"==h(Zc)?Gc=function(t){Zc.nextTick(af(t))}:ef&&ef.now?Gc=function(t){ef.now(af(t))}:tf&&!Xc?(Vc=($c=new tf).port2,$c.port1.onmessage=uf,Gc=te(Vc.postMessage,Vc,1)):!n.addEventListener||"function"!=typeof postMessage||n.importScripts||o(sf)||"file:"===Yc.protocol?Gc="onreadystatechange"in x("script")?function(t){Kt.appendChild(x("script")).onreadystatechange=function(){Kt.removeChild(this),of(t)}}:function(t){setTimeout(af(t),0)}:(Gc=sf,n.addEventListener("message",uf,!1)));var cf,ff,lf,hf,pf,df,vf,gf,yf={set:Jc,clear:Qc},mf=R.f,bf=yf.set,wf=n.MutationObserver||n.WebKitMutationObserver,Sf=n.process,Ef=n.Promise,xf="process"==h(Sf),Af=mf(n,"queueMicrotask"),Of=Af&&Af.value;Of||(cf=function(){var t,e;for(xf&&(t=Sf.domain)&&t.exit();ff;){e=ff.fn,ff=ff.next;try{e()}catch(t){throw ff?hf():lf=void 0,t}}lf=void 0,t&&t.enter()},xf?hf=function(){Sf.nextTick(cf)}:wf&&!Xc?(pf=!0,df=document.createTextNode(""),new wf(cf).observe(df,{characterData:!0}),hf=function(){df.data=pf=!pf}):Ef&&Ef.resolve?(vf=Ef.resolve(void 0),gf=vf.then,hf=function(){gf.call(vf,cf)}):hf=function(){bf.call(n,cf)});var Rf,jf,Pf,If,Tf=Of||function(t){var e={fn:t,next:void 0};lf&&(lf.next=e),ff||(ff=e,hf()),lf=e},kf=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=Zt(e),this.reject=Zt(r)},Lf={f:function(t){return new kf(t)}},Uf=function(t,e){if(j(t),y(e)&&e.constructor===t)return e;var r=Lf.f(t);return(0,r.resolve)(e),r.promise},Mf=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},_f=yf.set,Nf=qt("species"),Cf="Promise",Ff=et.get,Bf=et.set,Df=et.getterFor(Cf),qf=Hc,zf=n.TypeError,Wf=n.document,Kf=n.process,Gf=it("fetch"),$f=Lf.f,Vf=$f,Hf="process"==h(Kf),Xf=!!(Wf&&Wf.createEvent&&n.dispatchEvent),Yf="unhandledrejection",Jf=Tt(Cf,function(){if(F(qf)===String(qf)){if(66===aa)return!0;if(!Hf&&"function"!=typeof PromiseRejectionEvent)return!0}if(aa>=51&&/native code/.test(qf))return!1;var t=qf.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[Nf]=e,!(t.then(function(){})instanceof e)}),Qf=Jf||!br(function(t){qf.all(t).catch(function(){})}),Zf=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},tl=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;Tf(function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var u,s,c,f=n[a++],l=i?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&ol(t,e),e.rejection=1),!0===l?u=o:(d&&d.enter(),u=l(o),d&&(d.exit(),c=!0)),u===f.promise?p(zf("Promise-chain cycle")):(s=Zf(u))?s.call(u,h,p):h(u)):p(o)}catch(t){d&&!c&&d.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&rl(t,e)})}},el=function(t,e,r){var o,i;Xf?((o=Wf.createEvent("Event")).promise=e,o.reason=r,o.initEvent(t,!1,!0),n.dispatchEvent(o)):o={promise:e,reason:r},(i=n["on"+t])?i(o):t===Yf&&function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},rl=function(t,e){_f.call(n,function(){var r,n=e.value;if(nl(e)&&(r=Mf(function(){Hf?Kf.emit("unhandledRejection",n,t):el(Yf,t,n)}),e.rejection=Hf||nl(e)?2:1,r.error))throw r.value})},nl=function(t){return 1!==t.rejection&&!t.parent},ol=function(t,e){_f.call(n,function(){Hf?Kf.emit("rejectionHandled",t):el("rejectionhandled",t,e.value)})},il=function(t,e,r,n){return function(o){t(e,r,o,n)}},al=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,tl(t,e,!0))},ul=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw zf("Promise can't be resolved itself");var o=Zf(r);o?Tf(function(){var n={done:!1};try{o.call(r,il(ul,t,n,e),il(al,t,n,e))}catch(r){al(t,n,r,e)}}):(e.value=r,e.state=1,tl(t,e,!1))}catch(r){al(t,{done:!1},r,e)}}};Jf&&(qf=function(t){Cr(this,qf,Cf),Zt(t),Rf.call(this);var e=Ff(this);try{t(il(ul,this,e),il(al,this,e))}catch(t){al(this,e,t)}},(Rf=function(t){Bf(this,{type:Cf,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Dr(qf.prototype,{then:function(t,e){var r=Df(this),n=$f(fn(this,qf));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Hf?Kf.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&tl(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),jf=function(){var t=new Rf,e=Ff(t);this.promise=t,this.resolve=il(ul,t,e),this.reject=il(al,t,e)},Lf.f=$f=function(t){return t===qf||t===Pf?new jf(t):Vf(t)},"function"==typeof Hc&&(If=Hc.prototype.then,rt(Hc.prototype,"then",function(t,e){var r=this;return new qf(function(t,e){If.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof Gf&&Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Uf(qf,Gf.apply(n,arguments))}}))),Lt({global:!0,wrap:!0,forced:Jf},{Promise:qf}),Ce(qf,Cf,!1),zr(Cf),Pf=it(Cf),Lt({target:Cf,stat:!0,forced:Jf},{reject:function(t){var e=$f(this);return e.reject.call(void 0,t),e.promise}}),Lt({target:Cf,stat:!0,forced:Jf},{resolve:function(t){return Uf(this,t)}}),Lt({target:Cf,stat:!0,forced:Qf},{all:function(t){var e=this,r=$f(e),n=r.resolve,o=r.reject,i=Mf(function(){var r=Zt(e.resolve),i=[],a=0,u=1;Nr(t,function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=$f(e),n=r.reject,o=Mf(function(){var o=Zt(e.resolve);Nr(t,function(t){o.call(e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Lt({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=Lf.f(e),n=r.resolve,o=r.reject,i=Mf(function(){var r=Zt(e.resolve),o=[],i=0,a=1;Nr(t,function(t){var u=i++,s=!1;o.push(void 0),a++,r.call(e,t).then(function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var sl=!!Hc&&o(function(){Hc.prototype.finally.call({then:function(){}},function(){})});Lt({target:"Promise",proto:!0,real:!0,forced:sl},{finally:function(t){var e=fn(this,it("Promise")),r="function"==typeof t;return this.then(r?function(r){return Uf(e,t()).then(function(){return r})}:t,r?function(r){return Uf(e,t()).then(function(){throw r})}:t)}}),"function"!=typeof Hc||Hc.prototype.finally||rt(Hc.prototype,"finally",it("Promise").prototype.finally);var cl=et.set,fl=et.getterFor("AggregateError"),ll=function(t,e){var r=this;if(!(r instanceof ll))return new ll(t,e);We&&(r=We(new Error(e),ke(r)));var n=[];return Nr(t,n.push,n),i?cl(r,{errors:n,type:"AggregateError"}):r.errors=n,void 0!==e&&T(r,"message",String(e)),r};ll.prototype=Xt(Error.prototype,{constructor:f(5,ll),message:f(5,""),name:f(5,"AggregateError")}),i&&I.f(ll.prototype,"errors",{get:function(){return fl(this).errors},configurable:!0}),Lt({global:!0},{AggregateError:ll}),Lt({target:"Promise",stat:!0},{try:function(t){var e=Lf.f(this),r=Mf(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var hl="No one promise resolved";Lt({target:"Promise",stat:!0},{any:function(t){var e=this,r=Lf.f(e),n=r.resolve,o=r.reject,i=Mf(function(){var r=Zt(e.resolve),i=[],a=0,u=1,s=!1;Nr(t,function(t){var c=a++,f=!1;i.push(void 0),u++,r.call(e,t).then(function(t){f||s||(s=!0,n(t))},function(t){f||s||(f=!0,i[c]=t,--u||o(new(it("AggregateError"))(i,hl)))})}),--u||o(new(it("AggregateError"))(i,hl))});return i.error&&o(i.value),r.promise}}),re("Promise","finally");var pl="URLSearchParams"in self,dl="Symbol"in self&&"iterator"in Symbol,vl="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),gl="FormData"in self,yl="ArrayBuffer"in self;if(yl)var ml=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],bl=ArrayBuffer.isView||function(t){return t&&ml.indexOf(Object.prototype.toString.call(t))>-1};function wl(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function Sl(t){return"string"!=typeof t&&(t=String(t)),t}function El(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return dl&&(e[Symbol.iterator]=function(){return e}),e}function xl(t){this.map={},t instanceof xl?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Al(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Ol(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function Rl(t){var e=new FileReader,r=Ol(e);return e.readAsArrayBuffer(t),r}function jl(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Pl(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:vl&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:gl&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:pl&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():yl&&vl&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=jl(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):yl&&(ArrayBuffer.prototype.isPrototypeOf(t)||bl(t))?this._bodyArrayBuffer=jl(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):pl&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},vl&&(this.blob=function(){var t=Al(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Al(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Rl)}),this.text=function(){var t=Al(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=Ol(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},gl&&(this.formData=function(){return this.text().then(kl)}),this.json=function(){return this.text().then(JSON.parse)},this}xl.prototype.append=function(t,e){t=wl(t),e=Sl(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},xl.prototype.delete=function(t){delete this.map[wl(t)]},xl.prototype.get=function(t){return t=wl(t),this.has(t)?this.map[t]:null},xl.prototype.has=function(t){return this.map.hasOwnProperty(wl(t))},xl.prototype.set=function(t,e){this.map[wl(t)]=Sl(e)},xl.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},xl.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),El(t)},xl.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),El(t)},xl.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),El(t)},dl&&(xl.prototype[Symbol.iterator]=xl.prototype.entries);var Il=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Tl(t,e){var r,n,o=(e=e||{}).body;if(t instanceof Tl){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new xl(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new xl(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),Il.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function kl(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function Ll(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new xl(e.headers),this.url=e.url||"",this._initBody(t)}Tl.prototype.clone=function(){return new Tl(this,{body:this._bodyInit})},Pl.call(Tl.prototype),Pl.call(Ll.prototype),Ll.prototype.clone=function(){return new Ll(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new xl(this.headers),url:this.url})},Ll.error=function(){var t=new Ll(null,{status:0,statusText:""});return t.type="error",t};var Ul=[301,302,303,307,308];Ll.redirect=function(t,e){if(-1===Ul.indexOf(e))throw new RangeError("Invalid status code");return new Ll(null,{status:e,headers:{location:t}})};var Ml=self.DOMException;try{new Ml}catch(t){(Ml=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),Ml.prototype.constructor=Ml}function _l(t,e){return new Promise(function(r,n){var o=new Tl(t,e);if(o.signal&&o.signal.aborted)return n(new Ml("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new xl,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL"),r(new Ll("response"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new Ml("Aborted","AbortError"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&vl&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}_l.polyfill=!0,self.fetch||(self.fetch=_l,self.Headers=xl,self.Request=Tl,self.Response=Ll);var Nl=Object.getOwnPropertySymbols,Cl=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable;function Bl(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var Dl=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=Bl(t),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))Cl.call(r,a)&&(o[a]=r[a]);if(Nl){n=Nl(r);for(var u=0;u<n.length;u++)Fl.call(r,n[u])&&(o[n[u]]=r[n[u]])}}return o};Object.assign=Dl}(); diff --git a/apps/web/.next/static/chunks/webpack-7c56eb6342069862.js b/apps/web/.next/static/chunks/webpack-7c56eb6342069862.js new file mode 100644 index 00000000..c0c07a11 --- /dev/null +++ b/apps/web/.next/static/chunks/webpack-7c56eb6342069862.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t,r,n,o,u,i,c,f,a={},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}},n=!0;try{a[e](r,r.exports,s),n=!1}finally{n&&delete l[e]}return r.exports}s.m=a,e=[],s.O=function(t,r,n,o){if(r){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,n,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var r=e[u][0],n=e[u][1],o=e[u][2],c=!0,f=0;f<r.length;f++)i>=o&&Object.keys(s.O).every(function(e){return s.O[e](r[f])})?r.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=n();void 0!==a&&(t=a)}}return t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,n){if(1&n&&(e=this(e)),8&n||"object"==typeof e&&e&&(4&n&&e.__esModule||16&n&&"function"==typeof e.then))return e;var o=Object.create(null);s.r(o);var u={};t=t||[null,r({}),r([]),r(r)];for(var i=2&n&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},s.d(o,u),o},s.d=function(e,t){for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce(function(t,r){return s.f[r](e,t),t},[]))},s.u=function(e){},s.miniCssF=function(e){return"static/css/6c15d7e3526590b3.css"},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="_N_E:",s.l=function(e,t,r,u){if(n[e]){n[e].push(t);return}if(void 0!==r)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+r){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",o+r),i.src=s.tu(e)),n[e]=[t];var d=function(t,r){i.onerror=i.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(r)}),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},s.tu=function(e){return s.tt().createScriptURL(e)},s.p="/_next/",i={272:0},s.f.j=function(e,t){var r=s.o(i,e)?i[e]:void 0;if(0!==r){if(r)t.push(r[2]);else if(272!=e){var n=new Promise(function(t,n){r=i[e]=[t,n]});t.push(r[2]=n);var o=s.p+s.u(e),u=Error();s.l(o,function(t){if(s.o(i,e)&&(0!==(r=i[e])&&(i[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",u.name="ChunkLoadError",u.type=n,u.request=o,r[1](u)}},"chunk-"+e,e)}else i[e]=0}},s.O.j=function(e){return 0===i[e]},c=function(e,t){var r,n,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(r in u)s.o(u,r)&&(s.m[r]=u[r]);if(c)var a=c(s)}for(e&&e(t);f<o.length;f++)n=o[f],s.o(i,n)&&i[n]&&i[n][0](),i[n]=0;return s.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f))}();
\ No newline at end of file diff --git a/apps/web/.next/static/css/6c15d7e3526590b3.css b/apps/web/.next/static/css/6c15d7e3526590b3.css new file mode 100644 index 00000000..356783ab --- /dev/null +++ b/apps/web/.next/static/css/6c15d7e3526590b3.css @@ -0,0 +1,5 @@ +@font-face{font-family:__Inter_aaf875;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/ec159349637c90ad-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Inter_aaf875;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/513657b02c5c193f-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Inter_aaf875;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/fd4db3eb5472fc27-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:__Inter_aaf875;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/51ed15f9841b9f9d-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Inter_aaf875;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/05a31a2ca4975f99-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:__Inter_aaf875;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/d6b16ce4a6175f26-s.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Inter_aaf875;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Inter_Fallback_aaf875;src:local("Arial");ascent-override:90.20%;descent-override:22.48%;line-gap-override:0.00%;size-adjust:107.40%}.__className_aaf875{font-family:__Inter_aaf875,__Inter_Fallback_aaf875;font-style:normal}.__variable_aaf875{--font-sans:"__Inter_aaf875","__Inter_Fallback_aaf875"} + +/* +! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
\ No newline at end of file diff --git a/apps/web/.next/static/media/05a31a2ca4975f99-s.woff2 b/apps/web/.next/static/media/05a31a2ca4975f99-s.woff2 Binary files differnew file mode 100644 index 00000000..cbcdad70 --- /dev/null +++ b/apps/web/.next/static/media/05a31a2ca4975f99-s.woff2 diff --git a/apps/web/.next/static/media/513657b02c5c193f-s.woff2 b/apps/web/.next/static/media/513657b02c5c193f-s.woff2 Binary files differnew file mode 100644 index 00000000..fd86d822 --- /dev/null +++ b/apps/web/.next/static/media/513657b02c5c193f-s.woff2 diff --git a/apps/web/.next/static/media/51ed15f9841b9f9d-s.woff2 b/apps/web/.next/static/media/51ed15f9841b9f9d-s.woff2 Binary files differnew file mode 100644 index 00000000..49132b59 --- /dev/null +++ b/apps/web/.next/static/media/51ed15f9841b9f9d-s.woff2 diff --git a/apps/web/.next/static/media/c9a5bc6a7c948fb0-s.p.woff2 b/apps/web/.next/static/media/c9a5bc6a7c948fb0-s.p.woff2 Binary files differnew file mode 100644 index 00000000..3edd2e53 --- /dev/null +++ b/apps/web/.next/static/media/c9a5bc6a7c948fb0-s.p.woff2 diff --git a/apps/web/.next/static/media/d6b16ce4a6175f26-s.woff2 b/apps/web/.next/static/media/d6b16ce4a6175f26-s.woff2 Binary files differnew file mode 100644 index 00000000..725ee6b6 --- /dev/null +++ b/apps/web/.next/static/media/d6b16ce4a6175f26-s.woff2 diff --git a/apps/web/.next/static/media/ec159349637c90ad-s.woff2 b/apps/web/.next/static/media/ec159349637c90ad-s.woff2 Binary files differnew file mode 100644 index 00000000..3c039fcc --- /dev/null +++ b/apps/web/.next/static/media/ec159349637c90ad-s.woff2 diff --git a/apps/web/.next/static/media/fd4db3eb5472fc27-s.woff2 b/apps/web/.next/static/media/fd4db3eb5472fc27-s.woff2 Binary files differnew file mode 100644 index 00000000..7f60b426 --- /dev/null +++ b/apps/web/.next/static/media/fd4db3eb5472fc27-s.woff2 diff --git a/apps/web/.next/trace b/apps/web/.next/trace new file mode 100644 index 00000000..1f503fe7 --- /dev/null +++ b/apps/web/.next/trace @@ -0,0 +1,2 @@ +[{"name":"generate-buildid","duration":115,"timestamp":774792955752,"id":4,"parentId":1,"tags":{},"startTime":1708556849318,"traceId":"afae49d16fef4027"},{"name":"load-custom-routes","duration":119,"timestamp":774792955961,"id":5,"parentId":1,"tags":{},"startTime":1708556849319,"traceId":"afae49d16fef4027"},{"name":"create-pages-mapping","duration":104,"timestamp":774793000463,"id":6,"parentId":1,"tags":{},"startTime":1708556849363,"traceId":"afae49d16fef4027"},{"name":"collect-app-paths","duration":20217,"timestamp":774793000583,"id":7,"parentId":1,"tags":{},"startTime":1708556849363,"traceId":"afae49d16fef4027"},{"name":"create-app-mapping","duration":401,"timestamp":774793020819,"id":8,"parentId":1,"tags":{},"startTime":1708556849383,"traceId":"afae49d16fef4027"},{"name":"public-dir-conflict-check","duration":891,"timestamp":774793021407,"id":9,"parentId":1,"tags":{},"startTime":1708556849384,"traceId":"afae49d16fef4027"},{"name":"generate-routes-manifest","duration":1150,"timestamp":774793022388,"id":10,"parentId":1,"tags":{},"startTime":1708556849385,"traceId":"afae49d16fef4027"},{"name":"create-dist-dir","duration":78,"timestamp":774793023845,"id":11,"parentId":1,"tags":{},"startTime":1708556849386,"traceId":"afae49d16fef4027"},{"name":"write-routes-manifest","duration":211,"timestamp":774793030483,"id":12,"parentId":1,"tags":{},"startTime":1708556849393,"traceId":"afae49d16fef4027"},{"name":"generate-required-server-files","duration":179,"timestamp":774793030941,"id":13,"parentId":1,"tags":{},"startTime":1708556849393,"traceId":"afae49d16fef4027"},{"name":"create-entrypoints","duration":13197,"timestamp":774793258565,"id":16,"parentId":14,"tags":{},"startTime":1708556849621,"traceId":"afae49d16fef4027"},{"name":"generate-webpack-config","duration":173026,"timestamp":774793271849,"id":17,"parentId":15,"tags":{},"startTime":1708556849634,"traceId":"afae49d16fef4027"},{"name":"next-trace-entrypoint-plugin","duration":1034,"timestamp":774793487401,"id":19,"parentId":18,"tags":{},"startTime":1708556849850,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":103541,"timestamp":774793491555,"id":22,"parentId":20,"tags":{"request":"next/dist/pages/_app"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":119781,"timestamp":774793491574,"id":23,"parentId":20,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=next%2Fdist%2Fpages%2F_app&absoluteDocumentPath=next%2Fdist%2Fpages%2F_document&middlewareConfigBase64=e30%3D!"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":122713,"timestamp":774793491612,"id":28,"parentId":20,"tags":{"request":"next/dist/pages/_document"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":131604,"timestamp":774793491286,"id":21,"parentId":20,"tags":{"request":"next-app-loader?page=%2F_not-found&name=app%2F_not-found&pagePath=next%2Fdist%2Fclient%2Fcomponents%2Fnot-found-error&appDir=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fapps%2Fweb%2Fsrc%2Fapp&appPaths=next%2Fdist%2Fclient%2Fcomponents%2Fnot-found-error&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":131295,"timestamp":774793491606,"id":27,"parentId":20,"tags":{"request":"next-app-loader?page=%2Fpage&name=app%2Fpage&pagePath=private-next-app-dir%2Fpage.tsx&appDir=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fapps%2Fweb%2Fsrc%2Fapp&appPaths=%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":147646,"timestamp":774793491588,"id":24,"parentId":20,"tags":{"request":"next-app-loader?page=%2Faccount%2Fpage&name=app%2Faccount%2Fpage&pagePath=private-next-app-dir%2Faccount%2Fpage.tsx&appDir=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fapps%2Fweb%2Fsrc%2Fapp&appPaths=%2Faccount%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":214814,"timestamp":774793491601,"id":26,"parentId":20,"tags":{"request":"next-app-loader?page=%2Fapi%2Fstore%2Froute&name=app%2Fapi%2Fstore%2Froute&pagePath=private-next-app-dir%2Fapi%2Fstore%2Froute.ts&appDir=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fapps%2Fweb%2Fsrc%2Fapp&appPaths=%2Fapi%2Fstore%2Froute&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":250380,"timestamp":774793491595,"id":25,"parentId":20,"tags":{"request":"next-app-loader?page=%2Fapi%2Fauth%2F%5B...nextauth%5D%2Froute&name=app%2Fapi%2Fauth%2F%5B...nextauth%5D%2Froute&pagePath=private-next-app-dir%2Fapi%2Fauth%2F%5B...nextauth%5D%2Froute.ts&appDir=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fapps%2Fweb%2Fsrc%2Fapp&appPaths=%2Fapi%2Fauth%2F%5B...nextauth%5D%2Froute&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!"},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"make","duration":269937,"timestamp":774793491112,"id":20,"parentId":18,"tags":{},"startTime":1708556849854,"traceId":"afae49d16fef4027"},{"name":"get-entries","duration":375,"timestamp":774793761804,"id":38,"parentId":37,"tags":{},"startTime":1708556850124,"traceId":"afae49d16fef4027"},{"name":"node-file-trace-plugin","duration":40637,"timestamp":774793763928,"id":39,"parentId":37,"tags":{"traceEntryCount":"12"},"startTime":1708556850126,"traceId":"afae49d16fef4027"},{"name":"collect-traced-files","duration":344,"timestamp":774793804570,"id":40,"parentId":37,"tags":{},"startTime":1708556850167,"traceId":"afae49d16fef4027"},{"name":"finish-modules","duration":43220,"timestamp":774793761696,"id":37,"parentId":19,"tags":{},"startTime":1708556850124,"traceId":"afae49d16fef4027"},{"name":"chunk-graph","duration":5060,"timestamp":774793828012,"id":42,"parentId":41,"tags":{},"startTime":1708556850191,"traceId":"afae49d16fef4027"},{"name":"optimize-modules","duration":11,"timestamp":774793833124,"id":44,"parentId":41,"tags":{},"startTime":1708556850196,"traceId":"afae49d16fef4027"},{"name":"optimize-chunks","duration":5071,"timestamp":774793833173,"id":45,"parentId":41,"tags":{},"startTime":1708556850196,"traceId":"afae49d16fef4027"},{"name":"optimize-tree","duration":71,"timestamp":774793838278,"id":46,"parentId":41,"tags":{},"startTime":1708556850201,"traceId":"afae49d16fef4027"},{"name":"optimize-chunk-modules","duration":10744,"timestamp":774793838387,"id":47,"parentId":41,"tags":{},"startTime":1708556850201,"traceId":"afae49d16fef4027"},{"name":"optimize","duration":16081,"timestamp":774793833102,"id":43,"parentId":41,"tags":{},"startTime":1708556850196,"traceId":"afae49d16fef4027"},{"name":"module-hash","duration":8225,"timestamp":774793862557,"id":48,"parentId":41,"tags":{},"startTime":1708556850225,"traceId":"afae49d16fef4027"},{"name":"code-generation","duration":3051,"timestamp":774793870802,"id":49,"parentId":41,"tags":{},"startTime":1708556850233,"traceId":"afae49d16fef4027"},{"name":"hash","duration":4296,"timestamp":774793876404,"id":50,"parentId":41,"tags":{},"startTime":1708556850239,"traceId":"afae49d16fef4027"},{"name":"code-generation-jobs","duration":109,"timestamp":774793880699,"id":51,"parentId":41,"tags":{},"startTime":1708556850243,"traceId":"afae49d16fef4027"},{"name":"module-assets","duration":158,"timestamp":774793880790,"id":52,"parentId":41,"tags":{},"startTime":1708556850243,"traceId":"afae49d16fef4027"},{"name":"create-chunk-assets","duration":893,"timestamp":774793880953,"id":53,"parentId":41,"tags":{},"startTime":1708556850243,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":241,"timestamp":774793886849,"id":55,"parentId":54,"tags":{"name":"../app/_not-found.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":163,"timestamp":774793886929,"id":56,"parentId":54,"tags":{"name":"../pages/_app.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":158,"timestamp":774793886935,"id":57,"parentId":54,"tags":{"name":"../pages/_error.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":155,"timestamp":774793886939,"id":58,"parentId":54,"tags":{"name":"../app/account/page.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":152,"timestamp":774793886943,"id":59,"parentId":54,"tags":{"name":"../app/api/auth/[...nextauth]/route.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":149,"timestamp":774793886946,"id":60,"parentId":54,"tags":{"name":"../app/api/store/route.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":147,"timestamp":774793886950,"id":61,"parentId":54,"tags":{"name":"../app/page.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":144,"timestamp":774793886953,"id":62,"parentId":54,"tags":{"name":"../pages/_document.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":141,"timestamp":774793886956,"id":63,"parentId":54,"tags":{"name":"../webpack-runtime.js","cache":"HIT"},"startTime":1708556850249,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":33,"timestamp":774793887065,"id":64,"parentId":54,"tags":{"name":"369.js","cache":"HIT"},"startTime":1708556850250,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":19,"timestamp":774793887079,"id":65,"parentId":54,"tags":{"name":"38.js","cache":"HIT"},"startTime":1708556850250,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":14,"timestamp":774793887085,"id":66,"parentId":54,"tags":{"name":"917.js","cache":"HIT"},"startTime":1708556850250,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":11,"timestamp":774793887088,"id":67,"parentId":54,"tags":{"name":"296.js","cache":"HIT"},"startTime":1708556850250,"traceId":"afae49d16fef4027"},{"name":"terser-webpack-plugin-optimize","duration":3545,"timestamp":774793883558,"id":54,"parentId":18,"tags":{"compilationName":"server","swcMinify":true},"startTime":1708556850246,"traceId":"afae49d16fef4027"},{"name":"css-minimizer-plugin","duration":73,"timestamp":774793887150,"id":68,"parentId":18,"tags":{},"startTime":1708556850250,"traceId":"afae49d16fef4027"},{"name":"create-trace-assets","duration":454,"timestamp":774793887345,"id":69,"parentId":19,"tags":{},"startTime":1708556850250,"traceId":"afae49d16fef4027"},{"name":"seal","duration":74233,"timestamp":774793817476,"id":41,"parentId":18,"tags":{},"startTime":1708556850180,"traceId":"afae49d16fef4027"},{"name":"webpack-compilation","duration":406426,"timestamp":774793486386,"id":18,"parentId":15,"tags":{"name":"server"},"startTime":1708556849849,"traceId":"afae49d16fef4027"},{"name":"emit","duration":3570,"timestamp":774793892988,"id":70,"parentId":15,"tags":{},"startTime":1708556850256,"traceId":"afae49d16fef4027"},{"name":"webpack-close","duration":374,"timestamp":774793896826,"id":71,"parentId":15,"tags":{"name":"server"},"startTime":1708556850259,"traceId":"afae49d16fef4027"},{"name":"webpack-generate-error-stats","duration":1297,"timestamp":774793897222,"id":72,"parentId":71,"tags":{},"startTime":1708556850260,"traceId":"afae49d16fef4027"},{"name":"run-webpack-compiler","duration":640126,"timestamp":774793258563,"id":15,"parentId":14,"tags":{},"startTime":1708556849621,"traceId":"afae49d16fef4027"},{"name":"format-webpack-messages","duration":36,"timestamp":774793898692,"id":73,"parentId":14,"tags":{},"startTime":1708556850261,"traceId":"afae49d16fef4027"},{"name":"worker-main-server","duration":640364,"timestamp":774793258403,"id":14,"parentId":1,"tags":{},"startTime":1708556849621,"traceId":"afae49d16fef4027"},{"name":"create-entrypoints","duration":12907,"timestamp":774794135418,"id":77,"parentId":75,"tags":{},"startTime":1708556850498,"traceId":"afae49d16fef4027"},{"name":"generate-webpack-config","duration":167876,"timestamp":774794148410,"id":78,"parentId":76,"tags":{},"startTime":1708556850511,"traceId":"afae49d16fef4027"},{"name":"make","duration":382,"timestamp":774794362645,"id":80,"parentId":79,"tags":{},"startTime":1708556850725,"traceId":"afae49d16fef4027"},{"name":"chunk-graph","duration":355,"timestamp":774794364687,"id":82,"parentId":81,"tags":{},"startTime":1708556850727,"traceId":"afae49d16fef4027"},{"name":"optimize-modules","duration":11,"timestamp":774794365093,"id":84,"parentId":81,"tags":{},"startTime":1708556850728,"traceId":"afae49d16fef4027"},{"name":"optimize-chunks","duration":479,"timestamp":774794365147,"id":85,"parentId":81,"tags":{},"startTime":1708556850728,"traceId":"afae49d16fef4027"},{"name":"optimize-tree","duration":58,"timestamp":774794365655,"id":86,"parentId":81,"tags":{},"startTime":1708556850728,"traceId":"afae49d16fef4027"},{"name":"optimize-chunk-modules","duration":404,"timestamp":774794365828,"id":87,"parentId":81,"tags":{},"startTime":1708556850728,"traceId":"afae49d16fef4027"},{"name":"optimize","duration":1203,"timestamp":774794365067,"id":83,"parentId":81,"tags":{},"startTime":1708556850728,"traceId":"afae49d16fef4027"},{"name":"module-hash","duration":45,"timestamp":774794366738,"id":88,"parentId":81,"tags":{},"startTime":1708556850729,"traceId":"afae49d16fef4027"},{"name":"code-generation","duration":113,"timestamp":774794366800,"id":89,"parentId":81,"tags":{},"startTime":1708556850729,"traceId":"afae49d16fef4027"},{"name":"hash","duration":198,"timestamp":774794367042,"id":90,"parentId":81,"tags":{},"startTime":1708556850730,"traceId":"afae49d16fef4027"},{"name":"code-generation-jobs","duration":56,"timestamp":774794367239,"id":91,"parentId":81,"tags":{},"startTime":1708556850730,"traceId":"afae49d16fef4027"},{"name":"module-assets","duration":34,"timestamp":774794367284,"id":92,"parentId":81,"tags":{},"startTime":1708556850730,"traceId":"afae49d16fef4027"},{"name":"create-chunk-assets","duration":100,"timestamp":774794367322,"id":93,"parentId":81,"tags":{},"startTime":1708556850730,"traceId":"afae49d16fef4027"},{"name":"terser-webpack-plugin-optimize","duration":163,"timestamp":774794369320,"id":94,"parentId":79,"tags":{"compilationName":"edge-server","swcMinify":true},"startTime":1708556850732,"traceId":"afae49d16fef4027"},{"name":"css-minimizer-plugin","duration":37,"timestamp":774794369524,"id":95,"parentId":79,"tags":{},"startTime":1708556850732,"traceId":"afae49d16fef4027"},{"name":"seal","duration":7971,"timestamp":774794364376,"id":81,"parentId":79,"tags":{},"startTime":1708556850727,"traceId":"afae49d16fef4027"},{"name":"webpack-compilation","duration":13757,"timestamp":774794358772,"id":79,"parentId":76,"tags":{"name":"edge-server"},"startTime":1708556850721,"traceId":"afae49d16fef4027"},{"name":"emit","duration":1671,"timestamp":774794372714,"id":96,"parentId":76,"tags":{},"startTime":1708556850735,"traceId":"afae49d16fef4027"},{"name":"webpack-close","duration":355,"timestamp":774794374645,"id":97,"parentId":76,"tags":{"name":"edge-server"},"startTime":1708556850737,"traceId":"afae49d16fef4027"},{"name":"webpack-generate-error-stats","duration":1449,"timestamp":774794375022,"id":98,"parentId":97,"tags":{},"startTime":1708556850738,"traceId":"afae49d16fef4027"},{"name":"run-webpack-compiler","duration":241151,"timestamp":774794135416,"id":76,"parentId":75,"tags":{},"startTime":1708556850498,"traceId":"afae49d16fef4027"},{"name":"format-webpack-messages","duration":34,"timestamp":774794376570,"id":99,"parentId":75,"tags":{},"startTime":1708556850739,"traceId":"afae49d16fef4027"},{"name":"worker-main-edge-server","duration":241400,"timestamp":774794135255,"id":75,"parentId":1,"tags":{},"startTime":1708556850498,"traceId":"afae49d16fef4027"},{"name":"create-entrypoints","duration":12747,"timestamp":774794604434,"id":102,"parentId":100,"tags":{},"startTime":1708556850967,"traceId":"afae49d16fef4027"},{"name":"generate-webpack-config","duration":170533,"timestamp":774794617263,"id":103,"parentId":101,"tags":{},"startTime":1708556850980,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":49221,"timestamp":774794833505,"id":115,"parentId":105,"tags":{"request":"next-flight-client-entry-loader?server=false!"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":66741,"timestamp":774794833364,"id":114,"parentId":105,"tags":{"request":"next-flight-client-entry-loader?modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fapps%2Fweb%2Fsrc%2Fapp%2Faccount%2Fclient.tsx&server=false!"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":75094,"timestamp":774794833241,"id":109,"parentId":105,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fclient%2Fcomponents%2Fnot-found-error&page=%2F_not-found!"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":76423,"timestamp":774794833334,"id":110,"parentId":105,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_app&page=%2F_app!"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":76410,"timestamp":774794833354,"id":112,"parentId":105,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":84170,"timestamp":774794833228,"id":108,"parentId":105,"tags":{"request":"next-flight-client-entry-loader?modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fnode_modules%2Fnext%2Fdist%2Fclient%2Fcomponents%2Fapp-router.js&modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fnode_modules%2Fnext%2Fdist%2Fclient%2Fcomponents%2Ferror-boundary.js&modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fnode_modules%2Fnext%2Fdist%2Fclient%2Fcomponents%2Flayout-router.js&modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fnode_modules%2Fnext%2Fdist%2Fclient%2Fcomponents%2Fnot-found-boundary.js&modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fnode_modules%2Fnext%2Fdist%2Fclient%2Fcomponents%2Frender-from-template-context.js&modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fnode_modules%2Fnext%2Fdist%2Fclient%2Fcomponents%2Fstatic-generation-searchparams-bailout-provider.js&server=false!"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":84193,"timestamp":774794833212,"id":107,"parentId":105,"tags":{"request":"./../../node_modules/next/dist/client/app-next.js"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":84070,"timestamp":774794833359,"id":113,"parentId":105,"tags":{"request":"next-flight-client-entry-loader?modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fnode_modules%2Fnext%2Ffont%2Fgoogle%2Ftarget.css%3F%7B%22path%22%3A%22src%2Fapp%2Flayout.tsx%22%2C%22import%22%3A%22Inter%22%2C%22arguments%22%3A%5B%7B%22subsets%22%3A%5B%22latin%22%5D%2C%22variable%22%3A%22--font-sans%22%7D%5D%2C%22variableName%22%3A%22inter%22%7D&modules=%2FUsers%2Fdhravyashah%2FDocuments%2Fcode%2Fanycontext%2Fapps%2Fweb%2Fsrc%2Fstyles%2Fglobals.css&server=false!"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":84514,"timestamp":774794832953,"id":106,"parentId":105,"tags":{"request":"./../../node_modules/next/dist/client/next.js"},"startTime":1708556851195,"traceId":"afae49d16fef4027"},{"name":"add-entry","duration":84186,"timestamp":774794833348,"id":111,"parentId":105,"tags":{"request":"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/router.js"},"startTime":1708556851196,"traceId":"afae49d16fef4027"},{"name":"make","duration":84936,"timestamp":774794832740,"id":105,"parentId":104,"tags":{},"startTime":1708556851195,"traceId":"afae49d16fef4027"},{"name":"chunk-graph","duration":3195,"timestamp":774794925322,"id":117,"parentId":116,"tags":{},"startTime":1708556851288,"traceId":"afae49d16fef4027"}] +[{"name":"optimize-modules","duration":11,"timestamp":774794928564,"id":119,"parentId":116,"tags":{},"startTime":1708556851291,"traceId":"afae49d16fef4027"},{"name":"optimize-chunks","duration":4027,"timestamp":774794928611,"id":120,"parentId":116,"tags":{},"startTime":1708556851291,"traceId":"afae49d16fef4027"},{"name":"optimize-tree","duration":63,"timestamp":774794932669,"id":121,"parentId":116,"tags":{},"startTime":1708556851295,"traceId":"afae49d16fef4027"},{"name":"optimize-chunk-modules","duration":1048,"timestamp":774794932772,"id":122,"parentId":116,"tags":{},"startTime":1708556851295,"traceId":"afae49d16fef4027"},{"name":"optimize","duration":5312,"timestamp":774794928543,"id":118,"parentId":116,"tags":{},"startTime":1708556851291,"traceId":"afae49d16fef4027"},{"name":"module-hash","duration":3872,"timestamp":774794941548,"id":123,"parentId":116,"tags":{},"startTime":1708556851304,"traceId":"afae49d16fef4027"},{"name":"code-generation","duration":1308,"timestamp":774794945436,"id":124,"parentId":116,"tags":{},"startTime":1708556851308,"traceId":"afae49d16fef4027"},{"name":"hash","duration":5196,"timestamp":774794949233,"id":125,"parentId":116,"tags":{},"startTime":1708556851312,"traceId":"afae49d16fef4027"},{"name":"code-generation-jobs","duration":155,"timestamp":774794954427,"id":126,"parentId":116,"tags":{},"startTime":1708556851317,"traceId":"afae49d16fef4027"},{"name":"module-assets","duration":267,"timestamp":774794954562,"id":127,"parentId":116,"tags":{},"startTime":1708556851317,"traceId":"afae49d16fef4027"},{"name":"create-chunk-assets","duration":1518,"timestamp":774794954834,"id":128,"parentId":116,"tags":{},"startTime":1708556851317,"traceId":"afae49d16fef4027"},{"name":"NextJsBuildManifest-generateClientManifest","duration":562,"timestamp":774794957342,"id":130,"parentId":104,"tags":{},"startTime":1708556851320,"traceId":"afae49d16fef4027"},{"name":"NextJsBuildManifest-createassets","duration":1048,"timestamp":774794956860,"id":129,"parentId":104,"tags":{},"startTime":1708556851319,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":620,"timestamp":774794960783,"id":132,"parentId":131,"tags":{"name":"static/chunks/main-2f8ae24bc202a544.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":538,"timestamp":774794960869,"id":133,"parentId":131,"tags":{"name":"static/chunks/main-app-6394067cfc5308ad.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":532,"timestamp":774794960875,"id":134,"parentId":131,"tags":{"name":"static/chunks/app/_not-found-2c355b04f2805185.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":529,"timestamp":774794960880,"id":135,"parentId":131,"tags":{"name":"static/chunks/pages/_app-22ef1381f3010e9c.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":524,"timestamp":774794960885,"id":136,"parentId":131,"tags":{"name":"static/chunks/pages/_error-2312f57de16788ac.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":521,"timestamp":774794960888,"id":137,"parentId":131,"tags":{"name":"static/chunks/app/layout-d03d6a3648fc999a.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":518,"timestamp":774794960892,"id":138,"parentId":131,"tags":{"name":"static/chunks/app/account/page-0cdf2840d5548012.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":515,"timestamp":774794960895,"id":139,"parentId":131,"tags":{"name":"static/chunks/app/page-4446d9ce009d4a80.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":512,"timestamp":774794960899,"id":140,"parentId":131,"tags":{"name":"static/chunks/webpack-7c56eb6342069862.js","cache":"HIT"},"startTime":1708556851323,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":414,"timestamp":774794960999,"id":141,"parentId":131,"tags":{"name":"static/chunks/framework-9e68550641db712d.js","cache":"HIT"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":369,"timestamp":774794961044,"id":142,"parentId":131,"tags":{"name":"static/chunks/1dd3208c-2005e60b0a14e8cf.js","cache":"HIT"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":363,"timestamp":774794961050,"id":143,"parentId":131,"tags":{"name":"static/chunks/997-22e52d7003e9633c.js","cache":"HIT"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":360,"timestamp":774794961053,"id":144,"parentId":131,"tags":{"name":"server/middleware-react-loadable-manifest.js","cache":"HIT"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":14,"timestamp":774794961400,"id":148,"parentId":131,"tags":{"name":"server/next-font-manifest.js","cache":"HIT"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":790,"timestamp":774794961301,"id":146,"parentId":131,"tags":{"name":"server/middleware-build-manifest.js","cache":"MISS"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":1046,"timestamp":774794961059,"id":145,"parentId":131,"tags":{"name":"static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js","cache":"MISS"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"minify-js","duration":743,"timestamp":774794961369,"id":147,"parentId":131,"tags":{"name":"static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js","cache":"MISS"},"startTime":1708556851324,"traceId":"afae49d16fef4027"},{"name":"terser-webpack-plugin-optimize","duration":3546,"timestamp":774794958567,"id":131,"parentId":104,"tags":{"compilationName":"client","swcMinify":true},"startTime":1708556851321,"traceId":"afae49d16fef4027"},{"name":"minify-css","duration":34,"timestamp":774794962234,"id":150,"parentId":149,"tags":{"file":"static/css/9f100154703a236e.css","cache":"HIT"},"startTime":1708556851325,"traceId":"afae49d16fef4027"},{"name":"css-minimizer-plugin","duration":110,"timestamp":774794962160,"id":149,"parentId":104,"tags":{},"startTime":1708556851325,"traceId":"afae49d16fef4027"},{"name":"seal","duration":43657,"timestamp":774794921980,"id":116,"parentId":104,"tags":{},"startTime":1708556851285,"traceId":"afae49d16fef4027"},{"name":"webpack-compilation","duration":136834,"timestamp":774794828940,"id":104,"parentId":101,"tags":{"name":"client"},"startTime":1708556851191,"traceId":"afae49d16fef4027"},{"name":"emit","duration":5011,"timestamp":774794965942,"id":151,"parentId":101,"tags":{},"startTime":1708556851328,"traceId":"afae49d16fef4027"},{"name":"webpack-close","duration":13056,"timestamp":774794971253,"id":152,"parentId":101,"tags":{"name":"client"},"startTime":1708556851334,"traceId":"afae49d16fef4027"},{"name":"webpack-generate-error-stats","duration":1512,"timestamp":774794984339,"id":153,"parentId":152,"tags":{},"startTime":1708556851347,"traceId":"afae49d16fef4027"},{"name":"run-webpack-compiler","duration":381588,"timestamp":774794604432,"id":101,"parentId":100,"tags":{},"startTime":1708556850967,"traceId":"afae49d16fef4027"},{"name":"format-webpack-messages","duration":36,"timestamp":774794986023,"id":154,"parentId":100,"tags":{},"startTime":1708556851349,"traceId":"afae49d16fef4027"},{"name":"worker-main-client","duration":381845,"timestamp":774794604273,"id":100,"parentId":1,"tags":{},"startTime":1708556850967,"traceId":"afae49d16fef4027"},{"name":"verify-typescript-setup","duration":1039618,"timestamp":774795011325,"id":156,"parentId":1,"tags":{},"startTime":1708556851374,"traceId":"afae49d16fef4027"},{"name":"verify-and-lint","duration":1122364,"timestamp":774795017950,"id":157,"parentId":1,"tags":{},"startTime":1708556851380,"traceId":"afae49d16fef4027"},{"name":"check-static-error-page","duration":7689,"timestamp":774796192973,"id":159,"parentId":158,"tags":{},"startTime":1708556852555,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":1119,"timestamp":774796223822,"id":160,"parentId":158,"tags":{"page":"/_app"},"startTime":1708556852586,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":532,"timestamp":774796224421,"id":162,"parentId":158,"tags":{"page":"/_document"},"startTime":1708556852587,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":876,"timestamp":774796224254,"id":161,"parentId":158,"tags":{"page":"/_error"},"startTime":1708556852587,"traceId":"afae49d16fef4027"},{"name":"is-page-static","duration":145919,"timestamp":774796226070,"id":172,"parentId":167,"tags":{},"startTime":1708556852589,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":147486,"timestamp":774796224569,"id":167,"parentId":158,"tags":{"page":"/"},"startTime":1708556852587,"traceId":"afae49d16fef4027"},{"name":"is-page-static","duration":148426,"timestamp":774796225899,"id":169,"parentId":166,"tags":{},"startTime":1708556852588,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":149782,"timestamp":774796224558,"id":166,"parentId":158,"tags":{"page":"/api/store"},"startTime":1708556852587,"traceId":"afae49d16fef4027"},{"name":"is-page-static","duration":151270,"timestamp":774796226043,"id":171,"parentId":163,"tags":{},"startTime":1708556852589,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":152885,"timestamp":774796224442,"id":163,"parentId":158,"tags":{"page":"/_not-found"},"startTime":1708556852587,"traceId":"afae49d16fef4027"},{"name":"is-page-static","duration":153970,"timestamp":774796226001,"id":170,"parentId":164,"tags":{},"startTime":1708556852589,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":155537,"timestamp":774796224523,"id":164,"parentId":158,"tags":{"page":"/account"},"startTime":1708556852587,"traceId":"afae49d16fef4027"},{"name":"is-page-static","duration":163242,"timestamp":774796225732,"id":168,"parentId":165,"tags":{},"startTime":1708556852588,"traceId":"afae49d16fef4027"},{"name":"check-page","duration":164764,"timestamp":774796224542,"id":165,"parentId":158,"tags":{"page":"/api/auth/[...nextauth]"},"startTime":1708556852587,"traceId":"afae49d16fef4027"},{"name":"static-check","duration":197167,"timestamp":774796192150,"id":158,"parentId":1,"tags":{},"startTime":1708556852555,"traceId":"afae49d16fef4027"},{"name":"load-dotenv","duration":9,"timestamp":774796409335,"id":176,"parentId":175,"tags":{},"startTime":1708556852772,"traceId":"afae49d16fef4027"},{"name":"run-export-path-map","duration":199,"timestamp":774796621722,"id":177,"parentId":175,"tags":{},"startTime":1708556852984,"traceId":"afae49d16fef4027"},{"name":"export-page","duration":175505,"timestamp":774796622411,"id":178,"parentId":175,"tags":{"path":"/404"},"startTime":1708556852985,"traceId":"afae49d16fef4027"},{"name":"export-page","duration":175553,"timestamp":774796622575,"id":181,"parentId":175,"tags":{"path":"/api/store"},"startTime":1708556852985,"traceId":"afae49d16fef4027"},{"name":"export-page","duration":175648,"timestamp":774796622518,"id":179,"parentId":175,"tags":{"path":"/500"},"startTime":1708556852985,"traceId":"afae49d16fef4027"},{"name":"export-page","duration":175573,"timestamp":774796622624,"id":183,"parentId":175,"tags":{"path":"/account"},"startTime":1708556852985,"traceId":"afae49d16fef4027"},{"name":"export-page","duration":175625,"timestamp":774796622601,"id":182,"parentId":175,"tags":{"path":"/_not-found"},"startTime":1708556852985,"traceId":"afae49d16fef4027"},{"name":"export-page","duration":175699,"timestamp":774796622550,"id":180,"parentId":175,"tags":{"path":"/"},"startTime":1708556852985,"traceId":"afae49d16fef4027"},{"name":"next-export","duration":404385,"timestamp":774796408861,"id":175,"parentId":1,"tags":{},"startTime":1708556852771,"traceId":"afae49d16fef4027"},{"name":"move-exported-app-not-found-","duration":561,"timestamp":774796813454,"id":184,"parentId":174,"tags":{},"startTime":1708556853176,"traceId":"afae49d16fef4027"},{"name":"move-exported-page","duration":859,"timestamp":774796814073,"id":185,"parentId":174,"tags":{},"startTime":1708556853177,"traceId":"afae49d16fef4027"},{"name":"static-generation","duration":410257,"timestamp":774796405852,"id":174,"parentId":1,"tags":{},"startTime":1708556852768,"traceId":"afae49d16fef4027"},{"name":"node-file-trace-build","duration":470775,"timestamp":774796395126,"id":173,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1708556852758,"traceId":"afae49d16fef4027"},{"name":"apply-include-excludes","duration":277,"timestamp":774796865909,"id":186,"parentId":1,"tags":{},"startTime":1708556853228,"traceId":"afae49d16fef4027"},{"name":"print-tree-view","duration":1496,"timestamp":774796866348,"id":187,"parentId":1,"tags":{},"startTime":1708556853229,"traceId":"afae49d16fef4027"},{"name":"telemetry-flush","duration":39085,"timestamp":774796867848,"id":188,"parentId":1,"tags":{},"startTime":1708556853230,"traceId":"afae49d16fef4027"},{"name":"next-build","duration":4007459,"timestamp":774792899481,"id":1,"tags":{"buildMode":"default","isTurboBuild":"false","version":"14.1.0","isTurbopack":false,"has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1708556849262,"traceId":"afae49d16fef4027"}] diff --git a/apps/web/.next/types/app/account/page.ts b/apps/web/.next/types/app/account/page.ts new file mode 100644 index 00000000..77e65fce --- /dev/null +++ b/apps/web/.next/types/app/account/page.ts @@ -0,0 +1,79 @@ +// File: /Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/page.tsx +import * as entry from '../../../../src/app/account/page.js' +import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js' + +type TEntry = typeof import('../../../../src/app/account/page.js') + +// Check that the entry is a valid entry +checkFields<Diff<{ + default: Function + config?: {} + generateStaticParams?: Function + revalidate?: RevalidateRange<TEntry> | false + dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static' + dynamicParams?: boolean + fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache' + preferredRegion?: 'auto' | 'global' | 'home' | string | string[] + runtime?: 'nodejs' | 'experimental-edge' | 'edge' + maxDuration?: number + + metadata?: any + generateMetadata?: Function + viewport?: any + generateViewport?: Function + +}, TEntry, ''>>() + +// Check the prop type of the entry function +checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>() + +// Check the arguments and return type of the generateMetadata function +if ('generateMetadata' in entry) { + checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>() + checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>() +} + +// Check the arguments and return type of the generateViewport function +if ('generateViewport' in entry) { + checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>() + checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>() +} + +// Check the arguments and return type of the generateStaticParams function +if ('generateStaticParams' in entry) { + checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>() + checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>() +} + +type PageParams = any +export interface PageProps { + params?: any + searchParams?: any +} +export interface LayoutProps { + children?: React.ReactNode + + params?: any +} + +// ============= +// Utility types +type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never + +// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>. +type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K> +type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message> + +type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never +type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never +type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never + + + +function checkFields<_ extends { [k in keyof any]: never }>() {} + +// https://github.com/sindresorhus/type-fest +type Numeric = number | bigint +type Zero = 0 | 0n +type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never +type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__' diff --git a/apps/web/.next/types/app/api/auth/[...nextauth]/route.ts b/apps/web/.next/types/app/api/auth/[...nextauth]/route.ts new file mode 100644 index 00000000..70cda11c --- /dev/null +++ b/apps/web/.next/types/app/api/auth/[...nextauth]/route.ts @@ -0,0 +1,343 @@ +// File: /Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/api/auth/[...nextauth]/route.ts +import * as entry from '../../../../../../src/app/api/auth/[...nextauth]/route.js' +import type { NextRequest } from 'next/server.js' + +type TEntry = typeof import('../../../../../../src/app/api/auth/[...nextauth]/route.js') + +// Check that the entry is a valid entry +checkFields<Diff<{ + GET?: Function + HEAD?: Function + OPTIONS?: Function + POST?: Function + PUT?: Function + DELETE?: Function + PATCH?: Function + config?: {} + generateStaticParams?: Function + revalidate?: RevalidateRange<TEntry> | false + dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static' + dynamicParams?: boolean + fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache' + preferredRegion?: 'auto' | 'global' | 'home' | string | string[] + runtime?: 'nodejs' | 'experimental-edge' | 'edge' + maxDuration?: number + +}, TEntry, ''>>() + +// Check the prop type of the entry function +if ('GET' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'GET' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'GET'>> + }, + 'GET' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'GET' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'GET'>> + }, + 'GET' + > + >() + + checkFields< + Diff< + { + __tag__: 'GET', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'GET', + __return_type__: ReturnType<MaybeField<TEntry, 'GET'>> + }, + 'GET' + > + >() +} +// Check the prop type of the entry function +if ('HEAD' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'HEAD' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>> + }, + 'HEAD' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'HEAD' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>> + }, + 'HEAD' + > + >() + + checkFields< + Diff< + { + __tag__: 'HEAD', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'HEAD', + __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>> + }, + 'HEAD' + > + >() +} +// Check the prop type of the entry function +if ('OPTIONS' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'OPTIONS' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>> + }, + 'OPTIONS' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'OPTIONS' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>> + }, + 'OPTIONS' + > + >() + + checkFields< + Diff< + { + __tag__: 'OPTIONS', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'OPTIONS', + __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>> + }, + 'OPTIONS' + > + >() +} +// Check the prop type of the entry function +if ('POST' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'POST' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'POST'>> + }, + 'POST' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'POST' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'POST'>> + }, + 'POST' + > + >() + + checkFields< + Diff< + { + __tag__: 'POST', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'POST', + __return_type__: ReturnType<MaybeField<TEntry, 'POST'>> + }, + 'POST' + > + >() +} +// Check the prop type of the entry function +if ('PUT' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'PUT' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>> + }, + 'PUT' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'PUT' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>> + }, + 'PUT' + > + >() + + checkFields< + Diff< + { + __tag__: 'PUT', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'PUT', + __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>> + }, + 'PUT' + > + >() +} +// Check the prop type of the entry function +if ('DELETE' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'DELETE' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>> + }, + 'DELETE' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'DELETE' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>> + }, + 'DELETE' + > + >() + + checkFields< + Diff< + { + __tag__: 'DELETE', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'DELETE', + __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>> + }, + 'DELETE' + > + >() +} +// Check the prop type of the entry function +if ('PATCH' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'PATCH' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>> + }, + 'PATCH' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'PATCH' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>> + }, + 'PATCH' + > + >() + + checkFields< + Diff< + { + __tag__: 'PATCH', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'PATCH', + __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>> + }, + 'PATCH' + > + >() +} + +// Check the arguments and return type of the generateStaticParams function +if ('generateStaticParams' in entry) { + checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>() + checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>() +} + +type PageParams = any +export interface PageProps { + params?: any + searchParams?: any +} +export interface LayoutProps { + children?: React.ReactNode + + params?: any +} + +// ============= +// Utility types +type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never + +// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>. +type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K> +type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message> + +type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never +type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never +type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never + +type ParamCheck<T> = { + __tag__: string + __param_position__: string + __param_type__: T +} + +function checkFields<_ extends { [k in keyof any]: never }>() {} + +// https://github.com/sindresorhus/type-fest +type Numeric = number | bigint +type Zero = 0 | 0n +type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never +type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__' diff --git a/apps/web/.next/types/app/api/store/route.ts b/apps/web/.next/types/app/api/store/route.ts new file mode 100644 index 00000000..320eca9c --- /dev/null +++ b/apps/web/.next/types/app/api/store/route.ts @@ -0,0 +1,343 @@ +// File: /Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/api/store/route.ts +import * as entry from '../../../../../src/app/api/store/route.js' +import type { NextRequest } from 'next/server.js' + +type TEntry = typeof import('../../../../../src/app/api/store/route.js') + +// Check that the entry is a valid entry +checkFields<Diff<{ + GET?: Function + HEAD?: Function + OPTIONS?: Function + POST?: Function + PUT?: Function + DELETE?: Function + PATCH?: Function + config?: {} + generateStaticParams?: Function + revalidate?: RevalidateRange<TEntry> | false + dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static' + dynamicParams?: boolean + fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache' + preferredRegion?: 'auto' | 'global' | 'home' | string | string[] + runtime?: 'nodejs' | 'experimental-edge' | 'edge' + maxDuration?: number + +}, TEntry, ''>>() + +// Check the prop type of the entry function +if ('GET' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'GET' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'GET'>> + }, + 'GET' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'GET' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'GET'>> + }, + 'GET' + > + >() + + checkFields< + Diff< + { + __tag__: 'GET', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'GET', + __return_type__: ReturnType<MaybeField<TEntry, 'GET'>> + }, + 'GET' + > + >() +} +// Check the prop type of the entry function +if ('HEAD' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'HEAD' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>> + }, + 'HEAD' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'HEAD' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>> + }, + 'HEAD' + > + >() + + checkFields< + Diff< + { + __tag__: 'HEAD', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'HEAD', + __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>> + }, + 'HEAD' + > + >() +} +// Check the prop type of the entry function +if ('OPTIONS' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'OPTIONS' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>> + }, + 'OPTIONS' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'OPTIONS' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>> + }, + 'OPTIONS' + > + >() + + checkFields< + Diff< + { + __tag__: 'OPTIONS', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'OPTIONS', + __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>> + }, + 'OPTIONS' + > + >() +} +// Check the prop type of the entry function +if ('POST' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'POST' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'POST'>> + }, + 'POST' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'POST' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'POST'>> + }, + 'POST' + > + >() + + checkFields< + Diff< + { + __tag__: 'POST', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'POST', + __return_type__: ReturnType<MaybeField<TEntry, 'POST'>> + }, + 'POST' + > + >() +} +// Check the prop type of the entry function +if ('PUT' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'PUT' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>> + }, + 'PUT' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'PUT' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>> + }, + 'PUT' + > + >() + + checkFields< + Diff< + { + __tag__: 'PUT', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'PUT', + __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>> + }, + 'PUT' + > + >() +} +// Check the prop type of the entry function +if ('DELETE' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'DELETE' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>> + }, + 'DELETE' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'DELETE' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>> + }, + 'DELETE' + > + >() + + checkFields< + Diff< + { + __tag__: 'DELETE', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'DELETE', + __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>> + }, + 'DELETE' + > + >() +} +// Check the prop type of the entry function +if ('PATCH' in entry) { + checkFields< + Diff< + ParamCheck<Request | NextRequest>, + { + __tag__: 'PATCH' + __param_position__: 'first' + __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>> + }, + 'PATCH' + > + >() + checkFields< + Diff< + ParamCheck<PageParams>, + { + __tag__: 'PATCH' + __param_position__: 'second' + __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>> + }, + 'PATCH' + > + >() + + checkFields< + Diff< + { + __tag__: 'PATCH', + __return_type__: Response | void | never | Promise<Response | void | never> + }, + { + __tag__: 'PATCH', + __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>> + }, + 'PATCH' + > + >() +} + +// Check the arguments and return type of the generateStaticParams function +if ('generateStaticParams' in entry) { + checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>() + checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>() +} + +type PageParams = any +export interface PageProps { + params?: any + searchParams?: any +} +export interface LayoutProps { + children?: React.ReactNode + + params?: any +} + +// ============= +// Utility types +type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never + +// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>. +type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K> +type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message> + +type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never +type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never +type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never + +type ParamCheck<T> = { + __tag__: string + __param_position__: string + __param_type__: T +} + +function checkFields<_ extends { [k in keyof any]: never }>() {} + +// https://github.com/sindresorhus/type-fest +type Numeric = number | bigint +type Zero = 0 | 0n +type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never +type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__' diff --git a/apps/web/.next/types/app/layout.ts b/apps/web/.next/types/app/layout.ts new file mode 100644 index 00000000..e1e3123f --- /dev/null +++ b/apps/web/.next/types/app/layout.ts @@ -0,0 +1,79 @@ +// File: /Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx +import * as entry from '../../../src/app/layout.js' +import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js' + +type TEntry = typeof import('../../../src/app/layout.js') + +// Check that the entry is a valid entry +checkFields<Diff<{ + default: Function + config?: {} + generateStaticParams?: Function + revalidate?: RevalidateRange<TEntry> | false + dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static' + dynamicParams?: boolean + fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache' + preferredRegion?: 'auto' | 'global' | 'home' | string | string[] + runtime?: 'nodejs' | 'experimental-edge' | 'edge' + maxDuration?: number + + metadata?: any + generateMetadata?: Function + viewport?: any + generateViewport?: Function + +}, TEntry, ''>>() + +// Check the prop type of the entry function +checkFields<Diff<LayoutProps, FirstArg<TEntry['default']>, 'default'>>() + +// Check the arguments and return type of the generateMetadata function +if ('generateMetadata' in entry) { + checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>() + checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>() +} + +// Check the arguments and return type of the generateViewport function +if ('generateViewport' in entry) { + checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>() + checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>() +} + +// Check the arguments and return type of the generateStaticParams function +if ('generateStaticParams' in entry) { + checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>() + checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>() +} + +type PageParams = any +export interface PageProps { + params?: any + searchParams?: any +} +export interface LayoutProps { + children?: React.ReactNode + + params?: any +} + +// ============= +// Utility types +type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never + +// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>. +type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K> +type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message> + +type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never +type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never +type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never + + + +function checkFields<_ extends { [k in keyof any]: never }>() {} + +// https://github.com/sindresorhus/type-fest +type Numeric = number | bigint +type Zero = 0 | 0n +type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never +type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__' diff --git a/apps/web/.next/types/app/page.ts b/apps/web/.next/types/app/page.ts new file mode 100644 index 00000000..5e39ea57 --- /dev/null +++ b/apps/web/.next/types/app/page.ts @@ -0,0 +1,79 @@ +// File: /Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page.tsx +import * as entry from '../../../src/app/page.js' +import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js' + +type TEntry = typeof import('../../../src/app/page.js') + +// Check that the entry is a valid entry +checkFields<Diff<{ + default: Function + config?: {} + generateStaticParams?: Function + revalidate?: RevalidateRange<TEntry> | false + dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static' + dynamicParams?: boolean + fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache' + preferredRegion?: 'auto' | 'global' | 'home' | string | string[] + runtime?: 'nodejs' | 'experimental-edge' | 'edge' + maxDuration?: number + + metadata?: any + generateMetadata?: Function + viewport?: any + generateViewport?: Function + +}, TEntry, ''>>() + +// Check the prop type of the entry function +checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>() + +// Check the arguments and return type of the generateMetadata function +if ('generateMetadata' in entry) { + checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>() + checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>() +} + +// Check the arguments and return type of the generateViewport function +if ('generateViewport' in entry) { + checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>() + checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>() +} + +// Check the arguments and return type of the generateStaticParams function +if ('generateStaticParams' in entry) { + checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>() + checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>() +} + +type PageParams = any +export interface PageProps { + params?: any + searchParams?: any +} +export interface LayoutProps { + children?: React.ReactNode + + params?: any +} + +// ============= +// Utility types +type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never + +// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>. +type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K> +type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message> + +type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never +type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never +type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never + + + +function checkFields<_ extends { [k in keyof any]: never }>() {} + +// https://github.com/sindresorhus/type-fest +type Numeric = number | bigint +type Zero = 0 | 0n +type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never +type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__' diff --git a/apps/web/.next/types/package.json b/apps/web/.next/types/package.json new file mode 100644 index 00000000..1632c2c4 --- /dev/null +++ b/apps/web/.next/types/package.json @@ -0,0 +1 @@ +{"type": "module"}
\ No newline at end of file diff --git a/apps/web/drizzle.config.ts b/apps/web/drizzle.config.ts new file mode 100644 index 00000000..5b00158b --- /dev/null +++ b/apps/web/drizzle.config.ts @@ -0,0 +1,12 @@ +import { type Config } from "drizzle-kit"; + +import { env } from "@/env.js"; + +export default { + schema: "./src/server/db/schema.ts", + driver: "better-sqlite", + dbCredentials: { + url: env.DATABASE_URL, + }, + tablesFilter: ["anycontext_*"], +} satisfies Config; diff --git a/apps/web/next.config.js b/apps/web/next.config.js new file mode 100644 index 00000000..9bfe4a0e --- /dev/null +++ b/apps/web/next.config.js @@ -0,0 +1,10 @@ +/** + * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful + * for Docker builds. + */ +await import("./src/env.js"); + +/** @type {import("next").NextConfig} */ +const config = {}; + +export default config; diff --git a/apps/web/package.json b/apps/web/package.json new file mode 100644 index 00000000..e9b94977 --- /dev/null +++ b/apps/web/package.json @@ -0,0 +1,49 @@ +{ + "name": "web", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "build": "next build", + "db:push": "drizzle-kit push:sqlite", + "db:studio": "drizzle-kit studio", + "dev": "next dev", + "lint": "next lint", + "start": "next start" + }, + "dependencies": { + "@auth/drizzle-adapter": "^0.3.6", + "@libsql/client": "^0.5.1", + "@t3-oss/env-nextjs": "^0.7.1", + "better-sqlite3": "^9.0.0", + "bun": "^1.0.28", + "drizzle-orm": "^0.29.3", + "next": "^14.0.4", + "next-auth": "^4.24.5", + "react": "^18.2.0", + "react-dom": "18.2.0", + "zod": "^3.22.4" + }, + "devDependencies": { + "@types/better-sqlite3": "^7.6.6", + "@types/eslint": "^8.44.7", + "@types/node": "^18.17.0", + "@types/react": "^18.2.37", + "@types/react-dom": "^18.2.15", + "@typescript-eslint/eslint-plugin": "^6.11.0", + "@typescript-eslint/parser": "^6.11.0", + "autoprefixer": "^10.4.14", + "drizzle-kit": "^0.20.14", + "eslint": "^8.54.0", + "eslint-config-next": "^14.0.4", + "postcss": "^8.4.31", + "prettier": "^3.1.0", + "prettier-plugin-tailwindcss": "^0.5.7", + "tailwindcss": "^3.3.5", + "typescript": "^5.1.6", + "tsconfig": "workspace:*" + }, + "ct3aMetadata": { + "initVersion": "7.26.0" + } +}
\ No newline at end of file diff --git a/apps/web/postcss.config.cjs b/apps/web/postcss.config.cjs new file mode 100644 index 00000000..e305dd92 --- /dev/null +++ b/apps/web/postcss.config.cjs @@ -0,0 +1,8 @@ +const config = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; + +module.exports = config; diff --git a/apps/web/public/favicon.ico b/apps/web/public/favicon.ico Binary files differnew file mode 100644 index 00000000..b5336a48 --- /dev/null +++ b/apps/web/public/favicon.ico diff --git a/apps/web/src/app/account/client.tsx b/apps/web/src/app/account/client.tsx new file mode 100644 index 00000000..f05d0a3c --- /dev/null +++ b/apps/web/src/app/account/client.tsx @@ -0,0 +1,20 @@ +'use client' + +import { useEffect } from "react" + +function MessagePoster({ jwt }: { jwt: string }) { + + useEffect(() => { + if (typeof window === 'undefined') return + + // post every 1000ms + setInterval(() => { + window.postMessage({ jwt }, '*') + }, 1000) + } + , [jwt]) + + return null +} + +export default MessagePoster
\ No newline at end of file diff --git a/apps/web/src/app/account/page.tsx b/apps/web/src/app/account/page.tsx new file mode 100644 index 00000000..4503f416 --- /dev/null +++ b/apps/web/src/app/account/page.tsx @@ -0,0 +1,10 @@ +import { cookies } from 'next/headers'; +import MessagePoster from './client'; + +async function Page() { + const token = cookies().get('next-auth.session-token')?.value + + return <MessagePoster jwt={token!} /> +} + +export default Page
\ No newline at end of file diff --git a/apps/web/src/app/api/auth/[...nextauth]/route.ts b/apps/web/src/app/api/auth/[...nextauth]/route.ts new file mode 100644 index 00000000..1570f886 --- /dev/null +++ b/apps/web/src/app/api/auth/[...nextauth]/route.ts @@ -0,0 +1,7 @@ +import NextAuth from "next-auth"; + +import { authOptions } from "@/server/auth"; + +// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment +const handler = NextAuth(authOptions); +export { handler as GET, handler as POST }; diff --git a/apps/web/src/app/api/store/route.ts b/apps/web/src/app/api/store/route.ts new file mode 100644 index 00000000..5c7e76d5 --- /dev/null +++ b/apps/web/src/app/api/store/route.ts @@ -0,0 +1,21 @@ +import { db } from "@/server/db"; +import { eq } from "drizzle-orm"; +import { sessions, users } from "@/server/db/schema"; +import { type NextRequest, NextResponse } from "next/server"; + +export async function GET(req: NextRequest) { + try { + const token = req.cookies.get("next-auth.session-token")?.value ?? req.headers.get("Authorization")?.replace("Bearer ", ""); + + const session = await db.select().from(sessions).where(eq(sessions.sessionToken, token!)) + .leftJoin(users, eq(sessions.userId, users.id)) + + if (!session || session.length === 0) { + return NextResponse.json({ message: "Invalid Key, session not found." }, { status: 404 }); + } + + return NextResponse.json({ message: "OK", data: session[0] }, { status: 200 }); + } catch (error) { + return NextResponse.json({ message: "Error", error }, { status: 500 }); + } +}
\ No newline at end of file diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx new file mode 100644 index 00000000..70f9df5d --- /dev/null +++ b/apps/web/src/app/layout.tsx @@ -0,0 +1,26 @@ +import "@/styles/globals.css"; + +import { Inter } from "next/font/google"; + +const inter = Inter({ + subsets: ["latin"], + variable: "--font-sans", +}); + +export const metadata = { + title: "Create T3 App", + description: "Generated by create-t3-app", + icons: [{ rel: "icon", url: "/favicon.ico" }], +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + <html lang="en"> + <body className={`font-sans ${inter.variable}`}>{children}</body> + </html> + ); +} diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx new file mode 100644 index 00000000..ba5030c7 --- /dev/null +++ b/apps/web/src/app/page.tsx @@ -0,0 +1,7 @@ +import Link from "next/link"; + +export default function HomePage() { + return ( + <main>hi</main> + ); +} diff --git a/apps/web/src/env.js b/apps/web/src/env.js new file mode 100644 index 00000000..7bc15152 --- /dev/null +++ b/apps/web/src/env.js @@ -0,0 +1,65 @@ +import { createEnv } from "@t3-oss/env-nextjs"; +import { z } from "zod"; + +export const env = createEnv({ + /** + * Specify your server-side environment variables schema here. This way you can ensure the app + * isn't built with invalid env vars. + */ + server: { + DATABASE_URL: z + .string() + .refine( + (str) => !str.includes("YOUR_MYSQL_URL_HERE"), + "You forgot to change the default URL" + ), + NODE_ENV: z + .enum(["development", "test", "production"]) + .default("development"), + NEXTAUTH_SECRET: + process.env.NODE_ENV === "production" + ? z.string() + : z.string().optional(), + NEXTAUTH_URL: z.preprocess( + // This makes Vercel deployments not fail if you don't set NEXTAUTH_URL + // Since NextAuth.js automatically uses the VERCEL_URL if present. + (str) => process.env.VERCEL_URL ?? str, + // VERCEL_URL doesn't include `https` so it cant be validated as a URL + process.env.VERCEL ? z.string() : z.string().url() + ), + GOOGLE_CLIENT_ID: z.string(), + GOOGLE_CLIENT_SECRET: z.string(), + }, + + /** + * Specify your client-side environment variables schema here. This way you can ensure the app + * isn't built with invalid env vars. To expose them to the client, prefix them with + * `NEXT_PUBLIC_`. + */ + client: { + // NEXT_PUBLIC_CLIENTVAR: z.string(), + }, + + /** + * You can't destruct `process.env` as a regular object in the Next.js edge runtimes (e.g. + * middlewares) or client-side so we need to destruct manually. + */ + runtimeEnv: { + DATABASE_URL: process.env.DATABASE_URL, + NODE_ENV: process.env.NODE_ENV, + NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, + NEXTAUTH_URL: process.env.NEXTAUTH_URL, + GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID, + GOOGLE_CLIENT_SECRET: process.env.GOOGLE_CLIENT_SECRET, + }, + /** + * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially + * useful for Docker builds. + */ + skipValidation: !!process.env.SKIP_ENV_VALIDATION, + /** + * Makes it so that empty strings are treated as undefined. `SOME_VAR: z.string()` and + * `SOME_VAR=''` will throw an error. + */ + emptyStringAsUndefined: true, +}); diff --git a/apps/web/src/server/auth.ts b/apps/web/src/server/auth.ts new file mode 100644 index 00000000..cb0a26d9 --- /dev/null +++ b/apps/web/src/server/auth.ts @@ -0,0 +1,74 @@ +import { DrizzleAdapter } from "@auth/drizzle-adapter"; +import { + getServerSession, + type DefaultSession, + type NextAuthOptions, +} from "next-auth"; +import { type Adapter } from "next-auth/adapters"; +import GoogleProvider from "next-auth/providers/google"; + +import { env } from "@/env"; +import { db } from "@/server/db"; +import { createTable } from "@/server/db/schema"; + +/** + * Module augmentation for `next-auth` types. Allows us to add custom properties to the `session` + * object and keep type safety. + * + * @see https://next-auth.js.org/getting-started/typescript#module-augmentation + */ +declare module "next-auth" { + interface Session extends DefaultSession { + user: { + id: string; + // ...other properties + // role: UserRole; + } & DefaultSession["user"]; + } + + // interface User { + // // ...other properties + // // role: UserRole; + // } +} + +/** + * Options for NextAuth.js used to configure adapters, providers, callbacks, etc. + * + * @see https://next-auth.js.org/configuration/options + */ +export const authOptions: NextAuthOptions = { + callbacks: { + session: ({ session, token }) => ({ + ...session, + user: { + ...session.user, + id: token.id, + token + }, + }) + }, + adapter: DrizzleAdapter(db, createTable) as Adapter, + providers: [ + GoogleProvider({ + clientId: env.GOOGLE_CLIENT_ID, + clientSecret: env.GOOGLE_CLIENT_SECRET, + }), + /** + * ...add more providers here. + * + * Most other providers require a bit more work than the Discord provider. For example, the + * GitHub provider requires you to add the `refresh_token_expires_in` field to the Account + * model. Refer to the NextAuth.js docs for the provider you want to use. Example: + * + * @see https://next-auth.js.org/providers/github + */ + ], +}; + +/** + * Wrapper for `getServerSession` so that you don't need to import the `authOptions` in every file. + * + * @see https://next-auth.js.org/configuration/nextjs + */ +export const getServerAuthSession = () => getServerSession(authOptions); diff --git a/apps/web/src/server/db/index.ts b/apps/web/src/server/db/index.ts new file mode 100644 index 00000000..5c2246d5 --- /dev/null +++ b/apps/web/src/server/db/index.ts @@ -0,0 +1,12 @@ +import Database from "better-sqlite3"; +import { drizzle } from "drizzle-orm/better-sqlite3"; + +import { env } from "@/env.js"; +import * as schema from "./schema"; + +export const db = drizzle( + new Database(env.DATABASE_URL, { + fileMustExist: false, + }), + { schema } +); diff --git a/apps/web/src/server/db/schema.ts b/apps/web/src/server/db/schema.ts new file mode 100644 index 00000000..7de02f15 --- /dev/null +++ b/apps/web/src/server/db/schema.ts @@ -0,0 +1,111 @@ +import { relations, sql } from "drizzle-orm"; +import { + index, + int, + primaryKey, + sqliteTableCreator, + text, +} from "drizzle-orm/sqlite-core"; +import { type AdapterAccount } from "next-auth/adapters"; + +/** + * This is an example of how to use the multi-project schema feature of Drizzle ORM. Use the same + * database instance for multiple projects. + * + * @see https://orm.drizzle.team/docs/goodies#multi-project-schema + */ +export const createTable = sqliteTableCreator((name) => `anycontext_${name}`); + +export const posts = createTable( + "post", + { + id: int("id", { mode: "number" }).primaryKey({ autoIncrement: true }), + name: text("name", { length: 256 }), + createdById: text("createdById", { length: 255 }) + .notNull() + .references(() => users.id), + createdAt: int("created_at", { mode: "timestamp" }) + .default(sql`CURRENT_TIMESTAMP`) + .notNull(), + updatedAt: int("updatedAt", { mode: "timestamp" }), + }, + (example) => ({ + createdByIdIdx: index("createdById_idx").on(example.createdById), + nameIndex: index("name_idx").on(example.name), + }) +); + +export const users = createTable("user", { + id: text("id", { length: 255 }).notNull().primaryKey(), + name: text("name", { length: 255 }), + email: text("email", { length: 255 }).notNull(), + emailVerified: int("emailVerified", { + mode: "timestamp", + }).default(sql`CURRENT_TIMESTAMP`), + image: text("image", { length: 255 }), +}); + +export const usersRelations = relations(users, ({ many }) => ({ + accounts: many(accounts), +})); + +export const accounts = createTable( + "account", + { + userId: text("userId", { length: 255 }) + .notNull() + .references(() => users.id), + type: text("type", { length: 255 }) + .$type<AdapterAccount["type"]>() + .notNull(), + provider: text("provider", { length: 255 }).notNull(), + providerAccountId: text("providerAccountId", { length: 255 }).notNull(), + refresh_token: text("refresh_token"), + access_token: text("access_token"), + expires_at: int("expires_at"), + token_type: text("token_type", { length: 255 }), + scope: text("scope", { length: 255 }), + id_token: text("id_token"), + session_state: text("session_state", { length: 255 }), + }, + (account) => ({ + compoundKey: primaryKey({ + columns: [account.provider, account.providerAccountId], + }), + userIdIdx: index("account_userId_idx").on(account.userId), + }) +); + +export const accountsRelations = relations(accounts, ({ one }) => ({ + user: one(users, { fields: [accounts.userId], references: [users.id] }), +})); + +export const sessions = createTable( + "session", + { + sessionToken: text("sessionToken", { length: 255 }).notNull().primaryKey(), + userId: text("userId", { length: 255 }) + .notNull() + .references(() => users.id), + expires: int("expires", { mode: "timestamp" }).notNull(), + }, + (session) => ({ + userIdIdx: index("session_userId_idx").on(session.userId), + }) +); + +export const sessionsRelations = relations(sessions, ({ one }) => ({ + user: one(users, { fields: [sessions.userId], references: [users.id] }), +})); + +export const verificationTokens = createTable( + "verificationToken", + { + identifier: text("identifier", { length: 255 }).notNull(), + token: text("token", { length: 255 }).notNull(), + expires: int("expires", { mode: "timestamp" }).notNull(), + }, + (vt) => ({ + compoundKey: primaryKey({ columns: [vt.identifier, vt.token] }), + }) +); diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css new file mode 100644 index 00000000..b5c61c95 --- /dev/null +++ b/apps/web/src/styles/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.ts new file mode 100644 index 00000000..f06488f9 --- /dev/null +++ b/apps/web/tailwind.config.ts @@ -0,0 +1,14 @@ +import { type Config } from "tailwindcss"; +import { fontFamily } from "tailwindcss/defaultTheme"; + +export default { + content: ["./src/**/*.tsx"], + theme: { + extend: { + fontFamily: { + sans: ["var(--font-sans)", ...fontFamily.sans], + }, + }, + }, + plugins: [], +} satisfies Config; diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json new file mode 100644 index 00000000..bf2b7c3d --- /dev/null +++ b/apps/web/tsconfig.json @@ -0,0 +1,49 @@ +{ + "compilerOptions": { + "esModuleInterop": true, + "skipLibCheck": true, + "target": "es2022", + "allowJs": true, + "resolveJsonModule": true, + "moduleDetection": "force", + "isolatedModules": true, + "strict": true, + "noUncheckedIndexedAccess": true, + "checkJs": true, + "lib": [ + "dom", + "dom.iterable", + "ES2022" + ], + "noEmit": true, + "module": "ESNext", + "moduleResolution": "Bundler", + "jsx": "preserve", + "plugins": [ + { + "name": "next" + } + ], + "incremental": true, + "baseUrl": ".", + "paths": { + "@/*": [ + "./src/*" + ] + } + }, + "include": [ + "../.eslintrc.cjs", + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "**/*.cjs", + "**/*.js", + ".next/types/**/*.ts", + "../tailwind.config.ts", + "../prettier.config.js" + ], + "exclude": [ + "node_modules" + ] +}
\ No newline at end of file |