PageSourceSearch

https://www.reddao.xyz/_next/static/immutable/chunks/1k9_pafn4mfll.js

js reddao.xyz collected 2026-10-05 20:34:29 UTC 231,481 bytes, 138 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,476353,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DynamicServerError:function(){return s},isDynamicServerError:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="DYNAMIC_SERVER_USAGE";class s extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=a}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===a}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},643248,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={StaticGenBailoutError:function(){return s},isStaticGenBailoutError:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="NEXT_STATIC_GEN_BAILOUT";class s extends Error{constructor(...e){super(...e),this.code=a}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===a}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},729419,(e,t,r)=>{"use strict";var n=e.i(247167);Object.defineProperty(r,"__esModule",{value:!0});var i={atLeastOneTask:function(){return u},scheduleImmediate:function(){return o},scheduleOnNextTick:function(){return s},waitAtLeastOneReactRenderTask:function(){return l}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let s=e=>{Promise.resolve().then(()=>{n.default.nextTick(e)})},o=e=>{setImmediate(e)};function u(){return new Promise(e=>o(e))}function l(){return new Promise(e=>setImmediate(e))}},90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return u},createSnapshot:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function u(){return o?new o:new s}function l(e){return o?o.bind(e):s.bind(e)}function c(){return o?o.snapshot():function(e,...t){return e(...t)}}},164758,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={createDynamicBodyError:function(){return s},createDynamicBodyErrorInNavigation:function(){return l},createDynamicMetadataError:function(){return h},createDynamicOrRuntimeBodyError:function(){return c},createDynamicOrRuntimeMetadataError:function(){return y},createDynamicOrRuntimeViewportError:function(){return b},createDynamicViewportError:function(){return g},createLinkBodyErrorInNavigation:function(){return u},createLinkMetadataError:function(){return d},createLinkViewportError:function(){return p},createRuntimeBodyError:function(){return a}
1,createRuntimeBodyErrorInNavigation:function(){return o},createRuntimeMetadataError:function(){return f},createRuntimeViewportError:function(){return m},logBuildDebugHint:function(){return _}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function a(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered runtime data during prerendering.
2
3\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
4
5Ways to fix this:
6  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
7  - [block] Set \`export const instant = false\` to allow a blocking route
8
9Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`),"__NEXT_ERROR_CODE",{value:"E1427",enumerable:!1,configurable:!0})}function s(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered uncached data during prerendering.
10
11\`fetch(...)\` or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
12
13Ways to fix this:
14  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
15  - [cache] Cache the data access with \`"use cache"\` (does not apply to \`connection()\`)
16  - [block] Set \`export const instant = false\` to allow a blocking route
17
18Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1440",enumerable:!1,configurable:!0})}function o(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered runtime data during prerendering or a navigation.
19
20\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed outside of \`<Suspense>\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience.
21
22Ways to fix this:
23  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
24  - [block] Set \`export const instant = false\` to allow a blocking route
25
26Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`),"__NEXT_ERROR_CODE",{value:"E1430",enumerable:!1,configurable:!0})}function u(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered URL data during prerendering or a navigation.
27
28\`params\` or \`searchParams\` accessed outside of \`<Suspense>\` may prevent the navigation from being instant, leading to a slower user experience.
29
30Ways to fix this:
31  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
32  - [block] Set \`export const instant = false\` to allow a blocking route
33
34Learn more: https://nextjs.org/docs/messages/instant-shell-url-data`),"__NEXT_ERROR_CODE",{value:"E1439",enumerable:!1,configurable:!0})}function l(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered uncached data during prerendering or a navigation.
35
36\`fetch(...)\` or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience.
37
38Ways to fix this:
39  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
40  - [cache] Cache the data access with \`"use cache"\` (does not apply to \`connection()\`)
41  - [block] Set \`export const instant = false\` to allow a blocking route
42
43Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1437",enumerable:!1,configurable:!0})}function c(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered uncached or runtime data during prerendering.
44
45\`fetch(...)\`, \`cookies()\`, \`headers()\`, \`params\`, \`searchParams\`, or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
46
47Ways to fix this:
48  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
49  - [cache] For uncached data (\`fetch\`, database calls): cache the access with \`"use cache"\` (does not apply to \`connection()\`)
50  - [block] Set \`export const instant = false\` to allow a blocking route
51
52Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1428",enumerable:!1,
52configurable:!0})}function d(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered URL data in \`generateMetadata()\`.
53
54This route's metadata is blocked, but the rest of its content can be prefetched. \`params\` or \`searchParams\` accessed in \`generateMetadata()\` prevent it from being prefetched.
55
56Ways to fix this:
57  - [static] Use a static metadata export instead of \`generateMetadata()\`
58  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
59
60Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1429",enumerable:!1,configurable:!0})}function f(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered runtime data in \`generateMetadata()\`.
61
62This route's metadata is blocked, but the rest of its content can be prerendered. \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed in \`generateMetadata()\` cause it to run dynamically.
63
64Ways to fix this:
65  - [static] Use a static metadata export instead of \`generateMetadata()\`
66  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
67
68Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1423",enumerable:!1,configurable:!0})}function h(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered uncached data in \`generateMetadata()\`.
69
70This route's metadata is blocked, but the rest of its content can be prerendered. \`fetch(...)\` or \`connection()\` accessed in \`generateMetadata()\` cause it to run dynamically.
71
72Ways to fix this:
73  - [cache] Cache the metadata with \`"use cache"\` in \`generateMetadata()\` (does not apply to \`connection()\`)
74  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
75
76Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-dynamic`),"__NEXT_ERROR_CODE",{value:"E1425",enumerable:!1,configurable:!0})}function p(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered URL data in \`generateViewport()\`.
77
78\`params\` or \`searchParams\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience.
79
80Ways to fix this:
81  - [static] Use a static viewport export instead of \`generateViewport()\`
82  - [block] Set \`export const instant = false\` to allow a blocking route
83
84Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1431",enumerable:!1,configurable:!0})}function m(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered runtime data in \`generateViewport()\`.
85
86\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience.
87
88Ways to fix this:
89  - [static] Use a static viewport export instead of \`generateViewport()\`
90  - [block] Set \`export const instant = false\` to allow a blocking route
91
92Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1424",enumerable:!1,configurable:!0})}function g(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered uncached data in \`generateViewport()\`.
93
94\`fetch(...)\` or \`connection()\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience.
95
96Ways to fix this:
97  - [cache] Cache the viewport data with \`"use cache"\` in \`generateViewport()\` (does not apply to \`connection()\`)
98  - [block] Set \`export const instant = false\` to allow a blocking route
99
100Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-dynamic`),"__NEXT_ERROR_CODE",{value:"E1438",enumerable:!1,configurable:!0})}function b(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered uncached or runtime data in \`generateViewport()\`.
101
102This prevents the page from being prerendered, leading to a slower user experience. Unlike metadata, viewport cannot be streamed behind \`<Suspense>\` because it affects the initial page load.
103
104Ways to fix this:
105  - [static] Use a static viewport export instead of \`generateViewport()\`
106  - [cache] For uncached data (\`fetch\`, database calls): cache the viewport with \`"use cache"\` in \`generateViewport()\` (does not apply to \`connection()\`)
107  - [block] Set \`export const instant = false\` to allow a blocking route
108
109Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1436",enumerable:!1,
109configurable:!0})}function y(e){return Object.defineProperty(Error(`Route "${e}": Next.js encountered uncached or runtime data in \`generateMetadata()\`.
110
111This route's metadata is blocked, but the rest of its content can be prerendered.
112
113Ways to fix this:
114  - [static] Use a static metadata export instead of \`generateMetadata()\`
115  - [cache] Cache the metadata with \`"use cache"\` in \`generateMetadata()\` (does not apply to \`connection()\`)
116  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
117
118Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1426",enumerable:!1,configurable:!0})}function _(e){console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
119  - Start the app in development mode by running \`next dev\`, then open "${e}" in your browser to investigate the error.
120  - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}},102897,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={INSTANT_SLOT_MARKER_PREFIX:function(){return s},INSTANT_SLOT_MARKER_SUFFIX:function(){return o},INSTANT_VALIDATION_BOUNDARY_NAME:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="__next_instant_validation_boundary__",s="__next_instant_slot_",o="__"},139580,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={allRequiredBoundariesRendered:function(){return s},createValidationBoundaryTracking:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function a(){return{requiredIds:new Map,renderedIds:new Set}}function s(e){for(let t of e.requiredIds.keys())if(!e.renderedIds.has(t))return!1;return!0}},67673,(e,t,r)=>{"use strict";var n,i,a,s=e.i(247167);Object.defineProperty(r,"__esModule",{value:!0});var o={DynamicHoleKind:function(){return es},Postpone:function(){return j},PreludeState:function(){return eh},abortAndThrowOnSynchronousRequestDataAccess:function(){return C},abortOnSynchronousPlatformIOAccess:function(){return P},accessedDynamicData:function(){return z},annotateDynamicAccess:function(){return K},consumeDynamicAccess:function(){return V},createDynamicTrackingState:function(){return O},createDynamicValidationState:function(){return S},createHangingInputAbortSignal:function(){return H},createInstantValidationState:function(){return eo},createRenderInBrowserAbortSignal:function(){return q},formatDynamicAPIAccesses:function(){return F},getFirstDynamicReason:function(){return N},getNavigationDisallowedDynamicReasons:function(){return ey},getStaticShellDisallowedDynamicReasons:function(){return eb},isDynamicPostpone:function(){return $},isPrerenderInterruptedError:function(){return Z},logDisallowedDynamicError:function(){return ep},markCurrentScopeAsDynamic:function(){return T},postponeWithTracking:function(){return D},throwIfDisallowedDynamic:function(){return eg},throwIfSyncIOUsed:function(){return em},throwToInterruptStaticGeneration:function(){return k},trackAllowedDynamicAccess:function(){return ea},trackDynamicDataInDynamicRender:function(){return A},trackDynamicHoleInNavigation:function(){return eu},trackDynamicHoleInRuntimeShell:function(){return ec},trackDynamicHoleInStaticShell:function(){return ed},trackThrownErrorInNavigation:function(){return el},useDynamicRouteParams:function(){return Y},useDynamicSearchParams:function(){return W}};for(var u in o)Object.defineProperty(r,u,{enumerable:!0,get:o[u]});let l=(n=e.r(271645))&&n.__esModule?n:{default:n},c=e.r(476353),d=e.r(643248),f=e.r(662141),h=e.r(563599),p=e.r(963138),m=e.r(954839),g=e.r(729419),b=e.r(132061),y=e.r(164758),_=e.r(312718),w=e.r(102897),v=e.r(139580),E=e.r(644305),x="function"==typeof l.default.unstable_postpone;function O(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null,syncDynamicErrorWithStackPostMicrotask:!1}}function S(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function R(e){return e.syncDynamicErrorWithStackPostMicrotask?null:e.syncDynamicErrorWithStack}function N(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function T(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new d.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,
120configurable:!0});if(t)switch(t.type){case"prerender-ppr":return D(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new c.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function k(e,t,r){let n=Object.defineProperty(new c.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function A(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function I(e,t,r){let n=M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let i=r.dynamicTracking;i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function P(e,t,r,n){let i=n.dynamicTracking;i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r,queueMicrotask(()=>{i.syncDynamicErrorWithStackPostMicrotask=!0})),I(e,t,n)}function C(e,t,r,n){if((0,p.trackRuntimeDataAccessed)(n),!1===n.controller.signal.aborted){I(e,t,n);let i=n.dynamicTracking;i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r)}throw M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function j({reason:e,route:t}){let r=f.workUnitAsyncStorage.getStore();D(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function D(e,t,r){(function(){if(!x)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})})(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),l.default.unstable_postpone(L(e,t))}function L(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function $(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&B(e.message)}function B(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===B(L("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let U="NEXT_PRERENDER_INTERRUPTED";function M(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=U,t}function Z(e){return"object"==typeof e&&null!==e&&e.digest===U&&"name"in e&&"message"in e&&e instanceof Error}function z(e){return e.length>0}function V(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function F(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
121${t}`))}function q(){let e=new AbortController;return e.abort(Object.defineProperty(new b.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function H(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else{let r=(0,f.getStagedRenderingController)(e);r&&null!==r.finalStage?r.waitForStage(r.finalStage).then(()=>(0,g.scheduleOnNextTick)(()=>t.abort()),G):(0,g.scheduleOnNextTick)(()=>t.abort())}return t.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function G(){}function K(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function Y(e){let t=h.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":{let n=r.fallbackRouteParam
121s;n&&n.size>0&&l.default.use((0,p.makeClientHookHangingPromise)(r.renderSignal,new p.ClientHookDynamicError(t.route,e)));break}case"prerender":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return D(t.route,e,r.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function W(e){let t=h.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,f.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":l.default.use((0,p.makeClientHookHangingPromise)(r.renderSignal,new p.ClientHookDynamicError(t.route,e)));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new b.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let X=/\n\s+at Suspense \(<anonymous>\)/,J=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${m.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),Q=RegExp(`\\n\\s+at ${m.METADATA_BOUNDARY_NAME}[\\n\\s]`),ee=RegExp(`\\n\\s+at ${m.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),et=RegExp(`\\n\\s+at ${m.OUTLET_BOUNDARY_NAME}[\\n\\s]`),er=RegExp(`\\n\\s+at ${w.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`),en=RegExp(`\\n\\s+at ${w.INSTANT_SLOT_MARKER_PREFIX}(\\d+)${w.INSTANT_SLOT_MARKER_SUFFIX}[\\n\\s]`);function ei(e,t){J.test(e)&&(t.hasSuspenseAboveBody=!0)}function ea(e,t,r,n,i){let a=R(i);if(et.test(r))return void ei(r,n);if(Q.test(r)){n.hasDynamicMetadata=!0;return}if(ee.test(r)){n.hasDynamicViewport=!0;return}if(J.test(r)){n.hasAllowedDynamic=!0,n.hasSuspenseAboveBody=!0;return}if(X.test(r)){n.hasAllowedDynamic=!0;return}else if(a)return void n.dynamicErrors.push(a);if((0,p.isClientHookDynamicError)(e))return void n.dynamicErrors.push(ef(e,r,null));let s=ef((0,y.createDynamicOrRuntimeBodyError)(t.route),r,null);n.dynamicErrors.push(s)}var es=((i={})[i.Link=1]="Link",i[i.Runtime=2]="Runtime",i[i.Dynamic=3]="Dynamic",i);function eo(e){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],slotStacks:e}}function eu(e,t,r,n,i,a,s){let o=R(i);if(et.test(r))return;let u=function(e,t){let{slotStacks:r}=t;if(r.length>1){let t=en.exec(e);if(t){let e=r[parseInt(t[1],10)+1];if(null!=e)return e}}return r[0]??null}(r,n);if(Q.test(r)){n.dynamicMetadata=ef(1===a?(0,y.createLinkMetadataError)(t.route):2===a?(0,y.createRu
121ntimeMetadataError)(t.route):(0,y.createDynamicMetadataError)(t.route),r,u);return}if(ee.test(r)){let e=ef(1===a?(0,y.createLinkViewportError)(t.route):2===a?(0,y.createRuntimeViewportError)(t.route):(0,y.createDynamicViewportError)(t.route),r,u);n.dynamicErrors.push(e);return}let l=er.exec(r);if(l){let e=X.exec(r);if(e&&e.index<l.index){n.hasAllowedDynamic=!0;return}}else if((0,v.allRequiredBoundariesRendered)(s)){n.hasAllowedClientDynamicAboveBoundary=!0,n.hasAllowedDynamic=!0;return}else{let e=ef(Object.defineProperty(Error(`Route "${t.route}": Could not validate \`instant\` because a Client Component in a parent segment prevented the page from rendering.`),"__NEXT_ERROR_CODE",{value:"E1331",enumerable:!1,configurable:!0}),r,u);n.validationPreventingErrors.push(e);return}if(o){null!==u&&void 0===o.cause&&(o.cause=u()),n.dynamicErrors.push(o);return}if((0,p.isClientHookDynamicError)(e))return void n.dynamicErrors.push(ef(e,r,u));let c=ef(1===a?(0,y.createLinkBodyErrorInNavigation)(t.route):2===a?(0,y.createRuntimeBodyErrorInNavigation)(t.route):(0,y.createDynamicBodyErrorInNavigation)(t.route),r,u);n.dynamicErrors.push(c)}function el(e,t,r,n){let i=er.exec(n);if(i){let a=X.exec(n);if(a&&a.index<i.index)return;let s=ef(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`instant\` because an error prevented the target segment from rendering.`,{cause:r}),"__NEXT_ERROR_CODE",{value:"E1338",enumerable:!1,configurable:!0}),n,null);t.validationPreventingErrors.push(s)}else{let e=ef(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.",{cause:r}),"__NEXT_ERROR_CODE",{value:"E1118",enumerable:!1,configurable:!0}),n,null);t.thrownErrorsOutsideBoundary.push(e)}}function ec(e,t,r,n,i){let a=R(i);if(et.test(r))return void ei(r,n);if(Q.test(r)){n.dynamicMetadata=ef((0,y.createDynamicMetadataError)(t.route),r,null);return}if(ee.test(r)){let e=ef((0,y.createDynamicViewportError)(t.route),r,null);n.dynamicErrors.push(e);return}if(J.test(r)){n.hasAllowedDynamic=!0,n.hasSuspenseAboveBody=!0;return}if(X.test(r)){n.hasAllowedDynamic=!0;return}else if(a)return void n.dynamicErrors.push(a);if((0,p.isClientHookDynamicError)(e))return void n.dynamicErrors.push(ef(e,r,null));let s=ef((0,y.createDynamicBodyError)(t.route),r,null);n.dynamicErrors.push(s)}function ed(e,t,r,n,i){let a=R(i);if(et.test(r))return void ei(r,n);if(Q.test(r)){n.dynamicMetadata=ef((0,y.createRuntimeMetadataError)(t.route),r,null);return}if(ee.test(r)){let e=ef((0,y.createRuntimeViewportError)(t.route),r,null);n.dynamicErrors.push(e);return}if(J.test(r)){n.hasAllowedDynamic=!0,n.hasSuspenseAboveBody=!0;return}if(X.test(r)){n.hasAllowedDynamic=!0;return}else if(a)return void n.dynamicErrors.push(a);if((0,p.isClientHookDynamicError)(e))return void n.dynamicErrors.push(ef(e,r,null));let s=ef((0,y.createRuntimeBodyError)(t.route),r,null);n.dynamicErrors.push(s)}function ef(e,t,r){return null!==r&&(e.cause=r()),e.stack=e.name+": "+e.message+t,e}var eh=((a={})[a.Full=0]="Full",a[a.Empty=1]="Empty",a[a.Errored=2]="Errored",a);function ep(e,t){console.error(t),(0,y.logBuildDebugHint)(e.route)}function em(e,t){if(t.syncDynamicErrorWithStack)throw ep(e,t.syncDynamicErrorWithStack),new d.StaticGenBailoutError}function eg(e,t,r,n,i){if(em(e,n),0===t&&!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error((0,y.createDynamicOrRuntimeMetadataError)(e.route).message),new d.StaticGenBailoutError;if(!i&&!r.hasSuspenseAboveBody&&0!==t){let n=r.dynamicErrors;if(n.length>0){for(let t=0;t<n.length;t++)ep(e,n[t]);throw new d.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error((0,y.createDynamicOrRuntimeViewportError)(e.route).message),new d.StaticGenBailoutError;if(1===t)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new d.StaticGenBailoutError}}function eb(e,t,r,n){if(0===t&&!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];if(n||r.hasSuspenseAboveBody)return[];if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return[Object.defineProperty(new _.InvariantError(`Route "${e.route}
121" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}return[]}function ey(e,t,r,n,i,a){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:o}=r;if(o.length>0)return o;if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t&&!r.hasAllowedClientDynamicAboveBoundary&&(0,v.allRequiredBoundariesRendered)(i))return Object.defineProperty(new _.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}if(!(0,v.allRequiredBoundariesRendered)(i)){let{thrownErrorsOutsideBoundary:t}=r,n=r.slotStacks[0];if(0===t.length){let t=[];for(let[e,r]of i.requiredIds)if(!i.renderedIds.has(e))for(let e of r){let r=e.replace(/^\[project\][\\/]?/,"").replace(s.default.cwd()+"/","").replace(s.default.cwd()+"\\","");t.push(r)}return t.sort(),(0,E.createUnrenderedSegmentError)(e.route,t)}if(1===t.length){let r=`Route "${e.route}": Could not validate \`instant\` because the target segment was prevented from rendering, likely due to the following error.`,i=null!==n?n():Error();return i.name="Error",i.message=r,AggregateError([i,t[0]])}{let r=`Route "${e.route}": Could not validate \`instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,i=null!==n?n():Error();return i.name="Error",i.message=r,AggregateError([i,...t])}}return[]}},134457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},362266,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=e.r(134457)},783066,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},341643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=e.r(783066)},850999,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRequestApiAllowedInCurrentPhase:function(){return c},throwForSearchParamsAccessInUseCache:function(){return l},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(643248),s=e.r(362266),o=e.r(341643);function u(e,t){throw Object.defineProperty(new a.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function l(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function c(e){switch(e.phase){case"action":case"render":return!0;case"after":{let e=s.actionAsyncStorage.getStore();if(e&&(e.isAppRoute||e.isAction))return!0;let t=o.afterTaskAsyncStorage.getStore();if(t)return"action"===t.rootTaskSpawnPhase;return!1}}}},272623,(e,t,r)=>{"use strict";
121e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"connection",{enumerable:!0,get:function(){return c}});let n=e.r(563599),i=e.r(662141),a=e.r(67673),s=e.r(643248),o=e.r(963138),u=e.r(850999);e.r(142852);let l=e.r(312718);function c(){let e=n.workAsyncStorage.getStore(),t=i.workUnitAsyncStorage.getStore();if(e){if(t&&!(0,u.isRequestApiAllowedInCurrentPhase)(t))throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`after()\` while rendering. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E1377",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve(void 0);if(e.dynamicShouldError)throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(t)switch(t.type){case"cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,c),(0,o.applyOwnerStack)(t),e.invali
121dDynamicUsageError??=t,t}case"private-cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,c),(0,o.applyOwnerStack)(t),e.invalidDynamicUsageError??=t,t}case"unstable-cache":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1125",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,o.makeDynamicHangingPromise)(t.renderSignal,e.route,"`connection()`");case"validation-client":{let e="`connection`";throw Object.defineProperty(new l.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1063",enumerable:!1,configurable:!0})}case"prerender-ppr":return(0,a.postponeWithTracking)(e.route,"connection",t.dynamicTracking);case"prerender-legacy":return(0,a.throwToInterruptStaticGeneration)("connection",e,t);case"request":if((0,a.trackDynamicDataInDynamicRender)(t),t.asyncApiPromises)return t.asyncApiPromises.connection;return Promise.resolve(void 0)}}(0,i.throwForMissingRequestStore)("connection")}},223397,(e,t,r)=>{let n={NextRequest:e.r(434591).NextRequest,NextResponse:e.r(709256).NextResponse,ImageResponse:e.r(274370).ImageResponse,userAgentFromString:e.r(653291).userAgentFromString,userAgent:e.r(653291).userAgent,URLPattern:e.r(773533).URLPattern,after:e.r(547227).after,connection:e.r(272623).connection};t.exports=n,r.NextRequest=n.NextRequest,r.NextResponse=n.NextResponse,r.ImageResponse=n.ImageResponse,r.userAgentFromString=n.userAgentFromString,r.userAgent=n.userAgent,r.URLPattern=n.URLPattern,r.after=n.after,r.connection=n.connection},313988,51073,9460,690765,e=>{"use strict";e.i(223397),e.s([],313988),e.s([],51073);["script-src 'self' 'unsafe-inline'",null,"https://cdn.vercel-insights.com https://vercel.live https://*.magic.link https://*.magiclabs.com https://platform.twitter.com"].filter(Boolean).join(" "),e.s([],9460),e.s([],690765)},142852,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n,i,a={RENDER_STAGE_ADVANCE_ORDER:function(){return c},RenderStage:function(){return l},StagedRenderingController:function(){return p},SyncIOMode:function(){return h},getNextStage:function(){return d},isAdvanceableRenderStage:function(){return f}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let o=e.r(312718),u=e.r(839470);var l=((n={})[n.Before=1]="Before",n[n.ShellStatic=11]="ShellStatic",n[n.Static=13]="Static",n[n.ShellRuntime=21]="ShellRuntime",n[n.Runtime=23]="Runtime",n[n.Dynamic=30]="Dynamic",n[n.Abandoned=40]="Abandoned",n);let c=[11,13,21,23,30];function d(e){return c[c.indexOf(e)+1]}function f(e){return 1<e&&e<=30}var h=((i={})[i.Untracked=1]="Untracked",i[i.AllowedInRuntimeOrDynamic=2]="AllowedInRuntimeOrDynamic",i[i.AllowedInDynamic=3]="AllowedInDynamic",i);class p{constructor({abortSignal:e,abandonController:t,syncIO:r,finalStage:n}){this.currentStage=1,this.syncInterruptReason=null,this.triggers={11:g(),13:g(),21:g(),23:g(),30:g()}
121,this.abortSignal=e,this.abandonController=t,this.syncIOMode=r,this.finalStage=n,e&&e.addEventListener("abort",()=>{let{reason:t}=e;for(let e of Object.values(this.triggers)){var r,n;r=e,n=t,"pending"===r.state&&(r.state="cancelled",r._listeners.length=0,r.promise.catch(m),r._rejectPromise(n))}},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){var r,n;r=this.triggers[e],n=t,"pending"===r.state?r._listeners.push(n):n()}shouldTrackSyncInterrupt(){if(1===this.syncIOMode)return!1;switch(this.currentStage){case 1:return!1;case 11:case 13:return!0;case 21:case 23:switch(this.syncIOMode){case 2:return!1;case 3:return!0}case 30:case 40:return!1;default:return this.currentStage,!1}}syncInterruptCurrentStageWithReason(e){let{currentStage:t}=this;if(1!==t&&30!==t&&40!==t){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=40;return}this.syncInterruptReason=e,this.advanceStage(30)}}getSyncInterruptReason(){return this.syncInterruptReason}getStageEndTime(e){return this.triggers[d(e)].triggeredAt??1/0}abandonRender(){let{currentStage:e}=this;if(1===e)throw Object.defineProperty(new o.InvariantError("A render that hasn't started yet cannot be abandoned"),"__NEXT_ERROR_CODE",{value:"E1300",enumerable:!1,configurable:!0});if(30===e||40===e)return;let t=c.indexOf(e)+1,r=c.indexOf(30);for(let e=t;e<r;e++)this.resolveStage(c[e]);this.currentStage=40}advanceStage(e){if(null!==this.finalStage&&e>this.finalStage)throw Object.defineProperty(new o.InvariantError(`Attempted to advance to stage ${l[e]} but the render is limited to ${l[this.finalStage]}`),"__NEXT_ERROR_CODE",{value:"E1302",enumerable:!1,configurable:!0});let{currentStage:t}=this;if(30===t||40===t||e<=t)return;this.currentStage=e;let r=1===t?0:c.indexOf(t)+1,n=c.indexOf(e);for(let e=r;e<=n;e++)this.resolveStage(c[e])}resolveStage(e){var t=this.triggers[e];if("pending"===t.state){t.state="triggered",t.triggeredAt=performance.now()+performance.timeOrigin;try{let{_listeners:e}=t;for(let t=0;t<e.length;t++)e[t]();e.length=0}finally{t._resolvePromise()}}}getStagePromise(e){return this.triggers[e].promise}waitForStage(e){return this.getStagePromise(e)}delayUntilStage(e,t,r){let n=this.getStagePromise(e).then(()=>r);return this.abortSignal&&n.catch(m),n}}function m(){}function g(){let{promise:e,resolve:t,reject:r}=(0,u.createPromiseWithResolvers)();return{state:"pending",triggeredAt:null,promise:e,_listeners:[],_resolvePromise:t,_rejectPromise:r}}},984561,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getClientReact:function(){return o},getServerReact:function(){return c},registerClientReact:function(){return s},registerServerReact:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=null;function s(e){a=e}function o(){return a}let u=null;function l(e){u=e}function c(){return u}},963138,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={ClientHookDynamicError:function(){return c},RENDER_STAGES_BY_DATA_KIND:function(){return R},applyOwnerStack:function(){return N},isClientHookDynamicError:function(){return d},isHangingPromiseRejectionError:function(){return s},makeClientHookHangingPromise:function(){return v},makeDevtoolsIOAwarePromise:function(){return S},makeDynamicHangingPromise:function(){return h},makeFallbackParamsHangingPromise:function(){return g},makePromiseFromTrigger:function(){return O},makeRuntimeHangingPromise:function(){return m},makeStageHangingPromise:function(){return b},makeUntrackedHangingPromise:function(){return p},trackFallbackParamsAccessed:function(){return _},trackRuntimeDataAccessed:function(){return y}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(142852);function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===o}e.r(662141),e.r(984561);let o="HANGING_PROMISE_REJECTION";class u extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t}
121 to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=o}}let l="CLIENT_HOOK_DYNAMIC";class c extends Error{constructor(e,t){super(`Route "${e}": Next.js encountered URL data \`${t}\` in a Client Component outside of \`<Suspense>\`.
122
123This blocks prerendering because the value is only available at runtime.
124
125Ways to fix this:
126  - [stream] Wrap the component in \`<Suspense fallback={...}>\` so the hook value streams in after prerendering
127  - [block] Set \`export const instant = false\` to allow a blocking route
128
129Learn more: https://nextjs.org/docs/messages/blocking-prerender-client-hook`),this.digest=l,Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1433",enumerable:!1,configurable:!0})}}function d(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===l}let f=new WeakMap;function h(e,t,r){return E(e,new u(t,r))}function p(e,t,r){return E(e,new u(t,r))}function m(e,t,r,n){return null!==n&&y(n),E(e,new u(t,r))}function g(e,t,r,n){return null!==n&&_(n),E(e,new u(t,r))}function b(e,t,r,n){return y(n),E(e,new u(t,r))}function y(e){w(e,!1)}function _(e){w(e,!0)}function w(e,t){if("prerender"===e.type){var r;null==(r=e.runtimeDataAccessed)||r.resolve(!0);let n=e.shouldAttemptStaticPrefetch;null===n||t&&e.isFallbackUpgradeable||(n.current=!1)}}function v(e,t){return E(e,t)}function E(e,t){if(e.aborted)return Promise.reject(t);{let r=new Promise((r,n)=>{let i=n.bind(null,t),a=f.get(e);if(a)a.push(i);else{let t=[i];f.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e<t.length;e++)t[e]()},{once:!0})}});return r.catch(x),r}}function x(){}function O(e,t){let r=e.then(()=>t);return r.catch(x),r}function S(e,t,r){return t.stagedRendering?t.stagedRendering.delayUntilStage(r,void 0,e):new Promise(t=>{setTimeout(()=>{t(e)},0)})}let R={sessionData:a.RenderStage.ShellRuntime,staticLinkData:a.RenderStage.Static,runtimeLinkData:a.RenderStage.Runtime};function N(e){return e}},242344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},563599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(242344)},245955,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},662141,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={getCacheSignal:function(){return m},getDraftModeProviderForCacheScope:function(){return h},getHmrRefreshHash:function(){return c},getResumeDataCache:function(){return l},getServerComponentsHmrCache:function(){return f},getStagedRenderingController:function(){return p},getVaryParamsAccumulator:function(){return g},isHmrRefresh:function(){return d},throwForMissingRequestStore:function(){return o},throwInvariantForMissingStore:function(){return u},workUnitAsyncStorage:function(){return a.workUnitAsyncStorageInstance}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(245955),s=e.r(312718);function o(e){throw Object.defineProperty(Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function u(){throw Object.defineProperty(new s.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function l(e){switch(e.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":case"prerender-ppr":return e.resumeDataCache;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return e}}function c(e){}function d(e){return!1}function f(e){}function h(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode}}function p(e){switch(e.type){case"request":case"prerender-runtime":case"prerender":return e.stagedRendering??null;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function m(e){switch(e.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return e.cacheSignal;case"request":if(e.cacheSignal)return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function g(e){switch(e.type){case"prerender":case"prerender-runtime":case"request":return e.varyParamsAccumulator??null;default:return null}}},771906,(e,t,r)=>{"use strict";
129Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"after",{enumerable:!0,get:function(){return a}});let n=e.r(563599),i=e.r(662141);function a(e){let t=n.workAsyncStorage.getStore(),r=i.workUnitAsyncStorage.getStore();if(!t||!r)throw Object.defineProperty(Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:a}=t;return a.after(e,r)}},547227,(e,t,r)=>{"use strict";var n,i;Object.defineProperty(r,"__esModule",{value:!0}),n=e.r(771906),i=r,Object.keys(n).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(i,e,{enumerable:!0,get:function(){return n[e]}})})},531126,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={fromNodeOutgoingHttpHeaders:function(){return s},normalizeNextQueryParam:function(){return c},splitCookiesString:function(){return o},toNodeOutgoingHttpHeaders:function(){return u},validateURL:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(663416);function s(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 o(e){var t,r,n,i,a,s=[],o=0;function u(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,a=!1;u();)if(","===(r=e.charAt(o))){for(n=o,o+=1,u(),i=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(a=!0,o=i,s.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!a||o>=e.length)&&s.push(e.substring(t,e.length))}return s}function u(e){let t={},r=[];if(e)for(let[n,i]of e.entries())"set-cookie"===n.toLowerCase()?(r.push(...o(i)),t[n]=1===r.length?r[0]:r):t[n]=i;return t}function l(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function c(e){for(let t of[a.NEXT_QUERY_PARAM_PREFIX,a.NEXT_INTERCEPTION_MARKER_PREFIX])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}},576420,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PageSignatureError:function(){return a},RemovedPageError:function(){return s},RemovedUAError:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});class a extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form:
130  
131  export function middleware(request, event) {
132    return NextResponse.redirect('/new-location')
133  }
134  
135  Read more: https://nextjs.org/docs/messages/middleware-new-signature
136  `),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1177",enumerable:!1,configurable:!0})}}class s extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n  Read more: https://nextjs.org/docs/messages/middleware-request-page\n  "),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1178",enumerable:!1,configurable:!0})}}class o extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n  Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n  "),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1172",enumerable:!1,configurable:!0})}}},928649,(e,t,r)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o={},u={RequestCookies:()=>m,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>f,stringifyCookie:()=>c};for(var l in u)n(o,l,{get:u[l],enumerable:!0});function c(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}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}
136`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(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,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function f(e){if(!e)return;let[[t,r],...n]=d(e),{domain:i,expires:a,httponly:s,maxage:o,path:u,samesite:l,secure:c,partitioned:f,priority:m}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,b,y={name:t,value:decodeURIComponent(r),domain:i,...a&&{expires:new Date(a)},...s&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:u,...l&&{sameSite:h.includes(g=(g=l).toLowerCase())?g:void 0},...c&&{secure:!0},...m&&{priority:p.includes(b=(b=m).toLowerCase())?b:void 0},...f&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))s.call(e,o)||void 0===o||n(e,o,{get:()=>t[o],enumerable:!(r=i(t,o))||r.enumerable});return e})(n({},"__esModule",{value:!0}),o);var h=["strict","lax","none"],p=["low","medium","high"],m=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(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])=>c(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])=>c(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("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const i=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(i)?i:function(e){if(!e)return[];var t,r,n,i,a,s=[],o=0;function u(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,a=!1;u();)if(","===(r=e.charAt(o))){for(n=o,o+=1,u(),i=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(a=!0,o=i,s.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!a||o>=e.length)&&s.push(e.substring(t,e.length))}return s}(i)){const t=f(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,i=this._parsed;return i.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=c(r);t.append("set-cookie",e)}}(i,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,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(c).join("; ")}}},196883,(e,t,r)=>{"use strict";
136Object.defineProperty(r,"__esModule",{value:!0});var n={RequestCookies:function(){return a.RequestCookies},ResponseCookies:function(){return a.ResponseCookies},stringifyCookie:function(){return a.stringifyCookie}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(928649)},434591,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={INTERNALS:function(){return l},NextRequest:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(973670),s=e.r(531126),o=e.r(576420),u=e.r(196883),l=Symbol("internal request");class c extends Request{constructor(e,t={}){const r="string"!=typeof e&&"url"in e?e.url:String(e);(0,s.validateURL)(r),t.body&&"half"!==t.duplex&&(t.duplex="half"),e instanceof Request?super(e,t):super(r,t);const n=new a.NextURL(r,{headers:(0,s.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig});this[l]={cookies:new u.RequestCookies(this.headers),nextUrl:n,url:n.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[l].cookies}get nextUrl(){return this[l].nextUrl}get page(){throw new o.RemovedPageError}get ua(){throw new o.RemovedUAError}get url(){return this[l].url}}},242715,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{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)}}},709256,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextResponse",{enumerable:!0,get:function(){return d}});let n=e.r(196883),i=e.r(973670),a=e.r(531126),s=e.r(242715),o=e.r(196883),u=Symbol("internal response"),l=new Set([301,302,303,307,308]);function c(e,t){var r;if(null==e||null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Object.defineProperty(Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let r=[];for(let[n,i]of e.request.headers)t.set("x-middleware-request-"+n,i),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class d extends Response{constructor(e,t={}){super(e,t);const r=this.headers,l=new Proxy(new o.ResponseCookies(r),{get(e,i,a){switch(i){case"delete":case"set":return(...a)=>{let s=Reflect.apply(e[i],e,a),u=new Headers(r);return s instanceof o.ResponseCookies&&r.set("x-middleware-set-cookie",s.getAll().map(e=>(0,n.stringifyCookie)(e)).join(",")),c(t,u),s};default:return s.ReflectAdapter.get(e,i,a)}}});this[u]={cookies:l,url:t.url?new i.NextURL(t.url,{headers:(0,a.toNodeOutgoingHttpHeaders)(r),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[u].cookies}static json(e,t){let r=Response.json(e,t);return new d(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!l.has(r))throw Object.defineProperty(RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let n="object"==typeof t?t:{},i=new Headers(null==n?void 0:n.headers);return i.set("Location",(0,a.validateURL)(e)),new d(null,{...n,headers:i,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,a.validateURL)(e)),c(t,r),new d(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),c(e,t),new d(null,{...e,headers:t})}}},274370,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,
136configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageResponse",{enumerable:!0,get:function(){return n}})},275600,(e,t,r)=>{var n={943:function(t,r){!function(n){"use strict";var i="function",a="undefined",s="object",o="string",u="major",l="model",c="name",d="type",f="vendor",h="version",p="architecture",m="console",g="mobile",b="tablet",y="smarttv",_="wearable",w="embedded",v="Amazon",E="Apple",x="ASUS",O="BlackBerry",S="Browser",R="Chrome",N="Firefox",T="Google",k="Huawei",A="Microsoft",I="Motorola",P="Opera",C="Samsung",j="Sharp",D="Sony",L="Xiaomi",$="Zebra",B="Facebook",U="Chromium OS",M="Mac OS",Z=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},z=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},V=function(e,t){return typeof e===o&&-1!==F(t).indexOf(F(e))},F=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,350)},H=function(e,t){for(var r,n,a,o,u,l,c=0;c<t.length&&!u;){var d=t[c],f=t[c+1];for(r=n=0;r<d.length&&!u&&d[r];)if(u=d[r++].exec(e))for(a=0;a<f.length;a++)l=u[++n],typeof(o=f[a])===s&&o.length>0?2===o.length?typeof o[1]==i?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:3===o.length?typeof o[1]!==i||o[1].exec&&o[1].test?this[o[0]]=l?l.replace(o[
1361],o[2]):void 0:this[o[0]]=l?o[1].call(this,l,o[2]):void 0:4===o.length&&(this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):void 0):this[o]=l||void 0;c+=2}},G=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(V(t[r][n],e))return"?"===r?void 0:r}else if(V(t[r],e))return"?"===r?void 0:r;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,h],[/opios[\/ ]+([\w\.]+)/i],[h,[c,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[c,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[c,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+S],h],[/\bfocus\/([\w\.]+)/i],[h,[c,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[c,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[c,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[c,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[h,[c,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+S],h],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,B],h],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[c,R+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,R+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[c,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[h,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[c,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,h],[/(cobalt)\/([\w\.]+)/i],[c,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,F]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",F]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
vendor: 7,083 bytes, line 136
136|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,F]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[f,C],[d,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[f,C],[d,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[f,E],[d,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[f,E],[d,b]],[/(macintosh);/i],[l,[f,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[f,j],[d,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[f,k],[d,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[f,k],[d,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[f,L],[d,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[f,L],[d,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[f,"OPPO"],[d,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[f,"Vivo"],[d,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[f,"Realme"],[d,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[f,I],[d,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[f,I],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[f,"LG"],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[f,"LG"],[d,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[f,"Lenovo"],[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[f,"Nokia"],[d,g]],[/(pixel c)\b/i],[l,[f,T],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[f,T],[d,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[f,D],[d,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[f,D],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[f,"OnePlus"],[d,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[f,v],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[f,v],[d,g]],[/(playbook);[-\w\),; ]+(rim)/i],[l,f,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[f,O],[d,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[f,x],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[f,x],[d,g]],[/(nexus 9)/i],[l,[f,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[l,/_/g," "],[d,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[f,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[f,"Meizu"],[d,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,l,[d,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,l,[d,b]],[/(surface duo)/i],[l,[f,A],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[f,"Fairphone"],[d,g]],[/(u304aa)/i],[l,[f,"AT&T"],[d,g]],[/\bsie-(\w*)/i],[l,[f,"Siemens"],[d,g]],[/\b(rct\w+) b/i],[l,[f,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[f,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[f,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[f,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[l,[f,"NuVision"],[d,b]],[/\b(k88) b/i],[l,[f,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[l,[f,"ZTE"],[d,g]],[/\b(gen\d{3}) b.+49h/i],[l,[f,"Swiss"],[d,g]],[/\b(zur\d{3}) b/i],[l,[f,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[l,[f,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],l,[d,b]],[/\b(ns-?\w{0,9}) b/i],[l,[f,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[f,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],l,[d,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],l,[d,g]],[/\b(ph-1) /i],[l,[f,"Essential"],[d,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[f,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[l,[f,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[l,[f,"Rotor"],[d,b]],[/(shield[\w ]+) b/i],[l,[f,"Nvidia"],[d,b]],[/(sprint) (\w+)/i],[f,l,[d,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[f,A],[d,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[f,$],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[f,$],[d,g]],[/smart-tv.+(samsung)/i],[f,[d,y]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[f,C],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[d,y]],[/(apple) ?tv/i],[f,[l,E+" TV"],[d,y]],[/crkey/i],[[l,R+"cast"],[f,T],[d,y]],[/droid.+aft(\w)( bui|\))/i],[l,[f,v],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[f,j],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[l,[f,D],[d,y]],[/(mitv-\w{5}) bui/i],[l,[f,L],[d,y]],[/Hbbtv.*(technisat) (.*);/i],[f,l,[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,q],[l,q],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,l,[d,m]],[/droid.+; (shield) bui/i],[l,[f,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[l,[f,D],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[f,A],[d,m]],[/((pebble))app/i],[f,l,[d,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[f,E],[d,_]],[/droid.+; (glass) \d/i],[l,[f,T],[d,_]],[/droid.+; (wt63?0{2,3})\)/i],[l,[f,$],[d,_]],[/(quest( 2| pro)?)/i],[l,[f,B],[d,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[l,[f,v],[d,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[d,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,g]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,h],[/rv\
136:([\w\.]{1,9})\b.+(gecko)/i],[h,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[h,G,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[h,G,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,M],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,h],[/\(bb(10);/i],[h,[c,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[c,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[c,R+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,U],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,h],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,h]]},W=function(e,t){if(typeof e===s&&(t=e,e=void 0),!(this instanceof W))return new W(e,t).getResult();var r=typeof n!==a&&n.navigator?n.navigator:void 0,m=e||(r&&r.userAgent?r.userAgent:""),y=r&&r.userAgentData?r.userAgentData:void 0,_=t?Z(Y,t):Y,w=r&&r.userAgent==m;return this.getBrowser=function(){var e,t={};return t[c]=void 0,t[h]=void 0,H.call(t,m,_.browser),t[u]=typeof(e=t[h])===o?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,w&&r&&r.brave&&typeof r.brave.isBrave==i&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[p]=void 0,H.call(e,m,_.cpu),e},this.getDevice=function(){var e={};return e[f]=void 0,e[l]=void 0,e[d]=void 0,H.call(e,m,_.device),w&&!e[d]&&y&&y.mobile&&(e[d]=g),w&&"Macintosh"==e[l]&&r&&typeof r.standalone!==a&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[l]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[c]=void 0,e[h]=void 0,H.call(e,m,_.engine),e},this.getOS=function(){var e={};return e[c]=void 0,e[h]=void 0,H.call(e,m,_.os),w&&!e[c]&&y&&"Unknown"!=y.platform&&(e[c]=y.platform.replace(/chrome os/i,U).replace(/macos/i,M)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return m},this.setUA=function(e){return m=typeof e===o&&e.length>350?q(e,350):e,this},this.setUA(m),this};if(W.VERSION="1.0.35",W.BROWSER=z([c,h,u]),W.CPU=z([p]),W.DEVICE=z([l,f,d,m,g,y,b,_,w]),W.ENGINE=W.OS=z([c,h]),typeof r!==a)t.exports&&(r=t.exports=W),r.UAParser=W;else if(typeof define===i&&define.amd)e.r,void 0!==W&&e.v(W);else typeof n!==a&&(n.UAParser=W);var X=typeof n!==a&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new W;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var r in t)X.ua[r]=t[r]}}}("object"==typeof window?window:this)}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},s=!0;try{n[e].call(r.exports,r,r.exports,a),s=!1}finally{s&&delete i[e]}return r.exports}a.ab="/ROOT/node_modules/next/dist/compiled/ua-parser-js/",t.exports=a(943)},653291,(e,t,r)=>{"use strict";
136Object.defineProperty(r,"__esModule",{value:!0});var n,i={isBot:function(){return o},userAgent:function(){return l},userAgentFromString:function(){return u}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let s=(n=e.r(275600))&&n.__esModule?n:{default:n};function o(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|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|GPTBot/i.test(e)}function u(e){return{...(0,s.default)(e),isBot:void 0!==e&&o(e)}}function l({headers:e}){return u(e.get("user-agent")||void 0)}},773533,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"URLPattern",{enumerable:!0,get:function(){return n}});let n="u"<typeof URLPattern?void 0:URLPattern},957645,(e,t,r)=>{"use strict";function n(e,t,r){if(e){for(let n of(r&&(r=r.toLowerCase()),e))if(t===n.domain?.split(":",1)[0].toLowerCase()||r===n.defaultLocale.toLowerCase()||n.locales?.some(e=>e.toLowerCase()===r))return n}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return n}})},95524,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return a}});let n=e.r(541858),i=e.r(59084);function a(e,t,r,a){if(!t||t===r)return e;let s=e.toLowerCase();return!a&&((0,i.pathHasPrefix)(s,"/api")||(0,i.pathHasPrefix)(s,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},230283,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=e.r(938281),i=e.r(541858),a=e.r(152539),s=e.r(95524);function o(e){let t=(0,s.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,i.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},513079,(e,t,r)=>{"use strict";function n(e,t){let r;if(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(r,"__esModule",{value:!0}),Object.defineProperty(r,"getHostname",{enumerable:!0,get:function(){return n}})},927711,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return i}});let n=new WeakMap;function i(e,t){let r;if(!t)return{pathname:e};let i=n.get(t);i||(i=t.map(e=>e.toLowerCase()),n.set(t,i));let a=e.split("/",2);if(!a[1])return{pathname:e};let s=a[1].toLowerCase(),o=i.indexOf(s);return o<0?{pathname:e}:(r=t[o],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},657979,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=e.r(59084);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},283605,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=e.r(927711),i=e.r(657979),a=e.r(59084);function s(e,t){let{basePath:r,i18n:s,trailingSlash:o}=t.nextConfig??{},u={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):o};r&&(0,a.pathHasPrefix)(u.pathname,r)&&(u.pathname=(0,i.removePathPrefix)(u.pathname,r),u.basePath=r);let l=u.pathname;if(u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){let e=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");u.buildId=e[0],l="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(u.pathname=l)}
136if(s){let e=t.i18nProvider?t.i18nProvider.analyze(u.pathname):(0,n.normalizeLocalePath)(u.pathname,s.locales);u.locale=e.detectedLocale,u.pathname=e.pathname??u.pathname,!e.detectedLocale&&u.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(l):(0,n.normalizeLocalePath)(l,s.locales)).detectedLocale&&(u.locale=e.detectedLocale)}return u}},973670,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextURL",{enumerable:!0,get:function(){return c}});let n=e.r(957645),i=e.r(230283),a=e.r(513079),s=e.r(283605),o=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function u(e,t){let r=new URL(String(e),t&&String(t));return o.test(r.hostname)&&(r.hostname="localhost"),r}let l=Symbol("NextURLInternal");class c{constructor(e,t,r){let n,i;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,i=r||{}):i=r||t||{},this[l]={url:u(e,n??i.base),options:i,basePath:""},this.analyze()}analyze(){var e,t,r,i,o;let u=(0,s.getNextPathnameInfo)(this[l].url.pathname,{nextConfig:this[l].options.nextConfig,parseData:!0,i18nProvider:this[l].options.i18nProvider}),c=(0,a.getHostname)(this[l].url,this[l].options.headers);this[l].domainLocale=this[l].options.i18nProvider?this[l].options.i18nProvider.detectDomainLocale(c):(0,n.detectDomainLocale)(null==(t=this[l].options.nextConfig)||null==(e=t.i18n)?void 0:e.domains,c);let d=(null==(r=this[l].domainLocale)?void 0:r.defaultLocale)||(null==(o=this[l].options.nextConfig)||null==(i=o.i18n)?void 0:i.defaultLocale);this[l].url.pathname=u.pathname,this[l].defaultLocale=d,this[l].basePath=u.basePath??"",this[l].buildId=u.buildId,this[l].locale=u.locale??d,this[l].trailingSlash=u.trailingSlash}formatPathname(){return(0,i.formatNextPathnameInfo)({basePath:this[l].basePath,buildId:this[l].buildId,defaultLocale:this[l].options.forceLocale?void 0:this[l].defaultLocale,locale:this[l].locale,pathname:this[l].url.pathname,trailingSlash:this[l].trailingSlash})}formatSearch(){return this[l].url.search}get buildId(){return this[l].buildId}set buildId(e){this[l].buildId=e}get locale(){return this[l].locale??""}set locale(e){var t,r;if(!this[l].locale||!(null==(r=this[l].options.nextConfig)||null==(t=r.i18n)?void 0:t.locales.includes(e)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${e}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[l].locale=e}get defaultLocale(){return this[l].defaultLocale}get domainLocale(){return this[l].domainLocale}get searchParams(){return this[l].url.searchParams}get host(){return this[l].url.host}set host(e){this[l].url.host=e}get hostname(){return this[l].url.hostname}set hostname(e){this[l].url.hostname=e}get port(){return this[l].url.port}set port(e){this[l].url.port=e}get protocol(){return this[l].url.protocol}set protocol(e){this[l].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[l].url=u(e),this.analyze()}get origin(){return this[l].url.origin}get pathname(){return this[l].url.pathname}set pathname(e){this[l].url.pathname=e}get hash(){return this[l].url.hash}set hash(e){this[l].url.hash=e}get search(){return this[l].url.search}set search(e){this[l].url.search=e}get password(){return this[l].url.password}set password(e){this[l].url.password=e}get username(){return this[l].url.username}set username(e){this[l].url.username=e}get basePath(){return this[l].basePath}set basePath(e){this[l].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 c(String(this),this[l].options)}}},152539,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=e.r(572463);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return`${r}${t}${i}${a}`}},50270,e=>{"use strict";let t;e.s([],38570),e.i(38570),(to=tc||(tc={})).assertEqual=e=>{},to.assertIs=function(e){},to.assertNever=function(e){throw Error()},to.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},to.getValidEnumValues=e=>{let t=to.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return to.objectValues(r)},to.objectValues=e=>to.objectKeys(e).map(function(t){return e[t]}),to.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},to.find=(e,t)=>{for(let r of e)if(t(r))return r},to.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,to.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},to.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(td||(td={})).mergeShapes=(e,t)=>({...e,...t});let r=tc.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 Number.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("u">typeof Map&&e instanceof Map)return r.map;if("u">typeof Set&&e instanceof Set)return r.set;if("u">typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}};e.s(["ZodParsedType",0,r,"getParsedType",0,n,"objectUtil",0,td,"util",0,tc],904783);
136let i=tc.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"]),a=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class s extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tc.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e),e.s(["ZodError",0,s,"ZodIssueCode",0,i,"quotelessJson",0,a],169790);let o=(e,t)=>{let n;switch(e.code){case i.invalid_type:n=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case i.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,tc.jsonStringifyReplacer)}`;break;case i.unrecognized_keys:n=`Unrecognized key(s) in object: ${tc.joinValues(e.keys,", ")}`;break;case i.invalid_union:n="Invalid input";break;case i.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${tc.joinValues(e.options)}`;break;case i.invalid_enum_value:n=`Invalid enum value. Expected ${tc.joinValues(e.options)}, received '${e.received}'`;break;case i.invalid_arguments:n="Invalid function arguments";break;case i.invalid_return_type:n="Invalid function return type";break;case i.invalid_date:n="Invalid date";break;case i.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:tc.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case i.too_small:n="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||"bigint"===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 i.too_big:n="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 i.custom:n="Invalid input";break;case i.invalid_intersection_types:n="Intersection results could not be merged";break;case i.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case i.not_finite:n="Number must be finite";break;default:n=t.defaultError,tc.assertNever(e)}return{message:n}},u=o;function l(e){u=e}function c(){return u}e.s(["getErrorMap",0,c,"setErrorMap",0,l],937904),e.i(937904),e.s(["defaultErrorMap",0,o,"getErrorMap",0,c,"setErrorMap",0,l],27729
1360),e.i(277290);let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}},f=[];function h(e,t){let r=c(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===o?void 0:o].filter(e=>!!e)});e.common.issues.push(n)}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 r=[];for(let n of t){if("aborted"===n.status)return m;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return p.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),b=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,_=e=>"dirty"===e.status,w=e=>"valid"===e.status,v=e=>"u">typeof Promise&&e instanceof Promise;e.s(["DIRTY",0,g,"EMPTY_PATH",0,f,"INVALID",0,m,"OK",0,b,"ParseStatus",0,p,"addIssueToContext",0,h,"isAborted",0,y,"isAsync",0,v,"isDirty",0,_,"isValid",0,w,"makeIssue",0,d],665354),e.i(665354),e.s([],527404),e.i(527404),e.i(904783),(tu=tf||(tf={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},tu.toString=e=>"string"==typeof e?e:e?.message;class E{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if(w(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 s(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class S{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(v(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:n(e)},i=this._parseSync({data:e,path:r.path,parent:r});return x(r,i)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:n(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return w(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>w(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:n(e)},i=this._parse({data:e,path:r.path,parent:r});return x(r,await (v(i)?i:Promise.resolve(i)))}refine(e,t){return this._refinement((r,n)=>{let a=e(r),s=()=>n.addIssue({code:i.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&a instanceof Promise?a.then(e=>!!e||(s(),!1)):!!a||(s(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new e_({schema:this,typeName:th.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ew.create(this,this._def)}nullable(){return ev.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return er.create(this)}promise(){return ey.create(this,this._def)}or(e){return ei.create([this,e],this._def)}and(e){return eo.create(this,e,this._def)}transform(e){return new e_({...O(this._def),schema:this,typeName:th.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eE({...O(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:th.ZodDefault})}brand(){return new eR({typeName:th.ZodBranded,type:this,...O(this._def)})}catch(e){return new ex({...O(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:th.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eN.create(this,e)}readonly(){return eT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let R=/^c[^\s-]{8,}
vendor: 26,411 bytes, line 136
136$/i,N=/^[0-9a-z]+$/,T=/^[0-9A-HJKMNP-TV-Z]{26}$/i,k=/^[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,A=/^[a-z0-9_-]{21}$/i,I=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,P=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,C=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,L=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,B=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,U=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,M="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Z=RegExp(`^${M}$`);function z(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function V(e){let t=`${M}T${z(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class F extends S{_parse(e){var n,a,s,o;let u;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r.string){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.string,received:t.parsedType}),m}let l=new p;for(let r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(h(u=this._getOrReturnCtx(e,u),{code:i.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),l.dirty());else if("max"===r.kind)e.data.length>r.value&&(h(u=this._getOrReturnCtx(e,u),{code:i.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),l.dirty());else if("length"===r.kind){let t=e.data.length>r.value,n=e.data.length<r.value;(t||n)&&(u=this._getOrReturnCtx(e,u),t?h(u,{code:i.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):n&&h(u,{code:i.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),l.dirty())}else if("email"===r.kind)C.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"email",code:i.invalid_string,message:r.message}),l.dirty());else if("emoji"===r.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"emoji",code:i.invalid_string,message:r.message}),l.dirty());else if("uuid"===r.kind)k.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"uuid",code:i.invalid_string,message:r.message}),l.dirty());else if("nanoid"===r.kind)A.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"nanoid",code:i.invalid_string,message:r.message}),l.dirty());else if("cuid"===r.kind)R.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"cuid",code:i.invalid_string,message:r.message}),l.dirty());else if("cuid2"===r.kind)N.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"cuid2",code:i.invalid_string,message:r.message}),l.dirty());else if("ulid"===r.kind)T.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"ulid",code:i.invalid_string,message:r.message}),l.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{h(u=this._getOrReturnCtx(e,u),{validation:"url",code:i.invalid_string,message:r.message}),l.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"regex",code:i.invalid_string,message:r.message}),l.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(h(u=this._getOrReturnCtx(e,u),{code:i.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),l.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(h(u=this._getOrReturnCtx(e,u),{code:i.invalid_string,validation:{startsWith:r.value},message:r.message}),l.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(h(u=this._getOrReturnCtx(e,u),{code:i.invalid_string,validation:{endsWith:r.value},message:r.message}),l.dirty()):"datetime"===r.kind?V(r).test(e.data)||(h(u=this._getOrReturnCtx(e,u),{code:i.invalid_string,validation:"datetime",message:r.message}),l.dirty()):"date"===r.kind?Z.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{code:i.invalid_string,validation:"date",message:r.message}),l.dirty()):"time"===r.kind?RegExp(`^${z(r)}$`).test(e.data)||(h(u=this._getOrReturnCtx(e,u),{code:i.invalid_string,validation:"time",message:r.message}),l.dirty()):"duration"===r.kind?P.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"duration",code:i.invalid_string,message:r.message}),l.dirty()):"ip"===r.kind?(n=e.data,!(("v4"===(a=r.version)||!a)&&j.test(n)||("v6"===a||!a)&&L.test(n))&&1&&(h(u=this._getOrReturnCtx(e,u),{validation:"ip",code:i.invalid_string,message:r.message}),l.dirty())):"jwt"===r.kind?!function(e,t){if(!I.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,r.alg)&&(h(u=this._getOrReturnCtx(e,u),{validation:"jwt",code:i.invalid_string,message:r.message}),l.dirty()):"cidr"===r.kind?(s=e.data,!(("v4"===(o=r.version)||!o)&&D.test(s)||("v6"===o||!o)&&$.test(s))&&1&&(h(u=this._getOrReturnCtx(e,u),{validation:"cidr",code:i.invalid_string,message:r.message}),l.dirty())):"base64"===r.kind?B.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"base64",code:i.invalid_string,message:r.message}),l.dirty()):"base64url"===r.kind?U.test(e.data)||(h(u=this._getOrReturnCtx(e,u),{validation:"base64url",code:i.invalid_string,message:r.message}),l.dirty()):tc.assertNever(r);return{status:l.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:i.invalid_string,...tf.errToObj(r)})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tf.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tf.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tf.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tf.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tf.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tf.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tf.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tf.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tf.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...tf.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...tf.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tf.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...tf.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...tf.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...tf.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...tf.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tf.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...tf.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tf.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tf.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tf.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tf.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tf.errToObj(t)})}nonempty(e){return this.min(1,tf.errToObj(e))}trim(){return new F({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===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 isNANOID(){return!!this._def.checks.find(e=>"nanoid"===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 isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===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}}F.create=e=>new F({checks:[],typeName:th.ZodString,coerce:e?.coerce??!1,...O(e)});class q extends S{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:i.invalid_type,expected:r.number,received:t.parsedType}),m}let n=new p;for(let r of this._def.checks)"int"===r.kind?tc.isInteger(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:i.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(h(t=this._getOrReturnCtx(e,t),{code:i.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(h(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,r.value)&&(h(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:i.not_finite,message:r.message}),n.dirty()):tc.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tf.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tf.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tf.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tf.toString(t))}setLimit(e,t,r,n){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tf.toString(n)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tf.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tf.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tf.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tf.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tf.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tf.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tf.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tf.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tf.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&&tc.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}q.create=e=>new q({checks:[],typeName:th.ZodNumber,coerce:e?.coerce||!1,...O(e)});class H extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==r.bigint)return this._getInvalidInput(e);let n=new p;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(h(t=this._getOrReturnCtx(e,t),{code:i.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(h(t=this._getOrReturnCtx(e,t),{code:i.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(h(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):tc.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,tf.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tf.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tf.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tf.toString(t))}setLimit(e,t,r,n){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tf.toString(n)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tf.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tf.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tf.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tf.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tf.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}}H.create=e=>new H({checks:[],typeName:th.ZodBigInt,coerce:e?.coerce??!1,...O(e)});class G extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r.boolean){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.boolean,received:t.parsedType}),m}return b(e.data)}}G.create=e=>new G({typeName:th.ZodBoolean,coerce:e?.coerce||!1,...O(e)});class K extends S{_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:i.invalid_type,expected:r.date,received:t.parsedType}),m}if(Number.isNaN(e.data.getTime()))return h(this._getOrReturnCtx(e),{code:i.invalid_date}),m;let n=new p;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(h(t=this._getOrReturnCtx(e,t),{code:i.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(h(t=this._getOrReturnCtx(e,t),{code:i.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):tc.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tf.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tf.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}}K.create=e=>new K({checks:[],coerce:e?.coerce||!1,typeName:th.ZodDate,...O(e)});class Y extends S{_parse(e){if(this._getType(e)!==r.symbol){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.symbol,received:t.parsedType}),m}return b(e.data)}}Y.create=e=>new Y({typeName:th.ZodSymbol,...O(e)});class W extends S{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.undefined,received:t.parsedType}),m}return b(e.data)}}W.create=e=>new W({typeName:th.ZodUndefined,...O(e)});class X extends S{_parse(e){if(this._getType(e)!==r.null){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.null,received:t.parsedType}),m}return b(e.data)}}X.create=e=>new X({typeName:th.ZodNull,...O(e)});class J extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}J.create=e=>new J({typeName:th.ZodAny,...O(e)});class Q extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}Q.create=e=>new Q({typeName:th.ZodUnknown,...O(e)});class ee extends S{_parse(e){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.never,received:t.parsedType}),m}}ee.create=e=>new ee({typeName:th.ZodNever,...O(e)});class et extends S{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.void,received:t.parsedType}),m}return b(e.data)}}et.create=e=>new et({typeName:th.ZodVoid,...O(e)});class er extends S{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==r.array)return h(t,{code:i.invalid_type,expected:r.array,received:t.parsedType}),m;if(null!==a.exactLength){let e=t.data.length>a.exactLength.value,r=t.data.length<a.exactLength.value;(e||r)&&(h(t,{code:e?i.too_big:i.too_small,minimum:r?a.exactLength.value:void 0,maximum:e?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(null!==a.minLength&&t.data.length<a.minLength.value&&(h(t,{code:i.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),null!==a.maxLength&&t.data.length>a.maxLength.value&&(h(t,{code:i.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>a.type._parseAsync(new E(t,e,t.path,r)))).then(e=>p.mergeArray(n,e));let s=[...t.data].map((e,r)=>a.type._parseSync(new E(t,e,t.path,r)));return p.mergeArray(n,s)}get element(){return this._def.type}min(e,t){return new er({...this._def,minLength:{value:e,message:tf.toString(t)}})}max(e,t){return new er({...this._def,maxLength:{value:e,message:tf.toString(t)}})}length(e,t){return new er({...this._def,exactLength:{value:e,message:tf.toString(t)}})}nonempty(e){return this.min(1,e)}}er.create=(e,t)=>new er({type:e,minLength:null,maxLength:null,exactLength:null,typeName:th.ZodArray,...O(t)});class en extends S{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=tc.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==r.object){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.object,received:t.parsedType}),m}let{status:t,ctx:n}=this._processInputParams(e),{shape:a,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof ee&&"strip"===this._def.unknownKeys))for(let e in n.data)s.includes(e)||o.push(e);let u=[];for(let e of s){let t=a[e],r=n.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new E(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ee){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)u.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)o.length>0&&(h(n,{code:i.unrecognized_keys,keys:o}),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 o){let r=n.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new E(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return tf.errToObj,new en({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:tf.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new en({...this._def,unknownKeys:"strip"})}passthrough(){return new en({...this._def,unknownKeys:"passthrough"})}extend(e){return new en({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new en({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:th.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new en({...this._def,catchall:e})}pick(e){let t={};for(let r of tc.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new en({...this._def,shape:()=>t})}omit(e){let t={};for(let r of tc.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new en({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof en){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ew.create(e(i))}return new en({...t._def,shape:()=>r})}if(t instanceof er)return new er({...t._def,type:e(t.element)});if(t instanceof ew)return ew.create(e(t.unwrap()));if(t instanceof ev)return ev.create(e(t.unwrap()));if(t instanceof eu)return eu.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of tc.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new en({...this._def,shape:()=>t})}required(e){let t={};for(let r of tc.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ew;)e=e._def.innerType;t[r]=e}return new en({...this._def,shape:()=>t})}keyof(){return em(tc.objectKeys(this.shape))}}en.create=(e,t)=>new en({shape:()=>e,unknownKeys:"strip",catchall:ee.create(),typeName:th.ZodObject,...O(t)}),en.strictCreate=(e,t)=>new en({shape:()=>e,unknownKeys:"strict",catchall:ee.create(),typeName:th.ZodObject,...O(t)}),en.lazycreate=(e,t)=>new en({shape:e,unknownKeys:"strip",catchall:ee.create(),typeName:th.ZodObject,...O(t)});class ei extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s(e.ctx.common.issues));return h(t,{code:i.invalid_union,unionErrors:r}),m});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=n.map(e=>new s(e));return h(t,{code:i.invalid_union,unionErrors:a}),m}}get options(){return this._def.options}}ei.create=(e,t)=>
136new ei({options:e,typeName:th.ZodUnion,...O(t)});let ea=e=>{if(e instanceof eh)return ea(e.schema);if(e instanceof e_)return ea(e.innerType());if(e instanceof ep)return[e.value];if(e instanceof eg)return e.options;if(e instanceof eb)return tc.objectValues(e.enum);else if(e instanceof eE)return ea(e._def.innerType);else if(e instanceof W)return[void 0];else if(e instanceof X)return[null];else if(e instanceof ew)return[void 0,...ea(e.unwrap())];else if(e instanceof ev)return[null,...ea(e.unwrap())];else if(e instanceof eR)return ea(e.unwrap());else if(e instanceof eT)return ea(e.unwrap());else if(e instanceof ex)return ea(e._def.innerType);else return[]};class es extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return h(t,{code:i.invalid_type,expected:r.object,received:t.parsedType}),m;let n=this.discriminator,a=t.data[n],s=this.optionsMap.get(a);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:i.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ea(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new es({typeName:th.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...O(r)})}}class eo extends S{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),s=(e,s)=>{if(y(e)||y(s))return m;let o=function e(t,i){let a=n(t),s=n(i);if(t===i)return{valid:!0,data:t};if(a===r.object&&s===r.object){let r=tc.objectKeys(i),n=tc.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...i};for(let r of n){let n=e(t[r],i[r]);if(!n.valid)return{valid:!1};a[r]=n.data}return{valid:!0,data:a}}if(a===r.array&&s===r.array){if(t.length!==i.length)return{valid:!1};let r=[];for(let n=0;n<t.length;n++){let a=e(t[n],i[n]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}if(a===r.date&&s===r.date&&+t==+i)return{valid:!0,data:t};return{valid:!1}}(e.value,s.value);return o.valid?((_(e)||_(s))&&t.dirty(),{status:t.value,value:o.data}):(h(a,{code:i.invalid_intersection_types}),m)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}eo.create=(e,t,r)=>new eo({left:e,right:t,typeName:th.ZodIntersection,...O(r)});class eu extends S{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.array)return h(n,{code:i.invalid_type,expected:r.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return h(n,{code:i.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(h(n,{code:i.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new E(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(a).then(e=>p.mergeArray(t,e)):p.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new eu({...this._def,rest:e})}}eu.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eu({items:e,typeName:th.ZodTuple,rest:null,...O(t)})};class el extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.object)return h(n,{code:i.invalid_type,expected:r.object,received:n.parsedType}),m;let a=[],s=this._def.keyType,o=this._def.valueType;for(let e in n.data)a.push({key:s._parse(new E(n,e,n.path,e)),value:o._parse(new E(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?p.mergeObjectAsync(t,a):p.mergeObjectSync(t,a)}
136get element(){return this._def.valueType}static create(e,t,r){return new el(t instanceof S?{keyType:e,valueType:t,typeName:th.ZodRecord,...O(r)}:{keyType:F.create(),valueType:e,typeName:th.ZodRecord,...O(t)})}}class ec extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.map)return h(n,{code:i.invalid_type,expected:r.map,received:n.parsedType}),m;let a=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([e,t],r)=>({key:a._parse(new E(n,e,n.path,[r,"key"])),value:s._parse(new E(n,t,n.path,[r,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return m;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return m;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ec.create=(e,t,r)=>new ec({valueType:t,keyType:e,typeName:th.ZodMap,...O(r)});class ed extends S{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.set)return h(n,{code:i.invalid_type,expected:r.set,received:n.parsedType}),m;let a=this._def;null!==a.minSize&&n.data.size<a.minSize.value&&(h(n,{code:i.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),null!==a.maxSize&&n.data.size>a.maxSize.value&&(h(n,{code:i.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let s=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return m;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let u=[...n.data.values()].map((e,t)=>s._parse(new E(n,e,n.path,t)));return n.common.async?Promise.all(u).then(e=>o(e)):o(u)}min(e,t){return new ed({...this._def,minSize:{value:e,message:tf.toString(t)}})}max(e,t){return new ed({...this._def,maxSize:{value:e,message:tf.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ed.create=(e,t)=>new ed({valueType:e,minSize:null,maxSize:null,typeName:th.ZodSet,...O(t)});class ef extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return h(t,{code:i.invalid_type,expected:r.function,received:t.parsedType}),m;function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),o].filter(e=>!!e),issueData:{code:i.invalid_arguments,argumentsError:r}})}function a(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),o].filter(e=>!!e),issueData:{code:i.invalid_return_type,returnTypeError:r}})}let u={errorMap:t.common.contextualErrorMap},l=t.data;if(this._def.returns instanceof ey){let e=this;return b(async function(...t){let r=new s([]),i=await e._def.args.parseAsync(t,u).catch(e=>{throw r.addIssue(n(t,e)),r}),o=await Reflect.apply(l,this,i);return await e._def.returns._def.type.parseAsync(o,u).catch(e=>{throw r.addIssue(a(o,e)),r})})}{let e=this;return b(function(...t){let r=e._def.args.safeParse(t,u);if(!r.success)throw new s([n(t,r.error)]);let i=Reflect.apply(l,this,r.data),o=e._def.returns.safeParse(i,u);if(!o.success)throw new s([a(i,o.error)]);return o.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ef({...this._def,args:eu.create(e).rest(Q.create())})}returns(e){return new ef({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ef({args:e||eu.create([]).rest(Q.create()),returns:t||Q.create(),typeName:th.ZodFunction,...O(r)})}}class eh extends S{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})}}eh.create=(e,t)=>
136new eh({getter:e,typeName:th.ZodLazy,...O(t)});class ep extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:i.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function em(e,t){return new eg({values:e,typeName:th.ZodEnum,...O(t)})}ep.create=(e,t)=>new ep({value:e,typeName:th.ZodLiteral,...O(t)});class eg extends S{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return h(t,{expected:tc.joinValues(r),received:t.parsedType,code:i.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return h(t,{received:t.data,code:i.invalid_enum_value,options:r}),m}return b(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,t=this._def){return eg.create(e,{...this._def,...t})}exclude(e,t=this._def){return eg.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eg.create=em;class eb extends S{_parse(e){let t=tc.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==r.string&&n.parsedType!==r.number){let e=tc.objectValues(t);return h(n,{expected:tc.joinValues(e),received:n.parsedType,code:i.invalid_type}),m}if(this._cache||(this._cache=new Set(tc.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=tc.objectValues(t);return h(n,{received:n.data,code:i.invalid_enum_value,options:e}),m}return b(e.data)}get enum(){return this._def.values}}eb.create=(e,t)=>new eb({values:e,typeName:th.ZodNativeEnum,...O(t)});class ey extends S{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:i.invalid_type,expected:r.promise,received:t.parsedType}),m):b((t.parsedType===r.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ey.create=(e,t)=>new ey({type:e,typeName:th.ZodPromise,...O(t)});class e_ extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===th.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{h(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return m;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?m:"dirty"===n.status||"dirty"===t.value?g(n.value):n});{if("aborted"===t.value)return m;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?m:"dirty"===n.status||"dirty"===t.value?g(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.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!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>w(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):m);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!w(e))return m;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}tc.assertNever(n)}}e_.create=(e,t,r)=>new e_({schema:e,typeName:th.ZodEffects,effect:t,...O(r)}),e_.createWithPreprocess=(e,t,r)=>new e_({schema:t,effect:{type:"preprocess",transform:e},typeName:th.ZodEffects,...O(r)});class ew extends S{_parse(e){return this._getType(e)===r.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ew.create=(e,t)=>
136new ew({innerType:e,typeName:th.ZodOptional,...O(t)});class ev extends S{_parse(e){return this._getType(e)===r.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:th.ZodNullable,...O(t)});class eE extends S{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===r.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:th.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class ex extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return v(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:th.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class eO extends S{_parse(e){if(this._getType(e)!==r.nan){let t=this._getOrReturnCtx(e);return h(t,{code:i.invalid_type,expected:r.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}eO.create=e=>new eO({typeName:th.ZodNaN,...O(e)});let eS=Symbol("zod_brand");class eR extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eN extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eN({in:e,out:t,typeName:th.ZodPipeline})}}class eT extends S{_parse(e){let t=this._def.innerType._parse(e),r=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return v(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function ek(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eA(e,t={},r){return e?J.create().superRefine((n,i)=>{let a=e(n);if(a instanceof Promise)return a.then(e=>{if(!e){let e=ek(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=ek(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}}):J.create()}eT.create=(e,t)=>new eT({innerType:e,typeName:th.ZodReadonly,...O(t)});let eI={object:en.lazycreate};(tl=th||(th={})).ZodString="ZodString",tl.ZodNumber="ZodNumber",tl.ZodNaN="ZodNaN",tl.ZodBigInt="ZodBigInt",tl.ZodBoolean="ZodBoolean",tl.ZodDate="ZodDate",tl.ZodSymbol="ZodSymbol",tl.ZodUndefined="ZodUndefined",tl.ZodNull="ZodNull",tl.ZodAny="ZodAny",tl.ZodUnknown="ZodUnknown",tl.ZodNever="ZodNever",tl.ZodVoid="ZodVoid",tl.ZodArray="ZodArray",tl.ZodObject="ZodObject",tl.ZodUnion="ZodUnion",tl.ZodDiscriminatedUnion="ZodDiscriminatedUnion",tl.ZodIntersection="ZodIntersection",tl.ZodTuple="ZodTuple",tl.ZodRecord="ZodRecord",tl.ZodMap="ZodMap",tl.ZodSet="ZodSet",tl.ZodFunction="ZodFunction",tl.ZodLazy="ZodLazy",tl.ZodLiteral="ZodLiteral",tl.ZodEnum="ZodEnum",tl.ZodEffects="ZodEffects",tl.ZodNativeEnum="ZodNativeEnum",tl.ZodOptional="ZodOptional",tl.ZodNullable="ZodNullable",tl.ZodDefault="ZodDefault",tl.ZodCatch="ZodCatch",tl.ZodPromise="ZodPromise",tl.ZodBranded="ZodBranded",tl.ZodPipeline="ZodPipeline",tl.ZodReadonly="ZodReadonly";let eP=(e,t={message:`Input not instance of ${e.name}`})=>eA(t=>t instanceof e,t),eC=F.create,ej=q.create,eD=eO.create,eL=H.create,e$=G.create,eB=K.create,eU=Y.create,eM=W.create,eZ=X.create,ez=J.create,eV=Q.create,eF=ee.create,eq=et.create,eH=er.create,eG=en.create,eK=en.strictCreate,eY=ei.create,eW=es.create,eX=eo.create,eJ=eu.create,eQ=el.create,e0=ec.create,e1=ed.create,e2=ef.create,e3=eh.create,e6=ep.create,e4=eg.create,e5=eb.create,e9=ey.create,e8=e_.create,e7=ew.create,te=ev.create,tt=e_.createWithPreprocess,tr=eN.create,tn=()=>eC().optional(),ti=()=>ej().optional(),ta=()=>e$().optional(),ts={string:e=>F.create({...e,coerce:!0}),number:e=>q.create({...e,coerce:!0}),boolean:e=>G.create({...e,coerce:!0}),bigint:e=>H.create({...e,coerce:!0}),date:e=>K.create({...e,coerce:!0})};e.s(["BRAND",0,eS,"NEVER",0,m,"Schema",0,S,"ZodAny",0,J,"ZodArray",0,er,"ZodBigInt",0,H,"ZodBoolean",0,G,"ZodBranded",0,eR,"ZodCatch",0,ex,"ZodDate",0,K,"ZodDefault",0,eE,"ZodDiscriminatedUnion",0,es,"ZodEffects",0,e_,"ZodEnum",0,eg,"ZodFirstPartyTypeKind",0,th,"ZodFunction",0,ef,"ZodIntersection",0,eo,"ZodLazy",0,eh,"ZodLiteral",0,ep,"ZodMap",0,ec,"ZodNaN",0,eO,"ZodNativeEnum",0,eb,"ZodNever",0,ee,"ZodNull",0,X,"ZodNullable",0,ev,"ZodNumber",0,q,"ZodObject",0,en,"ZodOptional",0,ew,"ZodPipeline",0,eN,"ZodPromise",0,ey,"ZodReadonly",0,eT,"ZodRecord",0,el,"ZodSchema",0,S,"ZodSet",0,ed,"ZodString",0,F,"ZodSymbol",0,Y,"ZodTransformer",0,e_,"ZodTuple",0,eu,"ZodType",0,S,"ZodUndefined",0,W,"ZodUnion",0,ei,"ZodUnknown",0,Q,"ZodVoid",0,et,"any",0,ez,"array",0,eH,"bigint",0,eL,"boolean",0,e$,"coerce",0,ts,"custom",0,eA,"date",0,eB,"datetimeRegex",0,V,"discriminatedUnion",0,eW,"effect",0,e8,"enum",0,e4,"function",0,e2,"instanceof",0,eP,"intersection",0,eX,"late",0,eI,"lazy",0,e3,"literal",0,e6,"map",0,e0,"nan",0,eD,"nativeEnum",0,e5,"never",0,eF,"null",0,eZ,"nullable",0,te,"number",0,ej,"object",0,eG,"oboolean",0,ta,"onumber",0,ti,"optional",0,e7,"ostring",0,tn,"pipeline",0,tr,"preprocess",0,tt,"promise",0,e9,"record",0,eQ,"set",0,e1,"strictObject",0,eK,"string",0,eC,"symbol",0,eU,"transformer",0,e8,"tuple",0,eJ,"undefined",0,eM,"union",0,eY,"unknown",0,eV,"void",0,eq],965638),e.i(965638),e.i(169790),e.s(["BRAND",0,eS,"DIRTY",0,g,"EMPTY_PATH",0,f,"INVALID",0,m,"NEVER",0,m,"OK",0,b,"ParseStatus",0,p,"Schema",0,S,"ZodAny",0,J,"ZodArray",0,er,"ZodBigInt",0,H,"ZodBoolean",0,G,"ZodBranded",0,eR,"ZodCatch",0,ex,"ZodDate",0,K,"ZodDefault",0,eE,"ZodDiscriminatedUnion",0,es,"ZodEffects",0,e_,"ZodEnum",0,eg,"ZodError",0,s,"ZodFirstPartyTypeKind",0,th,"ZodFunction",0,ef,"ZodIntersection",0,eo,"ZodIssueCode",0,i,"ZodLazy",0,eh,"ZodLiteral",0,ep,"ZodMap",0,ec,"ZodNaN",0,eO,"ZodNativeEnum",0,eb,"ZodNever",0,ee,"ZodNull",0,X,"ZodNullable",0,ev,"ZodNumber",0,q,"ZodObject",0,en,"ZodOptional",0,ew,"ZodParsedType",0,r,"ZodPipeline",0,eN,"ZodPromise",0,ey,"ZodReadonly",0,eT,"ZodRecord",0,el,"ZodSchema",0,S,"ZodSet",0,ed,"ZodString",0,F,"ZodSymbol",0,Y,"ZodTransformer",0,e_,"ZodTuple",0,eu,"ZodType",0,S,"ZodUndefined",0,W,"ZodUnion",0,ei,"ZodUnknown",0,Q,"ZodVoid",0,et,"addIssueToContext",0,h,"any",0,ez,"array",0,eH,"bigint",0,eL,"boolean",0,e$,"coerce",0,ts,"custom",0,eA,"date",0,eB,"datetimeRegex",0,V,"defaultErrorMap",0,o,"discriminatedUnion",0,eW,"effect",0,e8,"enum",0,e4,"function",0,e2,"getErrorMap",0,c,"getParsedType",0,n,"instanceof",0,eP,"intersection",0,eX,"isAborted",0,y,"isAsync",0,v,"isDirty",0,_,"isValid",0,w,"late",0,eI,"lazy",0,e3,"literal",0,e6,"makeIssue",0,d,"map",0,e0,"nan",0,eD,"nativeEnum",0,e5,"never",0,eF,"null",0,eZ,"nullable",0,te,"number",0,ej,"object",0,eG,"objectUtil",0,td,"oboolean",0,ta,"onumber",0,ti,"optional",0,e7,"ostring",0,tn,"pipeline",0,tr,"preprocess",0,tt,"promise",0,e9,"quotelessJson",0,a,"record",0,eQ,"set",0,e1,"setErrorMap",0,l,"strictObject",0,eK,"string",0,eC,"symbol",0,eU,"transformer",0,e8,"tuple",0,eJ,"undefined",0,eM,"union",0,eY,"unknown",0,eV,"util",0,tc,"void",0,eq],788685);var to,tu,tl,tc,td,tf,th,tp=e.i(788685);e.s(["z",0,tp],50270)},384048,e=>{"use strict";let t,r,n,i;e.i(313988),e.i(51073),e.i(9460),e.i(690765);var a=e.i(467034),s=e.i(50270);let o=s.z.object({MONGODB_URI:s.z.string().min(1,"MONGODB_URI is required"),MONGODB_DB_NAME:s.z.string().default("tribute-daos-v2"),V1_MONGODB_URI:s.z.string().optional(),MONGODB_X509_CERT_B64:s.z.string().optional(),USE_V2_NAV_DATA:s.z.string().transform(e=>"true"===e).default("false"),MAGIC_SECRET_KEY:s.z.string().startsWith("sk_","MAGIC_SECRET_KEY must start with sk_"),SESSION_SECRET:s.z.string().min(32,"SESSION_SECRET must be at least 32 characters"),GCP_PROJECT_ID:s.z.string().min(1).optional(),GCP_SERVICE_ACCOUNT_KEY:s.z.string().optional(),GCP_WORKLOAD_IDENTITY_AUDIENCE:s.z.string().optional(),GCP_SERVICE_ACCOUNT_EMAIL:s.z.string().email().optional(),GCS_BUCKET_NAME:s.z.string().optional(),GOOGLE_CLIENT_ID:s.z.string().optional(),GOOGLE_CLIENT_SECRET:s.z.string().optional(),GOOGLE_REDIRECT_URI:s.z.string().url().optional(),GOOGLE_APPLICATION_CREDENTIAL_EMAIL:s.z.string().optional(),GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY:s.z.string().optional(),AGENTMAIL_API_KEY:s.z.string().optional(),AGENTMAIL_WEBHOOK_SECRET:s.z.string().optional(),AGENTMAIL_INBOX_ID:s.z.string().optional(),SENDGRID_API_KEY:s.z.string().startsWith("SG.").optional(),SENDGRID_BREACH_FROM_EMAIL:s.z.string().email().optional(),SENDGRID_WEBHOOK_VERIFICATION_KEY:s.z.string().optional(),OPENAI_API_KEY:s.z.string().optional(),AI_VOTING_EXECUTION_ENABLED:s.z.enum(["true","false"]).optional(),AI_VOTING_MODEL:s.z.string().min(1).optional(),AI_VOTING_MAX_JOBS_PER_RUN:s.z.string().regex(/^\d+$/).optional(),AI_VOTING_MAX_TOKENS_PER_DAO_PER_DAY:s.z.string().regex(/^\d+$/).optional(),MCP_OAUTH_ISSUER:s.z.string().url().optional(),MCP_RESOURCE_URI:s.z.string().url().optional(),MCP_OAUTH_TOKEN_PEPPER:s.z.string().min(32).optional(),MCP_OAUTH_CONSENT_VERSION:s.z.string().min(1).optional(),ALLOW_PREVIEW_MCP_OAUTH:s.z.enum(["true","false"]).optional(),MCP_ALLOWED_ORIGINS:s.z.string().optional(),MCP_LOCAL_DEV_ENABLED:s.z.enum(["true","false"]).optional(),MCP_LOCAL_CLIENT_ID:s.z.string().min(1).optional(),MCP_LOCAL_REDIRECT_URI:s.z.string().url().optional(),ANTHROPIC_API_KEY:s.z.string().optional(),ALCHEMY_API_KEY:s.z.string().optional(),COINGECKO_API_KEY:s.z.string().optional(),HELIUS_API_KEY:s.z.string().optional(),TAOSTATS_API_KEY:s.z.string().optional(),OPENSEA_API_KEY:s.z.string().optional(),APIFY_API_TOKEN:s.z.string().optional(),TWEET_SCRAPER_APIFY_ACTOR_ID:s.z.string().optional(),TWITTER_BEARER_TOKEN:s.z.string().optional(),EXA_API_KEY:s.z.string().optional(),ADMIN_MFA_ENFORCED:s.z.enum(["true","false"]).optional(),CSP_NONCE_ENABLED:s.z.enum(["true","false"]).optional(),DISCORD_WEBHOOK_URL:s.z.string().url().optional(),DISCORD_LOAN_WEBHOOK_URL:s.z.string().url().optional(),COINBASE_ACCESS_KEY:s.z.string().optional(),COINBASE_SERVICE_ACCOUNT_ID:s.z.string().optional(),COINBASE_PASS_PHRASE:s.z.string().optional(),COINBASE_SIGNING_KEY:s.z.string().optional(),FRED_ENGINE_URL:s.z.string().url().optional(),FRED_API_KEY:s.z.string().optional(),TOKEN_SECRET:s.z.string().min(32,"TOKEN_SECRET must be at least 32 characters").optional(),JWT_SECRET:s.z.string().min(32,"JWT_SECRET must be at least 32 characters").optional(),CRON_SECRET:s.z.string().min(1).optional(),WEBHOOK_SECRET:s.z.string().optional(),UPSTASH_REDIS_REST_URL:s.z.string().url().optional(),UPSTASH_REDIS_REST_TOKEN:s.z.string().optional(),PROXY_RATE_LIMIT_SAFE_READ_DAO_IDS:s.z.string().optional(),RATE_LIMITER_FAIL_CLOSED:s.z.enum(["true","false"]).optional(),PERF_SERVER_TIMING_ENABLED:s.z.enum(["true","false"]).optional(),FIELD_ENCRYPTION_KEY:s.z.string().optional().refine(e=>void 0===e||32===a.Buffer.from(e,"base64").length,"FIELD_ENCRYPTION_KEY must be a base64-encoded 32-byte key"),FIELD_ENCRYPTION_KEY_PREVIOUS:s.z.string().optional().refine(e=>void 0===e||32===a.Buffer.from(e,"base64").length,"FIELD_ENCRYPTION_KEY_PREVIOUS must be a base64-encoded 32-byte key"),FIELD_ENCRYPTION_KMS_KEY:s.z.string().optional(),FIELD_ENCRYPTION_DEK_WRAPPED:s.z.string().optional(),BREACH_LOOKUP_HMAC_KEY:s.z.string().min(16).optional(),NODE_ENV:s.z.enum(["development","production","test"]).default("development")}),u=s.z.object({NEXT_PUBLIC_DAO_ID:s.z.string().min(1,"NEXT_PUBLIC_DAO_ID is required"),NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEY:s.z.string().startsWith("pk_","NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEY must start with pk_"),NEXT_PUBLIC_ENVIRONMENT:s.z.enum(["development","production"]).default("development"),NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID:s.z.string().optional(),NEXT_PUBLIC_GOOGLE_MAPS_API_KEY:s.z.string().optional(),NEXT_PUBLIC_PUSHER_KEY:s.z.string().optional(),NEXT_PUBLIC_PUSHER_CLUSTER:s.z.string().optional()});function l(e,t,r,n,i){t&&!n&&e.addIssue({code:s.z.ZodIssueCode.custom,path:[r],message:i})}let c=[{key:"CRON_SECRET",message:"CRON_SECRET is required in production (cron Bearer auth)."},{key:"WEBHOOK_SECRET",message:"WEBHOOK_SECRET is required in production (webhook Bearer auth)."}];
136o.merge(u).superRefine(function(e,t){if("production"===e.NODE_ENV){let i,a,o,u,d;var r=e,n=t;let f=!!(r.FIELD_ENCRYPTION_KMS_KEY&&r.FIELD_ENCRYPTION_DEK_WRAPPED);for(let{key:e,message:t}of(r.FIELD_ENCRYPTION_KEY||f||n.addIssue({code:s.z.ZodIssueCode.custom,path:["FIELD_ENCRYPTION_KEY"],message:"Field encryption requires a key in production: set FIELD_ENCRYPTION_KEY (base64-encoded 32-byte key), or the envelope pair FIELD_ENCRYPTION_KMS_KEY + FIELD_ENCRYPTION_DEK_WRAPPED."}),r.TOKEN_SECRET||r.JWT_SECRET||n.addIssue({code:s.z.ZodIssueCode.custom,path:["TOKEN_SECRET"],message:"TOKEN_SECRET (or JWT_SECRET) is required in production (signs single-use voting tokens)."}),c))r[e]||n.addIssue({code:s.z.ZodIssueCode.custom,path:[e],message:t});for(let e of["CRON_SECRET","WEBHOOK_SECRET"]){let t=r[e];t&&t.length<32&&n.addIssue({code:s.z.ZodIssueCode.custom,path:[e],message:`${e} must be at least 32 characters in production.`})}l(t,i=!!(e.GOOGLE_CLIENT_ID||e.GOOGLE_CLIENT_SECRET),"GOOGLE_CLIENT_ID",e.GOOGLE_CLIENT_ID,"GOOGLE_CLIENT_ID is required when Google OAuth is configured (set GOOGLE_CLIENT_SECRET too)."),l(t,i,"GOOGLE_CLIENT_SECRET",e.GOOGLE_CLIENT_SECRET,"GOOGLE_CLIENT_SECRET is required when Google OAuth is configured (set GOOGLE_CLIENT_ID too)."),l(t,a=!!(e.GOOGLE_APPLICATION_CREDENTIAL_EMAIL||e.GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY),"GOOGLE_APPLICATION_CREDENTIAL_EMAIL",e.GOOGLE_APPLICATION_CREDENTIAL_EMAIL,"GOOGLE_APPLICATION_CREDENTIAL_EMAIL is required when a Google service-account key is configured."),l(t,a,"GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY",e.GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY,"GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY is required when a Google service-account key is configured."),l(t,o=!!e.AGENTMAIL_INBOX_ID,"AGENTMAIL_API_KEY",e.AGENTMAIL_API_KEY,"AGENTMAIL_API_KEY is required when AgentMail is enabled (AGENTMAIL_INBOX_ID set)."),l(t,o,"AGENTMAIL_WEBHOOK_SECRET",e.AGENTMAIL_WEBHOOK_SECRET,"AGENTMAIL_WEBHOOK_SECRET is required when AgentMail is enabled (AGENTMAIL_INBOX_ID set)."),l(t,u=!!(e.UPSTASH_REDIS_REST_URL||e.UPSTASH_REDIS_REST_TOKEN),"UPSTASH_REDIS_REST_URL",e.UPSTASH_REDIS_REST_URL,"UPSTASH_REDIS_REST_URL is required when UPSTASH_REDIS_REST_TOKEN is set (distributed rate limiter)."),l(t,u,"UPSTASH_REDIS_REST_TOKEN",e.UPSTASH_REDIS_REST_TOKEN,"UPSTASH_REDIS_REST_TOKEN is required when UPSTASH_REDIS_REST_URL is set (distributed rate limiter)."),l(t,d=!!(e.MCP_OAUTH_ISSUER||e.MCP_RESOURCE_URI||e.MCP_OAUTH_TOKEN_PEPPER||e.MCP_OAUTH_CONSENT_VERSION),"MCP_OAUTH_ISSUER",e.MCP_OAUTH_ISSUER,"MCP_OAUTH_ISSUER is required when the DAO MCP OAuth product is configured."),l(t,d,"MCP_RESOURCE_URI",e.MCP_RESOURCE_URI,"MCP_RESOURCE_URI is required when the DAO MCP OAuth product is configured."),l(t,d,"MCP_OAUTH_TOKEN_PEPPER",e.MCP_OAUTH_TOKEN_PEPPER,"MCP_OAUTH_TOKEN_PEPPER is required when the DAO MCP OAuth product is configured."),l(t,d,"MCP_OAUTH_CONSENT_VERSION",e.MCP_OAUTH_CONSENT_VERSION,"MCP_OAUTH_CONSENT_VERSION is required when the DAO MCP OAuth product is configured.")}});let d=(n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype),Symbol.toStringTag).get,e=>n.call(e));function f(e){return"Uint8Array"===d(e)}function h(e){return"object"==typeof e&&null!=e&&Symbol.toStringTag in e&&("ArrayBuffer"===e[Symbol.toStringTag]||"SharedArrayBuffer"===e[Symbol.toStringTag])}function p(e){return e instanceof RegExp||"[object RegExp]"===Object.prototype.toString.call(e)}function m(e){return"object"==typeof e&&null!=e&&Symbol.toStringTag in e&&"Map"===e[Symbol.toStringTag]}function g(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function b(e,t){return JSON.stringify(e,(e,t)=>"bigint"==typeof t?{$numberLong:`${t}`}:m(t)?Object.fromEntries(t):t)}let y=Symbol.for("@@mdb.bson.version"),_=0x8000000000000000-1;Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});
136class w extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(e,t){super(e,t)}static isBSONError(e){return null!=e&&"object"==typeof e&&"bsonError"in e&&!0===e.bsonError&&"name"in e&&"message"in e&&"stack"in e}}class v extends w{get name(){return"BSONVersionError"}constructor(){super("Unsupported BSON version, bson types must be from bson 6.x.x")}}class E extends w{get name(){return"BSONRuntimeError"}constructor(e){super(e)}}class x extends w{get name(){return"BSONOffsetError"}constructor(e,t,r){super(`${e}. offset: ${t}`,r),this.offset=t}}function O(e,n,i,a){if(a){t??=new TextDecoder("utf8",{fatal:!0});try{return t.decode(e.subarray(n,i))}catch(e){throw new w("Invalid UTF-8 string in BSON document",{cause:e})}}return(r??=new TextDecoder("utf8",{fatal:!1})).decode(e.subarray(n,i))}function S(e,t,r){if(0===e.length)return"";let n=r-t;if(0===n)return"";if(n>20)return null;if(1===n&&e[t]<128)return String.fromCharCode(e[t]);if(2===n&&e[t]<128&&e[t+1]<128)return String.fromCharCode(e[t])+String.fromCharCode(e[t+1]);if(3===n&&e[t]<128&&e[t+1]<128&&e[t+2]<128)return String.fromCharCode(e[t])+String.fromCharCode(e[t+1])+String.fromCharCode(e[t+2]);let i=[];for(let n=t;n<r;n++){let t=e[n];if(t>127)return null;i.push(t)}return String.fromCharCode(...i)}let R={toLocalBufferType(e){if(a.Buffer.isBuffer(e))return e;if(ArrayBuffer.isView(e))return a.Buffer.from(e.buffer,e.byteOffset,e.byteLength);let t=e?.[Symbol.toStringTag]??Object.prototype.toString.call(e);if("ArrayBuffer"===t||"SharedArrayBuffer"===t||"[object ArrayBuffer]"===t||"[object SharedArrayBuffer]"===t)return a.Buffer.from(e);throw new w("Cannot create Buffer from the passed potentialBuffer.")},allocate:e=>a.Buffer.alloc(e),allocateUnsafe:e=>a.Buffer.allocUnsafe(e),equals:(e,t)=>R.toLocalBufferType(e).equals(t),fromNumberArray:e=>a.Buffer.from(e),fromBase64:e=>a.Buffer.from(e,"base64"),toBase64:e=>R.toLocalBufferType(e).toString("base64"),fromISO88591:e=>a.Buffer.from(e,"binary"),toISO88591:e=>R.toLocalBufferType(e).toString("binary"),fromHex:e=>a.Buffer.from(e,"hex"),toHex:e=>R.toLocalBufferType(e).toString("hex"),toUTF8(e,t,r,n){let i=r-t<=20?S(e,t,r):null;if(null!=i)return i;let a=R.toLocalBufferType(e).toString("utf8",t,r);if(n){for(let n=0;n<a.length;n++)if(65533===a.charCodeAt(n)){O(e,t,r,!0);break}}return a},utf8ByteLength:e=>a.Buffer.byteLength(e,"utf8"),encodeUTF8Into(e,t,r){let n=function(e,t,r){if(0===t.length)return 0;if(t.length>25||e.length-r<t.length)return null;for(let n=0,i=r;n<t.length;n++,i++){let r=t.charCodeAt(n);if(r>127)return null;e[i]=r}return t.length}(e,t,r);return null!=n?n:R.toLocalBufferType(e).write(t,r,void 0,"utf8")},randomBytes:function(e){return R.fromNumberArray(Array.from({length:e},()=>Math.floor(256*Math.random())))},swap32:e=>R.toLocalBufferType(e).swap32()};function N(e){if(e<0)throw RangeError(`The argument 'byteLength' is invalid. Received ${e}`);return A.fromNumberArray(Array.from({length:e},()=>Math.floor(256*Math.random())))}let T=(()=>{let{crypto:e}=globalThis;if(null!=e&&"function"==typeof e.getRandomValues)return t=>e.getRandomValues(A.allocate(t));if(function(){let{navigator:e}=globalThis;return"object"==typeof e&&"ReactNative"===e.product}()){let{console:e}=globalThis;e?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return N})(),k=/(\d|[a-f])/i,A={toLocalBufferType(e){let t=e?.[Symbol.toStringTag]??Object.prototype.toString.call(e);if("Uint8Array"===t)return e;if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));if("ArrayBuffer"===t||"SharedArrayBuffer"===t||"[object ArrayBuffer]"===t||"[object SharedArrayBuffer]"===t)return new Uint8Array(e);throw new w("Cannot make a Uint8Array from passed potentialBuffer.")},allocate(e){if("number"!=typeof e)throw TypeError(`The "size" argument must be of type number. Received ${String(e)}`);return new Uint8Array(e)},allocateUnsafe:e=>A.allocate(e),equals(e,t){if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},fromNumberArray:e=>Uint8Array.from(e),fromBase64:e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),toBase64:e=>btoa(A.toISO88591(e)),fromISO88591:e=>Uint8Array.from(e,e=>255&e.charCodeAt(0)),toISO88591:e=>Array.from(Uint16Array.from(e),e=>String.fromCharCode(e)).join(""),fromHex(e){let t=e.length%2==0?e:e.slice(0,e.length-1),r=[];for(let e=0;e<t.length;e+=2){let n=t[e],i=t[e+1];if(!k.test(n)||!k.test(i))break;let a=Number.parseInt(`${n}${i}`,16);r.push(a)}return Uint8Array.from(r)},toHex:e=>Array.from(e,e=>e.toString(16).padStart(2,"0")).join(""),toUTF8(e,t,r,n){let i=r-t<=20?S(e,t,r):null;return null!=i?i:O(e,t,r,n)},utf8ByteLength:e=>new TextEncoder().encode(e).byteLength,encodeUTF8Into(e,t,r){let n=new TextEncoder().encode(t);return e.set(n,r),n.byteLength},randomBytes:T,swap32(e){if(e.length%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e.length;t+=4){let r=e[t],n=e[t+1],i=e[t+2],a=e[t+3];e[t]=a,e[t+1]=i,e[t+2]=n,e[t+3]=r}return e}},I="function"==typeof a.Buffer&&a.Buffer.prototype?._isBuffer!==!0?R:A;class P{get[y](){return 6}[Symbol.for("nodejs.util.inspect.custom")](e,t,r){return this.inspect(e,t,r)}}let C=new Float64Array(1),j=new Uint8Array(C.buffer,0,8);C[0]=-1;let D=0===j[7],L={isBigEndian:D,getNonnegativeInt32LE(e,t){if(e[t+3]>
136127)throw RangeError(`Size cannot be negative at offset: ${t}`);return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24},getInt32LE:(e,t)=>e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24,getUint32LE:(e,t)=>e[t]+256*e[t+1]+65536*e[t+2]+0x1000000*e[t+3],getUint32BE:(e,t)=>e[t+3]+256*e[t+2]+65536*e[t+1]+0x1000000*e[t],getBigInt64LE(e,t){let r=BigInt(e[t+4]+256*e[t+5]+65536*e[t+6]+(e[t+7]<<24)),n=BigInt(e[t]+256*e[t+1]+65536*e[t+2]+0x1000000*e[t+3]);return(r<<BigInt(32))+n},getFloat64LE:D?(e,t)=>(j[7]=e[t],j[6]=e[t+1],j[5]=e[t+2],j[4]=e[t+3],j[3]=e[t+4],j[2]=e[t+5],j[1]=e[t+6],j[0]=e[t+7],C[0]):(e,t)=>(j[0]=e[t],j[1]=e[t+1],j[2]=e[t+2],j[3]=e[t+3],j[4]=e[t+4],j[5]=e[t+5],j[6]=e[t+6],j[7]=e[t+7],C[0]),setInt32BE:(e,t,r)=>(e[t+3]=r,r>>>=8,e[t+2]=r,r>>>=8,e[t+1]=r,r>>>=8,e[t]=r,4),setInt32LE:(e,t,r)=>(e[t]=r,r>>>=8,e[t+1]=r,r>>>=8,e[t+2]=r,r>>>=8,e[t+3]=r,4),setBigInt64LE(e,t,r){let n=BigInt(0xffffffff),i=Number(r&n);e[t]=i,i>>=8,e[t+1]=i,i>>=8,e[t+2]=i,i>>=8,e[t+3]=i;let a=Number(r>>BigInt(32)&n);return e[t+4]=a,a>>=8,e[t+5]=a,a>>=8,e[t+6]=a,a>>=8,e[t+7]=a,8},setFloat64LE:D?(e,t,r)=>(C[0]=r,e[t]=j[7],e[t+1]=j[6],e[t+2]=j[5],e[t+3]=j[4],e[t+4]=j[3],e[t+5]=j[2],e[t+6]=j[1],e[t+7]=j[0],8):(e,t,r)=>(C[0]=r,e[t]=j[0],e[t+1]=j[1],e[t+2]=j[2],e[t+3]=j[3],e[t+4]=j[4],e[t+5]=j[5],e[t+6]=j[6],e[t+7]=j[7],8)};class $ extends P{get _bsontype(){return"Binary"}constructor(e,t){if(super(),null!=e&&"string"==typeof e&&!ArrayBuffer.isView(e)&&!h(e)&&!Array.isArray(e))throw new w("Binary can only be constructed from Uint8Array or number[]");this.sub_type=t??$.BSON_BINARY_SUBTYPE_DEFAULT,null==e?(this.buffer=I.allocate($.BUFFER_SIZE),this.position=0):(this.buffer=Array.isArray(e)?I.fromNumberArray(e):I.toLocalBufferType(e),this.position=this.buffer.byteLength)}put(e){let t;if("string"==typeof e&&1!==e.length)throw new w("only accepts single character String");if("number"!=typeof e&&1!==e.length)throw new w("only accepts single character Uint8Array or Array");if((t="string"==typeof e?e.charCodeAt(0):"number"==typeof e?e:e[0])<0||t>255)throw new w("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=t;else{let e=I.allocate($.BUFFER_SIZE+this.buffer.length);e.set(this.buffer,0),this.buffer=e,this.buffer[this.position++]=t}}write(e,t){if(t="number"==typeof t?t:this.position,this.buffer.byteLength<t+e.length){let t=I.allocate(this.buffer.byteLength+e.length);t.set(this.buffer,0),this.buffer=t}if(ArrayBuffer.isView(e))this.buffer.set(I.toLocalBufferType(e),t),this.position=t+e.byteLength>this.position?t+e.length:this.position;else if("string"==typeof e)throw new w("input cannot be string")}read(e,t){let r=e+(t=t&&t>0?t:this.position);return this.buffer.subarray(e,r>this.position?this.position:r)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return I.toBase64(this.buffer.subarray(0,this.position))}toString(e){return"hex"===e?I.toHex(this.buffer.subarray(0,this.position)):"base64"===e?I.toBase64(this.buffer.subarray(0,this.position)):I.toUTF8(this.buffer,0,this.position,!1)}toExtendedJSON(e){e=e||{},this.sub_type===$.SUBTYPE_VECTOR&&B(this);let t=I.toBase64(this.buffer),r=Number(this.sub_type).toString(16);return e.legacy?{$binary:t,$type:1===r.length?"0"+r:r}:{$binary:{base64:t,subType:1===r.length?"0"+r:r}}}toUUID(){if(this.sub_type===$.SUBTYPE_UUID)return new Z(this.buffer.subarray(0,this.position));throw new w(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${$.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(e,t){return new $(I.fromHex(e),t)}static createFromBase64(e,t){return new $(I.fromBase64(e),t)}static fromExtendedJSON(e,t){let r,n;if(t=t||{},"$binary"in e?t.legacy&&"string"==typeof e.$binary&&"$type"in e?(n=e.$type?parseInt(e.$type,16):0,r=I.fromBase64(e.$binary)):"string"!=typeof e.$binary&&(n=e.$binary.subType?parseInt(e.$binary.subType,16):0,r=I.fromBase64(e.$binary.base64)):"$uuid"in e&&(n=4,r=Z.bytesFromString(e.$uuid)),!r)throw new w(`Unexpected Binary Extended JSON format ${JSON.stringify(e)}`);return 4===n?new Z(r):new $(r,n)}inspect(e,t,r){r??=b;let n=I.toBase64(this.buffer.subarray(0,this.position)),i=r(n,t),a=r(this.sub_type,t);return`Binary.createFromBase64(${i}, ${a})`}toInt8Array(){if(this.sub_type!==$.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==$.VECTOR_TYPE.Int8)throw new w("Binary datatype field is not Int8");return B(this),new Int8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toFloat32Array(){if(this.sub_type!==$.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==$.VECTOR_TYPE.Float32)throw new w("Binary datatype field is not Float32");B(this);let e=new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position));return L.isBigEndian&&I.swap32(e),new Float32Array(e.buffer)}toPackedBits(){if(this.sub_type!==$.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==$.VECTOR_TYPE.PackedBit)throw new w("Binary datatype field is not packed bit");return B(this),new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toBits(){if(this.sub_type!==$.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==$.VECTOR_TYPE.PackedBit)throw new w("Binary datatype field is not packed bit");B(this);let e=new Int8Array(8*(this.length()-2)-this.buffer[1]);for(let t=0;t<e.length;t++){let r=t/8|0,n=this.buffer[r+2]>>7-t%8&1;e[t]=n}return e}static fromInt8Array(e){let t=I.allocate(e.byteLength+2);t[0]=$.VECTOR_TYPE.Int8,t[1]=0;let r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.set(r,2);let n=new this(t,this.SUBTYPE_VECTOR);return B(n),n}static fromFloat32Array(e){let t=I.allocate(e.byteLength+2);t[0]=$.VECTOR_TYPE.Float32,t[1]=0;let r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.set(r,2),L.isBigEndian&&I.swap32(new Uint8Array(t.buffer,2));let n=new this(t,this.SUBTYPE_VECTOR);return B(n),n}static fromPackedBits(e,t=0){let r=I.allocate(e.byteLength+2);r[0]=$.VECTOR_TYPE.PackedBit,r[1]=t,r.set(e,2);let n=new this(r,this.SUBTYPE_VECTOR);return B(n),n}static fromBits(e){let t=new Uint8Array((e.length+7>>>3)+2);t[0]=$.VECTOR_TYPE.PackedBit;let r=e.length%8;t[1]=0===r?0:8-r;for(let r=0;r<e.length;r++){let n=r>>>3,i=e[r];if(0!==i&&1!==i)throw new w(`Invalid bit value at ${r}: must be 0 or 1, found ${e[r]}`);if(0===i)continue;let a=7-r%8;t[n+2]|=i<<a}return new this(t,$.SUBTYPE_VECTOR)}}function B(e){if(e.sub_type!==$.SUBTYPE_VECTOR)return;let t=e.position,r=e.buffer[0],n=e.buffer[1];if((r===$.VECTOR_TYPE.Float32||r===$.VECTOR_TYPE.Int8)&&0!==n)throw new w("Invalid Vector: padding must be zero for int8 and float32 vectors");if(r===$.VECTOR_TYPE.Float32&&0!==t&&t-2!=0&&(t-2)%4!=0)throw new w("Invalid Vector: Float32 vector must contain a multiple of 4 bytes");if(r===$.VECTOR_TYPE.PackedBit&&0!==n&&2===t)throw new w("Invalid Vector: padding must be zero for packed bit vectors that are empty");if(r===$.VECTOR_TYPE.PackedBit&&n>7)throw new w(`Invalid Vector: padding must be a value between 0 and 7. found: ${n}`)}$.BSON_BINARY_SUBTYPE_DEFAULT=0,$.BUFFER_SIZE=256,$.SUBTYPE_DEFAULT=0,$.SUBTYPE_FUNCTION=1,$.SUBTYPE_BYTE_ARRAY=2,$.SUBTYPE_UUID_OLD=3,$.SUBTYPE_UUID=4,$.SUBTYPE_MD5=5,$.SUBTYPE_ENCRYPTED=6,$.SUBTYPE_COLUMN=7,$.SUBTYPE_SENSITIVE=8,$.SUBTYPE_VECTOR=9,$.SUBTYPE_USER_DEFINED=128,$.VECTOR_TYPE=Object.freeze({Int8:3,Float32:39,PackedBit:16});let U=/^[0-9A-F]{32}$/i,M=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class Z extends ${constructor(e){let t;if(null==e)t=Z.generate();else if(e instanceof Z)t=I.toLocalBufferType(new Uint8Array(e.buffer));else if(ArrayBuffer.isView(e)&&16===e.byteLength)t=I.toLocalBufferType(e);else if("string"==typeof e)t=Z.bytesFromString(e);else throw new w("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(t,4)}get id(){return this.buffer}set id(e){this.buffer=e}toHexString(e=!0){return e?[I.toHex(this.buffer.subarray(0,4)),I.toHex(this.buffer.subarray(4,6)),I.toHex(this.buffer.subarray(6,8)),I.toHex(this.buffer.subarray(8,10)),I.toHex(this.buffer.subarray(10,16))].join("-"):I.toHex(this.buffer)}
136toString(e){return"hex"===e?I.toHex(this.id):"base64"===e?I.toBase64(this.id):this.toHexString()}toJSON(){return this.toHexString()}equals(e){if(!e)return!1;if(e instanceof Z)return I.equals(e.id,this.id);try{return I.equals(new Z(e).id,this.id)}catch{return!1}}toBinary(){return new $(this.id,$.SUBTYPE_UUID)}static generate(){let e=I.randomBytes(16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}static isValid(e){return!!e&&("string"==typeof e?Z.isValidUUIDString(e):f(e)?16===e.byteLength:"Binary"===e._bsontype&&e.sub_type===this.SUBTYPE_UUID&&16===e.buffer.byteLength)}static createFromHexString(e){let t=Z.bytesFromString(e);return new Z(t)}static createFromBase64(e){return new Z(I.fromBase64(e))}static bytesFromString(e){if(!Z.isValidUUIDString(e))throw new w("UUID string representation must be 32 hex digits or canonical hyphenated representation");return I.fromHex(e.replace(/-/g,""))}static isValidUUIDString(e){return U.test(e)||M.test(e)}inspect(e,t,r){return r??=b,`new UUID(${r(this.toHexString(),t)})`}}class z extends P{get _bsontype(){return"Code"}constructor(e,t){super(),this.code=e.toString(),this.scope=t??null}toJSON(){return null!=this.scope?{code:this.code,scope:this.scope}:{code:this.code}}toExtendedJSON(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}}static fromExtendedJSON(e){return new z(e.$code,e.$scope)}inspect(e,t,r){let n=(r??=b)(this.code,t),i=n.includes("\n");null!=this.scope&&(n+=`,${i?"\n":" "}${r(this.scope,t)}`);let a=i&&null===this.scope;return`new Code(${i?"\n":""}${n}${a?"\n":""})`}}function V(e){return null!=e&&"object"==typeof e&&"$id"in e&&null!=e.$id&&"$ref"in e&&"string"==typeof e.$ref&&(!("$db"in e)||"$db"in e&&"string"==typeof e.$db)}class F extends P{get _bsontype(){return"DBRef"}constructor(e,t,r,n){super();const i=e.split(".");2===i.length&&(r=i.shift(),e=i.shift()),this.collection=e,this.oid=t,this.db=r,this.fields=n||{}}get namespace(){return this.collection}set namespace(e){this.collection=e}toJSON(){let e=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return null!=this.db&&(e.$db=this.db),e}toExtendedJSON(e){e=e||{};let t={$ref:this.collection,$id:this.oid};return e.legacy?t:(this.db&&(t.$db=this.db),t=Object.assign(t,this.fields))}static fromExtendedJSON(e){let t=Object.assign({},e);return delete t.$ref,delete t.$id,delete t.$db,new F(e.$ref,e.$id,e.$db,t)}inspect(e,t,r){let n=[(r??=b)(this.namespace,t),r(this.oid,t),...this.db?[r(this.db,t)]:[],...Object.keys(this.fields).length>0?[r(this.fields,t)]:[]];return n[1]=r===b?`new ObjectId(${n[1]})`:n[1],`new DBRef(${n.join(", ")})`}}
136function q(e){if(""===e)return e;let t=0,r="-"===e[0],n="+"===e[t];(n||r)&&(t+=1);let i=!1;for(;t<e.length&&"0"===e[t];++t)i=!0;return i?`${r?"-":""}${e.length===t?"0":e.slice(t)}`:n?e.slice(1):e}try{i=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}let H={},G={},K=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class Y extends P{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(e=0,t,r){super();const n="boolean"==typeof t?t:!!r,i="string"==typeof e?Y.fromString(e,n):"bigint"==typeof e?Y.fromBigInt(e,n):{low:0|e,high:0|("number"==typeof t?t:0),unsigned:n};this.low=i.low,this.high=i.high,this.unsigned=i.unsigned}static fromBits(e,t,r){return new Y(e,t,r)}static fromInt(e,t){let r,n,i;if(t)return(e>>>=0,(i=0<=e&&e<256)&&(n=G[e]))?n:(r=Y.fromBits(e,(0|e)<0?-1:0,!0),i&&(G[e]=r),r);return(e|=0,(i=-128<=e&&e<128)&&(n=H[e]))?n:(r=Y.fromBits(e,e<0?-1:0,!1),i&&(H[e]=r),r)}static fromNumber(e,t){if(isNaN(e))return t?Y.UZERO:Y.ZERO;if(t){if(e<0)return Y.UZERO;if(e>=0xffffffffffffffff)return Y.MAX_UNSIGNED_VALUE}else{if(e<=-0x8000000000000000)return Y.MIN_VALUE;if(e+1>=0x8000000000000000)return Y.MAX_VALUE}return e<0?Y.fromNumber(-e,t).neg():Y.fromBits(e%0x100000000|0,e/0x100000000|0,t)}static fromBigInt(e,t){let r=BigInt(0xffffffff),n=BigInt(32);return new Y(Number(e&r),Number(e>>n&r),t)}static _fromString(e,t,r){let n;if(0===e.length)throw new w("empty string");if(r<2||36<r)throw new w("radix");if((n=e.indexOf("-"))>0)throw new w("interior hyphen");if(0===n)return Y._fromString(e.substring(1),t,r).neg();let i=Y.fromNumber(Math.pow(r,8)),a=Y.ZERO;for(let t=0;t<e.length;t+=8){let n=Math.min(8,e.length-t),s=parseInt(e.substring(t,t+n),r);if(n<8){let e=Y.fromNumber(Math.pow(r,n));a=a.mul(e).add(Y.fromNumber(s))}else a=(a=a.mul(i)).add(Y.fromNumber(s))}return a.unsigned=t,a}static fromStringStrict(e,t,r){var n;let i,a=!1;if("number"==typeof t?(r=t,t=!1):a=!!t,r??=10,e.trim()!==e)throw new w(`Input: '${e}' contains leading and/or trailing whitespace`);if(n=(n=r)??10,i="0123456789abcdefghijklmnopqrstuvwxyz".slice(0,n),RegExp(`[^-+${i}]`,"i").test(e)||!e)throw new w(`Input: '${e}' contains invalid characters for radix: ${r}`);let s=q(e),o=Y._fromString(s,a,r);if(o.toString(r).toLowerCase()!==s.toLowerCase())throw new w(`Input: ${e} is not representable as ${o.unsigned?"an unsigned":"a signed"} 64-bit Long ${null!=r?`with radix: ${r}`:""}`);return o}static fromString(e,t,r){let n=!1;return("number"==typeof t?(r=t,t=!1):n=!!t,r??=10,"NaN"===e&&r<24||("Infinity"===e||"+Infinity"===e||"-Infinity"===e)&&r<35)?Y.ZERO:Y._fromString(e,n,r)}static fromBytes(e,t,r){return r?Y.fromBytesLE(e,t):Y.fromBytesBE(e,t)}static fromBytesLE(e,t){return new Y(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}static fromBytesBE(e,t){return new Y(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}static isLong(e){return null!=e&&"object"==typeof e&&"__isLong__"in e&&!0===e.__isLong__}static fromValue(e,t){return"number"==typeof e?Y.fromNumber(e,t):"string"==typeof e?Y.fromString(e,t):Y.fromBits(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}add(e){Y.isLong(e)||(e=Y.fromValue(e));let t=this.high>>>16,r=65535&this.high,n=this.low>>>16,i=65535&this.low,a=e.high>>>16,s=65535&e.high,o=e.low>>>16,u=65535&e.low,l=0,c=0,d,f;return d=0+((f=0+(i+u))>>>16),f&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=r+s,l+=c>>>16,c&=65535,l+=t+a,l&=65535,Y.fromBits(d<<16|f,l<<16|c,this.unsigned)}and(e){return Y.isLong(e)||(e=Y.fromValue(e)),Y.fromBits(this.low&e.low,this.high&e.high,this.unsigned)}compare(e){if(Y.isLong(e)||(e=Y.fromValue(e)),this.eq(e))return 0;let t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1}comp(e){return this.compare(e)}divide(e){let t,r,n;if(Y.isLong(e)||(e=Y.fromValue(e)),e.isZero())throw new w("division by zero");if(i){if(!this.unsigned&&-0x80000000===this.high&&-1===e.low&&-1===e.high)return this;let t=(this.unsigned?i.div_u:i.div_s)(this.low,this.high,e.low,e.high);return Y.fromBits(t,i.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Y.UZERO:Y.ZERO;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return Y.UZERO;if(e.gt(this.shru(1)))return Y.UONE;n=Y.UZERO}else{if(this.eq(Y.MIN_VALUE))if(e.eq(Y.ONE)||e.eq(Y.NEG_ONE))return Y.MIN_VALUE;else return e.eq(Y.MIN_VALUE)?Y.ONE:(t=this.shr(1).div(e).shl(1)).eq(Y.ZERO)?e.isNegative()?Y.ONE:Y.NEG_ONE:(r=this.sub(e.mul(t)),n=t.add(r.div(e)));if(e.eq(Y.MIN_VALUE))return this.unsigned?Y.UZERO:Y.ZERO;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=Y.ZERO}for(r=this;r.gte(e);){let i=Math.ceil(Math.log(t=Math.max(1,Math.floor(r.toNumber()/e.toNumber())))/Math.LN2),a=i<=48?1:Math.pow(2,i-48),s=Y.fromNumber(t),o=s.mul(e);for(;o.isNegative()||o.gt(r);)t-=a,o=(s=Y.fromNumber(t,this.unsigned)).mul(e);s.isZero()&&(s=Y.ONE),n=n.add(s),r=r.sub(o)}return n}div(e){return this.divide(e)}equals(e){return Y.isLong(e)||(e=Y.fromValue(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low}eq(e){return this.equals(e)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){let e;if(this.isNegative())return this.eq(Y.MIN_VALUE)?64:this.neg().getNumBitsAbs();let t=0!==this.high?this.high:this.low;for(e=31;e>0&&(t&1<<e)==0;e--);return 0!==this.high?e+33:e+1}greaterThan(e){return this.comp(e)>0}gt(e){return this.greaterThan(e)}greaterThanOrEqual(e){return this.comp(e)>=0}gte(e){return this.greaterThanOrEqual(e)}ge(e){return this.greaterThanOrEqual(e)}isEven(){return(1&this.low)==0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(1&this.low)==1}isPositive(){return this.unsigned||this.high>=0}isZero(){return 0===this.high&&0===this.low}lessThan(e){return 0>this.comp(e)}lt(e){return this.lessThan(e)}lessThanOrEqual(e){return 0>=this.comp(e)}lte(e){return this.lessThanOrEqual(e)}modulo(e){if(Y.isLong(e)||(e=Y.fromValue(e)),i){let t=(this.unsigned?i.rem_u:i.rem_s)(this.low,this.high,e.low,e.high);return Y.fromBits(t,i.get_high(),this.unsigned)}return this.sub(this.div(e).mul(e))}mod(e){return this.modulo(e)}rem(e){return this.modulo(e)}multiply(e){if(this.isZero())return Y.ZERO;if(Y.isLong(e)||(e=Y.fromValue(e)),i){let t=i.mul(this.low,this.high,e.low,e.high);return Y.fromBits(t,i.get_high(),this.unsigned)}if(e.isZero())return Y.ZERO;if(this.eq(Y.MIN_VALUE))return e.isOdd()?Y.MIN_VALUE:Y.ZERO;if(e.eq(Y.MIN_VALUE))return this.isOdd()?Y.MIN_VALUE:Y.ZERO;if(this.isNegative())if(e.isNegative())return this.neg().mul(e.neg());else return this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(Y.TWO_PWR_24)&&e.lt(Y.TWO_PWR_24))return Y.fromNumber(this.toNumber()*e.toNumber(),this.unsigned);let t=this.high>>>16,r=65535&this.high,n=this.low>>>16,a=65535&this.low,s=e.high>>>16,o=65535&e.high,u=e.low>>>16,l=65535&e.low,c=0,d=0,f,h;return f=0+((h=0+a*l)>>>16),h&=65535,f+=n*l,d+=f>>
136>16,f&=65535,f+=a*u,d+=f>>>16,f&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=n*u,c+=d>>>16,d&=65535,d+=a*o,c+=d>>>16,d&=65535,c+=t*l+r*u+n*o+a*s,c&=65535,Y.fromBits(f<<16|h,c<<16|d,this.unsigned)}mul(e){return this.multiply(e)}negate(){return!this.unsigned&&this.eq(Y.MIN_VALUE)?Y.MIN_VALUE:this.not().add(Y.ONE)}neg(){return this.negate()}not(){return Y.fromBits(~this.low,~this.high,this.unsigned)}notEquals(e){return!this.equals(e)}neq(e){return this.notEquals(e)}ne(e){return this.notEquals(e)}or(e){return Y.isLong(e)||(e=Y.fromValue(e)),Y.fromBits(this.low|e.low,this.high|e.high,this.unsigned)}shiftLeft(e){return(Y.isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?Y.fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):Y.fromBits(0,this.low<<e-32,this.unsigned)}shl(e){return this.shiftLeft(e)}shiftRight(e){return(Y.isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?Y.fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):Y.fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)}shr(e){return this.shiftRight(e)}shiftRightUnsigned(e){if(Y.isLong(e)&&(e=e.toInt()),0==(e&=63))return this;{let t=this.high;if(e<32){let r=this.low;return Y.fromBits(r>>>e|t<<32-e,t>>>e,this.unsigned)}return 32===e?Y.fromBits(t,0,this.unsigned):Y.fromBits(t>>>e-32,0,this.unsigned)}}shr_u(e){return this.shiftRightUnsigned(e)}shru(e){return this.shiftRightUnsigned(e)}subtract(e){return Y.isLong(e)||(e=Y.fromValue(e)),this.add(e.neg())}sub(e){return this.subtract(e)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){return this.unsigned?(this.high>>>0)*0x100000000+(this.low>>>0):0x100000000*this.high+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(e){return e?this.toBytesLE():this.toBytesBE()}toBytesLE(){let e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]}toBytesBE(){let e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]}toSigned(){return this.unsigned?Y.fromBits(this.low,this.high,!1):this}toString(e){if((e=e||10)<2||36<e)throw new w("radix");if(this.isZero())return"0";if(this.isNegative())if(!this.eq(Y.MIN_VALUE))return"-"+this.neg().toString(e);else{let t=Y.fromNumber(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}let t=Y.fromNumber(Math.pow(e,6),this.unsigned),r=this,n="";for(;;){let i=r.div(t),a=(r.sub(i.mul(t)).toInt()>>>0).toString(e);if((r=i).isZero())return a+n;for(;a.length<6;)a="0"+a;n=""+a+n}}toUnsigned(){return this.unsigned?this:Y.fromBits(this.low,this.high,!0)}xor(e){return Y.isLong(e)||(e=Y.fromValue(e)),Y.fromBits(this.low^e.low,this.high^e.high,this.unsigned)}eqz(){return this.isZero()}le(e){return this.lessThanOrEqual(e)}toExtendedJSON(e){return e&&e.relaxed?this.toNumber():{$numberLong:this.toString()}}static fromExtendedJSON(e,t){let{useBigInt64:r=!1,relaxed:n=!0}={...t};if(e.$numberLong.length>20)throw new w("$numberLong string is too long");if(!K.test(e.$numberLong))throw new w(`$numberLong string "${e.$numberLong}" is in an invalid format`);if(r)return BigInt.asIntN(64,BigInt(e.$numberLong));let i=Y.fromString(e.$numberLong);return n?i.toNumber():i}inspect(e,t,r){let n=(r??=b)(this.toString(),t),i=this.unsigned?`, ${r(this.unsigned,t)}`:"";return`new Long(${n}${i})`}}Y.TWO_PWR_24=Y.fromInt(0x1000000),Y.MAX_UNSIGNED_VALUE=Y.fromBits(-1,-1,!0),Y.ZERO=Y.fromInt(0),Y.UZERO=Y.fromInt(0,!0),Y.ONE=Y.fromInt(1),Y.UONE=Y.fromInt(1,!0),Y.NEG_ONE=Y.fromInt(-1),Y.MAX_VALUE=Y.fromBits(-1,0x7fffffff,!1),Y.MIN_VALUE=Y.fromBits(0,-0x80000000,!1);let W=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,X=/^(\+|-)?(Infinity|inf)$/i,J=/^(\+|-)?NaN$/i,Q=I.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),ee=I.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),et=I.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),er=/^([-+])?(\d+)?$/;function en(e){return!isNaN(parseInt(e,10))}function ei(e,t){throw new w(`"${e}" is not a valid Decimal128 string - ${t}`)}class ea extends P{get _bsontype(){return"Decimal128"}constructor(e){if(super(),"string"==typeof e)this.bytes=ea.fromString(e).bytes;else if(e instanceof Uint8Array||f(e)){if(16!==e.byteLength)throw new w("Decimal128 must take a Buffer of 16 bytes");this.bytes=e}else throw new w("Decimal128 must take a Buffer or string")}static fromString(e){return ea._fromString(e,{allowRounding:!1})}static fromStringWithRounding(e){return ea._fromString(e,{allowRounding:!0})}static _fromString(e,t){let r=!1,n=!1,i=!1,a=!1,s=0,o=0,u=0,l=0,c=0,d=[0],f=0,h=0,p=0,m=0,g=new Y(0,0),b=new Y(0,0),y=0,_=0;if(e.length>
136=7e3)throw new w(""+e+" not a valid Decimal128 string");let v=e.match(W),E=e.match(X),x=e.match(J);if(!v&&!E&&!x||0===e.length)throw new w(""+e+" not a valid Decimal128 string");if(v){let t=v[2],r=v[4],n=v[5],i=v[6];r&&void 0===i&&ei(e,"missing exponent power"),r&&void 0===t&&ei(e,"missing exponent base"),void 0===r&&(n||i)&&ei(e,"missing e before exponent")}if(("+"===e[_]||"-"===e[_])&&(n=!0,r="-"===e[_++]),!en(e[_])&&"."!==e[_]){if("i"===e[_]||"I"===e[_])return new ea(r?ee:et);else if("N"===e[_])return new ea(Q)}for(;en(e[_])||"."===e[_];){if("."===e[_]){i&&ei(e,"contains multiple periods"),i=!0,_+=1;continue}f<34&&("0"!==e[_]||a)&&(a||(c=o),a=!0,d[h++]=parseInt(e[_],10),f+=1),a&&(u+=1),i&&(l+=1),o+=1,_+=1}if(i&&!o)throw new w(""+e+" not a valid Decimal128 string");if("e"===e[_]||"E"===e[_]){let t=e.substr(++_).match(er);if(!t||!t[2])return new ea(Q);m=parseInt(t[0],10),_+=t[0].length}if(e[_])return new ea(Q);if(f){if(p=f-1,1!==(s=u))for(;"0"===e[c+s-1+Number(n)+Number(i)];)s-=1}else d[0]=0,u=1,f=1,s=0;for(m<=l&&l>m+16384?m=-6176:m-=l;m>6111;){if((p+=1)>=34){if(0===s){m=6111;break}ei(e,"overflow")}m-=1}if(t.allowRounding){for(;m<-6176||f<u;){if(0===p&&s<f){m=-6176,s=0;break}if(f<u?u-=1:p-=1,m<6111)m+=1;else{if(d.join("").match(/^0+$/)){m=6111;break}ei(e,"overflow")}}if(p+1<s){let t=o;i&&(c+=1,t+=1),n&&(c+=1,t+=1);let a=parseInt(e[c+p+1],10),s=0;if(a>=5&&(s=1,5===a)){s=+(d[p]%2==1);for(let r=c+p+2;r<t;r++)if(parseInt(e[r],10)){s=1;break}}if(s){let e=p;for(;e>=0;e--)if(++d[e]>9){if(d[e]=0,0===e)if(!(m<6111))return new ea(r?ee:et);else m+=1,d[e]=1}else break}}}else{for(;m<-6176||f<u;){if(0===p){if(0===s){m=-6176;break}ei(e,"exponent underflow")}f<u?("0"!==e[u-1+Number(n)+Number(i)]&&0!==s&&ei(e,"inexact rounding"),u-=1):(0!==d[p]&&ei(e,"inexact rounding"),p-=1),m<6111?m+=1:ei(e,"overflow")}p+1<s&&(i&&(c+=1),n&&(c+=1),0!==parseInt(e[c+p+1],10)&&ei(e,"inexact rounding"))}if(g=Y.fromNumber(0),b=Y.fromNumber(0),0===s)g=Y.fromNumber(0),b=Y.fromNumber(0);else if(p<17){let e=0;for(b=Y.fromNumber(d[e++]),g=new Y(0,0);e<=p;e++)b=(b=b.multiply(Y.fromNumber(10))).add(Y.fromNumber(d[e]))}else{let e=0;for(g=Y.fromNumber(d[e++]);e<=p-17;e++)g=(g=g.multiply(Y.fromNumber(10))).add(Y.fromNumber(d[e]));for(b=Y.fromNumber(d[e++]);e<=p;e++)b=(b=b.multiply(Y.fromNumber(10))).add(Y.fromNumber(d[e]))}let O=function(e,t){if(!e&&!t)return{high:Y.fromNumber(0),low:Y.fromNumber(0)};let r=e.shiftRightUnsigned(32),n=new Y(e.getLowBits(),0),i=t.shiftRightUnsigned(32),a=new Y(t.getLowBits(),0),s=r.multiply(i),o=r.multiply(a),u=n.multiply(i),l=n.multiply(a);return s=s.add(o.shiftRightUnsigned(32)),o=new Y(o.getLowBits(),0).add(u).add(l.shiftRightUnsigned(32)),{high:s=s.add(o.shiftRightUnsigned(32)),low:l=o.shiftLeft(32).add(new Y(l.getLowBits(),0))}}(g,Y.fromString("100000000000000000"));O.low=O.low.add(b),function(e,t){let r=e.high>>>0,n=t.high>>>0;if(r<n)return!0;if(r===n&&e.low>>>0<t.low>>>0)return!0;return!1}(O.low,b)&&(O.high=O.high.add(Y.fromNumber(1))),y=m+6176;let S={low:Y.fromNumber(0),high:Y.fromNumber(0)};O.high.shiftRightUnsigned(49).and(Y.fromNumber(1)).equals(Y.fromNumber(1))?(S.high=S.high.or(Y.fromNumber(3).shiftLeft(61)),S.high=S.high.or(Y.fromNumber(y).and(Y.fromNumber(16383).shiftLeft(47))),S.high=S.high.or(O.high.and(Y.fromNumber(0x7fffffffffff)))):(S.high=S.high.or(Y.fromNumber(16383&y).shiftLeft(49)),S.high=S.high.or(O.high.and(Y.fromNumber(0x1ffffffffffff)))),S.low=O.low,r&&(S.high=S.high.or(Y.fromString("9223372036854775808")));let R=I.allocateUnsafe(16);return _=0,R[_++]=255&S.low.low,R[_++]=S.low.low>>8&255,R[_++]=S.low.low>>16&255,R[_++]=S.low.low>>24&255,R[_++]=255&S.low.high,R[_++]=S.low.high>>8&255,R[_++]=S.low.high>>16&255,R[_++]=S.low.high>>24&255,R[_++]=255&S.high.low,R[_++]=S.high.low>>8&255,R[_++]=S.high.low>>16&255,R[_++]=S.high.low>>24&255,R[_++]=255&S.high.high,R[_++]=S.high.high>>8&255,R[_++]=S.high.high>>16&255,R[_++]=S.high.high>>24&255,new ea(R)}toString(){let e,t,r,n,i=0,a=Array(36);for(let e=0;e<a.length;e++)a[e]=0;let s=0,o=!1,u={parts:[0,0,0,0]},l=[];s=0;let c=this.bytes,d=c[s++]|c[s++]<<8|c[s++]<<16|c[s++]<<24,f=c[s++]|c[s++]<<8|c[s++]<<16|c[s++]<<24,h=c[s++]|c[s++]<<8|c[s++]<<16|c[s++]<<24,p=c[s++]|c[s++]<<8|c[s++]<<16|c[s++]<<24;s=0,({low:new Y(d,f),high:new Y(h,p)}).high.lessThan(Y.ZERO)&&l.push("-");let m=p>>26&31;if(m>>3==3)if(30===m)return l.join("")+"Infinity";else{if(31===m)return"NaN";e=p>>15&16383,t=8+(p>>14&1)}else t=p>>14&7,e=p>>17&16383;let g=e-6176;if(u.parts[0]=(16383&p)+((15&t)<<14),u.parts[1]=h,u.parts[2]=f,u.parts[3]=d,0===u.parts[0]&&0===u.parts[1]&&0===u.parts[2]&&0===u.parts[3])o=!0;else for(n=3;n>=0;n--){let e=0,t=function(e){let t=Y.fromNumber(1e9),r=Y.fromNumber(0);if(!e.parts[0]&&!e.parts[1]&&!e.parts[2]&&!e.parts[3])return{quotient:e,rem:r};for(let n=0;n<=3;n++)r=(r=r.shiftLeft(32)).add(new Y(e.parts[n],0)),e.parts[n]=r.div(t).low,r=r.modulo(t);return{quotient:e,rem:r}}(u);if(u=t.quotient,e=t.rem.low)for(r=8;r>=0;r--)a[9*n+r]=e%10,e=Math.floor(e/10)}if(o)i=1,a[s]=0;else for(i=36;!a[s];)i-=1,s+=1;let b=i-1+g;if(b>=34||b<=-7||g>0){if(i>34)return l.push("0"),g>0?l.push(`E+${g}`):g<0&&l.push(`E${g}`),l.join("");l.push(`${a[s++]}`),(i-=1)&&l.push(".");for(let e=0;e<i;e++)l.push(`${a[s++]}`);l.push("E"),b>0?l.push(`+${b}`):l.push(`${b}`)}else if(g>=0)for(let e=0;e<i;e++)l.push(`${a[s++]}`);else{let e=i+g;if(e>0)for(let t=0;t<e;t++)l.push(`${a[s++]}`);else l.push("0");for(l.push(".");e++<0;)l.push("0");for(let t=0;t<i-Math.max(e-1,0);t++)l.push(`${a[s++]}`)}return l.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(e){return ea.fromString(e.$numberDecimal)}inspect(e,t,r){let n=(r??=b)(this.toString(),t);return`new Decimal128(${n})`}}class es extends P{get _bsontype(){return"Double"}constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=+e}static fromString(e){let t=Number(e);if("NaN"===e)return new es(NaN);if("Infinity"===e)return new es(1/0);if("-Infinity"===e)return new es(-1/0);if(!Number.isFinite(t))throw new w(`Input: ${e} is not representable as a Double`);if(e.trim()!==e)throw new w(`Input: '${e}' contains whitespace`);if(""===e)throw new w("Input is an empty string");if(/[^-0-9.+eE]/.test(e))throw new w(`Input: '${e}' is not in decimal or exponential notation`);return new es(t)}valueOf(){return this.value}toJSON(){return this.value}toString(e){return this.value.toString(e)}toExtendedJSON(e){return e&&(e.legacy||e.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-0.0"}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(e,t){let r=parseFloat(e.$numberDouble);return t&&t.relaxed?r:new es(r)}inspect(e,t,r){return r??=b,`new Double(${r(this.value,t)})`}}class eo extends P{get _bsontype(){return"Int32"}constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=0|e}static fromString(e){let t=q(e),r=Number(e);if(0x7fffffff<r)throw new w(`Input: '${e}' is larger than the maximum value for Int32`);if(-0x80000000>r)throw new w(`Input: '${e}' is smaller than the minimum value for Int32`);if(Number.isSafeInteger(r)){if(r.toString()!==t)throw new w(`Input: '${e}' is not a valid Int32 string`)}else throw new w(`Input: '${e}' is not a safe integer`);return new eo(r)}
136valueOf(){return this.value}toString(e){return this.value.toString(e)}toJSON(){return this.value}toExtendedJSON(e){return e&&(e.relaxed||e.legacy)?this.value:{$numberInt:this.value.toString()}}static fromExtendedJSON(e,t){return t&&t.relaxed?parseInt(e.$numberInt,10):new eo(e.$numberInt)}inspect(e,t,r){return r??=b,`new Int32(${r(this.value,t)})`}}class eu extends P{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new eu}inspect(){return"new MaxKey()"}}class el extends P{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new el}inspect(){return"new MinKey()"}}let ec=null,ed=new WeakMap;class ef extends P{get _bsontype(){return"ObjectId"}constructor(e){let t;if(super(),"object"==typeof e&&e&&"id"in e){if("string"!=typeof e.id&&!ArrayBuffer.isView(e.id))throw new w("Argument passed in must have an id that is of type string or Buffer");t="toHexString"in e&&"function"==typeof e.toHexString?I.fromHex(e.toHexString()):e.id}else t=e;if(null==t||"number"==typeof t)this.buffer=ef.generate("number"==typeof t?t:void 0);else if(ArrayBuffer.isView(t)&&12===t.byteLength)this.buffer=I.toLocalBufferType(t);else if("string"==typeof t)if(ef.validateHexString(t))this.buffer=I.fromHex(t),ef.cacheHexString&&ed.set(this,t);else throw new w("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");else throw new w("Argument passed in does not match the accepted types")}get id(){return this.buffer}set id(e){this.buffer=e,ef.cacheHexString&&ed.set(this,I.toHex(e))}static validateHexString(e){if(e?.length!==24)return!1;for(let t=0;t<24;t++){let r=e.charCodeAt(t);if((!(r>=48)||!(r<=57))&&(!(r>=97)||!(r<=102))&&(!(r>=65)||!(r<=70)))return!1}return!0}toHexString(){if(ef.cacheHexString){let e=ed.get(this);if(e)return e}let e=I.toHex(this.id);return ef.cacheHexString&&ed.set(this,e),e}static getInc(){return ef.index=(ef.index+1)%0xffffff}static generate(e){"number"!=typeof e&&(e=Math.floor(Date.now()/1e3));let t=ef.getInc(),r=I.allocateUnsafe(12);return L.setInt32BE(r,0,e),null===ec&&(ec=I.randomBytes(5)),r[4]=ec[0],r[5]=ec[1],r[6]=ec[2],r[7]=ec[3],r[8]=ec[4],r[11]=255&t,r[10]=t>>8&255,r[9]=t>>16&255,r}toString(e){return"base64"===e?I.toBase64(this.id):this.toHexString()}toJSON(){return this.toHexString()}static is(e){return null!=e&&"object"==typeof e&&"_bsontype"in e&&"ObjectId"===e._bsontype}equals(e){if(null==e)return!1;if(ef.is(e))return this.buffer[11]===e.buffer[11]&&I.equals(this.buffer,e.buffer);if("string"==typeof e)return e.toLowerCase()===this.toHexString();if("object"==typeof e&&"function"==typeof e.toHexString){let t=e.toHexString(),r=this.toHexString();return"string"==typeof t&&t.toLowerCase()===r}return!1}getTimestamp(){let e=new Date,t=L.getUint32BE(this.buffer,0);return e.setTime(1e3*Math.floor(t)),e}static createPk(){return new ef}serializeInto(e,t){return e[t]=this.buffer[0],e[t+1]=this.buffer[1],e[t+2]=this.buffer[2],e[t+3]=this.buffer[3],e[t+4]=this.buffer[4],e[t+5]=this.buffer[5],e[t+6]=this.buffer[6],e[t+7]=this.buffer[7],e[t+8]=this.buffer[8],e[t+9]=this.buffer[9],e[t+10]=this.buffer[10],e[t+11]=this.buffer[11],12}static createFromTime(e){let t=I.allocate(12);for(let e=11;e>=4;e--)t[e]=0;return L.setInt32BE(t,0,e),new ef(t)}static createFromHexString(e){if(e?.length!==24)throw new w("hex string must be 24 characters");return new ef(I.fromHex(e))}static createFromBase64(e){if(e?.length!==16)throw new w("base64 string must be 16 characters");return new ef(I.fromBase64(e))}static isValid(e){if(null==e)return!1;if("string"==typeof e)return ef.validateHexString(e);try{return new ef(e),!0}catch{return!1}}toExtendedJSON(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}}static fromExtendedJSON(e){return new ef(e.$oid)}isCached(){return ef.cacheHexString&&ed.has(this)}inspect(e,t,r){return r??=b,`new ObjectId(${r(this.toHexString(),t)})`}}ef.index=Math.floor(0xffffff*Math.random());class eh extends P{get _bsontype(){return"BSONRegExp"}constructor(e,t){if(super(),this.pattern=e,this.options=function(e){return e.split("").sort().join("")}(t??""),-1!==this.pattern.indexOf("\0"))throw new w(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(-1!==this.options.indexOf("\0"))throw new w(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let e=0;e<this.options.length;e++)if("i"!==this.options[e]&&"m"!==this.options[e]&&"x"!==this.options[e]&&"l"!==this.options[e]&&"s"!==this.options[e]&&"u"!==this.options[e])throw new w(`The regular expression o
136ption [${this.options[e]}] is not supported`)}static parseOptions(e){return e?e.split("").sort().join(""):""}toExtendedJSON(e){return(e=e||{}).legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(e){if("$regex"in e){if("string"==typeof e.$regex)return new eh(e.$regex,eh.parseOptions(e.$options));else if("BSONRegExp"===e.$regex._bsontype)return e}if("$regularExpression"in e)return new eh(e.$regularExpression.pattern,eh.parseOptions(e.$regularExpression.options));throw new w(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(e)}`)}inspect(e,t,r){let n=function(e){if(null!=e&&"object"==typeof e&&"stylize"in e&&"function"==typeof e.stylize)return e.stylize}(t)??(e=>e),i=n((r??=b)(this.pattern),"regexp"),a=n(r(this.options),"regexp");return`new BSONRegExp(${i}, ${a})`}}class ep extends P{get _bsontype(){return"BSONSymbol"}constructor(e){super(),this.value=e}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(e){return new ep(e.$symbol)}inspect(e,t,r){return r??=b,`new BSONSymbol(${r(this.value,t)})`}}let em=Y;class eg extends em{get _bsontype(){return"Timestamp"}get i(){return this.low>>>0}get t(){return this.high>>>0}constructor(e){if(null==e)super(0,0,!0);else if("bigint"==typeof e)super(e,!0);else if(Y.isLong(e))super(e.low,e.high,!0);else if("object"==typeof e&&"t"in e&&"i"in e){if("number"!=typeof e.t&&("object"!=typeof e.t||"Int32"!==e.t._bsontype))throw new w("Timestamp constructed from { t, i } must provide t as a number");if("number"!=typeof e.i&&("object"!=typeof e.i||"Int32"!==e.i._bsontype))throw new w("Timestamp constructed from { t, i } must provide i as a number");const t=Number(e.t),r=Number(e.i);if(t<0||Number.isNaN(t))throw new w("Timestamp constructed from { t, i } must provide a positive t");if(r<0||Number.isNaN(r))throw new w("Timestamp constructed from { t, i } must provide a positive i");if(t>0xffffffff)throw new w("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if(r>0xffffffff)throw new w("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super(r,t,!0)}else throw new w("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(e){return new eg(Y.fromInt(e,!0))}static fromNumber(e){return new eg(Y.fromNumber(e,!0))}static fromBits(e,t){return new eg({i:e,t:t})}static fromString(e,t){return new eg(Y.fromString(e,!0,t))}toExtendedJSON(){return{$timestamp:{t:this.t,i:this.i}}}static fromExtendedJSON(e){let t=Y.isLong(e.$timestamp.i)?e.$timestamp.i.getLowBitsUnsigned():e.$timestamp.i;return new eg({t:Y.isLong(e.$timestamp.t)?e.$timestamp.t.getLowBitsUnsigned():e.$timestamp.t,i:t})}inspect(e,t,r){let n=(r??=b)(this.t,t),i=r(this.i,t);return`new Timestamp({ t: ${n}, i: ${i} })`}}eg.MAX_VALUE=Y.MAX_UNSIGNED_VALUE;Y.fromNumber(0x20000000000000),Y.fromNumber(-0x20000000000000);let eb={$oid:ef,$binary:$,$uuid:$,$symbol:ep,$numberInt:eo,$numberDecimal:ea,$numberDouble:es,$numberLong:Y,$minKey:el,$maxKey:eu,$regex:eh,$regularExpression:eh,$timestamp:eg};function ey(e){let t=e.toISOString();return 0!==e.getUTCMilliseconds()?t:t.slice(0,-5)+"Z"}let e_={Binary:e=>new $(e.value(),e.sub_type),Code:e=>new z(e.code,e.scope),DBRef:e=>new F(e.collection||e.namespace,e.oid,e.db,e.fields),Decimal128:e=>new ea(e.bytes),Double:e=>new es(e.value),Int32:e=>new eo(e.value),Long:e=>Y.fromBits(null!=e.low?e.low:e.low_,null!=e.low?e.high:e.high_,null!=e.low?e.unsigned:e.unsigned_),MaxKey:()=>new eu,MinKey:()=>new el,ObjectId:e=>new ef(e),BSONRegExp:e=>new eh(e.pattern,e.options),BSONSymbol:e=>new ep(e.value),Timestamp:e=>eg.fromBits(e.low,e.high)};function ew(e,t){let r={useBigInt64:t?.useBigInt64??!1,relaxed:t?.relaxed??!0,legacy:t?.legacy??!1};return JSON.parse(e,(e,t)=>{if(-1!==e.indexOf("\0"))throw new w(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(e)}`);return function e(t,r={}){if("number"==typeof t){let e=t<=0x7fffffff&&t>=-0x80000000,n=t<=_&&t>=-0x8000000000000000;if(r.relaxed||r.legacy)return t;if(Number.isInteger(t)&&!Object.is(t,-0)){if(e)return new eo(t);if(n)return r.useBigInt64?BigInt(t):Y.fromNumber(t)}return new es(t)}if(null==t||"object"!=typeof t)return t;if(t.$undefined)return null;let n=Object.keys(t).filter(e=>e.startsWith("$")&&null!=t[e]);for(let e=0;e<n.length;e++){let i=eb[n[e]];if(i)return i.fromExtendedJSON(t,r)}if(null!=t.$date){let e=t.$date,n=new Date;if(r.legacy)if("number"==typeof e)n.setTime(e);else if("string"==typeof e)n.setTime(Date.parse(e));else if("bigint"==typeof e)n.setTime(Number(e));else throw new E(`Unrecognized type for EJSON date: ${typeof e}`);else if("string"==typeof e)n.setTime(Date.parse(e));else if(Y.isLong(e))n.setTime(e.toNumber());else if("number"==typeof e&&r.relaxed)n.setTime(e);else if("bigint"==typeof e)n.setTime(Number(e));else throw new E(`Unrecognized type for EJSON date: ${typeof e}`);return n}if(null!=t.$code){let r=Object.assign({},t);
136return t.$scope&&(r.$scope=e(t.$scope)),z.fromExtendedJSON(t)}if(V(t)||t.$dbPointer){let e=t.$ref?t:t.$dbPointer;if(e instanceof F)return e;let r=Object.keys(e).filter(e=>e.startsWith("$")),n=!0;if(r.forEach(e=>{-1===["$ref","$id","$db"].indexOf(e)&&(n=!1)}),n)return F.fromExtendedJSON(e)}return t}(t,r)})}function ev(e,t,r,n){return null!=r&&"object"==typeof r&&(n=r,r=0),null==t||"object"!=typeof t||Array.isArray(t)||(n=t,t=void 0,r=0),JSON.stringify(function e(t,r){if(t instanceof Map||m(t)){let n=Object.create(null);for(let[e,r]of t){if("string"!=typeof e)throw new w("Can only serialize maps with string keys");n[e]=r}return e(n,r)}if(("object"==typeof t||"function"==typeof t)&&null!==t){let e=r.seenObjects.findIndex(e=>e.obj===t);if(-1!==e){let t=r.seenObjects.map(e=>e.propertyName),n=t.slice(0,e).map(e=>`${e} -> `).join(""),i=t[e],a=" -> "+t.slice(e+1,t.length-1).map(e=>`${e} -> `).join(""),s=t[t.length-1],o=" ".repeat(n.length+i.length/2),u="-".repeat(a.length+(i.length+s.length)/2-1);throw new w(`Converting circular structure to EJSON:
137    ${n}${i}${a}${s}
138    ${o}\\${u}/`)}r.seenObjects[r.seenObjects.length-1].obj=t}if(Array.isArray(t))return t.map((t,n)=>{r.seenObjects.push({propertyName:`index ${n}`,obj:null});try{return e(t,r)}finally{r.seenObjects.pop()}});if(void 0===t)return null;if(t instanceof Date||g(t)){let e=t.getTime(),n=e>-1&&e<2534023188e5;return r.legacy?r.relaxed&&n?{$date:t.getTime()}:{$date:ey(t)}:r.relaxed&&n?{$date:ey(t)}:{$date:{$numberLong:t.getTime().toString()}}}if("number"==typeof t&&(!r.relaxed||!isFinite(t))){if(Number.isInteger(t)&&!Object.is(t,-0)){if(t>=-0x80000000&&t<=0x7fffffff)return{$numberInt:t.toString()};if(t>=-0x8000000000000000&&t<=_)return{$numberLong:t.toString()}}return{$numberDouble:Object.is(t,-0)?"-0.0":t.toString()}}if("bigint"==typeof t)return r.relaxed?Number(BigInt.asIntN(64,t)):{$numberLong:BigInt.asIntN(64,t).toString()};if(t instanceof RegExp||p(t)){let e=t.flags;if(void 0===e){let r=t.toString().match(/[gimuy]*$/);r&&(e=r[0])}return new eh(t.source,e).toExtendedJSON(r)}return null!=t&&"object"==typeof t?function(t,r){if(null==t||"object"!=typeof t)throw new w("not an object instance");let n=t._bsontype;if(void 0===n){let n={};for(let i of Object.keys(t)){r.seenObjects.push({propertyName:i,obj:null});try{let a=e(t[i],r);"__proto__"===i?Object.defineProperty(n,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):n[i]=a}finally{r.seenObjects.pop()}}return n}if(null!=t&&"object"==typeof t&&"string"==typeof t._bsontype&&6!==t[y])throw new v;if(null!=t&&"object"==typeof t&&"_bsontype"in t&&"string"==typeof t._bsontype){let i=t;if("function"!=typeof i.toExtendedJSON){let e=e_[t._bsontype];if(!e)throw new w("Unrecognized or invalid _bsontype: "+t._bsontype);i=e(i)}return"Code"===n&&i.scope?i=new z(i.code,e(i.scope,r)):"DBRef"===n&&i.oid&&(i=new F(e(i.collection,r),e(i.oid,r),e(i.db,r),e(i.fields,r))),i.toExtendedJSON(r)}throw new w("_bsontype must be a string, but was: "+typeof n)}(t,r):t}(e,Object.assign({relaxed:!0,legacy:!1},n,{seenObjects:[{propertyName:"(root)",obj:null}]})),t,r)}let eE=Object.create(null);eE.parse=ew,eE.stringify=ev,eE.serialize=function(e,t){return JSON.parse(ev(e,t=t||{}))},eE.deserialize=function(e,t){return t=t||{},ew(JSON.stringify(e),t)},Object.freeze(eE);function ex(e,t){try{return L.getNonnegativeInt32LE(e,t)}catch(e){throw new x("BSON size cannot be negative",t,{cause:e})}}function eO(e,t){let r=t;for(;0!==e[r];r++);if(r===e.length-1)throw new x("Null terminator not found",t);return r}let eS=Object.create(null);eS.parseToElements=function(e,t=0){if(t??=0,e.length<5)throw new x(`Input must be at least 5 bytes, got ${e.length} bytes`,t);let r=ex(e,t);if(r>e.length-t)throw new x(`Parsed documentSize (${r} bytes) does not match input length (${e.length} bytes)`,t);if(0!==e[t+r-1])throw new x("BSON documents must end in 0x00",t+r);let n=[],i=t+4;for(;i<=r+t;){let a,s=e[i];if(i+=1,0===s){if(i-t!==r)throw new x("Invalid 0x00 type byte",i);break}let o=i,u=eO(e,i)-o;if(i+=u+1,1===s||18===s||9===s||17===s)a=8;else if(16===s)a=4;else if(7===s)a=12;else if(19===s)a=16;else if(8===s)a=1;else if(10===s||6===s||127===s||255===s)a=0;else if(11===s)a=eO(e,eO(e,i)+1)+1-i;else if(3===s||4===s||15===s)a=ex(e,i);else if(2===s||5===s||12===s||13===s||14===s)a=ex(e,i)+4,5===s&&(a+=1),12===s&&(a+=12);else throw new x(`Invalid 0x${s.toString(16).padStart(2,"0")} type byte`,i);if(a>r)throw new x("value reports length larger than document",i);n.push([s,o,u,i,a]),i+=a}return n},eS.ByteUtils=I,eS.NumberUtils=L,Object.freeze(eS),I.allocate(0x1100000),s.z.object({page:s.z.coerce.number().int().positive().default(1),limit:s.z.coerce.number().int().positive().max(100).default(20)}),s.z.object({offset:s.z.coerce.number().int().nonnegative().default(0),limit:s.z.coerce.number().int().positive().max(100).default(20)}),s.z.object({daoId:s.z.string().min(1,"daoId is required")}),s.z.object({daoId:s.z.string().optional()}),s.z.object({id:s.z.string().min(1,"id is required")}),s.z.object({status:s.z.enum(["active","pending","inactive"]).optional()}),s.z.object({startDate:s.z.string().optional(),endDate:s.z.string().optional()}),s.z.object({q:s.z.string().optional(),search:s.z.string().optional()}),s.z.object({sortBy:s.z.string().optional(),sortOrder:s.z.enum(["asc","desc"]).optional().default("desc")}),s.z.object({page:s.z.coerce.number().int().positive().default(1),limit:s.z.coerce.number().int().positive().max(100).default(20),search:s.z.string().optional(),sortBy:s.z.string().optional(),sortOrder:s.z.enum(["asc","desc"]).optional().default("desc")}),e.s([],384048)},867376,e=>{"use strict";var t=e.i(207670);let r=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],i=t.nextPart.get(n),a=i?r(e.slice(1),i):void 0;if(a)return a;
138if(0===t.validators.length)return;let s=e.join("-");return t.validators.find(({validator:e})=>e(s))?.classGroupId},n=/^\[(.+)\]$/,i=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:a(t,e)).classGroupId=r;return}"function"==typeof e?s(e)?i(e(n),t,r,n):t.validators.push({validator:e,classGroupId:r}):Object.entries(e).forEach(([e,s])=>{i(s,a(t,e),r,n)})})},a=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},s=e=>e.isThemeGetter,o=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,u=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},l=/\s+/;function c(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=d(e))&&(n&&(n+=" "),n+=t);return n}let d=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=d(e[n]))&&(r&&(r+=" "),r+=t);return r},f=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},h=/^\[(?:([a-z-]+):)?(.+)\]$/i,p=/^\d+\/\d+$/,m=new Set(["px","full","screen"]),g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,v=e=>x(e)||m.has(e)||p.test(e),E=e=>L(e,"length",$),x=e=>!!e&&!Number.isNaN(Number(e)),O=e=>L(e,"number",x),S=e=>!!e&&Number.isInteger(Number(e)),R=e=>e.endsWith("%")&&x(e.slice(0,-1)),N=e=>h.test(e),T=e=>g.test(e),k=new Set(["length","size","percentage"]),A=e=>L(e,k,B),I=e=>L(e,"position",B),P=new Set(["image","url"]),C=e=>L(e,P,M),j=e=>L(e,"",U),D=()=>!0,L=(e,t,r)=>{let n=h.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},$=e=>b.test(e)&&!y.test(e),B=()=>!1,U=e=>_.test(e),M=e=>w.test(e),Z=function(e){let t,a,s,d=function(u){let l;return a=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,a)=>{r.set(i,a),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}})((l=[].reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,i=t[0],a=t.length,s=e=>{let r,s=[],o=0,u=0;for(let l=0;l<e.length;l++){let c=e[l];if(0===o){if(c===i&&(n||e.slice(l,l+a)===t)){s.push(e.slice(u,l)),u=l+a;continue}if("/"===c){r=l;continue}}"["===c?o++:"]"===c&&o--}let l=0===s.length?e:e.substring(u),c=l.startsWith("!"),d=c?l.substring(1):l;return{modifiers:s,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>u?r-u:void 0}};return r?e=>r({className:e,parseClassName:s}):s})(l),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return o(Object.entries(e.classGroups),r).forEach(([e,r])=>{i(r,n,e,t)}),n})(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{let i=e.split("-");return""===i[0]&&1!==i.length&&i.shift(),r(i,t)||(e=>{if(n.test(e)){let t=n.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let r=a[e]||[];return t&&s[e]?[...r,...s[e]]:r}}})(l)}).cache.get,s=t.cache.set,d=f,f(u)};function f(e){let r=a(e);if(r)return r;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(l),o="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:f}=r(t),h=!!f,p=n(h?d.substring(0,f):d);if(!p){if(!h||!(p=n(d))){o=t+(o.length>0?" "+o:o);continue}h=!1}let m=u(l).join(":"),g=c?m+"!":m,b=g+p;if(a.includes(b))continue;a.push(b);let y=i(p,h);for(let e=0;e<y.length;++e){let t=y[e];a.push(g+t)}o=t+(o.length>0?" "+o:o)}return o}
vendor: 7,578 bytes, line 138
138)(e,t);return s(e,n),n}return function(){return d(c.apply(null,arguments))}}(()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),n=f("brightness"),i=f("borderColor"),a=f("borderRadius"),s=f("borderSpacing"),o=f("borderWidth"),u=f("contrast"),l=f("grayscale"),c=f("hueRotate"),d=f("invert"),h=f("gap"),p=f("gradientColorStops"),m=f("gradientColorStopPositions"),g=f("inset"),b=f("margin"),y=f("opacity"),_=f("padding"),w=f("saturate"),k=f("scale"),P=f("sepia"),L=f("skew"),$=f("space"),B=f("translate"),U=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",N,t],z=()=>[N,t],V=()=>["",v,E],F=()=>["auto",x,N],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",N],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[x,N];return{cacheSize:500,separator:":",theme:{colors:[D],spacing:[v,E],blur:["none","",T,N],brightness:X(),borderColor:[e],borderRadius:["none","","full",T,N],borderSpacing:z(),borderWidth:V(),contrast:X(),grayscale:Y(),hueRotate:X(),invert:Y(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[R,E],inset:Z(),margin:Z(),opacity:X(),padding:z(),saturate:X(),scale:X(),sepia:Y(),skew:X(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),N]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",S,N]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",S,N]}],"grid-cols":[{"grid-cols":[D]}],"col-start-end":[{col:["auto",{span:["full",S,N]},N]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[D]}],"row-start-end":[{row:["auto",{span:[S,N]},N]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",T,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[D]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",x,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",v,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",v,E]}],"underline-offset":[{"underline-offset":["auto",v,N]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),I]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},C]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}
138],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,445 bytes, line 138
138],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[v,N]}],"outline-w":[{outline:[v,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[v,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,j]}],"shadow-color":[{shadow:[D]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",T,N]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[S,N]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[v,E,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
138none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});e.s(["cn",0,function(...e){return Z((0,t.clsx)(e))}],867376)}]);

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