@vasfal/vellum 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +5 -5
- package/.next/build-manifest.json +13 -14
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.js +2 -0
- package/.next/required-server-files.json +2 -0
- package/.next/server/app/(app)/page.js +2 -15
- package/.next/server/app/(app)/page.js.nft.json +1 -1
- package/.next/server/app/(app)/page_client-reference-manifest.js +1 -3
- package/.next/server/app/(app)/session/[name]/page.js +2 -15
- package/.next/server/app/(app)/session/[name]/page.js.nft.json +1 -1
- package/.next/server/app/(app)/session/[name]/page_client-reference-manifest.js +1 -3
- package/.next/server/app/(app)/settings/key/page.js +2 -15
- package/.next/server/app/(app)/settings/key/page.js.nft.json +1 -1
- package/.next/server/app/(app)/settings/key/page_client-reference-manifest.js +1 -3
- package/.next/server/app/_global-error/page.js +32 -9
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.meta +2 -1
- package/.next/server/app/_global-error.rsc +7 -7
- package/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/server/app/_global-error.segments/{__PAGE__.segment.rsc → _global-error/__PAGE__.segment.rsc} +2 -2
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -13
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -3
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +14 -12
- package/.next/server/app/_not-found.segments/_full.segment.rsc +14 -12
- package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -2
- package/.next/server/app/api/analyze/route.js +12 -9
- package/.next/server/app/api/analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/analyze/route_client-reference-manifest.js +1 -3
- package/.next/server/app/api/key/route.js +1 -8
- package/.next/server/app/api/key/route.js.nft.json +1 -1
- package/.next/server/app/api/key/route_client-reference-manifest.js +1 -3
- package/.next/server/app/api/key-status/route.js +1 -7
- package/.next/server/app/api/key-status/route.js.nft.json +1 -1
- package/.next/server/app/api/key-status/route_client-reference-manifest.js +1 -3
- package/.next/server/app/api/models/route.js +1 -7
- package/.next/server/app/api/models/route.js.nft.json +1 -1
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -3
- package/.next/server/app/api/revise/route.js +1 -8
- package/.next/server/app/api/revise/route.js.nft.json +1 -1
- package/.next/server/app/api/revise/route_client-reference-manifest.js +1 -3
- package/.next/server/app/icon.svg/route.js +1 -7
- package/.next/server/app/icon.svg/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +24 -27
- package/.next/server/app/index.segments/!KGFwcCk/__PAGE__.segment.rsc +6 -6
- package/.next/server/app/index.segments/!KGFwcCk.segment.rsc +9 -9
- package/.next/server/app/index.segments/_full.segment.rsc +24 -27
- package/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/server/app/index.segments/_index.segment.rsc +6 -6
- package/.next/server/app/index.segments/_tree.segment.rsc +4 -4
- package/.next/server/app/record-test/page.js +8 -14
- package/.next/server/app/record-test/page.js.nft.json +1 -1
- package/.next/server/app/record-test/page_client-reference-manifest.js +1 -3
- package/.next/server/app/record-test.html +2 -2
- package/.next/server/app/record-test.rsc +16 -16
- package/.next/server/app/record-test.segments/_full.segment.rsc +16 -16
- package/.next/server/app/record-test.segments/_head.segment.rsc +4 -4
- package/.next/server/app/record-test.segments/_index.segment.rsc +6 -6
- package/.next/server/app/record-test.segments/_tree.segment.rsc +4 -4
- package/.next/server/app/record-test.segments/record-test/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/record-test.segments/record-test.segment.rsc +3 -3
- package/.next/server/app/settings/key.html +1 -1
- package/.next/server/app/settings/key.rsc +28 -34
- package/.next/server/app/settings/key.segments/!KGFwcCk/settings/key/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/settings/key.segments/!KGFwcCk/settings/key.segment.rsc +3 -3
- package/.next/server/app/settings/key.segments/!KGFwcCk/settings.segment.rsc +3 -3
- package/.next/server/app/settings/key.segments/!KGFwcCk.segment.rsc +9 -9
- package/.next/server/app/settings/key.segments/_full.segment.rsc +28 -34
- package/.next/server/app/settings/key.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/key.segments/_index.segment.rsc +6 -6
- package/.next/server/app/settings/key.segments/_tree.segment.rsc +4 -4
- package/.next/server/app/styleguide/page.js +2 -15
- package/.next/server/app/styleguide/page.js.nft.json +1 -1
- package/.next/server/app/styleguide/page_client-reference-manifest.js +1 -3
- package/.next/server/app/styleguide.html +1 -1
- package/.next/server/app/styleguide.rsc +68 -71
- package/.next/server/app/styleguide.segments/_full.segment.rsc +68 -71
- package/.next/server/app/styleguide.segments/_head.segment.rsc +4 -4
- package/.next/server/app/styleguide.segments/_index.segment.rsc +6 -6
- package/.next/server/app/styleguide.segments/_tree.segment.rsc +4 -4
- package/.next/server/app/styleguide.segments/styleguide/__PAGE__.segment.rsc +43 -45
- package/.next/server/app/styleguide.segments/styleguide.segment.rsc +3 -3
- package/.next/server/app-paths-manifest.json +5 -5
- package/.next/server/chunks/15.js +1 -0
- package/.next/server/chunks/319.js +45 -0
- package/.next/server/chunks/367.js +122 -0
- package/.next/server/chunks/393.js +4 -0
- package/.next/server/chunks/491.js +2 -0
- package/.next/server/chunks/497.js +1 -0
- package/.next/server/chunks/546.js +1 -0
- package/.next/server/chunks/592.js +44 -0
- package/.next/server/chunks/607.js +4 -0
- package/.next/server/chunks/724.js +1 -0
- package/.next/server/chunks/741.js +18 -0
- package/.next/server/chunks/813.js +1 -0
- package/.next/server/chunks/837.js +75 -0
- package/.next/server/chunks/852.js +14 -0
- package/.next/server/chunks/907.js +62 -0
- package/.next/server/chunks/915.js +8 -0
- package/.next/server/chunks/994.js +8 -0
- package/.next/server/middleware-build-manifest.js +1 -21
- package/.next/server/middleware-manifest.json +2 -2
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -31
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -5
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/static/FExJe2q2O67X3zxf-SYQ_/_buildManifest.js +1 -0
- package/.next/static/chunks/185-9c51ded7cd36ca7e.js +1 -0
- package/.next/static/chunks/20-cca33f633fa125b2.js +1 -0
- package/.next/static/chunks/27-02413cc56fbb4570.js +1 -0
- package/.next/static/chunks/376-6f7bc95550542e0b.js +62 -0
- package/.next/static/chunks/479-ea67f878851afbcd.js +1 -0
- package/.next/static/chunks/493-6bd8c75c972d3abd.js +2 -0
- package/.next/static/chunks/4bd1b696-deb4a0a1da1923b0.js +1 -0
- package/.next/static/chunks/603-6235d4d53b37035c.js +1 -0
- package/.next/static/chunks/743-c183133e0fbf1564.js +44 -0
- package/.next/static/chunks/793-5e37343b804eb1d9.js +1 -0
- package/.next/static/chunks/794-dc751ec6c8c611f8.js +32 -0
- package/.next/static/chunks/924-9226750edc5c2c2f.js +1 -0
- package/.next/static/chunks/95247769-a29d70f7fbba27c6.js +1 -0
- package/.next/static/chunks/app/(app)/layout-aad46049bfd54648.js +1 -0
- package/.next/static/chunks/app/(app)/page-d75e1fccccdbe30e.js +1 -0
- package/.next/static/chunks/app/(app)/session/[name]/page-60529ed1fd7a66a1.js +1 -0
- package/.next/static/chunks/app/(app)/settings/key/page-c2aab9f11db98d4e.js +1 -0
- package/.next/static/chunks/app/_global-error/page-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/app/_not-found/page-6830be21b0ed0c95.js +1 -0
- package/.next/static/chunks/app/api/analyze/route-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/app/api/key/route-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/app/api/key-status/route-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/app/api/models/route-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/app/api/revise/route-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/app/layout-aa71ca14e7f13c0c.js +1 -0
- package/.next/static/chunks/app/record-test/page-efb4287dda79ede4.js +7 -0
- package/.next/static/chunks/app/styleguide/page-f39510e82c1f9f31.js +1 -0
- package/.next/static/chunks/framework-b29f9083d3cda3b2.js +1 -0
- package/.next/static/chunks/main-app-39f57c6e6702740e.js +1 -0
- package/.next/static/chunks/main-fac8900b4f9c4833.js +5 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-c1d4bb24e31b66a2.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-b1c3f51315835726.js +1 -0
- package/.next/static/chunks/webpack-ceb933bd5f77076f.js +1 -0
- package/.next/static/css/e2905f0858acd77d.css +3 -0
- package/.next/types/app/(app)/page.ts +87 -0
- package/.next/types/app/(app)/session/[name]/page.ts +87 -0
- package/.next/types/app/(app)/settings/key/page.ts +87 -0
- package/.next/types/app/api/analyze/route.ts +351 -0
- package/.next/types/app/api/key/route.ts +351 -0
- package/.next/types/app/api/key-status/route.ts +351 -0
- package/.next/types/app/api/models/route.ts +351 -0
- package/.next/types/app/api/revise/route.ts +351 -0
- package/.next/types/app/layout.ts +87 -0
- package/.next/types/app/record-test/page.ts +87 -0
- package/.next/types/app/styleguide/page.ts +87 -0
- package/.next/types/package.json +1 -0
- package/README.md +4 -6
- package/next.config.ts +8 -0
- package/package.json +4 -4
- package/.next/build/56416d4ae4ce586f.js +0 -6
- package/.next/build/56416d4ae4ce586f.js.map +0 -5
- package/.next/build/chunks/[root-of-the-server]__0oj80bi._.js +0 -206
- package/.next/build/chunks/[root-of-the-server]__0oj80bi._.js.map +0 -8
- package/.next/build/chunks/[root-of-the-server]__1f933tp._.js +0 -500
- package/.next/build/chunks/[root-of-the-server]__1f933tp._.js.map +0 -11
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js +0 -13
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js.map +0 -5
- package/.next/build/chunks/[turbopack]_runtime.js +0 -890
- package/.next/build/chunks/[turbopack]_runtime.js.map +0 -11
- package/.next/build/chunks/node_modules_20v-8wl._.js +0 -6832
- package/.next/build/chunks/node_modules_20v-8wl._.js.map +0 -47
- package/.next/build/package.json +0 -1
- package/.next/cache/.previewinfo +0 -1
- package/.next/cache/.rscinfo +0 -1
- package/.next/cache/.tsbuildinfo +0 -1
- package/.next/diagnostics/route-bundle-stats.json +0 -111
- package/.next/fallback-build-manifest.json +0 -13
- package/.next/server/app/(app)/page/app-paths-manifest.json +0 -3
- package/.next/server/app/(app)/page/build-manifest.json +0 -17
- package/.next/server/app/(app)/page/next-font-manifest.json +0 -11
- package/.next/server/app/(app)/page/server-reference-manifest.json +0 -4
- package/.next/server/app/(app)/page.js.map +0 -5
- package/.next/server/app/(app)/session/[name]/page/app-paths-manifest.json +0 -3
- package/.next/server/app/(app)/session/[name]/page/build-manifest.json +0 -17
- package/.next/server/app/(app)/session/[name]/page/next-font-manifest.json +0 -11
- package/.next/server/app/(app)/session/[name]/page/react-loadable-manifest.json +0 -1
- package/.next/server/app/(app)/session/[name]/page/server-reference-manifest.json +0 -4
- package/.next/server/app/(app)/session/[name]/page.js.map +0 -5
- package/.next/server/app/(app)/settings/key/page/app-paths-manifest.json +0 -3
- package/.next/server/app/(app)/settings/key/page/build-manifest.json +0 -17
- package/.next/server/app/(app)/settings/key/page/next-font-manifest.json +0 -11
- package/.next/server/app/(app)/settings/key/page/react-loadable-manifest.json +0 -1
- package/.next/server/app/(app)/settings/key/page/server-reference-manifest.json +0 -4
- package/.next/server/app/(app)/settings/key/page.js.map +0 -5
- package/.next/server/app/_global-error/page/app-paths-manifest.json +0 -3
- package/.next/server/app/_global-error/page/build-manifest.json +0 -17
- package/.next/server/app/_global-error/page/next-font-manifest.json +0 -6
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +0 -1
- package/.next/server/app/_global-error/page/server-reference-manifest.json +0 -4
- package/.next/server/app/_global-error/page.js.map +0 -5
- package/.next/server/app/_not-found/page/app-paths-manifest.json +0 -3
- package/.next/server/app/_not-found/page/build-manifest.json +0 -17
- package/.next/server/app/_not-found/page/next-font-manifest.json +0 -11
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +0 -1
- package/.next/server/app/_not-found/page/server-reference-manifest.json +0 -4
- package/.next/server/app/_not-found/page.js.map +0 -5
- package/.next/server/app/api/analyze/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/analyze/route/build-manifest.json +0 -9
- package/.next/server/app/api/analyze/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/analyze/route.js.map +0 -5
- package/.next/server/app/api/key/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/key/route/build-manifest.json +0 -9
- package/.next/server/app/api/key/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/key/route.js.map +0 -5
- package/.next/server/app/api/key-status/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/key-status/route/build-manifest.json +0 -9
- package/.next/server/app/api/key-status/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/key-status/route.js.map +0 -5
- package/.next/server/app/api/models/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/models/route/build-manifest.json +0 -9
- package/.next/server/app/api/models/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/models/route.js.map +0 -5
- package/.next/server/app/api/revise/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/revise/route/build-manifest.json +0 -9
- package/.next/server/app/api/revise/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/revise/route.js.map +0 -5
- package/.next/server/app/icon.svg/route/app-paths-manifest.json +0 -3
- package/.next/server/app/icon.svg/route/build-manifest.json +0 -9
- package/.next/server/app/icon.svg/route.js.map +0 -5
- package/.next/server/app/record-test/page/app-paths-manifest.json +0 -3
- package/.next/server/app/record-test/page/build-manifest.json +0 -17
- package/.next/server/app/record-test/page/next-font-manifest.json +0 -11
- package/.next/server/app/record-test/page/react-loadable-manifest.json +0 -1
- package/.next/server/app/record-test/page/server-reference-manifest.json +0 -4
- package/.next/server/app/record-test/page.js.map +0 -5
- package/.next/server/app/styleguide/page/app-paths-manifest.json +0 -3
- package/.next/server/app/styleguide/page/build-manifest.json +0 -17
- package/.next/server/app/styleguide/page/next-font-manifest.json +0 -11
- package/.next/server/app/styleguide/page/react-loadable-manifest.json +0 -1
- package/.next/server/app/styleguide/page/server-reference-manifest.json +0 -4
- package/.next/server/app/styleguide/page.js.map +0 -5
- package/.next/server/chunks/[externals]__1l0bqbz._.js +0 -3
- package/.next/server/chunks/[externals]__1l0bqbz._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__00u0a0m._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__00u0a0m._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__02oblj7._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__02oblj7._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__04dzkv1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__04dzkv1._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__081zp1m._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__081zp1m._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0dkua3v._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0dkua3v._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0ezil_h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ezil_h._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0ww_12a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ww_12a._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0x-kpif._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0x-kpif._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1kmbnvv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1kmbnvv._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1kp4vwc._.js +0 -14
- package/.next/server/chunks/[root-of-the-server]__1kp4vwc._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1lbd3kd._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1lbd3kd._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1ra6psc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ra6psc._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1zn977r._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1zn977r._.js.map +0 -1
- package/.next/server/chunks/[turbopack]_runtime.js +0 -903
- package/.next/server/chunks/[turbopack]_runtime.js.map +0 -11
- package/.next/server/chunks/_04h1cv_._.js +0 -185
- package/.next/server/chunks/_04h1cv_._.js.map +0 -1
- package/.next/server/chunks/_0pqmhjh._.js +0 -185
- package/.next/server/chunks/_0pqmhjh._.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_analyze_route_actions_0lx-23h.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_analyze_route_actions_0lx-23h.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_key-status_route_actions_1qgztm2.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_key-status_route_actions_1qgztm2.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_key_route_actions_15n2qsb.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_key_route_actions_15n2qsb.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_models_route_actions_1h6mkqp.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_models_route_actions_1h6mkqp.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_api_revise_route_actions_19kk3m-.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_revise_route_actions_19kk3m-.js.map +0 -1
- package/.next/server/chunks/_next-internal_server_app_icon_svg_route_actions_1r2h_ub.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_icon_svg_route_actions_1r2h_ub.js.map +0 -1
- package/.next/server/chunks/node_modules_0x51oh_._.js +0 -10
- package/.next/server/chunks/node_modules_0x51oh_._.js.map +0 -1
- package/.next/server/chunks/node_modules_19bvt3l._.js +0 -6
- package/.next/server/chunks/node_modules_19bvt3l._.js.map +0 -1
- package/.next/server/chunks/node_modules_1_-az43._.js +0 -16
- package/.next/server/chunks/node_modules_1_-az43._.js.map +0 -1
- package/.next/server/chunks/node_modules_1t2pqct._.js +0 -10
- package/.next/server/chunks/node_modules_1t2pqct._.js.map +0 -1
- package/.next/server/chunks/node_modules_next_08s853w._.js +0 -13
- package/.next/server/chunks/node_modules_next_08s853w._.js.map +0 -1
- package/.next/server/chunks/node_modules_node-fetch_src_index_1gf-_pn.js +0 -3
- package/.next/server/chunks/node_modules_node-fetch_src_index_1gf-_pn.js.map +0 -1
- package/.next/server/chunks/ssr/[externals]__1l0bqbz._.js +0 -3
- package/.next/server/chunks/ssr/[externals]__1l0bqbz._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__06ync7f._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__06ync7f._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0hml-pd._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0hml-pd._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0ntia6u._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0ntia6u._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0sdpd0o._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0sdpd0o._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0w2pa_y._.js +0 -33
- package/.next/server/chunks/ssr/[root-of-the-server]__0w2pa_y._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__10y0-wv._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__10y0-wv._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__11_7weu._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__11_7weu._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1_stkwn._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1_stkwn._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1dky4g0._.js +0 -33
- package/.next/server/chunks/ssr/[root-of-the-server]__1dky4g0._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1k6ey-q._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1k6ey-q._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1la73u1._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1la73u1._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1nshnxm._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1nshnxm._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1pssg49._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1pssg49._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1q6zd30._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1q6zd30._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1qlmg27._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1qlmg27._.js.map +0 -1
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +0 -903
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +0 -11
- package/.next/server/chunks/ssr/_01pksvc._.js +0 -78
- package/.next/server/chunks/ssr/_01pksvc._.js.map +0 -1
- package/.next/server/chunks/ssr/_03lgii8._.js +0 -3
- package/.next/server/chunks/ssr/_03lgii8._.js.map +0 -1
- package/.next/server/chunks/ssr/_05tft_r._.js +0 -3
- package/.next/server/chunks/ssr/_05tft_r._.js.map +0 -1
- package/.next/server/chunks/ssr/_06gt995._.js +0 -3
- package/.next/server/chunks/ssr/_06gt995._.js.map +0 -1
- package/.next/server/chunks/ssr/_0jrh37c._.js +0 -46
- package/.next/server/chunks/ssr/_0jrh37c._.js.map +0 -1
- package/.next/server/chunks/ssr/_0kw6yq_._.js +0 -3
- package/.next/server/chunks/ssr/_0kw6yq_._.js.map +0 -1
- package/.next/server/chunks/ssr/_0l3c05z._.js +0 -3
- package/.next/server/chunks/ssr/_0l3c05z._.js.map +0 -1
- package/.next/server/chunks/ssr/_0n-ojw-._.js +0 -3
- package/.next/server/chunks/ssr/_0n-ojw-._.js.map +0 -1
- package/.next/server/chunks/ssr/_0t6a1ln._.js +0 -6
- package/.next/server/chunks/ssr/_0t6a1ln._.js.map +0 -1
- package/.next/server/chunks/ssr/_0td-xk-._.js +0 -3
- package/.next/server/chunks/ssr/_0td-xk-._.js.map +0 -1
- package/.next/server/chunks/ssr/_0y92f-y._.js +0 -46
- package/.next/server/chunks/ssr/_0y92f-y._.js.map +0 -1
- package/.next/server/chunks/ssr/_1b6au28._.js +0 -3
- package/.next/server/chunks/ssr/_1b6au28._.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_page_actions_1gxdy57.js +0 -3
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_page_actions_1gxdy57.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_session_[name]_page_actions_115d_ja.js +0 -3
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_session_[name]_page_actions_115d_ja.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_settings_key_page_actions_1jsc3or.js +0 -3
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_settings_key_page_actions_1jsc3or.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js +0 -3
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js +0 -3
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app_record-test_page_actions_0a_yofw.js +0 -3
- package/.next/server/chunks/ssr/_next-internal_server_app_record-test_page_actions_0a_yofw.js.map +0 -1
- package/.next/server/chunks/ssr/_next-internal_server_app_styleguide_page_actions_174h7x7.js +0 -3
- package/.next/server/chunks/ssr/_next-internal_server_app_styleguide_page_actions_174h7x7.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_0el53_h._.js +0 -10
- package/.next/server/chunks/ssr/node_modules_0el53_h._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_0h91jdk._.js +0 -33
- package/.next/server/chunks/ssr/node_modules_0h91jdk._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_1fxqp22._.js +0 -10
- package/.next/server/chunks/ssr/node_modules_1fxqp22._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_1loo6j7._.js +0 -6
- package/.next/server/chunks/ssr/node_modules_1loo6j7._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_1pvqj0r._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_1pvqj0r._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_0uboya6._.js +0 -6
- package/.next/server/chunks/ssr/node_modules_next_dist_0uboya6._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_172hvm-._.js +0 -19
- package/.next/server/chunks/ssr/node_modules_next_dist_172hvm-._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js +0 -3
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0-o-goa.js +0 -3
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0-o-goa.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js +0 -3
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0_q50sh.js +0 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0_q50sh.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0_xbpm0.js +0 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0_xbpm0.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_119i6eu.js +0 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_119i6eu.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_14nl2rs.js +0 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_14nl2rs.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_18u8k23.js +0 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_18u8k23.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19--w_z.js +0 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19--w_z.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1_iwj0a.js +0 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1_iwj0a.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules_node-fetch_src_index_1e0t9p6.js +0 -3
- package/.next/server/chunks/ssr/node_modules_node-fetch_src_index_1e0t9p6.js.map +0 -1
- package/.next/server/chunks/ssr/src_19oqe9t._.js +0 -3
- package/.next/server/chunks/ssr/src_19oqe9t._.js.map +0 -1
- package/.next/server/chunks/ssr/src_app_record-test_page_tsx_08-2bld._.js +0 -9
- package/.next/server/chunks/ssr/src_app_record-test_page_tsx_08-2bld._.js.map +0 -1
- package/.next/server/chunks/ssr/src_components_app-sidebar_tsx_1xx2k53._.js +0 -3
- package/.next/server/chunks/ssr/src_components_app-sidebar_tsx_1xx2k53._.js.map +0 -1
- package/.next/server/chunks/ssr/src_components_settings_key-setup_tsx_0jxhnpa._.js +0 -3
- package/.next/server/chunks/ssr/src_components_settings_key-setup_tsx_0jxhnpa._.js.map +0 -1
- package/.next/server/chunks/ssr/src_components_ui_0lq7ewx._.js +0 -3
- package/.next/server/chunks/ssr/src_components_ui_0lq7ewx._.js.map +0 -1
- package/.next/static/CIZxngYjzUw1Kb0KrE473/_buildManifest.js +0 -11
- package/.next/static/CIZxngYjzUw1Kb0KrE473/_clientMiddlewareManifest.js +0 -1
- package/.next/static/chunks/05-c3ty_6dwfk.js +0 -1
- package/.next/static/chunks/07-hzktxqjvzd.js +0 -4
- package/.next/static/chunks/09bn0buuu6k2x.js +0 -1
- package/.next/static/chunks/0kkimqpuecvfn.js +0 -1
- package/.next/static/chunks/0mk1g55o6kl1e.js +0 -2
- package/.next/static/chunks/0ul837-9k0zx_.js +0 -63
- package/.next/static/chunks/0wpges32btt_p.js +0 -1
- package/.next/static/chunks/18qo-4_hfuwko.js +0 -1
- package/.next/static/chunks/1_dsevxz78b97.js +0 -1
- package/.next/static/chunks/2-oqhnxovgl_2.js +0 -44
- package/.next/static/chunks/2et_7fxuzt9cq.js +0 -31
- package/.next/static/chunks/2im7c515bo69p.js +0 -1
- package/.next/static/chunks/2merpuxt1zcvf.js +0 -1
- package/.next/static/chunks/2qb8lge1e2sv2.js +0 -1
- package/.next/static/chunks/2sj0gufu0lojq.css +0 -3
- package/.next/static/chunks/2zloaj9ja_vpy.js +0 -1
- package/.next/static/chunks/3rvy2rc9d_hwt.js +0 -1
- package/.next/static/chunks/3uci2qhsbp444.js +0 -50
- package/.next/static/chunks/3yao5u25-bf0g.js +0 -1
- package/.next/static/chunks/41_0qs6kjmoek.js +0 -1
- package/.next/static/chunks/4395sbjm36lbl.js +0 -1
- package/.next/static/chunks/turbopack-2cevjmbuh84ft.js +0 -1
- package/.next/static/media/icon.2_sgat73yt9an.svg +0 -7
- package/.next/trace +0 -1
- package/.next/trace-build +0 -1
- package/.next/turbopack +0 -0
- /package/.next/{server/app/(app)/page/react-loadable-manifest.json → react-loadable-manifest.json} +0 -0
- /package/.next/static/{CIZxngYjzUw1Kb0KrE473 → FExJe2q2O67X3zxf-SYQ_}/_ssgManifest.js +0 -0
- /package/.next/static/chunks/{0cz1d0mv5g_q7.js → polyfills-42372ed130431b0a.js} +0 -0
- /package/.next/static/media/{5ce348bf30bf5439-s.31988l_ccedte.woff2 → 013b72fa676f92e0-s.woff2} +0 -0
- /package/.next/static/media/{5476f68d60460930-s.2uwcyprjm3xu3.woff2 → 19cfc7226ec3afaa-s.woff2} +0 -0
- /package/.next/static/media/{9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2 → 21350d82a1f187e9-s.woff2} +0 -0
- /package/.next/static/media/{bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2 → 2b5b02fc7e511755-s.woff2} +0 -0
- /package/.next/static/media/{6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2 → 65f03d54ccadf4a8-s.woff2} +0 -0
- /package/.next/static/media/{797e433ab948586e-s.p.0r6juujl39pe6.woff2 → 7d4881bb7e1bf84d-s.p.woff2} +0 -0
- /package/.next/static/media/{1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2 → 8e9860b6e62d6359-s.woff2} +0 -0
- /package/.next/static/media/{4fa387ec64143e14-s.2tuy5pz7dlieh.woff2 → b9408752a0c24fb9-s.woff2} +0 -0
- /package/.next/static/media/{2c55a0e60120577a-s.0-dom-5bn10r2.woff2 → ba9851c3c22cd980-s.woff2} +0 -0
- /package/.next/static/media/{ad66f9afd8947f86-s.3lvt2whj97whp.woff2 → c5fe6dc8356a8c31-s.woff2} +0 -0
- /package/.next/static/media/{2bbe8d2671613f1f-s.0k62hbripvv8p.woff2 → df0a9ae256c0569c-s.woff2} +0 -0
- /package/.next/static/media/{7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2 → e038a29029a234f2-s.woff2} +0 -0
- /package/.next/static/media/{83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2 → e4af272ccee01ff0-s.p.woff2} +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[376],{2378:(e,t,r)=>{"use strict";r.d(t,{Pv:()=>i,Qw:()=>a,XF:()=>o});var n=r(68445);let i=1;function o(e,t){return Math.max(0,e-t)}function a(e,t){if(t<=0)return 0;let r=(0,n.q)(e,0,t),o=t-r,a=r<=i,s=o<=i;return a&&s?r<=o?0:t:a?0:s?t:r}},5736:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},5989:(e,t,r)=>{"use strict";var n,i;function o(e,t,r){function n(r,n){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:n,constr:a,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,n);let i=a.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in r||(r[t]=i[t].bind(r))}}let i=r?.Parent??Object;class o extends i{}function a(e){var t;let i=r?.Parent?new o:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}r.d(t,{EB:()=>ru,YO:()=>rZ,k5:()=>rV,ai:()=>r$,Ik:()=>rN,Yj:()=>rs}),Symbol("zod_brand");class a extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class s extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(n=globalThis).__zod_globalConfig??(n.__zod_globalConfig={});let u=globalThis.__zod_globalConfig;function l(e){return e&&Object.assign(u,e),u}let c=/^[cC][0-9a-z]{6,}$/,d=/^[0-9a-z]+$/,f=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,p=/^[0-9a-vA-V]{20}$/,h=/^[A-Za-z0-9]{27}$/,m=/^[a-zA-Z0-9_-]{21}$/,g=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,v=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,y=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b=/^(?:(?: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])$/,w=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,z=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,k=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,T=/^[A-Za-z0-9_-]*$/,S=/^https?$/,E=/^\+[1-9]\d{6,14}$/,P="(?:(?:\\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])))",$=RegExp(`^${P}$`);function A(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let O=/^-?\d+$/,M=/^-?\d+(?:\.\d+)?$/,R=/^[^A-Z]*$/,j=/^[^a-z]*$/;function I(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function Z(e,t){return"bigint"==typeof t?t.toString():t}function C(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function N(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}let F=Symbol("evaluating");function U(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==F)return void 0===n&&(n=F,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function D(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function V(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function L(e){return JSON.stringify(e)}let J="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function B(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let K=C(()=>{if(u.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function q(e){if(!1===B(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==B(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function H(e){return q(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let W=new Set(["string","number","symbol"]);function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function X(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}let Q={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ee(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function et(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function er(e){return"string"==typeof e?e:e?.message}function en(e,t,r){let n=e.message?e.message:er(e.inst?._zod.def?.error?.(e))??er(t?.error?.(e))??er(r.customError?.(e))??er(r.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=n,t?.reportInput&&(s.input=a),s}function ei(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function eo(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}let ea=o("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),es={number:"number",bigint:"bigint",object:"date"},eu=o("$ZodCheckLessThan",(e,t)=>{ea.init(e,t);let r=es[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),el=o("$ZodCheckGreaterThan",(e,t)=>{ea.init(e,t);let r=es[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ec=o("$ZodCheckMultipleOf",(e,t)=>{ea.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{let n,i,o;if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0==(i=Math.round(n=r.value/t.value),o=Number.EPSILON*Math.max(Math.abs(n),1),Math.abs(n-i)<o?0:n-i))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ed=o("$ZodCheckNumberFormat",(e,t)=>{ea.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,o]=Q[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=o,r&&(n.pattern=O)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s))return void a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),ef=o("$ZodCheckMaxLength",(e,t)=>{var r;ea.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=ei(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ep=o("$ZodCheckMinLength",(e,t)=>{var r;ea.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=ei(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),eh=o("$ZodCheckLengthEquals",(e,t)=>{var r;ea.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let o=ei(n),a=i>t.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),em=o("$ZodCheckStringFormat",(e,t)=>{var r,n;ea.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),eg=o("$ZodCheckRegex",(e,t)=>{em.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ev=o("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=R),em.init(e,t)}),ey=o("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=j),em.init(e,t)}),e_=o("$ZodCheckIncludes",(e,t)=>{ea.init(e,t);let r=G(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),eb=o("$ZodCheckStartsWith",(e,t)=>{ea.init(e,t);let r=RegExp(`^${G(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ew=o("$ZodCheckEndsWith",(e,t)=>{ea.init(e,t);let r=RegExp(`.*${G(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),ez=o("$ZodCheckOverwrite",(e,t)=>{ea.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class ek{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let ex=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Z,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eT=o("$ZodError",ex),eS=o("$ZodError",ex,{Parent:Error}),eE=e=>(t,r,n,i)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new a;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>en(e,o,l())));throw J(t,i?.callee),t}return s.value},eP=e=>async(t,r,n,i)=>{let o=n?{...n,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let t=new(i?.Err??e)(a.issues.map(e=>en(e,o,l())));throw J(t,i?.callee),t}return a.value},e$=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new a;return o.issues.length?{success:!1,error:new(e??eT)(o.issues.map(e=>en(e,i,l())))}:{success:!0,data:o.value}},eA=e$(eS),eO=e=>async(t,r,n)=>{let i=n?{...n,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>en(e,i,l())))}:{success:!0,data:o.value}},eM=eO(eS),eR={major:4,minor:4,patch:3},ej=o("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eR;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=ee(e);for(let o of t){if(o._zod.def.when){if(function(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new a;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=ee(e,t)))});else{if(e.issues.length===t)continue;i||(i=ee(e,t))}}return n?n.then(()=>e):e},r=(r,i,o)=>{if(ee(r))return r.aborted=!0,r;let s=t(i,n,o);if(s instanceof Promise){if(!1===o.async)throw new a;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,o)):r(t,i,o)}let s=e._zod.parse(i,o);if(s instanceof Promise){if(!1===o.async)throw new a;return s.then(e=>t(e,n,o))}return t(s,n,o)}}U(e,"~standard",()=>({validate:t=>{try{let r=eA(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return eM(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),eI=o("$ZodString",(e,t)=>{var r;let n;ej.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=(r=e._zod.bag)?`[\\s\\S]{${r?.minimum??0},${r?.maximum??""}}`:"[\\s\\S]*",RegExp(`^${n}$`)),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),eZ=o("$ZodStringFormat",(e,t)=>{em.init(e,t),eI.init(e,t)}),eC=o("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=v),eZ.init(e,t)}),eN=o("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=y(e))}else t.pattern??(t.pattern=y());eZ.init(e,t)}),eF=o("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_),eZ.init(e,t)}),eU=o("$ZodURL",(e,t)=>{eZ.init(e,t),e._zod.check=r=>{try{let n=r.value.trim();if(!t.normalize&&t.protocol?.source===S.source&&!/^https?:\/\//i.test(n))return void r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});let i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),eD=o("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),eZ.init(e,t)}),eV=o("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=m),eZ.init(e,t)}),eL=o("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=c),eZ.init(e,t)}),eJ=o("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=d),eZ.init(e,t)}),eB=o("$ZodULID",(e,t)=>{t.pattern??(t.pattern=f),eZ.init(e,t)}),eK=o("$ZodXID",(e,t)=>{t.pattern??(t.pattern=p),eZ.init(e,t)}),eq=o("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=h),eZ.init(e,t)}),eH=o("$ZodISODateTime",(e,t)=>{let r,n,i;t.pattern??(r=A({precision:t.precision}),n=["Z"],t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),i=`${r}(?:${n.join("|")})`,t.pattern=RegExp(`^${P}T(?:${i})$`)),eZ.init(e,t)}),eW=o("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$),eZ.init(e,t)}),eG=o("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${A(t)}$`)),eZ.init(e,t)}),eY=o("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=g),eZ.init(e,t)}),eX=o("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=b),eZ.init(e,t),e._zod.bag.format="ipv4"}),eQ=o("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w),eZ.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),e0=o("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=z),eZ.init(e,t)}),e1=o("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=k),eZ.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function e2(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let e9=o("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=x),eZ.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{e2(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),e4=o("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=T),eZ.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{!function(e){if(!T.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return e2(t.padEnd(4*Math.ceil(t.length/4),"="))}(r.value)&&r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),e5=o("$ZodE164",(e,t)=>{t.pattern??(t.pattern=E),eZ.init(e,t)}),e6=o("$ZodJWT",(e,t)=>{eZ.init(e,t),e._zod.check=r=>{!function(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(r.value,t.alg)&&r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),e7=o("$ZodNumber",(e,t)=>{ej.init(e,t),e._zod.pattern=e._zod.bag.pattern??M,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),e3=o("$ZodNumberFormat",(e,t)=>{ed.init(e,t),e7.init(e,t)}),e8=o("$ZodUnknown",(e,t)=>{ej.init(e,t),e._zod.parse=e=>e}),te=o("$ZodNever",(e,t)=>{ej.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function tt(e,t,r){e.issues.length&&t.issues.push(...et(r,e.issues)),t.value[r]=e.value}let tr=o("$ZodArray",(e,t)=>{ej.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let a=i[e],s=t.element._zod.run({value:a,issues:[]},n);s instanceof Promise?o.push(s.then(t=>tt(t,r,e))):tt(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function tn(e,t,r,n,i,o){let a=r in n;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...et(r,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}void 0===e.value?a&&(t.value[r]=void 0):t.value[r]=e.value}function ti(e){var t;let r=Object.keys(e.shape);for(let t of r)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let n=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function to(e,t,r,n,i,o){let a=[],s=i.keySet,u=i.catchall._zod,l=u.def.type,c="optional"===u.optin,d="optional"===u.optout;for(let i in t){if("__proto__"===i||s.has(i))continue;if("never"===l){a.push(i);continue}let o=u.run({value:t[i],issues:[]},n);o instanceof Promise?e.push(o.then(e=>tn(e,r,i,t,c,d))):tn(o,r,i,t,c,d)}return(a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length)?Promise.all(e).then(()=>r):r}let ta=o("$ZodObject",(e,t)=>{let r;ej.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let i=C(()=>ti(t));U(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let o=t.catchall;e._zod.parse=(t,n)=>{r??(r=i.value);let a=t.value;if(!B(a))return t.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),t;t.value={};let s=[],u=r.shape;for(let e of r.keys){let r=u[e],i="optional"===r._zod.optin,o="optional"===r._zod.optout,l=r._zod.run({value:a[e],issues:[]},n);l instanceof Promise?s.push(l.then(r=>tn(r,t,e,a,i,o))):tn(l,t,e,a,i,o)}return o?to(s,a,t,n,i.value,e):s.length?Promise.all(s).then(()=>t):t}}),ts=o("$ZodObjectJIT",(e,t)=>{let r,n;ta.init(e,t);let i=e._zod.parse,o=C(()=>ti(t)),a=!u.jitless,s=a&&K.value,l=t.catchall;e._zod.parse=(u,c)=>{n??(n=o.value);let d=u.value;return B(d)?a&&s&&c?.async===!1&&!0!==c.jitless?(r||(r=(e=>{let t=new ek(["shape","payload","ctx"]),r=o.value,n=e=>{let t=L(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),a=0;for(let e of r.keys)i[e]=`key_${a++}`;for(let o of(t.write("const newResult = {};"),r.keys)){let r=i[o],a=L(o),s=e[o],u=s?._zod?.optin==="optional",l=s?._zod?.optout==="optional";t.write(`const ${r} = ${n(o)};`),u&&l?t.write(`
|
|
2
|
+
if (${r}.issues.length) {
|
|
3
|
+
if (${a} in input) {
|
|
4
|
+
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
5
|
+
...iss,
|
|
6
|
+
path: iss.path ? [${a}, ...iss.path] : [${a}]
|
|
7
|
+
})));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
if (${r}.value === undefined) {
|
|
12
|
+
if (${a} in input) {
|
|
13
|
+
newResult[${a}] = undefined;
|
|
14
|
+
}
|
|
15
|
+
} else {
|
|
16
|
+
newResult[${a}] = ${r}.value;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
`):u?t.write(`
|
|
20
|
+
if (${r}.issues.length) {
|
|
21
|
+
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
22
|
+
...iss,
|
|
23
|
+
path: iss.path ? [${a}, ...iss.path] : [${a}]
|
|
24
|
+
})));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (${r}.value === undefined) {
|
|
28
|
+
if (${a} in input) {
|
|
29
|
+
newResult[${a}] = undefined;
|
|
30
|
+
}
|
|
31
|
+
} else {
|
|
32
|
+
newResult[${a}] = ${r}.value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
`):t.write(`
|
|
36
|
+
const ${r}_present = ${a} in input;
|
|
37
|
+
if (${r}.issues.length) {
|
|
38
|
+
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
39
|
+
...iss,
|
|
40
|
+
path: iss.path ? [${a}, ...iss.path] : [${a}]
|
|
41
|
+
})));
|
|
42
|
+
}
|
|
43
|
+
if (!${r}_present && !${r}.issues.length) {
|
|
44
|
+
payload.issues.push({
|
|
45
|
+
code: "invalid_type",
|
|
46
|
+
expected: "nonoptional",
|
|
47
|
+
input: undefined,
|
|
48
|
+
path: [${a}]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (${r}_present) {
|
|
53
|
+
if (${r}.value === undefined) {
|
|
54
|
+
newResult[${a}] = undefined;
|
|
55
|
+
} else {
|
|
56
|
+
newResult[${a}] = ${r}.value;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),u=r(u,c),l)?to([],d,u,c,n,e):u:i(u,c):(u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u)}});function tu(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!ee(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>en(e,n,l())))}),t)}let tl=o("$ZodUnion",(e,t)=>{ej.init(e,t),U(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),U(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),U(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),U(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>N(e.source)).join("|")})$`)}});let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(n,i)=>{if(r)return r(n,i);let o=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},i);if(t instanceof Promise)a.push(t),o=!0;else{if(0===t.issues.length)return t;a.push(t)}}return o?Promise.all(a).then(t=>tu(t,n,e,i)):tu(a,n,e,i)}}),tc=o("$ZodIntersection",(e,t)=>{ej.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),o=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,r])=>td(e,t,r)):td(e,i,o)}});function td(e,t,r){let n,i=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(n??(n=r),r.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&n&&e.issues.push({...n,keys:o}),ee(e))return e;let a=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(q(t)&&q(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};o[n]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}let tf=o("$ZodEnum",(e,t)=>{ej.init(e,t);let r=I(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>W.has(typeof e)).map(e=>"string"==typeof e?G(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let o=t.value;return n.has(o)||t.issues.push({code:"invalid_value",values:r,input:o,inst:e}),t}}),tp=o("$ZodTransform",(e,t)=>{ej.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new s(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r.fallback=!0,r));if(i instanceof Promise)throw new a;return r.value=i,r.fallback=!0,r}});function th(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let tm=o("$ZodOptional",(e,t)=>{ej.init(e,t),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${N(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=e.value,i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>th(e,n)):th(i,n)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),tg=o("$ZodExactOptional",(e,t)=>{tm.init(e,t),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),tv=o("$ZodNullable",(e,t)=>{ej.init(e,t),U(e._zod,"optin",()=>t.innerType._zod.optin),U(e._zod,"optout",()=>t.innerType._zod.optout),U(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${N(e.source)}|null)$`):void 0}),U(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),ty=o("$ZodDefault",(e,t)=>{ej.init(e,t),e._zod.optin="optional",U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>t_(e,t)):t_(n,t)}});function t_(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let tb=o("$ZodPrefault",(e,t)=>{ej.init(e,t),e._zod.optin="optional",U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),tw=o("$ZodNonOptional",(e,t)=>{ej.init(e,t),U(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>tz(t,e)):tz(i,e)}});function tz(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let tk=o("$ZodCatch",(e,t)=>{ej.init(e,t),e._zod.optin="optional",U(e._zod,"optout",()=>t.innerType._zod.optout),U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>en(e,r,l()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>en(e,r,l()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),tx=o("$ZodPipe",(e,t)=>{ej.init(e,t),U(e._zod,"values",()=>t.in._zod.values),U(e._zod,"optin",()=>t.in._zod.optin),U(e._zod,"optout",()=>t.out._zod.optout),U(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>tT(e,t.in,r)):tT(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>tT(e,t.out,r)):tT(n,t.out,r)}});function tT(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}let tS=o("$ZodReadonly",(e,t)=>{ej.init(e,t),U(e._zod,"propValues",()=>t.innerType._zod.propValues),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"optin",()=>t.innerType?._zod?.optin),U(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(tE):tE(n)}});function tE(e){return e.value=Object.freeze(e.value),e}let tP=o("$ZodCustom",(e,t)=>{ea.init(e,t),ej.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>t$(t,r,n,e));t$(i,r,n,e)}});function t$(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(eo(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class tA{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(i=globalThis).__zod_globalRegistry??(i.__zod_globalRegistry=new tA);let tO=globalThis.__zod_globalRegistry;function tM(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...X(t)})}function tR(e,t){return new eu({check:"less_than",...X(t),value:e,inclusive:!1})}function tj(e,t){return new eu({check:"less_than",...X(t),value:e,inclusive:!0})}function tI(e,t){return new el({check:"greater_than",...X(t),value:e,inclusive:!1})}function tZ(e,t){return new el({check:"greater_than",...X(t),value:e,inclusive:!0})}function tC(e,t){return new ec({check:"multiple_of",...X(t),value:e})}function tN(e,t){return new ef({check:"max_length",...X(t),maximum:e})}function tF(e,t){return new ep({check:"min_length",...X(t),minimum:e})}function tU(e,t){return new eh({check:"length_equals",...X(t),length:e})}function tD(e){return new ez({check:"overwrite",tx:e})}function tV(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tO,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function tL(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let n={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,n);else{let r=a.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,r,n)}let o=e._zod.parent;o&&(a.ref||(a.ref=o),tL(o,t,n),t.seen.get(o).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),"input"===t.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,n);if("set"===i.type)return e(i.valueType,n);if("lazy"===i.type)return e(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,n);if("intersection"===i.type)return e(i.left,n)||e(i.right,n);if("record"===i.type||"map"===i.type)return e(i.keyType,n)||e(i.valueType,n);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,n)||e(i.out,n);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,n))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,n))return!0;if(i.rest&&e(i.rest,n))return!0}return!1}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&"_prefault"in a.schema&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function tJ(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=n.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(r,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:i,defId:o}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(r)return{ref:i(r)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${n}/${o}`}}if(t[1]===r)return{ref:"#"};let i=`#/${n}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+o}})(t);n.def={...n.schema},o&&(n.defId=o);let a=n.schema;for(let e in a)delete a[e];a.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
|
|
61
|
+
|
|
62
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let n=r[1];if(t===r[0]){i(r);continue}if(e.external){let n=e.external.registry.get(r[0])?.id;if(t!==r[0]&&n){i(r);continue}}if(e.metadataRegistry.get(r[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){i(r);continue}}}function tB(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let r=e.seen.get(t);if(null===r.ref)return;let i=r.def??r.schema,o={...i},a=r.ref;if(r.ref=null,a){n(a);let r=e.seen.get(a),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,o),t._zod.parent===a)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(s.$ref&&r.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(i[e])===JSON.stringify(r.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==a){n(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(r)}Object.assign(i,r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&i.id===o&&delete i.id;let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?i.$defs=a:i.definitions=a);try{let r=JSON.parse(JSON.stringify(i));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:tK(t,"input",e.processors),output:tK(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}let tK=(e,t,r={})=>n=>{let{libraryOptions:i,target:o}=n??{},a=tV({...i??{},target:o,io:t,processors:r});return tL(e,a),tJ(a,e),tB(a,e)},tq={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tH=(e,t,r,n)=>{let i=e._zod.def;tL(i.innerType,t,n),t.seen.get(e).ref=i.innerType},tW=o("ZodISODateTime",(e,t)=>{eH.init(e,t),ru.init(e,t)}),tG=o("ZodISODate",(e,t)=>{eW.init(e,t),ru.init(e,t)}),tY=o("ZodISOTime",(e,t)=>{eG.init(e,t),ru.init(e,t)}),tX=o("ZodISODuration",(e,t)=>{eY.init(e,t),ru.init(e,t)}),tQ=o("ZodError",(e,t)=>{eT.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let r={_errors:[]},n=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>n({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)n({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)n({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)r._errors.push(t(o));else{let n=r,i=0;for(;i<e.length;){let r=e[i];i===e.length-1?(n[r]=n[r]||{_errors:[]},n[r]._errors.push(t(o))):n[r]=n[r]||{_errors:[]},n=n[r],i++}}}};return n(e),r})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Z,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Z,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),t0=eE(tQ),t1=eP(tQ),t2=e$(tQ),t9=eO(tQ),t4=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eE(tQ)(e,t,n)},t5=(e,t,r)=>eE(tQ)(e,t,r),t6=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eP(tQ)(e,t,n)},t7=async(e,t,r)=>eP(tQ)(e,t,r),t3=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return e$(tQ)(e,t,n)},t8=(e,t,r)=>e$(tQ)(e,t,r),re=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eO(tQ)(e,t,n)},rt=async(e,t,r)=>eO(tQ)(e,t,r),rr=new WeakMap;function rn(e,t,r){let n=Object.getPrototypeOf(e),i=rr.get(n);if(i||(i=new Set,rr.set(n,i)),!i.has(t))for(let e in i.add(t),r){let t=r[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,get(){let r=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:r}),r},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let ri=o("ZodType",(e,t)=>(ej.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tK(e,"input"),output:tK(e,"output")}}),e.toJSONSchema=((e,t={})=>r=>{let n=tV({...r,processors:t});return tL(e,n),tJ(n,e),tB(n,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,r)=>t0(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>t2(e,t,r),e.parseAsync=async(t,r)=>t1(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>t9(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>t4(e,t,r),e.decode=(t,r)=>t5(e,t,r),e.encodeAsync=async(t,r)=>t6(e,t,r),e.decodeAsync=async(t,r)=>t7(e,t,r),e.safeEncode=(t,r)=>t3(e,t,r),e.safeDecode=(t,r)=>t8(e,t,r),e.safeEncodeAsync=async(t,r)=>re(e,t,r),e.safeDecodeAsync=async(t,r)=>rt(e,t,r),rn(e,"ZodType",{check(...e){let t=this.def;return this.clone(V(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Y(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new r2({type:"custom",check:"custom",fn:e,...X(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){var r;let n,i;return r=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(eo(e,t.value,n._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=n),e.continue??(e.continue=!n._zod.def.abort),t.issues.push(eo(e)))},e(t.value,t)),(i=new ea({check:"custom",...X(t)}))._zod.check=r,n=i}(e,t))},overwrite(e){return this.check(tD(e))},optional(){return rB(this)},exactOptional(){var e;return e=this,new rK({type:"optional",innerType:e})},nullable(){return rH(this)},nullish(){return rB(rH(this))},nonoptional(e){var t;return t=this,new rY({type:"nonoptional",innerType:t,...X(e)})},array(){return rZ(this)},or(e){return new rF({type:"union",options:[this,e],...X(void 0)})},and(e){var t;return t=this,new rU({type:"intersection",left:t,right:e})},transform(e){return r0(this,new rL({type:"transform",transform:e}))},default(e){var t,r;return t=this,r=e,new rW({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():H(r)}})},prefault(e){var t,r;return t=this,r=e,new rG({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof r?r():H(r)}})},catch(e){var t,r;return t=this,new rX({type:"catch",innerType:t,catchValue:"function"==typeof(r=e)?r:()=>r})},pipe(e){return r0(this,e)},readonly(){var e;return e=this,new r1({type:"readonly",innerType:e})},describe(e){let t=this.clone();return tO.add(t,{description:e}),t},meta(...e){if(0===e.length)return tO.get(this);let t=this.clone();return tO.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>tO.get(e)?.description,configurable:!0}),e)),ro=o("_ZodString",(e,t)=>{eI.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{r.type="string";let{minimum:i,maximum:o,format:a,patterns:s,contentEncoding:u}=e._zod.bag;if("number"==typeof i&&(r.minLength=i),"number"==typeof o&&(r.maxLength=o),a&&(r.format=tq[a]??a,""===r.format&&delete r.format,"time"===a&&delete r.format),u&&(r.contentEncoding=u),s&&s.size>0){let e=[...s];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,r,0);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,rn(e,"_ZodString",{regex(...e){return this.check(function(e,t){return new eg({check:"string_format",format:"regex",...X(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new e_({check:"string_format",format:"includes",...X(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new eb({check:"string_format",format:"starts_with",...X(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new ew({check:"string_format",format:"ends_with",...X(t),suffix:e})}(...e))},min(...e){return this.check(tF(...e))},max(...e){return this.check(tN(...e))},length(...e){return this.check(tU(...e))},nonempty(...e){return this.check(tF(1,...e))},lowercase(e){return this.check(new ev({check:"string_format",format:"lowercase",...X(e)}))},uppercase(e){return this.check(new ey({check:"string_format",format:"uppercase",...X(e)}))},trim(){return this.check(tD(e=>e.trim()))},normalize(...e){return this.check(function(e){return tD(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(tD(e=>e.toLowerCase()))},toUpperCase(){return this.check(tD(e=>e.toUpperCase()))},slugify(){return this.check(tD(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}})}),ra=o("ZodString",(e,t)=>{eI.init(e,t),ro.init(e,t),e.email=t=>e.check(new rl({type:"string",format:"email",check:"string_format",abort:!1,...X(t)})),e.url=t=>e.check(new rf({type:"string",format:"url",check:"string_format",abort:!1,...X(t)})),e.jwt=t=>e.check(new rE({type:"string",format:"jwt",check:"string_format",abort:!1,...X(t)})),e.emoji=t=>e.check(new rp({type:"string",format:"emoji",check:"string_format",abort:!1,...X(t)})),e.guid=t=>e.check(tM(rc,t)),e.uuid=t=>e.check(new rd({type:"string",format:"uuid",check:"string_format",abort:!1,...X(t)})),e.uuidv4=t=>e.check(new rd({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(t)})),e.uuidv6=t=>e.check(new rd({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(t)})),e.uuidv7=t=>e.check(new rd({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(t)})),e.nanoid=t=>e.check(new rh({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(t)})),e.guid=t=>e.check(tM(rc,t)),e.cuid=t=>e.check(new rm({type:"string",format:"cuid",check:"string_format",abort:!1,...X(t)})),e.cuid2=t=>e.check(new rg({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(t)})),e.ulid=t=>e.check(new rv({type:"string",format:"ulid",check:"string_format",abort:!1,...X(t)})),e.base64=t=>e.check(new rx({type:"string",format:"base64",check:"string_format",abort:!1,...X(t)})),e.base64url=t=>e.check(new rT({type:"string",format:"base64url",check:"string_format",abort:!1,...X(t)})),e.xid=t=>e.check(new ry({type:"string",format:"xid",check:"string_format",abort:!1,...X(t)})),e.ksuid=t=>e.check(new r_({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(t)})),e.ipv4=t=>e.check(new rb({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(t)})),e.ipv6=t=>e.check(new rw({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(t)})),e.cidrv4=t=>e.check(new rz({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(t)})),e.cidrv6=t=>e.check(new rk({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(t)})),e.e164=t=>e.check(new rS({type:"string",format:"e164",check:"string_format",abort:!1,...X(t)})),e.datetime=t=>e.check(new tW({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(t)})),e.date=t=>e.check(new tG({type:"string",format:"date",check:"string_format",...X(t)})),e.time=t=>e.check(new tY({type:"string",format:"time",check:"string_format",precision:null,...X(t)})),e.duration=t=>e.check(new tX({type:"string",format:"duration",check:"string_format",...X(t)}))});function rs(e){return new ra({type:"string",...X(e)})}let ru=o("ZodStringFormat",(e,t)=>{eZ.init(e,t),ro.init(e,t)}),rl=o("ZodEmail",(e,t)=>{eF.init(e,t),ru.init(e,t)}),rc=o("ZodGUID",(e,t)=>{eC.init(e,t),ru.init(e,t)}),rd=o("ZodUUID",(e,t)=>{eN.init(e,t),ru.init(e,t)}),rf=o("ZodURL",(e,t)=>{eU.init(e,t),ru.init(e,t)}),rp=o("ZodEmoji",(e,t)=>{eD.init(e,t),ru.init(e,t)}),rh=o("ZodNanoID",(e,t)=>{eV.init(e,t),ru.init(e,t)}),rm=o("ZodCUID",(e,t)=>{eL.init(e,t),ru.init(e,t)}),rg=o("ZodCUID2",(e,t)=>{eJ.init(e,t),ru.init(e,t)}),rv=o("ZodULID",(e,t)=>{eB.init(e,t),ru.init(e,t)}),ry=o("ZodXID",(e,t)=>{eK.init(e,t),ru.init(e,t)}),r_=o("ZodKSUID",(e,t)=>{eq.init(e,t),ru.init(e,t)}),rb=o("ZodIPv4",(e,t)=>{eX.init(e,t),ru.init(e,t)}),rw=o("ZodIPv6",(e,t)=>{eQ.init(e,t),ru.init(e,t)}),rz=o("ZodCIDRv4",(e,t)=>{e0.init(e,t),ru.init(e,t)}),rk=o("ZodCIDRv6",(e,t)=>{e1.init(e,t),ru.init(e,t)}),rx=o("ZodBase64",(e,t)=>{e9.init(e,t),ru.init(e,t)}),rT=o("ZodBase64URL",(e,t)=>{e4.init(e,t),ru.init(e,t)}),rS=o("ZodE164",(e,t)=>{e5.init(e,t),ru.init(e,t)}),rE=o("ZodJWT",(e,t)=>{e6.init(e,t),ru.init(e,t)}),rP=o("ZodNumber",(e,t)=>{e7.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let{minimum:i,maximum:o,format:a,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;"string"==typeof a&&a.includes("int")?r.type="integer":r.type="number";let c="number"==typeof l&&l>=(i??-1/0),d="number"==typeof u&&u<=(o??1/0),f="draft-04"===t.target||"openapi-3.0"===t.target;c?f?(r.minimum=l,r.exclusiveMinimum=!0):r.exclusiveMinimum=l:"number"==typeof i&&(r.minimum=i),d?f?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:"number"==typeof o&&(r.maximum=o),"number"==typeof s&&(r.multipleOf=s)})(e,t,r,0),rn(e,"ZodNumber",{gt(e,t){return this.check(tI(e,t))},gte(e,t){return this.check(tZ(e,t))},min(e,t){return this.check(tZ(e,t))},lt(e,t){return this.check(tR(e,t))},lte(e,t){return this.check(tj(e,t))},max(e,t){return this.check(tj(e,t))},int(e){return this.check(rO(e))},safe(e){return this.check(rO(e))},positive(e){return this.check(tI(0,e))},nonnegative(e){return this.check(tZ(0,e))},negative(e){return this.check(tR(0,e))},nonpositive(e){return this.check(tj(0,e))},multipleOf(e,t){return this.check(tC(e,t))},step(e,t){return this.check(tC(e,t))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function r$(e){return new rP({type:"number",checks:[],...X(e)})}let rA=o("ZodNumberFormat",(e,t)=>{e3.init(e,t),rP.init(e,t)});function rO(e){return new rA({type:"number",check:"number_format",abort:!1,format:"safeint",...X(e)})}let rM=o("ZodUnknown",(e,t)=>{e8.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function rR(){return new rM({type:"unknown"})}let rj=o("ZodNever",(e,t)=>{te.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.not={}}}),rI=o("ZodArray",(e,t)=>{tr.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def,{minimum:o,maximum:a}=e._zod.bag;"number"==typeof o&&(r.minItems=o),"number"==typeof a&&(r.maxItems=a),r.type="array",r.items=tL(i.element,t,{...n,path:[...n.path,"items"]})})(e,t,r,n),e.element=t.element,rn(e,"ZodArray",{min(e,t){return this.check(tF(e,t))},nonempty(e){return this.check(tF(1,e))},max(e,t){return this.check(tN(e,t))},length(e,t){return this.check(tU(e,t))},unwrap(){return this.element}})});function rZ(e,t){return new rI({type:"array",element:e,...X(t)})}let rC=o("ZodObject",(e,t)=>{ts.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def;r.type="object",r.properties={};let o=i.shape;for(let e in o)r.properties[e]=tL(o[e],t,{...n,path:[...n.path,"properties",e]});let a=new Set([...new Set(Object.keys(o))].filter(e=>{let r=i.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));a.size>0&&(r.required=Array.from(a)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=tL(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)})(e,t,r,n),U(e,"shape",()=>t.shape),rn(e,"ZodObject",{keyof(){return rV(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:rR()})},loose(){return this.clone({...this._zod.def,catchall:rR()})},strict(){return this.clone({...this._zod.def,catchall:new rj({type:"never",...X(void 0)})})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return function(e,t){if(!q(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=V(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return D(this,"shape",r),r}});return Y(e,n)}(this,e)},safeExtend(e){var t=this;if(!q(e))throw Error("Invalid input to safeExtend: expected a plain object");let r=V(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return D(this,"shape",r),r}});return Y(t,r)},merge(e){var t=this;if(t._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=V(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e._zod.def.shape};return D(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Y(t,r)},pick(e){return function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=V(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return D(this,"shape",e),e},checks:[]});return Y(e,i)}(this,e)},omit(e){return function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=V(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return D(this,"shape",n),n},checks:[]});return Y(e,i)}(this,e)},partial(...e){return function(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=V(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return D(this,"shape",i),i},checks:[]});return Y(t,i)}(rJ,this,e[0])},required(...e){var t,r;let n;return t=this,r=e[0],n=V(t._zod.def,{get shape(){let e=t._zod.def.shape,n={...e};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new rY({type:"nonoptional",innerType:e[t]}))}else for(let t in e)n[t]=new rY({type:"nonoptional",innerType:e[t]});return D(this,"shape",n),n}}),Y(t,n)}})});function rN(e,t){return new rC({type:"object",shape:e??{},...X(t)})}let rF=o("ZodUnion",(e,t)=>{tl.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=!1===(i=e._zod.def).inclusive,a=i.options.map((e,r)=>tL(e,t,{...n,path:[...n.path,o?"oneOf":"anyOf",r]})),void(o?r.oneOf=a:r.anyOf=a)},e.options=t.options}),rU=o("ZodIntersection",(e,t)=>{tc.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a,s;return o=tL((i=e._zod.def).left,t,{...n,path:[...n.path,"allOf",0]}),a=tL(i.right,t,{...n,path:[...n.path,"allOf",1]}),void(r.allOf=[...(s=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...s(a)?a.allOf:[a]])}}),rD=o("ZodEnum",(e,t)=>{tf.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;(i=I(e._zod.def.entries)).every(e=>"number"==typeof e)&&(r.type="number"),i.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=i},e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new rD({...t,checks:[],...X(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new rD({...t,checks:[],...X(n),entries:i})}});function rV(e,t){return new rD({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...X(t)})}let rL=o("ZodTransform",(e,t)=>{tp.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")})(0,e,0,0),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new s(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(eo(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(eo(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r.fallback=!0,r)):(r.value=i,r.fallback=!0,r)}}),rJ=o("ZodOptional",(e,t)=>{tm.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tH(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function rB(e){return new rJ({type:"optional",innerType:e})}let rK=o("ZodExactOptional",(e,t)=>{tg.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tH(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}),rq=o("ZodNullable",(e,t)=>{tv.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=tL((i=e._zod.def).innerType,t,n),a=t.seen.get(e),void("openapi-3.0"===t.target?(a.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function rH(e){return new rq({type:"nullable",innerType:e})}let rW=o("ZodDefault",(e,t)=>{ty.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tL((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),rG=o("ZodPrefault",(e,t)=>{tb.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tL((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},e.unwrap=()=>e._zod.def.innerType}),rY=o("ZodNonOptional",(e,t)=>{tw.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tL((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType}),rX=o("ZodCatch",(e,t)=>{tk.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i,o=e._zod.def;tL(o.innerType,t,n),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=i})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),rQ=o("ZodPipe",(e,t)=>{tx.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=(i=e._zod.def).in._zod.traits.has("$ZodTransform"),void(tL(a="input"===t.io?o?i.out:i.in:i.out,t,n),t.seen.get(e).ref=a)},e.in=t.in,e.out=t.out});function r0(e,t){return new rQ({type:"pipe",in:e,out:t})}let r1=o("ZodReadonly",(e,t)=>{tS.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tL((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.readOnly=!0},e.unwrap=()=>e._zod.def.innerType}),r2=o("ZodCustom",(e,t)=>{tP.init(e,t),ri.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")})(0,e,0,0)})},8202:(e,t,r)=>{"use strict";function n(e,t){e&&Object.assign(e.style,t)}r.d(t,{O:()=>i,Y:()=>n});let i={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"}},8272:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(6791),i=r(48232);function o(e){let t=e.getBoundingClientRect(),r=(0,n.zk)(e);if(i.I)return t;let o=r.getComputedStyle(e,"::before"),a=r.getComputedStyle(e,"::after");if("none"===o.content&&"none"===a.content)return t;let s=parseFloat(o.width)||0,u=parseFloat(o.height)||0,l=parseFloat(a.width)||0,c=parseFloat(a.height)||0,d=Math.max(t.width,s,l),f=Math.max(t.height,u,c),p=d-t.width,h=f-t.height;return{left:t.left-p/2,right:t.right+p/2,top:t.top-h/2,bottom:t.bottom+h/2}}},10857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return _},NormalizeError:function(){return v},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return u},getURL:function(){return l},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return w}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>a.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=u();return e.substring(t.length)}function c(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${c(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class v extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class _ extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},11012:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},11699:(e,t,r)=>{"use strict";r.d(t,{w:()=>l});var n=r(12115),i=r(30271),o=r(69938),a=r(40716),s=r(84052),u=r(82009);let l=n.forwardRef(function(e,t){let{render:r,className:n,style:l,...c}=e,{store:d}=(0,a.ll)(),f=(0,i.P)(d,u.T.open);return(0,o.o)("span",e,{state:{open:f},ref:t,props:[{"aria-hidden":!0,children:"▼"},c],stateAttributesMapping:s.qV})})},14488:(e,t,r)=>{var n=r(56814);t.operation=function(e){return new n(t.timeouts(e),{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(e,t){return e-t}),n},t.createTimeout=function(e,t){var r=Math.round((t.randomize?Math.random()+1:1)*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return Math.min(r,t.maxTimeout)},t.wrap=function(e,r,n){if(r instanceof Array&&(n=r,r=null),!n)for(var i in n=[],e)"function"==typeof e[i]&&n.push(i);for(var o=0;o<n.length;o++){var a=n[o],s=e[a];e[a]=(function(n){var i=t.operation(r),o=Array.prototype.slice.call(arguments,1),a=o.pop();o.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),a.apply(this,arguments))}),i.attempt(function(){n.apply(e,o)})}).bind(e,s),e[a].options=r}}},14577:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},15483:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>s,u:()=>d,Md:()=>c,yg:()=>u,T:()=>l});var n=r(12115);function i(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}var o=r(95155);function a(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function s(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(a(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}function u(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return i(e)}function l(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?i(e.value):i(e)}function c(e,t,r){if(r&&null!=e)return r(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??u(e,r);if(Array.isArray(t)){let n=a(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:u(e,r)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return u(e,r)}function d(e,t,r){return e.reduce((e,i,a)=>(a>0&&e.push(", "),e.push((0,o.jsx)(n.Fragment,{children:c(i,t,r)},a)),e),[])}},15702:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});var n=r(12115),i=r(81456),o=r(31814),a=r(66652);function s(e,t,r,s){let[u,l]=n.useState(!1);(0,a.g)(()=>{if(!e||!t||null==r)return void l(!1);let n=(0,i.R)(r).documentElement.clientWidth,o=r.offsetWidth;l(n>0&&o>0&&o>=n-20)},[e,t,r]),(0,o.K)(e&&(!t||u),s)}},16294:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},19766:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(12115),i=r(40716),o=r(90366),a=r(69938);let s=n.memo(n.forwardRef(function(e,t){let{index:r,textRef:s,selectedByFocus:u,hasRegistered:l}=(0,o.G)(),{firstItemTextRef:c,selectedItemTextRef:d}=(0,i.ll)(),{render:f,className:p,style:h,...m}=e,g=n.useCallback(e=>{e&&(l&&0===r&&(c.current=e),l&&u&&(d.current=e))},[c,d,r,u,l]);return(0,a.o)("div",e,{ref:[g,t,s],props:m})}))},20091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(66388)._(r(31393)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${i}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},21172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(12115);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28539:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(95155);let i="base-ui-disable-scrollbar",o={className:i,getElement:e=>(0,n.jsx)("style",{nonce:e,href:i,precedence:"base-ui:low",children:`.${i}{scrollbar-width:none}.${i}::-webkit-scrollbar{display:none}`})}},29842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},31393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},33650:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder-x",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9.5 10.5 5 5",key:"ra9qjz"}],["path",{d:"m14.5 10.5-5 5",key:"l2rkpq"}]])},34181:(e,t,r)=>{"use strict";r.d(t,{l:()=>k});var n=r(12115),i=r(96354),o=r(66652),a=r(23068),s=r(30271),u=r(40716),l=r(67894),c=r(4269),d=r(76380),f=r(53976),p=r(69679),h=r(8202),m=r(82009),g=r(7049),v=r(76175),y=r(70035),_=r(62424),b=r(15702),w=r(95155);let z={position:"fixed"},k=n.forwardRef(function(e,t){let{anchor:r,positionMethod:k="absolute",className:x,render:T,side:S="bottom",align:E="center",sideOffset:P=0,alignOffset:$=0,collisionBoundary:A="clipping-ancestors",collisionPadding:O,arrowPadding:M=5,sticky:R=!1,disableAnchorTracking:j,alignItemWithTrigger:I=!0,collisionAvoidance:Z=p.uD,style:C,...N}=e,{store:F,listRef:U,labelsRef:D,alignItemWithTriggerActiveRef:V,selectedItemTextRef:L,valuesRef:J,initialValueRef:B,popupRef:K,setValue:q}=(0,u.ll)(),H=(0,u.hG)(),W=(0,s.P)(F,m.T.open),G=(0,s.P)(F,m.T.mounted),Y=(0,s.P)(F,m.T.modal),X=(0,s.P)(F,m.T.value),Q=(0,s.P)(F,m.T.openMethod),ee=(0,s.P)(F,m.T.positionerElement),et=(0,s.P)(F,m.T.triggerElement),er=(0,s.P)(F,m.T.isItemEqualToValue),en=(0,s.P)(F,m.T.transitionStatus),ei=n.useRef(null),eo=n.useRef(null),[ea,es]=n.useState(I),eu=G&&ea&&"touch"!==Q;G||ea===I||es(I),(0,o.g)(()=>{!G&&(m.T.scrollUpArrowVisible(F.state)&&F.set("scrollUpArrowVisible",!1),m.T.scrollDownArrowVisible(F.state)&&F.set("scrollDownArrowVisible",!1))},[F,G]),n.useImperativeHandle(V,()=>eu),(0,b.G)((eu||Y)&&W,"touch"===Q,ee,et);let el=(0,c.s)({anchor:r,floatingRootContext:H,positionMethod:k,mounted:G,side:S,sideOffset:P,align:E,alignOffset:$,arrowPadding:M,collisionBoundary:A,collisionPadding:O,sticky:R,disableAnchorTracking:j??eu,collisionAvoidance:Z,keepMounted:!0}),ec=eu?"none":el.side,ed=eu?z:el.positionerStyles,ef={open:W,side:ec,align:el.align,anchorHidden:el.anchorHidden};(0,o.g)(()=>{F.set("popupSide",el.side)},[F,el.side]);let ep=(0,a.K)(e=>{F.set("positionerElement",e)}),eh=(0,_.i)(e,ef,{styles:ed,transitionStatus:en,props:N,refs:[t,ep],hidden:!G,inert:!W}),em=n.useRef(0),eg=(0,a.K)(e=>{if(0===e.size&&0===em.current||0===J.current.length)return;let t=em.current;if(em.current=e.size,e.size===t)return;let r=(0,g.d)(v.dv);if(0!==t&&!F.state.multiple&&null!==X&&-1===(0,y.Vz)(J.current,X,er)){let e=B.current,t=null!=e&&-1!==(0,y.Vz)(J.current,e,er)?e:null;q(t,r),null===t&&(F.set("selectedIndex",null),L.current=null)}if(0!==t&&F.state.multiple&&Array.isArray(X)){let e=X.filter(e=>-1!==(0,y.Vz)(J.current,e,er));(e.length!==X.length||e.some(e=>!(0,y.kJ)(X,e,er)))&&(q(e,r),0===e.length&&(F.set("selectedIndex",null),L.current=null))}if(W&&eu){F.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};(0,h.Y)(ee,e),(0,h.Y)(K.current,e)}}),ev=n.useMemo(()=>({...el,side:ec,alignItemWithTriggerActive:eu,setControlledAlignItemWithTrigger:es,scrollUpArrowRef:ei,scrollDownArrowRef:eo}),[el,ec,eu,es]);return(0,w.jsx)(l.u,{elementsRef:U,labelsRef:D,onMapChange:eg,children:(0,w.jsxs)(d.i.Provider,{value:ev,children:[G&&Y&&(0,w.jsx)(f.W,{inert:(0,i.Y)(!W),cutout:et}),eh]})})})},37693:(e,t,r)=>{"use strict";r.d(t,{b:()=>T});var n=r(12115),i=r(81456),o=r(64951),a=r(23068),s=r(2474),u=r(30271),l=r(40716),c=r(12991),d=r(57960),f=r(84052),p=r(30785),h=r(69938),m=r(82009),g=r(8272),v=r(83323),y=r(51464),_=r(40253),b=r(27091),w=r(7049),z=r(76175),k=r(3017);let x={...f.jL,...p.dc,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},T=n.forwardRef(function(e,t){let{render:r,className:f,id:p,disabled:T=!1,nativeButton:S=!0,style:E,...P}=e,{setTouched:$,setFocused:A,validationMode:O,state:M,disabled:R}=(0,c.V$)(),{labelId:j}=(0,d.H)(),{store:I,setOpen:Z,selectionRef:C,validation:N,readOnly:F,required:U,alignItemWithTriggerActiveRef:D,disabled:V}=(0,l.ll)(),L=R||V||T,J=(0,u.P)(I,m.T.open),B=(0,u.P)(I,m.T.mounted),K=(0,u.P)(I,m.T.value),q=(0,u.P)(I,m.T.triggerProps),H=(0,u.P)(I,m.T.positionerElement),W=(0,u.P)(I,m.T.listElement),G=(0,u.P)(I,m.T.popupSide),Y=(0,u.P)(I,m.T.id),X=(0,u.P)(I,m.T.labelId),Q=(0,u.P)(I,m.T.hasSelectedValue),ee=B&&H?G:null,et=p??Y;(0,k.l)({id:et});let er=(0,s.u)(H),en=n.useRef(null),{getButtonProps:ei,buttonRef:eo}=(0,b.s)({disabled:L,native:S}),ea=(0,a.K)(e=>{I.set("triggerElement",e)}),es=(0,o.Z)(),eu=(0,o.Z)(),el=(0,o.Z)();n.useEffect(()=>{if(J)return el.start(400,()=>{C.current.allowUnselectedMouseUp=!0,C.current.allowSelectedMouseUp=!0}),()=>{el.clear()};C.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},eu.clear()},[J,C,eu,el]);let ec=(0,_.v6)(q,{id:et,role:"combobox","aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-controls":J?W?.id??(0,v.nd)(H)?.id:void 0,"aria-labelledby":j??X,"aria-readonly":F||void 0,"aria-required":U||void 0,tabIndex:L?-1:0,onFocus(e){A(!0),J&&D.current&&Z(!1,(0,w.d)(z.dv,e.nativeEvent)),es.start(0,()=>{I.set("forceMount",!0)})},onBlur(e){(0,y.gR)(H,e.relatedTarget)||($(!0),A(!1),"onBlur"===O&&N.commit(K))},onMouseDown(e){if(J)return;let t=(0,i.R)(e.currentTarget);function r(e){if(!en.current)return;let t=e.target;if((0,y.gR)(en.current,t)||(0,y.gR)(er.current,t))return;let r=(0,g.s)(en.current);e.clientX>=r.left-2&&e.clientX<=r.right+2&&e.clientY>=r.top-2&&e.clientY<=r.bottom+2||Z(!1,(0,w.d)(z.LO,e))}eu.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},P,ei),ed=N.getValidationProps(L,ec);ed.role="combobox";let ef={...M,open:J,disabled:L,value:K,readOnly:F,popupSide:ee,placeholder:!Q};return(0,h.o)("button",e,{ref:[t,en,eo,ea],state:ef,stateAttributesMapping:x,props:ed})})},40716:(e,t,r)=>{"use strict";r.d(t,{CG:()=>o,hG:()=>u,iP:()=>a,ll:()=>s});var n=r(25803),i=r(12115);let o=i.createContext(null),a=i.createContext(null);function s(){let e=i.useContext(o);if(null===e)throw Error((0,n.A)(60));return e}function u(){let e=i.useContext(a);if(null===e)throw Error((0,n.A)(61));return e}},41537:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(69938);function i(e){return(0,n.o)(e.defaultTagName??"div",e,e)}},43208:(e,t,r)=>{"use strict";r.d(t,{h:()=>c});var n=r(12115),i=r(90366),o=r(97378),a=r(72924),s=r(69938),u=r(41900),l=r(95155);let c=n.forwardRef(function(e,t){let r=e.keepMounted??!1,{selected:n}=(0,i.G)();return r||n?(0,l.jsx)(d,{...e,ref:t}):null}),d=n.memo(n.forwardRef((e,t)=>{let{render:r,className:l,style:c,keepMounted:d,...f}=e,{selected:p}=(0,i.G)(),h=n.useRef(null),{transitionStatus:m,setMounted:g}=(0,o.$)(p),v=(0,s.o)("span",e,{ref:[t,h],state:{selected:p,transitionStatus:m},props:[{"aria-hidden":!0,children:"✔️"},f],stateAttributesMapping:u.G});return(0,a.v)({open:p,ref:h,onComplete(){p||g(!1)}}),v}))},48366:(e,t,r)=>{"use strict";r.d(t,{H:()=>F});var n=r(12115),i=r(46468),o=r(55218),a=r(14187),s=r(95313),u=r(24205),l=r(50602),c=r(66652),d=r(23068),f=r(2474),p=r(2368),h=r(30271),m=r(8994),g=r(57134),v=r(9569),y=r(87541),_=r(61243),b=r(73562),w=r(40716),z=r(12991),k=r(1272),x=r(3017),T=r(97378),S=r(82009),E=r(7049),P=r(76175),$=r(72924),A=r(10232),O=r(15483),M=r(70035),R=r(42240),j=r(22713),I=r(2378),Z=r(26713),C=r(40253),N=r(95155);function F(e){let{id:t,value:r,defaultValue:F=null,onValueChange:U,open:D,defaultOpen:V=!1,onOpenChange:L,name:J,form:B,autoComplete:K,disabled:q=!1,readOnly:H=!1,required:W=!1,modal:G=!0,actionsRef:Y,inputRef:X,onOpenChangeComplete:Q,items:ee,multiple:et=!1,itemToStringLabel:er,itemToStringValue:en,isItemEqualToValue:ei=M.jd,highlightItemOnHover:eo=!0,children:ea}=e,{clearErrors:es}=(0,A.x)(),{setDirty:eu,setTouched:el,setFocused:ec,validityData:ed,setFilled:ef,name:ep,disabled:eh,validation:em,validationMode:eg}=(0,z.V$)(),ev=(0,x.l)({id:t}),ey=eh||q,e_=ep??J,[eb,ew]=(0,l.q)({controlled:r,default:et?F??m.Ml:F,name:"Select",state:"value"}),[ez,ek]=(0,l.q)({controlled:D,default:V,name:"Select",state:"open"}),ex=n.useRef([]),eT=n.useRef([]),eS=n.useRef(null),eE=n.useRef(null),eP=n.useRef(0),e$=n.useRef(null),eA=n.useRef([]),eO=n.useRef(!1),eM=n.useRef(null),eR=n.useRef(null),ej=n.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),eI=n.useRef(!1),{mounted:eZ,setMounted:eC,transitionStatus:eN}=(0,T.$)(ez),{openMethod:eF,triggerProps:eU}=(0,j.G)(ez),eD=(0,a.j)(()=>new p.i({id:ev,labelId:void 0,modal:G,multiple:et,itemToStringLabel:er,itemToStringValue:en,isItemEqualToValue:ei,value:eb,open:ez,mounted:eZ,transitionStatus:eN,items:ee,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,eV=(0,h.P)(eD,S.T.activeIndex),eL=(0,h.P)(eD,S.T.selectedIndex),eJ=(0,h.P)(eD,S.T.triggerElement),eB=(0,h.P)(eD,S.T.positionerElement),eK=function(e){let[t,r]=n.useState({current:e,previous:null});return e!==t.current&&r({current:e,previous:t.current}),t.previous}(eF),eq=eF??eK??null,eH=n.useMemo(()=>et?"":(0,O.T)(eb,en),[et,eb,en]),eW=n.useMemo(()=>et&&Array.isArray(eb)?eb.map(e=>(0,O.T)(e,en)):(0,O.T)(eb,en),[et,eb,en]),eG=(0,f.u)(eD.state.triggerElement),eY=(0,d.K)(()=>eW);(0,k.I)(eG,ev,eb,eY,!ey,J);let eX=n.useRef(eb),eQ=et?Array.isArray(eb)&&eb.length>0:null!=eb&&""!==(0,O.T)(eb,en);(0,c.g)(()=>{eb!==eX.current&&eD.set("forceMount",!0)},[eD,eb]),(0,c.g)(()=>{ef(eQ)},[eQ,ef]),(0,c.g)(function(){let e,t=eA.current;if(et){let r=Array.isArray(eb)?eb:[];if(0===r.length)e=null;else{let n=r[r.length-1],i=(0,M.Vz)(t,n,ei);e=-1===i?null:i}}else{let r=(0,M.Vz)(t,eb,ei);e=-1===r?null:r}null===e&&(eR.current=null),ez||eD.set("selectedIndex",e)},[eQ,et,ez,eb,eA,ei,eD,eR]),(0,R.x)(eb,()=>{let e;es(e_),eu((e=ed.initialValue,Array.isArray(eb)&&Array.isArray(e)?!function(e,t,r=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>r(e,t[n]))}(eb,e,(e,t)=>(0,M.tl)(e,t,ei)):eb!==e)),em.change(eb)});let e0=(0,d.K)((e,t)=>{L?.(e,t),!t.isCanceled&&(ek(e),e||t.reason!==P.Xn&&t.reason!==P.Np||(el(!0),ec(!1),"onBlur"===eg&&em.commit(eb)))}),e1=(0,d.K)(()=>{eC(!1),eD.update({activeIndex:null,openMethod:null}),Q?.(!1)});(0,$.v)({enabled:!Y,open:ez,ref:eS,onComplete(){ez||e1()}}),n.useImperativeHandle(Y,()=>({unmount:e1}),[e1]);let e2=(0,d.K)((e,t)=>{U?.(e,t),t.isCanceled||ew(e)}),e9=(0,d.K)(()=>{let e=eD.state.listElement||eS.current;if(!e)return;let t=(0,I.XF)(e.scrollHeight,e.clientHeight),r=(0,I.Qw)(e.scrollTop,t),n=r>0,i=r<t;eD.state.scrollUpArrowVisible!==n&&eD.set("scrollUpArrowVisible",n),eD.state.scrollDownArrowVisible!==i&&eD.set("scrollDownArrowVisible",i)}),e4=(0,g.P)({open:ez,onOpenChange:e0,elements:{reference:eJ,floating:eB}}),e5=(0,v.k)(e4,{enabled:!H&&!ey,event:"mousedown"}),e6=(0,y.s)(e4),e7=(0,_.C)(e4,{enabled:!H&&!ey,listRef:ex,activeIndex:eV,selectedIndex:eL,disabledIndices:m.Ml,onNavigate(e){(null!==e||ez)&&eD.set("activeIndex",e)},focusItemOnHover:eo}),e3=(0,b.l)(e4,{enabled:!H&&!ey&&(ez||!et),listRef:eT,activeIndex:eV,selectedIndex:eL,disabledIndices:e=>(0,u.F)(ex.current[e]),onMatch(e){ez?eD.set("activeIndex",e):e2(eA.current[e],(0,E.d)("none"))},onTyping(e){eO.current=e}}),e8=n.useMemo(()=>{let e=(0,C.v6)(e3.reference,e7.reference,e6.reference,e5.reference,eU);return ev&&(e.id=ev),e},[e5.reference,e3.reference,e7.reference,e6.reference,eU,ev]),te=n.useMemo(()=>(0,C.v6)(Z.Ls,e3.floating,e7.floating,e6.floating),[e3.floating,e7.floating,e6.floating]),tt=e7.item??m.t0;(0,s.j)(()=>{eD.update({popupProps:te,triggerProps:e8})}),(0,c.g)(()=>{eD.update({id:ev,modal:G,multiple:et,value:eb,open:ez,mounted:eZ,transitionStatus:eN,popupProps:te,triggerProps:e8,items:ee,itemToStringLabel:er,itemToStringValue:en,isItemEqualToValue:ei,openMethod:eq})},[eD,ev,G,et,eb,ez,eZ,eN,te,e8,ee,er,en,ei,eq]);let tr=n.useMemo(()=>({store:eD,name:e_,required:W,disabled:ey,readOnly:H,multiple:et,highlightItemOnHover:eo,setValue:e2,setOpen:e0,listRef:ex,popupRef:eS,scrollHandlerRef:eE,handleScrollArrowVisibility:e9,scrollArrowsMountedCountRef:eP,itemProps:tt,valueRef:e$,valuesRef:eA,labelsRef:eT,typingRef:eO,selectionRef:ej,firstItemTextRef:eM,selectedItemTextRef:eR,validation:em,onOpenChangeComplete:Q,alignItemWithTriggerActiveRef:eI,initialValueRef:eX}),[eD,e_,W,ey,H,et,eo,e2,e0,tt,em,Q,e9]),tn=(0,o.a)(X,em.inputRef),ti=et&&Array.isArray(eb)&&eb.length>0,to=et?void 0:e_,ta=n.useMemo(()=>et&&Array.isArray(eb)&&e_?eb.map(e=>{let t=(0,O.T)(e,en);return(0,N.jsx)("input",{type:"hidden",form:B,name:e_,value:t,disabled:ey},t)}):null,[et,eb,B,e_,en,ey]);return(0,N.jsx)(w.CG.Provider,{value:tr,children:(0,N.jsxs)(w.iP.Provider,{value:e4,children:[ea,(0,N.jsx)("input",{...em.getValidationProps(ey,{onFocus(){eD.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||ey||H)return;let t=e.currentTarget.value,r=(0,E.d)(P.dv,e.nativeEvent);eD.set("forceMount",!0),queueMicrotask(function(){if(et)return;let e=t.toLowerCase(),n=eA.current.findIndex(t=>(0,O.T)(t,en).toLowerCase()===e||(0,O.yg)(t,er).toLowerCase()===e);-1===n&&(n=eA.current.findIndex((t,r)=>{let n=eT.current[r];return null!=n&&n.toLowerCase()===e}));let i=-1===n?void 0:eA.current[n];null!=i&&e2(i,r)})}}),id:ev&&null==to?`${ev}-hidden-input`:void 0,form:B,name:to,autoComplete:K,value:eH,disabled:ey,required:W&&!ti,readOnly:H,ref:tn,style:e_?i.a:i.Q,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ta]})})}},50981:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},56814:e=>{function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,a=(e[o]||0)+1;e[o]=a,a>=r&&(t=i,r=a)}return t}},58585:(e,t,r)=>{"use strict";r.d(t,{B:()=>f});var n=r(12115),i=r(23068),o=r(30271),a=r(40716),s=r(76380),u=r(69938),l=r(28539),c=r(8202),d=r(82009);let f=n.forwardRef(function(e,t){let{render:r,className:n,style:f,...p}=e,{store:h,scrollHandlerRef:m}=(0,a.ll)(),{alignItemWithTriggerActive:g}=(0,s.H)(),v=(0,o.P)(h,d.T.hasScrollArrows),y=(0,o.P)(h,d.T.openMethod),_=(0,o.P)(h,d.T.multiple),b=(0,o.P)(h,d.T.id),w={id:`${b}-list`,role:"listbox","aria-multiselectable":_||void 0,onScroll(e){m.current?.(e.currentTarget)},...g&&{style:c.O},className:v&&"touch"!==y?l.E.className:void 0},z=(0,i.K)(e=>{h.set("listElement",e)});return(0,u.o)("div",e,{ref:[t,z],props:[w,p]})})},59739:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});var n=r(12115),i=r(66098),o=r(69938),a=r(95155);let s=n.forwardRef(function(e,t){let{render:r,className:s,style:u,...l}=e,[c,d]=n.useState(),f=n.useMemo(()=>({labelId:c,setLabelId:d}),[c,d]),p=(0,o.o)("div",e,{ref:t,props:[{role:"group","aria-labelledby":c},l]});return(0,a.jsx)(i.z.Provider,{value:f,children:p})})},61243:(e,t,r)=>{"use strict";r.d(t,{C:()=>z});var n=r(12115),i=r(18813),o=r(66652),a=r(81456),s=r(23068),u=r(2474),l=r(6791),c=r(7049),d=r(76175),f=r(80120),p=r(86058),h=r(3940),m=r(83323),g=r(51464),v=r(85489),y=r(17947);function _(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function b(e,t){return _(t,e===h.il||e===h.Jd,e===h.eR||e===h.RJ)}function w(e,t,r){return _(t,e===h.Jd,r?e===h.eR:e===h.RJ)||"Enter"===e||" "===e||""===e}function z(e,t){let{listRef:r,activeIndex:z,onNavigate:k=()=>{},enabled:x=!0,selectedIndex:T=null,allowEscape:S=!1,loopFocus:E=!1,nested:P=!1,rtl:$=!1,virtual:A=!1,focusItemOnOpen:O="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:R=!0,disabledIndices:j,orientation:I="vertical",parentOrientation:Z,id:C,resetOnPointerLeave:N=!0,externalTree:F,grid:U}=t,D=null!=U,V="rootStore"in e?e.rootStore:e,L=V.useState("open"),J=V.useState("floatingElement"),B=V.useState("domReferenceElement"),K=V.context.dataRef,q=(0,m.nd)(J),H=(0,m.WZ)(B),W=(0,u.u)(q),G=(0,f.R1)(),Y=(0,f.cq)(F),X=n.useRef(O),Q=n.useRef(T??-1),ee=n.useRef(null),et=n.useRef(!0),er=(0,s.K)(e=>{k(-1===Q.current?null:Q.current,e)}),en=n.useRef(!!J),ei=n.useRef(L),eo=n.useRef(!1),ea=n.useRef(!1),es=n.useRef(null),eu=(0,u.u)(j),el=(0,u.u)(L),ec=(0,u.u)(T),ed=(0,u.u)(N),ef=(0,i.N)(),ep=(0,i.N)(),eh=(0,s.K)(()=>{function e(e){A?Y?.events.emit("virtualfocus",e):es.current=(0,v.p)(e,{sync:eo.current,preventScroll:!0})}let t=r.current[Q.current],n=ea.current;t&&e(t),(eo.current?e=>e():e=>ef.request(e))(()=>{let i=r.current[Q.current]||t;!i||(t||e(i),eb&&(n||!et.current)&&i.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,o.g)(()=>{K.current.orientation=I},[K,I]),(0,o.g)(()=>{x&&(L&&J?(Q.current=T??-1,X.current&&null!=T&&(ea.current=!0,er())):en.current&&(Q.current=-1,er()))},[x,L,J,T,er]),(0,o.g)(()=>{if(x){if(!L){eo.current=!1;return}if(J)if(null==z){if(eo.current=!1,null!=ec.current)return;if(en.current&&(Q.current=-1,eh()),(!ei.current||!en.current)&&X.current&&(null!=ee.current||!0===X.current&&null==ee.current)){let e=0,t=()=>{null==r.current[0]?(e<2&&(e?e=>ep.request(e):queueMicrotask)(t),e+=1):(Q.current=null==ee.current||w(ee.current,I,$)||P?(0,p.Zb)(r):(0,p.vB)(r),ee.current=null,er())};t()}}else(0,p.du)(r.current,z)||(Q.current=z,eh(),ea.current=!1)}},[x,L,J,z,ec,P,r,I,$,er,eh,ep]),(0,o.g)(()=>{if(!x||J||!Y||A||!en.current)return;let e=Y.nodesRef.current,t=e.find(e=>e.id===G)?.context?.elements.floating,r=(0,g.RS)((0,a.R)(B??t??null)),n=e.some(e=>e.context&&(0,g.gR)(e.context.elements.floating,r));t&&!n&&et.current&&t.focus({preventScroll:!0})},[x,J,B,Y,G,A]),(0,o.g)(()=>{ei.current=L,en.current=!!J}),(0,o.g)(()=>{L||(ee.current=null,X.current=O)},[L,O]);let em=null!=z,eg=(0,s.K)(e=>{if(!el.current)return;let t=r.current.indexOf(e.currentTarget);-1!==t&&(Q.current!==t||z!==t)&&(Q.current=t,er(e))}),ev=(0,s.K)(()=>Z??Y?.nodesRef.current.find(e=>e.id===G)?.context?.dataRef?.current.orientation),ey=(0,s.K)(()=>(0,p.Zb)(r,eu.current)),e_=(0,s.K)(e=>{var t;let n,i;if(et.current=!1,eo.current=!0,229===e.which||!el.current&&e.currentTarget===W.current)return;if(P&&(t=e.key,n=$?t===h.RJ:t===h.eR,i=t===h.il,"both"===I||"horizontal"===I&&D?"Escape"===t:_(I,n,i))){b(e.key,ev())||(0,y.jo)(e),V.setOpen(!1,(0,c.d)(d.Dq,e.nativeEvent)),(0,l.sb)(B)&&(A?Y?.events.emit("virtualfocus",B):B.focus());return}let o=Q.current,a=(0,p.Zb)(r,j),s=(0,p.vB)(r,j);if(H||("Home"===e.key&&((0,y.jo)(e),Q.current=a,er(e)),"End"===e.key&&((0,y.jo)(e),Q.current=s,er(e))),null!=U){let t=U(e,Q.current,r,I,E,$,j,a,s);if(null!=t&&(Q.current=t,er(e)),"both"===I)return}if(b(e.key,I)){if((0,y.jo)(e),L&&!A&&(0,g.RS)(e.currentTarget.ownerDocument)===e.currentTarget){Q.current=w(e.key,I,$)?a:s,er(e);return}w(e.key,I,$)?E?o>=s?S&&o!==r.current.length?Q.current=-1:(eo.current=!1,Q.current=a):Q.current=(0,p.BF)(r.current,{startingIndex:o,disabledIndices:j}):Q.current=Math.min(s,(0,p.BF)(r.current,{startingIndex:o,disabledIndices:j})):E?o<=a?S&&-1!==o?Q.current=r.current.length:(eo.current=!1,Q.current=s):Q.current=(0,p.BF)(r.current,{startingIndex:o,decrement:!0,disabledIndices:j}):Q.current=Math.max(a,(0,p.BF)(r.current,{startingIndex:o,decrement:!0,disabledIndices:j})),(0,p.du)(r.current,Q.current)&&(Q.current=-1),er(e)}}),eb=n.useMemo(()=>({onFocus(e){eo.current=!0,eg(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){eo.current=!0,ea.current=!1,M&&eg(e)},onPointerLeave(e){if(!el.current||!et.current||"touch"===e.pointerType)return;eo.current=!0;let t=e.relatedTarget;if(!(!M||r.current.includes(t))&&ed.current&&(es.current?.(),es.current=null,Q.current=-1,er(e),!A)){let e=W.current,t=(0,g.RS)((0,a.R)(e));e&&(0,g.gR)(e,t)&&e.focus({preventScroll:!0})}}}),[eg,el,W,M,r,er,ed,A]),ew=n.useMemo(()=>A&&L&&em&&{"aria-activedescendant":`${C}-${z}`},[A,L,em,C,z]),ez=n.useMemo(()=>({"aria-orientation":"both"===I?void 0:I,...!H?ew:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&L&&!A){let t=(0,g.EW)(e.nativeEvent);if(t&&!(0,g.gR)(W.current,t))return;(0,y.jo)(e),V.setOpen(!1,(0,c.d)(d.Xn,e.nativeEvent)),(0,l.sb)(B)&&B.focus();return}e_(e)},onPointerMove(){et.current=!0}}),[ew,e_,W,I,H,V,L,A,B]),ek=n.useMemo(()=>{function e(e){V.setOpen(!0,(0,c.d)(d.Dq,e.nativeEvent,e.currentTarget))}function t(e){"auto"===O&&(0,y.YF)(e.nativeEvent)&&(X.current=!A)}function r(e){X.current=O,"auto"===O&&(0,y.Pg)(e.nativeEvent)&&(X.current=!0)}return{onKeyDown(t){var r,n;let i=V.select("open");et.current=!1;let o=t.key.startsWith("Arrow"),a=(r=t.key,n=ev(),_(n,$?r===h.eR:r===h.RJ,r===h.Jd)),s=b(t.key,I),u=(P?a:s)||"Enter"===t.key||""===t.key.trim();if(A&&i)return e_(t);if(i||R||!o){if(u){let e=b(t.key,ev());ee.current=P&&e?null:t.key}if(P){a&&((0,y.jo)(t),i?(Q.current=ey(),er(t)):e(t));return}s&&(null!=ec.current&&(Q.current=ec.current),(0,y.jo)(t),!i&&R?e(t):e_(t),i&&er(t))}},onFocus(e){V.select("open")&&!A&&(Q.current=-1,er(e))},onPointerDown:r,onPointerEnter:r,onMouseDown:t,onClick:t}},[e_,O,ey,P,er,V,R,I,ev,$,ec,A]),ex=n.useMemo(()=>({...ew,...ek}),[ew,ek]);return n.useMemo(()=>x?{reference:ex,floating:ez,item:eb,trigger:ek}:{},[x,ex,ez,ek,eb])}},62174:(e,t,r)=>{e.exports=r(14488)},64577:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},65342:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},66098:(e,t,r)=>{"use strict";r.d(t,{M:()=>a,z:()=>o});var n=r(25803),i=r(12115);let o=i.createContext(void 0);function a(){let e=i.useContext(o);if(void 0===e)throw Error((0,n.A)(56));return e}},68445:(e,t,r)=>{"use strict";function n(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}r.d(t,{q:()=>n})},69470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(10857),i=r(48512);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},70035:(e,t,r)=>{"use strict";r.d(t,{Ai:()=>s,Vz:()=>a,jd:()=>n,kJ:()=>o,tl:()=>i});let n=(e,t)=>Object.is(e,t);function i(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}function o(e,t,r){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&i(t,e,r))}function a(e,t,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&i(e,t,r)):-1}function s(e,t,r){return e.filter(e=>!i(t,e,r))}},70943:(e,t,r)=>{"use strict";r.d(t,{y:()=>c});var n=r(12115),i=r(30271),o=r(69938),a=r(40716),s=r(15483),u=r(82009);let l={value:()=>null},c=n.forwardRef(function(e,t){let{className:r,render:n,children:c,placeholder:d,style:f,...p}=e,{store:h,valueRef:m}=(0,a.ll)(),g=(0,i.P)(h,u.T.value),v=(0,i.P)(h,u.T.items),y=(0,i.P)(h,u.T.itemToStringLabel),_=(0,i.P)(h,u.T.hasSelectedValue),b=(0,i.P)(h,u.T.hasNullItemLabel,!_&&null!=d&&null==c),w=null;return w="function"==typeof c?c(g):null!=c?c:_||null==d||b?Array.isArray(g)?(0,s.u)(g,v,y):(0,s.Md)(g,v,y):d,(0,o.o)("span",e,{state:{value:g,placeholder:!_},ref:[t,m],props:[{children:w},p],stateAttributesMapping:l})})},73255:(e,t,r)=>{"use strict";r.d(t,{e:()=>v});var n=r(12115),i=r(66652),o=r(30271),a=r(40716),s=r(54068),u=r(69938),l=r(90366),c=r(82009),d=r(27091),f=r(7049),p=r(76175),h=r(70035),m=r(17947),g=r(95155);let v=n.memo(n.forwardRef(function(e,t){let{render:r,className:v,style:y,value:_=null,label:b,disabled:w=!1,nativeButton:z=!1,...k}=e,x=n.useRef(null),T=(0,s.q)({label:b,textRef:x,indexGuessBehavior:s.G.GuessFromOrder}),{store:S,itemProps:E,setOpen:P,setValue:$,selectionRef:A,typingRef:O,valuesRef:M,multiple:R,selectedItemTextRef:j,disabled:I,readOnly:Z}=(0,a.ll)(),C=(0,o.P)(S,c.T.isActive,T.index),N=(0,o.P)(S,c.T.open),F=(0,o.P)(S,c.T.isSelected,_),U=(0,o.P)(S,c.T.isSelectedByFocus,T.index),D=(0,o.P)(S,c.T.isItemEqualToValue),V=T.index,L=-1!==V,J=n.useRef(null);(0,i.g)(()=>{if(!L)return;let e=M.current;return e[V]=_,()=>{delete e[V]}},[L,V,_,M]),(0,i.g)(()=>{if(!L)return;let e=S.state.value,t=e;R&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),void 0!==t&&(0,h.tl)(_,t,D)&&(S.set("selectedIndex",V),x.current&&(j.current=x.current))},[L,V,R,D,S,_,j]);let B=n.useRef(null),K=n.useRef("mouse"),q=n.useRef(!1),{getButtonProps:H,buttonRef:W}=(0,d.s)({disabled:w,focusableWhenDisabled:!0,native:z,composite:!0});function G(){A.current.dragY=0}let Y=(0,u.o)("div",e,{ref:[W,t,T.ref,J],state:{disabled:w,selected:F,highlighted:C},props:[E,{role:"option","aria-selected":F,tabIndex:N&&C?0:-1,onKeyDown(e){B.current=e.key,S.set("activeIndex",V)," "===e.key&&O.current&&e.preventDefault()},onClick(e){let t="click"===e.type&&"touch"!==K.current,r=e.nativeEvent.pointerType,n=t&&(0,m.YF)(e.nativeEvent)&&(void 0!==r||C),i=t&&!n&&!q.current;q.current=!1,"keydown"===e.type&&null===B.current||w||"keydown"===e.type&&" "===B.current&&O.current||i||(B.current=null,function(e){if(I||Z)return;let t=S.state.value;if(R){let r=Array.isArray(t)?t:[];$(F?(0,h.Ai)(r,_,D):[...r,_],(0,f.d)(p.Bo,e))}else $(_,(0,f.d)(p.Bo,e)),P(!1,(0,f.d)(p.Bo,e))}(e.nativeEvent))},onPointerEnter(e){K.current=e.pointerType},onPointerMove(e){if("mouse"===e.pointerType&&1===e.buttons){let t=A.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){K.current=e.pointerType,q.current=!0,G()},onMouseUp(){if(G(),w||"touch"===K.current||q.current)return;let e=!A.current.allowSelectedMouseUp&&F,t=!A.current.allowUnselectedMouseUp&&!F;e||t||(q.current=!0,J.current?.click(),q.current=!1)}},k,H]}),X=n.useMemo(()=>({selected:F,index:V,textRef:x,selectedByFocus:U,hasRegistered:L}),[F,V,x,U,L]);return(0,g.jsx)(l.z.Provider,{value:X,children:Y})}))},73321:(e,t,r)=>{"use strict";var n=r(74645);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},73562:(e,t,r)=>{"use strict";r.d(t,{l:()=>d});var n=r(12115),i=r(66652),o=r(23068),a=r(64951),s=r(8994),u=r(86058),l=r(51464),c=r(17947);function d(e,t){let{listRef:r,elementsRef:d,activeIndex:f,onMatch:p,disabledIndices:h,onTyping:m,enabled:g=!0,resetMs:v=750,selectedIndex:y=null}=t,_="rootStore"in e?e.rootStore:e,b=_.useState("open"),w=(0,a.Z)(),z=n.useRef(""),k=n.useRef(y??f??-1),x=n.useRef(null),T=(0,o.K)(e=>{function t(e){let t;return!!(!(t=d?.current[e])||(0,u.J9)(t))&&(null==h||!(0,u.FP)(s.Ml,e,h))}function n(e,r,i=0){if(0===e.length)return -1;let o=(i%e.length+e.length)%e.length,a=r.toLowerCase();for(let r=0;r<e.length;r+=1){let n=(o+r)%e.length,i=e[n];if(i?.toLowerCase().startsWith(a)&&t(n))return n}return -1}let i=r.current;if(z.current.length>0&&" "===e.key&&((0,c.jo)(e),m?.(!0)),z.current.length>0&&" "!==z.current[0]&&-1===n(i,z.current)&&" "!==e.key&&m?.(!1),null==i||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;b&&" "!==e.key&&((0,c.jo)(e),m?.(!0));let o=""===z.current;o&&(k.current=y??f??-1),i.every((e,r)=>!(e&&t(r))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&z.current===e.key&&(z.current="",k.current=x.current),z.current+=e.key,w.start(v,()=>{z.current="",k.current=x.current,m?.(!1)});let a=o?y??f??-1:k.current,l=n(i,z.current,(a??0)+1);-1!==l?(p?.(l),x.current=l):" "!==e.key&&(z.current="",m?.(!1))}),S=(0,o.K)(e=>{let t=e.relatedTarget,r=_.select("domReferenceElement"),n=_.select("floatingElement");(0,l.gR)(r,t)||(0,l.gR)(n,t)||(w.clear(),z.current="",k.current=x.current,m?.(!1))});(0,i.g)(()=>{(b||null===y)&&(w.clear(),x.current=null,""!==z.current&&(z.current=""))},[b,y,w]),(0,i.g)(()=>{b&&""===z.current&&(k.current=y??f??-1)},[b,y,f]);let E=n.useMemo(()=>({onKeyDown:T,onBlur:S}),[T,S]);return n.useMemo(()=>g?{reference:E,floating:E}:{},[g,E])}},76082:(e,t,r)=>{"use strict";r.d(t,{t:()=>Z});var n=r(12115),i=r(92681),o=r(14718),a=r(15495),s=r(23068),u=r(81456),l=r(6791),c=r(66652),d=r(30271),f=r(18813),p=r(2052),h=r(79538),m=r(40716),g=r(84052),v=r(76380),y=r(28539),_=r(41900),b=r(72924),w=r(69938),z=r(82009),k=r(8202),x=r(7049),T=r(76175),S=r(95846),E=r(5313),P=r(66761),$=r(68445),A=r(2378);let O=n.createContext(void 0),M={disableStyleElements:!1};var R=r(30458),j=r(95155);let I={...g.GW,..._.G},Z=n.forwardRef(function(e,t){let{render:r,className:i,style:h,finalFocus:g,..._}=e,{store:Z,popupRef:V,onOpenChangeComplete:L,setOpen:J,valueRef:B,firstItemTextRef:K,selectedItemTextRef:q,multiple:H,handleScrollArrowVisibility:W,scrollHandlerRef:G,listRef:Y,highlightItemOnHover:X}=(0,m.ll)(),{side:Q,align:ee,alignItemWithTriggerActive:et,isPositioned:er,setControlledAlignItemWithTrigger:en}=(0,v.H)(),ei=null!=(0,S.S)(!0),eo=(0,m.hG)(),ea=(0,R.j)(),{nonce:es,disableStyleElements:eu}=n.useContext(O)??M,el=(0,d.P)(Z,z.T.id),ec=(0,d.P)(Z,z.T.open),ed=(0,d.P)(Z,z.T.openMethod),ef=(0,d.P)(Z,z.T.mounted),ep=(0,d.P)(Z,z.T.popupProps),eh=(0,d.P)(Z,z.T.transitionStatus),em=(0,d.P)(Z,z.T.triggerElement),eg=(0,d.P)(Z,z.T.positionerElement),ev=(0,d.P)(Z,z.T.listElement),ey=n.useRef(!1),e_=n.useRef(!1),eb=n.useRef({}),ew=(0,f.N)(),ez=(0,s.K)(e=>{var t;if(!eg||!V.current||!e_.current)return;if(ey.current||!et)return void W();let r="0px"===eg.style.top,n="0px"===eg.style.bottom;if(!r&&!n)return void W();let i=F(eg),o=(t=eg.getBoundingClientRect().height,t/i.y),a=(0,u.R)(eg),s=(0,l.zk)(eg),c=s.getComputedStyle(eg),d=parseFloat(c.marginTop),f=parseFloat(c.marginBottom),p=C(s.getComputedStyle(V.current)),h=Math.min(a.documentElement.clientHeight-d-f,p),m=e.scrollTop,g=N(e),v=0,y=null,_=!1,b=!1,w=e=>{eg.style.height=`${e}px`},z=r?g-m:m,k=Math.min(o+z,h);if(v=k,z<=A.Pv){let t;return void((t=(0,$.q)(z,0,h-o))>0&&w(o+t),e.scrollTop=r?g:0,h-(o+t)<=A.Pv&&(ey.current=!0),W())}if(h-k>A.Pv)r?b=!0:y=0;else if(_=!0,n&&m<g){let e=o+z-h;y=m-(z-e)}if(0!==(v=Math.ceil(v))&&w(v),b||null!=y){let t=N(e),r=b?t:(0,$.q)(y,0,t);Math.abs(e.scrollTop-r)>A.Pv&&(e.scrollTop=r)}(_||v>=h-A.Pv)&&(ey.current=!0),W()});n.useImperativeHandle(G,()=>ez,[ez]),(0,b.v)({open:ec,ref:V,onComplete(){ec&&L?.(!0)}}),(0,c.g)(()=>{eg&&V.current&&!Object.keys(eb.current).length&&(eb.current={top:eg.style.top||"0",left:eg.style.left||"0",right:eg.style.right,height:eg.style.height,bottom:eg.style.bottom,minHeight:eg.style.minHeight,maxHeight:eg.style.maxHeight,marginTop:eg.style.marginTop,marginBottom:eg.style.marginBottom})},[V,eg]),(0,c.g)(()=>{ec||et||(e_.current=!1,ey.current=!1,(0,k.Y)(eg,eb.current))},[ec,et,eg,V]),(0,c.g)(()=>{let e=V.current;if(!ec||!em||!eg||!e||et&&!er||"ending"===Z.state.transitionStatus)return;if(!et){e_.current=!0,ew.request(W),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,r={};for(let[e,n]of D)r[e]=t.getPropertyValue(e),t.setProperty(e,n,"important");return()=>{for(let[e]of D){let n=r[e];n?t.setProperty(e,n):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{let t,r=q.current;r?.isConnected||(r=!z.T.hasSelectedValue(Z.state)&&K.current?.isConnected?K.current:null);let n=B.current,i=(0,l.zk)(eg),o=i.getComputedStyle(eg),s=i.getComputedStyle(e),c=(0,u.R)(em),d=F(em),f=U(em.getBoundingClientRect(),d),p=U(eg.getBoundingClientRect(),d),h=f.height,m=ev||e,g=m.scrollHeight,v=parseFloat(s.borderBottomWidth),y=parseFloat(o.marginTop)||10,_=parseFloat(o.marginBottom)||10,b=parseFloat(o.minHeight)||100,w=C(s),x=c.documentElement.clientHeight-y-_,T=c.documentElement.clientWidth,S=x-f.bottom+h,E="rtl"===ea?f.right-p.width:f.left,P=0;if(r&&n){let e=U(n.getBoundingClientRect(),d);t=U(r.getBoundingClientRect(),d),E=p.left+("rtl"===ea?e.right-t.right:e.left-t.left);let i=e.top-f.top+e.height/2;P=t.top-p.top+t.height/2-i}let O=S+P+_+v,M=Math.min(x,O),R=x-y-_,j=O-M;eg.style.left=`${(0,$.q)(E,5,T-5-p.width)}px`,eg.style.height=`${M}px`,eg.style.maxHeight="none",eg.style.marginTop=`${y}px`,eg.style.marginBottom=`${_}px`,e.style.height="100%";let I=N(m),D=j>=I-A.Pv;D&&(M=Math.min(x,p.height)-(j-I));let V=f.top<20||f.bottom>x-20||Math.ceil(M)+A.Pv<Math.min(g,b),L=(i.visualViewport?.scale??1)!==1&&a.Fp;if(V||L){e_.current=!0,(0,k.Y)(eg,eb.current),en(!1);return}let J=Math.max(b,M);if(D){let e=Math.max(0,x-O);eg.style.top=p.height>=R?"0":`${e}px`,eg.style.height=`${M}px`,m.scrollTop=N(m)}else eg.style.bottom="0",m.scrollTop=j;if(t){let r=p.top,n=p.height,i=t.top+t.height/2,o=(0,$.q)(n>0?(i-r)/n*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${o}%`)}(J===x||M>=w)&&(ey.current=!0),W(),X&&null===Z.state.selectedIndex&&null===Z.state.activeIndex&&null!=Y.current[0]&&Z.set("activeIndex",0),e_.current=!0}finally{t()}},[Z,ec,eg,em,B,K,q,V,W,et,en,ew,ev,Y,X,ea,er]),n.useEffect(()=>{if(!et||!eg||!ec)return;let e=(0,l.zk)(eg);return(0,o.q)(e,"resize",function(e){J(!1,(0,x.d)(T.L5,e))})},[J,et,eg,ec]);let ek={...ev?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":H||void 0,id:`${el}-list`},onKeyDown(e){ei&&E.jF.has(e.key)&&e.stopPropagation()},onScroll(e){ev||ez(e.currentTarget)},...et&&{style:ev?{height:"100%"}:k.O}},ex=(0,w.o)("div",e,{ref:[t,V],state:{open:ec,transitionStatus:eh,side:Q,align:ee},stateAttributesMapping:I,props:[ep,ek,(0,P.d)(eh),{className:!ev&&et?y.E.className:void 0},_]});return(0,j.jsxs)(n.Fragment,{children:[!eu&&y.E.getElement(es),(0,j.jsx)(p.s,{context:eo,modal:!1,disabled:!ef,openInteractionType:ed,returnFocus:g,restoreFocus:!0,children:ex})]})});function C(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function N(e){return(0,A.XF)(e.scrollHeight,e.clientHeight)}function F(e){return h.iD.getScale(e)}function U(e,t){return(0,i.B1)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let D=[["transform","none"],["scale","1"],["translate","0 0"]]},76286:(e,t,r)=>{"use strict";r.d(t,{M:()=>u});var n=r(12115),i=r(66652),o=r(62955),a=r(66098),s=r(69938);let u=n.forwardRef(function(e,t){let{render:r,className:n,style:u,id:l,...c}=e,{setLabelId:d}=(0,a.M)(),f=(0,o.e)(l);return(0,i.g)(()=>{d(f)},[f,d]),(0,s.o)("div",e,{ref:t,props:[{id:f},c]})})},76380:(e,t,r)=>{"use strict";r.d(t,{H:()=>a,i:()=>o});var n=r(25803),i=r(12115);let o=i.createContext(void 0);function a(){let e=i.useContext(o);if(!e)throw Error((0,n.A)(59));return e}},79411:(e,t,r)=>{"use strict";let n=r(62174),i=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class o extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}let a=(e,t)=>new Promise((r,a)=>{t={onFailedAttempt:()=>{},retries:10,...t};let s=n.operation(t);s.attempt(async n=>{try{r(await e(n))}catch(e){if(!(e instanceof Error))return void a(TypeError(`Non-error was thrown: "${e}". You should only throw errors.`));if(e instanceof o)s.stop(),a(e.originalError);else{let r;if(e instanceof TypeError&&(r=e.message,!i.includes(r)))s.stop(),a(e);else{let r;r=t.retries-(n-1),e.attemptNumber=n,e.retriesLeft=r;try{await t.onFailedAttempt(e)}catch(e){a(e);return}s.retry(e)||a(s.mainError())}}}})});e.exports=a,e.exports.default=a,e.exports.AbortError=o},81499:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},82009:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(78880),i=r(70035),o=r(15483);let a={id:(0,n.M)(e=>e.id),labelId:(0,n.M)(e=>e.labelId),modal:(0,n.M)(e=>e.modal),multiple:(0,n.M)(e=>e.multiple),items:(0,n.M)(e=>e.items),itemToStringLabel:(0,n.M)(e=>e.itemToStringLabel),itemToStringValue:(0,n.M)(e=>e.itemToStringValue),isItemEqualToValue:(0,n.M)(e=>e.isItemEqualToValue),value:(0,n.M)(e=>e.value),hasSelectedValue:(0,n.M)(e=>{let{value:t,multiple:r,itemToStringValue:n}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==(0,o.T)(t,n))}),hasNullItemLabel:(0,n.M)((e,t)=>!!t&&(0,o.Dp)(e.items)),open:(0,n.M)(e=>e.open),mounted:(0,n.M)(e=>e.mounted),forceMount:(0,n.M)(e=>e.forceMount),transitionStatus:(0,n.M)(e=>e.transitionStatus),openMethod:(0,n.M)(e=>e.openMethod),activeIndex:(0,n.M)(e=>e.activeIndex),selectedIndex:(0,n.M)(e=>e.selectedIndex),isActive:(0,n.M)((e,t)=>e.activeIndex===t),isSelected:(0,n.M)((e,t)=>{let r=e.isItemEqualToValue,n=e.value;return e.multiple?Array.isArray(n)&&n.some(e=>(0,i.tl)(t,e,r)):(0,i.tl)(t,n,r)}),isSelectedByFocus:(0,n.M)((e,t)=>e.selectedIndex===t),popupProps:(0,n.M)(e=>e.popupProps),triggerProps:(0,n.M)(e=>e.triggerProps),triggerElement:(0,n.M)(e=>e.triggerElement),positionerElement:(0,n.M)(e=>e.positionerElement),listElement:(0,n.M)(e=>e.listElement),popupSide:(0,n.M)(e=>e.popupSide),scrollUpArrowVisible:(0,n.M)(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:(0,n.M)(e=>e.scrollDownArrowVisible),hasScrollArrows:(0,n.M)(e=>e.hasScrollArrows)}},90360:(e,t,r)=>{"use strict";r.d(t,{V:()=>c});var n=r(12115),i=r(30271),o=r(34934);let a=n.createContext(void 0);var s=r(40716),u=r(82009),l=r(95155);let c=n.forwardRef(function(e,t){let{store:r}=(0,s.ll)(),n=(0,i.P)(r,u.T.mounted),c=(0,i.P)(r,u.T.forceMount);return n||c?(0,l.jsx)(a.Provider,{value:!0,children:(0,l.jsx)(o.XF,{ref:t,...e})}):null})},90366:(e,t,r)=>{"use strict";r.d(t,{G:()=>a,z:()=>o});var n=r(25803),i=r(12115);let o=i.createContext(void 0);function a(){let e=i.useContext(o);if(!e)throw Error((0,n.A)(57));return e}},91669:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},92571:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},95660:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},95846:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(25803),i=r(12115);let o=i.createContext(void 0);function a(e){let t=i.useContext(o);if(void 0===t&&!e)throw Error((0,n.A)(69));return t}},98500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return _}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(66388),a=r(95155),s=o._(r(12115)),u=r(20091),l=r(22909),c=r(21172),d=r(10857),f=r(70127);r(47284);let p=r(74616),h=r(24972),m=r(69470),g=r(77565);function v(e){var t,n;let i,o,v,[_,b]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),w=(0,s.useRef)(null),{href:z,as:k,children:x,prefetch:T=null,passHref:S,replace:E,shallow:P,scroll:$,onClick:A,onMouseEnter:O,onTouchStart:M,legacyBehavior:R=!1,onNavigate:j,transitionTypes:I,ref:Z,unstable_dynamicOnHover:C,...N}=e;i=x,R&&("string"==typeof i||"number"==typeof i)&&(i=(0,a.jsx)("a",{children:i}));let F=s.default.useContext(l.AppRouterContext),U=!1!==T,D=!1!==T?null===(n=T)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,V="string"==typeof(t=k||z)?t:(0,u.formatUrl)(t);if(R){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(i)}let L=R?o&&"object"==typeof o&&o.ref:Z,J=s.default.useCallback(e=>(null!==F&&(w.current=(0,h.mountLinkInstance)(e,V,F,D,U,b)),()=>{w.current&&((0,h.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,h.unmountPrefetchableInstance)(e)}),[U,V,F,D,b]),B={ref:(0,c.useMergedRef)(J,L),onClick(e){R||"function"!=typeof A||A(e),R&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),!F||e.defaultPrevented||function(e,t,n,i,o,a,u){{let l,{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&((l=e.currentTarget.getAttribute("target"))&&"_self"!==l||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=r(70156);s.default.startTransition(()=>{d(t,i?"replace":"push",!1===o?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,u)})}}(e,V,w,E,$,j,I)},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&U&&(0,h.onNavigationIntent)(e.currentTarget,!0===C)},onTouchStart:function(e){R||"function"!=typeof M||M(e),R&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&U&&(0,h.onNavigationIntent)(e.currentTarget,!0===C)}};return(0,d.isAbsoluteUrl)(V)?B.href=V:R&&!S&&("a"!==o.type||"href"in o.props)||(B.href=(0,f.addBasePath)(V)),v=R?s.default.cloneElement(o,B):(0,a.jsx)("a",{...N,...B,children:i}),(0,a.jsx)(y.Provider,{value:_,children:v})}r(29842);let y=(0,s.createContext)(h.IDLE_LINK_STATUS),_=()=>(0,s.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[479],{1272:(e,t,r)=>{r.d(t,{I:()=>i});var n=r(12115),o=r(66652),l=r(12991);function i(e,t,r,a,s=!0,u){let{registerFieldControl:d}=(0,l.V$)(),c=n.useRef(null);c.current||(c.current=Symbol()),(0,o.g)(()=>{let n=c.current;if(n&&s)return d(n,{controlRef:e,getValue:a,id:t,name:u,value:r}),()=>{d(n,void 0)}},[e,s,a,t,u,d,r])}},2052:(e,t,r)=>{r.d(t,{s:()=>Y});var n=r(12115),o=r(6791),l=r(14718),i=r(12046),a=r(55218),s=r(2474),u=r(23068),d=r(66652),c=r(64951),f=r(15495),p=r(18813),g=r(81456),v=r(66845),h=r(51464),m=r(83323),b=r(17947),R=r(99226),y=r(92044),w=r(86058),S=r(7049),x=r(76175),C=r(74831),k=r(85489);let E={inert:new WeakMap,"aria-hidden":new WeakMap},M="data-base-ui-inert",P={inert:new WeakSet,"aria-hidden":new WeakSet},A=new WeakMap,T=0,O=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,o.Ng)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),D=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},W=(e,t,r)=>{let n=[],l=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,o.mq)(e)&&(t.has(e)?l(e):n.push(e))})};return l(e),n};function I(e,t={}){let{ariaHidden:r=!1,inert:n=!1,mark:o=!0}=t,l=(0,g.R)(e[0]).body;return function(e,t,r,n,{mark:o=!0}){let l=null;n?l="inert":r&&(l="aria-hidden");let i=null,a=null,s=O(t,e),u=o?W(t,D(s),new Set(s)):[],d=[],c=[];if(l){let e=E[l],r=P[l];a=r,i=e;let n=O(t,Array.from(t.querySelectorAll("[aria-live]"))),o=s.concat(n);W(t,D(o),new Set(o)).forEach(t=>{let n=t.getAttribute(l),o=null!==n&&"false"!==n,i=(e.get(t)||0)+1;e.set(t,i),d.push(t),1===i&&o&&r.add(t),o||t.setAttribute(l,"inert"===l?"":"true")})}return o&&u.forEach(e=>{let t=(A.get(e)||0)+1;A.set(e,t),c.push(e),1===t&&e.setAttribute(M,"")}),T+=1,()=>{i&&d.forEach(e=>{let t=(i.get(e)||0)-1;i.set(e,t),t||(!a?.has(e)&&l&&e.removeAttribute(l),a?.delete(e))}),o&&c.forEach(e=>{let t=(A.get(e)||0)-1;A.set(e,t),t||e.removeAttribute(M)}),(T-=1)||(E.inert=new WeakMap,E["aria-hidden"]=new WeakMap,P.inert=new WeakSet,P["aria-hidden"]=new WeakSet,A=new WeakMap)}}(e,l,r,n,{mark:o})}var F=r(34934),N=r(80120),q=r(69679),L=r(33654),H=r(95155);let B=[];function j(){B=B.filter(e=>e.deref()?.isConnected)}function $(e){j(),e&&"body"!==(0,o.mq)(e)&&(B.push(new WeakRef(e)),B.length>20&&(B=B.slice(-20)))}function U(){return j(),B[B.length-1]?.deref()}function K(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,R.nq)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,R.AO)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");0===t.length?"0"!==r&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Y(e){let{context:t,children:r,disabled:E=!1,initialFocus:M=!0,returnFocus:P=!0,restoreFocus:A=!1,modal:T=!0,closeOnFocusOut:O=!0,openInteractionType:D="",nextFocusableElement:W,previousFocusableElement:B,beforeContentFocusGuardRef:Y,externalTree:V,getInsideElements:z}=e,X="rootStore"in t?t.rootStore:t,Z=X.useState("open"),G=X.useState("domReferenceElement"),Q=X.useState("floatingElement"),{events:J,dataRef:_}=X.context,ee=(0,u.K)(()=>_.current.floatingContext?.nodeId),et=(0,m.WZ)(G)&&!1===M,er=(0,s.u)(M),en=(0,s.u)(P),eo=(0,s.u)(D),el=(0,s.u)(Z),ei=(0,N.cq)(V),ea=(0,F.vB)(),es=n.useRef(!1),eu=n.useRef(!1),ed=n.useRef(!1),ec=n.useRef(null),ef=n.useRef(""),ep=n.useRef(""),eg=n.useRef(null),ev=n.useRef(null),eh=(0,a.a)(eg,Y,ea?.beforeInsideRef),em=(0,a.a)(ev,ea?.afterInsideRef),eb=(0,c.Z)(),eR=(0,c.Z)(),ey=(0,p.N)(),ew=null!=ea,eS=(0,m.nd)(Q),ex=(0,u.K)((e=eS)=>e?(0,R.Kr)(e):[]),eC=(0,u.K)(()=>z?.().filter(e=>null!=e)??[]);n.useEffect(()=>{if(E||!T)return;let e=(0,g.R)(eS);return(0,l.q)(e,"keydown",function(e){"Tab"===e.key&&(0,h.gR)(eS,(0,h.RS)((0,g.R)(eS)))&&0===ex().length&&!et&&(0,b.jo)(e)})},[E,eS,T,et,ex]),n.useEffect(()=>{if(E||!Z)return;let e=(0,g.R)(eS);function t(){ed.current=!1}return(0,i.g)((0,l.q)(e,"pointerdown",function(e){let t=(0,h.EW)(e),r=eC();ed.current=!((0,h.gR)(Q,t)||(0,h.gR)(G,t)||(0,h.gR)(ea?.portalNode,t)||r.some(e=>e===t||(0,h.gR)(e,t))),ep.current=e.pointerType||"keyboard",t?.closest(`[${q.Kd}]`)&&(eu.current=!0,eR.start(0,()=>{eu.current=!1}))},!0),(0,l.q)(e,"pointerup",t,!0),(0,l.q)(e,"pointercancel",t,!0),(0,l.q)(e,"keydown",function(){ep.current="keyboard"},!0),t)},[E,Q,G,eS,Z,ea,eR,eC]),n.useEffect(()=>{if(E||!O)return;let e=(0,g.R)(eS);function t(t){let r=t.relatedTarget,n=t.currentTarget,l=(0,h.EW)(t);T&&null==r&&null!=l&&(0,h.gR)(Q,l)&&$(l),queueMicrotask(()=>{let i=ee(),a=X.context.triggerElements,s=eC(),u=r?.hasAttribute((0,C.F)("focus-guard"))&&[eg.current,ev.current,ea?.beforeInsideRef.current,ea?.afterInsideRef.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,(0,L.q)(B),(0,L.q)(W)].includes(r),d=!((0,h.gR)(G,r)||(0,h.gR)(Q,r)||(0,h.gR)(r,Q)||(0,h.gR)(ea?.portalNode,r)||s.some(e=>e===r||(0,h.gR)(e,r))||null!=r&&a.hasElement(r)||a.hasMatchingElement(e=>(0,h.gR)(e,r))||u||ei&&((0,y.CM)(ei.nodesRef.current,i).find(e=>(0,h.gR)(e.context?.elements.floating,r)||(0,h.gR)(e.context?.elements.domReference,r))||(0,y.$4)(ei.nodesRef.current,i).find(e=>[e.context?.elements.floating,(0,m.nd)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(n===G&&eS&&K(eS),A&&n!==G&&!(0,w.J9)(l)&&(0,h.RS)(e)===e.body){if((0,o.sb)(eS)&&(eS.focus(),"popup"===A))return void ey.request(()=>{eS.focus()});let e=ex(),t=ec.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||eS;(0,o.sb)(r)&&r.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}(et||!T)&&r&&d&&!eu.current&&(et||r!==U())&&(es.current=!0,X.setOpen(!1,(0,S.d)(x.Xn,t)))})}let r=(0,o.sb)(G)?G:null;if(Q||r)return(0,i.g)(r&&(0,l.q)(r,"focusout",t),r&&(0,l.q)(r,"pointerdown",function(){eu.current=!0,eR.start(0,()=>{eu.current=!1})}),Q&&(0,l.q)(Q,"focusin",function(e){let t=(0,h.EW)(e);(0,R.AO)(t)&&(ec.current=t)}),Q&&(0,l.q)(Q,"focusout",t),Q&&ea&&(0,l.q)(Q,"focusout",function(){ed.current||(_.current.insideReactTree=!0,eb.start(0,()=>{_.current.insideReactTree=!1}))},!0))},[E,G,Q,eS,T,ei,ea,X,O,A,ex,et,ee,_,eb,eR,ey,W,B,eC]),n.useEffect(()=>{if(E||!Q||!Z)return;let e=Array.from(ea?.portalNode?.querySelectorAll(`[${(0,C.F)("portal")}]`)||[]),t=ei?(0,y.$4)(ei.nodesRef.current,ee()):[],r=t.find(e=>(0,m.WZ)(e.context?.elements.domReference||null))?.context?.elements.domReference,n=I([Q,...e,eg.current,ev.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,...eC(),r,(0,L.q)(B),(0,L.q)(W),et?G:null].filter(e=>null!=e),{ariaHidden:T||et,mark:!1}),o=I([Q,...e].filter(e=>null!=e));return()=>{o(),n()}},[Z,E,G,Q,T,ea,et,ei,ee,W,B,eC]),(0,d.g)(()=>{if(!Z||E||!(0,o.sb)(eS))return;let e=(0,g.R)(eS),t=(0,h.RS)(e);queueMicrotask(()=>{let r,n=er.current,o="function"==typeof n?n(eo.current||""):n;if(void 0===o||!1===o||(0,h.gR)(eS,t))return;let l=null,i=()=>(null==l&&(l=ex(eS)),l[0]||eS);r=(r=!0===o||null===o?i():(0,L.q)(o))||i();let a=(0,h.gR)(eS,(0,h.RS)(e));(0,k.p)(r,{preventScroll:r===eS,shouldFocus(){if(!el.current)return!1;if(a)return!0;let t=(0,h.RS)(e);return!(t!==r&&(0,h.gR)(eS,t))}})})},[E,Z,eS,ex,er,eo,el]),(0,d.g)(()=>{if(E||!eS)return;let e=(0,g.R)(eS),t=(0,h.RS)(e),r=null==eo.current;function n(e){var t,r;let n;if(e.open||(t=e.nativeEvent,r=ep.current,n=(0,o.zk)((0,h.EW)(t)),ef.current=t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?r||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof n.MouseEvent?r||(0===t.detail?"keyboard":"mouse"):""),e.reason===x.N7&&"mouseleave"===e.nativeEvent.type&&(es.current=!0),e.reason===x.Np)if(e.nested)es.current=!1;else if((0,b.YF)(e.nativeEvent)||(0,b.Pg)(e.nativeEvent))es.current=!1;else{let e=!1;(0,g.R)(eS).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?es.current=!1:es.current=!0}}return $(t),J.on("openchange",n),()=>{J.off("openchange",n);let l=(0,h.RS)(e),i=eC(),a=(0,h.gR)(Q,l)||i.some(e=>e===l||(0,h.gR)(e,l))||ei&&(0,y.CM)(ei.nodesRef.current,ee(),!1).some(e=>(0,h.gR)(e.context?.elements.floating,l)),s=en.current,u=function(){let e=en.current,n="function"==typeof e?e(ef.current):e;if(void 0===n||!1===n)return null;null===n&&(n=!0);let l=G?.isConnected?G:null,i=t?.isConnected&&"body"!==(0,o.mq)(t)?t:null,a=r?i||l:l||i;return(a||(a=U()||null),"boolean"==typeof n)?a:(0,L.q)(n)||a||null}();queueMicrotask(()=>{let t=u?(0,R.AO)(u)?u:(0,R.Kr)(u)[0]||u:null;s&&!es.current&&(0,o.sb)(t)&&("boolean"!=typeof s||t===l||l===e.body||a)&&t.focus({preventScroll:!0}),es.current=!1})}},[E,Q,eS,en,eo,J,ei,G,ee,eC]),(0,d.g)(()=>{if(!f.Fp||Z||!Q)return;let e=(0,h.RS)((0,g.R)(Q));(0,o.sb)(e)&&(0,m.$u)(e)&&(0,h.gR)(Q,e)&&e.blur()},[Z,Q]),(0,d.g)(()=>{if(!E&&ea)return ea.setFocusManagerState({modal:T,closeOnFocusOut:O,open:Z,onOpenChange:X.setOpen,domReference:G}),()=>{ea.setFocusManagerState(null)}},[E,ea,T,Z,X,O,G]),(0,d.g)(()=>{if(!E&&eS)return K(eS),()=>{queueMicrotask(j)}},[E,eS]);let ek=!E&&(!T||!et)&&(ew||T);return(0,H.jsxs)(n.Fragment,{children:[ek&&(0,H.jsx)(v.U,{"data-type":"inside",ref:eh,onFocus:e=>{if(T){let e=ex();(0,k.p)(e[e.length-1])}else if(ea?.portalNode)if(es.current=!1,(0,R.Qp)(e,ea.portalNode)){let e=(0,R.vF)(G);e?.focus()}else(0,L.q)(B??ea.beforeOutsideRef)?.focus()}}),r,ek&&(0,H.jsx)(v.U,{"data-type":"inside",ref:em,onFocus:e=>{if(T)(0,k.p)(ex()[0]);else if(ea?.portalNode)if(O&&(es.current=!0),(0,R.Qp)(e,ea.portalNode)){let e=(0,R.XJ)(G);e?.focus()}else(0,L.q)(W??ea.afterOutsideRef)?.focus()}})]})}},3017:(e,t,r)=>{r.d(t,{l:()=>c});var n=r(12115),o=r(66652),l=r(23068),i=r(14187),a=r(6791),s=r(8994),u=r(62955),d=r(57960);function c(e={}){let{id:t,implicit:r=!1,controlRef:f}=e,{controlId:p,registerControlId:g}=(0,d.H)(),v=(0,u.e)(t),h=r?p:void 0,m=(0,i.j)(()=>Symbol("labelable-control")),b=n.useRef(!1),R=n.useRef(null!=t),y=(0,l.K)(()=>{b.current&&g!==s.tE&&(b.current=!1,g(m.current,void 0))});return(0,o.g)(()=>{let e;if(g!==s.tE){if(r){let r=f?.current;e=(0,a.vq)(r)&&null!=r.closest("label")?t??null:h??v}else if(null!=t)R.current=!0,e=t;else{if(!R.current)return void y();e=v}if(void 0===e)return void y();b.current=!0,g(m.current,e)}},[t,f,h,g,r,v,m,y]),n.useEffect(()=>y,[y]),p??v}},5313:(e,t,r)=>{r.d(t,{$v:()=>b,Jd:()=>l,Kp:()=>u,LM:()=>g,Qi:()=>m,RJ:()=>a,eR:()=>i,eb:()=>d,il:()=>o,jF:()=>v,lZ:()=>c,rT:()=>h,ug:()=>f,yZ:()=>s,z5:()=>p});var n=r(6791);let o="ArrowUp",l="ArrowDown",i="ArrowLeft",a="ArrowRight",s="Home",u="End",d=new Set([i,a]),c=new Set([i,a,s,u]),f=new Set([o,l]),p=new Set([o,l,s,u]),g=new Set([...d,...f]),v=new Set([...g,s,u]),h=new Set(["Shift","Control","Alt","Meta"]);function m(e){return!!((0,n.sb)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,n.sb)(e)&&"TEXTAREA"===e.tagName)}function b(e,t,r,n){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,l=e.scrollTop,i=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(i&&"vertical"!==n){let n=R(e,t,"left"),l=y(e),i=y(t);"ltr"===r&&(n+t.offsetWidth+i.scrollMarginRight>e.scrollLeft+e.clientWidth-l.scrollPaddingRight?o=n+t.offsetWidth+i.scrollMarginRight-e.clientWidth+l.scrollPaddingRight:n-i.scrollMarginLeft<e.scrollLeft+l.scrollPaddingLeft&&(o=n-i.scrollMarginLeft-l.scrollPaddingLeft)),"rtl"===r&&(n-i.scrollMarginRight<e.scrollLeft+l.scrollPaddingLeft?o=n-i.scrollMarginLeft-l.scrollPaddingLeft:n+t.offsetWidth+i.scrollMarginRight>e.scrollLeft+e.clientWidth-l.scrollPaddingRight&&(o=n+t.offsetWidth+i.scrollMarginRight-e.clientWidth+l.scrollPaddingRight))}if(a&&"horizontal"!==n){let r=R(e,t,"top"),n=y(e),o=y(t);r-o.scrollMarginTop<e.scrollTop+n.scrollPaddingTop?l=r-o.scrollMarginTop-n.scrollPaddingTop:r+t.offsetHeight+o.scrollMarginBottom>e.scrollTop+e.clientHeight-n.scrollPaddingBottom&&(l=r+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+n.scrollPaddingBottom)}e.scrollTo({left:o,top:l,behavior:"auto"})}function R(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);)t=t.offsetParent;return o}function y(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}},9005:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(30772).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},10232:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(12115),o=r(8994);let l=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:o.tE,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function i(){return n.useContext(l)}},11975:(e,t,r)=>{r.d(t,{L:()=>a});var n=r(12115),o=r(85516),l=r(69938),i=r(62955);let a=n.forwardRef(function(e,t){let{render:r,className:n,style:a,id:s,...u}=e,{store:d}=(0,o.PQ)(),c=(0,i.e)(s);return d.useSyncedValueWithCleanup("titleElementId",c),(0,l.o)("h2",e,{ref:t,props:[{id:c},u]})})},12991:(e,t,r)=>{r.d(t,{V$:()=>u});var n=r(25803),o=r(12115),l=r(8994),i=r(30785);let a={invalid:void 0,name:void 0,validityData:{state:i.ZV,errors:[],error:"",value:"",initialValue:null},setValidityData:l.tE,disabled:void 0,touched:i.HH.touched,setTouched:l.tE,dirty:i.HH.dirty,setDirty:l.tE,filled:i.HH.filled,setFilled:l.tE,focused:i.HH.focused,setFocused:l.tE,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:i.mk,markedDirtyRef:{current:!1},registerFieldControl:l.tE,validation:{getValidationProps:(e,t=l.t0)=>t,inputRef:{current:null},registerInput:l.tE,commit:async()=>{},change:l.tE}},s=o.createContext(a);function u(e=!0){let t=o.useContext(s);if(t.setValidityData===l.tE&&!e)throw Error((0,n.A)(28));return t}},18460:(e,t,r)=>{r.d(t,{F:()=>i});var n=r(29722);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=n.$,i=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return l(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;let l=o(t)||o(n);return i[e][l]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return l(e,s,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...u}[t]):({...a,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},27091:(e,t,r)=>{r.d(t,{s:()=>u});var n=r(12115),o=r(6791),l=r(23068),i=r(66652),a=r(40253),s=r(70481);function u(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:c=!0,composite:f}=e,p=n.useRef(null),g=(0,s.G)(!0),v=f??void 0!==g,{props:h}=function(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:l=0,isNativeButton:i}=e,a=o&&!1!==t,s=o&&!1===t;return{props:n.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=l,!i&&r&&(e.tabIndex=t?l:-1)),(i&&(t||a)||!i&&r)&&(e["aria-disabled"]=r),i&&(!t||s)&&(e.disabled=r),e},[o,r,t,a,s,i,l])}}({focusableWhenDisabled:r,disabled:t,composite:v,tabIndex:o,isNativeButton:c}),m=n.useCallback(()=>{let e=p.current;d(e)&&v&&t&&void 0===h.disabled&&e.disabled&&(e.disabled=!1)},[t,h.disabled,v]);return(0,i.g)(m,[m]),{getButtonProps:n.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:o,onKeyDown:l,onPointerDown:i,...s}=e;return(0,a.v6)({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){var n;if(t||((0,a.PT)(e),l?.(e),e.baseUIHandlerPrevented))return;let o=e.target===e.currentTarget,i=e.currentTarget,s=d(i),u=!c&&(n=i,!!(n?.tagName==="A"&&n?.href)),f=o&&(c?s:!u),p="Enter"===e.key,g=" "===e.key,h=i.getAttribute("role"),m=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(o&&v&&g){if(e.defaultPrevented&&m)return;e.preventDefault(),u||c&&s?(i.click(),e.preventBaseUIHandler()):f&&(r?.(e),e.preventBaseUIHandler());return}f&&(!c&&(g||p)&&e.preventDefault(),!c&&p&&r?.(e))},onKeyUp(e){t||(((0,a.PT)(e),o?.(e),e.target===e.currentTarget&&c&&v&&d(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||c||v||" "!==e.key||r?.(e)))},onPointerDown(e){t?e.preventDefault():i?.(e)}},c?{type:"button"}:{role:"button"},h,s)},[t,h,v,c]),buttonRef:(0,l.K)(e=>{p.current=e,m()})}}function d(e){return(0,o.sb)(e)&&"BUTTON"===e.tagName}},30030:(e,t,r)=>{r.d(t,{w:()=>l});var n=r(12115),o=r(69938);let l=n.forwardRef(function(e,t){let{className:r,render:n,orientation:l="horizontal",style:i,...a}=e;return(0,o.o)("div",e,{state:{orientation:l},ref:t,props:[{role:"separator","aria-orientation":l},a]})})},30772:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(12115),o=r(30907);let l=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i=r(71265);let a=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...a},s)=>(0,n.createElement)(i.default,{ref:s,iconNode:t,className:(0,o.z)(`lucide-${l(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...a}));return r.displayName=l(e),r}},30785:(e,t,r)=>{var n;r.d(t,{mk:()=>a,HH:()=>i,ZV:()=>l,dc:()=>s});let o=((n={}).disabled="data-disabled",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n),l={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},i={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},a={disabled:!1,...i},s={valid:e=>null===e?null:e?{[o.valid]:""}:{[o.invalid]:""}}},30907:(e,t,r)=>{r.d(t,{z:()=>n});let n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},31799:(e,t,r)=>{r.d(t,{r:()=>a});var n=r(12115),o=r(85516),l=r(69938),i=r(62955);let a=n.forwardRef(function(e,t){let{render:r,className:n,style:a,id:s,...u}=e,{store:d}=(0,o.PQ)(),c=(0,i.e)(s);return d.useSyncedValueWithCleanup("descriptionElementId",c),(0,l.o)("p",e,{ref:t,props:[{id:c},u]})})},31814:(e,t,r)=>{r.d(t,{K:()=>m});var n=r(6791),o=r(14718),l=r(15495),i=r(97827),a=r(81456),s=r(66652),u=r(64951),d=r(18813),c=r(8994);let f={},p={},g="";class v{acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}lock(e){let t,r,s,u,v;if(0===this.lockCount||null!==this.restore)return;let h=(0,a.R)(e).documentElement,m=(0,n.zk)(h).getComputedStyle(h).overflowY;if("hidden"===m||"clip"===m){this.restore=c.tE;return}let b=i.s4||!function(e){if("u"<typeof document)return!1;let t=(0,a.R)(e);return(0,n.zk)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=b?(r=(t=(0,a.R)(e)).documentElement,s=t.body,v={overflowY:(u=(0,n.ZU)(r)?r:s).style.overflowY,overflowX:u.style.overflowX},Object.assign(u.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(u.style,v)}):function(e){let t=(0,a.R)(e),r=t.documentElement,i=t.body,s=(0,n.zk)(r),u=0,c=0,v=!1,h=d.K.create();if(l.Fp&&(s.visualViewport?.scale??1)!==1)return()=>{};function m(){let t=s.getComputedStyle(r),o=s.getComputedStyle(i),l=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";u=r.scrollTop,c=r.scrollLeft,f={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},g=r.style.scrollBehavior,p={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};let d=r.scrollHeight>r.clientHeight,h=r.scrollWidth>r.clientWidth,m="scroll"===t.overflowY||"scroll"===o.overflowY,b="scroll"===t.overflowX||"scroll"===o.overflowX,R=Math.max(0,s.innerWidth-i.clientWidth),y=Math.max(0,s.innerHeight-i.clientHeight),w=parseFloat(o.marginTop)+parseFloat(o.marginBottom),S=parseFloat(o.marginLeft)+parseFloat(o.marginRight),x=(0,n.ZU)(r)?r:i;if(v=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=(0,a.R)(e),r=t.documentElement,o=t.body,l=(0,n.ZU)(r)?r:o,i=l.style.overflowY,s=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",l.style.overflowY="scroll";let u=l.offsetWidth;l.style.overflowY="hidden";let d=l.offsetWidth;return l.style.overflowY=i,r.style.scrollbarGutter=s,u===d}(e)){r.style.scrollbarGutter=l,x.style.overflowY="hidden",x.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:l,overflowY:"hidden",overflowX:"hidden"}),(d||m)&&(r.style.overflowY="scroll"),(h||b)&&(r.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:w||y?`calc(100dvh - ${w+y}px)`:"100dvh",width:S||R?`calc(100vw - ${S+R}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),i.scrollTop=u,i.scrollLeft=c,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function b(){Object.assign(r.style,f),Object.assign(i.style,p),v||(r.scrollTop=u,r.scrollLeft=c,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=g)}m();let R=(0,o.q)(s,"resize",function(){b(),h.request(m)});return()=>{h.cancel(),b(),"function"==typeof s.removeEventListener&&R()}}(e)}constructor(){this.lockCount=0,this.restore=null,this.timeoutLock=u.E.create(),this.timeoutUnlock=u.E.create(),this.release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)},this.unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)}}}let h=new v;function m(e=!0,t=null){(0,s.g)(()=>{if(e)return h.acquire(t)},[e,t])}},32949:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(12115),o=r(96354),l=r(34934),i=r(85516),a=r(38220),s=r(53976),u=r(95155);let d=n.forwardRef(function(e,t){let{keepMounted:r=!1,...n}=e,{store:d}=(0,i.PQ)(),c=d.useState("mounted"),f=d.useState("modal"),p=d.useState("open");return c||r?(0,u.jsx)(a.m.Provider,{value:r,children:(0,u.jsxs)(l.XF,{ref:t,...n,children:[c&&!0===f&&(0,u.jsx)(s.W,{ref:d.context.internalBackdropRef,inert:(0,o.Y)(!p)}),e.children]})}):null})},35684:(e,t,r)=>{r.d(t,{Button:()=>i});var n=r(12115),o=r(27091),l=r(69938);let i=n.forwardRef(function(e,t){let{render:r,className:n,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:s=!0,style:u,...d}=e,{getButtonProps:c,buttonRef:f}=(0,o.s)({disabled:i,focusableWhenDisabled:a,native:s});return(0,l.o)("button",e,{state:{disabled:i},ref:[t,f],props:[d,c]})})},38220:(e,t,r)=>{r.d(t,{m:()=>l,p:()=>i});var n=r(25803),o=r(12115);let l=o.createContext(void 0);function i(){let e=o.useContext(l);if(void 0===e)throw Error((0,n.A)(26));return e}},39504:(e,t,r)=>{r.d(t,{h:()=>R});var n,o,l=r(12115),i=r(2052),a=r(85516),s=r(69938),u=r(84052),d=r(41900);let c=((n={}).nestedDialogs="--nested-dialogs",n),f=((o={})[o.open=u.lP.open]="open",o[o.closed=u.lP.closed]="closed",o[o.startingStyle=u.lP.startingStyle]="startingStyle",o[o.endingStyle=u.lP.endingStyle]="endingStyle",o.nested="data-nested",o.nestedDialogOpen="data-nested-dialog-open",o);var p=r(38220),g=r(72924),v=r(5313),h=r(26713),m=r(95155);let b={...u.GW,...d.G,nestedDialogOpen:e=>e?{[f.nestedDialogOpen]:""}:null},R=l.forwardRef(function(e,t){let{render:r,className:n,style:o,finalFocus:l,initialFocus:u,...d}=e,{store:f}=(0,a.PQ)(),R=f.useState("descriptionElementId"),y=f.useState("disablePointerDismissal"),w=f.useState("floatingRootContext"),S=f.useState("popupProps"),x=f.useState("modal"),C=f.useState("mounted"),k=f.useState("nested"),E=f.useState("nestedOpenDialogCount"),M=f.useState("open"),P=f.useState("openMethod"),A=f.useState("titleElementId"),T=f.useState("transitionStatus"),O=f.useState("role"),D=w.useState("floatingId"),W=d.id??D;(0,p.p)(),(0,g.v)({open:M,ref:f.context.popupRef,onComplete(){M&&f.context.onOpenChangeComplete?.(!0)}});let I=void 0===u?(0,h.UM)(f.context.popupRef):u,F=f.useStateSetter("popupElement"),N=(0,s.o)("div",e,{state:{open:M,nested:k,transitionStatus:T,nestedDialogOpen:E>0},props:[S,{id:W,"aria-labelledby":A??void 0,"aria-describedby":R??void 0,role:O,...h.Ls,hidden:!C,onKeyDown(e){v.jF.has(e.key)&&e.stopPropagation()},style:{[c.nestedDialogs]:E}},d],ref:[t,f.context.popupRef,F],stateAttributesMapping:b});return(0,m.jsx)(i.s,{context:w,openInteractionType:P,disabled:!C,closeOnFocusOut:!y,initialFocus:I,returnFocus:l,modal:!1!==x,restoreFocus:"popup",children:N})})},45477:(e,t,r)=>{r.d(t,{X:()=>u});var n=r(12115),o=r(85516),l=r(69938),i=r(84052),a=r(41900);let s={...i.GW,...a.G},u=n.forwardRef(function(e,t){let{render:r,className:n,style:i,forceRender:a=!1,...u}=e,{store:d}=(0,o.PQ)(),c=d.useState("open"),f=d.useState("nested"),p=d.useState("mounted"),g=d.useState("transitionStatus");return(0,l.o)("div",e,{state:{open:c,transitionStatus:g},ref:[d.context.backdropRef,t],stateAttributesMapping:s,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:a||!f})})},50602:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(12115);function o({controlled:e,default:t,name:r,state:l="value"}){let{current:i}=n.useRef(void 0!==e),[a,s]=n.useState(t),u=n.useCallback(e=>{i||s(e)},[]);return[i?e:a,u]}},52579:(e,t,r)=>{r.d(t,{H:()=>u});var n=r(12115),o=r(85516),l=r(69938),i=r(27091),a=r(7049),s=r(76175);let u=n.forwardRef(function(e,t){let{render:r,className:n,style:u,disabled:d=!1,nativeButton:c=!0,...f}=e,{store:p}=(0,o.PQ)(),g=p.useState("open"),{getButtonProps:v,buttonRef:h}=(0,i.s)({disabled:d,native:c});return(0,l.o)("button",e,{state:{disabled:d},ref:[t,h],props:[{onClick:function(e){g&&p.setOpen(!1,(0,a.d)(s.SR,e.nativeEvent))}},f,v]})})},53976:(e,t,r)=>{r.d(t,{W:()=>l});var n=r(12115),o=r(95155);let l=n.forwardRef(function(e,t){let r,{cutout:n,...l}=e;if(n){let e=n.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,o.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})})},57960:(e,t,r)=>{r.d(t,{H:()=>i});var n=r(12115),o=r(8994);let l=n.createContext({controlId:void 0,registerControlId:o.tE,labelId:void 0,setLabelId:o.tE,messageIds:[],setMessageIds:o.tE,getDescriptionProps:e=>e});function i(){return n.useContext(l)}},64878:(e,t,r)=>{r.d(t,{Input:()=>y});var n=r(12115),o=r(50602),l=r(66652),i=r(81456),a=r(23068),s=r(12991),u=r(1272),d=r(10232),c=r(57960),f=r(3017),p=r(30785),g=r(69938),v=r(7049),h=r(76175),m=r(51464);let b=n.forwardRef(function(e,t){let{render:r,className:b,id:R,name:y,value:w,disabled:S=!1,onValueChange:x,defaultValue:C,autoFocus:k=!1,style:E,...M}=e,{state:P,name:A,disabled:T,setTouched:O,setDirty:D,validityData:W,setFocused:I,setFilled:F,validationMode:N,validation:q}=(0,s.V$)(),{clearErrors:L}=(0,d.x)(),H=T||S,B=A??y,j={...P,disabled:H},{labelId:$}=(0,c.H)(),U=(0,f.l)({id:R});(0,l.g)(()=>{let e=null!=w;q.inputRef.current?.value||e&&""!==w?F(!0):e&&""===w&&F(!1)},[q.inputRef,F,w]);let K=n.useRef(null);(0,l.g)(()=>{k&&K.current===(0,m.RS)((0,i.R)(K.current))&&I(!0)},[k,I]);let[Y]=(0,o.q)({controlled:w,default:C,name:"FieldControl",state:"value"}),V=void 0!==w,z=V?Y:void 0,X=(0,a.K)(()=>q.inputRef.current?.value);return(0,u.I)(q.inputRef,U,z,X,!H,y),(0,g.o)("input",e,{ref:[t,K],state:j,props:[{id:U,disabled:H,name:B,ref:q.inputRef,"aria-labelledby":$,autoFocus:k,...V?{value:z}:{defaultValue:C},onChange(e){let t=e.currentTarget.value;x?.(t,(0,v.d)(h.dv,e.nativeEvent)),D(t!==W.initialValue),F(""!==t),e.nativeEvent.defaultPrevented||(L(B),q.change(t))},onFocus(){I(!0)},onBlur(e){O(!0),I(!1),"onBlur"===N&&q.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(O(!0),q.commit(e.currentTarget.value))}},M,e=>q.getValidationProps(H,e)],stateAttributesMapping:p.dc})});var R=r(95155);let y=n.forwardRef(function(e,t){return(0,R.jsx)(b,{ref:t,...e})})},70481:(e,t,r)=>{r.d(t,{G:()=>i,H:()=>l});var n=r(25803),o=r(12115);let l=o.createContext(void 0);function i(e=!1){let t=o.useContext(l);if(void 0===t&&!e)throw Error((0,n.A)(16));return t}},71265:(e,t,r)=>{r.d(t,{default:()=>a});var n=r(12115),o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},l=r(30907);let i=(0,n.createContext)({}),a=(0,n.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:a,className:s="",children:u,iconNode:d,...c},f)=>{let{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,color:h="currentColor",className:m=""}=(0,n.useContext)(i)??{},b=a??v?24*Number(r??g)/Number(t??p):r??g;return(0,n.createElement)("svg",{ref:f,...o,width:t??p??o.width,height:t??p??o.height,stroke:e??h,strokeWidth:b,className:(0,l.z)("lucide",m,s),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(u)?u:[u]])})},85489:(e,t,r)=>{r.d(t,{p:()=>l});var n=r(8994);let o=0;function l(e,t={}){let{preventScroll:r=!1,sync:i=!1,shouldFocus:a}=t;function s(){(!a||a())&&e?.focus({preventScroll:r})}if(cancelAnimationFrame(o),i)return s(),n.tE;let u=requestAnimationFrame(s);return o=u,()=>{o===u&&(cancelAnimationFrame(u),o=0)}}},85516:(e,t,r)=>{r.d(t,{PQ:()=>a,Ts:()=>l,am:()=>i});var n=r(25803),o=r(12115);let l=o.createContext(!1),i=o.createContext(void 0);function a(e){let t=o.useContext(i);if(!1===e&&void 0===t)throw Error((0,n.A)(27));return t}},96354:(e,t,r)=>{r.d(t,{Y:()=>o});var n=r(39034);function o(e){return(0,n._)(19)?e:e?"true":void 0}},98408:(e,t,r)=>{r.d(t,{D:()=>w});var n=r(12115),o=r(85516),l=r(95313),i=r(31814),a=r(8994),s=r(87541),u=r(51464),d=r(7049),c=r(76175),f=r(26713);function p({store:e,parentContext:t,isDrawer:r}){let o=e.useState("open"),l=e.useState("disablePointerDismissal"),d=e.useState("modal"),c=e.useState("popupElement"),g=e.useState("floatingRootContext"),[v,h]=n.useState(0),[m,b]=n.useState(0),R=0===v,y=(0,s.s)(g,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===d?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button||"touches"in t&&1!==t.touches.length)return!1;let r=(0,u.EW)(t);return!!R&&!l&&(!d||!e.context.internalBackdropRef.current&&!e.context.backdropRef.current||e.context.internalBackdropRef.current===r||e.context.backdropRef.current===r||(0,u.gR)(r,c)&&!r?.hasAttribute("data-base-ui-portal"))},escapeKey:R});(0,i.K)(o&&!0===d,c),e.useContextCallback("onNestedDialogOpen",(e,t)=>{h(e),b(t)}),e.useContextCallback("onNestedDialogClose",()=>{h(0),b(0)}),n.useEffect(()=>(t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(v+1,m+ +!!r),t?.onNestedDialogClose&&!o&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&o&&t.onNestedDialogClose()}),[r,o,v,m,t]);let w=y.reference??a.t0,S=y.trigger??a.t0,x=y.floating??a.t0;return(0,f.i6)(e,{activeTriggerProps:w,inactiveTriggerProps:S,popupProps:x,nestedOpenDialogCount:v,nestedOpenDrawerCount:m}),null}var g=r(78880),v=r(98419),h=r(34785),m=r(52313);let b={...h.ol,modal:(0,g.M)(e=>e.modal),nested:(0,g.M)(e=>e.nested),nestedOpenDialogCount:(0,g.M)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,g.M)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,g.M)(e=>e.disablePointerDismissal),openMethod:(0,g.M)(e=>e.openMethod),descriptionElementId:(0,g.M)(e=>e.descriptionElementId),titleElementId:(0,g.M)(e=>e.titleElementId),viewportElement:(0,g.M)(e=>e.viewportElement),role:(0,g.M)(e=>e.role)};class R extends v.H{constructor(e,t,r=!1){const o=new m.Z,l=function(e={}){return{...(0,h.rJ)(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e);l.floatingRootContext=(0,h.OB)(o,t,r),super(l,{popupRef:n.createRef(),backdropRef:n.createRef(),internalBackdropRef:n.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:o,onOpenChange:void 0,onOpenChangeComplete:void 0},b)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let r={open:e};(0,f.i)(r,e,t.trigger),this.update(r)};static useStore(e,t){return(0,f.Nj)(e,(e,r)=>new R(t,e,r),!0).store}}var y=r(95155);function w(e){return function(e,t="dialog"){let{children:r,open:i,defaultOpen:a=!1,onOpenChange:s,onOpenChangeComplete:u,disablePointerDismissal:g=!1,modal:v=!0,actionsRef:h,handle:m,triggerId:b,defaultTriggerId:w=null}=e,S="alert-dialog"===t,x=(0,o.PQ)(!0),C={modal:!!S||v,disablePointerDismissal:S||g,nested:!!x,role:S?"alertdialog":"dialog"},k=R.useStore(m?.store,{open:a,openProp:i,activeTriggerId:w,triggerIdProp:b,...C});(0,l.j)(()=>{let e=void 0===i&&!1===k.state.open&&!0===a?{open:!0,activeTriggerId:w}:null;S?k.update(e?{...C,...e}:C):e&&k.update(e)}),k.useControlledProp("openProp",i),k.useControlledProp("triggerIdProp",b),k.useSyncedValues(C),k.useContextCallback("onOpenChange",s),k.useContextCallback("onOpenChangeComplete",u);let E=k.useState("open"),M=k.useState("mounted"),P=k.useState("payload");!function(e){let{store:t,actionsRef:r}=e,o=t.useState("open");(0,f.xs)(t,o),(0,f.tr)(t);let{forceUnmount:l}=(0,f.l$)(o,t),i=n.useCallback(()=>{t.setOpen(!1,(0,d.d)(c.zJ))},[t]);n.useImperativeHandle(r,()=>({unmount:l,close:i}),[l,i])}({store:k,actionsRef:h});let A=n.useMemo(()=>({store:k}),[k]);return(0,y.jsx)(o.Ts.Provider,{value:!1,children:(0,y.jsxs)(o.am.Provider,{value:A,children:[(E||M)&&(0,y.jsx)(p,{store:k,parentContext:x?.store.context,isDrawer:"drawer"===t}),"function"==typeof r?r({payload:P}):r]})})}(e,n.useContext(o.Ts)?"drawer":"dialog")}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[493],{119:(e,t,r)=>{r.d(t,{Logo:()=>s});var n=r(95155),a=r(12115),i=r(40980);function s({className:e}){let[t,r]=(0,a.useState)(0),o=()=>r(e=>e+90);return(0,n.jsxs)("svg",{viewBox:"0 0 122 16",className:(0,i.cn)("h-4 w-auto text-foreground",e),fill:"currentColor",role:"img","aria-label":"Vellum",xmlns:"http://www.w3.org/2000/svg",onMouseEnter:o,onMouseLeave:o,children:[(0,n.jsx)("g",{className:"origin-center transition-transform duration-500 ease-out motion-reduce:transition-none",style:{transformBox:"fill-box",transform:`rotate(${t}deg)`},children:(0,n.jsx)("path",{d:"M6.50391 3.5H9.50391V1H12.5039V3.5H15.0039V6.5H12.5039V9.5H15.0039V12.5H12.5039V15H9.50391V12.5H6.50391V15H3.50391V12.5H1.00391V9.5H3.50391V6.5H1.00391V3.5H3.50391V1H6.50391V3.5ZM6.50391 9.5H9.50391V6.5H6.50391V9.5Z"})}),(0,n.jsx)("path",{d:"M86.7959 7.94043C86.7959 9.45243 87.2643 11.4512 90.4863 11.4512H90.5762C93.78 11.4511 94.2119 9.4524 94.2119 7.94043V1.40723H98.4961V7.99512C98.496 10.6591 97.6497 14.9971 90.792 14.9971H90.2695C83.1422 14.9969 82.5118 10.6411 82.5117 7.99512V1.40723H86.7959V7.94043ZM27.3057 10.9473L31.5176 1.40723H36.0898L29.9697 14.7988H24.498L18.1084 1.40723H23.0938L27.3057 10.9473ZM50.6113 4.48438H42.043V6.42871H50.3418V9.61523H42.043V11.6846H50.7197V14.7988H37.7773V1.40723H50.6113V4.48438ZM57.8643 11.3066H65.9648V14.7988H53.5625V1.40723H57.8643V11.3066ZM72.7354 11.3066H80.8359V14.7988H68.4336V1.40723H72.7354V11.3066ZM111.343 9.74121L115.374 1.40723H120.918V14.7988H116.706V6.24902L112.692 14.7988H109.704L105.708 6.24902V14.7988H101.568V1.40723H107.4L111.343 9.74121Z"})]})}},13461:(e,t,r)=>{r.d(t,{WorkspaceProvider:()=>P,h:()=>E});var n=r(95155),a=r(12115),i=r(28864);let s="handles",o="workspace";async function l(e,t){let r=await new Promise((e,t)=>{let r=indexedDB.open("vellum",1);r.onupgradeneeded=()=>{let e=r.result;e.objectStoreNames.contains(s)||e.createObjectStore(s)},r.onsuccess=()=>e(r.result),r.onerror=()=>t(r.error)});try{return await new Promise((n,a)=>{let i=r.transaction(s,e).objectStore(s),o=t(i);o.onsuccess=()=>n(o.result),o.onerror=()=>a(o.error)})}finally{r.close()}}async function c(e){await l("readwrite",t=>t.put(e,o))}let d=".vellum-workspace.json",u={mode:"readwrite"};async function m(e){try{for await(let t of e.keys())break;return!0}catch(e){if(e instanceof DOMException&&"NotFoundError"===e.name)return!1;throw e}}async function f(e){try{await e.getFileHandle(d);return}catch(e){if(!(e instanceof DOMException)||"NotFoundError"!==e.name)throw e}let t={schemaVersion:1,createdAt:new Date().toISOString()},r=await e.getFileHandle(d,{create:!0}),n=await r.createWritable();await n.write(`${JSON.stringify(t,null,2)}
|
|
2
|
+
`),await n.close()}var h=r(50981),g=r(95660),p=r(5736),x=r(33650),w=r(92571),y=r(119),v=r(89239);function b({children:e}){return(0,n.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:(0,n.jsx)("div",{className:"w-full max-w-md animate-in fade-in-0 zoom-in-95 duration-200 ease-out",children:e})})}function j(){return(0,n.jsx)("div",{className:"mb-8 flex items-center",children:(0,n.jsx)(y.Logo,{className:"h-[21px]"})})}function k({children:e}){return(0,n.jsx)("div",{className:"flex size-9 items-center justify-center rounded-lg border border-border bg-card",children:e})}function N(){return(0,n.jsxs)("div",{className:"mt-8 flex gap-3 rounded-lg border border-border bg-card p-4",children:[(0,n.jsx)(h.A,{className:"mt-0.5 size-4 shrink-0 text-muted-foreground",strokeWidth:1.5}),(0,n.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:"Everything stays on your machine. Recordings and reports are written to this folder and never leave it. The only data sent out is the video itself — uploaded to the Google Gemini API under your own key for analysis. No backend, no telemetry, no account."})]})}function $({onPick:e}){return(0,n.jsxs)(b,{children:[(0,n.jsx)(j,{}),(0,n.jsx)(k,{children:(0,n.jsx)(g.A,{className:"size-5",strokeWidth:1.5})}),(0,n.jsx)("h1",{className:"mt-4 text-lg font-medium tracking-tight",children:"Choose a workspace folder"}),(0,n.jsx)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:"Vellum keeps every recording, report, and screenshot inside one folder you choose. Pick an empty folder to start."}),(0,n.jsxs)(v.$,{className:"mt-6 w-full",onClick:e,children:[(0,n.jsx)(g.A,{}),"Choose folder…"]}),(0,n.jsx)(N,{})]})}function H({folderName:e,onConfirm:t,onPickOther:r}){return(0,n.jsxs)(b,{children:[(0,n.jsx)(j,{}),(0,n.jsx)(k,{children:(0,n.jsx)(p.A,{className:"size-5",strokeWidth:1.5})}),(0,n.jsx)("h1",{className:"mt-4 text-lg font-medium tracking-tight",children:"Confirm workspace access"}),(0,n.jsxs)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:["Your browser needs permission to reopen"," ",e?(0,n.jsx)("span",{className:"font-medium text-foreground",children:e}):"your workspace folder",". This is a routine confirmation after a restart — nothing has changed."]}),(0,n.jsx)(v.$,{className:"mt-6 w-full",onClick:t,children:"Confirm access"}),r&&(0,n.jsx)(v.$,{variant:"ghost",className:"mt-2 w-full",onClick:r,children:"Choose a different folder…"})]})}function C({folderName:e,onPick:t}){return(0,n.jsxs)(b,{children:[(0,n.jsx)(j,{}),(0,n.jsx)(k,{children:(0,n.jsx)(x.A,{className:"size-5",strokeWidth:1.5})}),(0,n.jsx)("h1",{className:"mt-4 text-lg font-medium tracking-tight",children:"Workspace unavailable"}),(0,n.jsxs)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:["We couldn’t find"," ",e?(0,n.jsx)("span",{className:"font-medium text-foreground",children:e}):"your workspace folder",". It may have been moved, renamed, or deleted. Choose a workspace folder to continue."]}),(0,n.jsxs)(v.$,{className:"mt-6 w-full",onClick:t,children:[(0,n.jsx)(g.A,{}),"Choose folder…"]})]})}function D(){return(0,n.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-background",children:(0,n.jsx)(w.A,{className:"size-5 animate-spin text-muted-foreground",strokeWidth:1.5})})}let S=(0,a.createContext)(null);function E(){let e=(0,a.useContext)(S);if(!e)throw Error("useWorkspace must be used within a ready WorkspaceProvider");return e}function P({children:e}){let[t,r]=(0,a.useState)({kind:"loading"}),[s,d]=(0,a.useState)(0),h=(0,a.useCallback)(()=>d(e=>e+1),[]),g=(0,a.useCallback)(async e=>{await m(e)?(await f(e),await c(e),r({kind:"ready",handle:e})):r({kind:"unavailable",folderName:e.name})},[]);(0,a.useEffect)(()=>{let e=!1;return(async()=>{let t=await l("readonly",e=>e.get(o)).then(e=>e??null);if(e)return;if(!t)return void r({kind:"onboarding"});let n=await t.queryPermission(u);e||("granted"===n?await g(t):"prompt"===n?r({kind:"needs-permission",handle:t}):r({kind:"unavailable",folderName:t.name}))})().catch(()=>{e||r({kind:"onboarding"})}),()=>{e=!0}},[g]);let p=(0,a.useCallback)(async()=>{try{let e=await (0,i.a)();await g(e)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;r({kind:"unavailable"})}},[g]),x=(0,a.useCallback)(async e=>{try{let t=await e.requestPermission(u);"granted"===t?await g(e):r({kind:"unavailable",folderName:e.name})}catch{r({kind:"unavailable",folderName:e.name})}},[g]);switch(t.kind){case"loading":return(0,n.jsx)(F,{children:(0,n.jsx)(D,{})});case"onboarding":return(0,n.jsx)(F,{children:(0,n.jsx)($,{onPick:p})});case"needs-permission":return(0,n.jsx)(F,{children:(0,n.jsx)(H,{folderName:t.handle.name,onConfirm:()=>x(t.handle),onPickOther:p})});case"unavailable":return(0,n.jsx)(F,{children:(0,n.jsx)(C,{folderName:t.folderName,onPick:p})});case"ready":return(0,n.jsx)(S.Provider,{value:{handle:t.handle,sessionsNonce:s,refreshSessions:h,repickWorkspace:p},children:e})}}function F({children:e}){return(0,n.jsx)("div",{className:"h-svh w-full",children:e})}},16425:(e,t,r)=>{r.d(t,{Iw:()=>c,R7:()=>s,yB:()=>i});var n=r(30522);let a="name.txt";async function i(e){try{let t=await e.getFileHandle(a),r=await (await t.getFile()).text(),n=r.split(/\r?\n/)[0]?.trim()??"";return n.length>0?n:null}catch{return null}}async function s(e,t){let r=t.trim(),n=await e.getFileHandle(a,{create:!0}),i=await n.createWritable();await i.write(r+"\n"),await i.close()}let o=".txt";async function l(e){let t=e.name;if(t===a||!t.endsWith(o))return!1;let r=t.slice(0,-o.length);if((0,n.kW)(r)!==r)return!1;try{return 0===(await e.getFile()).size}catch{return!1}}async function c(e,t){try{let r=function(e){let t=(0,n.kW)(e);if(!t)return null;let r=t+o;return r===a?null:r}(t);if(!r)return;for await(let t of e.values())if("file"===t.kind&&t.name!==r&&await l(t))try{await e.removeEntry(t.name)}catch{}try{await e.getFileHandle(r);return}catch(e){if(!(e instanceof DOMException&&"NotFoundError"===e.name))return}let i=await e.getFileHandle(r,{create:!0});await (await i.createWritable()).close()}catch{}}},23945:(e,t,r)=>{r.d(t,{T6:()=>a,_b:()=>i,bN:()=>s,nO:()=>n});let n=[".webm",".mp4"];function a(e){return n.includes(e)}function i(e){return".mp4"===e?"video/mp4":"video/webm"}async function s(e){for(let t of n){let r=`recording${t}`,n=await o(e,r);if(n)return{handle:n,name:r,ext:t}}return null}async function o(e,t){try{return await e.getFileHandle(t)}catch(e){if(e instanceof DOMException&&"NotFoundError"===e.name)return null;throw e}}},24493:(e,t,r)=>{r.d(t,{AnalysisProvider:()=>d,S:()=>c});var n=r(95155),a=r(12115),i=r(13461),s=r(87677),o=r(50132);let l=(0,a.createContext)(null);function c(){let e=(0,a.useContext)(l);if(!e)throw Error("useAnalysis must be used within an AnalysisProvider");return e}function d({children:e}){let{handle:t,refreshSessions:r}=(0,i.h)(),[c,u]=(0,a.useState)(null),[m,f]=(0,a.useState)({}),[h,g]=(0,a.useState)({}),[p,x]=(0,a.useState)(null),w=(0,a.useRef)(null),y=(0,a.useRef)(0),v=(0,a.useRef)(!1),b=(0,a.useCallback)(e=>{v.current||x({name:e})},[]),j=(0,a.useCallback)((e,n)=>{if(v.current)return;let a=++y.current,i=new AbortController;w.current=i,v.current=!0,f(t=>{if(!(e in t))return t;let r={...t};return delete r[e],r}),u({name:e,phase:"upload",status:"running"}),(async()=>{try{let s=await t.getDirectoryHandle(e);if(await (0,o.e)({sessionDir:s,sessionName:e,model:n.model,mode:n.mode,language:n.language,signal:i.signal,onProgress:t=>{y.current===a&&u({name:e,phase:t.phase,n:t.n,m:t.m,status:"running"})}}),y.current!==a)return;v.current=!1,u(null),g(t=>({...t,[e]:(t[e]??0)+1})),r()}catch(r){if(r instanceof DOMException&&"AbortError"===r.name||y.current!==a)return;v.current=!1,u(null);let t=r instanceof o.f?{kind:r.kind,message:r.message}:{kind:"internal",message:r instanceof Error?r.message:String(r)};f(r=>({...r,[e]:t}))}})()},[t,r]),k=(0,a.useCallback)(()=>{y.current+=1,v.current=!1,w.current?.abort(),u(null)},[]),N=(0,a.useCallback)(e=>{if(!p)return;let{name:t}=p;x(null),j(t,e)},[p,j]);return(0,n.jsxs)(l.Provider,{value:{analysis:c,analyze:b,cancelAnalyze:k,errors:m,completions:h},children:[e,(0,n.jsx)(s.H,{sessionName:p?.name??null,onStart:N,onClose:()=>x(null)})]})}},28864:(e,t,r)=>{r.d(t,{P:()=>s,a:()=>i});var n=r(86801);let a="recording.webm";function i(){return window.showDirectoryPicker({mode:"readwrite"})}async function s(e,t){let{dir:r,name:i}=await (0,n.C)(e,t),s=await r.getFileHandle(a,{create:!0}),o=await s.createWritable(),l=Promise.resolve();return{sessionDirName:i,relativePath:`${i}/${a}`,write:e=>l=l.then(()=>o.write(e)),close:async()=>{await l,await o.close()}}}},30522:(e,t,r)=>{r.d(t,{BE:()=>o,DJ:()=>h,R6:()=>i,gp:()=>m,kW:()=>c,tm:()=>d});var n=r(5989),a=r(33829);let i=["problem","idea","question","decision","followup","praise"],s=["ui_design","dev_vs_design","documentation","mixed","other"],o=["low","med","high"],l=/^\d{1,3}:[0-5]\d$/;function c(e){let t=e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60).replace(/-+$/g,"");return t.length>0?t:void 0}function d(e){let[t,r]=e.split(":");return 60*Number(t)+Number(r)}let u=e=>n.Yj().regex(l,`${e} must be "mm:ss" (e.g. "03:42")`),m=n.Ik({timestamp:u("timestamp"),screenshot_timestamp:u("screenshot_timestamp"),title:n.Yj().min(1),description:n.Yj().min(1),screen_context:n.Yj().min(1),category:n.k5(i),priority:n.k5(o)}),f=n.Ik({analyzedAt:n.Yj().min(1),mode:n.k5(["thorough","economy"]),language:n.k5(["en","uk"]).optional(),origin:n.k5(["analyze","revise-text","revise-video"]).optional(),models:n.YO(n.Yj()),tokensIn:n.ai(),tokensOut:n.ai(),costUsd:n.ai().optional()}),h=n.Ik({review_type:n.k5(s),overview:n.Yj().min(1),suggested_name:n.Yj().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,'suggested_name must be kebab-case (e.g. "onboarding-review")').max(60).optional(),tasks:n.YO(m),run:f.optional()}),g=(e,t)=>({type:a.ZU.STRING,enum:[...e],description:t});a.ZU.OBJECT,a.ZU.STRING,a.ZU.STRING,a.ZU.STRING,a.ZU.STRING,a.ZU.STRING,g(i,"The nature of the item. Use exactly one of the allowed values."),g(o,"Relative urgency of acting on the item."),a.ZU.OBJECT,g(s,"The kind of review session, inferred from the overall recording."),a.ZU.STRING,a.ZU.STRING,a.ZU.ARRAY},38667:(e,t,r)=>{r.d(t,{$e:()=>u,Ec:()=>l,Gc:()=>a,U4:()=>d,aA:()=>c,wv:()=>o});let n={ui_design:"UI Design",dev_vs_design:"Dev vs Design",documentation:"Documentation",mixed:"Mixed",other:"Other"};function a(e){var t;let r,{title:a,date:o,relVideo:l,result:c}=e,u=n[c.review_type];return[`# ${a}`,"",`**Review type:** ${u} \xb7 **Date:** ${o} \xb7 **Recording:** [${(r=(t=l).split("/").filter(Boolean)).length>0?r[r.length-1]:t}](${i(l)})`,"",c.overview].concat(0===c.tasks.length?["","---","","_No tasks were extracted from this recording._"]:c.tasks.flatMap((e,t)=>(function(e,t){let r=["","---","",`## ${t+1}. ${e.title}`,""];if(e.screenshot){let t=`${d}/${e.screenshot}`;r.push(`})`,"")}return r.push(`**Discussed at** \`${e.timestamp}\` \xb7 **Visible at** \`${e.screenshot_timestamp}\` \xb7 **Category:** ${s(e.category)} \xb7 **Priority:** ${s(e.priority)}`,"",e.description,"",`> **Screen context:** ${e.screen_context}`),r})(e,t))).join("\n").trimEnd()+"\n"}function i(e){return e.split("/").map(encodeURIComponent).join("/")}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o({override:e,suggested:t,folderName:r}){var n;let a,i=e?.trim();if(i)return i;let s=t?.trim();return s?(a=(n=s).replace(/[-_]+/g," ").trim().split(/\s+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1))).length>0?a.join(" "):n:r}function l(){let e=new Date,t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function c(e){let t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}${t(e.getSeconds())}`}let d="screenshots";function u(e){return`${d}-${e}`}},39234:(e,t,r)=>{r.d(t,{W:()=>a,o:()=>i});var n=r(30522);function a(e){let t=new Set;return e.map(e=>l(o((0,n.tm)(e.screenshot_timestamp)),t))}async function i(e,t){let r;if(0===t.length)return[];try{r=await e.getDirectoryHandle(s)}catch(e){if(d(e))return t.map(()=>null);throw e}return Promise.all((function(e){let t=new Set;for(let r of e)r.screenshot&&t.add(r.screenshot);return e.map(e=>e.screenshot?e.screenshot:null==e.screenshot_timestamp?null:l(o((0,n.tm)(e.screenshot_timestamp)),t))})(t).map(e=>e?c(r,e):null))}let s="screenshots";function o(e){let t=Math.floor(e),r=String(Math.floor(t/60)).padStart(2,"0"),n=String(t%60).padStart(2,"0");return`frame-${r}-${n}.png`}function l(e,t){if(!t.has(e))return t.add(e),e;let r=e.replace(/\.png$/,""),n=2;for(;t.has(`${r}-${n}.png`);)n+=1;let a=`${r}-${n}.png`;return t.add(a),a}async function c(e,t){try{let r=await e.getFileHandle(t);return await r.getFile()}catch(e){if(d(e))return null;throw e}}function d(e){return e instanceof DOMException&&"NotFoundError"===e.name}},42763:(e,t,r)=>{r.d(t,{Dialog:()=>g,DialogClose:()=>w,DialogContent:()=>v,DialogDescription:()=>N,DialogFooter:()=>j,DialogHeader:()=>b,DialogTitle:()=>k,DialogTrigger:()=>p});var n=r(95155);r(12115);var a=r(98408),i=r(49555),s=r(32949),o=r(52579),l=r(45477),c=r(39504),d=r(11975),u=r(31799),m=r(40980),f=r(89239),h=r(9005);function g({...e}){return(0,n.jsx)(a.D,{"data-slot":"dialog",...e})}function p({...e}){return(0,n.jsx)(i.z,{"data-slot":"dialog-trigger",...e})}function x({...e}){return(0,n.jsx)(s.Z,{"data-slot":"dialog-portal",...e})}function w({...e}){return(0,n.jsx)(o.H,{"data-slot":"dialog-close",...e})}function y({className:e,...t}){return(0,n.jsx)(l.X,{"data-slot":"dialog-overlay",className:(0,m.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function v({className:e,children:t,showCloseButton:r=!0,...a}){return(0,n.jsxs)(x,{children:[(0,n.jsx)(y,{}),(0,n.jsxs)(c.h,{"data-slot":"dialog-content",className:(0,m.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a,children:[t,r&&(0,n.jsxs)(o.H,{"data-slot":"dialog-close",render:(0,n.jsx)(f.$,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,n.jsx)(h.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function b({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,m.cn)("flex flex-col gap-2",e),...t})}function j({className:e,showCloseButton:t=!1,children:r,...a}){return(0,n.jsxs)("div",{"data-slot":"dialog-footer",className:(0,m.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...a,children:[r,t&&(0,n.jsx)(o.H,{render:(0,n.jsx)(f.$,{variant:"outline"}),children:"Close"})]})}function k({className:e,...t}){return(0,n.jsx)(d.L,{"data-slot":"dialog-title",className:(0,m.cn)("font-heading text-base leading-none font-medium",e),...t})}function N({className:e,...t}){return(0,n.jsx)(u.r,{"data-slot":"dialog-description",className:(0,m.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}},42914:(e,t,r)=>{r.d(t,{E_:()=>s,eJ:()=>o,fG:()=>c,xK:()=>l});var n=r(5989),a=r(30522);let i=n.Ik({id:n.Yj().min(1),origin:n.k5(["ai","human"]),screenshot:n.Yj().min(1).optional(),note:n.Yj().optional(),timestamp:a.gp.shape.timestamp.optional(),screenshot_timestamp:a.gp.shape.screenshot_timestamp.optional(),screen_context:a.gp.shape.screen_context.optional(),title:a.gp.shape.title,description:a.gp.shape.description,category:a.gp.shape.category,priority:a.gp.shape.priority}),s=n.Ik({review_type:a.DJ.shape.review_type,overview:a.DJ.shape.overview,suggested_name:a.DJ.shape.suggested_name,run:a.DJ.shape.run,note:n.Yj().optional(),tasks:n.YO(i)});function o(e){let t=s.safeParse(e);if(t.success)return{status:"stored",result:t.data};let r=a.DJ.safeParse(e);return r.success?{status:"legacy",result:r.data}:{status:"malformed"}}function l(e){let t=0;for(let r of e){let e=/(\d+)$/.exec(r.id);e&&(t=Math.max(t,Number(e[1])))}return`h${t+1}`}function c(e,t){let r=t(e.tasks),n=e.tasks.map((e,t)=>({id:`t${t+1}`,origin:"ai",screenshot:r[t],...e}));return{review_type:e.review_type,overview:e.overview,suggested_name:e.suggested_name,run:e.run,tasks:n}}},50132:(e,t,r)=>{r.d(t,{f:()=>i,e:()=>s});var n=r(57244),a=r(23945);class i extends Error{constructor(e,t){super(t),this.kind=e,this.name="AnalyzeFlowError"}}async function s({sessionDir:e,sessionName:t,onProgress:r,signal:c,mode:d,language:u,model:m,revise:f}){var h,g,p,x;let w,y,{bytes:v,ext:b}=await o(e),j=(0,a._b)(b),k=`?ext=${b.slice(1)}${d?`&mode=${d}`:""}${u?`&lang=${u}`:""}${m?`&model=${encodeURIComponent(m)}`:""}`,N=f?{method:"POST",body:(h=v,g=b,p=j,x=f,(w=new FormData).append("video",new Blob([h],{type:p}),`recording${g}`),w.append("revise",JSON.stringify(x)),w),signal:c}:{method:"POST",headers:{"Content-Type":j},body:v,signal:c};try{y=await fetch(`/api/analyze${k}`,N)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw e;throw new i("network","Couldn't reach the analyzer. Check that the app is running, then retry.")}if(!y.ok||!y.body)throw new i("internal",`The analyzer responded with ${y.status}. Retry in a moment.`);let $=await l(y.body,r);return r({phase:"writing"}),(0,n.m)(e,$.result,$.screenshots,t)}async function o(e){let t=await (0,a.bN)(e);if(!t)throw new i("recording","This session has no recording (recording.webm or recording.mp4) to analyze.");let r=await t.handle.getFile();return{bytes:await r.arrayBuffer(),ext:t.ext}}async function l(e,t){let r=e.getReader(),n=new TextDecoder,a="",s=null;for(;;){let e=await r.read();if(e.done)break;let o=function(e){let t=e.split("\n"),r=t.pop()??"";return{lines:t.map(e=>e.trim()).filter(e=>e.length>0),rest:r}}(a+=n.decode(e.value,{stream:!0}));for(let e of(a=o.rest,o.lines)){let r=function(e){try{return JSON.parse(e)}catch{throw new i("stream","The analyzer sent a malformed response. Retry in a moment.")}}(e);if("progress"===r.type)t({phase:r.phase,n:r.n,m:r.m});else if("error"===r.type)throw new i(r.kind,r.message);else s={result:r.result,screenshots:r.screenshots}}if(s)break}if(!s)throw new i("stream","The analysis stream ended before finishing. Retry in a moment.");return s}},57244:(e,t,r)=>{r.d(t,{m:()=>m,n:()=>f});var n=r(30522),a=r(42914),i=r(38667),s=r(39234),o=r(16425),l=r(79405);let c="report.md",d="tasks.json",u="screenshots";async function m(e,t,r,s){let l=n.DJ.parse(t);if(r.length!==l.tasks.length)throw Error(`writeReportBrowser: screenshots (${r.length}) must be parallel to result.tasks (${l.tasks.length}).`);await g(e);let m=r.map(e=>e.name),f=(0,a.fG)(l,()=>m),h=await (0,o.yB)(e),p=(0,i.Gc)({title:(0,i.wv)({override:h,suggested:f.suggested_name,folderName:s}),date:(0,i.Ec)(),relVideo:"recording.webm",result:f});await v(e,c,p),await v(e,d,JSON.stringify(f,null,2)+"\n");let x=await e.getDirectoryHandle(u,{create:!0});for(let e of r)await b(x,e.name,function(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)r[e]=t.charCodeAt(e);return r}(e.base64));return{reportName:c,tasksJsonName:d,screenshotNames:r.map(e=>e.name)}}async function f(e,t,r){let l=n.DJ.parse(t),m=await h(e),f=(0,s.W)(l.tasks).map(e=>m.has(e)?e:void 0);await g(e);let p=(0,a.fG)(l,()=>f),x=await (0,o.yB)(e),w=(0,i.Gc)({title:(0,i.wv)({override:x,suggested:p.suggested_name,folderName:r}),date:(0,i.Ec)(),relVideo:"recording.webm",result:p});await v(e,c,w),await v(e,d,JSON.stringify(p,null,2)+"\n");let y=await e.getDirectoryHandle(u,{create:!0}),j=[];for(let e of f){if(!e)continue;let t=m.get(e);t&&(j.includes(e)||(await b(y,e,t),j.push(e)))}return{reportName:c,tasksJsonName:d,screenshotNames:j}}async function h(e){let t=new Map,r=await k(e,u);if(!r)return t;for await(let e of r.values()){if("file"!==e.kind)continue;let r=await e.getFile();t.set(e.name,new Uint8Array(await r.arrayBuffer()))}return t}async function g(e){let t=await j(e,c),r=await j(e,d),n=await k(e,u);if(!t&&!r&&!n)return;let a=t?(await t.getFile()).lastModified:r?(await r.getFile()).lastModified:Date.now(),s=await p(e,(0,i.aA)(new Date(a)));t&&await w(e,c,`report-${s}.md`),r&&await w(e,d,`tasks-${s}.json`),n&&await y(e,n,(0,i.$e)(s)),await w(e,l.Dg,`tasks.ai-${s}.json`),await w(e,"comments.json",`comments-${s}.json`)}async function p(e,t){let r=t,n=2;for(;await x(e,r);)r=`${t}-${n}`,n+=1;return r}async function x(e,t){return!!(await j(e,`report-${t}.md`)||await j(e,`tasks-${t}.json`)||await k(e,(0,i.$e)(t)))}async function w(e,t,r){let n=await j(e,t);if(!n)return;let a=new Uint8Array(await (await n.getFile()).arrayBuffer());await b(e,r,a),await e.removeEntry(t)}async function y(e,t,r){let n=await e.getDirectoryHandle(r,{create:!0});for await(let e of t.values()){if("file"!==e.kind)continue;let t=new Uint8Array(await (await e.getFile()).arrayBuffer());await b(n,e.name,t)}await e.removeEntry(u,{recursive:!0})}async function v(e,t,r){let n=await e.getFileHandle(t,{create:!0}),a=await n.createWritable();await a.write(r),await a.close()}async function b(e,t,r){let n=await e.getFileHandle(t,{create:!0}),a=await n.createWritable();await a.write(r),await a.close()}async function j(e,t){try{return await e.getFileHandle(t)}catch(e){if(e instanceof DOMException&&"NotFoundError"===e.name)return null;throw e}}async function k(e,t){try{return await e.getDirectoryHandle(t)}catch(e){if(e instanceof DOMException&&"NotFoundError"===e.name)return null;throw e}}},79405:(e,t,r)=>{r.d(t,{Dg:()=>l,VQ:()=>c,aq:()=>u});var n=r(42914),a=r(38667),i=r(39234),s=r(16425);let o="tasks.json",l="tasks.ai.json";async function c(e,t,r){await d(e);let i=n.E_.parse(t),l=await (0,s.yB)(e),c=(0,a.Gc)({title:(0,a.wv)({override:l,suggested:i.suggested_name,folderName:r}),date:(0,a.Ec)(),relVideo:"recording.webm",result:i});await f(e,o,JSON.stringify(i,null,2)+"\n"),await f(e,"report.md",c)}async function d(e){let t;if(await h(e,l))return;let r=await h(e,o);if(!r)return;try{t=await (await r.getFile()).text()}catch{return}let n=m(t);n&&await f(e,l,JSON.stringify(n,null,2)+"\n")}async function u(e){let t=await h(e,l);if(!t)return null;try{let e=await (await t.getFile()).text();return m(e)}catch{return null}}function m(e){let t;try{t=JSON.parse(e)}catch{return null}let r=(0,n.eJ)(t);return"stored"===r.status?r.result:"legacy"===r.status?(0,n.fG)(r.result,i.W):null}async function f(e,t,r){let n=await e.getFileHandle(t,{create:!0}),a=await n.createWritable();await a.write(r),await a.close()}async function h(e,t){try{return await e.getFileHandle(t)}catch(e){if(e instanceof DOMException&&"NotFoundError"===e.name)return null;throw e}}},86801:(e,t,r)=>{async function n(e,t){var r;let n,a=(r=t,n=e=>String(e).padStart(2,"0"),`${r.getFullYear()}-${n(r.getMonth()+1)}-${n(r.getDate())}-${n(r.getHours())}-${n(r.getMinutes())}`),i=a,s=1;for(;s<1e3;){try{await e.getDirectoryHandle(i)}catch(t){if(t instanceof DOMException&&"NotFoundError"===t.name)return{dir:await e.getDirectoryHandle(i,{create:!0}),name:i};throw t}s+=1,i=`${a}-${s}`}throw Error(`Could not create a unique session folder for "${a}"`)}r.d(t,{C:()=>n})},87677:(e,t,r)=>{r.d(t,{H:()=>A});var n=r(95155),a=r(12115),i=r(11012),s=r(64577),o=r(16294),l=r(14577),c=r(65342),d=r(48366),u=r(37693),m=r(70943),f=r(11699),h=r(90360),g=r(34181),p=r(76082),x=r(58585),w=r(59739),y=r(76286),v=r(73255),b=r(19766),j=r(43208),k=r(89239),N=r(42763),$=r(70872),H=r(13461),C=r(23945),D=r(40980);let S={analyze:{title:"Analysis settings",description:"Choose how this session is analyzed.",cta:"Start analysis",showMode:!0,costKind:"video"},"revise-video":{title:"Re-run with video",description:"Re-analyze the recording with your comments — fresh screenshots included.",cta:"Re-run with video",showMode:!0,costKind:"video"},"revise-text":{title:"Process comments",description:"Send the current tasks and your comments to the model for a text-only revision — no video, much cheaper.",cta:"Process comments",showMode:!1,costKind:"text"}},E=[{id:"gemini-2.5-pro",displayName:"Gemini 2.5 Pro",recommended:!0,preview:!1,inputPrice:1.25,outputPrice:10},{id:"gemini-2.5-flash",displayName:"Gemini 2.5 Flash",recommended:!0,preview:!1,inputPrice:.3,outputPrice:2.5},{id:"gemini-2.5-flash-lite",displayName:"Gemini 2.5 Flash-Lite",recommended:!0,preview:!1,inputPrice:.1,outputPrice:.4}],P="gemini-2.5-pro",F={model:P,mode:"thorough",language:"en"},M=[{value:"en",label:"English"},{value:"uk",label:"Ukrainian"}],V="vellum:analysis-config";function _(){try{let e=window.localStorage.getItem(V);if(!e)return F;let t=JSON.parse(e);return{model:"string"==typeof t.model?t.model:P,mode:"economy"===t.mode?"economy":"thorough",language:"uk"===t.language?"uk":"en"}}catch{return F}}function z(e){return void 0===e.inputPrice||void 0===e.outputPrice?"price n/a":`$${e.inputPrice} / $${e.outputPrice} per 1M`}function A({sessionName:e,onStart:t,onClose:r,variant:o="analyze",defaults:l,textInputTokens:c}){let d=null!==e,u=S[o],{handle:m}=(0,H.h)(),[f,h]=(0,a.useState)([]),[g,p]=(0,a.useState)(!1),[x,w]=(0,a.useState)(!1),[y,v]=(0,a.useState)(null),[b,j]=(0,a.useState)(!1),[$,F]=(0,a.useState)(_),z=(0,a.useRef)(l);z.current=l,(0,a.useEffect)(()=>{if(!d)return;let e=z.current;e&&F(t=>({model:e.model??t.model,mode:e.mode??t.mode,language:e.language??t.language}))},[d]),(0,a.useEffect)(()=>{if(!d)return;let e=!1;return p(!0),w(!1),(async()=>{let t,r=!1;try{let e=await fetch("/api/models"),r=await e.json();if(!e.ok||"error"in r)throw Error("models unavailable");t=r.models.length>0?r.models:E}catch{t=E,r=!0}if(e)return;let n=[...t].sort((e,t)=>{if(e.recommended!==t.recommended)return e.recommended?-1:1;let r=e.inputPrice??-1,n=t.inputPrice??-1;return r!==n?n-r:e.displayName.localeCompare(t.displayName)});h(n),w(r),p(!1),F(e=>{if(n.some(t=>t.id===e.model))return e;let t=n.find(e=>e.id===P)?.id??n[0]?.id??P;return{...e,model:t}})})(),()=>{e=!0}},[d]),(0,a.useEffect)(()=>{if(!d||null===e||"text"===u.costKind)return;let t=!1;return v(null),j(!0),(async()=>{let r=null;try{let n=await m.getDirectoryHandle(e),a=await (0,C.bN)(n);if(a){let e=await a.handle.getFile();t||(r=await new Promise(t=>{let r=URL.createObjectURL(e),n=document.createElement("video");n.preload="metadata",n.muted=!0;let a=!1,i=e=>{a||(a=!0,window.clearTimeout(o),n.removeAttribute("src"),n.load(),URL.revokeObjectURL(r),t(e))},s=()=>{Number.isFinite(n.duration)&&n.duration>0&&i(n.duration)},o=window.setTimeout(()=>i(null),5e3);n.onloadedmetadata=()=>{Number.isFinite(n.duration)&&n.duration>0?i(n.duration):n.currentTime=1e101},n.ondurationchange=s,n.onseeked=s,n.onerror=()=>i(null),n.src=r}))}}catch{r=null}t||(v(r),j(!1))})(),()=>{t=!0}},[d,e,m]);let W=(0,a.useMemo)(()=>{let e=f.find(e=>e.id===$.model);if("text"===u.costKind){var t=c??2e3;if(void 0===e)return{state:"unavailable"};let r=t+4e3;return void 0===e.inputPrice||void 0===e.outputPrice?{state:"no-price",passes:1,totalTokens:r}:{state:"ready",cost:t/1e6*e.inputPrice+.004*e.outputPrice,passes:1,totalTokens:r}}return b?{state:"loading"}:function(e,t,r){if(null===e||void 0===t)return{state:"unavailable"};let n="thorough"===r?2:1,a=Math.round(290*e*n+600*n),i=4e3*n,s=a+i;return void 0===t.inputPrice||void 0===t.outputPrice?{state:"no-price",passes:n,totalTokens:s}:{state:"ready",cost:a/1e6*t.inputPrice+i/1e6*t.outputPrice,passes:n,totalTokens:s}}(y,e,$.mode)},[u.costKind,c,b,y,f,$.model,$.mode]),I=(0,a.useCallback)(()=>{try{window.localStorage.setItem(V,JSON.stringify($))}catch{}t($)},[$,t]);return(0,n.jsx)(N.Dialog,{open:d,onOpenChange:e=>{e||r()},children:(0,n.jsxs)(N.DialogContent,{className:"sm:max-w-md",children:[(0,n.jsxs)(N.DialogHeader,{children:[(0,n.jsx)(N.DialogTitle,{children:u.title}),(0,n.jsx)(N.DialogDescription,{children:"analyze"===o?(0,n.jsxs)(n.Fragment,{children:["Choose how ",e?`“${e}”`:"this session"," is analyzed."]}):u.description})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)(O,{label:"Model",children:[x&&(0,n.jsxs)("p",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[(0,n.jsx)(i.A,{className:"mt-px size-3.5 shrink-0",strokeWidth:1.5}),"Couldn’t load the live model list — showing the built-in set."]}),g?(0,n.jsx)("div",{className:"rounded-lg border border-border px-3 py-2 text-xs text-muted-foreground",children:"Loading models…"}):(0,n.jsx)(U,{models:f,value:$.model,onChange:e=>F(t=>({...t,model:e}))})]}),u.showMode&&(0,n.jsxs)(O,{label:"Mode",children:[(0,n.jsx)(T,{selected:"thorough"===$.mode,onSelect:()=>F(e=>({...e,mode:"thorough"})),title:"Thorough",hint:"Two passes — most complete, priciest."}),(0,n.jsx)(T,{selected:"economy"===$.mode,onSelect:()=>F(e=>({...e,mode:"economy"})),title:"Basic",hint:"Single pass — roughly half the cost."})]}),(0,n.jsx)(O,{label:"Language",children:(0,n.jsx)("div",{className:"flex gap-1.5",children:M.map(({value:e,label:t})=>{let r=$.language===e;return(0,n.jsxs)("button",{type:"button",role:"radio","aria-checked":r,onClick:()=>F(t=>({...t,language:e})),className:(0,D.cn)("flex flex-1 items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-sm font-medium transition-colors active:translate-y-px",r?"border-foreground/10 bg-muted":"border-border hover:bg-muted/50"),children:[t,r&&(0,n.jsx)(s.A,{className:"size-3.5 shrink-0",strokeWidth:1.75})]},e)})})}),(0,n.jsx)(R,{estimate:W})]}),(0,n.jsxs)(N.DialogFooter,{children:[(0,n.jsx)(k.$,{variant:"outline",onClick:r,children:"Cancel"}),(0,n.jsx)(k.$,{onClick:I,disabled:g,children:u.cta})]})]})})}function O({label:e,children:t}){return(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:e}),t]})}function R({estimate:e}){var t;if("unavailable"===e.state)return(0,n.jsx)("p",{className:"rounded-lg border border-border bg-background px-3 py-2 text-xs text-muted-foreground",children:"Cost depends on the video — you’ll see the exact figure after the run."});let r="loading"===e.state?"estimating…":"no-price"===e.state?"n/a":`~$${e.cost.toFixed(2)}`,a="ready"===e.state||"no-price"===e.state?`${e.passes} ${1===e.passes?"pass":"passes"} \xb7 ~${(t=e.totalTokens)>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${Math.round(t/1e3)}K`:`${t}`} tokens`:null;return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border bg-background px-3 py-2",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[(0,n.jsx)(o.A,{className:"size-3.5 shrink-0",strokeWidth:1.5}),"Estimated cost",(0,n.jsxs)($.m_,{children:[(0,n.jsx)($.k$,{render:(0,n.jsx)("span",{}),className:"inline-flex cursor-help text-muted-foreground/70 transition-colors hover:text-foreground",children:(0,n.jsx)(l.A,{className:"size-3.5",strokeWidth:1.5})}),(0,n.jsx)($.ZI,{className:"max-w-56",children:"Approximate — from the video’s duration \xd7 Gemini’s token rates. The exact figure lands after the run."})]})]}),(0,n.jsxs)("span",{className:"flex items-baseline gap-2 text-right",children:[(0,n.jsx)("span",{className:"font-mono text-sm text-foreground",children:r}),a&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:a})]})]})}function T({selected:e,onSelect:t,title:r,badges:a,hint:i}){return(0,n.jsxs)("button",{type:"button",role:"radio","aria-checked":e,onClick:t,className:(0,D.cn)("flex items-center gap-3 rounded-lg border px-3 py-2 text-left transition-colors","active:translate-y-px",e?"border-foreground/10 bg-muted":"border-border hover:bg-muted/50"),children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"truncate text-sm font-medium",children:r}),a]}),i&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:i})]}),(0,n.jsx)(s.A,{className:(0,D.cn)("size-4 shrink-0 transition-opacity",e?"opacity-100":"opacity-0"),strokeWidth:1.75})]})}let W=[{key:"recommended",label:"Recommended",tip:"Live-verified for video analysis — the best quality-for-cost picks.",match:e=>e.recommended},{key:"preview",label:"Preview",tip:"Newer or experimental models — may change or be less reliable.",match:e=>e.preview&&!e.recommended},{key:"all",label:"All",tip:null,match:e=>!e.recommended&&!e.preview}];function U({models:e,value:t,onChange:r}){return(0,n.jsxs)(d.H,{value:t,onValueChange:e=>{e&&r(e)},children:[(0,n.jsxs)(u.b,{className:(0,D.cn)("flex w-full items-center justify-between gap-2 rounded-lg border border-border bg-transparent px-3 py-2 text-left text-sm transition-colors","hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none active:translate-y-px"),children:[(0,n.jsx)(m.y,{className:"flex min-w-0 items-center gap-2",children:t=>{let r=e.find(e=>e.id===t);return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"truncate font-medium",children:r.displayName}),(0,n.jsx)("span",{className:"shrink-0 font-mono text-[0.7rem] text-muted-foreground",children:z(r)})]}):(0,n.jsx)("span",{className:"text-muted-foreground",children:"Select a model…"})}}),(0,n.jsx)(f.w,{children:(0,n.jsx)(c.A,{className:"size-4 shrink-0 text-muted-foreground",strokeWidth:1.5})})]}),(0,n.jsx)(h.V,{children:(0,n.jsx)(g.l,{side:"bottom",sideOffset:6,align:"start",alignItemWithTrigger:!1,className:"z-50",children:(0,n.jsx)(p.t,{className:(0,D.cn)("max-h-64 w-(--anchor-width) min-w-48 overflow-y-auto rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md outline-none","origin-(--transform-origin) duration-150 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95"),children:(0,n.jsx)(x.B,{children:W.map(t=>{let r=e.filter(t.match);return 0===r.length?null:(0,n.jsxs)(w.s,{className:"py-1 first:pt-0 last:pb-0",children:[(0,n.jsxs)(y.M,{className:"flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-muted-foreground",children:[t.label,t.tip&&(0,n.jsx)(I,{text:t.tip})]}),r.map(e=>(0,n.jsxs)(v.e,{value:e.id,className:(0,D.cn)("flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors","data-highlighted:bg-muted"),children:[(0,n.jsx)(b.h,{className:"truncate",children:e.displayName}),(0,n.jsx)("span",{className:"ml-auto shrink-0 font-mono text-[0.7rem] text-muted-foreground",children:z(e)}),(0,n.jsx)("span",{className:"flex w-4 shrink-0 justify-center",children:(0,n.jsx)(j.h,{children:(0,n.jsx)(s.A,{className:"size-4",strokeWidth:1.75})})})]},e.id))]},t.key)})})})})})]})}function I({text:e}){return(0,n.jsxs)($.m_,{children:[(0,n.jsx)($.k$,{render:(0,n.jsx)("span",{}),className:"inline-flex cursor-help text-muted-foreground/70 transition-colors hover:text-foreground",onPointerDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:(0,n.jsx)(l.A,{className:"size-3.5",strokeWidth:1.5})}),(0,n.jsx)($.ZI,{className:"max-w-56",children:e})]})}}}]);
|