tanstack_start_ts 1.0.0

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.
Files changed (336) hide show
  1. package/.wrangler/deploy/config.json +1 -0
  2. package/bunfig.toml +6 -0
  3. package/components.json +22 -0
  4. package/config.json +0 -0
  5. package/dist/client/.assetsignore +2 -0
  6. package/dist/client/assets/ProductCard-DbIkJAE-.js +1 -0
  7. package/dist/client/assets/about-AskxOruL.js +1 -0
  8. package/dist/client/assets/admin-BZVcAQM3.js +1 -0
  9. package/dist/client/assets/admin.functions--RdVcuBx.js +1 -0
  10. package/dist/client/assets/admin.login-QgrF_9Fp.js +1 -0
  11. package/dist/client/assets/affiliate-disclosure-BIAsA-HO.js +1 -0
  12. package/dist/client/assets/categories-D0N418mK.js +1 -0
  13. package/dist/client/assets/category._slug-aCaQm14E.js +1 -0
  14. package/dist/client/assets/contact-PhvO-V15.js +1 -0
  15. package/dist/client/assets/faq-BsiHWPM8.js +1 -0
  16. package/dist/client/assets/hero-bg-BP2eVUIX.jpg +0 -0
  17. package/dist/client/assets/index-BU9rnkF3.js +1 -0
  18. package/dist/client/assets/index-BpJWZkva.js +1 -0
  19. package/dist/client/assets/index-vRX-zAyq.js +1 -0
  20. package/dist/client/assets/login-DteE0ZGp.js +1 -0
  21. package/dist/client/assets/logo-pSNfLJQk.png +0 -0
  22. package/dist/client/assets/privacy-B_Pu7040.js +1 -0
  23. package/dist/client/assets/product-links-BkZ41Gv3.js +1 -0
  24. package/dist/client/assets/product._id-BVUysCW-.js +1 -0
  25. package/dist/client/assets/products.functions-cGzRziKO.js +1 -0
  26. package/dist/client/assets/profile-CveRcKq2.js +1 -0
  27. package/dist/client/assets/reset-password-ySEjItX_.js +1 -0
  28. package/dist/client/assets/saved-CHtdQDJF.js +1 -0
  29. package/dist/client/assets/search-CXWfET1y.js +1 -0
  30. package/dist/client/assets/signup-CEx90iuV.js +1 -0
  31. package/dist/client/assets/styles-DrNJG0BO.css +1 -0
  32. package/dist/client/assets/terms-VqJ9kX9b.js +1 -0
  33. package/dist/client/assets/update-password-C-d0ix5e.js +1 -0
  34. package/dist/client/assets/vendor-aria-hidden-DvXkyWUv.js +1 -0
  35. package/dist/client/assets/vendor-class-variance-authority-5VPnzWs2.js +1 -0
  36. package/dist/client/assets/vendor-clsx-B-dksMZM.js +1 -0
  37. package/dist/client/assets/vendor-cookie-es-CS0aJGDi.js +1 -0
  38. package/dist/client/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
  39. package/dist/client/assets/vendor-floating-ui-core-BlUy28sp.js +1 -0
  40. package/dist/client/assets/vendor-floating-ui-dom-BxK0hn2R.js +1 -0
  41. package/dist/client/assets/vendor-floating-ui-react-dom-Bas3975S.js +1 -0
  42. package/dist/client/assets/vendor-floating-ui-utils-BfYUAVcw.js +1 -0
  43. package/dist/client/assets/vendor-framer-motion-BMdL-cuX.js +9 -0
  44. package/dist/client/assets/vendor-get-nonce-C-Z93AgS.js +1 -0
  45. package/dist/client/assets/vendor-iceberg-js-tWD4K6Lg.js +1 -0
  46. package/dist/client/assets/vendor-lovable.dev-cloud-auth-js-VuzqtJVg.js +1 -0
  47. package/dist/client/assets/vendor-lucide-react-b5K2fehp.js +1 -0
  48. package/dist/client/assets/vendor-motion-dom-BETJamZt.js +1 -0
  49. package/dist/client/assets/vendor-motion-utils-BuWewJbj.js +1 -0
  50. package/dist/client/assets/vendor-radix-ui-primitive-Dc_FVRD7.js +1 -0
  51. package/dist/client/assets/vendor-radix-ui-react-accordion-C22Rgxe9.js +1 -0
  52. package/dist/client/assets/vendor-radix-ui-react-arrow-DMHj2mKI.js +1 -0
  53. package/dist/client/assets/vendor-radix-ui-react-avatar-CVPBkFXg.js +1 -0
  54. package/dist/client/assets/vendor-radix-ui-react-collapsible-BvM-4sKX.js +1 -0
  55. package/dist/client/assets/vendor-radix-ui-react-collection-D9KtqmHm.js +1 -0
  56. package/dist/client/assets/vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js +1 -0
  57. package/dist/client/assets/vendor-radix-ui-react-context-CAqqn5Nx.js +1 -0
  58. package/dist/client/assets/vendor-radix-ui-react-dialog-DZ01vOLq.js +5 -0
  59. package/dist/client/assets/vendor-radix-ui-react-direction-DxZwNuei.js +1 -0
  60. package/dist/client/assets/vendor-radix-ui-react-dismissable-layer-Dqgrs55Y.js +1 -0
  61. package/dist/client/assets/vendor-radix-ui-react-dropdown-menu-0uzvrqkn.js +1 -0
  62. package/dist/client/assets/vendor-radix-ui-react-focus-guards-DgWoZ-fP.js +1 -0
  63. package/dist/client/assets/vendor-radix-ui-react-focus-scope-BLIu5QaL.js +1 -0
  64. package/dist/client/assets/vendor-radix-ui-react-id-bpga_rLa.js +1 -0
  65. package/dist/client/assets/vendor-radix-ui-react-menu-D0qf2r6_.js +1 -0
  66. package/dist/client/assets/vendor-radix-ui-react-popper-BafIylxU.js +1 -0
  67. package/dist/client/assets/vendor-radix-ui-react-portal-BnAsfNCS.js +1 -0
  68. package/dist/client/assets/vendor-radix-ui-react-presence-C-f3UKQ2.js +1 -0
  69. package/dist/client/assets/vendor-radix-ui-react-primitive-zTHwXNoz.js +1 -0
  70. package/dist/client/assets/vendor-radix-ui-react-roving-focus-jyJB8K2E.js +1 -0
  71. package/dist/client/assets/vendor-radix-ui-react-slot-6LXHJrHl.js +1 -0
  72. package/dist/client/assets/vendor-radix-ui-react-use-callback-ref-E91aPc6s.js +1 -0
  73. package/dist/client/assets/vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js +1 -0
  74. package/dist/client/assets/vendor-radix-ui-react-use-effect-event-CPeX4A3c.js +1 -0
  75. package/dist/client/assets/vendor-radix-ui-react-use-escape-keydown-7n3YsXFo.js +1 -0
  76. package/dist/client/assets/vendor-radix-ui-react-use-is-hydrated-C1PY1qNv.js +1 -0
  77. package/dist/client/assets/vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js +1 -0
  78. package/dist/client/assets/vendor-radix-ui-react-use-size-CXS04sct.js +1 -0
  79. package/dist/client/assets/vendor-react-dom-BnNs-kzm.js +9 -0
  80. package/dist/client/assets/vendor-react-gJPiVnX5.js +1 -0
  81. package/dist/client/assets/vendor-react-remove-scroll-DHKl-IMP.js +4 -0
  82. package/dist/client/assets/vendor-react-remove-scroll-bar-CSjdInc2.js +38 -0
  83. package/dist/client/assets/vendor-react-style-singleton-BqHpkgXn.js +1 -0
  84. package/dist/client/assets/vendor-scheduler-7OC5HNn7.js +1 -0
  85. package/dist/client/assets/vendor-seroval-B_Fur-nl.js +3 -0
  86. package/dist/client/assets/vendor-seroval-plugins-CBHnPkZJ.js +1 -0
  87. package/dist/client/assets/vendor-sonner-71-LdGG1.js +1 -0
  88. package/dist/client/assets/vendor-supabase-auth-js-DWrN-bIx.js +18 -0
  89. package/dist/client/assets/vendor-supabase-functions-js-uY_V-TxC.js +1 -0
  90. package/dist/client/assets/vendor-supabase-phoenix-BzEf37Ve.js +2 -0
  91. package/dist/client/assets/vendor-supabase-postgrest-js-C4rBWbCx.js +4 -0
  92. package/dist/client/assets/vendor-supabase-realtime-js-D6BlOYKE.js +23 -0
  93. package/dist/client/assets/vendor-supabase-storage-js-BG98L3Zz.js +1 -0
  94. package/dist/client/assets/vendor-supabase-supabase-js-DCCzdwBJ.js +1 -0
  95. package/dist/client/assets/vendor-tailwind-merge-Ct12j0u0.js +1 -0
  96. package/dist/client/assets/vendor-tanstack-history-C617CaxG.js +1 -0
  97. package/dist/client/assets/vendor-tanstack-query-core-7wuJJ5ZL.js +1 -0
  98. package/dist/client/assets/vendor-tanstack-react-query-HImzo8sX.js +1 -0
  99. package/dist/client/assets/vendor-tanstack-react-router-sIZLK-LU.js +1 -0
  100. package/dist/client/assets/vendor-tanstack-react-start-client-GiYCfWmf.js +1 -0
  101. package/dist/client/assets/vendor-tanstack-react-store-EvTi3ahh.js +1 -0
  102. package/dist/client/assets/vendor-tanstack-router-core-Cr7bYUZv.js +1 -0
  103. package/dist/client/assets/vendor-tanstack-start-client-core-C-00BBOu.js +2 -0
  104. package/dist/client/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
  105. package/dist/client/assets/vendor-tanstack-store-BC7mA7pq.js +1 -0
  106. package/dist/client/assets/vendor-tslib-Du-meQkk.js +1 -0
  107. package/dist/client/assets/vendor-use-callback-ref-C_fIAtot.js +1 -0
  108. package/dist/client/assets/vendor-use-sidecar-Bh0DDN6h.js +1 -0
  109. package/dist/client/assets/vendor-use-sync-external-store-ZvKHXaIn.js +1 -0
  110. package/dist/client/assets/vendor-vercel-analytics-DwPM5BWs.js +1 -0
  111. package/dist/client/assets/vendor-zod-By9teAtI.js +1 -0
  112. package/dist/client/robots.txt +2 -0
  113. package/dist/server/.dev.vars +5 -0
  114. package/dist/server/.vite/manifest.json +2528 -0
  115. package/dist/server/assets/ProductCard-CUPXy5Eo.js +149 -0
  116. package/dist/server/assets/_tanstack-start-manifest_v-do7vTWFD.js +4 -0
  117. package/dist/server/assets/about-TfKQw0Ga.js +28 -0
  118. package/dist/server/assets/admin-DspfJOJk.js +578 -0
  119. package/dist/server/assets/admin.functions-B78ppWLR.js +645 -0
  120. package/dist/server/assets/admin.functions-BWlKBoTL.js +93 -0
  121. package/dist/server/assets/admin.login-CV7QfeA6.js +139 -0
  122. package/dist/server/assets/affiliate-disclosure-B1wI1cDb.js +86 -0
  123. package/dist/server/assets/auth-middleware-Cn49MidW.js +62 -0
  124. package/dist/server/assets/categories-Z7jnAYZP.js +108 -0
  125. package/dist/server/assets/category._slug-D0XY3FGK.js +112 -0
  126. package/dist/server/assets/contact-IzyONsXs.js +104 -0
  127. package/dist/server/assets/faq-aRhB_CR3.js +133 -0
  128. package/dist/server/assets/hero-bg-BP2eVUIX.jpg +0 -0
  129. package/dist/server/assets/index-BTPHbXw9.js +221 -0
  130. package/dist/server/assets/index-ByJkHkrU.js +30 -0
  131. package/dist/server/assets/login-Dvy5Dm0f.js +175 -0
  132. package/dist/server/assets/logo-pSNfLJQk.png +0 -0
  133. package/dist/server/assets/privacy-B6Wiez1P.js +93 -0
  134. package/dist/server/assets/product-links-CGYEPP56.js +16 -0
  135. package/dist/server/assets/product._id-BpRa-1z0.js +231 -0
  136. package/dist/server/assets/products.functions-DSlmibYN.js +209 -0
  137. package/dist/server/assets/products.functions-DlHkRiqi.js +24 -0
  138. package/dist/server/assets/profile-B0NWzVAZ.js +314 -0
  139. package/dist/server/assets/reset-password-CY-rmqMr.js +115 -0
  140. package/dist/server/assets/saved-7FA6Dbom.js +126 -0
  141. package/dist/server/assets/search-Yw5c_fZa.js +329 -0
  142. package/dist/server/assets/signup-UPzgZo4i.js +143 -0
  143. package/dist/server/assets/styles-DrNJG0BO.css +1 -0
  144. package/dist/server/assets/terms-CMnX95bP.js +89 -0
  145. package/dist/server/assets/update-password-Cr94ea8n.js +131 -0
  146. package/dist/server/assets/vendor-aria-hidden-DPa16MWu.js +122 -0
  147. package/dist/server/assets/vendor-class-variance-authority-0YxJPB9Y.js +44 -0
  148. package/dist/server/assets/vendor-cloudflare-unenv-preset-ya0VEFBz.js +250 -0
  149. package/dist/server/assets/vendor-clsx-DgYk2OaC.js +16 -0
  150. package/dist/server/assets/vendor-cookie-es-DAoofYiI.js +44 -0
  151. package/dist/server/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
  152. package/dist/server/assets/vendor-floating-ui-core-3tkK0THV.js +726 -0
  153. package/dist/server/assets/vendor-floating-ui-dom-C-cPtgJv.js +626 -0
  154. package/dist/server/assets/vendor-floating-ui-react-dom-CRG6gBpH.js +319 -0
  155. package/dist/server/assets/vendor-floating-ui-utils-DmXANH-E.js +320 -0
  156. package/dist/server/assets/vendor-framer-motion-X4zAkX3J.js +1979 -0
  157. package/dist/server/assets/vendor-get-nonce-DiSj3EHl.js +9 -0
  158. package/dist/server/assets/vendor-h3-v2-CCobnLY5.js +287 -0
  159. package/dist/server/assets/vendor-iceberg-js-bHCkXyJn.js +534 -0
  160. package/dist/server/assets/vendor-isbot-CZ7WjwVs.js +21 -0
  161. package/dist/server/assets/vendor-lovable.dev-cloud-auth-js-BE03njZw.js +180 -0
  162. package/dist/server/assets/vendor-lucide-react-Ddew6HYb.js +458 -0
  163. package/dist/server/assets/vendor-motion-dom-D2MTwGIG.js +5983 -0
  164. package/dist/server/assets/vendor-motion-utils-LJlIFN6m.js +161 -0
  165. package/dist/server/assets/vendor-radix-ui-primitive-B-mNdDrH.js +11 -0
  166. package/dist/server/assets/vendor-radix-ui-react-accordion-1Izf6x00.js +308 -0
  167. package/dist/server/assets/vendor-radix-ui-react-arrow-B882lnFK.js +23 -0
  168. package/dist/server/assets/vendor-radix-ui-react-avatar-BVgZt2Ab.js +209 -0
  169. package/dist/server/assets/vendor-radix-ui-react-collapsible-DCBbMZiS.js +147 -0
  170. package/dist/server/assets/vendor-radix-ui-react-collection-BZ2srfgU.js +150 -0
  171. package/dist/server/assets/vendor-radix-ui-react-compose-refs-D3qsKVk1.js +39 -0
  172. package/dist/server/assets/vendor-radix-ui-react-context-BVoNDLue.js +78 -0
  173. package/dist/server/assets/vendor-radix-ui-react-dialog-DlxMaNYK.js +406 -0
  174. package/dist/server/assets/vendor-radix-ui-react-direction-Dt_WDL1t.js +9 -0
  175. package/dist/server/assets/vendor-radix-ui-react-dismissable-layer-CjsuPohV.js +210 -0
  176. package/dist/server/assets/vendor-radix-ui-react-dropdown-menu-DVxKumY8.js +263 -0
  177. package/dist/server/assets/vendor-radix-ui-react-focus-guards-D_6NoePE.js +29 -0
  178. package/dist/server/assets/vendor-radix-ui-react-focus-scope-DEIhTJJH.js +206 -0
  179. package/dist/server/assets/vendor-radix-ui-react-id-DFFpgh6m.js +14 -0
  180. package/dist/server/assets/vendor-radix-ui-react-menu-CiTMLwjT.js +893 -0
  181. package/dist/server/assets/vendor-radix-ui-react-popper-23Ye2Vyc.js +286 -0
  182. package/dist/server/assets/vendor-radix-ui-react-portal-CZCH5uPk.js +16 -0
  183. package/dist/server/assets/vendor-radix-ui-react-presence-CaAULlDU.js +128 -0
  184. package/dist/server/assets/vendor-radix-ui-react-primitive-BeOk3UYa.js +124 -0
  185. package/dist/server/assets/vendor-radix-ui-react-roving-focus-DES9GR8l.js +224 -0
  186. package/dist/server/assets/vendor-radix-ui-react-slot-DUhZbzoH.js +103 -0
  187. package/dist/server/assets/vendor-radix-ui-react-use-callback-ref-BynBgohw.js +11 -0
  188. package/dist/server/assets/vendor-radix-ui-react-use-controllable-state-C9KpT6DG.js +69 -0
  189. package/dist/server/assets/vendor-radix-ui-react-use-effect-event-gpNY2xjS.js +1 -0
  190. package/dist/server/assets/vendor-radix-ui-react-use-escape-keydown-CcYRQ2pp.js +17 -0
  191. package/dist/server/assets/vendor-radix-ui-react-use-is-hydrated-D_LcBPXY.js +15 -0
  192. package/dist/server/assets/vendor-radix-ui-react-use-layout-effect-1LNLXAjr.js +6 -0
  193. package/dist/server/assets/vendor-radix-ui-react-use-size-D6fiKJQo.js +39 -0
  194. package/dist/server/assets/vendor-react-DvBrY0qp.js +511 -0
  195. package/dist/server/assets/vendor-react-dom-yvMLPM0j.js +10484 -0
  196. package/dist/server/assets/vendor-react-remove-scroll-BNtiEvVN.js +328 -0
  197. package/dist/server/assets/vendor-react-remove-scroll-bar-hLqRASRk.js +82 -0
  198. package/dist/server/assets/vendor-react-style-singleton-BXjcXskB.js +69 -0
  199. package/dist/server/assets/vendor-rou3-3NaGPdI8.js +8 -0
  200. package/dist/server/assets/vendor-seroval-dJyC-Zhz.js +1775 -0
  201. package/dist/server/assets/vendor-seroval-plugins-Pq_U2meB.js +58 -0
  202. package/dist/server/assets/vendor-sonner-CqbjhsRh.js +1086 -0
  203. package/dist/server/assets/vendor-srvx-BA-baEX9.js +6 -0
  204. package/dist/server/assets/vendor-supabase-auth-js-D4xjVprw.js +7602 -0
  205. package/dist/server/assets/vendor-supabase-functions-js-sWy4UYn1.js +322 -0
  206. package/dist/server/assets/vendor-supabase-phoenix-Bw3Uh2Nn.js +1777 -0
  207. package/dist/server/assets/vendor-supabase-postgrest-js-AO-BXa7I.js +4938 -0
  208. package/dist/server/assets/vendor-supabase-realtime-js-BtdNgJbm.js +2111 -0
  209. package/dist/server/assets/vendor-supabase-storage-js-Dk_MrPYO.js +2679 -0
  210. package/dist/server/assets/vendor-supabase-supabase-js-D1EEtG3j.js +697 -0
  211. package/dist/server/assets/vendor-tailwind-merge-BHb_obmC.js +3255 -0
  212. package/dist/server/assets/vendor-tanstack-history-C4pKJmkt.js +204 -0
  213. package/dist/server/assets/vendor-tanstack-query-core-PwwTR5ld.js +2552 -0
  214. package/dist/server/assets/vendor-tanstack-react-query-hhHzXAK1.js +190 -0
  215. package/dist/server/assets/vendor-tanstack-react-router-XzqpA65A.js +1120 -0
  216. package/dist/server/assets/vendor-tanstack-react-start-RvWUpvat.js +37 -0
  217. package/dist/server/assets/vendor-tanstack-react-start-client-gpNY2xjS.js +1 -0
  218. package/dist/server/assets/vendor-tanstack-react-start-server-uj_Y9pEN.js +15 -0
  219. package/dist/server/assets/vendor-tanstack-react-store-gpNY2xjS.js +1 -0
  220. package/dist/server/assets/vendor-tanstack-router-core-6wywV3KN.js +4252 -0
  221. package/dist/server/assets/vendor-tanstack-start-client-core-DoOKV2pA.js +1741 -0
  222. package/dist/server/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
  223. package/dist/server/assets/vendor-tanstack-start-server-core-CsAstXv7.js +1421 -0
  224. package/dist/server/assets/vendor-tanstack-start-storage-context-DgH9hIJT.js +17 -0
  225. package/dist/server/assets/vendor-tanstack-store-l0sNRNKZ.js +1 -0
  226. package/dist/server/assets/vendor-tslib-_8ICaZ64.js +67 -0
  227. package/dist/server/assets/vendor-unenv-DUvF4YIF.js +544 -0
  228. package/dist/server/assets/vendor-use-callback-ref-DMFDRvmi.js +66 -0
  229. package/dist/server/assets/vendor-use-sidecar-DG1tHua4.js +106 -0
  230. package/dist/server/assets/vendor-use-sync-external-store-rZ8vi0It.js +64 -0
  231. package/dist/server/assets/vendor-vercel-analytics-oP8BDp0L.js +168 -0
  232. package/dist/server/assets/vendor-zod-BRyQdbC-.js +3580 -0
  233. package/dist/server/index.js +158 -0
  234. package/dist/server/wrangler.json +1 -0
  235. package/enable-powershell.ps1 +7 -0
  236. package/eslint.config.js +41 -0
  237. package/lint.bat +4 -0
  238. package/package.json +95 -0
  239. package/public/robots.txt +2 -0
  240. package/run-npm-build.cjs +20 -0
  241. package/run-npm-build.js +20 -0
  242. package/src/assets/hero-bg.jpg +0 -0
  243. package/src/assets/logo.png +0 -0
  244. package/src/components/scrollsy/Footer.tsx +68 -0
  245. package/src/components/scrollsy/LiveTicker.tsx +31 -0
  246. package/src/components/scrollsy/Logo.tsx +28 -0
  247. package/src/components/scrollsy/Nav.tsx +255 -0
  248. package/src/components/scrollsy/ProductCard.tsx +190 -0
  249. package/src/components/scrollsy/ProductFilters.tsx +226 -0
  250. package/src/components/scrollsy/SupportWidget.tsx +197 -0
  251. package/src/components/ui/accordion.tsx +51 -0
  252. package/src/components/ui/alert-dialog.tsx +115 -0
  253. package/src/components/ui/alert.tsx +49 -0
  254. package/src/components/ui/aspect-ratio.tsx +5 -0
  255. package/src/components/ui/avatar.tsx +47 -0
  256. package/src/components/ui/badge.tsx +32 -0
  257. package/src/components/ui/breadcrumb.tsx +101 -0
  258. package/src/components/ui/button.tsx +49 -0
  259. package/src/components/ui/calendar.tsx +177 -0
  260. package/src/components/ui/card.tsx +55 -0
  261. package/src/components/ui/carousel.tsx +240 -0
  262. package/src/components/ui/chart.tsx +331 -0
  263. package/src/components/ui/checkbox.tsx +26 -0
  264. package/src/components/ui/collapsible.tsx +11 -0
  265. package/src/components/ui/command.tsx +143 -0
  266. package/src/components/ui/context-menu.tsx +187 -0
  267. package/src/components/ui/dialog.tsx +104 -0
  268. package/src/components/ui/drawer.tsx +98 -0
  269. package/src/components/ui/dropdown-menu.tsx +188 -0
  270. package/src/components/ui/form.tsx +171 -0
  271. package/src/components/ui/hover-card.tsx +27 -0
  272. package/src/components/ui/input-otp.tsx +69 -0
  273. package/src/components/ui/input.tsx +22 -0
  274. package/src/components/ui/label.tsx +21 -0
  275. package/src/components/ui/menubar.tsx +229 -0
  276. package/src/components/ui/navigation-menu.tsx +120 -0
  277. package/src/components/ui/pagination.tsx +98 -0
  278. package/src/components/ui/popover.tsx +31 -0
  279. package/src/components/ui/progress.tsx +25 -0
  280. package/src/components/ui/radio-group.tsx +36 -0
  281. package/src/components/ui/resizable.tsx +37 -0
  282. package/src/components/ui/scroll-area.tsx +44 -0
  283. package/src/components/ui/select.tsx +152 -0
  284. package/src/components/ui/separator.tsx +24 -0
  285. package/src/components/ui/sheet.tsx +122 -0
  286. package/src/components/ui/sidebar.tsx +744 -0
  287. package/src/components/ui/skeleton.tsx +7 -0
  288. package/src/components/ui/slider.tsx +23 -0
  289. package/src/components/ui/sonner.tsx +23 -0
  290. package/src/components/ui/switch.tsx +27 -0
  291. package/src/components/ui/table.tsx +94 -0
  292. package/src/components/ui/tabs.tsx +53 -0
  293. package/src/components/ui/textarea.tsx +21 -0
  294. package/src/components/ui/toggle-group.tsx +57 -0
  295. package/src/components/ui/toggle.tsx +42 -0
  296. package/src/components/ui/tooltip.tsx +32 -0
  297. package/src/hooks/use-auth.ts +26 -0
  298. package/src/hooks/use-mobile.tsx +19 -0
  299. package/src/integrations/lovable/index.ts +41 -0
  300. package/src/lib/admin.functions.ts +564 -0
  301. package/src/lib/error-capture.ts +27 -0
  302. package/src/lib/error-page.ts +30 -0
  303. package/src/lib/product-links.ts +39 -0
  304. package/src/lib/products.functions.ts +101 -0
  305. package/src/lib/utils.ts +6 -0
  306. package/src/routeTree.gen.ts +480 -0
  307. package/src/router.tsx +16 -0
  308. package/src/routes/__root.tsx +177 -0
  309. package/src/routes/about.tsx +66 -0
  310. package/src/routes/admin.login.tsx +95 -0
  311. package/src/routes/admin.tsx +811 -0
  312. package/src/routes/affiliate-disclosure.tsx +35 -0
  313. package/src/routes/categories.tsx +57 -0
  314. package/src/routes/category.$slug.tsx +51 -0
  315. package/src/routes/contact.tsx +69 -0
  316. package/src/routes/faq.tsx +63 -0
  317. package/src/routes/index.tsx +269 -0
  318. package/src/routes/login.tsx +160 -0
  319. package/src/routes/privacy.tsx +39 -0
  320. package/src/routes/product.$id.tsx +212 -0
  321. package/src/routes/profile.tsx +393 -0
  322. package/src/routes/reset-password.tsx +71 -0
  323. package/src/routes/saved.tsx +83 -0
  324. package/src/routes/search.tsx +136 -0
  325. package/src/routes/signup.tsx +108 -0
  326. package/src/routes/sitemap[.]xml.ts +34 -0
  327. package/src/routes/terms.tsx +40 -0
  328. package/src/routes/update-password.tsx +91 -0
  329. package/src/server.ts +80 -0
  330. package/src/start.ts +24 -0
  331. package/src/styles.css +333 -0
  332. package/terminal-test-output.txt +1 -0
  333. package/tsconfig.json +27 -0
  334. package/vercel.json +26 -0
  335. package/vite.config.ts +38 -0
  336. package/wrangler.jsonc +7 -0
@@ -0,0 +1 @@
1
+ import{c as _e,p as ve}from"./vendor-tanstack-history-C617CaxG.js";import{a as V,r as It}from"./vendor-seroval-B_Fur-nl.js";import{p as Se}from"./vendor-seroval-plugins-CBHnPkZJ.js";import{s as Pe}from"./vendor-cookie-es-CS0aJGDi.js";const xe=!1;function et(t){return t[t.length-1]}function Le(t){return typeof t=="function"}function tt(t,s){return Le(t)?t(s):t}const te=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;function be(t){for(const s in t)if(te.call(t,s))return!0;return!1}const Me=()=>Object.create(null),N=(t,s)=>W(t,s,Me);function W(t,s,e=()=>({}),n=0){if(t===s)return t;if(n>500)return s;const o=s,r=Ot(t)&&Ot(o);if(!r&&!(ft(t)&&ft(o)))return o;const a=r?t:At(t);if(!a)return o;const i=r?o:At(o);if(!i)return o;const c=a.length,u=i.length,h=r?new Array(u):e();let l=0;for(let g=0;g<u;g++){const f=r?g:i[g],m=t[f],R=o[f];if(m===R){h[f]=m,(r?g<c:te.call(t,f))&&l++;continue}if(m===null||R===null||typeof m!="object"||typeof R!="object"){h[f]=R;continue}const d=W(m,R,e,n+1);h[f]=d,d===m&&l++}return c===u&&l===c?t:h}function At(t){const s=Object.getOwnPropertyNames(t);for(const o of s)if(!kt.call(t,o))return!1;const e=Object.getOwnPropertySymbols(t);if(e.length===0)return s;const n=s;for(const o of e){if(!kt.call(t,o))return!1;n.push(o)}return n}function ft(t){if(!Ft(t))return!1;const s=t.constructor;if(typeof s>"u")return!0;const e=s.prototype;return!(!Ft(e)||!e.hasOwnProperty("isPrototypeOf"))}function Ft(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ot(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function q(t,s,e){if(t===s)return!0;if(typeof t!=typeof s)return!1;if(Array.isArray(t)&&Array.isArray(s)){if(t.length!==s.length)return!1;for(let n=0,o=t.length;n<o;n++)if(!q(t[n],s[n],e))return!1;return!0}if(ft(t)&&ft(s)){const n=e?.ignoreUndefined??!0;if(e?.partial){for(const a in s)if((!n||s[a]!==void 0)&&!q(t[a],s[a],e))return!1;return!0}let o=0;if(!n)o=Object.keys(t).length;else for(const a in t)t[a]!==void 0&&o++;let r=0;for(const a in s)if((!n||s[a]!==void 0)&&(r++,r>o||!q(t[a],s[a],e)))return!1;return o===r}return!1}function Y(t){let s,e;const n=new Promise((o,r)=>{s=o,e=r});return n.status="pending",n.resolve=o=>{n.status="resolved",n.value=o,s(o),t?.(o)},n.reject=o=>{n.status="rejected",e(o)},n}function Ns(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}function st(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function Ce(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function Bt(t){let s;try{s=decodeURI(t)}catch{s=t.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return Ce(s)}const Ie=["http:","https:","mailto:","tel:"];function Nt(t,s){if(!t)return!1;try{const e=new URL(t);return!s.has(e.protocol)}catch{return!1}}const Te={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ee=/[&><\u2028\u2029]/g;function zs(t){return t.replace(Ee,s=>Te[s])}function X(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let e=0,n="",o;for(;(o=s.exec(t))!==null;)n+=Bt(t.slice(e,o.index))+o[0],e=s.lastIndex;n=n+Bt(e?t.slice(e):t);let r=!1;return n.startsWith("//")&&(r=!0,n="/"+n.replace(/^\/+/,"")),{path:n,handledProtocolRelativeURL:r}}function ke(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function Ae(t,s){if(t===s)return!0;if(t.length!==s.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==s[e])return!1;return!0}function K(){throw new Error("Invariant failed")}function ot(t){const s=new Map;let e,n;const o=r=>{r.next&&(r.prev?(r.prev.next=r.next,r.next.prev=r.prev,r.next=void 0,n&&(n.next=r,r.prev=n)):(r.next.prev=void 0,e=r.next,r.next=void 0,n&&(r.prev=n,n.next=r)),n=r)};return{get(r){const a=s.get(r);if(a)return o(a),a.value},set(r,a){if(s.size>=t&&e){const c=e;s.delete(c.key),c.next&&(e=c.next,c.next.prev=void 0),c===n&&(n=void 0)}const i=s.get(r);if(i)i.value=a,o(i);else{const c={key:r,value:a,prev:n};n&&(n.next=c),n=c,e||(e=c),s.set(r,c)}},clear(){s.clear(),e=void 0,n=void 0}}}const F=4,ee=5;function Fe(t){const s=t.indexOf("{");if(s===-1)return null;const e=t.indexOf("}",s);return e===-1||s+1>=t.length?null:[s,e]}function se(t,s,e=new Uint16Array(6)){const n=t.indexOf("/",s),o=n===-1?t.length:n,r=t.substring(s,o);if(!r||!r.includes("$"))return e[0]=0,e[1]=s,e[2]=s,e[3]=o,e[4]=o,e[5]=o,e;if(r==="$"){const i=t.length;return e[0]=2,e[1]=s,e[2]=s,e[3]=i,e[4]=i,e[5]=i,e}if(r.charCodeAt(0)===36)return e[0]=1,e[1]=s,e[2]=s+1,e[3]=o,e[4]=o,e[5]=o,e;const a=Fe(r);if(a){const[i,c]=a,u=r.charCodeAt(i+1);if(u===45){if(i+2<r.length&&r.charCodeAt(i+2)===36){const h=i+3,l=c;if(h<l)return e[0]=3,e[1]=s+i,e[2]=s+h,e[3]=s+l,e[4]=s+c+1,e[5]=o,e}}else if(u===36){const h=i+1,l=i+2;return l===c?(e[0]=2,e[1]=s+i,e[2]=s+h,e[3]=s+l,e[4]=s+c+1,e[5]=t.length,e):(e[0]=1,e[1]=s+i,e[2]=s+l,e[3]=s+c,e[4]=s+c+1,e[5]=o,e)}}return e[0]=0,e[1]=s,e[2]=s,e[3]=o,e[4]=o,e[5]=o,e}function mt(t,s,e,n,o,r,a){a?.(e);let i=n;{const c=e.fullPath??e.from,u=c.length,h=e.options?.caseSensitive??t,l=e.options?.params?.parse??e.options?.parseParams;for(;i<u;){const f=se(c,i,s);let m;const R=i,d=f[5];switch(i=d+1,r++,f[0]){case 0:{const p=c.substring(f[2],f[3]);if(h){const y=o.static?.get(p);if(y)m=y;else{o.static??=new Map;const _=z(e.fullPath??e.from);_.parent=o,_.depth=r,m=_,o.static.set(p,_)}}else{const y=p.toLowerCase(),_=o.staticInsensitive?.get(y);if(_)m=_;else{o.staticInsensitive??=new Map;const w=z(e.fullPath??e.from);w.parent=o,w.depth=r,m=w,o.staticInsensitive.set(y,w)}}break}case 1:{const p=c.substring(R,f[1]),y=c.substring(f[4],d),_=h&&!!(p||y),w=p?_?p:p.toLowerCase():void 0,S=y?_?y:y.toLowerCase():void 0,P=!l&&o.dynamic?.find(v=>!v.parse&&v.caseSensitive===_&&v.prefix===w&&v.suffix===S);if(P)m=P;else{const v=_t(1,e.fullPath??e.from,_,w,S);m=v,v.depth=r,v.parent=o,o.dynamic??=[],o.dynamic.push(v)}break}case 3:{const p=c.substring(R,f[1]),y=c.substring(f[4],d),_=h&&!!(p||y),w=p?_?p:p.toLowerCase():void 0,S=y?_?y:y.toLowerCase():void 0,P=!l&&o.optional?.find(v=>!v.parse&&v.caseSensitive===_&&v.prefix===w&&v.suffix===S);if(P)m=P;else{const v=_t(3,e.fullPath??e.from,_,w,S);m=v,v.parent=o,v.depth=r,o.optional??=[],o.optional.push(v)}break}case 2:{const p=c.substring(R,f[1]),y=c.substring(f[4],d),_=h&&!!(p||y),w=p?_?p:p.toLowerCase():void 0,S=y?_?y:y.toLowerCase():void 0,P=_t(2,e.fullPath??e.from,_,w,S);m=P,P.parent=o,P.depth=r,o.wildcard??=[],o.wildcard.push(P)}}o=m}if(l&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const f=z(e.fullPath??e.from);f.kind=ee,f.parent=o,r++,f.depth=r,o.pathless??=[],o.pathless.push(f),o=f}const g=(e.path||!e.children)&&!e.isRoot;if(g&&c.endsWith("/")){const f=z(e.fullPath??e.from);f.kind=F,f.parent=o,r++,f.depth=r,o.index=f,o=f}o.parse=l??null,o.priority=e.options?.params?.priority??0,g&&!o.route&&(o.route=e,o.fullPath=e.fullPath??e.from)}if(e.children)for(const c of e.children)mt(t,s,c,i,o,r,a)}function wt(t,s){if(t.parse&&!s.parse)return-1;if(!t.parse&&s.parse)return 1;if(t.parse&&s.parse&&(t.priority||s.priority))return s.priority-t.priority;if(t.prefix&&s.prefix&&t.prefix!==s.prefix){if(t.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(t.prefix))return 1}if(t.suffix&&s.suffix&&t.suffix!==s.suffix){if(t.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(t.suffix))return 1}return t.prefix&&!s.prefix?-1:!t.prefix&&s.prefix?1:t.suffix&&!s.suffix?-1:!t.suffix&&s.suffix?1:t.caseSensitive&&!s.caseSensitive?-1:!t.caseSensitive&&s.caseSensitive?1:0}function A(t){if(t.pathless)for(const s of t.pathless)A(s);if(t.static)for(const s of t.static.values())A(s);if(t.staticInsensitive)for(const s of t.staticInsensitive.values())A(s);if(t.dynamic?.length){t.dynamic.sort(wt);for(const s of t.dynamic)A(s)}if(t.optional?.length){t.optional.sort(wt);for(const s of t.optional)A(s)}if(t.wildcard?.length){t.wildcard.sort(wt);for(const s of t.wildcard)A(s)}}function z(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0}}function _t(t,s,e,n,o){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,priority:0,caseSensitive:e,prefix:n,suffix:o}}function Oe(t,s){const e=z("/"),n=new Uint16Array(6);for(const o of t)mt(!1,n,o,1,e,0);A(e),s.masksTree=e,s.flatCache=ot(1e3)}function Be(t,s){t||="/";const e=s.flatCache.get(t);if(e)return e;const n=Tt(t,s.masksTree);return s.flatCache.set(t,n),n}function Ne(t,s,e,n,o){t||="/",n||="/";const r=s?`case\0${t}`:t;let a=o.singleCache.get(r);return a||(a=z("/"),mt(s,new Uint16Array(6),{from:t},1,a,0),o.singleCache.set(r,a)),Tt(n,a,e)}function ze(t,s,e=!1){const n=e?t:`nofuzz\0${t}`,o=s.matchCache.get(n);if(o!==void 0)return o;t||="/";let r;try{r=Tt(t,s.segmentTree,e)}catch(a){if(a instanceof URIError)r=null;else throw a}return r&&(r.branch=ne(r.route)),s.matchCache.set(n,r),r}function Ue(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function je(t,s=!1,e){const n=z(t.fullPath),o=new Uint16Array(6),r={},a={};let i=0;return mt(s,o,t,1,n,0,c=>{if(e?.(c,i),c.id in r&&K(),r[c.id]=c,i!==0&&c.path){const u=Ue(c.fullPath);(!a[u]||c.fullPath.endsWith("/"))&&(a[u]=c)}i++}),A(n),{processedTree:{segmentTree:n,singleCache:ot(1e3),matchCache:ot(1e3),flatCache:null,masksTree:null},routesById:r,routesByPath:a}}function Tt(t,s,e=!1){const n=t.split("/"),o=$e(t,n,s,e);if(!o)return null;const[r]=oe(t,n,o);return{route:o.node.route,rawParams:r}}function oe(t,s,e){const n=De(e.node);let o=null;const r=Object.create(null);let a=e.extract?.part??0,i=e.extract?.node??0,c=e.extract?.path??0,u=e.extract?.segment??0;for(;i<n.length;a++,i++,c++,u++){const h=n[i];if(h.kind===F)break;if(h.kind===ee){u--,a--,c--;continue}const l=s[a],g=c;if(l&&(c+=l.length),h.kind===1){o??=e.node.fullPath.split("/");const f=o[u],m=h.prefix?.length??0;if(f.charCodeAt(m)===123){const R=h.suffix?.length??0,d=f.substring(m+2,f.length-R-1),p=l.substring(m,l.length-R);r[d]=decodeURIComponent(p)}else{const R=f.substring(1);r[R]=decodeURIComponent(l)}}else if(h.kind===3){if(e.skipped&1<<i){a--,c=g-1;continue}o??=e.node.fullPath.split("/");const f=o[u],m=h.prefix?.length??0,R=h.suffix?.length??0,d=f.substring(m+3,f.length-R-1),p=h.suffix||h.prefix?l.substring(m,l.length-R):l;p&&(r[d]=decodeURIComponent(p))}else if(h.kind===2){const f=h,m=t.substring(g+(f.prefix?.length??0),t.length-(f.suffix?.length??0)),R=decodeURIComponent(m);r["*"]=R,r._splat=R;break}}return e.rawParams&&Object.assign(r,e.rawParams),[r,{part:a,node:i,path:c,segment:u}]}function ne(t){const s=[t];for(;t.parentRoute;)t=t.parentRoute,s.push(t);return s.reverse(),s}function De(t){const s=Array(t.depth+1);do s[t.depth]=t,t=t.parent;while(t);return s}function $e(t,s,e,n){if(t==="/"&&e.index)return{node:e.index,skipped:0};const o=!et(s),r=o&&t!=="/",a=s.length-(o?1:0),i=[{node:e,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let c=null,u=null;for(;i.length;){const h=i.pop(),{node:l,index:g,skipped:f,depth:m,statics:R,dynamics:d,optionals:p}=h;let{extract:y,rawParams:_}=h;if(l.kind===2&&l.route&&!at(u,h))continue;if(l.parse){if(!zt(t,s,h))continue;_=h.rawParams,y=h.extract}n&&l.route&&l.kind!==F&&at(c,h)&&(c=h);const w=g===a;if(w&&(l.route&&(!r||l.kind===F||l.kind===2)&&at(u,h)&&(u=h),!l.optional&&!l.wildcard&&!l.index&&!l.pathless))continue;const S=w?void 0:s[g];let P;if(w&&l.index){const v={node:l.index,index:g,skipped:f,depth:m+1,statics:R,dynamics:d,optionals:p,extract:y,rawParams:_};let L=!0;if(l.index.parse&&(zt(t,s,v)||(L=!1)),L){if(!d&&!p&&!f&&He(R,a))return v;at(u,v)&&(u=v)}}if(l.wildcard)for(let v=l.wildcard.length-1;v>=0;v--){const L=l.wildcard[v],{prefix:x,suffix:C}=L;if(!(x&&(w||!(L.caseSensitive?S:P??=S.toLowerCase()).startsWith(x)))){if(C){if(w)continue;const b=s.slice(g).join("/").slice(-C.length);if((L.caseSensitive?b:b.toLowerCase())!==C)continue}i.push({node:L,index:a,skipped:f,depth:m+1,statics:R,dynamics:d,optionals:p,extract:y,rawParams:_})}}if(l.optional){const v=f|1<<m,L=m+1;for(let x=l.optional.length-1;x>=0;x--){const C=l.optional[x];i.push({node:C,index:g,skipped:v,depth:L,statics:R,dynamics:d,optionals:p,extract:y,rawParams:_})}if(!w)for(let x=l.optional.length-1;x>=0;x--){const C=l.optional[x],{prefix:b,suffix:M}=C;if(b||M){const B=C.caseSensitive?S:P??=S.toLowerCase();if(b&&!B.startsWith(b)||M&&!B.endsWith(M))continue}i.push({node:C,index:g+1,skipped:f,depth:L,statics:R,dynamics:d,optionals:p+it(a,g),extract:y,rawParams:_})}}if(!w&&l.dynamic&&S)for(let v=l.dynamic.length-1;v>=0;v--){const L=l.dynamic[v],{prefix:x,suffix:C}=L;if(x||C){const b=L.caseSensitive?S:P??=S.toLowerCase();if(x&&!b.startsWith(x)||C&&!b.endsWith(C))continue}i.push({node:L,index:g+1,skipped:f,depth:m+1,statics:R,dynamics:d+it(a,g),optionals:p,extract:y,rawParams:_})}if(!w&&l.staticInsensitive){const v=l.staticInsensitive.get(P??=S.toLowerCase());v&&i.push({node:v,index:g+1,skipped:f,depth:m+1,statics:R+it(a,g),dynamics:d,optionals:p,extract:y,rawParams:_})}if(!w&&l.static){const v=l.static.get(S);v&&i.push({node:v,index:g+1,skipped:f,depth:m+1,statics:R+it(a,g),dynamics:d,optionals:p,extract:y,rawParams:_})}if(l.pathless){const v=m+1;for(let L=l.pathless.length-1;L>=0;L--){const x=l.pathless[L];i.push({node:x,index:g,skipped:f,depth:v,statics:R,dynamics:d,optionals:p,extract:y,rawParams:_})}}}if(u)return u;if(n&&c){let h=c.index;for(let g=0;g<c.index;g++)h+=s[g].length;const l=h===t.length?"/":t.slice(h);return c.rawParams??=Object.create(null),c.rawParams["**"]=decodeURIComponent(l),c}return null}function it(t,s){return 2**(t-s-1)}function He(t,s){return t===2**(s-1)-1}function zt(t,s,e){let n,o;try{[n,o]=oe(t,s,e)}catch{return null}if(e.rawParams=n,e.extract=o,!e.node.parse)return!0;try{if(e.node.parse(n)===!1)return null}catch{}return!0}function at(t,s){return t?s.statics>t.statics||s.statics===t.statics&&(s.dynamics>t.dynamics||s.dynamics===t.dynamics&&(s.optionals>t.optionals||s.optionals===t.optionals&&((s.node.kind===F)>(t.node.kind===F)||s.node.kind===F==(t.node.kind===F)&&s.depth>t.depth))):!0}function lt(t){return Et(t.filter(s=>s!==void 0).join("/"))}function Et(t){return t.replace(/\/{2,}/g,"/")}function re(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function U(t){const s=t.length;return s>1&&t[s-1]==="/"?t.replace(/\/{1,}$/,""):t}function ie(t){return U(re(t))}function Ut(t,s){return t?.endsWith("/")&&t!=="/"&&t!==`${s}/`?t.slice(0,-1):t}function Us(t,s,e){return Ut(t,e)===Ut(s,e)}function We({base:t,to:s,trailingSlash:e="never",cache:n}){const o=s.startsWith("/"),r=!o&&s===".";let a;if(n){a=o?s:r?t:t+"\0"+s;const u=n.get(a);if(u)return u}let i;if(r)i=t.split("/");else if(o)i=s.split("/");else{for(i=t.split("/");i.length>1&&et(i)==="";)i.pop();const u=s.split("/");for(let h=0,l=u.length;h<l;h++){const g=u[h];g===""?h?h===l-1&&i.push(g):i=[g]:g===".."?i.pop():g==="."||i.push(g)}}i.length>1&&(et(i)===""?e==="never"&&i.pop():e==="always"&&i.push(""));const c=Et(i.join("/"))||"/";return a&&n&&n.set(a,c),c}function Ve(t){const s=new Map(t.map(o=>[encodeURIComponent(o),o])),e=Array.from(s.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),n=new RegExp(e,"g");return o=>o.replace(n,r=>s.get(r)??r)}function vt(t,s,e){const n=s[t];return typeof n!="string"?n:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(n)?n:n.split("/").map(o=>Dt(o,e)).join("/"):Dt(n,e)}function jt({path:t,params:s,decoder:e,...n}){let o=!1;const r=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:r,isMissingParams:o};const a=t.length;let i=0,c,u="";for(;i<a;){const h=i;c=se(t,h,c);const l=c[5];if(i=l+1,h===l)continue;const g=c[0];if(g===0){u+="/"+t.substring(h,l);continue}if(g===2){const f=s._splat;r._splat=f,r["*"]=f;const m=t.substring(h,c[1]),R=t.substring(c[4],l);if(!f){o=!0,(m||R)&&(u+="/"+m+R);continue}const d=vt("_splat",s,e);u+="/"+m+d+R;continue}if(g===1){const f=t.substring(c[2],c[3]);!o&&!(f in s)&&(o=!0),r[f]=s[f];const m=t.substring(h,c[1]),R=t.substring(c[4],l),d=vt(f,s,e)??"undefined";u+="/"+m+d+R;continue}if(g===3){const f=t.substring(c[2],c[3]),m=s[f];if(m==null)continue;r[f]=m;const R=t.substring(h,c[1]),d=t.substring(c[4],l),p=vt(f,s,e)??"";u+="/"+R+p+d;continue}}return t.endsWith("/")&&(u+="/"),{usedParams:r,interpolatedPath:u||"/",isMissingParams:o}}function Dt(t,s){const e=encodeURIComponent(t);return s?.(e)??e}function js(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function T(t){return t?.isNotFound===!0}function qe(t,s=String){const e=new URLSearchParams;for(const n in t){const o=t[n];o!==void 0&&e.set(n,s(o))}return e.toString()}function St(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function Ke(t){const s=new URLSearchParams(t),e=Object.create(null);for(const[n,o]of s.entries()){const r=e[n];r==null?e[n]=St(o):Array.isArray(r)?r.push(St(o)):e[n]=[r,St(o)]}return e}const Ye=Xe(JSON.parse),Ge=Je(JSON.stringify,JSON.parse);function Xe(t){return s=>{s[0]==="?"&&(s=s.substring(1));const e=Ke(s);for(const n in e){const o=e[n];if(typeof o=="string")try{e[n]=t(o)}catch{}}return e}}function Je(t,s){const e=typeof s=="function";function n(o){if(typeof o=="object"&&o!==null)try{return t(o)}catch{}else if(e&&typeof o=="string")try{return s(o),t(o)}catch{}return o}return o=>{const r=qe(o,n);return r?`?${r}`:""}}const ht="__root__";function ae(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const s=new Headers(t.headers);t.href&&s.get("Location")===null&&s.set("Location",t.href);const e=new Response(null,{status:t.statusCode,headers:s});if(e.options=t,t.throw)throw e;return e}function I(t){return t instanceof Response&&!!t.options}function Ds(t){if(t!==null&&typeof t=="object"&&t.isSerializedRedirect)return ae(t)}const Lt=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},Ze=t=>t.stores.matchesId.get().some(s=>t.stores.matchStores.get(s)?.get()._forcePending),yt=(t,s)=>!!(t.preload&&!t.router.stores.matchStores.has(s)),j=(t,s,e=!0)=>{const n={...t.router.options.context??{}},o=e?s:s-1;for(let r=0;r<=o;r++){const a=t.matches[r];if(!a)continue;const i=t.router.getMatch(a.id);i&&Object.assign(n,i.__routeContext,i.__beforeLoadContext)}return n},$t=(t,s)=>{if(!t.matches.length)return;const e=s.routeId,n=t.matches.findIndex(a=>a.routeId===t.router.routeTree.id),o=n>=0?n:0;let r=e?t.matches.findIndex(a=>a.routeId===e):t.firstBadMatchIndex??t.matches.length-1;r<0&&(r=o);for(let a=r;a>=0;a--){const i=t.matches[a];if(t.router.looseRoutesById[i.routeId].options.notFoundComponent)return a}return e?r:o},O=(t,s,e)=>{if(!(!I(e)&&!T(e)))throw I(e)&&e.redirectHandled&&!e.options.reloadDocument||(s&&(s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.loaderPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0,s._nonReactive.error=e,t.updateMatch(s.id,n=>({...n,status:I(e)?"redirected":T(e)?"notFound":n.status==="pending"?"success":n.status,context:j(t,s.index),isFetching:!1,error:e})),T(e)&&!e.routeId&&(e.routeId=s.routeId),s._nonReactive.loadPromise?.resolve()),I(e)&&(t.rendered=!0,e.options._fromLocation=t.location,e.redirectHandled=!0,e=t.router.resolveRedirect(e))),e},ce=(t,s)=>{const e=t.router.getMatch(s);return!!(!e||e._nonReactive.dehydrated)},Ht=(t,s,e)=>{const n=j(t,e);t.updateMatch(s,o=>({...o,context:n}))},J=(t,s,e,n)=>{const{id:o,routeId:r}=t.matches[s],a=t.router.looseRoutesById[r];if(e instanceof Promise)throw e;e.routerCode=n,t.firstBadMatchIndex??=s,O(t,t.router.getMatch(o),e);try{a.options.onError?.(e)}catch(i){e=i,O(t,t.router.getMatch(o),e)}t.updateMatch(o,i=>(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loadPromise?.resolve(),{...i,error:e,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!t.preload&&!I(e)&&!T(e)&&(t.serialError??=e)},le=(t,s,e,n)=>{if(n._nonReactive.pendingTimeout!==void 0)return;const o=e.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!yt(t,s)&&(e.options.loader||e.options.beforeLoad||de(e))&&typeof o=="number"&&o!==1/0&&(e.options.pendingComponent??t.router.options?.defaultPendingComponent)){const r=setTimeout(()=>{Lt(t)},o);n._nonReactive.pendingTimeout=r}},Qe=(t,s,e)=>{const n=t.router.getMatch(s);if(!n._nonReactive.beforeLoadPromise&&!n._nonReactive.loaderPromise)return;le(t,s,e,n);const o=()=>{const r=t.router.getMatch(s);r.preload&&(r.status==="redirected"||r.status==="notFound")&&O(t,r,r.error)};return n._nonReactive.beforeLoadPromise?n._nonReactive.beforeLoadPromise.then(o):o()},ts=(t,s,e,n)=>{const o=t.router.getMatch(s);let r=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Y(()=>{r?.resolve(),r=void 0});const{paramsError:a,searchError:i}=o;a&&J(t,e,a,"PARSE_PARAMS"),i&&J(t,e,i,"VALIDATE_SEARCH"),le(t,s,n,o);const c=new AbortController;let u=!1;const h=()=>{u||(u=!0,t.updateMatch(s,w=>({...w,isFetching:"beforeLoad",fetchCount:w.fetchCount+1,abortController:c})))},l=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(s,w=>({...w,isFetching:!1}))};if(!n.options.beforeLoad){t.router.batch(()=>{h(),l()});return}o._nonReactive.beforeLoadPromise=Y();const g={...j(t,e,!1),...o.__routeContext},{search:f,params:m,cause:R}=o,d=yt(t,s),p={search:f,abortController:c,params:m,preload:d,context:g,location:t.location,navigate:w=>t.router.navigate({...w,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:d?"preload":R,matches:t.matches,routeId:n.id,...t.router.options.additionalContext},y=w=>{if(w===void 0){t.router.batch(()=>{h(),l()});return}(I(w)||T(w))&&(h(),J(t,e,w,"BEFORE_LOAD")),t.router.batch(()=>{h(),t.updateMatch(s,S=>({...S,__beforeLoadContext:w})),l()})};let _;try{if(_=n.options.beforeLoad(p),st(_))return h(),_.catch(w=>{J(t,e,w,"BEFORE_LOAD")}).then(y)}catch(w){h(),J(t,e,w,"BEFORE_LOAD")}y(_)},es=(t,s)=>{const{id:e,routeId:n}=t.matches[s],o=t.router.looseRoutesById[n],r=()=>i(),a=()=>ts(t,e,s,o),i=()=>{if(ce(t,e))return;const c=Qe(t,e,o);return st(c)?c.then(a):a()};return r()},ss=(t,s,e)=>{const n=t.router.getMatch(s);if(!n||!e.options.head&&!e.options.scripts&&!e.options.headers)return;const o={ssr:t.router.options.ssr,matches:t.matches,match:n,params:n.params,loaderData:n.loaderData};return Promise.all([e.options.head?.(o),e.options.scripts?.(o),e.options.headers?.(o)]).then(([r,a,i])=>({meta:r?.meta,links:r?.links,headScripts:r?.scripts,headers:i,scripts:a,styles:r?.styles}))},he=(t,s,e,n,o)=>{const r=s[n-1],{params:a,loaderDeps:i,abortController:c,cause:u}=t.router.getMatch(e),h=j(t,n),l=yt(t,e);return{params:a,deps:i,preload:!!l,parentMatchPromise:r,abortController:c,context:h,location:t.location,navigate:g=>t.router.navigate({...g,_fromLocation:t.location}),cause:l?"preload":u,route:o,...t.router.options.additionalContext}},Wt=async(t,s,e,n,o)=>{try{const r=t.router.getMatch(e);try{(!(xe??t.router.isServer)||r.ssr===!0)&&nt(o);const a=o.options.loader,i=typeof a=="function"?a:a?.handler,c=i?.(he(t,s,e,n,o)),u=!!i&&st(c);if((u||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||r._nonReactive.minPendingPromise)&&t.updateMatch(e,l=>({...l,isFetching:"loader"})),i){const l=u?await c:c;O(t,t.router.getMatch(e),l),l!==void 0&&t.updateMatch(e,g=>({...g,loaderData:l}))}o._lazyPromise&&await o._lazyPromise;const h=r._nonReactive.minPendingPromise;h&&await h,o._componentsPromise&&await o._componentsPromise,t.updateMatch(e,l=>({...l,error:void 0,context:j(t,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(a){let i=a;if(i?.name==="AbortError"){if(r.abortController.signal.aborted){r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loaderPromise=void 0;return}t.updateMatch(e,u=>({...u,status:u.status==="pending"?"success":u.status,isFetching:!1,context:j(t,n)}));return}const c=r._nonReactive.minPendingPromise;c&&await c,T(a)&&await o.options.notFoundComponent?.preload?.(),O(t,t.router.getMatch(e),a);try{o.options.onError?.(a)}catch(u){i=u,O(t,t.router.getMatch(e),u)}!I(i)&&!T(i)&&await nt(o,["errorComponent"]),t.updateMatch(e,u=>({...u,error:i,context:j(t,n),status:"error",isFetching:!1}))}}catch(r){const a=t.router.getMatch(e);a&&(a._nonReactive.loaderPromise=void 0),O(t,a,r)}},os=async(t,s,e)=>{async function n(f,m,R,d,p){const y=Date.now()-m.updatedAt,_=f?p.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:p.options.staleTime??t.router.options.defaultStaleTime??0,w=p.options.shouldReload,S=typeof w=="function"?w(he(t,s,o,e,p)):w,{status:P,invalid:v}=d,L=y>=_&&(!!t.forceStaleReload||d.cause==="enter"||R!==void 0&&R!==d.id);a=P==="success"&&(v||(S??L)),f&&p.options.preload===!1||(a&&!t.sync&&h?(i=!0,(async()=>{try{await Wt(t,s,o,e,p);const x=t.router.getMatch(o);x._nonReactive.loaderPromise?.resolve(),x._nonReactive.loadPromise?.resolve(),x._nonReactive.loaderPromise=void 0,x._nonReactive.loadPromise=void 0}catch(x){I(x)&&await t.router.navigate(x.options)}})()):P!=="success"||a?await Wt(t,s,o,e,p):Ht(t,o,e))}const{id:o,routeId:r}=t.matches[e];let a=!1,i=!1;const c=t.router.looseRoutesById[r],u=c.options.loader,h=((typeof u=="function"?void 0:u?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(ce(t,o)){if(!t.router.getMatch(o))return t.matches[e];Ht(t,o,e)}else{const f=t.router.getMatch(o),m=t.router.stores.matchesId.get()[e],R=(m&&t.router.stores.matchStores.get(m)||null)?.routeId===r?m:t.router.stores.matches.get().find(p=>p.routeId===r)?.id,d=yt(t,o);if(f._nonReactive.loaderPromise){if(f.status==="success"&&!t.sync&&!f.preload&&h)return f;await f._nonReactive.loaderPromise;const p=t.router.getMatch(o),y=p._nonReactive.error||p.error;y&&O(t,p,y),p.status==="pending"&&await n(d,f,R,p,c)}else{const p=d&&!t.router.stores.matchStores.has(o),y=t.router.getMatch(o);y._nonReactive.loaderPromise=Y(),p!==y.preload&&t.updateMatch(o,_=>({..._,preload:p})),await n(d,f,R,y,c)}}const l=t.router.getMatch(o);i||(l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loadPromise?.resolve(),l._nonReactive.loadPromise=void 0),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0,i||(l._nonReactive.loaderPromise=void 0),l._nonReactive.dehydrated=void 0;const g=i?l.isFetching:!1;return g!==l.isFetching||l.invalid!==!1?(t.updateMatch(o,f=>({...f,isFetching:g,invalid:!1})),t.router.getMatch(o)):l};async function Vt(t){const s=t,e=[];Ze(s.router)&&Lt(s);let n;for(let g=0;g<s.matches.length;g++){try{const f=es(s,g);st(f)&&await f}catch(f){if(I(f))throw f;if(T(f))n=f;else if(!s.preload)throw f;break}if(s.serialError||s.firstBadMatchIndex!=null)break}const o=s.firstBadMatchIndex??s.matches.length,r=n&&!s.preload?$t(s,n):void 0,a=n&&s.preload?0:r!==void 0?Math.min(r+1,o):o;let i,c;for(let g=0;g<a;g++)e.push(os(s,e,g));try{await Promise.all(e)}catch{const g=await Promise.allSettled(e);for(const f of g){if(f.status!=="rejected")continue;const m=f.reason;if(I(m))throw m;T(m)?i??=m:c??=m}if(c!==void 0)throw c}const u=i??(n&&!s.preload?n:void 0);let h=s.firstBadMatchIndex!==void 0?s.firstBadMatchIndex:s.matches.length-1;if(!u&&n&&s.preload)return s.matches;if(u){const g=$t(s,u);g===void 0&&K();const f=s.matches[g],m=s.router.looseRoutesById[f.routeId],R=s.router.options?.defaultNotFoundComponent;!m.options.notFoundComponent&&R&&(m.options.notFoundComponent=R),u.routeId=f.routeId;const d=f.routeId===s.router.routeTree.id;s.updateMatch(f.id,p=>({...p,...d?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:u},isFetching:!1})),h=g,await nt(m,["notFoundComponent"])}else if(!s.preload){const g=s.matches[0];g.globalNotFound||s.router.getMatch(g.id)?.globalNotFound&&s.updateMatch(g.id,f=>({...f,globalNotFound:!1,error:void 0}))}if(s.serialError&&s.firstBadMatchIndex!==void 0){const g=s.router.looseRoutesById[s.matches[s.firstBadMatchIndex].routeId];await nt(g,["errorComponent"])}for(let g=0;g<=h;g++){const{id:f,routeId:m}=s.matches[g],R=s.router.looseRoutesById[m];try{const d=ss(s,f,R);if(d){const p=await d;s.updateMatch(f,y=>({...y,...p}))}}catch(d){console.error(`Error executing head for route ${m}:`,d)}}const l=Lt(s);if(st(l)&&await l,u)throw u;if(s.serialError&&!s.preload&&!s.onReady)throw s.serialError;return s.matches}function qt(t,s){const e=s.map(n=>t.options[n]?.preload?.()).filter(Boolean);if(e.length!==0)return Promise.all(e)}function nt(t,s=dt){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(n=>{const{id:o,...r}=n.options;Object.assign(t.options,r),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const e=()=>t._componentsLoaded?void 0:s===dt?(()=>{if(t._componentsPromise===void 0){const n=qt(t,dt);n?t._componentsPromise=n.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():qt(t,s);return t._lazyPromise?t._lazyPromise.then(e):e()}function de(t){for(const s of dt)if(t.options[s]?.preload)return!0;return!1}const dt=["component","errorComponent","pendingComponent","notFoundComponent"];function ns(t){return{input:({url:s})=>{for(const e of t)s=bt(e,s);return s},output:({url:s})=>{for(let e=t.length-1;e>=0;e--)s=ue(t[e],s);return s}}}function rs(t){const s=ie(t.basepath),e=`/${s}`,n=t.caseSensitive?e:e.toLowerCase(),o=`${n}/`;return{input:({url:r})=>{const a=t.caseSensitive?r.pathname:r.pathname.toLowerCase();return a===n?r.pathname="/":a.startsWith(o)&&(r.pathname=r.pathname.slice(e.length)),r},output:({url:r})=>(r.pathname=lt(["/",s,r.pathname]),r)}}function bt(t,s){const e=t?.input?.({url:s});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return s}function ue(t,s){const e=t?.output?.({url:s});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return s}function is(t,s){const{createMutableStore:e,createReadonlyStore:n,batch:o,init:r}=s,a=new Map,i=new Map,c=new Map,u=e(t.status),h=e(t.loadedAt),l=e(t.isLoading),g=e(t.isTransitioning),f=e(t.location),m=e(t.resolvedLocation),R=e(t.statusCode),d=e(t.redirect),p=e([]),y=e([]),_=e([]),w=n(()=>Pt(a,p.get())),S=n(()=>Pt(i,y.get())),P=n(()=>Pt(c,_.get())),v=n(()=>p.get()[0]),L=n(()=>p.get().some(E=>a.get(E)?.get().status==="pending")),x=n(()=>({locationHref:f.get().href,resolvedLocationHref:m.get()?.href,status:u.get()})),C=n(()=>({status:u.get(),loadedAt:h.get(),isLoading:l.get(),isTransitioning:g.get(),matches:w.get(),location:f.get(),resolvedLocation:m.get(),statusCode:R.get(),redirect:d.get()})),b=ot(64);function M(E){let rt=b.get(E);return rt||(rt=n(()=>{const Re=p.get();for(const we of Re){const Rt=a.get(we);if(Rt&&Rt.routeId===E)return Rt.get()}}),b.set(E,rt)),rt}const B={status:u,loadedAt:h,isLoading:l,isTransitioning:g,location:f,resolvedLocation:m,statusCode:R,redirect:d,matchesId:p,pendingIds:y,cachedIds:_,matches:w,pendingMatches:S,cachedMatches:P,firstId:v,hasPending:L,matchRouteDeps:x,matchStores:a,pendingMatchStores:i,cachedMatchStores:c,__store:C,getRouteMatchStore:M,setMatches:k,setPending:G,setCached:ye};k(t.matches),r?.(B);function k(E){xt(E,a,p,e,o)}function G(E){xt(E,i,y,e,o)}function ye(E){xt(E,c,_,e,o)}return B}function Pt(t,s){const e=[];for(const n of s){const o=t.get(n);o&&e.push(o.get())}return e}function xt(t,s,e,n,o){const r=t.map(i=>i.id),a=new Set(r);o(()=>{for(const i of s.keys())a.has(i)||s.delete(i);for(const i of t){const c=s.get(i.id);if(!c){const u=n(i);u.routeId=i.routeId,s.set(i.id,u);continue}c.routeId=i.routeId,c.get()!==i&&c.set(i)}Ae(e.get(),r)||e.set(r)})}function as(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function Kt(t,s){const e=s,n=t;return{fromLocation:e,toLocation:n,pathChanged:e?.pathname!==n.pathname,hrefChanged:e?.href!==n.href,hashChanged:e?.hash!==n.hash}}const Mt=new WeakMap;var $s=class{constructor(t,s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{const n=this.options,o=this.basepath??n?.basepath??"/",r=this.basepath===void 0,a=n?.rewrite;if(this.options={...n,...e},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Ve(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=_e()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=ot(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=is(ls(this.latestLocation),h),_s(this)}let i=!1;const c=this.options.basepath??"/",u=this.options.rewrite;if(r||o!==c||a!==u){this.basepath=c;const h=[],l=ie(c);l&&l!=="/"&&h.push(rs({basepath:c})),u&&h.push(u),this.rewrite=h.length===0?void 0:h.length===1?h[0]:ns(h),this.history&&this.updateLatestLocation(),i=!0}i&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const e=je(this.routeTree,this.options.caseSensitive,(n,o)=>{n.init({originalIndex:o})});return this.options.routeMasks&&Oe(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,n)=>{const o={eventType:e,fn:n};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=e=>{this.subscribers.forEach(n=>{n.eventType===e.type&&n.fn(e)})},this.parseLocation=(e,n)=>{const o=({pathname:c,search:u,hash:h,href:l,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(c)){const p=this.options.parseSearch(u),y=this.options.stringifySearch(p);return{href:c+y+h,publicHref:c+y+h,pathname:X(c).path,external:!1,searchStr:y,search:N(n?.search,p),hash:X(h.slice(1)).path,state:W(n?.state,g)}}const f=new URL(l,this.origin),m=bt(this.rewrite,f),R=this.options.parseSearch(m.search),d=this.options.stringifySearch(R);return m.search=d,{href:m.href.replace(m.origin,""),publicHref:l,pathname:X(m.pathname).path,external:!!this.rewrite&&m.origin!==this.origin,searchStr:d,search:N(n?.search,R),hash:X(m.hash.slice(1)).path,state:W(n?.state,g)}},r=o(e),{__tempLocation:a,__tempKey:i}=r.state;if(a&&(!i||i===this.tempLocationKey)){const c=o(a);return c.state.key=r.state.key,c.state.__TSR_key=r.state.__TSR_key,delete c.state.__tempLocation,{...c,maskedLocation:r}}return r},this.resolvePathWithBase=(e,n)=>We({base:e,to:n.includes("//")?Et(n):n,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,n,o)=>typeof e=="string"?this.matchRoutesInternal({pathname:e,search:n},o):this.matchRoutesInternal(e,n),this.getMatchedRoutes=e=>hs({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{const n=this.getMatch(e);n&&(n.abortController.abort(),clearTimeout(n._nonReactive.pendingTimeout),n._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;const n=this.stores.matchStores.get(e)?.get();n&&(n.status==="pending"||n.isFetching==="loader")&&this.cancelMatch(e)})},this.buildLocation=e=>{const n=(r={})=>{const a=r._fromLocation||this.pendingBuiltLocation||this.latestLocation,i=this.matchRoutesLightweight(a);r.from;const c=r.unsafeRelative==="path"?a.pathname:r.from??i.fullPath,u=r.to?`${r.to}`:void 0,h=i.search,l=Object.assign(Object.create(null),i.params),g=u?.charCodeAt(0)===47?"/":this.resolvePathWithBase(c,"."),f=u?this.resolvePathWithBase(g,u):g,m=r.params===!1||r.params===null?Object.create(null):(r.params??!0)===!0?l:Object.assign(l,tt(r.params,l)),R=this.routesByPath[U(f)];let d;if(R)d=this.getRouteBranch(R);else if(f.includes("$"))d=[];else{const b=this.getMatchedRoutes(f);d=b.matchedRoutes,this.options.notFoundRoute&&(!b.foundRoute||b.foundRoute.path!=="/"&&b.routeParams["**"])&&(d=[...d,this.options.notFoundRoute])}if(d.length&&be(m))for(const b of d){const M=b.options.params?.stringify??b.options.stringifyParams;if(M)try{Object.assign(m,M(m))}catch{}}const p=e.leaveParams?f:X(jt({path:f,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let y=h;if(e._includeValidateSearch&&this.options.search?.strict){const b={};d.forEach(M=>{if(M.options.validateSearch)try{Object.assign(b,ut(M.options.validateSearch,{...b,...y}))}catch{}}),y=b}y=ds({search:y,dest:r,destRoutes:d,_includeValidateSearch:e._includeValidateSearch}),y=N(h,y);const _=this.options.stringifySearch(y),w=r.hash===!0?a.hash:r.hash?tt(r.hash,a.hash):void 0,S=w?`#${w}`:"";let P=r.state===!0?a.state:r.state?tt(r.state,a.state):{};P=W(a.state,P);const v=`${p}${_}${S}`;let L,x,C=!1;if(this.rewrite){const b=new URL(v,this.origin),M=ue(this.rewrite,b);L=b.href.replace(b.origin,""),M.origin!==this.origin?(x=M.href,C=!0):x=M.pathname+M.search+M.hash}else L=ke(v),x=L;return{publicHref:x,href:L,pathname:p,search:y,searchStr:_,state:P,hash:w??"",external:C,unmaskOnReload:r.unmaskOnReload}},o=(r={},a)=>{const i=n(r);let c=a?n(a):void 0;if(!c){const u=Object.create(null);if(this.options.routeMasks){const h=Be(i.pathname,this.processedTree);if(h){Object.assign(u,h.rawParams);const{from:l,params:g,...f}=h.route,m=g===!1||g===null?Object.create(null):(g??!0)===!0?u:Object.assign(u,tt(g,u));a={from:e.from,...f,params:m},c=n(a)}}}return c&&(i.maskedLocation=c),i};return e.mask?o(e,{from:e.from,...e.mask}):o(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:n,...o})=>{let r;const a=()=>{const u=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];u.forEach(l=>{o.state[l]=this.latestLocation.state[l]});const h=q(o.state,this.latestLocation.state);return u.forEach(l=>{delete o.state[l]}),h},i=U(this.latestLocation.href)===U(o.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=Y(()=>{c?.resolve(),c=void 0}),i&&a())this.load();else{let{maskedLocation:u,hashScrollIntoView:h,...l}=o;u&&(l={...u,state:{...u.state,__tempKey:void 0,__tempLocation:{...l,search:l.searchStr,state:{...l.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(l.unmaskOnReload??this.options.unmaskOnReload??!1)&&(l.state.__tempKey=this.tempLocationKey)),l.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=o.replace?"REPLACE":"PUSH",this.history[r==="REPLACE"?"replace":"push"](l.publicHref,l.state,{ignoreBlocker:n})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:n,hashScrollIntoView:o,viewTransition:r,ignoreBlocker:a,href:i,...c}={})=>{if(i){const l=this.history.location.state.__TSR_index,g=ve(i,{__TSR_index:e?l:l+1}),f=new URL(g.pathname,this.origin);c.to=bt(this.rewrite,f).pathname,c.search=this.options.parseSearch(g.search),c.hash=g.hash.slice(1)}const u=this.buildLocation({...c,_includeValidateSearch:!0});this.pendingBuiltLocation=u;const h=this.commitLocation({...u,viewTransition:r,replace:e,resetScroll:n,hashScrollIntoView:o,ignoreBlocker:a});return Promise.resolve().then(()=>{this.pendingBuiltLocation===u&&(this.pendingBuiltLocation=void 0)}),h},this.navigate=async({to:e,reloadDocument:n,href:o,publicHref:r,...a})=>{let i=!1;if(o)try{new URL(`${o}`),i=!0}catch{}if(i&&!n&&(n=!0),n){if(e!==void 0||!o){const u=this.buildLocation({to:e,...a});o=o??u.publicHref,r=r??u.publicHref}const c=!i&&r?r:o;if(Nt(c,this.protocolAllowlist))return Promise.resolve();if(!a.ignoreBlocker){const u=this.history.getBlockers?.()??[];for(const h of u)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return a.replace?window.location.replace(c):window.location.href=c,Promise.resolve()}return this.buildAndCommitLocation({...a,href:o,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const e=this.matchRoutes(this.latestLocation),n=this.stores.cachedMatches.get().filter(o=>!e.some(r=>r.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(n)})},this.load=async e=>{const n=e?.action?.type;let o,r,a;const i=this.stores.resolvedLocation.get()??this.stores.location.get();for(a=new Promise(u=>{this.startTransition(async()=>{try{this.beforeLoad(),n?Mt.set(this.latestLocation,n):Mt.delete(this.latestLocation);const h=this.latestLocation,l=Kt(h,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...l}),this.emit({type:"onBeforeLoad",...l}),await Vt({router:this,sync:e?.sync,forceStaleReload:i.href===h.href,matches:this.stores.pendingMatches.get(),location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,f=null,m=null,R=null;this.batch(()=>{const d=this.stores.pendingMatches.get(),p=d.length,y=this.stores.matches.get();g=p?y.filter(S=>!this.stores.pendingMatchStores.has(S.id)):null;const _=new Set;for(const S of this.stores.pendingMatchStores.values())S.routeId&&_.add(S.routeId);const w=new Set;for(const S of this.stores.matchStores.values())S.routeId&&w.add(S.routeId);f=p?y.filter(S=>!_.has(S.routeId)):null,m=p?d.filter(S=>!w.has(S.routeId)):null,R=p?d.filter(S=>w.has(S.routeId)):y,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),p&&(this.stores.setMatches(d),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...g.filter(S=>S.status!=="error"&&S.status!=="notFound"&&S.status!=="redirected")]),this.clearExpiredCache())});for(const[d,p]of[[f,"onLeave"],[m,"onEnter"],[R,"onStay"]])if(d)for(const y of d)this.looseRoutesById[y.routeId].options[p]?.(y)})})}})}catch(h){I(h)?(o=h,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):T(h)&&(r=h);const l=o?o.status:r?404:this.stores.matches.get().some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(l),this.stores.redirect.set(o)})}this.latestLoadPromise===a&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),u()})}),this.latestLoadPromise=a,await a;this.latestLoadPromise&&a!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(u=>u.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=e=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const r=this.latestLocation,a=this.stores.resolvedLocation.get(),i=typeof n.types=="function"?n.types(Kt(r,a)):n.types;if(i===!1){e();return}o={update:e,types:i}}else o=e;document.startViewTransition(o)}else e()},this.updateMatch=(e,n)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(e);if(o){o.set(n);return}const r=this.stores.matchStores.get(e);if(r){r.set(n);return}const a=this.stores.cachedMatchStores.get(e);if(a){const i=n(a.get());i.status==="redirected"?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(c=>c.filter(u=>u!==e)):a.set(i)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{const n=o=>e?.filter?.(o)??!0?{...o,invalid:!0,...e?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(n)),this.stores.setCached(this.stores.cachedMatches.get().map(n)),this.stores.setPending(this.stores.pendingMatches.get().map(n))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||"/",this.resolveRedirect=e=>{const n=e.headers.get("Location");if(!e.options.href||e.options._builtLocation){const o=e.options._builtLocation??this.buildLocation(e.options),r=this.getParsedLocationHref(o);e.options.href=r,e.headers.set("Location",r)}else if(n)try{const o=new URL(n);if(this.origin&&o.origin===this.origin){const r=o.pathname+o.search+o.hash;e.options.href=r,e.headers.set("Location",r)}}catch{}if(e.options.href&&!e.options._builtLocation&&Nt(e.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return e.headers.get("Location")||e.headers.set("Location",e.options.href),e},this.clearCache=e=>{const n=e?.filter;n!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!n(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const e=Date.now(),n=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const a=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:e-o.updatedAt>=a};this.clearCache({filter:n})},this.loadRouteChunk=nt,this.preloadRoute=async e=>{const n=e._builtLocation??this.buildLocation(e);let o=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:e});const r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),a=new Set([...r,...this.stores.cachedIds.get()]),i=o.filter(c=>!a.has(c.id));if(i.length){const c=this.stores.cachedMatches.get();this.stores.setCached([...c,...i])}try{return o=await Vt({router:this,matches:o,location:n,preload:!0,updateMatch:(c,u)=>{r.has(c)?o=o.map(h=>h.id===c?u(h):h):this.updateMatch(c,u)}}),o}catch(c){if(I(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:n});T(c)||console.error(c);return}},this.matchRoute=(e,n)=>{const o={...e,to:e.to?this.resolvePathWithBase(e.from||"",e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(o);if(n?.pending&&this.stores.status.get()!=="pending")return!1;const a=(n?.pending===void 0?!this.stores.isLoading.get():n.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),i=Ne(r.pathname,n?.caseSensitive??!1,n?.fuzzy??!1,a.pathname,this.processedTree);return!i||e.params&&!q(i.rawParams,e.params,{partial:!0})?!1:n?.includeSearch??!0?q(a.search,r.search,{partial:!0})?i.rawParams:!1:i.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status==="notFound"||e.globalNotFound),this.getStoreConfig=s,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??Ge,parseSearch:t.parseSearch??Ye,protocolAllowlist:t.protocolAllowlist??Ie}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:s,processedTree:e}){this.routesById=t,this.routesByPath=s,this.processedTree=e;const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999}),this.routesById[n.id]=n)}getRouteBranch(t){let s=this.routeBranchCache.get(t);return s||(s=ne(t),this.routeBranchCache.set(t,s)),s}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,s){const e=this.getMatchedRoutes(t.pathname),{foundRoute:n,routeParams:o}=e;let{matchedRoutes:r}=e,a=!1;(n?n.path!=="/"&&o["**"]:U(t.pathname))&&(this.options.notFoundRoute?r=[...r,this.options.notFoundRoute]:a=!0);const i=a?fs(this.options.notFoundMode,r):void 0,c=new Array(r.length),u=new Map;for(const h of this.stores.matchStores.values())h.routeId&&u.set(h.routeId,h.get());for(let h=0;h<r.length;h++){const l=r[h],g=c[h-1];let f,m,R;{const M=g?.search??t.search,B=g?._strictSearch??void 0;try{const k=ut(l.options.validateSearch,{...M})??void 0;f={...M,...k},m={...B,...k},R=void 0}catch(k){let G=k;if(k instanceof pt||(G=new pt(k.message,{cause:k})),s?.throwOnError)throw G;f=M,m={},R=G}}const d=l.options.loaderDeps?.({search:f})??"",p=d?JSON.stringify(d):"",{interpolatedPath:y,usedParams:_}=jt({path:l.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),w=l.id+y+p,S=this.getMatch(w),P=u.get(l.id),v=S?._strictParams??_;let L;if(!S)try{Yt(l,v)}catch(M){if(T(M)||I(M)?L=M:L=new cs(M.message,{cause:M}),s?.throwOnError)throw L}Object.assign(o,v);const x=P?"stay":"enter";let C;if(S)C={...S,cause:x,params:P?.params??o,_strictParams:v,search:N(P?P.search:S.search,f),_strictSearch:m};else{const M=l.options.loader||l.options.beforeLoad||l.lazyFn||de(l)?"pending":"success";C={id:w,ssr:l.options.ssr,index:h,routeId:l.id,params:P?.params??o,_strictParams:v,pathname:y,updatedAt:Date.now(),search:P?N(P.search,f):f,_strictSearch:m,searchError:void 0,status:M,isFetching:!1,error:void 0,paramsError:L,__routeContext:void 0,_nonReactive:{loadPromise:Y()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:x,loaderDeps:P?W(P.loaderDeps,d):d,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:l.options.staticData||{},fullPath:l.fullPath}}s?.preload||(C.globalNotFound=i===l.id),C.searchError=R;const b=this.getParentContext(g);C.context={...b,...C.__routeContext,...C.__beforeLoadContext},c[h]=C}for(let h=0;h<c.length;h++){const l=c[h],g=this.looseRoutesById[l.routeId],f=this.getMatch(l.id),m=u.get(l.routeId);if(l.params=m?N(m.params,o):o,!f){const R=c[h-1],d=this.getParentContext(R);if(g.options.context){const p={deps:l.loaderDeps,params:l.params,context:d??{},location:t,navigate:y=>this.navigate({...y,_fromLocation:t}),buildLocation:this.buildLocation,cause:l.cause,abortController:l.abortController,preload:!!l.preload,matches:c,routeId:g.id};l.__routeContext=g.options.context(p)??void 0}l.context={...d,...l.__routeContext,...l.__beforeLoadContext}}}return c}matchRoutesLightweight(t){const{matchedRoutes:s,routeParams:e}=this.getMatchedRoutes(t.pathname),n=et(s),o={...t.search};for(const u of s)try{Object.assign(o,ut(u.options.validateSearch,o))}catch{}const r=et(this.stores.matchesId.get()),a=r&&this.stores.matchStores.get(r)?.get(),i=a&&a.routeId===n.id&&a.pathname===t.pathname;let c;if(i)c=a.params;else{const u=Object.assign(Object.create(null),e);for(const h of s)try{Yt(h,u)}catch{}c=u}return{matchedRoutes:s,fullPath:n.fullPath,search:o,params:c}}},pt=class extends Error{},cs=class extends Error{};function ls(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function ut(t,s){if(t==null)return{};if("~standard"in t){const e=t["~standard"].validate(s);if(e instanceof Promise)throw new pt("Async validation not supported");if(e.issues)throw new pt(JSON.stringify(e.issues,void 0,2),{cause:e});return e.value}return"parse"in t?t.parse(s):typeof t=="function"?t(s):{}}function hs({pathname:t,routesById:s,processedTree:e}){const n=Object.create(null),o=U(t);let r;const a=ze(o,e,!0);return a&&(r=a.route,Object.assign(n,a.rawParams)),{matchedRoutes:a?.branch||[s.__root__],routeParams:n,foundRoute:r}}function ds({search:t,dest:s,destRoutes:e,_includeValidateSearch:n}){return us(e)(t,s,n??!1)}function us(t){const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const o of t){if("search"in o.options)o.options.search?.middlewares&&s.middlewares.push(...o.options.search.middlewares);else if(o.options.preSearchFilters||o.options.postSearchFilters){const r=({search:a,next:i})=>{let c=a;"preSearchFilters"in o.options&&o.options.preSearchFilters&&(c=o.options.preSearchFilters.reduce((h,l)=>l(h),a));const u=i(c);return"postSearchFilters"in o.options&&o.options.postSearchFilters?o.options.postSearchFilters.reduce((h,l)=>l(h),u):u};s.middlewares.push(r)}if(o.options.validateSearch){const r=({search:a,next:i})=>{const c=i(a);if(!s._includeValidateSearch)return c;try{return{...c,...ut(o.options.validateSearch,c)??void 0}}catch{return c}};s.middlewares.push(r)}}const e=({search:o})=>{const r=s.dest;return r.search?r.search===!0?o:tt(r.search,o):{}};s.middlewares.push(e);const n=(o,r,a)=>{if(o>=a.length)return r;const i=a[o];return i({search:r,next:u=>n(o+1,u,a)})};return function(r,a,i){return s.dest=a,s._includeValidateSearch=i,n(0,r,s.middlewares)}}function fs(t,s){if(t!=="root")for(let e=s.length-1;e>=0;e--){const n=s[e];if(n.children)return n.id}return ht}function Yt(t,s){const e=t.options.params?.parse??t.options.parseParams;if(e){const n=e(s);if(n===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(s,n)}}function ps(){try{return sessionStorage}catch{return}}const gs="tsr-scroll-restoration-v1_3",fe=ps();function ms(){try{return JSON.parse(fe?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function ys(){try{fe?.setItem(gs,JSON.stringify($))}catch{}}const $=ms(),Gt="data-scroll-restoration-id",Rs=t=>t.state.__TSR_key||t.href;function ws(t){const s=t.getAttribute(Gt);if(s)return`[${Gt}="${s}"]`;let e="",n=t,o;for(;o=n.parentNode;){let r=1,a=n;for(;a=a.previousElementSibling;)r++;const i=`${n.localName}:nth-child(${r})`;e=e?`${i} > ${e}`:i,n=o}return e}let ct=!1;const H="window";function Ct(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function Xt(t){const s=[];for(const e of t){if(e===H)continue;const n=Ct(e);n&&s.push(n)}return s}function _s(t,s){if(t.options.scrollRestoration&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,ct=!1;const e=t.options.getScrollRestorationKey||Rs,n=new Map,o=(i,c,u)=>{const h=n.get(i)||{};h.scrollX=c,h.scrollY=u,n.set(i,h)};history.scrollRestoration="manual";const r=i=>{if(!(ct||!t.isScrollRestoring))if(i.target===document)o(H,scrollX,scrollY);else{const c=i.target;o(c,c.scrollLeft,c.scrollTop)}},a=i=>{if(!t.isScrollRestoring)return;const c=$[i]||={};for(const[u,h]of n)u===H?c[H]=h:u.isConnected&&(c[ws(u)]=h)};document.addEventListener("scroll",r,!0),t.subscribe("onBeforeLoad",i=>{i.fromLocation&&a(e(i.fromLocation)),n.clear()}),addEventListener("pagehide",()=>{a(e(t.stores.resolvedLocation.get()??t.stores.location.get())),ys()}),t.subscribe("onRendered",i=>{const c=t.options.scrollRestorationBehavior,u=t.options.scrollToTopSelectors,h=t.resetNextScroll;let l;if(n.clear(),h||(t.resetNextScroll=!0),typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const g=e(i.toLocation),f=i.fromLocation&&e(i.fromLocation);if(t.isScrollRestoring&&f&&f!==g){const m=$[f];if(m){let R=$[g];for(const d in m){if(d===H){if(h)continue}else{const p=Ct(d);if(!p||h&&u&&(l??=Xt(u),l.includes(p)))continue}R||(R=$[g]={}),R[d]??=m[d]}}}if(h){ct=!0;try{const m=i.toLocation.hash,R=i.toLocation.state.__hashScrollIntoViewOptions??!0,d=Mt.get(i.toLocation),p=m&&R&&(d==="PUSH"||d==="REPLACE"),y=t.isScrollRestoring?$[g]:void 0;let _=!1;if(y)for(const w in y){const{scrollX:S,scrollY:P}=y[w];if(w===H){if(p)continue;scrollTo({top:P,left:S,behavior:c}),_=!0}else{const v=Ct(w);v&&(v.scrollLeft=S,v.scrollTop=P)}}if(!_)if(m)R&&document.getElementById(m)?.scrollIntoView(R);else{const w={top:0,left:0,behavior:c};if(scrollTo(w),u){l??=Xt(u);for(const S of l)S.scrollTo(w)}}}finally{ct=!1}}})}const D=Symbol.for("TSR_DEFERRED_PROMISE");function Hs(t,s){const e=t;return e[D]||(e[D]={status:"pending"},e.then(n=>{e[D].status="success",e[D].data=n}).catch(n=>{e[D].status="error",e[D].error={data:as(n),__isServerError:!0}})),e}const Ws="Error preloading route! ☝️";function Vs(t,s){if(t)return typeof t=="string"?t:t[s]}function qs(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function vs(t){if(t.tag!=="link")return;const s=t.attrs?.rel,e=t.attrs?.href;if(typeof e=="string"&&(typeof s=="string"?s.split(/\s+/):[]).includes("stylesheet"))return e}function Ks(t,s){const e=vs(s);return!!e&&t?.inlineCss?.styles[e]!==void 0}var Ss=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=s=>{this.originalIndex=s.originalIndex;const e=this.options,n=!e?.path&&!e?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=ht:this.parentRoute||K();let o=n?ht:e?.path;o&&o!=="/"&&(o=re(o));const r=e?.id||o;let a=n?ht:lt([this.parentRoute.id==="__root__"?"":this.parentRoute.id,r]);o==="__root__"&&(o="/"),a!=="__root__"&&(a=lt(["/",a]));const i=a==="__root__"?"/":lt([this.parentRoute.fullPath,o]);this._path=o,this._id=a,this._fullPath=i,this._to=U(i)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>ae({from:this.fullPath,...s}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},Ys=class extends Ss{constructor(t){super(t)}};function Gs(t){return t}function Xs(t){return V({tag:"$TSR/t/"+t.key,test:t.test,parse:{sync(s,e,n){return{v:e.parse(t.toSerializable(s))}},async async(s,e,n){return{v:await e.parse(t.toSerializable(s))}},stream(s,e,n){return{v:e.parse(t.toSerializable(s))}}},serialize:void 0,deserialize(s,e,n){return t.fromSerializable(e.deserialize(s.v))}})}var Ps=class{constructor(t,s){this.stream=t,this.hint=s?.hint??"binary"}};const gt=globalThis.Buffer,pe=!!gt&&typeof gt.from=="function";function ge(t){if(t.length===0)return"";if(pe)return gt.from(t).toString("base64");const s=32768,e=[];for(let n=0;n<t.length;n+=s){const o=t.subarray(n,n+s);e.push(String.fromCharCode.apply(null,o))}return btoa(e.join(""))}function me(t){if(t.length===0)return new Uint8Array(0);if(pe){const n=gt.from(t,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}const s=atob(t),e=new Uint8Array(s.length);for(let n=0;n<s.length;n++)e[n]=s.charCodeAt(n);return e}const Z=Object.create(null),Q=Object.create(null),xs=t=>new ReadableStream({start(s){t.on({next(e){try{s.enqueue(me(e))}catch{}},throw(e){s.error(e)},return(){try{s.close()}catch{}}})}}),Ls=new TextEncoder,bs=t=>new ReadableStream({start(s){t.on({next(e){try{typeof e=="string"?s.enqueue(Ls.encode(e)):s.enqueue(me(e.$b64))}catch{}},throw(e){s.error(e)},return(){try{s.close()}catch{}}})}}),Ms="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",Cs="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function Jt(t){const s=It(),e=t.getReader();return(async()=>{try{for(;;){const{done:n,value:o}=await e.read();if(n){s.return(void 0);break}s.next(ge(o))}}catch(n){s.throw(n)}finally{e.releaseLock()}})(),s}function Zt(t){const s=It(),e=t.getReader(),n=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:o,value:r}=await e.read();if(o){try{const a=n.decode();a.length>0&&s.next(a)}catch{}s.return(void 0);break}try{const a=n.decode(r,{stream:!0});a.length>0&&s.next(a)}catch{s.next({$b64:ge(r)})}}}catch(o){s.throw(o)}finally{e.releaseLock()}})(),s}const Is=V({tag:"tss/RawStream",extends:[V({tag:"tss/RawStreamFactory",test(t){return t===Z},parse:{sync(t,s,e){return{}},async async(t,s,e){return{}},stream(t,s,e){return{}}},serialize(t,s,e){return Ms},deserialize(t,s,e){return Z}}),V({tag:"tss/RawStreamFactoryText",test(t){return t===Q},parse:{sync(t,s,e){return{}},async async(t,s,e){return{}},stream(t,s,e){return{}}},serialize(t,s,e){return Cs},deserialize(t,s,e){return Q}})],test(t){return t instanceof Ps},parse:{sync(t,s,e){const n=t.hint==="text"?Q:Z;return{hint:s.parse(t.hint),factory:s.parse(n),stream:s.parse(It())}},async async(t,s,e){const n=t.hint==="text"?Q:Z,o=t.hint==="text"?Zt(t.stream):Jt(t.stream);return{hint:await s.parse(t.hint),factory:await s.parse(n),stream:await s.parse(o)}},stream(t,s,e){const n=t.hint==="text"?Q:Z,o=t.hint==="text"?Zt(t.stream):Jt(t.stream);return{hint:s.parse(t.hint),factory:s.parse(n),stream:s.parse(o)}}},serialize(t,s,e){return"("+s.serialize(t.factory)+")("+s.serialize(t.stream)+")"},deserialize(t,s,e){const n=s.deserialize(t.stream);return s.deserialize(t.hint)==="text"?bs(n):xs(n)}});function Js(t){return V({tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(s,e,n){return t(typeof e?.deserialize=="function"?e.deserialize(s.streamId):s.streamId)}})}const Ts=V({tag:"$TSR/Error",test(t){return t instanceof Error},parse:{sync(t,s){return{message:s.parse(t.message)}},async async(t,s){return{message:await s.parse(t.message)}},stream(t,s){return{message:s.parse(t.message)}}},serialize(t,s){return"new Error("+s.serialize(t.message)+")"},deserialize(t,s){return new Error(s.deserialize(t.message))}}),Zs=[Ts,Is,Se];function Es(t){return t instanceof Headers?t:Array.isArray(t)?new Headers(t):typeof t=="object"?new Headers(t):null}function Qs(...t){return t.reduce((s,e)=>{const n=Es(e);if(!n)return s;for(const[o,r]of n.entries())o==="set-cookie"?Pe(r).forEach(a=>s.append("set-cookie",a)):s.set(o,r);return s},new Headers)}function Qt(t){return t.replaceAll("\0","/").replaceAll("�","/")}function ks(t,s){t.id=s.i,t.__beforeLoadContext=s.b,t.loaderData=s.l,t.status=s.s,t.ssr=s.ssr,t.updatedAt=s.u,t.error=s.e,s.g!==void 0&&(t.globalNotFound=s.g)}async function to(t){window.$_TSR||K();const s=t.options.serializationAdapters;if(s?.length){const d=new Map;s.forEach(p=>{d.set(p.key,p.fromSerializable)}),window.$_TSR.t=d,window.$_TSR.buffer.forEach(p=>p())}window.$_TSR.initialized=!0,window.$_TSR.router||K();const e=window.$_TSR.router;e.matches.forEach(d=>{d.i=Qt(d.i)}),e.lastMatchId&&(e.lastMatchId=Qt(e.lastMatchId));const{manifest:n,dehydratedData:o,lastMatchId:r}=e;t.ssr={manifest:n};const a=document.querySelector('meta[property="csp-nonce"]')?.content;t.options.ssr={nonce:a},await t.options.hydrate?.(o);const i=t.matchRoutes(t.stores.location.get()),c=Promise.all(i.map(d=>t.loadRouteChunk(t.looseRoutesById[d.routeId])));function u(d){const p=t.looseRoutesById[d.routeId].options.pendingMinMs??t.options.defaultPendingMinMs;if(p){const y=Y();d._nonReactive.minPendingPromise=y,d._forcePending=!0,setTimeout(()=>{y.resolve(),t.updateMatch(d.id,_=>(_._nonReactive.minPendingPromise=void 0,{..._,_forcePending:void 0}))},p)}}function h(d){const p=t.looseRoutesById[d.routeId];p&&(p.options.ssr=d.ssr)}let l;i.forEach(d=>{const p=e.matches.find(y=>y.i===d.id);if(!p){d._nonReactive.dehydrated=!1,d.ssr=!1,h(d);return}ks(d,p),h(d),d._nonReactive.dehydrated=d.ssr!==!1,(d.ssr==="data-only"||d.ssr===!1)&&l===void 0&&(l=d.index,u(d))}),t.stores.setMatches(i);const g=t.stores.matches.get(),f=t.stores.location.get();await Promise.all(g.map(async d=>{try{const p=t.looseRoutesById[d.routeId],y=g[d.index-1]?.context??t.options.context;if(p.options.context){const P={deps:d.loaderDeps,params:d.params,context:y??{},location:f,navigate:v=>t.navigate({...v,_fromLocation:f}),buildLocation:t.buildLocation,cause:d.cause,abortController:d.abortController,preload:!1,matches:i,routeId:p.id};d.__routeContext=p.options.context(P)??void 0}d.context={...y,...d.__routeContext,...d.__beforeLoadContext};const _={ssr:t.options.ssr,matches:g,match:d,params:d.params,loaderData:d.loaderData},w=await p.options.head?.(_),S=await p.options.scripts?.(_);d.meta=w?.meta,d.links=w?.links,d.headScripts=w?.scripts,d.styles=w?.styles,d.scripts=S}catch(p){if(T(p))d.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${d.routeId}`,p);else throw d.error=p,console.error(`Error during hydration for route ${d.routeId}:`,p),p}}));const m=i[i.length-1].id!==r;if(!i.some(d=>d.ssr===!1)&&!m)return i.forEach(d=>{d._nonReactive.dehydrated=void 0}),t.stores.resolvedLocation.set(t.stores.location.get()),c;const R=Promise.resolve().then(()=>t.load()).catch(d=>{console.error("Error during router hydration:",d)});if(m){const d=i[1];d||K(),u(d),d._displayPending=!0,d._nonReactive.displayPendingPromise=R,R.then(()=>{t.batch(()=>{t.stores.status.get()==="pending"&&(t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())),t.updateMatch(d.id,p=>({...p,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}function eo(t){return null}export{Ds as A,Ys as B,Ws as C,Ut as D,W as E,qs as F,ht as G,U as H,$s as R,D as T,Ss as a,Js as b,Y as c,Gs as d,q as e,Zs as f,Hs as g,qe as h,zs as i,Us as j,tt as k,Vs as l,Kt as m,eo as n,be as o,to as p,K as q,Nt as r,Ks as s,Ns as t,T as u,I as v,xe as w,Xs as x,Qs as y,js as z};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/update-password-C-d0ix5e.js","assets/vendor-react-gJPiVnX5.js","assets/vendor-tanstack-react-router-sIZLK-LU.js","assets/vendor-tanstack-router-core-Cr7bYUZv.js","assets/vendor-tanstack-history-C617CaxG.js","assets/vendor-seroval-B_Fur-nl.js","assets/vendor-seroval-plugins-CBHnPkZJ.js","assets/vendor-cookie-es-CS0aJGDi.js","assets/vendor-tanstack-react-store-EvTi3ahh.js","assets/vendor-use-sync-external-store-ZvKHXaIn.js","assets/vendor-react-dom-BnNs-kzm.js","assets/vendor-scheduler-7OC5HNn7.js","assets/vendor-tanstack-store-BC7mA7pq.js","assets/vendor-sonner-71-LdGG1.js","assets/vendor-lucide-react-b5K2fehp.js","assets/vendor-supabase-supabase-js-DCCzdwBJ.js","assets/vendor-supabase-postgrest-js-C4rBWbCx.js","assets/vendor-supabase-realtime-js-D6BlOYKE.js","assets/vendor-supabase-phoenix-BzEf37Ve.js","assets/vendor-supabase-storage-js-BG98L3Zz.js","assets/vendor-iceberg-js-tWD4K6Lg.js","assets/vendor-supabase-auth-js-DWrN-bIx.js","assets/vendor-tslib-Du-meQkk.js","assets/vendor-supabase-functions-js-uY_V-TxC.js","assets/vendor-tanstack-react-query-HImzo8sX.js","assets/vendor-tanstack-query-core-7wuJJ5ZL.js","assets/vendor-vercel-analytics-DwPM5BWs.js","assets/vendor-radix-ui-react-dropdown-menu-0uzvrqkn.js","assets/vendor-radix-ui-primitive-Dc_FVRD7.js","assets/vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js","assets/vendor-radix-ui-react-context-CAqqn5Nx.js","assets/vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js","assets/vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js","assets/vendor-radix-ui-react-primitive-zTHwXNoz.js","assets/vendor-radix-ui-react-menu-D0qf2r6_.js","assets/vendor-radix-ui-react-collection-D9KtqmHm.js","assets/vendor-radix-ui-react-direction-DxZwNuei.js","assets/vendor-radix-ui-react-dismissable-layer-Dqgrs55Y.js","assets/vendor-radix-ui-react-use-callback-ref-E91aPc6s.js","assets/vendor-radix-ui-react-use-escape-keydown-7n3YsXFo.js","assets/vendor-radix-ui-react-focus-guards-DgWoZ-fP.js","assets/vendor-radix-ui-react-focus-scope-BLIu5QaL.js","assets/vendor-radix-ui-react-popper-BafIylxU.js","assets/vendor-floating-ui-react-dom-Bas3975S.js","assets/vendor-floating-ui-dom-BxK0hn2R.js","assets/vendor-floating-ui-core-BlUy28sp.js","assets/vendor-floating-ui-utils-BfYUAVcw.js","assets/vendor-radix-ui-react-arrow-DMHj2mKI.js","assets/vendor-radix-ui-react-use-size-CXS04sct.js","assets/vendor-radix-ui-react-portal-BnAsfNCS.js","assets/vendor-radix-ui-react-presence-C-f3UKQ2.js","assets/vendor-radix-ui-react-roving-focus-jyJB8K2E.js","assets/vendor-radix-ui-react-id-bpga_rLa.js","assets/vendor-aria-hidden-DvXkyWUv.js","assets/vendor-react-remove-scroll-DHKl-IMP.js","assets/vendor-react-remove-scroll-bar-CSjdInc2.js","assets/vendor-react-style-singleton-BqHpkgXn.js","assets/vendor-get-nonce-C-Z93AgS.js","assets/vendor-use-sidecar-Bh0DDN6h.js","assets/vendor-use-callback-ref-C_fIAtot.js","assets/vendor-clsx-B-dksMZM.js","assets/vendor-tailwind-merge-Ct12j0u0.js","assets/vendor-radix-ui-react-avatar-CVPBkFXg.js","assets/vendor-radix-ui-react-slot-6LXHJrHl.js","assets/vendor-radix-ui-react-use-is-hydrated-C1PY1qNv.js","assets/vendor-class-variance-authority-5VPnzWs2.js","assets/vendor-radix-ui-react-dialog-DZ01vOLq.js","assets/vendor-framer-motion-BMdL-cuX.js","assets/vendor-motion-dom-BETJamZt.js","assets/vendor-motion-utils-BuWewJbj.js","assets/vendor-zod-By9teAtI.js","assets/terms-VqJ9kX9b.js","assets/signup-CEx90iuV.js","assets/index-vRX-zAyq.js","assets/vendor-lovable.dev-cloud-auth-js-VuzqtJVg.js","assets/search-CXWfET1y.js","assets/products.functions-cGzRziKO.js","assets/ProductCard-DbIkJAE-.js","assets/product-links-BkZ41Gv3.js","assets/saved-CHtdQDJF.js","assets/reset-password-ySEjItX_.js","assets/profile-CveRcKq2.js","assets/privacy-B_Pu7040.js","assets/login-DteE0ZGp.js","assets/faq-BsiHWPM8.js","assets/vendor-radix-ui-react-accordion-C22Rgxe9.js","assets/vendor-radix-ui-react-collapsible-BvM-4sKX.js","assets/contact-PhvO-V15.js","assets/categories-D0N418mK.js","assets/affiliate-disclosure-BIAsA-HO.js","assets/admin-BZVcAQM3.js","assets/index-BpJWZkva.js","assets/vendor-tanstack-react-start-client-GiYCfWmf.js","assets/admin.functions--RdVcuBx.js","assets/about-AskxOruL.js","assets/index-BU9rnkF3.js","assets/product._id-BVUysCW-.js","assets/category._slug-aCaQm14E.js","assets/admin.login-QgrF_9Fp.js"])))=>i.map(i=>d[i]);
2
+ import{f as He,x as Je,h as Ge,q as K,b as Xe,A as de,u as Ye,d as Qe,y as Ke,v as We,p as Ze}from"./vendor-tanstack-router-core-Cr7bYUZv.js";import{u as W,I as et}from"./vendor-seroval-B_Fur-nl.js";import{c as tt}from"./vendor-supabase-supabase-js-DCCzdwBJ.js";import{L as N,e as at,a as st,d as me,O as rt,H as ot,S as nt,c as b,l as v,b as it}from"./vendor-tanstack-react-router-sIZLK-LU.js";import{j as e,r as p}from"./vendor-react-gJPiVnX5.js";import{a as lt,Q as ct,b as dt}from"./vendor-tanstack-react-query-HImzo8sX.js";import{A as mt}from"./vendor-vercel-analytics-DwPM5BWs.js";import{c as ut,T as pt,P as ft,a as ue,L as pe,S as fe,I as he,e as ge,d as xe,C as ye,b as we,R as be}from"./vendor-radix-ui-react-dropdown-menu-0uzvrqkn.js";import{c as ht}from"./vendor-clsx-B-dksMZM.js";import{t as gt}from"./vendor-tailwind-merge-Ct12j0u0.js";import{d as xt,a as yt,e as wt,S as bt,H as z,b as vt,U as jt,t as St,n as _t,x as ve,X as je,o as Nt,f as Rt,E as Pt,m as Ct,W as Et,L as kt}from"./vendor-lucide-react-b5K2fehp.js";import{R as Se,I as _e,F as Ne}from"./vendor-radix-ui-react-avatar-CVPBkFXg.js";import{S as It}from"./vendor-radix-ui-react-slot-6LXHJrHl.js";import{c as $t}from"./vendor-class-variance-authority-5VPnzWs2.js";import{R as At,P as Ot,a as Re,C as Tt,T as Pe,O as Ce,D as Ee}from"./vendor-radix-ui-react-dialog-DZ01vOLq.js";import{m as D,A as Ft}from"./vendor-framer-motion-BMdL-cuX.js";import{T as Dt}from"./vendor-sonner-71-LdGG1.js";import{o as Mt,s as Lt}from"./vendor-zod-By9teAtI.js";import{Q as zt}from"./vendor-tanstack-query-core-7wuJJ5ZL.js";var Vt="__TSS_CONTEXT",V=Symbol.for("TSS_SERVER_FUNCTION"),Z=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),Ut="application/x-tss-framed",P={JSON:0,CHUNK:1,END:2,ERROR:3},Bt=/;\s*v=(\d+)/;function qt(t){const a=t.match(Bt);return a?parseInt(a[1],10):void 0}function Ht(t){const a=qt(t);if(a!==void 0&&a!==1)throw new Error(`Incompatible framed protocol version: server=${a}, client=1. Please ensure client and server are using compatible versions.`)}var Y=()=>window.__TSS_START_OPTIONS__;function Jt(){return[...Y()?.serializationAdapters?.map(Je)??[],...He]}var ee=new TextDecoder,Gt=new Uint8Array(0),te=16*1024*1024,ae=32*1024*1024,se=1024,re=1e5;function Xt(t){const a=new Map,s=new Map,r=new Set;let l=!1,n=null,o=0,c;const i=new ReadableStream({start(d){c=d},cancel(){l=!0;try{n?.cancel()}catch{}a.forEach(d=>{try{d.error(new Error("Framed response cancelled"))}catch{}}),a.clear(),s.clear(),r.clear()}});function m(d){const f=s.get(d);if(f)return f;if(r.has(d))return new ReadableStream({start(k){k.close()}});if(s.size>=se)throw new Error(`Too many raw streams in framed response (max ${se})`);const g=new ReadableStream({start(k){a.set(d,k)},cancel(){r.add(d),a.delete(d),s.delete(d)}});return s.set(d,g),g}function u(d){return m(d),a.get(d)}return(async()=>{const d=t.getReader();n=d;const f=[];let g=0;function k(){if(g<9)return null;const h=f[0];if(h.length>=9)return{type:h[0],streamId:(h[1]<<24|h[2]<<16|h[3]<<8|h[4])>>>0,length:(h[5]<<24|h[6]<<16|h[7]<<8|h[8])>>>0};const x=new Uint8Array(9);let C=0,_=9;for(let w=0;w<f.length&&_>0;w++){const R=f[w],A=Math.min(R.length,_);x.set(R.subarray(0,A),C),C+=A,_-=A}return{type:x[0],streamId:(x[1]<<24|x[2]<<16|x[3]<<8|x[4])>>>0,length:(x[5]<<24|x[6]<<16|x[7]<<8|x[8])>>>0}}function Q(h){if(h===0)return Gt;const x=new Uint8Array(h);let C=0,_=h;for(;_>0&&f.length>0;){const w=f[0];if(!w)break;const R=Math.min(w.length,_);x.set(w.subarray(0,R),C),C+=R,_-=R,R===w.length?f.shift():f[0]=w.subarray(R)}return g-=h,x}try{for(;;){const{done:h,value:x}=await d.read();if(l||h)break;if(x){if(g+x.length>ae)throw new Error(`Framed response buffer exceeded ${ae} bytes`);for(f.push(x),g+=x.length;;){const C=k();if(!C)break;const{type:_,streamId:w,length:R}=C;if(_!==P.JSON&&_!==P.CHUNK&&_!==P.END&&_!==P.ERROR)throw new Error(`Unknown frame type: ${_}`);if(_===P.JSON){if(w!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(w===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(R>te)throw new Error(`Frame payload too large: ${R} bytes (max ${te})`);const A=9+R;if(g<A)break;if(++o>re)throw new Error(`Too many frames in framed response (max ${re})`);Q(9);const F=Q(R);switch(_){case P.JSON:try{c.enqueue(ee.decode(F))}catch{}break;case P.CHUNK:{const E=u(w);E&&E.enqueue(F);break}case P.END:{const E=u(w);if(r.add(w),E){try{E.close()}catch{}a.delete(w)}break}case P.ERROR:{const E=u(w);if(r.add(w),E){const qe=ee.decode(F);E.error(new Error(qe)),a.delete(w)}break}}}}}if(g!==0)throw new Error("Incomplete frame at end of framed response");try{c.close()}catch{}a.forEach(h=>{try{h.close()}catch{}}),a.clear()}catch(h){try{c.error(h)}catch{}a.forEach(x=>{try{x.error(h)}catch{}}),a.clear()}finally{try{d.releaseLock()}catch{}n=null}})(),{getOrCreateStream:m,jsonChunks:i}}var T=null;async function U(t){t.length>0&&await Promise.allSettled(t)}var Yt=Object.prototype.hasOwnProperty;function ke(t){for(const a in t)if(Yt.call(t,a))return!0;return!1}async function Qt(t,a,s){T||(T=Jt());const r=a[0],l=r.fetch??s,n=r.data instanceof FormData?"formData":"payload",o=r.headers?new Headers(r.headers):new Headers;if(o.set("x-tsr-serverFn","true"),n==="payload"&&o.set("accept",`${Ut}, application/x-ndjson, application/json`),r.method==="GET"){if(n==="formData")throw new Error("FormData is not supported with GET requests");const i=await Ie(r);if(i!==void 0){const m=Ge({payload:i});t.includes("?")?t+=`&${m}`:t+=`?${m}`}}let c;if(r.method==="POST"){const i=await Kt(r);i?.contentType&&o.set("content-type",i.contentType),c=i?.body}return await Wt(async()=>l(t,{method:r.method,headers:o,signal:r.signal,body:c}))}async function Ie(t){let a=!1;const s={};if(t.data!==void 0&&(a=!0,s.data=t.data),t.context&&ke(t.context)&&(a=!0,s.context=t.context),a)return $e(s)}async function $e(t){return JSON.stringify(await Promise.resolve(et(t,{plugins:T})))}async function Kt(t){if(t.data instanceof FormData){let s;return t.context&&ke(t.context)&&(s=await $e(t.context)),s!==void 0&&t.data.set(Vt,s),{body:t.data}}const a=await Ie(t);if(a)return{body:a,contentType:"application/json"}}async function Wt(t){let a;try{a=await t()}catch(r){if(r instanceof Response)a=r;else throw console.log(r),r}if(a.headers.get("x-tss-raw")==="true")return a;const s=a.headers.get("content-type");if(s||K(),a.headers.get("x-tss-serialized")){let r;if(s.includes("application/x-tss-framed")){if(Ht(s),!a.body)throw new Error("No response body for framed response");const{getOrCreateStream:l,jsonChunks:n}=Xt(a.body),o=[Xe(l),...T||[]],c=new Map;r=await Zt({jsonStream:n,onMessage:i=>W(i,{refs:c,plugins:o}),onError(i,m){console.error(i,m)}})}else if(s.includes("application/json")){const l=await a.json(),n=[];r=W(l,{plugins:T}),await U(n)}if(r||K(),r instanceof Error)throw r;return r}if(s.includes("application/json")){const r=await a.json(),l=de(r);if(l)throw l;if(Ye(r))throw r;return r}if(!a.ok)throw new Error(await a.text());return a}async function Zt({jsonStream:t,onMessage:a,onError:s}){const r=t.getReader(),{value:l,done:n}=await r.read();if(n||!l)throw new Error("Stream ended before first object");const o=JSON.parse(l);let c=!1;const i=(async()=>{try{for(;;){const{value:d,done:f}=await r.read();if(f)break;if(d)try{const g=[];try{a(JSON.parse(d))}finally{}await U(g)}catch(g){s?.(`Invalid JSON: ${d}`,g)}}}catch(d){c||s?.("Stream processing error:",d)}})();let m;const u=[];try{m=a(o)}catch(d){throw c=!0,r.cancel().catch(()=>{}),d}return await U(u),Promise.resolve(m).catch(()=>{c=!0,r.cancel().catch(()=>{})}),i.finally(()=>{try{r.releaseLock()}catch{}}),m}function ea(t){const a="/_serverFn/"+t;return Object.assign((...l)=>{const n=Y()?.serverFns?.fetch;return Qt(a,l,n??fetch)},{url:a,serverFnMeta:{id:t},[V]:!0})}var ta=Qe({key:"$TSS/serverfn",test:t=>typeof t!="function"||!(V in t)?!1:!!t[V],toSerializable:({serverFnMeta:t})=>({functionId:t.id}),fromSerializable:({functionId:t})=>ea(t)});function oe(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}function B(t,a){const s=Object.create(null);if(t)for(const r of Object.keys(t))oe(r)&&(s[r]=t[r]);if(a&&typeof a=="object")for(const r of Object.keys(a))oe(r)&&(s[r]=a[r]);return s}function Ae(t){return Object.create(null)}var Oe=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},M=(t,a)=>{const s=a||t||{};return typeof s.method>"u"&&(s.method="GET"),Object.assign(n=>M(void 0,{...s,...n}),{options:s,middleware:n=>{const o=[...s.middleware||[]];n.map(i=>{Z in i?i.options.middleware&&o.push(...i.options.middleware):o.push(i)});const c=M(void 0,{...s,middleware:o});return c[Z]=!0,c},inputValidator:n=>M(void 0,{...s,inputValidator:n}),handler:(...n)=>{const[o,c]=n,i={...s,extractedFn:o,serverFn:c},m=[...i.middleware||[],ra(i)];return o.method=s.method,Object.assign(async u=>{const d=await ne(m,"client",{...o,...i,data:u?.data,headers:u?.headers,signal:u?.signal,fetch:u?.fetch,context:Ae()}),f=de(d.error);if(f)throw f;if(d.error)throw d.error;return d.result},{...o,method:s.method,__executeServer:async u=>{const d=Oe(),f=d.contextAfterGlobalMiddlewares;return await ne(m,"server",{...o,...u,serverFnMeta:o.serverFnMeta,context:B(u.context,f),request:d.request}).then(g=>({result:g.result,error:g.error,context:g.sendContext}))}})}})};async function ne(t,a,s){let r=aa([...Y()?.functionMiddleware||[],...t]);if(a==="server"){const n=Oe();n?.executedRequestMiddlewares&&(r=r.filter(o=>!n.executedRequestMiddlewares.has(o)))}const l=async n=>{const o=r.shift();if(!o)return n;try{"inputValidator"in o.options&&o.options.inputValidator&&a==="server"&&(n.data=await sa(o.options.inputValidator,n.data));let c;if(a==="client"?"client"in o.options&&(c=o.options.client):"server"in o.options&&(c=o.options.server),c){const m=await c({...n,next:async(u={})=>{const d=await l({...n,...u,context:B(n.context,u.context),sendContext:B(n.sendContext,u.sendContext),headers:Ke(n.headers,u.headers),_callSiteFetch:n._callSiteFetch,fetch:n._callSiteFetch??u.fetch??n.fetch,result:u.result!==void 0?u.result:u instanceof Response?u:n.result,error:u.error??n.error});if(d.error)throw d.error;return d}});if(We(m))return{...n,error:m};if(m instanceof Response)return{...n,result:m};if(!m)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return m}return l(n)}catch(c){return{...n,error:c}}};return l({...s,headers:s.headers||{},sendContext:s.sendContext||{},context:s.context||Ae(),_callSiteFetch:s.fetch})}function aa(t,a=100){const s=new Set,r=[],l=(n,o)=>{if(o>a)throw new Error(`Middleware nesting depth exceeded maximum of ${a}. Check for circular references.`);n.forEach(c=>{c.options.middleware&&l(c.options.middleware,o+1),s.has(c)||(s.add(c),r.push(c))})};return l(t,0),r}async function sa(t,a){if(t==null)return{};if("~standard"in t){const s=await t["~standard"].validate(a);if(s.issues)throw new Error(JSON.stringify(s.issues,void 0,2));return s.value}if("parse"in t)return t.parse(a);if(typeof t=="function")return t(a);throw new Error("Invalid validator type!")}function ra(t){return{"~types":void 0,options:{inputValidator:t.inputValidator,client:async({next:a,sendContext:s,fetch:r,...l})=>{const n={...l,context:s,fetch:r};return a(await t.extractedFn?.(n))},server:async({next:a,...s})=>{const r=await t.serverFn?.(s);return a({...s,result:r})}}}}var I=(t,a)=>{const s={type:"request",...a||t};return{options:s,middleware:r=>I({},Object.assign(s,{middleware:r})),inputValidator:r=>I({},Object.assign(s,{inputValidator:r})),client:r=>I({},Object.assign(s,{client:r})),server:r=>I({},Object.assign(s,{server:r}))}};function Te(t,a){for(let s=0,r=a.length;s<r;s++){const l=a[s];t.has(l)||(t.add(l),l.extends&&Te(t,l.extends))}}var oa=t=>({getOptions:async()=>{const a=await t();if(a.serializationAdapters){const s=new Set;Te(s,a.serializationAdapters),a.serializationAdapters=Array.from(s)}return a},createMiddleware:I});function na(){return tt("https://nzjcdmvweufrawyphzzy.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im56amNkbXZ3ZXVmcmF3eXBoenp5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkzMTE1NjQsImV4cCI6MjA5NDg4NzU2NH0.HSGmMtYJTCFBcS17l6RsFxrgtOZdxpzL6_5v5vI9TOo",{auth:{storage:typeof window<"u"?localStorage:void 0,persistSession:!0,autoRefreshToken:!0}})}let L;const $=new Proxy({},{get(t,a,s){return L||(L=na()),Reflect.get(L,a,s)}}),ia=I({type:"function"}).client(async({next:t})=>{const{data:a}=await $.auth.getSession(),s=a.session?.access_token;return t({headers:s?{Authorization:`Bearer ${s}`}:{}})}),la=I(),ie=oa(()=>({requestMiddleware:[la],functionMiddleware:[ia]})),ca="/assets/styles-DrNJG0BO.css",da="/assets/logo-pSNfLJQk.png";function Fe({size:t=32,withWordmark:a=!0}){return e.jsxs(N,{to:"/",className:"flex items-center gap-2 group",children:[e.jsx("img",{src:da,alt:"Scrollsy logo",width:t,height:t,className:"drop-shadow-[0_0_12px_rgba(232,67,147,0.45)] transition-transform group-hover:rotate-[-8deg]",style:{width:t,height:t}}),a&&e.jsx("span",{className:"font-display font-bold text-xl tracking-tight",children:e.jsx("span",{className:"text-gradient",children:"Scrollsy"})})]})}function ma(){const[t,a]=p.useState(null),[s,r]=p.useState(null),[l,n]=p.useState(!0);return p.useEffect(()=>{const{data:{subscription:o}}=$.auth.onAuthStateChange((c,i)=>{a(i),r(i?.user??null)});return $.auth.getSession().then(({data:c})=>{a(c.session),r(c.session?.user??null),n(!1)}),()=>o.unsubscribe()},[]),{session:t,user:s,loading:l}}function S(...t){return gt(ht(t))}const ua=ut,pa=pt,fa=p.forwardRef(({className:t,inset:a,children:s,...r},l)=>e.jsxs(ge,{ref:l,className:S("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",t),...r,children:[s,e.jsx(xt,{className:"ml-auto"})]}));fa.displayName=ge.displayName;const ha=p.forwardRef(({className:t,...a},s)=>e.jsx(xe,{ref:s,className:S("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)",t),...a}));ha.displayName=xe.displayName;const De=p.forwardRef(({className:t,sideOffset:a=4,...s},r)=>e.jsx(ft,{children:e.jsx(ue,{ref:r,sideOffset:a,className:S("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)",t),...s})}));De.displayName=ue.displayName;const O=p.forwardRef(({className:t,inset:a,...s},r)=>e.jsx(he,{ref:r,className:S("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",a&&"pl-8",t),...s}));O.displayName=he.displayName;const ga=p.forwardRef(({className:t,children:a,checked:s,...r},l)=>e.jsxs(ye,{ref:l,className:S("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:s,...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(we,{children:e.jsx(yt,{className:"h-4 w-4"})})}),a]}));ga.displayName=ye.displayName;const xa=p.forwardRef(({className:t,children:a,...s},r)=>e.jsxs(be,{ref:r,className:S("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(we,{children:e.jsx(wt,{className:"h-2 w-2 fill-current"})})}),a]}));xa.displayName=be.displayName;const Me=p.forwardRef(({className:t,inset:a,...s},r)=>e.jsx(pe,{ref:r,className:S("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",t),...s}));Me.displayName=pe.displayName;const q=p.forwardRef(({className:t,...a},s)=>e.jsx(fe,{ref:s,className:S("-mx-1 my-1 h-px bg-muted",t),...a}));q.displayName=fe.displayName;const H=p.forwardRef(({className:t,...a},s)=>e.jsx(Se,{ref:s,className:S("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));H.displayName=Se.displayName;const J=p.forwardRef(({className:t,...a},s)=>e.jsx(_e,{ref:s,className:S("aspect-square h-full w-full",t),...a}));J.displayName=_e.displayName;const G=p.forwardRef(({className:t,...a},s)=>e.jsx(Ne,{ref:s,className:S("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));G.displayName=Ne.displayName;const le=[{to:"/",label:"Discover"},{to:"/categories",label:"Categories"},{to:"/search",label:"Search"}];function ya(){const{user:t}=ma(),a=at({select:o=>o.location.pathname}),[s,r]=p.useState(!1),{data:l}=lt({queryKey:["nav-profile",t?.id],enabled:!!t,queryFn:async()=>{const{data:o}=await $.from("profiles").select("display_name, avatar_url").eq("id",t.id).maybeSingle();return o??null}}),n=l?.display_name?.slice(0,1)?.toUpperCase()??t?.email?.slice(0,1)?.toUpperCase()??"U";return e.jsxs("header",{className:"sticky top-0 z-50 px-3 pt-3",children:[e.jsxs("nav",{className:"glass-strong rounded-2xl px-4 md:px-6 h-14 flex items-center justify-between max-w-7xl mx-auto shadow-card",children:[e.jsxs("div",{className:"flex items-center gap-8",children:[e.jsx(Fe,{}),e.jsx("div",{className:"hidden md:flex items-center gap-1",children:le.map(o=>e.jsx(N,{to:o.to,className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${a===o.to?"text-foreground bg-white/5":"text-muted-foreground hover:text-foreground hover:bg-white/5"}`,children:o.label},o.to))})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(N,{to:"/search",search:{q:""},className:"hidden sm:flex items-center gap-2 glass rounded-full px-3 py-1.5 text-sm text-muted-foreground hover:text-foreground transition w-56",children:[e.jsx(bt,{className:"w-4 h-4"}),e.jsx("span",{children:"Search trending finds…"})]}),t?e.jsxs(e.Fragment,{children:[e.jsx(N,{to:"/saved",className:"hidden sm:inline-flex p-2 rounded-full hover:bg-white/5 transition","aria-label":"Saved",children:e.jsx(z,{className:"w-5 h-5"})}),e.jsxs(ua,{children:[e.jsx(pa,{asChild:!0,children:e.jsxs("button",{className:"flex items-center gap-2 rounded-full p-1.5 pr-2.5 hover:bg-white/5 transition","aria-label":"Open profile menu",children:[e.jsxs(H,{className:"h-9 w-9 border border-white/10",children:[e.jsx(J,{src:l?.avatar_url??void 0,alt:l?.display_name??"Profile"}),e.jsx(G,{className:"bg-brand-magenta/20 text-sm font-semibold text-foreground",children:n})]}),e.jsx(vt,{className:"hidden sm:block w-4 h-4 text-muted-foreground"})]})}),e.jsxs(De,{align:"end",className:"w-64",children:[e.jsx(Me,{children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(H,{className:"h-10 w-10 border border-white/10",children:[e.jsx(J,{src:l?.avatar_url??void 0,alt:l?.display_name??"Profile"}),e.jsx(G,{className:"bg-brand-magenta/20 text-sm font-semibold text-foreground",children:n})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-sm font-semibold",children:l?.display_name||"Your account"}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:t.email})]})]})}),e.jsx(q,{}),e.jsx(O,{asChild:!0,children:e.jsxs(N,{to:"/profile",className:"flex w-full items-center gap-2",children:[e.jsx(jt,{className:"w-4 h-4"}),"Profile"]})}),e.jsx(O,{asChild:!0,children:e.jsxs(N,{to:"/saved",className:"flex w-full items-center gap-2",children:[e.jsx(z,{className:"w-4 h-4"}),"Saved items"]})}),e.jsx(O,{asChild:!0,children:e.jsxs(N,{to:"/admin",className:"flex w-full items-center gap-2",children:[e.jsx(St,{className:"w-4 h-4"}),"Admin page"]})}),e.jsx(q,{}),e.jsxs(O,{className:"flex items-center gap-2 text-destructive focus:text-destructive",onSelect:()=>{$.auth.signOut()},children:[e.jsx(_t,{className:"w-4 h-4"}),"Sign out"]})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(N,{to:"/login",className:"hidden sm:inline-flex px-3 py-1.5 text-sm rounded-lg hover:bg-white/5 transition",children:"Log in"}),e.jsxs(N,{to:"/signup",className:"btn-glow rounded-full px-4 py-1.5 text-sm font-semibold inline-flex items-center gap-1.5",children:[e.jsx(ve,{className:"w-3.5 h-3.5"})," Join free"]})]}),e.jsx("button",{className:"md:hidden p-2 rounded-lg hover:bg-white/5",onClick:()=>r(!s),"aria-label":"Menu",children:s?e.jsx(je,{className:"w-5 h-5"}):e.jsx(Nt,{className:"w-5 h-5"})})]})]}),s&&e.jsxs("div",{className:"md:hidden glass-strong rounded-2xl mt-2 max-w-7xl mx-auto p-3 animate-fade-up",children:[le.map(o=>e.jsx(N,{to:o.to,onClick:()=>r(!1),className:"block px-3 py-2 rounded-lg text-sm hover:bg-white/5",children:o.label},o.to)),t?e.jsxs("div",{className:"mt-2 border-t border-white/10 pt-2 space-y-1",children:[e.jsx(N,{to:"/profile",onClick:()=>r(!1),className:"block px-3 py-2 rounded-lg text-sm hover:bg-white/5",children:"Profile"}),e.jsx(N,{to:"/saved",onClick:()=>r(!1),className:"block px-3 py-2 rounded-lg text-sm hover:bg-white/5",children:"Saved items"}),e.jsx(N,{to:"/admin",onClick:()=>r(!1),className:"block px-3 py-2 rounded-lg text-sm hover:bg-white/5",children:"Admin page"}),e.jsx("button",{onClick:async()=>{r(!1),await $.auth.signOut()},className:"w-full text-left px-3 py-2 rounded-lg text-sm text-destructive hover:bg-white/5",children:"Sign out"})]}):null]})]})}const wa=[{title:"Discover",links:[{to:"/",label:"Home"},{to:"/categories",label:"Categories"},{to:"/search",label:"Search"},{to:"/saved",label:"Saved"}]},{title:"Company",links:[{to:"/about",label:"About"},{to:"/contact",label:"Contact"},{to:"/faq",label:"FAQ"}]},{title:"Legal",links:[{to:"/privacy",label:"Privacy"},{to:"/terms",label:"Terms"},{to:"/affiliate-disclosure",label:"Affiliate Disclosure"}]}];function ba(){return e.jsxs("footer",{className:"mt-24 border-t border-white/5 px-4",children:[e.jsxs("div",{className:"max-w-7xl mx-auto py-14 grid grid-cols-2 md:grid-cols-4 gap-10",children:[e.jsxs("div",{className:"col-span-2 md:col-span-1",children:[e.jsx(Fe,{}),e.jsx("p",{className:"text-sm text-muted-foreground mt-4 max-w-xs",children:"Scroll. Discover. Save. The visual marketplace of the internet's hidden gems."})]}),wa.map(t=>e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-semibold mb-3",children:t.title}),e.jsx("ul",{className:"space-y-2",children:t.links.map(a=>e.jsx("li",{children:e.jsx(N,{to:a.to,className:"text-sm text-muted-foreground hover:text-foreground transition",children:a.label})},a.to))})]},t.title))]}),e.jsxs("div",{className:"max-w-7xl mx-auto pb-8 text-xs text-muted-foreground flex flex-wrap justify-between gap-3",children:[e.jsxs("span",{children:["© ",new Date().getFullYear()," Scrollsy. All rights reserved."]}),e.jsx("span",{className:"opacity-80",children:"Scrollsy may earn commissions from purchases made through affiliate links."})]})]})}const va=$t("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),X=p.forwardRef(({className:t,variant:a,size:s,asChild:r=!1,...l},n)=>{const o=r?It:"button";return e.jsx(o,{className:S(va({variant:a,size:s,className:t})),ref:n,...l})});X.displayName="Button";const ja=At,Sa=Ot,Le=p.forwardRef(({className:t,...a},s)=>e.jsx(Ce,{ref:s,className:S("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));Le.displayName=Ce.displayName;const ze=p.forwardRef(({className:t,children:a,...s},r)=>e.jsxs(Sa,{children:[e.jsx(Le,{}),e.jsxs(Re,{ref:r,className:S("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",t),...s,children:[a,e.jsxs(Tt,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(je,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ze.displayName=Re.displayName;const Ve=({className:t,...a})=>e.jsx("div",{className:S("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});Ve.displayName="DialogHeader";const Ue=p.forwardRef(({className:t,...a},s)=>e.jsx(Pe,{ref:s,className:S("text-lg font-semibold leading-none tracking-tight",t),...a}));Ue.displayName=Pe.displayName;const _a=p.forwardRef(({className:t,...a},s)=>e.jsx(Ee,{ref:s,className:S("text-sm text-muted-foreground",t),...a}));_a.displayName=Ee.displayName;const Na=[{id:"binance",name:"Binance Pay",logo:"🟡",detailLabel:"Binance Pay ID",detail:"scrollsy-support",href:"https://pay.binance.com/",tone:"from-[#f3ba2f]/30 via-[#f3ba2f]/10 to-white/5"},{id:"googlepay",name:"Google Pay",logo:"G",detailLabel:"Google Pay",detail:"scrollsy.support@googlepay",href:"https://pay.google.com/",tone:"from-[#67e8f9]/30 via-[#00d4ff]/10 to-white/5"},{id:"paypal",name:"PayPal",logo:"P",detailLabel:"PayPal",detail:"paypal.me/scrollsydev",href:"https://paypal.me/",tone:"from-[#8b5cf6]/30 via-[#ff3cac]/10 to-white/5"},{id:"mpesa",name:"M-Pesa",logo:"M",detailLabel:"Pay number",detail:"+254 700 000 000",tone:"from-[#10b981]/30 via-[#67e8f9]/10 to-white/5"}];function Ra(){const[t,a]=p.useState(!1),[s,r]=p.useState(null),[l,n]=p.useState(!1),o=p.useMemo(()=>Array.from({length:12},(i,m)=>m),[]);p.useEffect(()=>{const i=window.setInterval(()=>n(m=>!m),2600);return()=>window.clearInterval(i)},[]);const c=async i=>{await navigator.clipboard.writeText(i.detail),r(i.id),window.setTimeout(()=>r(m=>m===i.id?null:m),1500)};return e.jsxs(e.Fragment,{children:[e.jsxs(D.button,{type:"button",onClick:()=>a(!0),className:"fixed bottom-4 right-4 z-[60] group rounded-full bg-black/70 backdrop-blur-xl border border-white/10 shadow-[0_0_40px_rgba(0,212,255,0.24)] px-4 py-3 text-sm font-semibold inline-flex items-center gap-2 overflow-hidden",whileHover:{scale:1.04,y:-2},whileTap:{scale:.97},"aria-label":"Support the Project",children:[e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-[#8b5cf6]/30 via-[#00d4ff]/20 to-[#ff3cac]/30 opacity-60 group-hover:opacity-100 transition-opacity"}),e.jsxs("span",{className:"relative inline-flex items-center gap-2",children:[e.jsx(z,{className:"w-4 h-4 text-[#67e8f9]"}),e.jsx("span",{className:"hidden sm:inline",children:"Support the Project ❤️"}),e.jsx("span",{className:"sm:hidden",children:"Support"})]})]}),e.jsx(Ft,{children:t&&e.jsx(ja,{open:t,onOpenChange:a,children:e.jsxs(ze,{className:"max-w-5xl bg-[#050816]/95 border-white/10 text-white overflow-hidden",children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top_left,_rgba(139,92,246,0.25),_transparent_35%),radial-gradient(circle_at_top_right,_rgba(0,212,255,0.18),_transparent_28%),radial-gradient(circle_at_bottom,_rgba(255,60,172,0.15),_transparent_36%)]"}),e.jsx("div",{className:"pointer-events-none absolute inset-0",children:o.map(i=>e.jsx(D.span,{className:"absolute block h-1.5 w-1.5 rounded-full bg-[#67e8f9]/70 shadow-[0_0_12px_rgba(103,232,249,0.9)]",initial:{opacity:.2,y:0,x:0},animate:{opacity:[.15,.8,.15],y:[0,-24-i%4*10,0],x:[0,i%2===0?14:-14,0]},transition:{duration:5+i%4,repeat:1/0,ease:"easeInOut"},style:{left:`${8+i*7}%`,top:`${14+i%5*14}%`}},i))}),e.jsxs(Ve,{className:"relative z-10",children:[e.jsx(Ue,{className:"text-2xl md:text-4xl font-bold tracking-tight",children:"Found something awesome for cheap? Support the platform and keep the deals flowing 🚀"}),e.jsx("p",{className:"text-sm md:text-base text-white/75 max-w-2xl mt-2",children:"Your tips help keep the site fast, updated, ad-light, and full of amazing finds."})]}),e.jsx("div",{className:"relative z-10 mt-6 grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:Na.map(i=>e.jsxs(D.div,{className:S("relative overflow-hidden rounded-3xl border border-white/10 bg-white/5 backdrop-blur-xl p-4 shadow-[0_20px_70px_rgba(0,0,0,0.4)]",`bg-gradient-to-br ${i.tone}`),whileHover:{y:-6,scale:1.01},transition:{type:"spring",stiffness:280,damping:20},children:[e.jsx("div",{className:"absolute inset-0 opacity-0 hover:opacity-100 transition-opacity bg-[linear-gradient(110deg,transparent,rgba(255,255,255,0.18),transparent)] bg-[length:200%_100%] animate-[shimmer_2s_linear_infinite]"}),e.jsxs("div",{className:"relative flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-2xl bg-black/30 border border-white/10 text-2xl shadow-[0_0_24px_rgba(255,255,255,0.08)]",children:i.logo}),e.jsx("h3",{className:"mt-3 text-lg font-semibold",children:i.name}),e.jsx("p",{className:"text-xs text-white/70",children:i.detailLabel})]}),e.jsx(ve,{className:"w-5 h-5 text-[#67e8f9]"})]}),e.jsx("div",{className:"relative mt-4 rounded-2xl border border-white/10 bg-black/25 p-3",children:e.jsx("div",{className:"text-sm font-mono break-all",children:i.detail})}),e.jsxs("div",{className:"relative mt-4 flex items-center gap-2",children:[e.jsxs(X,{type:"button",onClick:()=>c(i),className:"flex-1 rounded-full bg-white/10 hover:bg-white/15 text-white border border-white/10",children:[e.jsx(Rt,{className:"mr-2 h-4 w-4"}),s===i.id?"Copied":"Copy"]}),i.href?e.jsx(X,{asChild:!0,className:"rounded-full bg-gradient-to-r from-[#8b5cf6] via-[#00d4ff] to-[#ff3cac] text-white border-0",children:e.jsx("a",{href:i.href,target:"_blank",rel:"noreferrer",children:e.jsx(Pt,{className:"h-4 w-4"})})}):e.jsx("div",{className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-white/8 border border-white/10",children:e.jsx(Ct,{className:"h-4 w-4 text-white/70"})})]})]},i.id))}),e.jsxs("div",{className:"relative z-10 mt-6 flex flex-wrap gap-3 text-xs text-white/70",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5",children:[e.jsx(Et,{className:"h-3.5 w-3.5 text-[#67e8f9]"})," Secure, low-friction support"]}),e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5",children:[e.jsx(kt,{className:"h-3.5 w-3.5 text-[#ff3cac]"})," No spammy upsells"]})]})]})})})]})}const Pa=({...t})=>e.jsx(Dt,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});function Ca(){return e.jsx("div",{className:"flex min-h-screen items-center justify-center px-4",children:e.jsxs("div",{className:"max-w-md text-center",children:[e.jsx("h1",{className:"text-8xl font-display font-bold text-gradient",children:"404"}),e.jsx("h2",{className:"mt-4 text-2xl font-semibold",children:"Page not found"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"This deal might have scrolled off the page."}),e.jsx("div",{className:"mt-6",children:e.jsx(N,{to:"/",className:"btn-glow inline-flex items-center justify-center rounded-full px-5 py-2.5 text-sm font-semibold",children:"Back to discovery"})})]})})}function Ea({error:t,reset:a}){console.error(t);const s=me();return e.jsx("div",{className:"flex min-h-screen items-center justify-center px-4",children:e.jsxs("div",{className:"max-w-md text-center glass-strong rounded-3xl p-8",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"Something went wrong"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Try again or head home."}),e.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[e.jsx("button",{onClick:()=>{s.invalidate(),a()},className:"btn-glow rounded-full px-4 py-2 text-sm font-semibold",children:"Try again"}),e.jsx("a",{href:"/",className:"rounded-full border border-white/10 px-4 py-2 text-sm hover:bg-white/5",children:"Go home"})]})]})})}const y=st()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Scrollsy — Scroll. Discover. Save."},{name:"description",content:"Scrollsy is the visual marketplace for viral gadgets, hidden gems, and trending finds. Scroll, discover, and save deals from across the web."},{name:"author",content:"Scrollsy"},{name:"theme-color",content:"#0a0a14"},{property:"og:title",content:"Scrollsy — Scroll. Discover. Save."},{property:"og:description",content:"Scrollsy is the visual marketplace for viral gadgets, hidden gems, and trending finds. Scroll, discover, and save deals from across the web."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@scrollsy"},{name:"twitter:title",content:"Scrollsy — Scroll. Discover. Save."},{name:"twitter:description",content:"Scrollsy is the visual marketplace for viral gadgets, hidden gems, and trending finds. Scroll, discover, and save deals from across the web."},{property:"og:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/65d9820e-6b8c-4ad9-8991-3bc47757ff5e"},{name:"twitter:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/65d9820e-6b8c-4ad9-8991-3bc47757ff5e"}],links:[{rel:"stylesheet",href:ca}]}),shellComponent:ka,component:$a,notFoundComponent:Ca,errorComponent:Ea});function ka({children:t}){return p.useEffect(()=>{typeof window>"u"||!("serviceWorker"in navigator)||navigator.serviceWorker.register("/sw.js").catch(()=>{})},[]),e.jsxs("html",{lang:"en",className:"dark",children:[e.jsxs("head",{children:[e.jsx(ot,{}),e.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap"}),e.jsx("link",{rel:"manifest",href:"/manifest.webmanifest"}),e.jsx("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),e.jsx("meta",{name:"apple-mobile-web-app-status-bar-style",content:"black-translucent"})]}),e.jsxs("body",{children:[t,e.jsx(nt,{})]})]})}function Ia(){const t=me(),a=dt();return p.useEffect(()=>{const{data:{subscription:s}}=$.auth.onAuthStateChange(()=>{t.invalidate(),a.invalidateQueries()});return()=>s.unsubscribe()},[t,a]),null}function $a(){const{queryClient:t}=y.useRouteContext();return e.jsxs(ct,{client:t,children:[e.jsx(Ia,{}),e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(ya,{}),e.jsx("main",{className:"flex-1",children:e.jsx(rt,{})}),e.jsx(ba,{})]}),e.jsx(Ra,{}),e.jsx(Pa,{theme:"dark",position:"bottom-right"}),e.jsx(mt,{})]})}const Aa="modulepreload",Oa=function(t){return"/"+t},ce={},j=function(a,s,r){let l=Promise.resolve();if(s&&s.length>0){let i=function(m){return Promise.all(m.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=o?.nonce||o?.getAttribute("nonce");l=i(s.map(m=>{if(m=Oa(m),m in ce)return;ce[m]=!0;const u=m.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Aa,u||(f.as="script"),f.crossOrigin="",f.href=m,c&&f.setAttribute("nonce",c),document.head.appendChild(f),u)return new Promise((g,k)=>{f.addEventListener("load",g),f.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${m}`)))})}))}function n(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return l.then(o=>{for(const c of o||[])c.status==="rejected"&&n(c.reason);return a().catch(n)})},Ta=()=>j(()=>import("./update-password-C-d0ix5e.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),Fa=b("/update-password")({head:()=>({meta:[{title:"Set a new password · Scrollsy"}]}),component:v(Ta,"component")}),Da=()=>j(()=>import("./terms-VqJ9kX9b.js"),__vite__mapDeps([71,1,3,4,5,6,7,15,16,17,18,19,20,21,22,23,2,8,9,10,11,12,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,14,62,63,64,65,66,67,68,69,13,70])),Ma=b("/terms")({head:()=>({meta:[{title:"Terms of Service · Scrollsy"},{name:"description",content:"Scrollsy terms of service."}]}),component:v(Da,"component")}),La=()=>j(()=>import("./signup-CEx90iuV.js"),__vite__mapDeps([72,1,2,3,4,5,6,7,8,9,10,11,12,73,74,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),za=b("/signup")({head:()=>({meta:[{title:"Join Scrollsy — Sign up free"}]}),component:v(La,"component")}),Va=()=>j(()=>import("./search-CXWfET1y.js"),__vite__mapDeps([75,1,2,3,4,5,6,7,8,9,10,11,12,24,25,76,77,13,78,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),Ua=Mt({q:Lt().optional().default("")}),Ba=b("/search")({validateSearch:t=>Ua.parse(t),head:()=>({meta:[{title:"Search · Scrollsy"},{name:"description",content:"Search trending products and viral finds on Scrollsy."}]}),component:v(Va,"component")}),qa=()=>j(()=>import("./saved-CHtdQDJF.js"),__vite__mapDeps([79,1,2,3,4,5,6,7,8,9,10,11,12,24,25,77,13,78,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),Ha=b("/saved")({head:()=>({meta:[{title:"Saved · Scrollsy"}]}),component:v(qa,"component")}),Ja=()=>j(()=>import("./reset-password-ySEjItX_.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),Ga=b("/reset-password")({head:()=>({meta:[{title:"Reset password · Scrollsy"}]}),component:v(Ja,"component")}),Xa=()=>j(()=>import("./profile-CveRcKq2.js"),__vite__mapDeps([81,1,2,3,4,5,6,7,8,9,10,11,12,13,24,25,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),Ya=b("/profile")({head:()=>({meta:[{title:"Profile · Scrollsy"}]}),component:v(Xa,"component")}),Qa=()=>j(()=>import("./privacy-B_Pu7040.js"),__vite__mapDeps([82,1,3,4,5,6,7,15,16,17,18,19,20,21,22,23,2,8,9,10,11,12,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,14,62,63,64,65,66,67,68,69,13,70])),Ka=b("/privacy")({head:()=>({meta:[{title:"Privacy Policy · Scrollsy"},{name:"description",content:"How Scrollsy collects, uses and protects your data."}]}),component:v(Qa,"component")}),Wa=()=>j(()=>import("./login-DteE0ZGp.js"),__vite__mapDeps([83,1,2,3,4,5,6,7,8,9,10,11,12,73,74,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),Za=b("/login")({head:()=>({meta:[{title:"Log in · Scrollsy"}]}),component:v(Wa,"component")});function dr({icon:t,value:a,onChange:s,type:r="text",placeholder:l}){return e.jsxs("label",{className:"flex items-center gap-2 glass rounded-xl px-3 py-2.5",children:[e.jsx("span",{className:"text-muted-foreground",children:t}),e.jsx("input",{type:r,value:a,onChange:n=>s(n.target.value),placeholder:l,className:"flex-1 bg-transparent outline-none text-sm placeholder:text-muted-foreground"})]})}const es=()=>j(()=>import("./faq-BsiHWPM8.js"),__vite__mapDeps([84,1,85,30,35,29,28,31,32,33,10,11,86,50,52,36,14,3,4,5,6,7,15,16,17,18,19,20,21,22,23,2,8,9,12,24,25,26,27,34,37,38,39,40,41,42,43,44,45,46,47,48,49,51,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,13,70])),ts=b("/faq")({head:()=>({meta:[{title:"FAQ · Scrollsy"},{name:"description",content:"Frequently asked questions about Scrollsy — affiliate links, deals, accounts and more."}]}),component:v(es,"component")}),as=()=>j(()=>import("./contact-PhvO-V15.js"),__vite__mapDeps([87,1,13,10,11,14,3,4,5,6,7,15,16,17,18,19,20,21,22,23,2,8,9,12,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),ss=b("/contact")({head:()=>({meta:[{title:"Contact · Scrollsy"},{name:"description",content:"Get in touch with the Scrollsy team — partnerships, press, support and creator collabs."}]}),component:v(as,"component")}),rs=()=>j(()=>import("./categories-D0N418mK.js"),__vite__mapDeps([88,1,2,3,4,5,6,7,8,9,10,11,12,24,25,76,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,14,62,63,64,65,66,67,68,69,13,70])),os=b("/categories")({head:()=>({meta:[{title:"Categories · Scrollsy"},{name:"description",content:"Browse Scrollsy product categories — tech, fashion, smart home, gaming, viral finds and more."}],links:[{rel:"canonical",href:"/categories"}]}),component:v(rs,"component")}),ns=()=>j(()=>import("./affiliate-disclosure-BIAsA-HO.js"),__vite__mapDeps([89,1,3,4,5,6,7,15,16,17,18,19,20,21,22,23,2,8,9,10,11,12,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,14,62,63,64,65,66,67,68,69,13,70])),is=b("/affiliate-disclosure")({head:()=>({meta:[{title:"Affiliate Disclosure · Scrollsy"},{name:"description",content:"How Scrollsy makes money — full affiliate disclosure."}]}),component:v(ns,"component")}),ls=()=>j(()=>import("./admin-BZVcAQM3.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8,9,10,11,12,24,25,91,92,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,14,62,63,64,65,66,67,68,69,13,70,93,76,78])),cs=b("/admin")({head:()=>({meta:[{title:"Admin · Scrollsy"},{name:"robots",content:"noindex"}]}),component:v(ls,"component")}),ds=()=>j(()=>import("./about-AskxOruL.js"),__vite__mapDeps([94,1])),ms=b("/about")({head:()=>({meta:[{title:"About · Scrollsy"},{name:"description",content:"Scrollsy is the visual marketplace for trending products, viral finds and smart shopping discoveries."}],links:[{rel:"canonical",href:"/about"}]}),component:v(ds,"component")});function mr({title:t,subtitle:a,children:s}){return e.jsxs("div",{className:"max-w-3xl mx-auto px-4 pt-12",children:[e.jsx("h1",{className:"font-display text-4xl md:text-5xl font-bold tracking-tight",children:e.jsx("span",{className:"text-gradient",children:t})}),a&&e.jsx("p",{className:"text-lg text-muted-foreground mt-3",children:a}),e.jsx("div",{className:"prose prose-invert mt-8 space-y-4 [&_h2]:font-display [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:mt-10 [&_h2]:mb-2 [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:space-y-1 [&_p]:text-muted-foreground [&_li]:text-muted-foreground",children:s})]})}const us="/assets/hero-bg-BP2eVUIX.jpg",ps=()=>j(()=>import("./index-BU9rnkF3.js"),__vite__mapDeps([95,1,2,3,4,5,6,7,8,9,10,11,12,24,25,76,77,13,78,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),fs=b("/")({head:()=>({meta:[{title:"Scrollsy — Scroll. Discover. Save."},{name:"description",content:"Discover viral gadgets, trending finds and hidden deals on Scrollsy — the visual marketplace built for endless scrolling."},{property:"og:title",content:"Scrollsy — Scroll. Discover. Save."},{property:"og:image",content:us}],links:[{rel:"canonical",href:"/"}]}),component:v(ps,"component")}),hs=()=>j(()=>import("./product._id-BVUysCW-.js"),__vite__mapDeps([96,1,2,3,4,5,6,7,8,9,10,11,12,24,25,76,77,13,78,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),gs=b("/product/$id")({head:()=>({meta:[{title:"Product · Scrollsy"}]}),component:v(hs,"component")}),xs=()=>j(()=>import("./category._slug-aCaQm14E.js"),__vite__mapDeps([97,1,2,3,4,5,6,7,8,9,10,11,12,24,25,76,77,13,78,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),ys=b("/category/$slug")({head:({params:t})=>({meta:[{title:`${t.slug.replace(/-/g," ")} · Scrollsy`},{name:"description",content:`Browse trending ${t.slug.replace(/-/g," ")} finds on Scrollsy.`}]}),component:v(xs,"component")}),ws=()=>j(()=>import("./admin.login-QgrF_9Fp.js"),__vite__mapDeps([98,1,2,3,4,5,6,7,8,9,10,11,12,91,92,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,14,62,63,64,65,66,67,68,69,13,70,93])),bs=b("/admin/login")({head:()=>({meta:[{title:"Admin sign-in · Scrollsy"},{name:"robots",content:"noindex"}]}),component:v(ws,"component")}),vs=Fa.update({id:"/update-password",path:"/update-password",getParentRoute:()=>y}),js=Ma.update({id:"/terms",path:"/terms",getParentRoute:()=>y}),Ss=za.update({id:"/signup",path:"/signup",getParentRoute:()=>y}),_s=Ba.update({id:"/search",path:"/search",getParentRoute:()=>y}),Ns=Ha.update({id:"/saved",path:"/saved",getParentRoute:()=>y}),Rs=Ga.update({id:"/reset-password",path:"/reset-password",getParentRoute:()=>y}),Ps=Ya.update({id:"/profile",path:"/profile",getParentRoute:()=>y}),Cs=Ka.update({id:"/privacy",path:"/privacy",getParentRoute:()=>y}),Es=Za.update({id:"/login",path:"/login",getParentRoute:()=>y}),ks=ts.update({id:"/faq",path:"/faq",getParentRoute:()=>y}),Is=ss.update({id:"/contact",path:"/contact",getParentRoute:()=>y}),$s=os.update({id:"/categories",path:"/categories",getParentRoute:()=>y}),As=is.update({id:"/affiliate-disclosure",path:"/affiliate-disclosure",getParentRoute:()=>y}),Be=cs.update({id:"/admin",path:"/admin",getParentRoute:()=>y}),Os=ms.update({id:"/about",path:"/about",getParentRoute:()=>y}),Ts=fs.update({id:"/",path:"/",getParentRoute:()=>y}),Fs=gs.update({id:"/product/$id",path:"/product/$id",getParentRoute:()=>y}),Ds=ys.update({id:"/category/$slug",path:"/category/$slug",getParentRoute:()=>y}),Ms=bs.update({id:"/login",path:"/login",getParentRoute:()=>Be}),Ls={AdminLoginRoute:Ms},zs=Be._addFileChildren(Ls),Vs={IndexRoute:Ts,AboutRoute:Os,AdminRoute:zs,AffiliateDisclosureRoute:As,CategoriesRoute:$s,ContactRoute:Is,FaqRoute:ks,LoginRoute:Es,PrivacyRoute:Cs,ProfileRoute:Ps,ResetPasswordRoute:Rs,SavedRoute:Ns,SearchRoute:_s,SignupRoute:Ss,TermsRoute:js,UpdatePasswordRoute:vs,CategorySlugRoute:Ds,ProductIdRoute:Fs},Us=y._addFileChildren(Vs),Bs=()=>{const t=new zt;return it({routeTree:Us,context:{queryClient:t},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function qs(){const t=await Bs();let a;if(ie){const s=await ie.getOptions();s.serializationAdapters=s.serializationAdapters??[],window.__TSS_START_OPTIONS__=s,a=s.serializationAdapters,t.options.defaultSsr=s.defaultSsr}else a=[],window.__TSS_START_OPTIONS__={serializationAdapters:a};return a.push(ta),t.options.serializationAdapters&&a.push(...t.options.serializationAdapters),t.update({basepath:"",serializationAdapters:a}),t.stores.matchesId.get().length||await Ze(t),t}var ur=qs;export{H as A,dr as F,Fe as L,mr as P,Ba as R,G as a,J as b,gs as c,ys as d,S as e,ea as f,I as g,M as h,ur as i,us as j,$ as s,ma as u};
@@ -0,0 +1 @@
1
+ var f=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(f||{});function j({update:e,notify:a,unwatched:r}){return{link:l,unlink:i,propagate:d,checkDirty:v,shallowPropagate:g};function l(t,n,o){const u=n.depsTail;if(u!==void 0&&u.dep===t)return;const s=u!==void 0?u.nextDep:n.deps;if(s!==void 0&&s.dep===t){s.version=o,n.depsTail=s;return}const c=t.subsTail;if(c!==void 0&&c.version===o&&c.sub===n)return;const p=n.depsTail=t.subsTail={version:o,dep:t,sub:n,prevDep:u,nextDep:s,prevSub:c,nextSub:void 0};s!==void 0&&(s.prevDep=p),u!==void 0?u.nextDep=p:n.deps=p,c!==void 0?c.nextSub=p:t.subs=p}function i(t,n=t.sub){const o=t.dep,u=t.prevDep,s=t.nextDep,c=t.nextSub,p=t.prevSub;return s!==void 0?s.prevDep=u:n.depsTail=u,u!==void 0?u.nextDep=s:n.deps=s,c!==void 0?c.prevSub=p:o.subsTail=p,p!==void 0?p.nextSub=c:(o.subs=c)===void 0&&r(o),s}function d(t){let n=t.nextSub,o;e:do{const u=t.sub;let s=u.flags;if(s&60?s&12?s&4?!(s&48)&&D(t,u)?(u.flags=s|40,s&=1):s=0:u.flags=s&-9|32:s=0:u.flags=s|32,s&2&&a(u),s&1){const c=u.subs;if(c!==void 0){const p=(t=c).nextSub;p!==void 0&&(o={value:n,prev:o},n=p);continue}}if((t=n)!==void 0){n=t.nextSub;continue}for(;o!==void 0;)if(t=o.value,o=o.prev,t!==void 0){n=t.nextSub;continue e}break}while(!0)}function v(t,n){let o,u=0,s=!1;e:do{const c=t.dep,p=c.flags;if(n.flags&16)s=!0;else if((p&17)===17){if(e(c)){const h=c.subs;h.nextSub!==void 0&&g(h),s=!0}}else if((p&33)===33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(o={value:t,prev:o}),t=c.deps,n=c,++u;continue}if(!s){const h=t.nextDep;if(h!==void 0){t=h;continue}}for(;u--;){const h=n.subs,C=h.nextSub!==void 0;if(C?(t=o.value,o=o.prev):t=h,s){if(e(n)){C&&g(h),n=t.sub;continue}s=!1}else n.flags&=-33;n=t.sub;const P=t.nextDep;if(P!==void 0){t=P;continue e}}return s}while(!0)}function g(t){do{const n=t.sub,o=n.flags;(o&48)===32&&(n.flags=o|16,(o&6)===2&&a(n))}while((t=t.nextSub)!==void 0)}function D(t,n){let o=n.depsTail;for(;o!==void 0;){if(o===t)return!0;o=o.prevDep}return!1}}function L(e,a,r){const l=typeof e=="object",i=l?e:void 0;return{next:(l?e.next:e)?.bind(i),error:(l?e.error:a)?.bind(i),complete:(l?e.complete:r)?.bind(i)}}const T=[];let S=0;const{link:M,unlink:q,propagate:E,checkDirty:m,shallowPropagate:W}=j({update(e){return e._update()},notify(e){T[w++]=e,e.flags&=~f.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=f.Mutable|f.Dirty,y(e))}});let x=0,w=0,b,_=0;function A(e){try{++_,e()}finally{--_||N()}}function y(e){const a=e.depsTail;let r=a!==void 0?a.nextDep:e.deps;for(;r!==void 0;)r=q(r,e)}function N(){if(!(_>0)){for(;x<w;){const e=T[x];T[x++]=void 0,e.notify()}x=0,w=0}}function I(e,a){const r=typeof e=="function",l=e,i={_snapshot:r?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:r?f.None:f.Mutable,get(){return b!==void 0&&M(i,b,S),i._snapshot},subscribe(d){const v=L(d),g={current:!1},D=O(()=>{i.get(),g.current?v.next?.(i._snapshot):g.current=!0});return{unsubscribe:()=>{D.stop()}}},_update(d){const v=b,g=a?.compare??Object.is;if(r)b=i,++S,i.depsTail=void 0;else if(d===void 0)return!1;r&&(i.flags=f.Mutable|f.RecursedCheck);try{const D=i._snapshot,t=typeof d=="function"?d(D):d===void 0&&r?l(D):d;return D===void 0||!g(D,t)?(i._snapshot=t,!0):!1}finally{b=v,r&&(i.flags&=~f.RecursedCheck),y(i)}}};return r?(i.flags=f.Mutable|f.Dirty,i.get=function(){const d=i.flags;if(d&f.Dirty||d&f.Pending&&m(i.deps,i)){if(i._update()){const v=i.subs;v!==void 0&&W(v)}}else d&f.Pending&&(i.flags=d&~f.Pending);return b!==void 0&&M(i,b,S),i._snapshot}):i.set=function(d){if(i._update(d)){const v=i.subs;v!==void 0&&(E(v),W(v),N())}},i}function O(e){const a=()=>{const l=b;b=r,++S,r.depsTail=void 0,r.flags=f.Watching|f.RecursedCheck;try{return e()}finally{b=l,r.flags&=~f.RecursedCheck,y(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:f.Watching|f.RecursedCheck,notify(){const l=this.flags;l&f.Dirty||l&f.Pending&&m(this.deps,this)?a():this.flags=f.Watching},stop(){this.flags=f.None,this.depsTail=void 0,y(this)}};return a(),r}export{A as b,I as c};
@@ -0,0 +1 @@
1
+ var s=function(){return s=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)};function y(o,e){var t={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(o);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(o,n[a])&&(t[n[a]]=o[n[a]]);return t}function O(o,e,t,n){function a(r){return r instanceof t?r:new t(function(p){p(r)})}return new(t||(t=Promise))(function(r,p){function i(c){try{u(n.next(c))}catch(f){p(f)}}function l(c){try{u(n.throw(c))}catch(f){p(f)}}function u(c){c.done?r(c.value):a(c.value).then(i,l)}u((n=n.apply(o,e||[])).next())})}function d(o,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,r;n<a;n++)(r||!(n in e))&&(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return o.concat(r||Array.prototype.slice.call(e))}export{s as _,O as a,y as b,d as c};
@@ -0,0 +1 @@
1
+ import{r as f}from"./vendor-react-gJPiVnX5.js";function c(t,u){return typeof t=="function"?t(u):t&&(t.current=u),t}function s(t,u){var a=f.useState(function(){return{value:t,callback:u,facade:{get current(){return a.value},set current(e){var n=a.value;n!==e&&(a.value=e,a.callback(e,n))}}}})[0];return a.callback=u,a.facade}var v=typeof window<"u"?f.useLayoutEffect:f.useEffect,i=new WeakMap;function E(t,u){var a=s(null,function(e){return t.forEach(function(n){return c(n,e)})});return v(function(){var e=i.get(a);if(e){var n=new Set(e),o=new Set(t),l=a.current;n.forEach(function(r){o.has(r)||c(r,null)}),o.forEach(function(r){n.has(r)||c(r,l)})}i.set(a,t)},[t]),a}export{E as u};
@@ -0,0 +1 @@
1
+ import{r as h}from"./vendor-react-gJPiVnX5.js";import{_ as s,b as l}from"./vendor-tslib-Du-meQkk.js";function v(e){return e}function p(e,n){n===void 0&&(n=v);var r=[],i=!1,d={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(u){var t=n(u,i);return r.push(t),function(){r=r.filter(function(a){return a!==t})}},assignSyncMedium:function(u){for(i=!0;r.length;){var t=r;r=[],t.forEach(u)}r={push:function(a){return u(a)},filter:function(){return r}}},assignMedium:function(u){i=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(u),t=r}var m=function(){var o=t;t=[],o.forEach(u)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(o){t.push(o),f()},filter:function(o){return t=t.filter(o),r}}}};return d}function S(e){e===void 0&&(e={});var n=p(null);return n.options=s({async:!0,ssr:!1},e),n}var c=function(e){var n=e.sideCar,r=l(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return h.createElement(i,s({},r))};c.isSideCarExport=!0;function C(e,n){return e.useMedium(n),c}export{S as c,C as e};
@@ -0,0 +1 @@
1
+ import{b as M}from"./vendor-react-gJPiVnX5.js";var w={exports:{}},R={},x={exports:{}},V={};var D;function g(){if(D)return V;D=1;var n=M();function S(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var m=typeof Object.is=="function"?Object.is:S,h=n.useState,p=n.useEffect,E=n.useLayoutEffect,y=n.useDebugValue;function b(e,r){var u=r(),o=h({inst:{value:u,getSnapshot:r}}),t=o[0].inst,f=o[1];return E(function(){t.value=u,t.getSnapshot=r,l(t)&&f({inst:t})},[e,u,r]),p(function(){return l(t)&&f({inst:t}),e(function(){l(t)&&f({inst:t})})},[e]),y(u),u}function l(e){var r=e.getSnapshot;e=e.value;try{var u=r();return!m(e,u)}catch{return!0}}function i(e,r){return r()}var a=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:b;return V.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:a,V}var O;function U(){return O||(O=1,x.exports=g()),x.exports}var z;function G(){if(z)return R;z=1;var n=M(),S=U();function m(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var h=typeof Object.is=="function"?Object.is:m,p=S.useSyncExternalStore,E=n.useRef,y=n.useEffect,b=n.useMemo,l=n.useDebugValue;return R.useSyncExternalStoreWithSelector=function(i,a,e,r,u){var o=E(null);if(o.current===null){var t={hasValue:!1,value:null};o.current=t}else t=o.current;o=b(function(){function _(c){if(!j){if(j=!0,v=c,c=r(c),u!==void 0&&t.hasValue){var s=t.value;if(u(s,c))return d=s}return d=c}if(s=d,h(v,c))return s;var W=r(c);return u!==void 0&&u(s,W)?(v=c,s):(v=c,d=W)}var j=!1,v,d,q=e===void 0?null:e;return[function(){return _(a())},q===null?void 0:function(){return _(q())}]},[a,e,r,u]);var f=p(i,o[0],o[1]);return y(function(){t.hasValue=!0,t.value=f},[f]),l(f),f},R}var I;function L(){return I||(I=1,w.exports=G()),w.exports}var k=L(),C=U();export{C as s,k as w};
@@ -0,0 +1 @@
1
+ import{r as c}from"./vendor-react-gJPiVnX5.js";var d={},b=()=>{window.va||(window.va=function(...i){window.vaq||(window.vaq=[]),window.vaq.push(i)})},h="@vercel/analytics",m="2.0.1";function u(){return typeof window<"u"}function v(){try{const e="production"}catch{}return"production"}function p(e="auto"){if(e==="auto"){window.vam=v();return}window.vam=e}function E(){return(u()?window.vam:v())||"production"}function f(){return E()==="development"}function g(e){return e.scriptSrc?r(e.scriptSrc):f()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?r(`${e.basePath}/insights/script.js`):"/_vercel/insights/script.js"}function y(e,i){var o;let t=e;if(i)try{t={...(o=JSON.parse(i))==null?void 0:o.analytics,...e}}catch{}p(t.mode);const n={sdkn:h+(t.framework?`/${t.framework}`:""),sdkv:m};return t.disableAutoTrack&&(n.disableAutoTrack="1"),t.viewEndpoint&&(n.viewEndpoint=r(t.viewEndpoint)),t.eventEndpoint&&(n.eventEndpoint=r(t.eventEndpoint)),t.sessionEndpoint&&(n.sessionEndpoint=r(t.sessionEndpoint)),f()&&t.debug===!1&&(n.debug="false"),t.dsn&&(n.dsn=t.dsn),t.endpoint?n.endpoint=t.endpoint:t.basePath&&(n.endpoint=r(`${t.basePath}/insights`)),{beforeSend:t.beforeSend,src:g(t),dataset:n}}function r(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function S(e={debug:!0},i){var o;if(!u())return;const{beforeSend:t,src:n,dataset:l}=y(e,i);if(b(),t&&((o=window.va)==null||o.call(window,"beforeSend",t)),document.head.querySelector(`script[src*="${n}"]`))return;const a=document.createElement("script");a.src=n;for(const[s,w]of Object.entries(l))a.dataset[s]=w;a.defer=!0,a.onerror=()=>{const s=f()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${s}`)},document.head.appendChild(a)}function _({route:e,path:i}){var o;(o=window.va)==null||o.call(window,"pageview",{route:e,path:i})}function A(){if(!(typeof process>"u"||typeof d>"u"))return d.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function k(){if(!(typeof process>"u"||typeof d>"u"))return d.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function T(e){return c.useEffect(()=>{var i;e.beforeSend&&((i=window.va)==null||i.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),c.useEffect(()=>{S({framework:e.framework||"react",basePath:e.basePath??A(),...e.route!==void 0&&{disableAutoTrack:!0},...e},e.configString??k())},[]),c.useEffect(()=>{e.route&&e.path&&_({route:e.route,path:e.path})},[e.route,e.path]),null}export{T as A};
@@ -0,0 +1 @@
1
+ var y;(function(r){r.assertEqual=a=>{};function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const n={};for(const i of a)n[i]=i;return n},r.getValidEnumValues=a=>{const n=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),i={};for(const d of n)i[d]=a[d];return r.objectValues(i)},r.objectValues=a=>r.objectKeys(a).map(function(n){return a[n]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const n=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.push(i);return n},r.find=(a,n)=>{for(const i of a)if(n(i))return i},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,n=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}r.joinValues=s,r.jsonStringifyReplacer=(a,n)=>typeof n=="bigint"?n.toString():n})(y||(y={}));var K;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(K||(K={}));const u=y.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),T=r=>{switch(typeof r){case"undefined":return u.undefined;case"string":return u.string;case"number":return Number.isNaN(r)?u.nan:u.number;case"boolean":return u.boolean;case"function":return u.function;case"bigint":return u.bigint;case"symbol":return u.symbol;case"object":return Array.isArray(r)?u.array:r===null?u.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?u.promise:typeof Map<"u"&&r instanceof Map?u.map:typeof Set<"u"&&r instanceof Set?u.set:typeof Date<"u"&&r instanceof Date?u.date:u.object;default:return u.unknown}},o=y.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class C extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(n){return n.message},s={_errors:[]},a=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let d=s,h=0;for(;h<i.path.length;){const f=i.path[h];h===i.path.length-1?(d[f]=d[f]||{_errors:[]},d[f]._errors.push(t(i))):d[f]=d[f]||{_errors:[]},d=d[f],h++}}};return a(this),s}static assert(e){if(!(e instanceof C))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,y.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},s=[];for(const a of this.issues)if(a.path.length>0){const n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else s.push(e(a));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}C.create=r=>new C(r);const J=(r,e)=>{let t;switch(r.code){case o.invalid_type:r.received===u.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case o.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,y.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:t=`Unrecognized key(s) in object: ${y.joinValues(r.keys,", ")}`;break;case o.invalid_union:t="Invalid input";break;case o.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${y.joinValues(r.options)}`;break;case o.invalid_enum_value:t=`Invalid enum value. Expected ${y.joinValues(r.options)}, received '${r.received}'`;break;case o.invalid_arguments:t="Invalid function arguments";break;case o.invalid_return_type:t="Invalid function return type";break;case o.invalid_date:t="Invalid date";break;case o.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:y.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case o.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case o.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case o.custom:t="Invalid input";break;case o.invalid_intersection_types:t="Intersection results could not be merged";break;case o.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case o.not_finite:t="Number must be finite";break;default:t=e.defaultError,y.assertNever(r)}return{message:t}};let ve=J;function xe(){return ve}const ke=r=>{const{data:e,path:t,errorMaps:s,issueData:a}=r,n=[...t,...a.path||[]],i={...a,path:n};if(a.message!==void 0)return{...a,path:n,message:a.message};let d="";const h=s.filter(f=>!!f).slice().reverse();for(const f of h)d=f(i,{data:e,defaultError:d}).message;return{...a,path:n,message:d}};function c(r,e){const t=xe(),s=ke({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===J?void 0:J].filter(a=>!!a)});r.common.issues.push(s)}class k{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const a of t){if(a.status==="aborted")return m;a.status==="dirty"&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const a of t){const n=await a.key,i=await a.value;s.push({key:n,value:i})}return k.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const a of t){const{key:n,value:i}=a;if(n.status==="aborted"||i.status==="aborted")return m;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(s[n.value]=i.value)}return{status:e.value,value:s}}}const m=Object.freeze({status:"aborted"}),M=r=>({status:"dirty",value:r}),b=r=>({status:"valid",value:r}),ee=r=>r.status==="aborted",te=r=>r.status==="dirty",I=r=>r.status==="valid",D=r=>typeof Promise<"u"&&r instanceof Promise;var l;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(l||(l={}));class N{constructor(e,t,s,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const se=(r,e)=>{if(I(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new C(r.common.issues);return this._error=t,this._error}}};function _(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:a}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,d)=>{const{message:h}=r;return i.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??s??d.defaultError}:i.code!=="invalid_type"?{message:d.defaultError}:{message:h??t??d.defaultError}},description:a}}class g{get description(){return this._def.description}_getType(e){return T(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(D(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parseSync({data:e,path:s.path,parent:s});return se(s,a)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:t});return I(s)?{value:s.value}:{issues:t.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(s=>I(s)?{value:s.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parse({data:e,path:s.path,parent:s}),n=await(D(a)?a:Promise.resolve(a));return se(s,n)}refine(e,t){const s=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,n)=>{const i=e(a),d=()=>n.addIssue({code:o.custom,...s(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(h=>h?!0:(d(),!1)):i?!0:(d(),!1)})}refinement(e,t){return this._refinement((s,a)=>e(s)?!0:(a.addIssue(typeof t=="function"?t(s,a):t),!1))}_refinement(e){return new E({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return S.create(this,this._def)}nullable(){return $.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return w.create(this)}promise(){return W.create(this,this._def)}or(e){return B.create([this,e],this._def)}and(e){return F.create(this,e,this._def)}transform(e){return new E({..._(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new H({..._(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new Fe({typeName:p.ZodBranded,type:this,..._(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new G({..._(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return X.create(this,e)}readonly(){return Q.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const be=/^c[^\s-]{8,}$/i,we=/^[0-9a-z]+$/,Ce=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Te=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Oe=/^[a-z0-9_-]{21}$/i,Se=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ne=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ae=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ze="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let q;const Re=/^(?:(?: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])$/,Ie=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,je=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$e=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ve=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,pe="((\\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])))",Me=new RegExp(`^${pe}$`);function _e(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function Le(r){return new RegExp(`^${_e(r)}$`)}function ze(r){let e=`${pe}T${_e(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Pe(r,e){return!!((e==="v4"||!e)&&Re.test(r)||(e==="v6"||!e)&&je.test(r))}function De(r,e){if(!Se.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function Ue(r,e){return!!((e==="v4"||!e)&&Ie.test(r)||(e==="v6"||!e)&&Ee.test(r))}class O extends g{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.string){const n=this._getOrReturnCtx(e);return c(n,{code:o.invalid_type,expected:u.string,received:n.parsedType}),m}const s=new k;let a;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:o.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:o.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){const i=e.data.length>n.value,d=e.data.length<n.value;(i||d)&&(a=this._getOrReturnCtx(e,a),i?c(a,{code:o.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):d&&c(a,{code:o.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")Ae.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"email",code:o.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")q||(q=new RegExp(Ze,"u")),q.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"emoji",code:o.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")Te.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"uuid",code:o.invalid_string,message:n.message}),s.dirty());else if(n.kind==="nanoid")Oe.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"nanoid",code:o.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")be.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"cuid",code:o.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")we.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"cuid2",code:o.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")Ce.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"ulid",code:o.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),c(a,{validation:"url",code:o.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"regex",code:o.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(a=this._getOrReturnCtx(e,a),c(a,{code:o.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(a=this._getOrReturnCtx(e,a),c(a,{code:o.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(a=this._getOrReturnCtx(e,a),c(a,{code:o.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?ze(n).test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:o.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="date"?Me.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:o.invalid_string,validation:"date",message:n.message}),s.dirty()):n.kind==="time"?Le(n).test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:o.invalid_string,validation:"time",message:n.message}),s.dirty()):n.kind==="duration"?Ne.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"duration",code:o.invalid_string,message:n.message}),s.dirty()):n.kind==="ip"?Pe(e.data,n.version)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"ip",code:o.invalid_string,message:n.message}),s.dirty()):n.kind==="jwt"?De(e.data,n.alg)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"jwt",code:o.invalid_string,message:n.message}),s.dirty()):n.kind==="cidr"?Ue(e.data,n.version)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"cidr",code:o.invalid_string,message:n.message}),s.dirty()):n.kind==="base64"?$e.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"base64",code:o.invalid_string,message:n.message}),s.dirty()):n.kind==="base64url"?Ve.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"base64url",code:o.invalid_string,message:n.message}),s.dirty()):y.assertNever(n);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(a=>e.test(a),{validation:t,code:o.invalid_string,...l.errToObj(s)})}_addCheck(e){return new O({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...l.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...l.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...l.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new O({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new O({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new O({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}O.create=r=>new O({checks:[],typeName:p.ZodString,coerce:r?.coerce??!1,..._(r)});function Be(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,a=t>s?t:s,n=Number.parseInt(r.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return n%i/10**a}class L extends g{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.number){const n=this._getOrReturnCtx(e);return c(n,{code:o.invalid_type,expected:u.number,received:n.parsedType}),m}let s;const a=new k;for(const n of this._def.checks)n.kind==="int"?y.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),c(s,{code:o.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:o.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:o.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="multipleOf"?Be(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),c(s,{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),c(s,{code:o.not_finite,message:n.message}),a.dirty()):y.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&y.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}L.create=r=>new L({checks:[],typeName:p.ZodNumber,coerce:r?.coerce||!1,..._(r)});class z extends g{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.bigint)return this._getInvalidInput(e);let s;const a=new k;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:o.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:o.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),c(s,{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):y.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return c(t,{code:o.invalid_type,expected:u.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}z.create=r=>new z({checks:[],typeName:p.ZodBigInt,coerce:r?.coerce??!1,..._(r)});class re extends g{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.boolean){const s=this._getOrReturnCtx(e);return c(s,{code:o.invalid_type,expected:u.boolean,received:s.parsedType}),m}return b(e.data)}}re.create=r=>new re({typeName:p.ZodBoolean,coerce:r?.coerce||!1,..._(r)});class U extends g{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.date){const n=this._getOrReturnCtx(e);return c(n,{code:o.invalid_type,expected:u.date,received:n.parsedType}),m}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return c(n,{code:o.invalid_date}),m}const s=new k;let a;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:o.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:o.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):y.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}U.create=r=>new U({checks:[],coerce:r?.coerce||!1,typeName:p.ZodDate,..._(r)});class ae extends g{_parse(e){if(this._getType(e)!==u.symbol){const s=this._getOrReturnCtx(e);return c(s,{code:o.invalid_type,expected:u.symbol,received:s.parsedType}),m}return b(e.data)}}ae.create=r=>new ae({typeName:p.ZodSymbol,..._(r)});class ne extends g{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return c(s,{code:o.invalid_type,expected:u.undefined,received:s.parsedType}),m}return b(e.data)}}ne.create=r=>new ne({typeName:p.ZodUndefined,..._(r)});class ie extends g{_parse(e){if(this._getType(e)!==u.null){const s=this._getOrReturnCtx(e);return c(s,{code:o.invalid_type,expected:u.null,received:s.parsedType}),m}return b(e.data)}}ie.create=r=>new ie({typeName:p.ZodNull,..._(r)});class de extends g{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}de.create=r=>new de({typeName:p.ZodAny,..._(r)});class oe extends g{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}oe.create=r=>new oe({typeName:p.ZodUnknown,..._(r)});class A extends g{_parse(e){const t=this._getOrReturnCtx(e);return c(t,{code:o.invalid_type,expected:u.never,received:t.parsedType}),m}}A.create=r=>new A({typeName:p.ZodNever,..._(r)});class ce extends g{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return c(s,{code:o.invalid_type,expected:u.void,received:s.parsedType}),m}return b(e.data)}}ce.create=r=>new ce({typeName:p.ZodVoid,..._(r)});class w extends g{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),a=this._def;if(t.parsedType!==u.array)return c(t,{code:o.invalid_type,expected:u.array,received:t.parsedType}),m;if(a.exactLength!==null){const i=t.data.length>a.exactLength.value,d=t.data.length<a.exactLength.value;(i||d)&&(c(t,{code:i?o.too_big:o.too_small,minimum:d?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),s.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(c(t,{code:o.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(c(t,{code:o.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,d)=>a.type._parseAsync(new N(t,i,t.path,d)))).then(i=>k.mergeArray(s,i));const n=[...t.data].map((i,d)=>a.type._parseSync(new N(t,i,t.path,d)));return k.mergeArray(s,n)}get element(){return this._def.type}min(e,t){return new w({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new w({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new w({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}w.create=(r,e)=>new w({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,..._(e)});function R(r){if(r instanceof x){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=S.create(R(s))}return new x({...r._def,shape:()=>e})}else return r instanceof w?new w({...r._def,type:R(r.element)}):r instanceof S?S.create(R(r.unwrap())):r instanceof $?$.create(R(r.unwrap())):r instanceof Z?Z.create(r.items.map(e=>R(e))):r}class x extends g{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=y.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.object){const f=this._getOrReturnCtx(e);return c(f,{code:o.invalid_type,expected:u.object,received:f.parsedType}),m}const{status:s,ctx:a}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),d=[];if(!(this._def.catchall instanceof A&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||d.push(f);const h=[];for(const f of i){const v=n[f],V=a.data[f];h.push({key:{status:"valid",value:f},value:v._parse(new N(a,V,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof A){const f=this._def.unknownKeys;if(f==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(f==="strict")d.length>0&&(c(a,{code:o.unrecognized_keys,keys:d}),s.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const v of d){const V=a.data[v];h.push({key:{status:"valid",value:v},value:f._parse(new N(a,V,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const v of h){const V=await v.key,ye=await v.value;f.push({key:V,value:ye,alwaysSet:v.alwaysSet})}return f}).then(f=>k.mergeObjectSync(s,f)):k.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new x({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{const a=this._def.errorMap?.(t,s).message??s.defaultError;return t.code==="unrecognized_keys"?{message:l.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new x({...this._def,unknownKeys:"strip"})}passthrough(){return new x({...this._def,unknownKeys:"passthrough"})}extend(e){return new x({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new x({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new x({...this._def,catchall:e})}pick(e){const t={};for(const s of y.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}omit(e){const t={};for(const s of y.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}deepPartial(){return R(this)}partial(e){const t={};for(const s of y.objectKeys(this.shape)){const a=this.shape[s];e&&!e[s]?t[s]=a:t[s]=a.optional()}return new x({...this._def,shape:()=>t})}required(e){const t={};for(const s of y.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof S;)n=n._def.innerType;t[s]=n}return new x({...this._def,shape:()=>t})}keyof(){return ge(y.objectKeys(this.shape))}}x.create=(r,e)=>new x({shape:()=>r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.strictCreate=(r,e)=>new x({shape:()=>r,unknownKeys:"strict",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.lazycreate=(r,e)=>new x({shape:r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});class B extends g{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function a(n){for(const d of n)if(d.result.status==="valid")return d.result;for(const d of n)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const i=n.map(d=>new C(d.ctx.common.issues));return c(t,{code:o.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(s.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(a);{let n;const i=[];for(const h of s){const f={...t,common:{...t.common,issues:[]},parent:null},v=h._parseSync({data:t.data,path:t.path,parent:f});if(v.status==="valid")return v;v.status==="dirty"&&!n&&(n={result:v,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const d=i.map(h=>new C(h));return c(t,{code:o.invalid_union,unionErrors:d}),m}}get options(){return this._def.options}}B.create=(r,e)=>new B({options:r,typeName:p.ZodUnion,..._(e)});function Y(r,e){const t=T(r),s=T(e);if(r===e)return{valid:!0,data:r};if(t===u.object&&s===u.object){const a=y.objectKeys(e),n=y.objectKeys(r).filter(d=>a.indexOf(d)!==-1),i={...r,...e};for(const d of n){const h=Y(r[d],e[d]);if(!h.valid)return{valid:!1};i[d]=h.data}return{valid:!0,data:i}}else if(t===u.array&&s===u.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let n=0;n<r.length;n++){const i=r[n],d=e[n],h=Y(i,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return t===u.date&&s===u.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class F extends g{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=(n,i)=>{if(ee(n)||ee(i))return m;const d=Y(n.value,i.value);return d.valid?((te(n)||te(i))&&t.dirty(),{status:t.value,value:d.data}):(c(s,{code:o.invalid_intersection_types}),m)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,i])=>a(n,i)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}F.create=(r,e,t)=>new F({left:r,right:e,typeName:p.ZodIntersection,..._(t)});class Z extends g{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.array)return c(s,{code:o.invalid_type,expected:u.array,received:s.parsedType}),m;if(s.data.length<this._def.items.length)return c(s,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&s.data.length>this._def.items.length&&(c(s,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...s.data].map((i,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new N(s,i,s.path,d)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>k.mergeArray(t,i)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Z({...this._def,rest:e})}}Z.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Z({items:r,typeName:p.ZodTuple,rest:null,..._(e)})};class ue extends g{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.map)return c(s,{code:o.invalid_type,expected:u.map,received:s.parsedType}),m;const a=this._def.keyType,n=this._def.valueType,i=[...s.data.entries()].map(([d,h],f)=>({key:a._parse(new N(s,d,s.path,[f,"key"])),value:n._parse(new N(s,h,s.path,[f,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of i){const f=await h.key,v=await h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const h of i){const f=h.key,v=h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}}}}ue.create=(r,e,t)=>new ue({valueType:e,keyType:r,typeName:p.ZodMap,..._(t)});class P extends g{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.set)return c(s,{code:o.invalid_type,expected:u.set,received:s.parsedType}),m;const a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(c(s,{code:o.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(c(s,{code:o.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const n=this._def.valueType;function i(h){const f=new Set;for(const v of h){if(v.status==="aborted")return m;v.status==="dirty"&&t.dirty(),f.add(v.value)}return{status:t.value,value:f}}const d=[...s.data.values()].map((h,f)=>n._parse(new N(s,h,s.path,f)));return s.common.async?Promise.all(d).then(h=>i(h)):i(d)}min(e,t){return new P({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new P({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}P.create=(r,e)=>new P({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,..._(e)});class le extends g{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}le.create=(r,e)=>new le({getter:r,typeName:p.ZodLazy,..._(e)});class he extends g{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return c(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}he.create=(r,e)=>new he({value:r,typeName:p.ZodLiteral,..._(e)});function ge(r,e){return new j({values:r,typeName:p.ZodEnum,..._(e)})}class j extends g{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return c(t,{expected:y.joinValues(s),received:t.parsedType,code:o.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return c(t,{received:t.data,code:o.invalid_enum_value,options:s}),m}return b(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return j.create(e,{...this._def,...t})}exclude(e,t=this._def){return j.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}j.create=ge;class fe extends g{_parse(e){const t=y.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.string&&s.parsedType!==u.number){const a=y.objectValues(t);return c(s,{expected:y.joinValues(a),received:s.parsedType,code:o.invalid_type}),m}if(this._cache||(this._cache=new Set(y.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=y.objectValues(t);return c(s,{received:s.data,code:o.invalid_enum_value,options:a}),m}return b(e.data)}get enum(){return this._def.values}}fe.create=(r,e)=>new fe({values:r,typeName:p.ZodNativeEnum,..._(e)});class W extends g{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.promise&&t.common.async===!1)return c(t,{code:o.invalid_type,expected:u.promise,received:t.parsedType}),m;const s=t.parsedType===u.promise?t.data:Promise.resolve(t.data);return b(s.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}W.create=(r,e)=>new W({type:r,typeName:p.ZodPromise,..._(e)});class E extends g{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:i=>{c(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),a.type==="preprocess"){const i=a.transform(s.data,n);if(s.common.async)return Promise.resolve(i).then(async d=>{if(t.value==="aborted")return m;const h=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return h.status==="aborted"?m:h.status==="dirty"||t.value==="dirty"?M(h.value):h});{if(t.value==="aborted")return m;const d=this._def.schema._parseSync({data:i,path:s.path,parent:s});return d.status==="aborted"?m:d.status==="dirty"||t.value==="dirty"?M(d.value):d}}if(a.type==="refinement"){const i=d=>{const h=a.refinement(d,n);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value).then(()=>({status:t.value,value:d.value}))))}if(a.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!I(i))return m;const d=a.transform(i.value,n);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>I(i)?Promise.resolve(a.transform(i.value,n)).then(d=>({status:t.value,value:d})):m);y.assertNever(a)}}E.create=(r,e,t)=>new E({schema:r,typeName:p.ZodEffects,effect:e,..._(t)});E.createWithPreprocess=(r,e,t)=>new E({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,..._(t)});class S extends g{_parse(e){return this._getType(e)===u.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}S.create=(r,e)=>new S({innerType:r,typeName:p.ZodOptional,..._(e)});class $ extends g{_parse(e){return this._getType(e)===u.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$.create=(r,e)=>new $({innerType:r,typeName:p.ZodNullable,..._(e)});class H extends g{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}H.create=(r,e)=>new H({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._(e)});class G extends g{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return D(a)?a.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}G.create=(r,e)=>new G({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._(e)});class me extends g{_parse(e){if(this._getType(e)!==u.nan){const s=this._getOrReturnCtx(e);return c(s,{code:o.invalid_type,expected:u.nan,received:s.parsedType}),m}return{status:"valid",value:e.data}}}me.create=r=>new me({typeName:p.ZodNaN,..._(r)});class Fe extends g{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class X extends g{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?m:n.status==="dirty"?(t.dirty(),M(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(e,t){return new X({in:e,out:t,typeName:p.ZodPipeline})}}class Q extends g{_parse(e){const t=this._def.innerType._parse(e),s=a=>(I(a)&&(a.value=Object.freeze(a.value)),a);return D(t)?t.then(a=>s(a)):s(t)}unwrap(){return this._def.innerType}}Q.create=(r,e)=>new Q({innerType:r,typeName:p.ZodReadonly,..._(e)});var p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));const We=O.create;A.create;w.create;const qe=x.create;B.create;F.create;Z.create;j.create;W.create;S.create;$.create;export{qe as o,We as s};
@@ -0,0 +1,2 @@
1
+ User-agent: *
2
+ Allow: /
@@ -0,0 +1,5 @@
1
+ SUPABASE_PUBLISHABLE_KEY='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im56amNkbXZ3ZXVmcmF3eXBoenp5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkzMTE1NjQsImV4cCI6MjA5NDg4NzU2NH0.HSGmMtYJTCFBcS17l6RsFxrgtOZdxpzL6_5v5vI9TOo'
2
+ SUPABASE_URL='https://nzjcdmvweufrawyphzzy.supabase.co'
3
+ VITE_SUPABASE_PROJECT_ID='nzjcdmvweufrawyphzzy'
4
+ VITE_SUPABASE_PUBLISHABLE_KEY='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im56amNkbXZ3ZXVmcmF3eXBoenp5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkzMTE1NjQsImV4cCI6MjA5NDg4NzU2NH0.HSGmMtYJTCFBcS17l6RsFxrgtOZdxpzL6_5v5vI9TOo'
5
+ VITE_SUPABASE_URL='https://nzjcdmvweufrawyphzzy.supabase.co'