trybeacon 0.1.64 → 0.1.66

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 (386) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/app-path-routes-manifest.json +15 -8
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/routes-manifest.json +42 -0
  7. package/.next/server/app/_global-error/page.js +2 -2
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/.next/server/app/_not-found/page.js +2 -2
  18. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/_not-found.html +1 -1
  20. package/.next/server/app/_not-found.rsc +11 -11
  21. package/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  22. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
  24. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  27. package/.next/server/app/api/board-annotations/[id]/route.js +1 -1
  28. package/.next/server/app/api/board-annotations/route.js +1 -1
  29. package/.next/server/app/api/board-layout/route.js +1 -1
  30. package/.next/server/app/api/bug-flags/[id]/route.js +1 -1
  31. package/.next/server/app/api/bug-flags/route.js +1 -1
  32. package/.next/server/app/api/code-graph/position/route.js +1 -1
  33. package/.next/server/app/api/code-graph/route.js +1 -1
  34. package/.next/server/app/api/context/feature/route.js +1 -1
  35. package/.next/server/app/api/context/file/route.js +1 -1
  36. package/.next/server/app/api/context/route.js +1 -1
  37. package/.next/server/app/api/db/arrange/route.js +1 -1
  38. package/.next/server/app/api/db/backfill-access/route.js +1 -1
  39. package/.next/server/app/api/db/position/route.js +1 -1
  40. package/.next/server/app/api/db/prune-planned/route.js +1 -1
  41. package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
  42. package/.next/server/app/api/db/relations/[id]/route.js +1 -1
  43. package/.next/server/app/api/db/tables/[id]/route.js +1 -1
  44. package/.next/server/app/api/draft/approve/route.js +1 -1
  45. package/.next/server/app/api/draft/route.js +1 -1
  46. package/.next/server/app/api/draft/status/route.js +1 -1
  47. package/.next/server/app/api/edges/[id]/route.js +1 -1
  48. package/.next/server/app/api/edges/route.js +1 -1
  49. package/.next/server/app/api/endpoints/[id]/route.js +1 -1
  50. package/.next/server/app/api/entities/route.js +1 -1
  51. package/.next/server/app/api/feedback/[id]/route.js +1 -1
  52. package/.next/server/app/api/feedback/[id]/vote/route.js +1 -1
  53. package/.next/server/app/api/feedback/route.js +1 -1
  54. package/.next/server/app/api/flags/route.js +1 -1
  55. package/.next/server/app/api/ingest/route.js +2 -2
  56. package/.next/server/app/api/init/route.js +2 -2
  57. package/.next/server/app/api/lesson/close/route.js +1 -0
  58. package/.next/server/app/api/lesson/close/route.js.nft.json +1 -0
  59. package/.next/server/app/api/lesson/close/route_client-reference-manifest.js +1 -0
  60. package/.next/server/app/api/lesson/presence/route.js +1 -0
  61. package/.next/server/app/api/lesson/presence/route.js.nft.json +1 -0
  62. package/.next/server/app/api/lesson/presence/route_client-reference-manifest.js +1 -0
  63. package/.next/server/app/api/lesson/questions/route.js +1 -0
  64. package/.next/server/app/api/lesson/questions/route.js.nft.json +1 -0
  65. package/.next/server/app/api/lesson/questions/route_client-reference-manifest.js +1 -0
  66. package/.next/server/app/api/lesson/route.js +1 -0
  67. package/.next/server/app/api/lesson/route.js.nft.json +1 -0
  68. package/.next/server/app/api/lesson/route_client-reference-manifest.js +1 -0
  69. package/.next/server/app/api/lesson/save/route.js +1 -0
  70. package/.next/server/app/api/lesson/save/route.js.nft.json +1 -0
  71. package/.next/server/app/api/lesson/save/route_client-reference-manifest.js +1 -0
  72. package/.next/server/app/api/lesson/verdict/route.js +1 -0
  73. package/.next/server/app/api/lesson/verdict/route.js.nft.json +1 -0
  74. package/.next/server/app/api/lesson/verdict/route_client-reference-manifest.js +1 -0
  75. package/.next/server/app/api/map/describe/route.js +2 -2
  76. package/.next/server/app/api/map/files/route.js +1 -1
  77. package/.next/server/app/api/map/finish/route.js +1 -1
  78. package/.next/server/app/api/map/route.js +1 -1
  79. package/.next/server/app/api/map/start/route.js +1 -1
  80. package/.next/server/app/api/map/touch-active/route.js +1 -1
  81. package/.next/server/app/api/mention-search/route.js +1 -1
  82. package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
  83. package/.next/server/app/api/nodes/[id]/route.js +1 -1
  84. package/.next/server/app/api/nodes/positions/route.js +1 -1
  85. package/.next/server/app/api/nodes/route.js +1 -1
  86. package/.next/server/app/api/nodes/subtasks/route.js +1 -1
  87. package/.next/server/app/api/notes/[id]/route.js +1 -1
  88. package/.next/server/app/api/notes/route.js +1 -1
  89. package/.next/server/app/api/open/route.js +1 -1
  90. package/.next/server/app/api/plan/annotations/route.js +3 -3
  91. package/.next/server/app/api/plan/approve/route.js +2 -2
  92. package/.next/server/app/api/plan/history/route.js +1 -1
  93. package/.next/server/app/api/plan/markdown/route.js +1 -1
  94. package/.next/server/app/api/plan/presence/route.js +1 -1
  95. package/.next/server/app/api/plan/route.js +1 -1
  96. package/.next/server/app/api/plan/verdict/route.js +1 -1
  97. package/.next/server/app/api/preferences/route.js +1 -1
  98. package/.next/server/app/api/project-meta/route.js +1 -1
  99. package/.next/server/app/api/reset/route.js +1 -1
  100. package/.next/server/app/api/scope-guard/check/route.js +1 -1
  101. package/.next/server/app/api/share/create/route.js +1 -1
  102. package/.next/server/app/api/share/route.js +1 -1
  103. package/.next/server/app/api/stream/route.js +2 -2
  104. package/.next/server/app/api/tab/nav/route.js +1 -1
  105. package/.next/server/app/api/tab/presence/route.js +1 -1
  106. package/.next/server/app/api/telemetry/route.js +1 -1
  107. package/.next/server/app/api/telemetry/stats/route.js +1 -1
  108. package/.next/server/app/api/version/route.js +1 -1
  109. package/.next/server/app/api/workspace/activate/route.js +1 -1
  110. package/.next/server/app/api/workspace/route.js +1 -1
  111. package/.next/server/app/apple-icon.png/route.js +1 -1
  112. package/.next/server/app/docs/page.js +2 -2
  113. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  114. package/.next/server/app/docs.html +1 -1
  115. package/.next/server/app/docs.rsc +11 -11
  116. package/.next/server/app/docs.segments/_full.segment.rsc +11 -11
  117. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  118. package/.next/server/app/docs.segments/_index.segment.rsc +11 -11
  119. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  120. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  121. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  122. package/.next/server/app/feedback/page.js +2 -2
  123. package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  124. package/.next/server/app/feedback.html +1 -1
  125. package/.next/server/app/feedback.rsc +11 -11
  126. package/.next/server/app/feedback.segments/_full.segment.rsc +11 -11
  127. package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
  128. package/.next/server/app/feedback.segments/_index.segment.rsc +11 -11
  129. package/.next/server/app/feedback.segments/_tree.segment.rsc +2 -2
  130. package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +1 -1
  131. package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
  132. package/.next/server/app/help/page.js +2 -2
  133. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  134. package/.next/server/app/help.html +1 -1
  135. package/.next/server/app/help.rsc +11 -11
  136. package/.next/server/app/help.segments/_full.segment.rsc +11 -11
  137. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  138. package/.next/server/app/help.segments/_index.segment.rsc +11 -11
  139. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  140. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
  141. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  142. package/.next/server/app/icon.svg/route.js +1 -1
  143. package/.next/server/app/index.html +1 -1
  144. package/.next/server/app/index.rsc +12 -12
  145. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  146. package/.next/server/app/index.segments/_full.segment.rsc +12 -12
  147. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  148. package/.next/server/app/index.segments/_index.segment.rsc +11 -11
  149. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  150. package/.next/server/app/learn/page.js +6 -0
  151. package/.next/server/app/learn/page.js.nft.json +1 -0
  152. package/.next/server/app/learn/page_client-reference-manifest.js +1 -0
  153. package/.next/server/app/map/page.js +2 -2
  154. package/.next/server/app/map/page.js.nft.json +1 -1
  155. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  156. package/.next/server/app/page.js +2 -2
  157. package/.next/server/app/page.js.nft.json +1 -1
  158. package/.next/server/app/page_client-reference-manifest.js +1 -1
  159. package/.next/server/app/plan/page.js +2 -2
  160. package/.next/server/app/plan/page.js.nft.json +1 -1
  161. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  162. package/.next/server/app/s/[token]/page.js +2 -2
  163. package/.next/server/app/s/[token]/page.js.nft.json +1 -1
  164. package/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
  165. package/.next/server/app/settings/page.js +2 -2
  166. package/.next/server/app/settings/page.js.nft.json +1 -1
  167. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  168. package/.next/server/app-paths-manifest.json +15 -8
  169. package/.next/server/chunks/2050.js +1 -1
  170. package/.next/server/chunks/3174.js +1 -0
  171. package/.next/server/chunks/3584.js +154 -0
  172. package/.next/server/chunks/4307.js +1 -1
  173. package/.next/server/chunks/6024.js +2 -0
  174. package/.next/server/chunks/{4384.js → 7187.js} +1 -1
  175. package/.next/server/chunks/8035.js +1 -0
  176. package/.next/server/chunks/9338.js +8 -8
  177. package/.next/server/middleware-build-manifest.js +1 -1
  178. package/.next/server/pages/404.html +1 -1
  179. package/.next/server/pages/500.html +1 -1
  180. package/.next/server/server-reference-manifest.js +1 -1
  181. package/.next/server/server-reference-manifest.json +1 -1
  182. package/.next/static/P3uXQySdS-m6_bxuiezYe/_buildManifest.js +1 -0
  183. package/.next/static/chunks/1909-98243a0473be2aae.js +1 -0
  184. package/.next/static/chunks/1936-7fea5225b5bfcfda.js +1 -0
  185. package/.next/static/chunks/2019-3be80edc82176878.js +1 -0
  186. package/.next/static/chunks/4549-591415d55ca009a3.js +62 -0
  187. package/.next/static/chunks/6638-4e53879181b1df75.js +1 -0
  188. package/.next/static/chunks/{4888-911c0da3c2d785d2.js → 7043-254590cf9891391f.js} +1 -1
  189. package/.next/static/chunks/7643-6c7ff4b9400f68fc.js +1 -0
  190. package/.next/static/chunks/app/_global-error/page-2390ea0e69e5991f.js +1 -0
  191. package/.next/static/chunks/app/api/board-annotations/[id]/route-2390ea0e69e5991f.js +1 -0
  192. package/.next/static/chunks/app/api/board-annotations/route-2390ea0e69e5991f.js +1 -0
  193. package/.next/static/chunks/app/api/board-layout/route-2390ea0e69e5991f.js +1 -0
  194. package/.next/static/chunks/app/api/bug-flags/[id]/route-2390ea0e69e5991f.js +1 -0
  195. package/.next/static/chunks/app/api/bug-flags/route-2390ea0e69e5991f.js +1 -0
  196. package/.next/static/chunks/app/api/code-graph/position/route-2390ea0e69e5991f.js +1 -0
  197. package/.next/static/chunks/app/api/code-graph/route-2390ea0e69e5991f.js +1 -0
  198. package/.next/static/chunks/app/api/context/feature/route-2390ea0e69e5991f.js +1 -0
  199. package/.next/static/chunks/app/api/context/file/route-2390ea0e69e5991f.js +1 -0
  200. package/.next/static/chunks/app/api/context/route-2390ea0e69e5991f.js +1 -0
  201. package/.next/static/chunks/app/api/db/arrange/route-2390ea0e69e5991f.js +1 -0
  202. package/.next/static/chunks/app/api/db/backfill-access/route-2390ea0e69e5991f.js +1 -0
  203. package/.next/static/chunks/app/api/db/position/route-2390ea0e69e5991f.js +1 -0
  204. package/.next/static/chunks/app/api/db/prune-planned/route-2390ea0e69e5991f.js +1 -0
  205. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-2390ea0e69e5991f.js +1 -0
  206. package/.next/static/chunks/app/api/db/relations/[id]/route-2390ea0e69e5991f.js +1 -0
  207. package/.next/static/chunks/app/api/db/tables/[id]/route-2390ea0e69e5991f.js +1 -0
  208. package/.next/static/chunks/app/api/draft/approve/route-2390ea0e69e5991f.js +1 -0
  209. package/.next/static/chunks/app/api/draft/route-2390ea0e69e5991f.js +1 -0
  210. package/.next/static/chunks/app/api/draft/status/route-2390ea0e69e5991f.js +1 -0
  211. package/.next/static/chunks/app/api/edges/[id]/route-2390ea0e69e5991f.js +1 -0
  212. package/.next/static/chunks/app/api/edges/route-2390ea0e69e5991f.js +1 -0
  213. package/.next/static/chunks/app/api/endpoints/[id]/route-2390ea0e69e5991f.js +1 -0
  214. package/.next/static/chunks/app/api/entities/route-2390ea0e69e5991f.js +1 -0
  215. package/.next/static/chunks/app/api/feedback/[id]/route-2390ea0e69e5991f.js +1 -0
  216. package/.next/static/chunks/app/api/feedback/[id]/vote/route-2390ea0e69e5991f.js +1 -0
  217. package/.next/static/chunks/app/api/feedback/route-2390ea0e69e5991f.js +1 -0
  218. package/.next/static/chunks/app/api/flags/route-2390ea0e69e5991f.js +1 -0
  219. package/.next/static/chunks/app/api/ingest/route-2390ea0e69e5991f.js +1 -0
  220. package/.next/static/chunks/app/api/init/route-2390ea0e69e5991f.js +1 -0
  221. package/.next/static/chunks/app/api/lesson/close/route-2390ea0e69e5991f.js +1 -0
  222. package/.next/static/chunks/app/api/lesson/presence/route-2390ea0e69e5991f.js +1 -0
  223. package/.next/static/chunks/app/api/lesson/questions/route-2390ea0e69e5991f.js +1 -0
  224. package/.next/static/chunks/app/api/lesson/route-2390ea0e69e5991f.js +1 -0
  225. package/.next/static/chunks/app/api/lesson/save/route-2390ea0e69e5991f.js +1 -0
  226. package/.next/static/chunks/app/api/lesson/verdict/route-2390ea0e69e5991f.js +1 -0
  227. package/.next/static/chunks/app/api/map/describe/route-2390ea0e69e5991f.js +1 -0
  228. package/.next/static/chunks/app/api/map/files/route-2390ea0e69e5991f.js +1 -0
  229. package/.next/static/chunks/app/api/map/finish/route-2390ea0e69e5991f.js +1 -0
  230. package/.next/static/chunks/app/api/map/route-2390ea0e69e5991f.js +1 -0
  231. package/.next/static/chunks/app/api/map/start/route-2390ea0e69e5991f.js +1 -0
  232. package/.next/static/chunks/app/api/map/touch-active/route-2390ea0e69e5991f.js +1 -0
  233. package/.next/static/chunks/app/api/mention-search/route-2390ea0e69e5991f.js +1 -0
  234. package/.next/static/chunks/app/api/nodes/[id]/position/route-2390ea0e69e5991f.js +1 -0
  235. package/.next/static/chunks/app/api/nodes/[id]/route-2390ea0e69e5991f.js +1 -0
  236. package/.next/static/chunks/app/api/nodes/positions/route-2390ea0e69e5991f.js +1 -0
  237. package/.next/static/chunks/app/api/nodes/route-2390ea0e69e5991f.js +1 -0
  238. package/.next/static/chunks/app/api/nodes/subtasks/route-2390ea0e69e5991f.js +1 -0
  239. package/.next/static/chunks/app/api/notes/[id]/route-2390ea0e69e5991f.js +1 -0
  240. package/.next/static/chunks/app/api/notes/route-2390ea0e69e5991f.js +1 -0
  241. package/.next/static/chunks/app/api/open/route-2390ea0e69e5991f.js +1 -0
  242. package/.next/static/chunks/app/api/plan/annotations/route-2390ea0e69e5991f.js +1 -0
  243. package/.next/static/chunks/app/api/plan/approve/route-2390ea0e69e5991f.js +1 -0
  244. package/.next/static/chunks/app/api/plan/history/route-2390ea0e69e5991f.js +1 -0
  245. package/.next/static/chunks/app/api/plan/markdown/route-2390ea0e69e5991f.js +1 -0
  246. package/.next/static/chunks/app/api/plan/presence/route-2390ea0e69e5991f.js +1 -0
  247. package/.next/static/chunks/app/api/plan/route-2390ea0e69e5991f.js +1 -0
  248. package/.next/static/chunks/app/api/plan/verdict/route-2390ea0e69e5991f.js +1 -0
  249. package/.next/static/chunks/app/api/preferences/route-2390ea0e69e5991f.js +1 -0
  250. package/.next/static/chunks/app/api/project-meta/route-2390ea0e69e5991f.js +1 -0
  251. package/.next/static/chunks/app/api/reset/route-2390ea0e69e5991f.js +1 -0
  252. package/.next/static/chunks/app/api/scope-guard/check/route-2390ea0e69e5991f.js +1 -0
  253. package/.next/static/chunks/app/api/share/create/route-2390ea0e69e5991f.js +1 -0
  254. package/.next/static/chunks/app/api/share/route-2390ea0e69e5991f.js +1 -0
  255. package/.next/static/chunks/app/api/stream/route-2390ea0e69e5991f.js +1 -0
  256. package/.next/static/chunks/app/api/tab/nav/route-2390ea0e69e5991f.js +1 -0
  257. package/.next/static/chunks/app/api/tab/presence/route-2390ea0e69e5991f.js +1 -0
  258. package/.next/static/chunks/app/api/telemetry/route-2390ea0e69e5991f.js +1 -0
  259. package/.next/static/chunks/app/api/telemetry/stats/route-2390ea0e69e5991f.js +1 -0
  260. package/.next/static/chunks/app/api/version/route-2390ea0e69e5991f.js +1 -0
  261. package/.next/static/chunks/app/api/workspace/activate/route-2390ea0e69e5991f.js +1 -0
  262. package/.next/static/chunks/app/api/workspace/route-2390ea0e69e5991f.js +1 -0
  263. package/.next/static/chunks/app/layout-0c993f55d3a798f4.js +1 -0
  264. package/.next/static/chunks/app/learn/page-797d74e02b98fa88.js +5 -0
  265. package/.next/static/chunks/app/map/page-634b6d5d98e921b3.js +1 -0
  266. package/.next/static/chunks/app/page-84dc684d45002cfb.js +1 -0
  267. package/.next/static/chunks/app/plan/page-df829b2054c40611.js +1 -0
  268. package/.next/static/chunks/app/s/[token]/page-f97dec75856a7952.js +1 -0
  269. package/.next/static/chunks/app/settings/page-59d90685cd17fc1f.js +1 -0
  270. package/.next/static/chunks/next/dist/client/components/builtin/app-error-2390ea0e69e5991f.js +1 -0
  271. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-2390ea0e69e5991f.js +1 -0
  272. package/.next/static/chunks/next/dist/client/components/builtin/not-found-2390ea0e69e5991f.js +1 -0
  273. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2390ea0e69e5991f.js +1 -0
  274. package/.next/static/css/b3d3212da726bbfb.css +1 -0
  275. package/.next/trace +43 -42
  276. package/.next/trace-build +1 -1
  277. package/.next/types/app/api/lesson/close/route.ts +351 -0
  278. package/.next/types/app/api/lesson/presence/route.ts +351 -0
  279. package/.next/types/app/api/lesson/questions/route.ts +351 -0
  280. package/.next/types/app/api/lesson/route.ts +351 -0
  281. package/.next/types/app/api/lesson/save/route.ts +351 -0
  282. package/.next/types/app/api/lesson/verdict/route.ts +351 -0
  283. package/.next/types/app/learn/page.ts +87 -0
  284. package/.next/types/routes.d.ts +9 -2
  285. package/.next/types/validator.ts +63 -0
  286. package/README.md +2 -1
  287. package/dist/bin/doctor.js +92 -22
  288. package/dist/bin/hook.js +91 -21
  289. package/dist/bin/mcp.js +107 -35
  290. package/dist/bin/plan.js +92 -22
  291. package/dist/bin/uninstall.js +95 -25
  292. package/dist/lib/assets.js +81 -14
  293. package/dist/lib/codex-install.js +92 -22
  294. package/dist/lib/global-install.js +93 -23
  295. package/package.json +1 -1
  296. package/plugin/skills/beacon-explain/SKILL.md +63 -0
  297. package/.next/server/chunks/2942.js +0 -1
  298. package/.next/server/chunks/2994.js +0 -2
  299. package/.next/server/chunks/3284.js +0 -154
  300. package/.next/server/chunks/5719.js +0 -1
  301. package/.next/static/chunks/3415-05007c2bd98125c7.js +0 -1
  302. package/.next/static/chunks/5957-83f611fcd5a08b45.js +0 -1
  303. package/.next/static/chunks/766-242213d211df0afd.js +0 -1
  304. package/.next/static/chunks/874-c750840a8644deb1.js +0 -1
  305. package/.next/static/chunks/8915-fa61a860c63a7c85.js +0 -62
  306. package/.next/static/chunks/8997-78a359d0d238622e.js +0 -1
  307. package/.next/static/chunks/app/_global-error/page-548a84d85e061550.js +0 -1
  308. package/.next/static/chunks/app/api/board-annotations/[id]/route-548a84d85e061550.js +0 -1
  309. package/.next/static/chunks/app/api/board-annotations/route-548a84d85e061550.js +0 -1
  310. package/.next/static/chunks/app/api/board-layout/route-548a84d85e061550.js +0 -1
  311. package/.next/static/chunks/app/api/bug-flags/[id]/route-548a84d85e061550.js +0 -1
  312. package/.next/static/chunks/app/api/bug-flags/route-548a84d85e061550.js +0 -1
  313. package/.next/static/chunks/app/api/code-graph/position/route-548a84d85e061550.js +0 -1
  314. package/.next/static/chunks/app/api/code-graph/route-548a84d85e061550.js +0 -1
  315. package/.next/static/chunks/app/api/context/feature/route-548a84d85e061550.js +0 -1
  316. package/.next/static/chunks/app/api/context/file/route-548a84d85e061550.js +0 -1
  317. package/.next/static/chunks/app/api/context/route-548a84d85e061550.js +0 -1
  318. package/.next/static/chunks/app/api/db/arrange/route-548a84d85e061550.js +0 -1
  319. package/.next/static/chunks/app/api/db/backfill-access/route-548a84d85e061550.js +0 -1
  320. package/.next/static/chunks/app/api/db/position/route-548a84d85e061550.js +0 -1
  321. package/.next/static/chunks/app/api/db/prune-planned/route-548a84d85e061550.js +0 -1
  322. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-548a84d85e061550.js +0 -1
  323. package/.next/static/chunks/app/api/db/relations/[id]/route-548a84d85e061550.js +0 -1
  324. package/.next/static/chunks/app/api/db/tables/[id]/route-548a84d85e061550.js +0 -1
  325. package/.next/static/chunks/app/api/draft/approve/route-548a84d85e061550.js +0 -1
  326. package/.next/static/chunks/app/api/draft/route-548a84d85e061550.js +0 -1
  327. package/.next/static/chunks/app/api/draft/status/route-548a84d85e061550.js +0 -1
  328. package/.next/static/chunks/app/api/edges/[id]/route-548a84d85e061550.js +0 -1
  329. package/.next/static/chunks/app/api/edges/route-548a84d85e061550.js +0 -1
  330. package/.next/static/chunks/app/api/endpoints/[id]/route-548a84d85e061550.js +0 -1
  331. package/.next/static/chunks/app/api/entities/route-548a84d85e061550.js +0 -1
  332. package/.next/static/chunks/app/api/feedback/[id]/route-548a84d85e061550.js +0 -1
  333. package/.next/static/chunks/app/api/feedback/[id]/vote/route-548a84d85e061550.js +0 -1
  334. package/.next/static/chunks/app/api/feedback/route-548a84d85e061550.js +0 -1
  335. package/.next/static/chunks/app/api/flags/route-548a84d85e061550.js +0 -1
  336. package/.next/static/chunks/app/api/ingest/route-548a84d85e061550.js +0 -1
  337. package/.next/static/chunks/app/api/init/route-548a84d85e061550.js +0 -1
  338. package/.next/static/chunks/app/api/map/describe/route-548a84d85e061550.js +0 -1
  339. package/.next/static/chunks/app/api/map/files/route-548a84d85e061550.js +0 -1
  340. package/.next/static/chunks/app/api/map/finish/route-548a84d85e061550.js +0 -1
  341. package/.next/static/chunks/app/api/map/route-548a84d85e061550.js +0 -1
  342. package/.next/static/chunks/app/api/map/start/route-548a84d85e061550.js +0 -1
  343. package/.next/static/chunks/app/api/map/touch-active/route-548a84d85e061550.js +0 -1
  344. package/.next/static/chunks/app/api/mention-search/route-548a84d85e061550.js +0 -1
  345. package/.next/static/chunks/app/api/nodes/[id]/position/route-548a84d85e061550.js +0 -1
  346. package/.next/static/chunks/app/api/nodes/[id]/route-548a84d85e061550.js +0 -1
  347. package/.next/static/chunks/app/api/nodes/positions/route-548a84d85e061550.js +0 -1
  348. package/.next/static/chunks/app/api/nodes/route-548a84d85e061550.js +0 -1
  349. package/.next/static/chunks/app/api/nodes/subtasks/route-548a84d85e061550.js +0 -1
  350. package/.next/static/chunks/app/api/notes/[id]/route-548a84d85e061550.js +0 -1
  351. package/.next/static/chunks/app/api/notes/route-548a84d85e061550.js +0 -1
  352. package/.next/static/chunks/app/api/open/route-548a84d85e061550.js +0 -1
  353. package/.next/static/chunks/app/api/plan/annotations/route-548a84d85e061550.js +0 -1
  354. package/.next/static/chunks/app/api/plan/approve/route-548a84d85e061550.js +0 -1
  355. package/.next/static/chunks/app/api/plan/history/route-548a84d85e061550.js +0 -1
  356. package/.next/static/chunks/app/api/plan/markdown/route-548a84d85e061550.js +0 -1
  357. package/.next/static/chunks/app/api/plan/presence/route-548a84d85e061550.js +0 -1
  358. package/.next/static/chunks/app/api/plan/route-548a84d85e061550.js +0 -1
  359. package/.next/static/chunks/app/api/plan/verdict/route-548a84d85e061550.js +0 -1
  360. package/.next/static/chunks/app/api/preferences/route-548a84d85e061550.js +0 -1
  361. package/.next/static/chunks/app/api/project-meta/route-548a84d85e061550.js +0 -1
  362. package/.next/static/chunks/app/api/reset/route-548a84d85e061550.js +0 -1
  363. package/.next/static/chunks/app/api/scope-guard/check/route-548a84d85e061550.js +0 -1
  364. package/.next/static/chunks/app/api/share/create/route-548a84d85e061550.js +0 -1
  365. package/.next/static/chunks/app/api/share/route-548a84d85e061550.js +0 -1
  366. package/.next/static/chunks/app/api/stream/route-548a84d85e061550.js +0 -1
  367. package/.next/static/chunks/app/api/tab/nav/route-548a84d85e061550.js +0 -1
  368. package/.next/static/chunks/app/api/tab/presence/route-548a84d85e061550.js +0 -1
  369. package/.next/static/chunks/app/api/telemetry/route-548a84d85e061550.js +0 -1
  370. package/.next/static/chunks/app/api/telemetry/stats/route-548a84d85e061550.js +0 -1
  371. package/.next/static/chunks/app/api/version/route-548a84d85e061550.js +0 -1
  372. package/.next/static/chunks/app/api/workspace/activate/route-548a84d85e061550.js +0 -1
  373. package/.next/static/chunks/app/api/workspace/route-548a84d85e061550.js +0 -1
  374. package/.next/static/chunks/app/layout-3115f8503ff00902.js +0 -1
  375. package/.next/static/chunks/app/map/page-491d4767dbc4e954.js +0 -1
  376. package/.next/static/chunks/app/page-d08947a671077569.js +0 -1
  377. package/.next/static/chunks/app/plan/page-a90e0981499546e3.js +0 -1
  378. package/.next/static/chunks/app/s/[token]/page-5c8f260e75758b02.js +0 -1
  379. package/.next/static/chunks/app/settings/page-7e176d120b1effa9.js +0 -1
  380. package/.next/static/chunks/next/dist/client/components/builtin/app-error-548a84d85e061550.js +0 -1
  381. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-548a84d85e061550.js +0 -1
  382. package/.next/static/chunks/next/dist/client/components/builtin/not-found-548a84d85e061550.js +0 -1
  383. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-548a84d85e061550.js +0 -1
  384. package/.next/static/css/490566ec68a48e1a.css +0 -1
  385. package/.next/static/qoq7TibU72duRZATxeVnT/_buildManifest.js +0 -1
  386. /package/.next/static/{qoq7TibU72duRZATxeVnT → P3uXQySdS-m6_bxuiezYe}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";exports.id=8035,exports.ids=[8035],exports.modules={21654:(a,b,c)=>{c.d(b,{F:()=>g});var d=c(99314);let e=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,f=d.$,g=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return f(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:g,defaultVariants:h}=b,i=Object.keys(g).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let f=e(b)||e(d);return g[a][f]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return f(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)}},23673:(a,b,c)=>{c.d(b,{m:()=>f,p:()=>g});var d=c(82466),e=c(67484);let f=e.createContext(void 0);function g(){let a=e.useContext(f);if(void 0===a)throw Error((0,d.A)(26));return a}},25845:(a,b,c)=>{c.d(b,{h:()=>t});var d,e,f=c(67484),g=c(20211),h=c(59165),i=c(37058),j=c(46493),k=c(45863);let l=((d={}).nestedDialogs="--nested-dialogs",d),m=((e={})[e.open=j.lP.open]="open",e[e.closed=j.lP.closed]="closed",e[e.startingStyle=j.lP.startingStyle]="startingStyle",e[e.endingStyle=j.lP.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e);var n=c(23673),o=c(39533),p=c(71270),q=c(20432),r=c(48249);let s={...j.GW,...k.G,nestedDialogOpen:a=>a?{[m.nestedDialogOpen]:""}:null},t=f.forwardRef(function(a,b){let{render:c,className:d,style:e,finalFocus:f,initialFocus:j,...k}=a,{store:m}=(0,h.PQ)(),t=m.useState("descriptionElementId"),u=m.useState("disablePointerDismissal"),v=m.useState("floatingRootContext"),w=m.useState("popupProps"),x=m.useState("modal"),y=m.useState("mounted"),z=m.useState("nested"),A=m.useState("nestedOpenDialogCount"),B=m.useState("open"),C=m.useState("openMethod"),D=m.useState("titleElementId"),E=m.useState("transitionStatus"),F=m.useState("role"),G=v.useState("floatingId"),H=k.id??G;(0,n.p)(),(0,o.v)({open:B,ref:m.context.popupRef,onComplete(){B&&m.context.onOpenChangeComplete?.(!0)}});let I=void 0===j?function(a){return"touch"!==a||m.context.popupRef.current}:j,J=m.useStateSetter("popupElement"),K=(0,i.o)("div",a,{state:{open:B,nested:z,transitionStatus:E,nestedDialogOpen:A>0},props:[w,{id:H,"aria-labelledby":D??void 0,"aria-describedby":t??void 0,role:F,...q.Ls,hidden:!y,onKeyDown(a){p.jF.has(a.key)&&a.stopPropagation()},style:{[l.nestedDialogs]:A}},k],ref:[b,m.context.popupRef,J],stateAttributesMapping:s});return(0,r.jsx)(g.s,{context:v,openInteractionType:C,disabled:!y,closeOnFocusOut:!u,initialFocus:I,returnFocus:f,modal:!1!==x,restoreFocus:"popup",children:K})})},36902:(a,b,c)=>{c.d(b,{L:()=>h});var d=c(67484),e=c(59165),f=c(37058),g=c(61156);let h=d.forwardRef(function(a,b){let{render:c,className:d,style:h,id:i,...j}=a,{store:k}=(0,e.PQ)(),l=(0,g.e)(i);return k.useSyncedValueWithCleanup("titleElementId",l),(0,f.o)("h2",a,{ref:b,props:[{id:l},j]})})},48581:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(64686).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},59165:(a,b,c)=>{c.d(b,{PQ:()=>h,Ts:()=>f,am:()=>g});var d=c(82466),e=c(67484);let f=e.createContext(!1),g=e.createContext(void 0);function h(a){let b=e.useContext(g);if(!1===a&&void 0===b)throw Error((0,d.A)(27));return b}},60388:(a,b,c)=>{c.d(b,{Z:()=>k});var d=c(67484),e=c(53013),f=c(43383),g=c(59165),h=c(23673),i=c(57491),j=c(48249);let k=d.forwardRef(function(a,b){let{keepMounted:c=!1,...d}=a,{store:k}=(0,g.PQ)(),l=k.useState("mounted"),m=k.useState("modal"),n=k.useState("open");return l||c?(0,j.jsx)(h.m.Provider,{value:c,children:(0,j.jsxs)(f.XF,{ref:b,...d,children:[l&&!0===m&&(0,j.jsx)(i.W,{ref:k.context.internalBackdropRef,inert:(0,e.Y)(!n)}),a.children]})}):null})},64230:(a,b,c)=>{c.d(b,{r:()=>h});var d=c(67484),e=c(59165),f=c(37058),g=c(61156);let h=d.forwardRef(function(a,b){let{render:c,className:d,style:h,id:i,...j}=a,{store:k}=(0,e.PQ)(),l=(0,g.e)(i);return k.useSyncedValueWithCleanup("descriptionElementId",l),(0,f.o)("p",a,{ref:b,props:[{id:l},j]})})},70813:(a,b,c)=>{c.d(b,{Button:()=>g});var d=c(67484),e=c(29522),f=c(37058);let g=d.forwardRef(function(a,b){let{render:c,className:d,disabled:g=!1,focusableWhenDisabled:h=!1,nativeButton:i=!0,style:j,...k}=a,{getButtonProps:l,buttonRef:m}=(0,e.s)({disabled:g,focusableWhenDisabled:h,native:i});return(0,f.o)("button",a,{state:{disabled:g},ref:[b,m],props:[k,l]})})},71523:(a,b,c)=>{c.d(b,{V:()=>e});var d=c(81066);function e(a){return(0,d.G)(a,"alert-dialog")}},74283:(a,b,c)=>{c.d(b,{X:()=>j});var d=c(67484),e=c(59165),f=c(37058),g=c(46493),h=c(45863);let i={...g.GW,...h.G},j=d.forwardRef(function(a,b){let{render:c,className:d,style:g,forceRender:h=!1,...j}=a,{store:k}=(0,e.PQ)(),l=k.useState("open"),m=k.useState("nested"),n=k.useState("mounted"),o=k.useState("transitionStatus");return(0,f.o)("div",a,{state:{open:l,transitionStatus:o},ref:[k.context.backdropRef,b],stateAttributesMapping:i,props:[{role:"presentation",hidden:!n,style:{userSelect:"none",WebkitUserSelect:"none"}},j],enabled:h||!m})})},81066:(a,b,c)=>{c.d(b,{G:()=>A});var d=c(67484),e=c(9716),f=c(95275),g=c(46583),h=c(67708),i=c(20036),j=c(66025),k=c(67056),l=c(22054),m=c(20432);function n({store:a,dialogRoot:b}){let{parentContext:c,isDrawer:e}=b,k=a.useState("open"),l=a.useState("disablePointerDismissal"),o=a.useState("modal"),p=a.useState("popupElement"),q=a.useState("floatingRootContext"),[r,s]=d.useState(0),[t,u]=d.useState(0),v=0===r,w=(0,i.s)(q,{outsidePressEvent:()=>a.context.internalBackdropRef.current||a.context.backdropRef.current?"intentional":{mouse:"trap-focus"===o?"sloppy":"intentional",touch:"sloppy"},outsidePress(b){if(!a.context.outsidePressEnabledRef.current||"button"in b&&0!==b.button||"touches"in b&&1!==b.touches.length)return!1;let c=(0,j.EW)(b);return!!v&&!l&&(!o||!a.context.internalBackdropRef.current&&!a.context.backdropRef.current||a.context.internalBackdropRef.current===c||a.context.backdropRef.current===c||(0,j.gR)(c,p)&&!c?.hasAttribute("data-base-ui-portal"))},escapeKey:v});(0,f.K)(k&&!0===o,p),a.useContextCallback("onNestedDialogOpen",(a,b)=>{s(a),u(b)}),a.useContextCallback("onNestedDialogClose",()=>{s(0),u(0)}),d.useEffect(()=>(c?.onNestedDialogOpen&&k&&c.onNestedDialogOpen(r+1,t+ +!!e),c?.onNestedDialogClose&&!k&&c.onNestedDialogClose(),()=>{c?.onNestedDialogClose&&k&&c.onNestedDialogClose()}),[e,k,r,t,c]);let x=w.reference??g.t0,y=w.trigger??g.t0,z=d.useMemo(()=>(0,h.v6)(m.Ls,w.floating),[w.floating]);return(0,m.i6)(a,{activeTriggerProps:x,inactiveTriggerProps:y,popupProps:z,nestedOpenDialogCount:r,nestedOpenDrawerCount:t}),null}var o=c(59165),p=c(61935),q=c(15418),r=c(31483),s=c(57544);let t=(0,p.M)(a=>a.triggerIdProp??a.activeTriggerId),u=(0,p.M)(a=>a.openProp??a.open),v=(0,p.M)(a=>(a.popupElement?.id??a.floatingId)||void 0);function w(a,b){return void 0!==b&&u(a)&&t(a)===b}let x={...{open:u,mounted:(0,p.M)(a=>a.mounted),transitionStatus:(0,p.M)(a=>a.transitionStatus),floatingRootContext:(0,p.M)(a=>a.floatingRootContext),triggerCount:(0,p.M)(a=>a.triggerCount),preventUnmountingOnClose:(0,p.M)(a=>a.preventUnmountingOnClose),payload:(0,p.M)(a=>a.payload),activeTriggerId:t,activeTriggerElement:(0,p.M)(a=>a.mounted?a.activeTriggerElement:null),popupId:v,isTriggerActive:(0,p.M)((a,b)=>void 0!==b&&t(a)===b),isOpenedByTrigger:(0,p.M)((a,b)=>w(a,b)),isMountedByTrigger:(0,p.M)((a,b)=>void 0!==b&&t(a)===b&&a.mounted),triggerProps:(0,p.M)((a,b)=>b?a.activeTriggerProps:a.inactiveTriggerProps),triggerPopupId:(0,p.M)((a,b)=>w(a,b)||void 0!==b&&u(a)&&null==t(a)&&1===a.triggerCount?v(a):void 0),popupProps:(0,p.M)(a=>a.popupProps),popupElement:(0,p.M)(a=>a.popupElement),positionerElement:(0,p.M)(a=>a.positionerElement)},modal:(0,p.M)(a=>a.modal),nested:(0,p.M)(a=>a.nested),nestedOpenDialogCount:(0,p.M)(a=>a.nestedOpenDialogCount),nestedOpenDrawerCount:(0,p.M)(a=>a.nestedOpenDrawerCount),disablePointerDismissal:(0,p.M)(a=>a.disablePointerDismissal),openMethod:(0,p.M)(a=>a.openMethod),descriptionElementId:(0,p.M)(a=>a.descriptionElementId),titleElementId:(0,p.M)(a=>a.titleElementId),viewportElement:(0,p.M)(a=>a.viewportElement),role:(0,p.M)(a=>a.role)};class y extends q.H{constructor(a,b,c=!1){const e=new s.Z,f=function(a={}){return{...{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new r.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new s.Z,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:g.t0,inactiveTriggerProps:g.t0,popupProps:g.t0},modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...a}}(a);f.floatingRootContext=function(a,b,c=!1){return new r.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:a,floatingId:b,syncOnly:!0,nested:c,onOpenChange:void 0})}(e,b,c),super(f,{popupRef:d.createRef(),backdropRef:d.createRef(),internalBackdropRef:d.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0},x)}setOpen=(a,b)=>{if(b.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},a||null!=b.trigger||null==this.state.activeTriggerId||(b.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(a,b),b.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(a,b);let c={open:a};(0,m.CN)(c,a,b.trigger),this.update(c)};static useStore(a,b){return(0,m.Nj)(a,(a,c)=>new y(b,a,c),!0).store}}var z=c(48249);function A(a,b="dialog"){let{children:c,open:f,defaultOpen:g=!1,onOpenChange:h,onOpenChangeComplete:i,disablePointerDismissal:j=!1,modal:p=!0,actionsRef:q,handle:r,triggerId:s,defaultTriggerId:t=null}=a,u="alert-dialog"===b,v=(0,o.PQ)(!0),w={modal:!!u||p,disablePointerDismissal:u||j,nested:!!v,role:u?"alertdialog":"dialog"},x=y.useStore(r?.store,{open:g,openProp:f,activeTriggerId:t,triggerIdProp:s,...w});(0,e.j)(()=>{let a=void 0===f&&!1===x.state.open&&!0===g?{open:!0,activeTriggerId:t}:null;u?x.update(a?{...w,...a}:w):a&&x.update(a)}),x.useControlledProp("openProp",f),x.useControlledProp("triggerIdProp",s),x.useSyncedValues(w),x.useContextCallback("onOpenChange",h),x.useContextCallback("onOpenChangeComplete",i);let B=x.useState("open"),C=x.useState("mounted"),D=x.useState("payload"),E=function(a){let{store:b,parentContext:c,actionsRef:e,isDrawer:f}=a,g=b.useState("open");(0,m.xs)(b,g),(0,m.tr)(b);let{forceUnmount:h}=(0,m.l$)(g,b),i=d.useCallback(()=>{b.setOpen(!1,(0,k.d)(l.zJ))},[b]);return d.useImperativeHandle(e,()=>({unmount:h,close:i}),[h,i]),{parentContext:c,isDrawer:f}}({store:x,actionsRef:q,parentContext:v?.store.context,isDrawer:"drawer"===b}),F=d.useMemo(()=>({store:x}),[x]);return(0,z.jsx)(o.Ts.Provider,{value:!1,children:(0,z.jsxs)(o.am.Provider,{value:F,children:[(B||C)&&(0,z.jsx)(n,{store:x,dialogRoot:E}),"function"==typeof c?c({payload:D}):c]})})}},87298:(a,b,c)=>{c.d(b,{H:()=>j});var d=c(67484),e=c(59165),f=c(37058),g=c(29522),h=c(67056),i=c(22054);let j=d.forwardRef(function(a,b){let{render:c,className:d,style:j,disabled:k=!1,nativeButton:l=!0,...m}=a,{store:n}=(0,e.PQ)(),o=n.useState("open"),{getButtonProps:p,buttonRef:q}=(0,g.s)({disabled:k,native:l});return(0,f.o)("button",a,{state:{disabled:k},ref:[b,q],props:[{onClick:function(a){o&&n.setOpen(!1,(0,h.d)(i.SR,a.nativeEvent))}},m,p]})})},99469:(a,b,c)=>{c.d(b,{t:()=>o});var d=c(82466),e=c(67484),f=c(59165),g=c(29522),h=c(37058),i=c(46493),j=c(98816),k=c(20432),l=c(61156),m=c(46304),n=c(14908);let o=e.forwardRef(function(a,b){let{render:c,className:o,style:p,disabled:q=!1,nativeButton:r=!0,id:s,payload:t,handle:u,...v}=a,w=(0,f.PQ)(!0),x=u?.store??w?.store;if(!x)throw Error((0,d.A)(79));let y=(0,l.e)(s),z=x.useState("floatingRootContext"),A=x.useState("isOpenedByTrigger",y),B=x.useState("triggerPopupId",y),C=e.useRef(null),{registerTrigger:D,isMountedByThisTrigger:E}=(0,k.L_)(y,C,x,{payload:t}),{getButtonProps:F,buttonRef:G}=(0,g.s)({disabled:q,native:r}),H=(0,m.k)(z,{enabled:null!=z}),I=(0,n.L)(()=>x.select("open"),a=>{x.set("openMethod",a)}),J=x.useState("triggerProps",E);return(0,h.o)("button",a,{state:{disabled:q,open:A},ref:[G,b,D,C],props:[H.reference,J,I,{[j.Kd]:"",id:y,"aria-haspopup":"dialog","aria-expanded":A,"aria-controls":B},v,F],stateAttributesMapping:i.qV})})}};
@@ -1,4 +1,10 @@
1
- "use strict";exports.id=9338,exports.ids=[9338],exports.modules={7552:(a,b,c)=>{c.d(b,{gK:()=>bF,lw:()=>bu});var d,e,f,g,h,i,j=Object.create,k=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,n=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,p=(a,b)=>k(a,"name",{value:b,configurable:!0}),q=(a,b)=>()=>(a&&(b=a(a=0)),b),r=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),s=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0})},t=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let e of m(b))o.call(a,e)||e===c||k(a,e,{get:()=>b[e],enumerable:!(d=l(b,e))||d.enumerable});return a},u=(a,b,c)=>(c=null!=a?j(n(a)):{},t(!b&&a&&a.__esModule?c:k(c,"default",{value:a,enumerable:!0}),a)),v=a=>t(k({},"__esModule",{value:!0}),a),w=(a,b,c)=>{let d;return(d="symbol"!=typeof b?b+"":b)in a?k(a,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[d]=c},x=r(a=>{A(),a.byteLength=i,a.toByteArray=k,a.fromByteArray=n;var b,c,d=[],e=[],f="u">typeof Uint8Array?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(b=0,c=g.length;b<c;++b)d[b]=g[b],e[g.charCodeAt(b)]=b;function h(a){var b=a.length;if(b%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}function i(a){var b=h(a),c=b[0],d=b[1];return(c+d)*3/4-d}function j(a,b,c){return(b+c)*3/4-c}function k(a){var b,c,d=h(a),g=d[0],i=d[1],k=new f(j(a,g,i)),l=0,m=i>0?g-4:g;for(c=0;c<m;c+=4)b=e[a.charCodeAt(c)]<<18|e[a.charCodeAt(c+1)]<<12|e[a.charCodeAt(c+2)]<<6|e[a.charCodeAt(c+3)],k[l++]=b>>16&255,k[l++]=b>>8&255,k[l++]=255&b;return 2===i&&(b=e[a.charCodeAt(c)]<<2|e[a.charCodeAt(c+1)]>>4,k[l++]=255&b),1===i&&(b=e[a.charCodeAt(c)]<<10|e[a.charCodeAt(c+1)]<<4|e[a.charCodeAt(c+2)]>>2,k[l++]=b>>8&255,k[l++]=255&b),k}function l(a){return d[a>>18&63]+d[a>>12&63]+d[a>>6&63]+d[63&a]}function m(a,b,c){for(var d=[],e=b;e<c;e+=3)d.push(l((a[e]<<16&0xff0000)+(a[e+1]<<8&65280)+(255&a[e+2])));return d.join("")}function n(a){for(var b,c=a.length,e=c%3,f=[],g=0,h=c-e;g<h;g+=16383)f.push(m(a,g,g+16383>h?h:g+16383));return 1===e?f.push(d[(b=a[c-1])>>2]+d[b<<4&63]+"=="):2===e&&f.push(d[(b=(a[c-2]<<8)+a[c-1])>>10]+d[b>>4&63]+d[b<<2&63]+"="),f.join("")}e[45]=62,e[95]=63,p(h,"getLens"),p(i,"byteLength"),p(j,"_byteLength"),p(k,"toByteArray"),p(l,"tripletToBase64"),p(m,"encodeChunk"),p(n,"fromByteArray")}),y=r(a=>{A(),a.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:1/0*(n?-1:1);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},a.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=5960464477539062e-23*(23===e),n=d?0:f-1,o=d?1:-1,p=+(b<0||0===b&&1/b<0);for(isNaN(b=Math.abs(b))||b===1/0?(h=+!!isNaN(b),g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),g+l>=1?b+=m/i:b+=m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}}),z=r(a=>{A();var b=x(),c=y(),d="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function e(){try{let a=new Uint8Array(1),b={foo:p(function(){return 42},"foo")};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(a,b),42===a.foo()}catch{return!1}}function f(a){if(a>0x7fffffff)throw RangeError('The value "'+a+'" is invalid for option "size"');let b=new Uint8Array(a);return Object.setPrototypeOf(b,g.prototype),b}function g(a,b,c){if("number"==typeof a){if("string"==typeof b)throw TypeError('The "string" argument must be of type string. Received type number');return k(a)}return h(a,b,c)}function h(a,b,c){if("string"==typeof a)return l(a,b);if(ArrayBuffer.isView(a))return n(a);if(null==a)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(ag(a,ArrayBuffer)||a&&ag(a.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(ag(a,SharedArrayBuffer)||a&&ag(a.buffer,SharedArrayBuffer)))return o(a,b,c);if("number"==typeof a)throw TypeError('The "value" argument must not be of type number. Received type number');let d=a.valueOf&&a.valueOf();if(null!=d&&d!==a)return g.from(d,b,c);let e=q(a);if(e)return e;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof a[Symbol.toPrimitive])return g.from(a[Symbol.toPrimitive]("string"),b,c);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}function i(a){if("number"!=typeof a)throw TypeError('"size" argument must be of type number');if(a<0)throw RangeError('The value "'+a+'" is invalid for option "size"')}function j(a,b,c){return i(a),a<=0?f(a):void 0!==b?"string"==typeof c?f(a).fill(b,c):f(a).fill(b):f(a)}function k(a){return i(a),f(a<0?0:0|r(a))}function l(a,b){if(("string"!=typeof b||""===b)&&(b="utf8"),!g.isEncoding(b))throw TypeError("Unknown encoding: "+b);let c=0|t(a,b),d=f(c),e=d.write(a,b);return e!==c&&(d=d.slice(0,e)),d}function m(a){let b=a.length<0?0:0|r(a.length),c=f(b);for(let d=0;d<b;d+=1)c[d]=255&a[d];return c}function n(a){if(ag(a,Uint8Array)){let b=new Uint8Array(a);return o(b.buffer,b.byteOffset,b.byteLength)}return m(a)}function o(a,b,c){let d;if(b<0||a.byteLength<b)throw RangeError('"offset" is outside of buffer bounds');if(a.byteLength<b+(c||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(d=void 0===b&&void 0===c?new Uint8Array(a):void 0===c?new Uint8Array(a,b):new Uint8Array(a,b,c),g.prototype),d}function q(a){if(g.isBuffer(a)){let b=0|r(a.length),c=f(b);return 0===c.length||a.copy(c,0,0,b),c}return void 0!==a.length?"number"!=typeof a.length||ah(a.length)?f(0):m(a):"Buffer"===a.type&&Array.isArray(a.data)?m(a.data):void 0}function r(a){if(a>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|a}function s(a){return+a!=a&&(a=0),g.alloc(+a)}function t(a,b){if(g.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||ag(a,ArrayBuffer))return a.byteLength;if("string"!=typeof a)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);let c=a.length,d=arguments.length>2&&!0===arguments[2];if(!d&&0===c)return 0;let e=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return ab(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return ae(a).length;default:if(e)return d?-1:ab(a).length;b=(""+b).toLowerCase(),e=!0}}function u(a,b,c){let d=!1;if((void 0===b||b<0)&&(b=0),b>this.length||((void 0===c||c>this.length)&&(c=this.length),c<=0)||(c>>>=0)<=(b>>>=0))return"";for(a||(a="utf8");;)switch(a){case"hex":return L(this,b,c);case"utf8":case"utf-8":return H(this,b,c);case"ascii":return J(this,b,c);case"latin1":case"binary":return K(this,b,c);case"base64":return G(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,b,c);default:if(d)throw TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function v(a,b,c){let d=a[b];a[b]=a[c],a[c]=d}function w(a,b,c,d,e){if(0===a.length)return -1;if("string"==typeof c?(d=c,c=0):c>0x7fffffff?c=0x7fffffff:c<-0x80000000&&(c=-0x80000000),ah(c*=1)&&(c=e?0:a.length-1),c<0&&(c=a.length+c),c>=a.length){if(e)return -1;c=a.length-1}else if(c<0)if(!e)return -1;else c=0;if("string"==typeof b&&(b=g.from(b,d)),g.isBuffer(b))return 0===b.length?-1:z(a,b,c,d,e);if("number"==typeof b)return b&=255,"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):z(a,[b],c,d,e);throw TypeError("val must be string, number or Buffer")}function z(a,b,c,d,e){let f,g=1,h=a.length,i=b.length;if(void 0!==d&&("ucs2"===(d=String(d).toLowerCase())||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return -1;g=2,h/=2,i/=2,c/=2}function j(a,b){return 1===g?a[b]:a.readUInt16BE(b*g)}if(p(j,"read"),e){let d=-1;for(f=c;f<h;f++)if(j(a,f)===j(b,-1===d?0:f-d)){if(-1===d&&(d=f),f-d+1===i)return d*g}else -1!==d&&(f-=f-d),d=-1}else for(c+i>h&&(c=h-i),f=c;f>=0;f--){let c=!0;for(let d=0;d<i;d++)if(j(a,f+d)!==j(b,d)){c=!1;break}if(c)return f}return -1}function B(a,b,c,d){let e;c=Number(c)||0;let f=a.length-c;d?(d=Number(d))>f&&(d=f):d=f;let g=b.length;for(d>g/2&&(d=g/2),e=0;e<d;++e){let d=parseInt(b.substr(2*e,2),16);if(ah(d))break;a[c+e]=d}return e}function C(a,b,c,d){return af(ab(b,a.length-c),a,c,d)}function D(a,b,c,d){return af(ac(b),a,c,d)}function E(a,b,c,d){return af(ae(b),a,c,d)}function F(a,b,c,d){return af(ad(b,a.length-c),a,c,d)}function G(a,c,d){return 0===c&&d===a.length?b.fromByteArray(a):b.fromByteArray(a.slice(c,d))}function H(a,b,c){c=Math.min(a.length,c);let d=[],e=b;for(;e<c;){let b=a[e],f=null,g=b>239?4:b>223?3:b>191?2:1;if(e+g<=c){let c,d,h,i;switch(g){case 1:b<128&&(f=b);break;case 2:(192&(c=a[e+1]))==128&&(i=(31&b)<<6|63&c)>127&&(f=i);break;case 3:c=a[e+1],d=a[e+2],(192&c)==128&&(192&d)==128&&(i=(15&b)<<12|(63&c)<<6|63&d)>2047&&(i<55296||i>57343)&&(f=i);break;case 4:c=a[e+1],d=a[e+2],h=a[e+3],(192&c)==128&&(192&d)==128&&(192&h)==128&&(i=(15&b)<<18|(63&c)<<12|(63&d)<<6|63&h)>65535&&i<1114112&&(f=i)}}null===f?(f=65533,g=1):f>65535&&(f-=65536,d.push(f>>>10&1023|55296),f=56320|1023&f),d.push(f),e+=g}return I(d)}function I(a){let b=a.length;if(b<=4096)return String.fromCharCode.apply(String,a);let c="",d=0;for(;d<b;)c+=String.fromCharCode.apply(String,a.slice(d,d+=4096));return c}function J(a,b,c){let d="";c=Math.min(a.length,c);for(let e=b;e<c;++e)d+=String.fromCharCode(127&a[e]);return d}function K(a,b,c){let d="";c=Math.min(a.length,c);for(let e=b;e<c;++e)d+=String.fromCharCode(a[e]);return d}function L(a,b,c){let d=a.length;(!b||b<0)&&(b=0),(!c||c<0||c>d)&&(c=d);let e="";for(let d=b;d<c;++d)e+=ai[a[d]];return e}function M(a,b,c){let d=a.slice(b,c),e="";for(let a=0;a<d.length-1;a+=2)e+=String.fromCharCode(d[a]+256*d[a+1]);return e}function N(a,b,c){if(a%1!=0||a<0)throw RangeError("offset is not uint");if(a+b>c)throw RangeError("Trying to access beyond buffer length")}function O(a,b,c,d,e,f){if(!g.isBuffer(a))throw TypeError('"buffer" argument must be a Buffer instance');if(b>e||b<f)throw RangeError('"value" argument is out of bounds');if(c+d>a.length)throw RangeError("Index out of range")}function P(a,b,c,d,e){Y(b,d,e,a,c,7);let f=Number(b&BigInt(0xffffffff));a[c++]=f,f>>=8,a[c++]=f,f>>=8,a[c++]=f,f>>=8,a[c++]=f;let g=Number(b>>BigInt(32)&BigInt(0xffffffff));return a[c++]=g,g>>=8,a[c++]=g,g>>=8,a[c++]=g,g>>=8,a[c++]=g,c}function Q(a,b,c,d,e){Y(b,d,e,a,c,7);let f=Number(b&BigInt(0xffffffff));a[c+7]=f,f>>=8,a[c+6]=f,f>>=8,a[c+5]=f,f>>=8,a[c+4]=f;let g=Number(b>>BigInt(32)&BigInt(0xffffffff));return a[c+3]=g,g>>=8,a[c+2]=g,g>>=8,a[c+1]=g,g>>=8,a[c]=g,c+8}function R(a,b,c,d,e,f){if(c+d>a.length||c<0)throw RangeError("Index out of range")}function S(a,b,d,e,f){return b*=1,d>>>=0,f||R(a,b,d,4,34028234663852886e22,-34028234663852886e22),c.write(a,b,d,e,23,4),d+4}function T(a,b,d,e,f){return b*=1,d>>>=0,f||R(a,b,d,8,17976931348623157e292,-17976931348623157e292),c.write(a,b,d,e,52,8),d+8}a.Buffer=g,a.SlowBuffer=s,a.INSPECT_MAX_BYTES=50,a.kMaxLength=0x7fffffff,g.TYPED_ARRAY_SUPPORT=e(),!g.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),p(e,"typedArraySupport"),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:p(function(){if(g.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:p(function(){if(g.isBuffer(this))return this.byteOffset},"get")}),p(f,"createBuffer"),p(g,"Buffer"),g.poolSize=8192,p(h,"from"),g.from=function(a,b,c){return h(a,b,c)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),p(i,"assertSize"),p(j,"alloc"),g.alloc=function(a,b,c){return j(a,b,c)},p(k,"allocUnsafe"),g.allocUnsafe=function(a){return k(a)},g.allocUnsafeSlow=function(a){return k(a)},p(l,"fromString"),p(m,"fromArrayLike"),p(n,"fromArrayView"),p(o,"fromArrayBuffer"),p(q,"fromObject"),p(r,"checked"),p(s,"SlowBuffer"),g.isBuffer=p(function(a){return null!=a&&!0===a._isBuffer&&a!==g.prototype},"isBuffer"),g.compare=p(function(a,b){if(ag(a,Uint8Array)&&(a=g.from(a,a.offset,a.byteLength)),ag(b,Uint8Array)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(a)||!g.isBuffer(b))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;let c=a.length,d=b.length;for(let e=0,f=Math.min(c,d);e<f;++e)if(a[e]!==b[e]){c=a[e],d=b[e];break}return c<d?-1:+(d<c)},"compare"),g.isEncoding=p(function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),g.concat=p(function(a,b){let c;if(!Array.isArray(a))throw TypeError('"list" argument must be an Array of Buffers');if(0===a.length)return g.alloc(0);if(void 0===b)for(b=0,c=0;c<a.length;++c)b+=a[c].length;let d=g.allocUnsafe(b),e=0;for(c=0;c<a.length;++c){let b=a[c];if(ag(b,Uint8Array))e+b.length>d.length?(g.isBuffer(b)||(b=g.from(b)),b.copy(d,e)):Uint8Array.prototype.set.call(d,b,e);else if(g.isBuffer(b))b.copy(d,e);else throw TypeError('"list" argument must be an Array of Buffers');e+=b.length}return d},"concat"),p(t,"byteLength"),g.byteLength=t,p(u,"slowToString"),g.prototype._isBuffer=!0,p(v,"swap"),g.prototype.swap16=p(function(){let a=this.length;if(a%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<a;b+=2)v(this,b,b+1);return this},"swap16"),g.prototype.swap32=p(function(){let a=this.length;if(a%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<a;b+=4)v(this,b,b+3),v(this,b+1,b+2);return this},"swap32"),g.prototype.swap64=p(function(){let a=this.length;if(a%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<a;b+=8)v(this,b,b+7),v(this,b+1,b+6),v(this,b+2,b+5),v(this,b+3,b+4);return this},"swap64"),g.prototype.toString=p(function(){let a=this.length;return 0===a?"":0==arguments.length?H(this,0,a):u.apply(this,arguments)},"toString"),g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=p(function(a){if(!g.isBuffer(a))throw TypeError("Argument must be a Buffer");return this===a||0===g.compare(this,a)},"equals"),g.prototype.inspect=p(function(){let b="",c=a.INSPECT_MAX_BYTES;return b=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(b+=" ... "),"<Buffer "+b+">"},"inspect"),d&&(g.prototype[d]=g.prototype.inspect),g.prototype.compare=p(function(a,b,c,d,e){if(ag(a,Uint8Array)&&(a=g.from(a,a.offset,a.byteLength)),!g.isBuffer(a))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(void 0===b&&(b=0),void 0===c&&(c=a?a.length:0),void 0===d&&(d=0),void 0===e&&(e=this.length),b<0||c>a.length||d<0||e>this.length)throw RangeError("out of range index");if(d>=e&&b>=c)return 0;if(d>=e)return -1;if(b>=c)return 1;if(b>>>=0,c>>>=0,d>>>=0,e>>>=0,this===a)return 0;let f=e-d,h=c-b,i=Math.min(f,h),j=this.slice(d,e),k=a.slice(b,c);for(let a=0;a<i;++a)if(j[a]!==k[a]){f=j[a],h=k[a];break}return f<h?-1:+(h<f)},"compare"),p(w,"bidirectionalIndexOf"),p(z,"arrayIndexOf"),g.prototype.includes=p(function(a,b,c){return -1!==this.indexOf(a,b,c)},"includes"),g.prototype.indexOf=p(function(a,b,c){return w(this,a,b,c,!0)},"indexOf"),g.prototype.lastIndexOf=p(function(a,b,c){return w(this,a,b,c,!1)},"lastIndexOf"),p(B,"hexWrite"),p(C,"utf8Write"),p(D,"asciiWrite"),p(E,"base64Write"),p(F,"ucs2Write"),g.prototype.write=p(function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b>>>=0,isFinite(c)?(c>>>=0,void 0===d&&(d="utf8")):(d=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let e=this.length-b;if((void 0===c||c>e)&&(c=e),a.length>0&&(c<0||b<0)||b>this.length)throw RangeError("Attempt to write outside buffer bounds");d||(d="utf8");let f=!1;for(;;)switch(d){case"hex":return B(this,a,b,c);case"utf8":case"utf-8":return C(this,a,b,c);case"ascii":case"latin1":case"binary":return D(this,a,b,c);case"base64":return E(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,a,b,c);default:if(f)throw TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),f=!0}},"write"),g.prototype.toJSON=p(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON"),p(G,"base64Slice"),p(H,"utf8Slice"),p(I,"decodeCodePointsArray"),p(J,"asciiSlice"),p(K,"latin1Slice"),p(L,"hexSlice"),p(M,"utf16leSlice"),g.prototype.slice=p(function(a,b){let c=this.length;a=~~a,b=void 0===b?c:~~b,a<0?(a+=c)<0&&(a=0):a>c&&(a=c),b<0?(b+=c)<0&&(b=0):b>c&&(b=c),b<a&&(b=a);let d=this.subarray(a,b);return Object.setPrototypeOf(d,g.prototype),d},"slice"),p(N,"checkOffset"),g.prototype.readUintLE=g.prototype.readUIntLE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=this[a],e=1,f=0;for(;++f<b&&(e*=256);)d+=this[a+f]*e;return d},"readUIntLE"),g.prototype.readUintBE=g.prototype.readUIntBE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=this[a+--b],e=1;for(;b>0&&(e*=256);)d+=this[a+--b]*e;return d},"readUIntBE"),g.prototype.readUint8=g.prototype.readUInt8=p(function(a,b){return a>>>=0,b||N(a,1,this.length),this[a]},"readUInt8"),g.prototype.readUint16LE=g.prototype.readUInt16LE=p(function(a,b){return a>>>=0,b||N(a,2,this.length),this[a]|this[a+1]<<8},"readUInt16LE"),g.prototype.readUint16BE=g.prototype.readUInt16BE=p(function(a,b){return a>>>=0,b||N(a,2,this.length),this[a]<<8|this[a+1]},"readUInt16BE"),g.prototype.readUint32LE=g.prototype.readUInt32LE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+0x1000000*this[a+3]},"readUInt32LE"),g.prototype.readUint32BE=g.prototype.readUInt32BE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),0x1000000*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},"readUInt32BE"),g.prototype.readBigUInt64LE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];(void 0===b||void 0===c)&&$(a,this.length-8);let d=b+256*this[++a]+65536*this[++a]+0x1000000*this[++a],e=this[++a]+256*this[++a]+65536*this[++a]+0x1000000*c;return BigInt(d)+(BigInt(e)<<BigInt(32))},"readBigUInt64LE")),g.prototype.readBigUInt64BE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];(void 0===b||void 0===c)&&$(a,this.length-8);let d=0x1000000*b+65536*this[++a]+256*this[++a]+this[++a],e=0x1000000*this[++a]+65536*this[++a]+256*this[++a]+c;return(BigInt(d)<<BigInt(32))+BigInt(e)},"readBigUInt64BE")),g.prototype.readIntLE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=this[a],e=1,f=0;for(;++f<b&&(e*=256);)d+=this[a+f]*e;return d>=(e*=128)&&(d-=Math.pow(2,8*b)),d},"readIntLE"),g.prototype.readIntBE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=b,e=1,f=this[a+--d];for(;d>0&&(e*=256);)f+=this[a+--d]*e;return f>=(e*=128)&&(f-=Math.pow(2,8*b)),f},"readIntBE"),g.prototype.readInt8=p(function(a,b){return a>>>=0,b||N(a,1,this.length),128&this[a]?-((255-this[a]+1)*1):this[a]},"readInt8"),g.prototype.readInt16LE=p(function(a,b){a>>>=0,b||N(a,2,this.length);let c=this[a]|this[a+1]<<8;return 32768&c?0xffff0000|c:c},"readInt16LE"),g.prototype.readInt16BE=p(function(a,b){a>>>=0,b||N(a,2,this.length);let c=this[a+1]|this[a]<<8;return 32768&c?0xffff0000|c:c},"readInt16BE"),g.prototype.readInt32LE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},"readInt32LE"),g.prototype.readInt32BE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},"readInt32BE"),g.prototype.readBigInt64LE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];return(void 0===b||void 0===c)&&$(a,this.length-8),(BigInt(this[a+4]+256*this[a+5]+65536*this[a+6]+(c<<24))<<BigInt(32))+BigInt(b+256*this[++a]+65536*this[++a]+0x1000000*this[++a])},"readBigInt64LE")),g.prototype.readBigInt64BE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];return(void 0===b||void 0===c)&&$(a,this.length-8),(BigInt((b<<24)+65536*this[++a]+256*this[++a]+this[++a])<<BigInt(32))+BigInt(0x1000000*this[++a]+65536*this[++a]+256*this[++a]+c)},"readBigInt64BE")),g.prototype.readFloatLE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),c.read(this,a,!0,23,4)},"readFloatLE"),g.prototype.readFloatBE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),c.read(this,a,!1,23,4)},"readFloatBE"),g.prototype.readDoubleLE=p(function(a,b){return a>>>=0,b||N(a,8,this.length),c.read(this,a,!0,52,8)},"readDoubleLE"),g.prototype.readDoubleBE=p(function(a,b){return a>>>=0,b||N(a,8,this.length),c.read(this,a,!1,52,8)},"readDoubleBE"),p(O,"checkInt"),g.prototype.writeUintLE=g.prototype.writeUIntLE=p(function(a,b,c,d){if(a*=1,b>>>=0,c>>>=0,!d){let d=Math.pow(2,8*c)-1;O(this,a,b,c,d,0)}let e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},"writeUIntLE"),g.prototype.writeUintBE=g.prototype.writeUIntBE=p(function(a,b,c,d){if(a*=1,b>>>=0,c>>>=0,!d){let d=Math.pow(2,8*c)-1;O(this,a,b,c,d,0)}let e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},"writeUIntBE"),g.prototype.writeUint8=g.prototype.writeUInt8=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,1,255,0),this[b]=255&a,b+1},"writeUInt8"),g.prototype.writeUint16LE=g.prototype.writeUInt16LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,65535,0),this[b]=255&a,this[b+1]=a>>>8,b+2},"writeUInt16LE"),g.prototype.writeUint16BE=g.prototype.writeUInt16BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,65535,0),this[b]=a>>>8,this[b+1]=255&a,b+2},"writeUInt16BE"),g.prototype.writeUint32LE=g.prototype.writeUInt32LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0xffffffff,0),this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a,b+4},"writeUInt32LE"),g.prototype.writeUint32BE=g.prototype.writeUInt32BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0xffffffff,0),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},"writeUInt32BE"),p(P,"wrtBigUInt64LE"),p(Q,"wrtBigUInt64BE"),g.prototype.writeBigUInt64LE=aj(p(function(a,b=0){return P(this,a,b,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),g.prototype.writeBigUInt64BE=aj(p(function(a,b=0){return Q(this,a,b,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),g.prototype.writeIntLE=p(function(a,b,c,d){if(a*=1,b>>>=0,!d){let d=Math.pow(2,8*c-1);O(this,a,b,c,d-1,-d)}let e=0,f=1,g=0;for(this[b]=255&a;++e<c&&(f*=256);)a<0&&0===g&&0!==this[b+e-1]&&(g=1),this[b+e]=(a/f|0)-g&255;return b+c},"writeIntLE"),g.prototype.writeIntBE=p(function(a,b,c,d){if(a*=1,b>>>=0,!d){let d=Math.pow(2,8*c-1);O(this,a,b,c,d-1,-d)}let e=c-1,f=1,g=0;for(this[b+e]=255&a;--e>=0&&(f*=256);)a<0&&0===g&&0!==this[b+e+1]&&(g=1),this[b+e]=(a/f|0)-g&255;return b+c},"writeIntBE"),g.prototype.writeInt8=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,1,127,-128),a<0&&(a=255+a+1),this[b]=255&a,b+1},"writeInt8"),g.prototype.writeInt16LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,32767,-32768),this[b]=255&a,this[b+1]=a>>>8,b+2},"writeInt16LE"),g.prototype.writeInt16BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,32767,-32768),this[b]=a>>>8,this[b+1]=255&a,b+2},"writeInt16BE"),g.prototype.writeInt32LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0x7fffffff,-0x80000000),this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24,b+4},"writeInt32LE"),g.prototype.writeInt32BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0x7fffffff,-0x80000000),a<0&&(a=0xffffffff+a+1),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},"writeInt32BE"),g.prototype.writeBigInt64LE=aj(p(function(a,b=0){return P(this,a,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),g.prototype.writeBigInt64BE=aj(p(function(a,b=0){return Q(this,a,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE")),p(R,"checkIEEE754"),p(S,"writeFloat"),g.prototype.writeFloatLE=p(function(a,b,c){return S(this,a,b,!0,c)},"writeFloatLE"),g.prototype.writeFloatBE=p(function(a,b,c){return S(this,a,b,!1,c)},"writeFloatBE"),p(T,"writeDouble"),g.prototype.writeDoubleLE=p(function(a,b,c){return T(this,a,b,!0,c)},"writeDoubleLE"),g.prototype.writeDoubleBE=p(function(a,b,c){return T(this,a,b,!1,c)},"writeDoubleBE"),g.prototype.copy=p(function(a,b,c,d){if(!g.isBuffer(a))throw TypeError("argument should be a Buffer");if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&d<c&&(d=c),d===c||0===a.length||0===this.length)return 0;if(b<0)throw RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw RangeError("Index out of range");if(d<0)throw RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);let e=d-c;return this===a&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(b,c,d):Uint8Array.prototype.set.call(a,this.subarray(c,d),b),e},"copy"),g.prototype.fill=p(function(a,b,c,d){let e;if("string"==typeof a){if("string"==typeof b?(d=b,b=0,c=this.length):"string"==typeof c&&(d=c,c=this.length),void 0!==d&&"string"!=typeof d)throw TypeError("encoding must be a string");if("string"==typeof d&&!g.isEncoding(d))throw TypeError("Unknown encoding: "+d);if(1===a.length){let b=a.charCodeAt(0);("utf8"===d&&b<128||"latin1"===d)&&(a=b)}}else"number"==typeof a?a&=255:"boolean"==typeof a&&(a=Number(a));if(b<0||this.length<b||this.length<c)throw RangeError("Out of range index");if(c<=b)return this;if(b>>>=0,c=void 0===c?this.length:c>>>0,a||(a=0),"number"==typeof a)for(e=b;e<c;++e)this[e]=a;else{let f=g.isBuffer(a)?a:g.from(a,d),h=f.length;if(0===h)throw TypeError('The value "'+a+'" is invalid for argument "value"');for(e=0;e<c-b;++e)this[e+b]=f[e%h]}return this},"fill");var U={};function V(a,b,c){var d;U[a]=(p(d=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${a}]`,this.stack,delete this.name}get code(){return a}set code(a){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:a,writable:!0})}toString(){return`${this.name} [${a}\
1
+ "use strict";exports.id=9338,exports.ids=[9338],exports.modules={79338:(a,b,c)=>{c.d(b,{fd:()=>ap});var d=c(85171),e=c(37096),f=c(52167),g=c(60327),h=c(64668),i=c(76493),j=c(22588),k=c(26955),l=c(18999),m=c(36793),n=c(91124),o=c(72042),p=c(94039),q=c(56731),r=c(28028),s=c(94730),t=c(61430),u=c(91430),v=c(34216),w=c(65089),x=c(82991),y=c(67106),z=c(20538);class A extends u.Ss{static [e.i]="PgViewBase"}class B{static [e.i]="PgDialect";casing;constructor(a){this.casing=new h.Yn(a?.casing)}async migrate(a,b,c){let d="string"==typeof c?"__drizzle_migrations":c.migrationsTable??"__drizzle_migrations",e="string"==typeof c?"drizzle":c.migrationsSchema??"drizzle",f=(0,u.ll)`
2
+ CREATE TABLE IF NOT EXISTS ${u.ll.identifier(e)}.${u.ll.identifier(d)} (
3
+ id SERIAL PRIMARY KEY,
4
+ hash text NOT NULL,
5
+ created_at bigint
6
+ )
7
+ `;await b.execute((0,u.ll)`CREATE SCHEMA IF NOT EXISTS ${u.ll.identifier(e)}`),await b.execute(f);let g=(await b.all((0,u.ll)`select id, hash, created_at from ${u.ll.identifier(e)}.${u.ll.identifier(d)} order by created_at desc limit 1`))[0];await b.transaction(async b=>{for await(let c of a)if(!g||Number(g.created_at)<c.folderMillis){for(let a of c.sql)await b.execute(u.ll.raw(a));await b.execute((0,u.ll)`insert into ${u.ll.identifier(e)}.${u.ll.identifier(d)} ("hash", "created_at") values(${c.hash}, ${c.folderMillis})`)}})}escapeName(a){return`"${a.replace(/"/g,'""')}"`}escapeParam(a){return`$${a+1}`}escapeString(a){return`'${a.replace(/'/g,"''")}'`}buildWithCTE(a){if(!a?.length)return;let b=[(0,u.ll)`with `];for(let[c,d]of a.entries())b.push((0,u.ll)`${u.ll.identifier(d._.alias)} as (${d._.sql})`),c<a.length-1&&b.push((0,u.ll)`, `);return b.push((0,u.ll)` `),u.ll.join(b)}buildDeleteQuery({table:a,where:b,returning:c,withList:d}){let e=this.buildWithCTE(d),f=c?(0,u.ll)` returning ${this.buildSelection(c,{isSingleTable:!0})}`:void 0,g=b?(0,u.ll)` where ${b}`:void 0;return(0,u.ll)`${e}delete from ${a}${g}${f}`}buildUpdateSet(a,b){let c=a[x.XI.Symbol.Columns],d=Object.keys(c).filter(a=>void 0!==b[a]||c[a]?.onUpdateFn!==void 0),f=d.length;return u.ll.join(d.flatMap((a,d)=>{let g=c[a],h=g.onUpdateFn?.(),i=b[a]??((0,e.is)(h,u.Xs)?h:u.ll.param(h,g)),j=(0,u.ll)`${u.ll.identifier(this.casing.getColumnCasing(g))} = ${i}`;return d<f-1?[j,u.ll.raw(", ")]:[j]}))}buildUpdateQuery({table:a,set:b,where:c,returning:d,withList:e,from:f,joins:g}){let h=this.buildWithCTE(e),i=a[s.mu.Symbol.Name],j=a[s.mu.Symbol.Schema],k=a[s.mu.Symbol.OriginalName],l=i===k?void 0:i,m=(0,u.ll)`${j?(0,u.ll)`${u.ll.identifier(j)}.`:void 0}${u.ll.identifier(k)}${l&&(0,u.ll)` ${u.ll.identifier(l)}`}`,n=this.buildUpdateSet(a,b),o=f&&u.ll.join([u.ll.raw(" from "),this.buildFromTable(f)]),p=this.buildJoins(g),q=d?(0,u.ll)` returning ${this.buildSelection(d,{isSingleTable:!f})}`:void 0,r=c?(0,u.ll)` where ${c}`:void 0;return(0,u.ll)`${h}update ${m} set ${n}${o}${p}${r}${q}`}buildSelection(a,{isSingleTable:b=!1}={}){let c=a.length,d=a.flatMap(({field:a},d)=>{let f=[];if((0,e.is)(a,u.Xs.Aliased)&&a.isSelectionField)f.push(u.ll.identifier(a.fieldAlias));else if((0,e.is)(a,u.Xs.Aliased)||(0,e.is)(a,u.Xs)){let c=(0,e.is)(a,u.Xs.Aliased)?a.sql:a;b?f.push(new u.Xs(c.queryChunks.map(a=>(0,e.is)(a,k.Kl)?u.ll.identifier(this.casing.getColumnCasing(a)):a))):f.push(c),(0,e.is)(a,u.Xs.Aliased)&&f.push((0,u.ll)` as ${u.ll.identifier(a.fieldAlias)}`)}else if((0,e.is)(a,i.V))b?f.push(u.ll.identifier(this.casing.getColumnCasing(a))):f.push(a);else if((0,e.is)(a,w.n)){let b=Object.entries(a._.selectedFields);if(1===b.length){let c=b[0][1],d=(0,e.is)(c,u.Xs)?c.decoder:(0,e.is)(c,i.V)?{mapFromDriverValue:a=>c.mapFromDriverValue(a)}:c.sql.decoder;d&&(a._.sql.decoder=d)}f.push(a)}return d<c-1&&f.push((0,u.ll)`, `),f});return u.ll.join(d)}buildJoins(a){if(!a||0===a.length)return;let b=[];for(let[c,d]of a.entries()){0===c&&b.push((0,u.ll)` `);let f=d.table,g=d.lateral?(0,u.ll)` lateral`:void 0,h=d.on?(0,u.ll)` on ${d.on}`:void 0;if((0,e.is)(f,s.mu)){let a=f[s.mu.Symbol.Name],c=f[s.mu.Symbol.Schema],e=f[s.mu.Symbol.OriginalName],i=a===e?void 0:d.alias;b.push((0,u.ll)`${u.ll.raw(d.joinType)} join${g} ${c?(0,u.ll)`${u.ll.identifier(c)}.`:void 0}${u.ll.identifier(e)}${i&&(0,u.ll)` ${u.ll.identifier(i)}`}${h}`)}else if((0,e.is)(f,u.Ss)){let a=f[z.n].name,c=f[z.n].schema,e=f[z.n].originalName,i=a===e?void 0:d.alias;b.push((0,u.ll)`${u.ll.raw(d.joinType)} join${g} ${c?(0,u.ll)`${u.ll.identifier(c)}.`:void 0}${u.ll.identifier(e)}${i&&(0,u.ll)` ${u.ll.identifier(i)}`}${h}`)}else b.push((0,u.ll)`${u.ll.raw(d.joinType)} join${g} ${f}${h}`);c<a.length-1&&b.push((0,u.ll)` `)}return u.ll.join(b)}buildFromTable(a){if((0,e.is)(a,x.XI)&&a[x.XI.Symbol.IsAlias]){let b=(0,u.ll)`${u.ll.identifier(a[x.XI.Symbol.OriginalName])}`;return a[x.XI.Symbol.Schema]&&(b=(0,u.ll)`${u.ll.identifier(a[x.XI.Symbol.Schema])}.${b}`),(0,u.ll)`${b} ${u.ll.identifier(a[x.XI.Symbol.Name])}`}return a}buildSelectQuery({withList:a,fields:b,fieldsFlat:c,where:d,having:f,table:g,joins:h,orderBy:j,groupBy:k,limit:l,offset:m,lockingClause:n,distinct:o,setOperators:p}){let q,r,s,t=c??(0,y.He)(b);for(let a of t){let b;if((0,e.is)(a.field,i.V)&&(0,x.Io)(a.field.table)!==((0,e.is)(g,w.n)?g._.alias:(0,e.is)(g,A)?g[z.n].name:(0,e.is)(g,u.Xs)?void 0:(0,x.Io)(g))&&(b=a.field.table,!h?.some(({alias:a})=>a===(b[x.XI.Symbol.IsAlias]?(0,x.Io)(b):b[x.XI.Symbol.BaseName])))){let b=(0,x.Io)(a.field.table);throw Error(`Your "${a.path.join("->")}" field references a column "${b}"."${a.field.name}", but the table "${b}" is not part of the query! Did you forget to join it?`)}}let v=!h||0===h.length,B=this.buildWithCTE(a);o&&(q=!0===o?(0,u.ll)` distinct`:(0,u.ll)` distinct on (${u.ll.join(o.on,(0,u.ll)`, `)})`);let C=this.buildSelection(t,{isSingleTable:v}),D=this.buildFromTable(g),E=this.buildJoins(h),F=d?(0,u.ll)` where ${d}`:void 0,G=f?(0,u.ll)` having ${f}`:void 0;j&&j.length>0&&(r=(0,u.ll)` order by ${u.ll.join(j,(0,u.ll)`, `)}`),k&&k.length>0&&(s=(0,u.ll)` group by ${u.ll.join(k,(0,u.ll)`, `)}`);let H="object"==typeof l||"number"==typeof l&&l>=0?(0,u.ll)` limit ${l}`:void 0,I=m?(0,u.ll)` offset ${m}`:void 0,J=u.ll.empty();if(n){let a=(0,u.ll)` for ${u.ll.raw(n.strength)}`;n.config.of&&a.append((0,u.ll)` of ${u.ll.join(Array.isArray(n.config.of)?n.config.of:[n.config.of],(0,u.ll)`, `)}`),n.config.noWait?a.append((0,u.ll)` nowait`):n.config.skipLocked&&a.append((0,u.ll)` skip locked`),J.append(a)}let K=(0,u.ll)`${B}select${q} ${C} from ${D}${E}${F}${s}${G}${r}${H}${I}${J}`;return p.length>0?this.buildSetOperations(K,p):K}buildSetOperations(a,b){let[c,...d]=b;if(!c)throw Error("Cannot pass undefined values to any set operator");return 0===d.length?this.buildSetOperationQuery({leftSelect:a,setOperator:c}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:a,setOperator:c}),d)}buildSetOperationQuery({leftSelect:a,setOperator:{type:b,isAll:c,rightSelect:d,limit:f,orderBy:g,offset:h}}){let i,j=(0,u.ll)`(${a.getSQL()}) `,l=(0,u.ll)`(${d.getSQL()})`;if(g&&g.length>0){let a=[];for(let b of g)if((0,e.is)(b,k.Kl))a.push(u.ll.identifier(b.name));else if((0,e.is)(b,u.Xs)){for(let a=0;a<b.queryChunks.length;a++){let c=b.queryChunks[a];(0,e.is)(c,k.Kl)&&(b.queryChunks[a]=u.ll.identifier(c.name))}a.push((0,u.ll)`${b}`)}else a.push((0,u.ll)`${b}`);i=(0,u.ll)` order by ${u.ll.join(a,(0,u.ll)`, `)} `}let m="object"==typeof f||"number"==typeof f&&f>=0?(0,u.ll)` limit ${f}`:void 0,n=u.ll.raw(`${b} ${c?"all ":""}`),o=h?(0,u.ll)` offset ${h}`:void 0;return(0,u.ll)`${j}${n}${l}${i}${m}${o}`}buildInsertQuery({table:a,values:b,onConflict:c,returning:d,withList:f,select:g,overridingSystemValue_:h}){let i=[],j=Object.entries(a[x.XI.Symbol.Columns]).filter(([a,b])=>!b.shouldDisableInsert()),k=j.map(([,a])=>u.ll.identifier(this.casing.getColumnCasing(a)));if(g)(0,e.is)(b,u.Xs)?i.push(b):i.push(b.getSQL());else for(let[a,c]of(i.push(u.ll.raw("values ")),b.entries())){let d=[];for(let[a,b]of j){let f=c[a];if(void 0===f||(0,e.is)(f,u.Iw)&&void 0===f.value)if(void 0!==b.defaultFn){let a=b.defaultFn(),c=(0,e.is)(a,u.Xs)?a:u.ll.param(a,b);d.push(c)}else if(b.default||void 0===b.onUpdateFn)d.push((0,u.ll)`default`);else{let a=b.onUpdateFn(),c=(0,e.is)(a,u.Xs)?a:u.ll.param(a,b);d.push(c)}else d.push(f)}i.push(d),a<b.length-1&&i.push((0,u.ll)`, `)}let l=this.buildWithCTE(f),m=u.ll.join(i),n=d?(0,u.ll)` returning ${this.buildSelection(d,{isSingleTable:!0})}`:void 0,o=c?(0,u.ll)` on conflict ${c}`:void 0,p=!0===h?(0,u.ll)`overriding system value `:void 0;return(0,u.ll)`${l}insert into ${a} ${k} ${p}${m}${o}${n}`}buildRefreshMaterializedViewQuery({view:a,concurrently:b,withNoData:c}){let d=b?(0,u.ll)` concurrently`:void 0,e=c?(0,u.ll)` with no data`:void 0;return(0,u.ll)`refresh materialized view${d} ${a}${e}`}prepareTyping(a){if((0,e.is)(a,l.kn)||(0,e.is)(a,m.iX))return"json";if((0,e.is)(a,n.Z5))return"decimal";if((0,e.is)(a,o.Xd))return"time";if((0,e.is)(a,p.KM)||(0,e.is)(a,p.xQ))return"timestamp";if((0,e.is)(a,q.qw)||(0,e.is)(a,q.dw))return"date";else if((0,e.is)(a,r.dL))return"uuid";else return"none"}sqlToQuery(a,b){return a.toQuery({casing:this.casing,escapeName:this.escapeName,escapeParam:this.escapeParam,escapeString:this.escapeString,prepareTyping:this.prepareTyping,invokeSource:b})}buildRelationalQueryWithoutPK({fullSchema:a,schema:b,tableNamesMap:c,table:d,tableConfig:f,queryConfig:h,tableAlias:k,nestedQueryRelation:l,joinOn:m}){let n,o=[],p,q,r=[],y,z=[];if(!0===h)o=Object.entries(f.columns).map(([a,b])=>({dbKey:b.name,tsKey:a,field:(0,g.ug)(b,k),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let d=Object.fromEntries(Object.entries(f.columns).map(([a,b])=>[a,(0,g.ug)(b,k)]));if(h.where){let a="function"==typeof h.where?h.where(d,(0,t.mm)()):h.where;y=a&&(0,g.yY)(a,k)}let j=[],l=[];if(h.columns){let a=!1;for(let[b,c]of Object.entries(h.columns))void 0!==c&&b in f.columns&&(a||!0!==c||(a=!0),l.push(b));l.length>0&&(l=a?l.filter(a=>h.columns?.[a]===!0):Object.keys(f.columns).filter(a=>!l.includes(a)))}else l=Object.keys(f.columns);for(let a of l){let b=f.columns[a];j.push({tsKey:a,value:b})}let m=[];if(h.with&&(m=Object.entries(h.with).filter(a=>!!a[1]).map(([a,b])=>({tsKey:a,queryConfig:b,relation:f.relations[a]}))),h.extras)for(let[a,b]of Object.entries("function"==typeof h.extras?h.extras(d,{sql:u.ll}):h.extras))j.push({tsKey:a,value:(0,g.Hs)(b,k)});for(let{tsKey:a,value:b}of j)o.push({dbKey:(0,e.is)(b,u.Xs.Aliased)?b.fieldAlias:f.columns[a].name,tsKey:a,field:(0,e.is)(b,i.V)?(0,g.ug)(b,k):b,relationTableTsKey:void 0,isJson:!1,selection:[]});let n="function"==typeof h.orderBy?h.orderBy(d,(0,t.rl)()):h.orderBy??[];for(let{tsKey:d,queryConfig:f,relation:j}of(Array.isArray(n)||(n=[n]),r=n.map(a=>(0,e.is)(a,i.V)?(0,g.ug)(a,k):(0,g.yY)(a,k)),p=h.limit,q=h.offset,m)){let h=(0,t.W0)(b,c,j),i=c[(0,x.Lf)(j.referencedTable)],l=`${k}_${d}`,m=(0,v.Uo)(...h.fields.map((a,b)=>(0,v.eq)((0,g.ug)(h.references[b],l),(0,g.ug)(a,k)))),n=this.buildRelationalQueryWithoutPK({fullSchema:a,schema:b,tableNamesMap:c,table:a[i],tableConfig:b[i],queryConfig:(0,e.is)(j,t.pD)?!0===f?{limit:1}:{...f,limit:1}:f,tableAlias:l,joinOn:m,nestedQueryRelation:j}),p=(0,u.ll)`${u.ll.identifier(l)}.${u.ll.identifier("data")}`.as(d);z.push({on:(0,u.ll)`true`,table:new w.n(n.sql,{},l),alias:l,joinType:"left",lateral:!0}),o.push({dbKey:d,tsKey:d,field:p,relationTableTsKey:i,isJson:!0,selection:n.selection})}}if(0===o.length)throw new j.n9({message:`No fields selected for table "${f.tsName}" ("${k}")`});if(y=(0,v.Uo)(m,y),l){let a=(0,u.ll)`json_build_array(${u.ll.join(o.map(({field:a,tsKey:b,isJson:c})=>c?(0,u.ll)`${u.ll.identifier(`${k}_${b}`)}.${u.ll.identifier("data")}`:(0,e.is)(a,u.Xs.Aliased)?a.sql:a),(0,u.ll)`, `)})`;(0,e.is)(l,t.iv)&&(a=(0,u.ll)`coalesce(json_agg(${a}${r.length>0?(0,u.ll)` order by ${u.ll.join(r,(0,u.ll)`, `)}`:void 0}), '[]'::json)`);let b=[{dbKey:"data",tsKey:"data",field:a.as("data"),isJson:!0,relationTableTsKey:f.tsName,selection:o}];void 0!==p||void 0!==q||r.length>0?(n=this.buildSelectQuery({table:(0,g.oG)(d,k),fields:{},fieldsFlat:[{path:[],field:u.ll.raw("*")}],where:y,limit:p,offset:q,orderBy:r,setOperators:[]}),y=void 0,p=void 0,q=void 0,r=[]):n=(0,g.oG)(d,k),n=this.buildSelectQuery({table:(0,e.is)(n,s.mu)?n:new w.n(n,{},k),fields:{},fieldsFlat:b.map(({field:a})=>({path:[],field:(0,e.is)(a,i.V)?(0,g.ug)(a,k):a})),joins:z,where:y,limit:p,offset:q,orderBy:r,setOperators:[]})}else n=this.buildSelectQuery({table:(0,g.oG)(d,k),fields:{},fieldsFlat:o.map(({field:a})=>({path:[],field:(0,e.is)(a,i.V)?(0,g.ug)(a,k):a})),joins:z,where:y,limit:p,offset:q,orderBy:r,setOperators:[]});return{tableTsKey:f.tsName,sql:n,selection:o}}}var C=c(79380),D=c(50793),E=c(91963),F=c(53217);function G(a){return(0,e.is)(a,s.mu)?[a[x.Sj]?`${a[x.Sj]}.${a[x.XI.Symbol.BaseName]}`:a[x.XI.Symbol.BaseName]]:(0,e.is)(a,w.n)?a._.usedTables??[]:(0,e.is)(a,u.Xs)?a.usedTables??[]:[]}class H{static [e.i]="PgSelectBuilder";fields;session;dialect;withList=[];distinct;constructor(a){this.fields=a.fields,this.session=a.session,this.dialect=a.dialect,a.withList&&(this.withList=a.withList),this.distinct=a.distinct}authToken;setToken(a){return this.authToken=a,this}from(a){let b,c=!!this.fields;return b=this.fields?this.fields:(0,e.is)(a,w.n)?Object.fromEntries(Object.keys(a._.selectedFields).map(b=>[b,a[b]])):(0,e.is)(a,A)?a[z.n].selectedFields:(0,e.is)(a,u.Xs)?{}:(0,y.YD)(a),new J({table:a,fields:b,isPartialSelect:c,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct}).setToken(this.authToken)}}class I extends D.O{static [e.i]="PgSelectQueryBuilder";_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:a,fields:b,isPartialSelect:c,session:d,dialect:e,withList:f,distinct:g}){for(const h of(super(),this.config={withList:f,table:a,fields:{...b},distinct:g,setOperators:[]},this.isPartialSelect=c,this.session=d,this.dialect=e,this._={selectedFields:b,config:this.config},this.tableName=(0,y.zN)(a),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{},G(a)))this.usedTables.add(h)}getUsedTables(){return[...this.usedTables]}createJoin(a,b){return(c,d)=>{let f=this.tableName,g=(0,y.zN)(c);for(let a of G(c))this.usedTables.add(a);if("string"==typeof g&&this.config.joins?.some(a=>a.alias===g))throw Error(`Alias "${g}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof f&&(this.config.fields={[f]:this.config.fields}),"string"==typeof g&&!(0,e.is)(c,u.Xs))){let a=(0,e.is)(c,w.n)?c._.selectedFields:(0,e.is)(c,u.Ss)?c[z.n].selectedFields:c[x.XI.Symbol.Columns];this.config.fields[g]=a}if("function"==typeof d&&(d=d(new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:d,table:c,joinType:a,alias:g,lateral:b}),"string"==typeof g)switch(a){case"left":this.joinsNotNullableMap[g]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[g]=!0;break;case"cross":case"inner":this.joinsNotNullableMap[g]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[g]=!1}return this}}leftJoin=this.createJoin("left",!1);leftJoinLateral=this.createJoin("left",!0);rightJoin=this.createJoin("right",!1);innerJoin=this.createJoin("inner",!1);innerJoinLateral=this.createJoin("inner",!0);fullJoin=this.createJoin("full",!1);crossJoin=this.createJoin("cross",!1);crossJoinLateral=this.createJoin("cross",!0);createSetOperator(a,b){return c=>{let d="function"==typeof c?c(L()):c;if(!(0,y.DV)(this.getSelectedFields(),d.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:a,isAll:b,rightSelect:d}),this}}union=this.createSetOperator("union",!1);unionAll=this.createSetOperator("union",!0);intersect=this.createSetOperator("intersect",!1);intersectAll=this.createSetOperator("intersect",!0);except=this.createSetOperator("except",!1);exceptAll=this.createSetOperator("except",!0);addSetOperators(a){return this.config.setOperators.push(...a),this}where(a){return"function"==typeof a&&(a=a(new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=a,this}having(a){return"function"==typeof a&&(a=a(new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=a,this}groupBy(...a){if("function"==typeof a[0]){let b=a[0](new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(b)?b:[b]}else this.config.groupBy=a;return this}orderBy(...a){if("function"==typeof a[0]){let b=a[0](new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),c=Array.isArray(b)?b:[b];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=c:this.config.orderBy=c}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=a:this.config.orderBy=a;return this}limit(a){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=a:this.config.limit=a,this}offset(a){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=a:this.config.offset=a,this}for(a,b={}){return this.config.lockingClause={strength:a,config:b},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}as(a){let b=[];if(b.push(...G(this.config.table)),this.config.joins)for(let a of this.config.joins)b.push(...G(a.table));return new Proxy(new w.n(this.getSQL(),this.config.fields,a,!1,[...new Set(b)]),new C.b({alias:a,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new C.b({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}$withCache(a){return this.cacheConfig=void 0===a?{config:{},enable:!0,autoInvalidate:!0}:!1===a?{enable:!1}:{enable:!0,autoInvalidate:!0,...a},this}}class J extends I{static [e.i]="PgSelect";_prepare(a){let{session:b,config:c,dialect:d,joinsNotNullableMap:e,authToken:f,cacheConfig:g,usedTables:h}=this;if(!b)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let{fields:i}=c;return F.k.startActiveSpan("drizzle.prepareQuery",()=>{let c=(0,y.He)(i),j=b.prepareQuery(d.sqlToQuery(this.getSQL()),c,a,!0,void 0,{type:"select",tables:[...h]},g);return j.joinsNotNullableMap=e,j.setToken(f)})}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken))}function K(a,b){return(c,d,...e)=>{let f=[d,...e].map(c=>({type:a,isAll:b,rightSelect:c}));for(let a of f)if(!(0,y.DV)(c.getSelectedFields(),a.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return c.addSetOperators(f)}}(0,y.XJ)(J,[E.k]);let L=()=>({union:M,unionAll:N,intersect:O,intersectAll:P,except:Q,exceptAll:R}),M=K("union",!1),N=K("union",!0),O=K("intersect",!1),P=K("intersect",!0),Q=K("except",!1),R=K("except",!0);class S{static [e.i]="PgQueryBuilder";dialect;dialectConfig;constructor(a){this.dialect=(0,e.is)(a,B)?a:void 0,this.dialectConfig=(0,e.is)(a,B)?void 0:a}$with=(a,b)=>{let c=this;return{as:d=>("function"==typeof d&&(d=d(c)),new Proxy(new w.J(d.getSQL(),b??("getSelectedFields"in d?d.getSelectedFields()??{}:{}),a,!0),new C.b({alias:a,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}};with(...a){let b=this;return{select:function(c){return new H({fields:c??void 0,session:void 0,dialect:b.getDialect(),withList:a})},selectDistinct:function(a){return new H({fields:a??void 0,session:void 0,dialect:b.getDialect(),distinct:!0})},selectDistinctOn:function(a,c){return new H({fields:c??void 0,session:void 0,dialect:b.getDialect(),distinct:{on:a}})}}}select(a){return new H({fields:a??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(a){return new H({fields:a??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(a,b){return new H({fields:b??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:a}})}getDialect(){return this.dialect||(this.dialect=new B(this.dialectConfig)),this.dialect}}class T{constructor(a,b,c,d){this.table=a,this.session=b,this.dialect=c,this.withList=d}static [e.i]="PgUpdateBuilder";authToken;setToken(a){return this.authToken=a,this}set(a){return new U(this.table,(0,y.q)(this.table,a),this.session,this.dialect,this.withList).setToken(this.authToken)}}class U extends E.k{constructor(a,b,c,d,e){super(),this.session=c,this.dialect=d,this.config={set:b,table:a,withList:e,joins:[]},this.tableName=(0,y.zN)(a),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}static [e.i]="PgUpdate";config;tableName;joinsNotNullableMap;cacheConfig;from(a){let b=(0,y.zN)(a);return"string"==typeof b&&(this.joinsNotNullableMap[b]=!0),this.config.from=a,this}getTableLikeFields(a){return(0,e.is)(a,s.mu)?a[x.XI.Symbol.Columns]:(0,e.is)(a,w.n)?a._.selectedFields:a[z.n].selectedFields}createJoin(a){return(b,c)=>{let d=(0,y.zN)(b);if("string"==typeof d&&this.config.joins.some(a=>a.alias===d))throw Error(`Alias "${d}" is already used in this query`);if("function"==typeof c){let a=this.config.from&&!(0,e.is)(this.config.from,u.Xs)?this.getTableLikeFields(this.config.from):void 0;c=c(new Proxy(this.config.table[x.XI.Symbol.Columns],new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),a&&new Proxy(a,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}if(this.config.joins.push({on:c,table:b,joinType:a,alias:d}),"string"==typeof d)switch(a){case"left":this.joinsNotNullableMap[d]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[d]=!0;break;case"inner":this.joinsNotNullableMap[d]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[d]=!1}return this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where(a){return this.config.where=a,this}returning(a){if(!a&&(a=Object.assign({},this.config.table[x.XI.Symbol.Columns]),this.config.from)){let b=(0,y.zN)(this.config.from);if("string"==typeof b&&this.config.from&&!(0,e.is)(this.config.from,u.Xs)){let c=this.getTableLikeFields(this.config.from);a[b]=c}for(let b of this.config.joins){let c=(0,y.zN)(b.table);if("string"==typeof c&&!(0,e.is)(b.table,u.Xs)){let d=this.getTableLikeFields(b.table);a[c]=d}}}return this.config.returningFields=a,this.config.returning=(0,y.He)(a),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){let b=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,a,!0,void 0,{type:"insert",tables:G(this.config.table)},this.cacheConfig);return b.joinsNotNullableMap=this.joinsNotNullableMap,b}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>this._prepare().execute(a,this.authToken);getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new C.b({alias:(0,x.Io)(this.config.table),sqlAliasedBehavior:"alias",sqlBehavior:"error"})):void 0}$dynamic(){return this}}class V{constructor(a,b,c,d,e){this.table=a,this.session=b,this.dialect=c,this.withList=d,this.overridingSystemValue_=e}static [e.i]="PgInsertBuilder";authToken;setToken(a){return this.authToken=a,this}overridingSystemValue(){return this.overridingSystemValue_=!0,this}values(a){if(0===(a=Array.isArray(a)?a:[a]).length)throw Error("values() must be called with at least one value");let b=a.map(a=>{let b={},c=this.table[x.XI.Symbol.Columns];for(let d of Object.keys(a)){let f=a[d];b[d]=(0,e.is)(f,u.Xs)?f:new u.Iw(f,c[d])}return b});return new W(this.table,b,this.session,this.dialect,this.withList,!1,this.overridingSystemValue_).setToken(this.authToken)}select(a){let b="function"==typeof a?a(new S):a;if(!(0,e.is)(b,u.Xs)&&!(0,y.DV)(this.table[x.e],b._.selectedFields))throw Error("Insert select error: selected fields are not the same or are in a different order compared to the table definition");return new W(this.table,b,this.session,this.dialect,this.withList,!0)}}class W extends E.k{constructor(a,b,c,d,e,f,g){super(),this.session=c,this.dialect=d,this.config={table:a,values:b,withList:e,select:f,overridingSystemValue_:g}}static [e.i]="PgInsert";config;cacheConfig;returning(a=this.config.table[x.XI.Symbol.Columns]){return this.config.returningFields=a,this.config.returning=(0,y.He)(a),this}onConflictDoNothing(a={}){if(void 0===a.target)this.config.onConflict=(0,u.ll)`do nothing`;else{let b="";b=Array.isArray(a.target)?a.target.map(a=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(a))).join(","):this.dialect.escapeName(this.dialect.casing.getColumnCasing(a.target));let c=a.where?(0,u.ll)` where ${a.where}`:void 0;this.config.onConflict=(0,u.ll)`(${u.ll.raw(b)})${c} do nothing`}return this}onConflictDoUpdate(a){if(a.where&&(a.targetWhere||a.setWhere))throw Error('You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.');let b=a.where?(0,u.ll)` where ${a.where}`:void 0,c=a.targetWhere?(0,u.ll)` where ${a.targetWhere}`:void 0,d=a.setWhere?(0,u.ll)` where ${a.setWhere}`:void 0,e=this.dialect.buildUpdateSet(this.config.table,(0,y.q)(this.config.table,a.set)),f="";return f=Array.isArray(a.target)?a.target.map(a=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(a))).join(","):this.dialect.escapeName(this.dialect.casing.getColumnCasing(a.target)),this.config.onConflict=(0,u.ll)`(${u.ll.raw(f)})${c} do update set ${e}${b}${d}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,a,!0,void 0,{type:"insert",tables:G(this.config.table)},this.cacheConfig))}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new C.b({alias:(0,x.Io)(this.config.table),sqlAliasedBehavior:"alias",sqlBehavior:"error"})):void 0}$dynamic(){return this}}class X extends E.k{constructor(a,b,c,d){super(),this.session=b,this.dialect=c,this.config={table:a,withList:d}}static [e.i]="PgDelete";config;cacheConfig;where(a){return this.config.where=a,this}returning(a=this.config.table[x.XI.Symbol.Columns]){return this.config.returningFields=a,this.config.returning=(0,y.He)(a),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,a,!0,void 0,{type:"delete",tables:G(this.config.table)},this.cacheConfig))}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new C.b({alias:(0,x.Io)(this.config.table),sqlAliasedBehavior:"alias",sqlBehavior:"error"})):void 0}$dynamic(){return this}}class Y extends u.Xs{constructor(a){super(Y.buildEmbeddedCount(a.source,a.filters).queryChunks),this.params=a,this.mapWith(Number),this.session=a.session,this.sql=Y.buildCount(a.source,a.filters)}sql;token;static [e.i]="PgCountBuilder";[Symbol.toStringTag]="PgCountBuilder";session;static buildEmbeddedCount(a,b){return(0,u.ll)`(select count(*) from ${a}${u.ll.raw(" where ").if(b)}${b})`}static buildCount(a,b){return(0,u.ll)`select count(*) as count from ${a}${u.ll.raw(" where ").if(b)}${b};`}setToken(a){return this.token=a,this}then(a,b){return Promise.resolve(this.session.count(this.sql,this.token)).then(a,b)}catch(a){return this.then(void 0,a)}finally(a){return this.then(b=>(a?.(),b),b=>{throw a?.(),b})}}class Z{constructor(a,b,c,d,e,f,g){this.fullSchema=a,this.schema=b,this.tableNamesMap=c,this.table=d,this.tableConfig=e,this.dialect=f,this.session=g}static [e.i]="PgRelationalQueryBuilder";findMany(a){return new $(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,a||{},"many")}findFirst(a){return new $(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,a?{...a,limit:1}:{limit:1},"first")}}class $ extends E.k{constructor(a,b,c,d,e,f,g,h,i){super(),this.fullSchema=a,this.schema=b,this.tableNamesMap=c,this.table=d,this.tableConfig=e,this.dialect=f,this.session=g,this.config=h,this.mode=i}static [e.i]="PgRelationalQuery";_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>{let{query:b,builtQuery:c}=this._toSQL();return this.session.prepareQuery(c,void 0,a,!0,(a,c)=>{let d=a.map(a=>(0,t.I$)(this.schema,this.tableConfig,a,b.selection,c));return"first"===this.mode?d[0]:d})})}prepare(a){return this._prepare(a)}_getQuery(){return this.dialect.buildRelationalQueryWithoutPK({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let a=this._getQuery(),b=this.dialect.sqlToQuery(a.sql);return{query:a,builtQuery:b}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(a){return this.authToken=a,this}execute(){return F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(void 0,this.authToken))}}class _ extends E.k{constructor(a,b,c,d){super(),this.execute=a,this.sql=b,this.query=c,this.mapBatchResult=d}static [e.i]="PgRaw";getSQL(){return this.sql}getQuery(){return this.query}mapResult(a,b){return b?this.mapBatchResult(a):a}_prepare(){return this}isResponseInArrayMode(){return!1}}class aa extends E.k{constructor(a,b,c){super(),this.session=b,this.dialect=c,this.config={view:a}}static [e.i]="PgRefreshMaterializedView";config;concurrently(){if(void 0!==this.config.withNoData)throw Error("Cannot use concurrently and withNoData together");return this.config.concurrently=!0,this}withNoData(){if(void 0!==this.config.concurrently)throw Error("Cannot use concurrently and withNoData together");return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,a,!0))}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken))}class ab{constructor(a,b,c){if(this.dialect=a,this.session=b,this._=c?{schema:c.schema,fullSchema:c.fullSchema,tableNamesMap:c.tableNamesMap,session:b}:{schema:void 0,fullSchema:{},tableNamesMap:{},session:b},this.query={},this._.schema)for(const[d,e]of Object.entries(this._.schema))this.query[d]=new Z(c.fullSchema,this._.schema,this._.tableNamesMap,c.fullSchema[d],e,a,b);this.$cache={invalidate:async a=>{}}}static [e.i]="PgDatabase";query;$with=(a,b)=>{let c=this;return{as:d=>("function"==typeof d&&(d=d(new S(c.dialect))),new Proxy(new w.J(d.getSQL(),b??("getSelectedFields"in d?d.getSelectedFields()??{}:{}),a,!0),new C.b({alias:a,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}};$count(a,b){return new Y({source:a,filters:b,session:this.session})}$cache;with(...a){let b=this;return{select:function(c){return new H({fields:c??void 0,session:b.session,dialect:b.dialect,withList:a})},selectDistinct:function(c){return new H({fields:c??void 0,session:b.session,dialect:b.dialect,withList:a,distinct:!0})},selectDistinctOn:function(c,d){return new H({fields:d??void 0,session:b.session,dialect:b.dialect,withList:a,distinct:{on:c}})},update:function(c){return new T(c,b.session,b.dialect,a)},insert:function(c){return new V(c,b.session,b.dialect,a)},delete:function(c){return new X(c,b.session,b.dialect,a)}}}select(a){return new H({fields:a??void 0,session:this.session,dialect:this.dialect})}selectDistinct(a){return new H({fields:a??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(a,b){return new H({fields:b??void 0,session:this.session,dialect:this.dialect,distinct:{on:a}})}update(a){return new T(a,this.session,this.dialect)}insert(a){return new V(a,this.session,this.dialect)}delete(a){return new X(a,this.session,this.dialect)}refreshMaterializedView(a){return new aa(a,this.session,this.dialect)}authToken;execute(a){let b="string"==typeof a?u.ll.raw(a):a.getSQL(),c=this.dialect.sqlToQuery(b),d=this.session.prepareQuery(c,void 0,void 0,!1);return new _(()=>d.execute(void 0,this.authToken),b,c,a=>d.mapResult(a,!0))}transaction(a,b){return this.session.transaction(a,b)}}var ac=c(34070);class ad{constructor(a,b,c,d){this.query=a,this.cache=b,this.queryMetadata=c,this.cacheConfig=d,b&&"all"===b.strategy()&&void 0===d&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),this.cacheConfig?.enable||(this.cacheConfig=void 0)}authToken;getQuery(){return this.query}mapResult(a,b){return a}setToken(a){return this.authToken=a,this}static [e.i]="PgPreparedQuery";joinsNotNullableMap;async queryWithCache(a,b,c){if(void 0===this.cache||(0,e.is)(this.cache,ac.Th)||void 0===this.queryMetadata||this.cacheConfig&&!this.cacheConfig.enable)try{return await c()}catch(c){throw new j.Rv(a,b,c)}if(("insert"===this.queryMetadata.type||"update"===this.queryMetadata.type||"delete"===this.queryMetadata.type)&&this.queryMetadata.tables.length>0)try{let[a]=await Promise.all([c(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return a}catch(c){throw new j.Rv(a,b,c)}if(!this.cacheConfig)try{return await c()}catch(c){throw new j.Rv(a,b,c)}if("select"===this.queryMetadata.type){let d=await this.cache.get(this.cacheConfig.tag??await (0,ac.h1)(a,b),this.queryMetadata.tables,void 0!==this.cacheConfig.tag,this.cacheConfig.autoInvalidate);if(void 0===d){let d;try{d=await c()}catch(c){throw new j.Rv(a,b,c)}return await this.cache.put(this.cacheConfig.tag??await (0,ac.h1)(a,b),d,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],void 0!==this.cacheConfig.tag,this.cacheConfig.config),d}return d}try{return await c()}catch(c){throw new j.Rv(a,b,c)}}}class ae{constructor(a){this.dialect=a}static [e.i]="PgSession";execute(a,b){return F.k.startActiveSpan("drizzle.operation",()=>F.k.startActiveSpan("drizzle.prepareQuery",()=>this.prepareQuery(this.dialect.sqlToQuery(a),void 0,void 0,!1)).setToken(b).execute(void 0,b))}all(a){return this.prepareQuery(this.dialect.sqlToQuery(a),void 0,void 0,!1).all()}async count(a,b){return Number((await this.execute(a,b))[0].count)}}class af extends ab{constructor(a,b,c,d=0){super(a,b,c),this.schema=c,this.nestedIndex=d}static [e.i]="PgTransaction";rollback(){throw new j.jY}getTransactionConfigSQL(a){let b=[];return a.isolationLevel&&b.push(`isolation level ${a.isolationLevel}`),a.accessMode&&b.push(a.accessMode),"boolean"==typeof a.deferrable&&b.push(a.deferrable?"deferrable":"not deferrable"),u.ll.raw(b.join(" "))}setTransaction(a){return this.session.execute((0,u.ll)`set transaction ${this.getTransactionConfigSQL(a)}`)}}let ag={arrayMode:!1,fullResults:!0},ah={arrayMode:!0,fullResults:!0};class ai extends ad{constructor(a,b,c,d,e,f,g,h,i){super(b,d,e,f),this.client=a,this.logger=c,this.fields=g,this._isResponseInArrayMode=h,this.customResultMapper=i,this.clientQuery=a.query??a}static [e.i]="NeonHttpPreparedQuery";clientQuery;async execute(a={},b=this.authToken){let c=(0,u.Ct)(this.query.params,a);this.logger.logQuery(this.query.sql,c);let{fields:d,clientQuery:e,query:f,customResultMapper:g}=this;if(!d&&!g)return this.queryWithCache(f.sql,c,async()=>e(f.sql,c,void 0===b?ag:{...ag,authToken:b}));let h=await this.queryWithCache(f.sql,c,async()=>await e(f.sql,c,void 0===b?ah:{...ah,authToken:b}));return this.mapResult(h)}mapResult(a){if(!this.fields&&!this.customResultMapper)return a;let b=a.rows;return this.customResultMapper?this.customResultMapper(b):b.map(a=>(0,y.a6)(this.fields,a,this.joinsNotNullableMap))}all(a={}){let b=(0,u.Ct)(this.query.params,a);return this.logger.logQuery(this.query.sql,b),this.clientQuery(this.query.sql,b,void 0===this.authToken?ag:{...ag,authToken:this.authToken}).then(a=>a.rows)}values(a={},b){let c=(0,u.Ct)(this.query.params,a);return this.logger.logQuery(this.query.sql,c),this.clientQuery(this.query.sql,c,{arrayMode:!0,fullResults:!0,authToken:b}).then(a=>a.rows)}isResponseInArrayMode(){return this._isResponseInArrayMode}}class aj extends ae{constructor(a,b,c,d={}){super(b),this.client=a,this.schema=c,this.options=d,this.clientQuery=a.query??a,this.logger=d.logger??new f.Pv,this.cache=d.cache??new ac.Th}static [e.i]="NeonHttpSession";clientQuery;logger;cache;prepareQuery(a,b,c,d,e,f,g){return new ai(this.client,a,this.logger,this.cache,f,g,b,d,e)}async batch(a){let b=[],c=[];for(let d of a){let a=d._prepare(),e=a.getQuery();b.push(a),c.push(this.clientQuery(e.sql,e.params,{fullResults:!0,arrayMode:a.isResponseInArrayMode()}))}return(await this.client.transaction(c,ah)).map((a,c)=>b[c].mapResult(a,!0))}async query(a,b){return this.logger.logQuery(a,b),await this.clientQuery(a,b,{arrayMode:!0,fullResults:!0})}async queryObjects(a,b){return this.clientQuery(a,b,{arrayMode:!1,fullResults:!0})}async count(a,b){return Number((await this.execute(a,b)).rows[0].count)}async transaction(a,b={}){throw Error("No transactions support in neon-http driver")}}class ak extends null{static [e.i]=null;async transaction(a){throw Error("No transactions support in neon-http driver")}}class al{constructor(a,b,c={}){this.client=a,this.dialect=b,this.options=c,this.initMappers()}static [e.i]="NeonHttpDriver";createSession(a){return new aj(this.client,this.dialect,a,{logger:this.options.logger,cache:this.options.cache})}initMappers(){d.gK.setTypeParser(d.gK.builtins.TIMESTAMPTZ,a=>a),d.gK.setTypeParser(d.gK.builtins.TIMESTAMP,a=>a),d.gK.setTypeParser(d.gK.builtins.DATE,a=>a),d.gK.setTypeParser(d.gK.builtins.INTERVAL,a=>a),d.gK.setTypeParser(1231,a=>a),d.gK.setTypeParser(1115,a=>a),d.gK.setTypeParser(1185,a=>a),d.gK.setTypeParser(1187,a=>a),d.gK.setTypeParser(1182,a=>a)}}function am(a,b,c,d){return new Proxy(a,{get(a,e){let f=a[e];return"function"!=typeof f&&("object"!=typeof f||null===f)?f:d?am(f,b,c):"query"===e?am(f,b,c,!0):new Proxy(f,{apply(a,d,f){let g=a.call(d,...f);return"object"==typeof g&&null!==g&&"setToken"in g&&"function"==typeof g.setToken&&g.setToken(b),c(a,e,g)}})}})}class an extends ab{static [e.i]="NeonHttpDatabase";$withAuth(a){return this.authToken=a,am(this,a,(b,c,d)=>"with"===c?am(d,a,(a,b,c)=>c):d)}async batch(a){return this.session.batch(a)}}function ao(a,b={}){let c,d,e=new B({casing:b.casing});if(!0===b.logger?c=new f.w:!1!==b.logger&&(c=b.logger),b.schema){let a=(0,t._k)(b.schema,t.DZ);d={fullSchema:b.schema,schema:a.tables,tableNamesMap:a.tableNamesMap}}let g=new al(a,e,{logger:c,cache:b.cache}).createSession(d),h=new an(e,g,d);return h.$client=a,h.$cache=b.cache,h.$cache&&(h.$cache.invalidate=b.cache?.onMutate),h}function ap(...a){if("string"==typeof a[0])return ao((0,d.lw)(a[0]),a[1]);if((0,y.Lq)(a[0])){let{connection:b,client:c,...e}=a[0];if(c)return ao(c,e);if("object"==typeof b){let{connectionString:a,...c}=b;return ao((0,d.lw)(a,c),e)}return ao((0,d.lw)(b),e)}return ao(a[0],a[1])}(ap||(ap={})).mock=function(a){return ao({},a)}},85171:(a,b,c)=>{c.d(b,{gK:()=>bF,lw:()=>bu});var d,e,f,g,h,i,j=Object.create,k=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,n=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,p=(a,b)=>k(a,"name",{value:b,configurable:!0}),q=(a,b)=>()=>(a&&(b=a(a=0)),b),r=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),s=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0})},t=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let e of m(b))o.call(a,e)||e===c||k(a,e,{get:()=>b[e],enumerable:!(d=l(b,e))||d.enumerable});return a},u=(a,b,c)=>(c=null!=a?j(n(a)):{},t(!b&&a&&a.__esModule?c:k(c,"default",{value:a,enumerable:!0}),a)),v=a=>t(k({},"__esModule",{value:!0}),a),w=(a,b,c)=>{let d;return(d="symbol"!=typeof b?b+"":b)in a?k(a,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[d]=c},x=r(a=>{A(),a.byteLength=i,a.toByteArray=k,a.fromByteArray=n;var b,c,d=[],e=[],f="u">typeof Uint8Array?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(b=0,c=g.length;b<c;++b)d[b]=g[b],e[g.charCodeAt(b)]=b;function h(a){var b=a.length;if(b%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}function i(a){var b=h(a),c=b[0],d=b[1];return(c+d)*3/4-d}function j(a,b,c){return(b+c)*3/4-c}function k(a){var b,c,d=h(a),g=d[0],i=d[1],k=new f(j(a,g,i)),l=0,m=i>0?g-4:g;for(c=0;c<m;c+=4)b=e[a.charCodeAt(c)]<<18|e[a.charCodeAt(c+1)]<<12|e[a.charCodeAt(c+2)]<<6|e[a.charCodeAt(c+3)],k[l++]=b>>16&255,k[l++]=b>>8&255,k[l++]=255&b;return 2===i&&(b=e[a.charCodeAt(c)]<<2|e[a.charCodeAt(c+1)]>>4,k[l++]=255&b),1===i&&(b=e[a.charCodeAt(c)]<<10|e[a.charCodeAt(c+1)]<<4|e[a.charCodeAt(c+2)]>>2,k[l++]=b>>8&255,k[l++]=255&b),k}function l(a){return d[a>>18&63]+d[a>>12&63]+d[a>>6&63]+d[63&a]}function m(a,b,c){for(var d=[],e=b;e<c;e+=3)d.push(l((a[e]<<16&0xff0000)+(a[e+1]<<8&65280)+(255&a[e+2])));return d.join("")}function n(a){for(var b,c=a.length,e=c%3,f=[],g=0,h=c-e;g<h;g+=16383)f.push(m(a,g,g+16383>h?h:g+16383));return 1===e?f.push(d[(b=a[c-1])>>2]+d[b<<4&63]+"=="):2===e&&f.push(d[(b=(a[c-2]<<8)+a[c-1])>>10]+d[b>>4&63]+d[b<<2&63]+"="),f.join("")}e[45]=62,e[95]=63,p(h,"getLens"),p(i,"byteLength"),p(j,"_byteLength"),p(k,"toByteArray"),p(l,"tripletToBase64"),p(m,"encodeChunk"),p(n,"fromByteArray")}),y=r(a=>{A(),a.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:1/0*(n?-1:1);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},a.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=5960464477539062e-23*(23===e),n=d?0:f-1,o=d?1:-1,p=+(b<0||0===b&&1/b<0);for(isNaN(b=Math.abs(b))||b===1/0?(h=+!!isNaN(b),g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),g+l>=1?b+=m/i:b+=m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}}),z=r(a=>{A();var b=x(),c=y(),d="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function e(){try{let a=new Uint8Array(1),b={foo:p(function(){return 42},"foo")};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(a,b),42===a.foo()}catch{return!1}}function f(a){if(a>0x7fffffff)throw RangeError('The value "'+a+'" is invalid for option "size"');let b=new Uint8Array(a);return Object.setPrototypeOf(b,g.prototype),b}function g(a,b,c){if("number"==typeof a){if("string"==typeof b)throw TypeError('The "string" argument must be of type string. Received type number');return k(a)}return h(a,b,c)}function h(a,b,c){if("string"==typeof a)return l(a,b);if(ArrayBuffer.isView(a))return n(a);if(null==a)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(ag(a,ArrayBuffer)||a&&ag(a.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(ag(a,SharedArrayBuffer)||a&&ag(a.buffer,SharedArrayBuffer)))return o(a,b,c);if("number"==typeof a)throw TypeError('The "value" argument must not be of type number. Received type number');let d=a.valueOf&&a.valueOf();if(null!=d&&d!==a)return g.from(d,b,c);let e=q(a);if(e)return e;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof a[Symbol.toPrimitive])return g.from(a[Symbol.toPrimitive]("string"),b,c);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}function i(a){if("number"!=typeof a)throw TypeError('"size" argument must be of type number');if(a<0)throw RangeError('The value "'+a+'" is invalid for option "size"')}function j(a,b,c){return i(a),a<=0?f(a):void 0!==b?"string"==typeof c?f(a).fill(b,c):f(a).fill(b):f(a)}function k(a){return i(a),f(a<0?0:0|r(a))}function l(a,b){if(("string"!=typeof b||""===b)&&(b="utf8"),!g.isEncoding(b))throw TypeError("Unknown encoding: "+b);let c=0|t(a,b),d=f(c),e=d.write(a,b);return e!==c&&(d=d.slice(0,e)),d}function m(a){let b=a.length<0?0:0|r(a.length),c=f(b);for(let d=0;d<b;d+=1)c[d]=255&a[d];return c}function n(a){if(ag(a,Uint8Array)){let b=new Uint8Array(a);return o(b.buffer,b.byteOffset,b.byteLength)}return m(a)}function o(a,b,c){let d;if(b<0||a.byteLength<b)throw RangeError('"offset" is outside of buffer bounds');if(a.byteLength<b+(c||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(d=void 0===b&&void 0===c?new Uint8Array(a):void 0===c?new Uint8Array(a,b):new Uint8Array(a,b,c),g.prototype),d}function q(a){if(g.isBuffer(a)){let b=0|r(a.length),c=f(b);return 0===c.length||a.copy(c,0,0,b),c}return void 0!==a.length?"number"!=typeof a.length||ah(a.length)?f(0):m(a):"Buffer"===a.type&&Array.isArray(a.data)?m(a.data):void 0}function r(a){if(a>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|a}function s(a){return+a!=a&&(a=0),g.alloc(+a)}function t(a,b){if(g.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||ag(a,ArrayBuffer))return a.byteLength;if("string"!=typeof a)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);let c=a.length,d=arguments.length>2&&!0===arguments[2];if(!d&&0===c)return 0;let e=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return ab(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return ae(a).length;default:if(e)return d?-1:ab(a).length;b=(""+b).toLowerCase(),e=!0}}function u(a,b,c){let d=!1;if((void 0===b||b<0)&&(b=0),b>this.length||((void 0===c||c>this.length)&&(c=this.length),c<=0)||(c>>>=0)<=(b>>>=0))return"";for(a||(a="utf8");;)switch(a){case"hex":return L(this,b,c);case"utf8":case"utf-8":return H(this,b,c);case"ascii":return J(this,b,c);case"latin1":case"binary":return K(this,b,c);case"base64":return G(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,b,c);default:if(d)throw TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function v(a,b,c){let d=a[b];a[b]=a[c],a[c]=d}function w(a,b,c,d,e){if(0===a.length)return -1;if("string"==typeof c?(d=c,c=0):c>0x7fffffff?c=0x7fffffff:c<-0x80000000&&(c=-0x80000000),ah(c*=1)&&(c=e?0:a.length-1),c<0&&(c=a.length+c),c>=a.length){if(e)return -1;c=a.length-1}else if(c<0)if(!e)return -1;else c=0;if("string"==typeof b&&(b=g.from(b,d)),g.isBuffer(b))return 0===b.length?-1:z(a,b,c,d,e);if("number"==typeof b)return b&=255,"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):z(a,[b],c,d,e);throw TypeError("val must be string, number or Buffer")}function z(a,b,c,d,e){let f,g=1,h=a.length,i=b.length;if(void 0!==d&&("ucs2"===(d=String(d).toLowerCase())||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return -1;g=2,h/=2,i/=2,c/=2}function j(a,b){return 1===g?a[b]:a.readUInt16BE(b*g)}if(p(j,"read"),e){let d=-1;for(f=c;f<h;f++)if(j(a,f)===j(b,-1===d?0:f-d)){if(-1===d&&(d=f),f-d+1===i)return d*g}else -1!==d&&(f-=f-d),d=-1}else for(c+i>h&&(c=h-i),f=c;f>=0;f--){let c=!0;for(let d=0;d<i;d++)if(j(a,f+d)!==j(b,d)){c=!1;break}if(c)return f}return -1}function B(a,b,c,d){let e;c=Number(c)||0;let f=a.length-c;d?(d=Number(d))>f&&(d=f):d=f;let g=b.length;for(d>g/2&&(d=g/2),e=0;e<d;++e){let d=parseInt(b.substr(2*e,2),16);if(ah(d))break;a[c+e]=d}return e}function C(a,b,c,d){return af(ab(b,a.length-c),a,c,d)}function D(a,b,c,d){return af(ac(b),a,c,d)}function E(a,b,c,d){return af(ae(b),a,c,d)}function F(a,b,c,d){return af(ad(b,a.length-c),a,c,d)}function G(a,c,d){return 0===c&&d===a.length?b.fromByteArray(a):b.fromByteArray(a.slice(c,d))}function H(a,b,c){c=Math.min(a.length,c);let d=[],e=b;for(;e<c;){let b=a[e],f=null,g=b>239?4:b>223?3:b>191?2:1;if(e+g<=c){let c,d,h,i;switch(g){case 1:b<128&&(f=b);break;case 2:(192&(c=a[e+1]))==128&&(i=(31&b)<<6|63&c)>127&&(f=i);break;case 3:c=a[e+1],d=a[e+2],(192&c)==128&&(192&d)==128&&(i=(15&b)<<12|(63&c)<<6|63&d)>2047&&(i<55296||i>57343)&&(f=i);break;case 4:c=a[e+1],d=a[e+2],h=a[e+3],(192&c)==128&&(192&d)==128&&(192&h)==128&&(i=(15&b)<<18|(63&c)<<12|(63&d)<<6|63&h)>65535&&i<1114112&&(f=i)}}null===f?(f=65533,g=1):f>65535&&(f-=65536,d.push(f>>>10&1023|55296),f=56320|1023&f),d.push(f),e+=g}return I(d)}function I(a){let b=a.length;if(b<=4096)return String.fromCharCode.apply(String,a);let c="",d=0;for(;d<b;)c+=String.fromCharCode.apply(String,a.slice(d,d+=4096));return c}function J(a,b,c){let d="";c=Math.min(a.length,c);for(let e=b;e<c;++e)d+=String.fromCharCode(127&a[e]);return d}function K(a,b,c){let d="";c=Math.min(a.length,c);for(let e=b;e<c;++e)d+=String.fromCharCode(a[e]);return d}function L(a,b,c){let d=a.length;(!b||b<0)&&(b=0),(!c||c<0||c>d)&&(c=d);let e="";for(let d=b;d<c;++d)e+=ai[a[d]];return e}function M(a,b,c){let d=a.slice(b,c),e="";for(let a=0;a<d.length-1;a+=2)e+=String.fromCharCode(d[a]+256*d[a+1]);return e}function N(a,b,c){if(a%1!=0||a<0)throw RangeError("offset is not uint");if(a+b>c)throw RangeError("Trying to access beyond buffer length")}function O(a,b,c,d,e,f){if(!g.isBuffer(a))throw TypeError('"buffer" argument must be a Buffer instance');if(b>e||b<f)throw RangeError('"value" argument is out of bounds');if(c+d>a.length)throw RangeError("Index out of range")}function P(a,b,c,d,e){Y(b,d,e,a,c,7);let f=Number(b&BigInt(0xffffffff));a[c++]=f,f>>=8,a[c++]=f,f>>=8,a[c++]=f,f>>=8,a[c++]=f;let g=Number(b>>BigInt(32)&BigInt(0xffffffff));return a[c++]=g,g>>=8,a[c++]=g,g>>=8,a[c++]=g,g>>=8,a[c++]=g,c}function Q(a,b,c,d,e){Y(b,d,e,a,c,7);let f=Number(b&BigInt(0xffffffff));a[c+7]=f,f>>=8,a[c+6]=f,f>>=8,a[c+5]=f,f>>=8,a[c+4]=f;let g=Number(b>>BigInt(32)&BigInt(0xffffffff));return a[c+3]=g,g>>=8,a[c+2]=g,g>>=8,a[c+1]=g,g>>=8,a[c]=g,c+8}function R(a,b,c,d,e,f){if(c+d>a.length||c<0)throw RangeError("Index out of range")}function S(a,b,d,e,f){return b*=1,d>>>=0,f||R(a,b,d,4,34028234663852886e22,-34028234663852886e22),c.write(a,b,d,e,23,4),d+4}function T(a,b,d,e,f){return b*=1,d>>>=0,f||R(a,b,d,8,17976931348623157e292,-17976931348623157e292),c.write(a,b,d,e,52,8),d+8}a.Buffer=g,a.SlowBuffer=s,a.INSPECT_MAX_BYTES=50,a.kMaxLength=0x7fffffff,g.TYPED_ARRAY_SUPPORT=e(),!g.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),p(e,"typedArraySupport"),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:p(function(){if(g.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:p(function(){if(g.isBuffer(this))return this.byteOffset},"get")}),p(f,"createBuffer"),p(g,"Buffer"),g.poolSize=8192,p(h,"from"),g.from=function(a,b,c){return h(a,b,c)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),p(i,"assertSize"),p(j,"alloc"),g.alloc=function(a,b,c){return j(a,b,c)},p(k,"allocUnsafe"),g.allocUnsafe=function(a){return k(a)},g.allocUnsafeSlow=function(a){return k(a)},p(l,"fromString"),p(m,"fromArrayLike"),p(n,"fromArrayView"),p(o,"fromArrayBuffer"),p(q,"fromObject"),p(r,"checked"),p(s,"SlowBuffer"),g.isBuffer=p(function(a){return null!=a&&!0===a._isBuffer&&a!==g.prototype},"isBuffer"),g.compare=p(function(a,b){if(ag(a,Uint8Array)&&(a=g.from(a,a.offset,a.byteLength)),ag(b,Uint8Array)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(a)||!g.isBuffer(b))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;let c=a.length,d=b.length;for(let e=0,f=Math.min(c,d);e<f;++e)if(a[e]!==b[e]){c=a[e],d=b[e];break}return c<d?-1:+(d<c)},"compare"),g.isEncoding=p(function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),g.concat=p(function(a,b){let c;if(!Array.isArray(a))throw TypeError('"list" argument must be an Array of Buffers');if(0===a.length)return g.alloc(0);if(void 0===b)for(b=0,c=0;c<a.length;++c)b+=a[c].length;let d=g.allocUnsafe(b),e=0;for(c=0;c<a.length;++c){let b=a[c];if(ag(b,Uint8Array))e+b.length>d.length?(g.isBuffer(b)||(b=g.from(b)),b.copy(d,e)):Uint8Array.prototype.set.call(d,b,e);else if(g.isBuffer(b))b.copy(d,e);else throw TypeError('"list" argument must be an Array of Buffers');e+=b.length}return d},"concat"),p(t,"byteLength"),g.byteLength=t,p(u,"slowToString"),g.prototype._isBuffer=!0,p(v,"swap"),g.prototype.swap16=p(function(){let a=this.length;if(a%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<a;b+=2)v(this,b,b+1);return this},"swap16"),g.prototype.swap32=p(function(){let a=this.length;if(a%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<a;b+=4)v(this,b,b+3),v(this,b+1,b+2);return this},"swap32"),g.prototype.swap64=p(function(){let a=this.length;if(a%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<a;b+=8)v(this,b,b+7),v(this,b+1,b+6),v(this,b+2,b+5),v(this,b+3,b+4);return this},"swap64"),g.prototype.toString=p(function(){let a=this.length;return 0===a?"":0==arguments.length?H(this,0,a):u.apply(this,arguments)},"toString"),g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=p(function(a){if(!g.isBuffer(a))throw TypeError("Argument must be a Buffer");return this===a||0===g.compare(this,a)},"equals"),g.prototype.inspect=p(function(){let b="",c=a.INSPECT_MAX_BYTES;return b=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(b+=" ... "),"<Buffer "+b+">"},"inspect"),d&&(g.prototype[d]=g.prototype.inspect),g.prototype.compare=p(function(a,b,c,d,e){if(ag(a,Uint8Array)&&(a=g.from(a,a.offset,a.byteLength)),!g.isBuffer(a))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(void 0===b&&(b=0),void 0===c&&(c=a?a.length:0),void 0===d&&(d=0),void 0===e&&(e=this.length),b<0||c>a.length||d<0||e>this.length)throw RangeError("out of range index");if(d>=e&&b>=c)return 0;if(d>=e)return -1;if(b>=c)return 1;if(b>>>=0,c>>>=0,d>>>=0,e>>>=0,this===a)return 0;let f=e-d,h=c-b,i=Math.min(f,h),j=this.slice(d,e),k=a.slice(b,c);for(let a=0;a<i;++a)if(j[a]!==k[a]){f=j[a],h=k[a];break}return f<h?-1:+(h<f)},"compare"),p(w,"bidirectionalIndexOf"),p(z,"arrayIndexOf"),g.prototype.includes=p(function(a,b,c){return -1!==this.indexOf(a,b,c)},"includes"),g.prototype.indexOf=p(function(a,b,c){return w(this,a,b,c,!0)},"indexOf"),g.prototype.lastIndexOf=p(function(a,b,c){return w(this,a,b,c,!1)},"lastIndexOf"),p(B,"hexWrite"),p(C,"utf8Write"),p(D,"asciiWrite"),p(E,"base64Write"),p(F,"ucs2Write"),g.prototype.write=p(function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b>>>=0,isFinite(c)?(c>>>=0,void 0===d&&(d="utf8")):(d=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let e=this.length-b;if((void 0===c||c>e)&&(c=e),a.length>0&&(c<0||b<0)||b>this.length)throw RangeError("Attempt to write outside buffer bounds");d||(d="utf8");let f=!1;for(;;)switch(d){case"hex":return B(this,a,b,c);case"utf8":case"utf-8":return C(this,a,b,c);case"ascii":case"latin1":case"binary":return D(this,a,b,c);case"base64":return E(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,a,b,c);default:if(f)throw TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),f=!0}},"write"),g.prototype.toJSON=p(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON"),p(G,"base64Slice"),p(H,"utf8Slice"),p(I,"decodeCodePointsArray"),p(J,"asciiSlice"),p(K,"latin1Slice"),p(L,"hexSlice"),p(M,"utf16leSlice"),g.prototype.slice=p(function(a,b){let c=this.length;a=~~a,b=void 0===b?c:~~b,a<0?(a+=c)<0&&(a=0):a>c&&(a=c),b<0?(b+=c)<0&&(b=0):b>c&&(b=c),b<a&&(b=a);let d=this.subarray(a,b);return Object.setPrototypeOf(d,g.prototype),d},"slice"),p(N,"checkOffset"),g.prototype.readUintLE=g.prototype.readUIntLE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=this[a],e=1,f=0;for(;++f<b&&(e*=256);)d+=this[a+f]*e;return d},"readUIntLE"),g.prototype.readUintBE=g.prototype.readUIntBE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=this[a+--b],e=1;for(;b>0&&(e*=256);)d+=this[a+--b]*e;return d},"readUIntBE"),g.prototype.readUint8=g.prototype.readUInt8=p(function(a,b){return a>>>=0,b||N(a,1,this.length),this[a]},"readUInt8"),g.prototype.readUint16LE=g.prototype.readUInt16LE=p(function(a,b){return a>>>=0,b||N(a,2,this.length),this[a]|this[a+1]<<8},"readUInt16LE"),g.prototype.readUint16BE=g.prototype.readUInt16BE=p(function(a,b){return a>>>=0,b||N(a,2,this.length),this[a]<<8|this[a+1]},"readUInt16BE"),g.prototype.readUint32LE=g.prototype.readUInt32LE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+0x1000000*this[a+3]},"readUInt32LE"),g.prototype.readUint32BE=g.prototype.readUInt32BE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),0x1000000*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},"readUInt32BE"),g.prototype.readBigUInt64LE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];(void 0===b||void 0===c)&&$(a,this.length-8);let d=b+256*this[++a]+65536*this[++a]+0x1000000*this[++a],e=this[++a]+256*this[++a]+65536*this[++a]+0x1000000*c;return BigInt(d)+(BigInt(e)<<BigInt(32))},"readBigUInt64LE")),g.prototype.readBigUInt64BE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];(void 0===b||void 0===c)&&$(a,this.length-8);let d=0x1000000*b+65536*this[++a]+256*this[++a]+this[++a],e=0x1000000*this[++a]+65536*this[++a]+256*this[++a]+c;return(BigInt(d)<<BigInt(32))+BigInt(e)},"readBigUInt64BE")),g.prototype.readIntLE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=this[a],e=1,f=0;for(;++f<b&&(e*=256);)d+=this[a+f]*e;return d>=(e*=128)&&(d-=Math.pow(2,8*b)),d},"readIntLE"),g.prototype.readIntBE=p(function(a,b,c){a>>>=0,b>>>=0,c||N(a,b,this.length);let d=b,e=1,f=this[a+--d];for(;d>0&&(e*=256);)f+=this[a+--d]*e;return f>=(e*=128)&&(f-=Math.pow(2,8*b)),f},"readIntBE"),g.prototype.readInt8=p(function(a,b){return a>>>=0,b||N(a,1,this.length),128&this[a]?-((255-this[a]+1)*1):this[a]},"readInt8"),g.prototype.readInt16LE=p(function(a,b){a>>>=0,b||N(a,2,this.length);let c=this[a]|this[a+1]<<8;return 32768&c?0xffff0000|c:c},"readInt16LE"),g.prototype.readInt16BE=p(function(a,b){a>>>=0,b||N(a,2,this.length);let c=this[a+1]|this[a]<<8;return 32768&c?0xffff0000|c:c},"readInt16BE"),g.prototype.readInt32LE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},"readInt32LE"),g.prototype.readInt32BE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},"readInt32BE"),g.prototype.readBigInt64LE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];return(void 0===b||void 0===c)&&$(a,this.length-8),(BigInt(this[a+4]+256*this[a+5]+65536*this[a+6]+(c<<24))<<BigInt(32))+BigInt(b+256*this[++a]+65536*this[++a]+0x1000000*this[++a])},"readBigInt64LE")),g.prototype.readBigInt64BE=aj(p(function(a){Z(a>>>=0,"offset");let b=this[a],c=this[a+7];return(void 0===b||void 0===c)&&$(a,this.length-8),(BigInt((b<<24)+65536*this[++a]+256*this[++a]+this[++a])<<BigInt(32))+BigInt(0x1000000*this[++a]+65536*this[++a]+256*this[++a]+c)},"readBigInt64BE")),g.prototype.readFloatLE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),c.read(this,a,!0,23,4)},"readFloatLE"),g.prototype.readFloatBE=p(function(a,b){return a>>>=0,b||N(a,4,this.length),c.read(this,a,!1,23,4)},"readFloatBE"),g.prototype.readDoubleLE=p(function(a,b){return a>>>=0,b||N(a,8,this.length),c.read(this,a,!0,52,8)},"readDoubleLE"),g.prototype.readDoubleBE=p(function(a,b){return a>>>=0,b||N(a,8,this.length),c.read(this,a,!1,52,8)},"readDoubleBE"),p(O,"checkInt"),g.prototype.writeUintLE=g.prototype.writeUIntLE=p(function(a,b,c,d){if(a*=1,b>>>=0,c>>>=0,!d){let d=Math.pow(2,8*c)-1;O(this,a,b,c,d,0)}let e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},"writeUIntLE"),g.prototype.writeUintBE=g.prototype.writeUIntBE=p(function(a,b,c,d){if(a*=1,b>>>=0,c>>>=0,!d){let d=Math.pow(2,8*c)-1;O(this,a,b,c,d,0)}let e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},"writeUIntBE"),g.prototype.writeUint8=g.prototype.writeUInt8=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,1,255,0),this[b]=255&a,b+1},"writeUInt8"),g.prototype.writeUint16LE=g.prototype.writeUInt16LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,65535,0),this[b]=255&a,this[b+1]=a>>>8,b+2},"writeUInt16LE"),g.prototype.writeUint16BE=g.prototype.writeUInt16BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,65535,0),this[b]=a>>>8,this[b+1]=255&a,b+2},"writeUInt16BE"),g.prototype.writeUint32LE=g.prototype.writeUInt32LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0xffffffff,0),this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a,b+4},"writeUInt32LE"),g.prototype.writeUint32BE=g.prototype.writeUInt32BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0xffffffff,0),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},"writeUInt32BE"),p(P,"wrtBigUInt64LE"),p(Q,"wrtBigUInt64BE"),g.prototype.writeBigUInt64LE=aj(p(function(a,b=0){return P(this,a,b,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),g.prototype.writeBigUInt64BE=aj(p(function(a,b=0){return Q(this,a,b,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),g.prototype.writeIntLE=p(function(a,b,c,d){if(a*=1,b>>>=0,!d){let d=Math.pow(2,8*c-1);O(this,a,b,c,d-1,-d)}let e=0,f=1,g=0;for(this[b]=255&a;++e<c&&(f*=256);)a<0&&0===g&&0!==this[b+e-1]&&(g=1),this[b+e]=(a/f|0)-g&255;return b+c},"writeIntLE"),g.prototype.writeIntBE=p(function(a,b,c,d){if(a*=1,b>>>=0,!d){let d=Math.pow(2,8*c-1);O(this,a,b,c,d-1,-d)}let e=c-1,f=1,g=0;for(this[b+e]=255&a;--e>=0&&(f*=256);)a<0&&0===g&&0!==this[b+e+1]&&(g=1),this[b+e]=(a/f|0)-g&255;return b+c},"writeIntBE"),g.prototype.writeInt8=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,1,127,-128),a<0&&(a=255+a+1),this[b]=255&a,b+1},"writeInt8"),g.prototype.writeInt16LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,32767,-32768),this[b]=255&a,this[b+1]=a>>>8,b+2},"writeInt16LE"),g.prototype.writeInt16BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,2,32767,-32768),this[b]=a>>>8,this[b+1]=255&a,b+2},"writeInt16BE"),g.prototype.writeInt32LE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0x7fffffff,-0x80000000),this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24,b+4},"writeInt32LE"),g.prototype.writeInt32BE=p(function(a,b,c){return a*=1,b>>>=0,c||O(this,a,b,4,0x7fffffff,-0x80000000),a<0&&(a=0xffffffff+a+1),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},"writeInt32BE"),g.prototype.writeBigInt64LE=aj(p(function(a,b=0){return P(this,a,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),g.prototype.writeBigInt64BE=aj(p(function(a,b=0){return Q(this,a,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE")),p(R,"checkIEEE754"),p(S,"writeFloat"),g.prototype.writeFloatLE=p(function(a,b,c){return S(this,a,b,!0,c)},"writeFloatLE"),g.prototype.writeFloatBE=p(function(a,b,c){return S(this,a,b,!1,c)},"writeFloatBE"),p(T,"writeDouble"),g.prototype.writeDoubleLE=p(function(a,b,c){return T(this,a,b,!0,c)},"writeDoubleLE"),g.prototype.writeDoubleBE=p(function(a,b,c){return T(this,a,b,!1,c)},"writeDoubleBE"),g.prototype.copy=p(function(a,b,c,d){if(!g.isBuffer(a))throw TypeError("argument should be a Buffer");if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&d<c&&(d=c),d===c||0===a.length||0===this.length)return 0;if(b<0)throw RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw RangeError("Index out of range");if(d<0)throw RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);let e=d-c;return this===a&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(b,c,d):Uint8Array.prototype.set.call(a,this.subarray(c,d),b),e},"copy"),g.prototype.fill=p(function(a,b,c,d){let e;if("string"==typeof a){if("string"==typeof b?(d=b,b=0,c=this.length):"string"==typeof c&&(d=c,c=this.length),void 0!==d&&"string"!=typeof d)throw TypeError("encoding must be a string");if("string"==typeof d&&!g.isEncoding(d))throw TypeError("Unknown encoding: "+d);if(1===a.length){let b=a.charCodeAt(0);("utf8"===d&&b<128||"latin1"===d)&&(a=b)}}else"number"==typeof a?a&=255:"boolean"==typeof a&&(a=Number(a));if(b<0||this.length<b||this.length<c)throw RangeError("Out of range index");if(c<=b)return this;if(b>>>=0,c=void 0===c?this.length:c>>>0,a||(a=0),"number"==typeof a)for(e=b;e<c;++e)this[e]=a;else{let f=g.isBuffer(a)?a:g.from(a,d),h=f.length;if(0===h)throw TypeError('The value "'+a+'" is invalid for argument "value"');for(e=0;e<c-b;++e)this[e+b]=f[e%h]}return this},"fill");var U={};function V(a,b,c){var d;U[a]=(p(d=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${a}]`,this.stack,delete this.name}get code(){return a}set code(a){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:a,writable:!0})}toString(){return`${this.name} [${a}\
2
8
  ]: ${this.message}`}},"NodeError"),d)}function W(a){let b="",c=a.length,d=+("-"===a[0]);for(;c>=d+4;c-=3)b=`\
3
9
  _${a.slice(c-3,c)}${b}`;return`${a.slice(0,c)}${b}`}function X(a,b,c){Z(b,"offset"),(void 0===a[b]||void 0===a[b+c])&&$(b,a.length-(c+1))}function Y(a,b,c,d,e,f){if(a>c||a<b){let d="bigint"==typeof b?"n":"",e;throw e=f>3?0===b||b===BigInt(0)?`>= 0${d} and < 2${d}\
4
10
  ** ${(f+1)*8}${d}`:`>= -(2${d} ** ${(f+1)*8-1}${d}) and < 2 ** ${(f+1)*8-1}${d}`:`>= ${b}${d} a\
@@ -30,10 +36,4 @@ red statements must be unique - '${this.name}' was used for a different statemen
30
36
  s set, and key parameters have default values (host: localhost, user: ${d}, db: ${d}, password: null\
31
37
  ). Is an environment variable missing? Alternatively, if you intended to connect with these paramete\
32
38
  rs, please set the host to 'localhost' explicitly.`);let e=super.connect(a),f=b.pipelineTLS&&this.ssl,g="password"===b.pipelineConnect;if(!f&&!b.pipelineConnect)return e;let h=this.connection;if(f&&h.on("connect",()=>h.stream.emit("data","S")),g){h.removeAllListeners("authenticationCleartextPassword"),h.removeAllListeners("readyForQuery"),h.once("readyForQuery",()=>h.on("readyForQuery",this._handleReadyForQuery.bind(this)));let a=this.ssl?"sslconnect":"connect";h.on(a,()=>{this.neonConfig.disableWarningInBrowsers||bm(),this._handleAuthCleartextPassword(),this._handleReadyForQuery()})}return e}async _handleAuthSASLContinue(a){if(typeof crypto>"u"||void 0===crypto.subtle||void 0===crypto.subtle.importKey)throw Error("Cannot use SASL auth when `crypto.subtle` is not defined");let b=crypto.subtle,c=this.saslSession,d=this.password,e=a.data;if("SASLInitialResponse"!==c.message||"string"!=typeof d||"string"!=typeof e)throw Error("SASL: protocol error");let f=Object.fromEntries(e.split(",").map(a=>{if(!/^.=/.test(a))throw Error("SASL: Invalid attribute pair entry");return[a[0],a.substring(2)]})),g=f.r,i=f.s,j=f.i;if(!g||!/^[!-+--~]+$/.test(g))throw Error("SASL: SCRAM-SERVER-FIRST-MESSAGE: nonce missing/unprintable");if(!i||!/^(?:[a-zA-Z0-9+/]{4})*(?:[a-zA-Z0-9+/]{2}==|[a-zA-Z0-9+/]{3}=)?$/.test(i))throw Error("SASL: SCRAM-SERVER-FIRST-MESSAGE: salt missing/not base64");if(!j||!/^[1-9][0-9]*$/.test(j))throw Error("SASL: SCRAM-SERVER-FIRST-MESSAGE: missing/invalid iteration count");if(!g.startsWith(c.clientNonce))throw Error("SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce does not start with client nonce");if(g.length===c.clientNonce.length)throw Error("SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce is too short");let k=parseInt(j,10),l=h.from(i,"base64"),m=new TextEncoder,n=m.encode(d),o=await b.importKey("raw",n,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),p=new Uint8Array(await b.sign("HMAC",o,h.concat([l,h.from([0,0,0,1])]))),q=p;for(var r=0;r<k-1;r++)p=new Uint8Array(await b.sign("HMAC",o,p)),q=h.from(q.map((a,b)=>q[b]^p[b]));let s=q,t=await b.importKey("raw",s,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),u=new Uint8Array(await b.sign("HMAC",t,m.encode("Client Key"))),v=await b.digest("SHA-256",u),w="n=*,r="+c.clientNonce,x="r="+g+",s="+i+",i="+k,y="c=biws,r="+g,z=w+","+x+","+y,A=await b.importKey("raw",v,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);var B=new Uint8Array(await b.sign("HMAC",A,m.encode(z))),C=h.from(u.map((a,b)=>u[b]^B[b])).toString("base64");let D=await b.importKey("raw",s,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),E=await b.sign("HMAC",D,m.encode("Server Key")),F=await b.importKey("raw",E,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);var G=h.from(await b.sign("HMAC",F,m.encode(z)));c.message="SASLResponse",c.serverSignature=G.toString("base64"),c.response=y+",p="+C,this.connection.sendSCRAMClientFinalMessage(this.saslSession.response)}};p(bB,"NeonClient"),I();var bC=u(aG());function bD(a,b){let c,d;return b?{callback:b,result:void 0}:{callback:p(function(a,b){a?c(a):d(b)},"cb"),result:new a(function(a,b){d=a,c=b})}}p(bD,"promisify"),p(class extends bz.Pool{constructor(){super(...arguments),w(this,"Client",bB),w(this,"hasFetchUnsupportedListeners",!1),w(this,"addListener",this.on)}on(a,b){return"error"!==a&&(this.hasFetchUnsupportedListeners=!0),super.on(a,b)}query(a,b,c){if(!H.poolQueryViaFetch||this.hasFetchUnsupportedListeners||"function"==typeof a)return super.query(a,b,c);"function"==typeof b&&(c=b,b=void 0);let d=bD(this.Promise,c);c=d.callback;try{let d=new bC.default(this.options),e=encodeURIComponent,f=encodeURI,g=`postgresql://${e(d.user)}:${e(d.password)}@${e(d.host)}\
33
- /${f(d.database)}`,h="string"==typeof a?a:a.text,i=b??a.values??[];bu(g,{fullResults:!0,arrayMode:"array"===a.rowMode}).query(h,i,{types:a.types??this.options?.types}).then(a=>c(void 0,a)).catch(a=>c(a))}catch(a){c(a)}return d.result}},"NeonPool"),I();var bE=u(a0());bE.DatabaseError,bE.defaults,bE.escapeIdentifier,bE.escapeLiteral;var bF=bE.types},79338:(a,b,c)=>{c.d(b,{fd:()=>ap});var d=c(7552),e=c(37096),f=c(52167),g=c(60327),h=c(64668),i=c(76493),j=c(22588),k=c(26955),l=c(18999),m=c(36793),n=c(91124),o=c(72042),p=c(94039),q=c(56731),r=c(28028),s=c(94730),t=c(61430),u=c(91430),v=c(34216),w=c(65089),x=c(82991),y=c(67106),z=c(20538);class A extends u.Ss{static [e.i]="PgViewBase"}class B{static [e.i]="PgDialect";casing;constructor(a){this.casing=new h.Yn(a?.casing)}async migrate(a,b,c){let d="string"==typeof c?"__drizzle_migrations":c.migrationsTable??"__drizzle_migrations",e="string"==typeof c?"drizzle":c.migrationsSchema??"drizzle",f=(0,u.ll)`
34
- CREATE TABLE IF NOT EXISTS ${u.ll.identifier(e)}.${u.ll.identifier(d)} (
35
- id SERIAL PRIMARY KEY,
36
- hash text NOT NULL,
37
- created_at bigint
38
- )
39
- `;await b.execute((0,u.ll)`CREATE SCHEMA IF NOT EXISTS ${u.ll.identifier(e)}`),await b.execute(f);let g=(await b.all((0,u.ll)`select id, hash, created_at from ${u.ll.identifier(e)}.${u.ll.identifier(d)} order by created_at desc limit 1`))[0];await b.transaction(async b=>{for await(let c of a)if(!g||Number(g.created_at)<c.folderMillis){for(let a of c.sql)await b.execute(u.ll.raw(a));await b.execute((0,u.ll)`insert into ${u.ll.identifier(e)}.${u.ll.identifier(d)} ("hash", "created_at") values(${c.hash}, ${c.folderMillis})`)}})}escapeName(a){return`"${a.replace(/"/g,'""')}"`}escapeParam(a){return`$${a+1}`}escapeString(a){return`'${a.replace(/'/g,"''")}'`}buildWithCTE(a){if(!a?.length)return;let b=[(0,u.ll)`with `];for(let[c,d]of a.entries())b.push((0,u.ll)`${u.ll.identifier(d._.alias)} as (${d._.sql})`),c<a.length-1&&b.push((0,u.ll)`, `);return b.push((0,u.ll)` `),u.ll.join(b)}buildDeleteQuery({table:a,where:b,returning:c,withList:d}){let e=this.buildWithCTE(d),f=c?(0,u.ll)` returning ${this.buildSelection(c,{isSingleTable:!0})}`:void 0,g=b?(0,u.ll)` where ${b}`:void 0;return(0,u.ll)`${e}delete from ${a}${g}${f}`}buildUpdateSet(a,b){let c=a[x.XI.Symbol.Columns],d=Object.keys(c).filter(a=>void 0!==b[a]||c[a]?.onUpdateFn!==void 0),f=d.length;return u.ll.join(d.flatMap((a,d)=>{let g=c[a],h=g.onUpdateFn?.(),i=b[a]??((0,e.is)(h,u.Xs)?h:u.ll.param(h,g)),j=(0,u.ll)`${u.ll.identifier(this.casing.getColumnCasing(g))} = ${i}`;return d<f-1?[j,u.ll.raw(", ")]:[j]}))}buildUpdateQuery({table:a,set:b,where:c,returning:d,withList:e,from:f,joins:g}){let h=this.buildWithCTE(e),i=a[s.mu.Symbol.Name],j=a[s.mu.Symbol.Schema],k=a[s.mu.Symbol.OriginalName],l=i===k?void 0:i,m=(0,u.ll)`${j?(0,u.ll)`${u.ll.identifier(j)}.`:void 0}${u.ll.identifier(k)}${l&&(0,u.ll)` ${u.ll.identifier(l)}`}`,n=this.buildUpdateSet(a,b),o=f&&u.ll.join([u.ll.raw(" from "),this.buildFromTable(f)]),p=this.buildJoins(g),q=d?(0,u.ll)` returning ${this.buildSelection(d,{isSingleTable:!f})}`:void 0,r=c?(0,u.ll)` where ${c}`:void 0;return(0,u.ll)`${h}update ${m} set ${n}${o}${p}${r}${q}`}buildSelection(a,{isSingleTable:b=!1}={}){let c=a.length,d=a.flatMap(({field:a},d)=>{let f=[];if((0,e.is)(a,u.Xs.Aliased)&&a.isSelectionField)f.push(u.ll.identifier(a.fieldAlias));else if((0,e.is)(a,u.Xs.Aliased)||(0,e.is)(a,u.Xs)){let c=(0,e.is)(a,u.Xs.Aliased)?a.sql:a;b?f.push(new u.Xs(c.queryChunks.map(a=>(0,e.is)(a,k.Kl)?u.ll.identifier(this.casing.getColumnCasing(a)):a))):f.push(c),(0,e.is)(a,u.Xs.Aliased)&&f.push((0,u.ll)` as ${u.ll.identifier(a.fieldAlias)}`)}else if((0,e.is)(a,i.V))b?f.push(u.ll.identifier(this.casing.getColumnCasing(a))):f.push(a);else if((0,e.is)(a,w.n)){let b=Object.entries(a._.selectedFields);if(1===b.length){let c=b[0][1],d=(0,e.is)(c,u.Xs)?c.decoder:(0,e.is)(c,i.V)?{mapFromDriverValue:a=>c.mapFromDriverValue(a)}:c.sql.decoder;d&&(a._.sql.decoder=d)}f.push(a)}return d<c-1&&f.push((0,u.ll)`, `),f});return u.ll.join(d)}buildJoins(a){if(!a||0===a.length)return;let b=[];for(let[c,d]of a.entries()){0===c&&b.push((0,u.ll)` `);let f=d.table,g=d.lateral?(0,u.ll)` lateral`:void 0,h=d.on?(0,u.ll)` on ${d.on}`:void 0;if((0,e.is)(f,s.mu)){let a=f[s.mu.Symbol.Name],c=f[s.mu.Symbol.Schema],e=f[s.mu.Symbol.OriginalName],i=a===e?void 0:d.alias;b.push((0,u.ll)`${u.ll.raw(d.joinType)} join${g} ${c?(0,u.ll)`${u.ll.identifier(c)}.`:void 0}${u.ll.identifier(e)}${i&&(0,u.ll)` ${u.ll.identifier(i)}`}${h}`)}else if((0,e.is)(f,u.Ss)){let a=f[z.n].name,c=f[z.n].schema,e=f[z.n].originalName,i=a===e?void 0:d.alias;b.push((0,u.ll)`${u.ll.raw(d.joinType)} join${g} ${c?(0,u.ll)`${u.ll.identifier(c)}.`:void 0}${u.ll.identifier(e)}${i&&(0,u.ll)` ${u.ll.identifier(i)}`}${h}`)}else b.push((0,u.ll)`${u.ll.raw(d.joinType)} join${g} ${f}${h}`);c<a.length-1&&b.push((0,u.ll)` `)}return u.ll.join(b)}buildFromTable(a){if((0,e.is)(a,x.XI)&&a[x.XI.Symbol.IsAlias]){let b=(0,u.ll)`${u.ll.identifier(a[x.XI.Symbol.OriginalName])}`;return a[x.XI.Symbol.Schema]&&(b=(0,u.ll)`${u.ll.identifier(a[x.XI.Symbol.Schema])}.${b}`),(0,u.ll)`${b} ${u.ll.identifier(a[x.XI.Symbol.Name])}`}return a}buildSelectQuery({withList:a,fields:b,fieldsFlat:c,where:d,having:f,table:g,joins:h,orderBy:j,groupBy:k,limit:l,offset:m,lockingClause:n,distinct:o,setOperators:p}){let q,r,s,t=c??(0,y.He)(b);for(let a of t){let b;if((0,e.is)(a.field,i.V)&&(0,x.Io)(a.field.table)!==((0,e.is)(g,w.n)?g._.alias:(0,e.is)(g,A)?g[z.n].name:(0,e.is)(g,u.Xs)?void 0:(0,x.Io)(g))&&(b=a.field.table,!h?.some(({alias:a})=>a===(b[x.XI.Symbol.IsAlias]?(0,x.Io)(b):b[x.XI.Symbol.BaseName])))){let b=(0,x.Io)(a.field.table);throw Error(`Your "${a.path.join("->")}" field references a column "${b}"."${a.field.name}", but the table "${b}" is not part of the query! Did you forget to join it?`)}}let v=!h||0===h.length,B=this.buildWithCTE(a);o&&(q=!0===o?(0,u.ll)` distinct`:(0,u.ll)` distinct on (${u.ll.join(o.on,(0,u.ll)`, `)})`);let C=this.buildSelection(t,{isSingleTable:v}),D=this.buildFromTable(g),E=this.buildJoins(h),F=d?(0,u.ll)` where ${d}`:void 0,G=f?(0,u.ll)` having ${f}`:void 0;j&&j.length>0&&(r=(0,u.ll)` order by ${u.ll.join(j,(0,u.ll)`, `)}`),k&&k.length>0&&(s=(0,u.ll)` group by ${u.ll.join(k,(0,u.ll)`, `)}`);let H="object"==typeof l||"number"==typeof l&&l>=0?(0,u.ll)` limit ${l}`:void 0,I=m?(0,u.ll)` offset ${m}`:void 0,J=u.ll.empty();if(n){let a=(0,u.ll)` for ${u.ll.raw(n.strength)}`;n.config.of&&a.append((0,u.ll)` of ${u.ll.join(Array.isArray(n.config.of)?n.config.of:[n.config.of],(0,u.ll)`, `)}`),n.config.noWait?a.append((0,u.ll)` nowait`):n.config.skipLocked&&a.append((0,u.ll)` skip locked`),J.append(a)}let K=(0,u.ll)`${B}select${q} ${C} from ${D}${E}${F}${s}${G}${r}${H}${I}${J}`;return p.length>0?this.buildSetOperations(K,p):K}buildSetOperations(a,b){let[c,...d]=b;if(!c)throw Error("Cannot pass undefined values to any set operator");return 0===d.length?this.buildSetOperationQuery({leftSelect:a,setOperator:c}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:a,setOperator:c}),d)}buildSetOperationQuery({leftSelect:a,setOperator:{type:b,isAll:c,rightSelect:d,limit:f,orderBy:g,offset:h}}){let i,j=(0,u.ll)`(${a.getSQL()}) `,l=(0,u.ll)`(${d.getSQL()})`;if(g&&g.length>0){let a=[];for(let b of g)if((0,e.is)(b,k.Kl))a.push(u.ll.identifier(b.name));else if((0,e.is)(b,u.Xs)){for(let a=0;a<b.queryChunks.length;a++){let c=b.queryChunks[a];(0,e.is)(c,k.Kl)&&(b.queryChunks[a]=u.ll.identifier(c.name))}a.push((0,u.ll)`${b}`)}else a.push((0,u.ll)`${b}`);i=(0,u.ll)` order by ${u.ll.join(a,(0,u.ll)`, `)} `}let m="object"==typeof f||"number"==typeof f&&f>=0?(0,u.ll)` limit ${f}`:void 0,n=u.ll.raw(`${b} ${c?"all ":""}`),o=h?(0,u.ll)` offset ${h}`:void 0;return(0,u.ll)`${j}${n}${l}${i}${m}${o}`}buildInsertQuery({table:a,values:b,onConflict:c,returning:d,withList:f,select:g,overridingSystemValue_:h}){let i=[],j=Object.entries(a[x.XI.Symbol.Columns]).filter(([a,b])=>!b.shouldDisableInsert()),k=j.map(([,a])=>u.ll.identifier(this.casing.getColumnCasing(a)));if(g)(0,e.is)(b,u.Xs)?i.push(b):i.push(b.getSQL());else for(let[a,c]of(i.push(u.ll.raw("values ")),b.entries())){let d=[];for(let[a,b]of j){let f=c[a];if(void 0===f||(0,e.is)(f,u.Iw)&&void 0===f.value)if(void 0!==b.defaultFn){let a=b.defaultFn(),c=(0,e.is)(a,u.Xs)?a:u.ll.param(a,b);d.push(c)}else if(b.default||void 0===b.onUpdateFn)d.push((0,u.ll)`default`);else{let a=b.onUpdateFn(),c=(0,e.is)(a,u.Xs)?a:u.ll.param(a,b);d.push(c)}else d.push(f)}i.push(d),a<b.length-1&&i.push((0,u.ll)`, `)}let l=this.buildWithCTE(f),m=u.ll.join(i),n=d?(0,u.ll)` returning ${this.buildSelection(d,{isSingleTable:!0})}`:void 0,o=c?(0,u.ll)` on conflict ${c}`:void 0,p=!0===h?(0,u.ll)`overriding system value `:void 0;return(0,u.ll)`${l}insert into ${a} ${k} ${p}${m}${o}${n}`}buildRefreshMaterializedViewQuery({view:a,concurrently:b,withNoData:c}){let d=b?(0,u.ll)` concurrently`:void 0,e=c?(0,u.ll)` with no data`:void 0;return(0,u.ll)`refresh materialized view${d} ${a}${e}`}prepareTyping(a){if((0,e.is)(a,l.kn)||(0,e.is)(a,m.iX))return"json";if((0,e.is)(a,n.Z5))return"decimal";if((0,e.is)(a,o.Xd))return"time";if((0,e.is)(a,p.KM)||(0,e.is)(a,p.xQ))return"timestamp";if((0,e.is)(a,q.qw)||(0,e.is)(a,q.dw))return"date";else if((0,e.is)(a,r.dL))return"uuid";else return"none"}sqlToQuery(a,b){return a.toQuery({casing:this.casing,escapeName:this.escapeName,escapeParam:this.escapeParam,escapeString:this.escapeString,prepareTyping:this.prepareTyping,invokeSource:b})}buildRelationalQueryWithoutPK({fullSchema:a,schema:b,tableNamesMap:c,table:d,tableConfig:f,queryConfig:h,tableAlias:k,nestedQueryRelation:l,joinOn:m}){let n,o=[],p,q,r=[],y,z=[];if(!0===h)o=Object.entries(f.columns).map(([a,b])=>({dbKey:b.name,tsKey:a,field:(0,g.ug)(b,k),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let d=Object.fromEntries(Object.entries(f.columns).map(([a,b])=>[a,(0,g.ug)(b,k)]));if(h.where){let a="function"==typeof h.where?h.where(d,(0,t.mm)()):h.where;y=a&&(0,g.yY)(a,k)}let j=[],l=[];if(h.columns){let a=!1;for(let[b,c]of Object.entries(h.columns))void 0!==c&&b in f.columns&&(a||!0!==c||(a=!0),l.push(b));l.length>0&&(l=a?l.filter(a=>h.columns?.[a]===!0):Object.keys(f.columns).filter(a=>!l.includes(a)))}else l=Object.keys(f.columns);for(let a of l){let b=f.columns[a];j.push({tsKey:a,value:b})}let m=[];if(h.with&&(m=Object.entries(h.with).filter(a=>!!a[1]).map(([a,b])=>({tsKey:a,queryConfig:b,relation:f.relations[a]}))),h.extras)for(let[a,b]of Object.entries("function"==typeof h.extras?h.extras(d,{sql:u.ll}):h.extras))j.push({tsKey:a,value:(0,g.Hs)(b,k)});for(let{tsKey:a,value:b}of j)o.push({dbKey:(0,e.is)(b,u.Xs.Aliased)?b.fieldAlias:f.columns[a].name,tsKey:a,field:(0,e.is)(b,i.V)?(0,g.ug)(b,k):b,relationTableTsKey:void 0,isJson:!1,selection:[]});let n="function"==typeof h.orderBy?h.orderBy(d,(0,t.rl)()):h.orderBy??[];for(let{tsKey:d,queryConfig:f,relation:j}of(Array.isArray(n)||(n=[n]),r=n.map(a=>(0,e.is)(a,i.V)?(0,g.ug)(a,k):(0,g.yY)(a,k)),p=h.limit,q=h.offset,m)){let h=(0,t.W0)(b,c,j),i=c[(0,x.Lf)(j.referencedTable)],l=`${k}_${d}`,m=(0,v.Uo)(...h.fields.map((a,b)=>(0,v.eq)((0,g.ug)(h.references[b],l),(0,g.ug)(a,k)))),n=this.buildRelationalQueryWithoutPK({fullSchema:a,schema:b,tableNamesMap:c,table:a[i],tableConfig:b[i],queryConfig:(0,e.is)(j,t.pD)?!0===f?{limit:1}:{...f,limit:1}:f,tableAlias:l,joinOn:m,nestedQueryRelation:j}),p=(0,u.ll)`${u.ll.identifier(l)}.${u.ll.identifier("data")}`.as(d);z.push({on:(0,u.ll)`true`,table:new w.n(n.sql,{},l),alias:l,joinType:"left",lateral:!0}),o.push({dbKey:d,tsKey:d,field:p,relationTableTsKey:i,isJson:!0,selection:n.selection})}}if(0===o.length)throw new j.n9({message:`No fields selected for table "${f.tsName}" ("${k}")`});if(y=(0,v.Uo)(m,y),l){let a=(0,u.ll)`json_build_array(${u.ll.join(o.map(({field:a,tsKey:b,isJson:c})=>c?(0,u.ll)`${u.ll.identifier(`${k}_${b}`)}.${u.ll.identifier("data")}`:(0,e.is)(a,u.Xs.Aliased)?a.sql:a),(0,u.ll)`, `)})`;(0,e.is)(l,t.iv)&&(a=(0,u.ll)`coalesce(json_agg(${a}${r.length>0?(0,u.ll)` order by ${u.ll.join(r,(0,u.ll)`, `)}`:void 0}), '[]'::json)`);let b=[{dbKey:"data",tsKey:"data",field:a.as("data"),isJson:!0,relationTableTsKey:f.tsName,selection:o}];void 0!==p||void 0!==q||r.length>0?(n=this.buildSelectQuery({table:(0,g.oG)(d,k),fields:{},fieldsFlat:[{path:[],field:u.ll.raw("*")}],where:y,limit:p,offset:q,orderBy:r,setOperators:[]}),y=void 0,p=void 0,q=void 0,r=[]):n=(0,g.oG)(d,k),n=this.buildSelectQuery({table:(0,e.is)(n,s.mu)?n:new w.n(n,{},k),fields:{},fieldsFlat:b.map(({field:a})=>({path:[],field:(0,e.is)(a,i.V)?(0,g.ug)(a,k):a})),joins:z,where:y,limit:p,offset:q,orderBy:r,setOperators:[]})}else n=this.buildSelectQuery({table:(0,g.oG)(d,k),fields:{},fieldsFlat:o.map(({field:a})=>({path:[],field:(0,e.is)(a,i.V)?(0,g.ug)(a,k):a})),joins:z,where:y,limit:p,offset:q,orderBy:r,setOperators:[]});return{tableTsKey:f.tsName,sql:n,selection:o}}}var C=c(79380),D=c(50793),E=c(91963),F=c(53217);function G(a){return(0,e.is)(a,s.mu)?[a[x.Sj]?`${a[x.Sj]}.${a[x.XI.Symbol.BaseName]}`:a[x.XI.Symbol.BaseName]]:(0,e.is)(a,w.n)?a._.usedTables??[]:(0,e.is)(a,u.Xs)?a.usedTables??[]:[]}class H{static [e.i]="PgSelectBuilder";fields;session;dialect;withList=[];distinct;constructor(a){this.fields=a.fields,this.session=a.session,this.dialect=a.dialect,a.withList&&(this.withList=a.withList),this.distinct=a.distinct}authToken;setToken(a){return this.authToken=a,this}from(a){let b,c=!!this.fields;return b=this.fields?this.fields:(0,e.is)(a,w.n)?Object.fromEntries(Object.keys(a._.selectedFields).map(b=>[b,a[b]])):(0,e.is)(a,A)?a[z.n].selectedFields:(0,e.is)(a,u.Xs)?{}:(0,y.YD)(a),new J({table:a,fields:b,isPartialSelect:c,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct}).setToken(this.authToken)}}class I extends D.O{static [e.i]="PgSelectQueryBuilder";_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:a,fields:b,isPartialSelect:c,session:d,dialect:e,withList:f,distinct:g}){for(const h of(super(),this.config={withList:f,table:a,fields:{...b},distinct:g,setOperators:[]},this.isPartialSelect=c,this.session=d,this.dialect=e,this._={selectedFields:b,config:this.config},this.tableName=(0,y.zN)(a),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{},G(a)))this.usedTables.add(h)}getUsedTables(){return[...this.usedTables]}createJoin(a,b){return(c,d)=>{let f=this.tableName,g=(0,y.zN)(c);for(let a of G(c))this.usedTables.add(a);if("string"==typeof g&&this.config.joins?.some(a=>a.alias===g))throw Error(`Alias "${g}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof f&&(this.config.fields={[f]:this.config.fields}),"string"==typeof g&&!(0,e.is)(c,u.Xs))){let a=(0,e.is)(c,w.n)?c._.selectedFields:(0,e.is)(c,u.Ss)?c[z.n].selectedFields:c[x.XI.Symbol.Columns];this.config.fields[g]=a}if("function"==typeof d&&(d=d(new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:d,table:c,joinType:a,alias:g,lateral:b}),"string"==typeof g)switch(a){case"left":this.joinsNotNullableMap[g]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[g]=!0;break;case"cross":case"inner":this.joinsNotNullableMap[g]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[g]=!1}return this}}leftJoin=this.createJoin("left",!1);leftJoinLateral=this.createJoin("left",!0);rightJoin=this.createJoin("right",!1);innerJoin=this.createJoin("inner",!1);innerJoinLateral=this.createJoin("inner",!0);fullJoin=this.createJoin("full",!1);crossJoin=this.createJoin("cross",!1);crossJoinLateral=this.createJoin("cross",!0);createSetOperator(a,b){return c=>{let d="function"==typeof c?c(L()):c;if(!(0,y.DV)(this.getSelectedFields(),d.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:a,isAll:b,rightSelect:d}),this}}union=this.createSetOperator("union",!1);unionAll=this.createSetOperator("union",!0);intersect=this.createSetOperator("intersect",!1);intersectAll=this.createSetOperator("intersect",!0);except=this.createSetOperator("except",!1);exceptAll=this.createSetOperator("except",!0);addSetOperators(a){return this.config.setOperators.push(...a),this}where(a){return"function"==typeof a&&(a=a(new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=a,this}having(a){return"function"==typeof a&&(a=a(new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=a,this}groupBy(...a){if("function"==typeof a[0]){let b=a[0](new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(b)?b:[b]}else this.config.groupBy=a;return this}orderBy(...a){if("function"==typeof a[0]){let b=a[0](new Proxy(this.config.fields,new C.b({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),c=Array.isArray(b)?b:[b];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=c:this.config.orderBy=c}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=a:this.config.orderBy=a;return this}limit(a){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=a:this.config.limit=a,this}offset(a){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=a:this.config.offset=a,this}for(a,b={}){return this.config.lockingClause={strength:a,config:b},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}as(a){let b=[];if(b.push(...G(this.config.table)),this.config.joins)for(let a of this.config.joins)b.push(...G(a.table));return new Proxy(new w.n(this.getSQL(),this.config.fields,a,!1,[...new Set(b)]),new C.b({alias:a,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new C.b({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}$withCache(a){return this.cacheConfig=void 0===a?{config:{},enable:!0,autoInvalidate:!0}:!1===a?{enable:!1}:{enable:!0,autoInvalidate:!0,...a},this}}class J extends I{static [e.i]="PgSelect";_prepare(a){let{session:b,config:c,dialect:d,joinsNotNullableMap:e,authToken:f,cacheConfig:g,usedTables:h}=this;if(!b)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let{fields:i}=c;return F.k.startActiveSpan("drizzle.prepareQuery",()=>{let c=(0,y.He)(i),j=b.prepareQuery(d.sqlToQuery(this.getSQL()),c,a,!0,void 0,{type:"select",tables:[...h]},g);return j.joinsNotNullableMap=e,j.setToken(f)})}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken))}function K(a,b){return(c,d,...e)=>{let f=[d,...e].map(c=>({type:a,isAll:b,rightSelect:c}));for(let a of f)if(!(0,y.DV)(c.getSelectedFields(),a.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return c.addSetOperators(f)}}(0,y.XJ)(J,[E.k]);let L=()=>({union:M,unionAll:N,intersect:O,intersectAll:P,except:Q,exceptAll:R}),M=K("union",!1),N=K("union",!0),O=K("intersect",!1),P=K("intersect",!0),Q=K("except",!1),R=K("except",!0);class S{static [e.i]="PgQueryBuilder";dialect;dialectConfig;constructor(a){this.dialect=(0,e.is)(a,B)?a:void 0,this.dialectConfig=(0,e.is)(a,B)?void 0:a}$with=(a,b)=>{let c=this;return{as:d=>("function"==typeof d&&(d=d(c)),new Proxy(new w.J(d.getSQL(),b??("getSelectedFields"in d?d.getSelectedFields()??{}:{}),a,!0),new C.b({alias:a,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}};with(...a){let b=this;return{select:function(c){return new H({fields:c??void 0,session:void 0,dialect:b.getDialect(),withList:a})},selectDistinct:function(a){return new H({fields:a??void 0,session:void 0,dialect:b.getDialect(),distinct:!0})},selectDistinctOn:function(a,c){return new H({fields:c??void 0,session:void 0,dialect:b.getDialect(),distinct:{on:a}})}}}select(a){return new H({fields:a??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(a){return new H({fields:a??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(a,b){return new H({fields:b??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:a}})}getDialect(){return this.dialect||(this.dialect=new B(this.dialectConfig)),this.dialect}}class T{constructor(a,b,c,d){this.table=a,this.session=b,this.dialect=c,this.withList=d}static [e.i]="PgUpdateBuilder";authToken;setToken(a){return this.authToken=a,this}set(a){return new U(this.table,(0,y.q)(this.table,a),this.session,this.dialect,this.withList).setToken(this.authToken)}}class U extends E.k{constructor(a,b,c,d,e){super(),this.session=c,this.dialect=d,this.config={set:b,table:a,withList:e,joins:[]},this.tableName=(0,y.zN)(a),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}static [e.i]="PgUpdate";config;tableName;joinsNotNullableMap;cacheConfig;from(a){let b=(0,y.zN)(a);return"string"==typeof b&&(this.joinsNotNullableMap[b]=!0),this.config.from=a,this}getTableLikeFields(a){return(0,e.is)(a,s.mu)?a[x.XI.Symbol.Columns]:(0,e.is)(a,w.n)?a._.selectedFields:a[z.n].selectedFields}createJoin(a){return(b,c)=>{let d=(0,y.zN)(b);if("string"==typeof d&&this.config.joins.some(a=>a.alias===d))throw Error(`Alias "${d}" is already used in this query`);if("function"==typeof c){let a=this.config.from&&!(0,e.is)(this.config.from,u.Xs)?this.getTableLikeFields(this.config.from):void 0;c=c(new Proxy(this.config.table[x.XI.Symbol.Columns],new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),a&&new Proxy(a,new C.b({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}if(this.config.joins.push({on:c,table:b,joinType:a,alias:d}),"string"==typeof d)switch(a){case"left":this.joinsNotNullableMap[d]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[d]=!0;break;case"inner":this.joinsNotNullableMap[d]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([a])=>[a,!1])),this.joinsNotNullableMap[d]=!1}return this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where(a){return this.config.where=a,this}returning(a){if(!a&&(a=Object.assign({},this.config.table[x.XI.Symbol.Columns]),this.config.from)){let b=(0,y.zN)(this.config.from);if("string"==typeof b&&this.config.from&&!(0,e.is)(this.config.from,u.Xs)){let c=this.getTableLikeFields(this.config.from);a[b]=c}for(let b of this.config.joins){let c=(0,y.zN)(b.table);if("string"==typeof c&&!(0,e.is)(b.table,u.Xs)){let d=this.getTableLikeFields(b.table);a[c]=d}}}return this.config.returningFields=a,this.config.returning=(0,y.He)(a),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){let b=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,a,!0,void 0,{type:"insert",tables:G(this.config.table)},this.cacheConfig);return b.joinsNotNullableMap=this.joinsNotNullableMap,b}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>this._prepare().execute(a,this.authToken);getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new C.b({alias:(0,x.Io)(this.config.table),sqlAliasedBehavior:"alias",sqlBehavior:"error"})):void 0}$dynamic(){return this}}class V{constructor(a,b,c,d,e){this.table=a,this.session=b,this.dialect=c,this.withList=d,this.overridingSystemValue_=e}static [e.i]="PgInsertBuilder";authToken;setToken(a){return this.authToken=a,this}overridingSystemValue(){return this.overridingSystemValue_=!0,this}values(a){if(0===(a=Array.isArray(a)?a:[a]).length)throw Error("values() must be called with at least one value");let b=a.map(a=>{let b={},c=this.table[x.XI.Symbol.Columns];for(let d of Object.keys(a)){let f=a[d];b[d]=(0,e.is)(f,u.Xs)?f:new u.Iw(f,c[d])}return b});return new W(this.table,b,this.session,this.dialect,this.withList,!1,this.overridingSystemValue_).setToken(this.authToken)}select(a){let b="function"==typeof a?a(new S):a;if(!(0,e.is)(b,u.Xs)&&!(0,y.DV)(this.table[x.e],b._.selectedFields))throw Error("Insert select error: selected fields are not the same or are in a different order compared to the table definition");return new W(this.table,b,this.session,this.dialect,this.withList,!0)}}class W extends E.k{constructor(a,b,c,d,e,f,g){super(),this.session=c,this.dialect=d,this.config={table:a,values:b,withList:e,select:f,overridingSystemValue_:g}}static [e.i]="PgInsert";config;cacheConfig;returning(a=this.config.table[x.XI.Symbol.Columns]){return this.config.returningFields=a,this.config.returning=(0,y.He)(a),this}onConflictDoNothing(a={}){if(void 0===a.target)this.config.onConflict=(0,u.ll)`do nothing`;else{let b="";b=Array.isArray(a.target)?a.target.map(a=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(a))).join(","):this.dialect.escapeName(this.dialect.casing.getColumnCasing(a.target));let c=a.where?(0,u.ll)` where ${a.where}`:void 0;this.config.onConflict=(0,u.ll)`(${u.ll.raw(b)})${c} do nothing`}return this}onConflictDoUpdate(a){if(a.where&&(a.targetWhere||a.setWhere))throw Error('You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.');let b=a.where?(0,u.ll)` where ${a.where}`:void 0,c=a.targetWhere?(0,u.ll)` where ${a.targetWhere}`:void 0,d=a.setWhere?(0,u.ll)` where ${a.setWhere}`:void 0,e=this.dialect.buildUpdateSet(this.config.table,(0,y.q)(this.config.table,a.set)),f="";return f=Array.isArray(a.target)?a.target.map(a=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(a))).join(","):this.dialect.escapeName(this.dialect.casing.getColumnCasing(a.target)),this.config.onConflict=(0,u.ll)`(${u.ll.raw(f)})${c} do update set ${e}${b}${d}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,a,!0,void 0,{type:"insert",tables:G(this.config.table)},this.cacheConfig))}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new C.b({alias:(0,x.Io)(this.config.table),sqlAliasedBehavior:"alias",sqlBehavior:"error"})):void 0}$dynamic(){return this}}class X extends E.k{constructor(a,b,c,d){super(),this.session=b,this.dialect=c,this.config={table:a,withList:d}}static [e.i]="PgDelete";config;cacheConfig;where(a){return this.config.where=a,this}returning(a=this.config.table[x.XI.Symbol.Columns]){return this.config.returningFields=a,this.config.returning=(0,y.He)(a),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,a,!0,void 0,{type:"delete",tables:G(this.config.table)},this.cacheConfig))}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new C.b({alias:(0,x.Io)(this.config.table),sqlAliasedBehavior:"alias",sqlBehavior:"error"})):void 0}$dynamic(){return this}}class Y extends u.Xs{constructor(a){super(Y.buildEmbeddedCount(a.source,a.filters).queryChunks),this.params=a,this.mapWith(Number),this.session=a.session,this.sql=Y.buildCount(a.source,a.filters)}sql;token;static [e.i]="PgCountBuilder";[Symbol.toStringTag]="PgCountBuilder";session;static buildEmbeddedCount(a,b){return(0,u.ll)`(select count(*) from ${a}${u.ll.raw(" where ").if(b)}${b})`}static buildCount(a,b){return(0,u.ll)`select count(*) as count from ${a}${u.ll.raw(" where ").if(b)}${b};`}setToken(a){return this.token=a,this}then(a,b){return Promise.resolve(this.session.count(this.sql,this.token)).then(a,b)}catch(a){return this.then(void 0,a)}finally(a){return this.then(b=>(a?.(),b),b=>{throw a?.(),b})}}class Z{constructor(a,b,c,d,e,f,g){this.fullSchema=a,this.schema=b,this.tableNamesMap=c,this.table=d,this.tableConfig=e,this.dialect=f,this.session=g}static [e.i]="PgRelationalQueryBuilder";findMany(a){return new $(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,a||{},"many")}findFirst(a){return new $(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,a?{...a,limit:1}:{limit:1},"first")}}class $ extends E.k{constructor(a,b,c,d,e,f,g,h,i){super(),this.fullSchema=a,this.schema=b,this.tableNamesMap=c,this.table=d,this.tableConfig=e,this.dialect=f,this.session=g,this.config=h,this.mode=i}static [e.i]="PgRelationalQuery";_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>{let{query:b,builtQuery:c}=this._toSQL();return this.session.prepareQuery(c,void 0,a,!0,(a,c)=>{let d=a.map(a=>(0,t.I$)(this.schema,this.tableConfig,a,b.selection,c));return"first"===this.mode?d[0]:d})})}prepare(a){return this._prepare(a)}_getQuery(){return this.dialect.buildRelationalQueryWithoutPK({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let a=this._getQuery(),b=this.dialect.sqlToQuery(a.sql);return{query:a,builtQuery:b}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(a){return this.authToken=a,this}execute(){return F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(void 0,this.authToken))}}class _ extends E.k{constructor(a,b,c,d){super(),this.execute=a,this.sql=b,this.query=c,this.mapBatchResult=d}static [e.i]="PgRaw";getSQL(){return this.sql}getQuery(){return this.query}mapResult(a,b){return b?this.mapBatchResult(a):a}_prepare(){return this}isResponseInArrayMode(){return!1}}class aa extends E.k{constructor(a,b,c){super(),this.session=b,this.dialect=c,this.config={view:a}}static [e.i]="PgRefreshMaterializedView";config;concurrently(){if(void 0!==this.config.withNoData)throw Error("Cannot use concurrently and withNoData together");return this.config.concurrently=!0,this}withNoData(){if(void 0!==this.config.concurrently)throw Error("Cannot use concurrently and withNoData together");return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:a,...b}=this.dialect.sqlToQuery(this.getSQL());return b}_prepare(a){return F.k.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,a,!0))}prepare(a){return this._prepare(a)}authToken;setToken(a){return this.authToken=a,this}execute=a=>F.k.startActiveSpan("drizzle.operation",()=>this._prepare().execute(a,this.authToken))}class ab{constructor(a,b,c){if(this.dialect=a,this.session=b,this._=c?{schema:c.schema,fullSchema:c.fullSchema,tableNamesMap:c.tableNamesMap,session:b}:{schema:void 0,fullSchema:{},tableNamesMap:{},session:b},this.query={},this._.schema)for(const[d,e]of Object.entries(this._.schema))this.query[d]=new Z(c.fullSchema,this._.schema,this._.tableNamesMap,c.fullSchema[d],e,a,b);this.$cache={invalidate:async a=>{}}}static [e.i]="PgDatabase";query;$with=(a,b)=>{let c=this;return{as:d=>("function"==typeof d&&(d=d(new S(c.dialect))),new Proxy(new w.J(d.getSQL(),b??("getSelectedFields"in d?d.getSelectedFields()??{}:{}),a,!0),new C.b({alias:a,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}};$count(a,b){return new Y({source:a,filters:b,session:this.session})}$cache;with(...a){let b=this;return{select:function(c){return new H({fields:c??void 0,session:b.session,dialect:b.dialect,withList:a})},selectDistinct:function(c){return new H({fields:c??void 0,session:b.session,dialect:b.dialect,withList:a,distinct:!0})},selectDistinctOn:function(c,d){return new H({fields:d??void 0,session:b.session,dialect:b.dialect,withList:a,distinct:{on:c}})},update:function(c){return new T(c,b.session,b.dialect,a)},insert:function(c){return new V(c,b.session,b.dialect,a)},delete:function(c){return new X(c,b.session,b.dialect,a)}}}select(a){return new H({fields:a??void 0,session:this.session,dialect:this.dialect})}selectDistinct(a){return new H({fields:a??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(a,b){return new H({fields:b??void 0,session:this.session,dialect:this.dialect,distinct:{on:a}})}update(a){return new T(a,this.session,this.dialect)}insert(a){return new V(a,this.session,this.dialect)}delete(a){return new X(a,this.session,this.dialect)}refreshMaterializedView(a){return new aa(a,this.session,this.dialect)}authToken;execute(a){let b="string"==typeof a?u.ll.raw(a):a.getSQL(),c=this.dialect.sqlToQuery(b),d=this.session.prepareQuery(c,void 0,void 0,!1);return new _(()=>d.execute(void 0,this.authToken),b,c,a=>d.mapResult(a,!0))}transaction(a,b){return this.session.transaction(a,b)}}var ac=c(34070);class ad{constructor(a,b,c,d){this.query=a,this.cache=b,this.queryMetadata=c,this.cacheConfig=d,b&&"all"===b.strategy()&&void 0===d&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),this.cacheConfig?.enable||(this.cacheConfig=void 0)}authToken;getQuery(){return this.query}mapResult(a,b){return a}setToken(a){return this.authToken=a,this}static [e.i]="PgPreparedQuery";joinsNotNullableMap;async queryWithCache(a,b,c){if(void 0===this.cache||(0,e.is)(this.cache,ac.Th)||void 0===this.queryMetadata||this.cacheConfig&&!this.cacheConfig.enable)try{return await c()}catch(c){throw new j.Rv(a,b,c)}if(("insert"===this.queryMetadata.type||"update"===this.queryMetadata.type||"delete"===this.queryMetadata.type)&&this.queryMetadata.tables.length>0)try{let[a]=await Promise.all([c(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return a}catch(c){throw new j.Rv(a,b,c)}if(!this.cacheConfig)try{return await c()}catch(c){throw new j.Rv(a,b,c)}if("select"===this.queryMetadata.type){let d=await this.cache.get(this.cacheConfig.tag??await (0,ac.h1)(a,b),this.queryMetadata.tables,void 0!==this.cacheConfig.tag,this.cacheConfig.autoInvalidate);if(void 0===d){let d;try{d=await c()}catch(c){throw new j.Rv(a,b,c)}return await this.cache.put(this.cacheConfig.tag??await (0,ac.h1)(a,b),d,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],void 0!==this.cacheConfig.tag,this.cacheConfig.config),d}return d}try{return await c()}catch(c){throw new j.Rv(a,b,c)}}}class ae{constructor(a){this.dialect=a}static [e.i]="PgSession";execute(a,b){return F.k.startActiveSpan("drizzle.operation",()=>F.k.startActiveSpan("drizzle.prepareQuery",()=>this.prepareQuery(this.dialect.sqlToQuery(a),void 0,void 0,!1)).setToken(b).execute(void 0,b))}all(a){return this.prepareQuery(this.dialect.sqlToQuery(a),void 0,void 0,!1).all()}async count(a,b){return Number((await this.execute(a,b))[0].count)}}class af extends ab{constructor(a,b,c,d=0){super(a,b,c),this.schema=c,this.nestedIndex=d}static [e.i]="PgTransaction";rollback(){throw new j.jY}getTransactionConfigSQL(a){let b=[];return a.isolationLevel&&b.push(`isolation level ${a.isolationLevel}`),a.accessMode&&b.push(a.accessMode),"boolean"==typeof a.deferrable&&b.push(a.deferrable?"deferrable":"not deferrable"),u.ll.raw(b.join(" "))}setTransaction(a){return this.session.execute((0,u.ll)`set transaction ${this.getTransactionConfigSQL(a)}`)}}let ag={arrayMode:!1,fullResults:!0},ah={arrayMode:!0,fullResults:!0};class ai extends ad{constructor(a,b,c,d,e,f,g,h,i){super(b,d,e,f),this.client=a,this.logger=c,this.fields=g,this._isResponseInArrayMode=h,this.customResultMapper=i,this.clientQuery=a.query??a}static [e.i]="NeonHttpPreparedQuery";clientQuery;async execute(a={},b=this.authToken){let c=(0,u.Ct)(this.query.params,a);this.logger.logQuery(this.query.sql,c);let{fields:d,clientQuery:e,query:f,customResultMapper:g}=this;if(!d&&!g)return this.queryWithCache(f.sql,c,async()=>e(f.sql,c,void 0===b?ag:{...ag,authToken:b}));let h=await this.queryWithCache(f.sql,c,async()=>await e(f.sql,c,void 0===b?ah:{...ah,authToken:b}));return this.mapResult(h)}mapResult(a){if(!this.fields&&!this.customResultMapper)return a;let b=a.rows;return this.customResultMapper?this.customResultMapper(b):b.map(a=>(0,y.a6)(this.fields,a,this.joinsNotNullableMap))}all(a={}){let b=(0,u.Ct)(this.query.params,a);return this.logger.logQuery(this.query.sql,b),this.clientQuery(this.query.sql,b,void 0===this.authToken?ag:{...ag,authToken:this.authToken}).then(a=>a.rows)}values(a={},b){let c=(0,u.Ct)(this.query.params,a);return this.logger.logQuery(this.query.sql,c),this.clientQuery(this.query.sql,c,{arrayMode:!0,fullResults:!0,authToken:b}).then(a=>a.rows)}isResponseInArrayMode(){return this._isResponseInArrayMode}}class aj extends ae{constructor(a,b,c,d={}){super(b),this.client=a,this.schema=c,this.options=d,this.clientQuery=a.query??a,this.logger=d.logger??new f.Pv,this.cache=d.cache??new ac.Th}static [e.i]="NeonHttpSession";clientQuery;logger;cache;prepareQuery(a,b,c,d,e,f,g){return new ai(this.client,a,this.logger,this.cache,f,g,b,d,e)}async batch(a){let b=[],c=[];for(let d of a){let a=d._prepare(),e=a.getQuery();b.push(a),c.push(this.clientQuery(e.sql,e.params,{fullResults:!0,arrayMode:a.isResponseInArrayMode()}))}return(await this.client.transaction(c,ah)).map((a,c)=>b[c].mapResult(a,!0))}async query(a,b){return this.logger.logQuery(a,b),await this.clientQuery(a,b,{arrayMode:!0,fullResults:!0})}async queryObjects(a,b){return this.clientQuery(a,b,{arrayMode:!1,fullResults:!0})}async count(a,b){return Number((await this.execute(a,b)).rows[0].count)}async transaction(a,b={}){throw Error("No transactions support in neon-http driver")}}class ak extends null{static [e.i]=null;async transaction(a){throw Error("No transactions support in neon-http driver")}}class al{constructor(a,b,c={}){this.client=a,this.dialect=b,this.options=c,this.initMappers()}static [e.i]="NeonHttpDriver";createSession(a){return new aj(this.client,this.dialect,a,{logger:this.options.logger,cache:this.options.cache})}initMappers(){d.gK.setTypeParser(d.gK.builtins.TIMESTAMPTZ,a=>a),d.gK.setTypeParser(d.gK.builtins.TIMESTAMP,a=>a),d.gK.setTypeParser(d.gK.builtins.DATE,a=>a),d.gK.setTypeParser(d.gK.builtins.INTERVAL,a=>a),d.gK.setTypeParser(1231,a=>a),d.gK.setTypeParser(1115,a=>a),d.gK.setTypeParser(1185,a=>a),d.gK.setTypeParser(1187,a=>a),d.gK.setTypeParser(1182,a=>a)}}function am(a,b,c,d){return new Proxy(a,{get(a,e){let f=a[e];return"function"!=typeof f&&("object"!=typeof f||null===f)?f:d?am(f,b,c):"query"===e?am(f,b,c,!0):new Proxy(f,{apply(a,d,f){let g=a.call(d,...f);return"object"==typeof g&&null!==g&&"setToken"in g&&"function"==typeof g.setToken&&g.setToken(b),c(a,e,g)}})}})}class an extends ab{static [e.i]="NeonHttpDatabase";$withAuth(a){return this.authToken=a,am(this,a,(b,c,d)=>"with"===c?am(d,a,(a,b,c)=>c):d)}async batch(a){return this.session.batch(a)}}function ao(a,b={}){let c,d,e=new B({casing:b.casing});if(!0===b.logger?c=new f.w:!1!==b.logger&&(c=b.logger),b.schema){let a=(0,t._k)(b.schema,t.DZ);d={fullSchema:b.schema,schema:a.tables,tableNamesMap:a.tableNamesMap}}let g=new al(a,e,{logger:c,cache:b.cache}).createSession(d),h=new an(e,g,d);return h.$client=a,h.$cache=b.cache,h.$cache&&(h.$cache.invalidate=b.cache?.onMutate),h}function ap(...a){if("string"==typeof a[0])return ao((0,d.lw)(a[0]),a[1]);if((0,y.Lq)(a[0])){let{connection:b,client:c,...e}=a[0];if(c)return ao(c,e);if("object"==typeof b){let{connectionString:a,...c}=b;return ao((0,d.lw)(a,c),e)}return ao((0,d.lw)(b),e)}return ao(a[0],a[1])}(ap||(ap={})).mock=function(a){return ao({},a)}}};
39
+ /${f(d.database)}`,h="string"==typeof a?a:a.text,i=b??a.values??[];bu(g,{fullResults:!0,arrayMode:"array"===a.rowMode}).query(h,i,{types:a.types??this.options?.types}).then(a=>c(void 0,a)).catch(a=>c(a))}catch(a){c(a)}return d.result}},"NeonPool"),I();var bE=u(a0());bE.DatabaseError,bE.defaults,bE.escapeIdentifier,bE.escapeLiteral;var bF=bE.types}};
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/qoq7TibU72duRZATxeVnT/_buildManifest.js","static/qoq7TibU72duRZATxeVnT/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-de4a0d9611ec2cad.js","static/chunks/4bd1b696-e356ca5ba0218e27.js","static/chunks/3794-cef5038dc7aa126a.js","static/chunks/main-app-1a32dc335629e4e4.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/P3uXQySdS-m6_bxuiezYe/_buildManifest.js","static/P3uXQySdS-m6_bxuiezYe/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-de4a0d9611ec2cad.js","static/chunks/4bd1b696-e356ca5ba0218e27.js","static/chunks/3794-cef5038dc7aa126a.js","static/chunks/main-app-1a32dc335629e4e4.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" class="dark __variable_246ccd __variable_c29908 h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/490566ec68a48e1a.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/e02ab5db9ff2dca2.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-de4a0d9611ec2cad.js"/><script src="/_next/static/chunks/4bd1b696-e356ca5ba0218e27.js" async=""></script><script src="/_next/static/chunks/3794-cef5038dc7aa126a.js" async=""></script><script src="/_next/static/chunks/main-app-1a32dc335629e4e4.js" async=""></script><script src="/_next/static/chunks/70e0d97a-bbb0ec05083da54f.js" async=""></script><script src="/_next/static/chunks/54a60aa6-0378818fce5a4dc5.js" async=""></script><script src="/_next/static/chunks/8500-f62a38ff68ab7f42.js" async=""></script><script src="/_next/static/chunks/4888-911c0da3c2d785d2.js" async=""></script><script src="/_next/static/chunks/8997-78a359d0d238622e.js" async=""></script><script src="/_next/static/chunks/9887-e8954568a4031ed3.js" async=""></script><script src="/_next/static/chunks/2231-63ad38ec8fb7cb6f.js" async=""></script><script src="/_next/static/chunks/app/layout-3115f8503ff00902.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Beacon</title><meta name="description" content="A local control panel for the repository you&#x27;re working in"/><link rel="icon" href="/icon.svg?bb93a1375ed3c298" type="image/svg+xml" sizes="any"/><link rel="apple-touch-icon" href="/apple-icon.png?f9d64651576bd776" type="image/png" sizes="180x180"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="min-h-full flex flex-col bg-background text-foreground"><div hidden=""><!--$--><!--/$--></div><header class="pointer-events-none fixed left-3 top-3 z-30"><div class="glass pointer-events-auto flex h-10 items-center gap-1 rounded-full pl-3 pr-1.5"><a class="mr-1 flex items-center gap-2 text-sm font-semibold tracking-tight" href="/"><svg width="18" height="18" viewBox="20 22 56 56" fill="none" class="text-foreground" aria-hidden="true"><path d="M48 33 L72.5 73 L23.5 73 Z" fill="none" stroke="var(--accent-2, #ff7a45)" stroke-width="7" stroke-linejoin="round" stroke-linecap="round"></path><circle cx="48" cy="29.5" r="7" fill="var(--accent-2, #ff7a45)"></circle></svg>Beacon</a><span aria-hidden="true" class="mx-1 h-5 w-px bg-white/10"></span><span class="font-mono text-xs text-muted-foreground">· <!-- -->beacon</span><span aria-hidden="true" class="mx-1 h-5 w-px bg-white/10"></span><nav class="flex items-center gap-0.5 text-sm"><a class="rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground" href="/plan">Plans</a><a class="rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground" href="/map">Map</a><a class="rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground" href="/settings">Settings</a></nav><span aria-hidden="true" class="mx-1 h-5 w-px bg-white/10"></span><button type="button" aria-pressed="false" aria-label="Notes" title="Notes" class="flex items-center justify-center rounded-full p-1.5 transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sticky-note size-4" aria-hidden="true"><path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"></path><path d="M15 3v5a1 1 0 0 0 1 1h5"></path></svg></button></div></header><main class="flex flex-1 flex-col"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main><div aria-hidden="true" class="fixed inset-y-0 right-0 z-40 flex transition-transform duration-300 ease-out pointer-events-none translate-x-full"><div class="glass relative isolate overflow-hidden flex h-full w-[420px] flex-col rounded-l-2xl border-l border-white/10"><span aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10 rounded-[inherit]" style="background:radial-gradient(90% 60% at 0% 0%, oklch(1 0 0 / 0.04), transparent 42%)"></span><span aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10 rounded-[inherit] opacity-[0.035] mix-blend-overlay" style="background-image:url(&quot;data:image/svg+xml,%3Csvg xmlns=&#x27;http://www.w3.org/2000/svg&#x27; width=&#x27;120&#x27; height=&#x27;120&#x27;%3E%3Cfilter id=&#x27;n&#x27;%3E%3CfeTurbulence type=&#x27;fractalNoise&#x27; baseFrequency=&#x27;0.85&#x27; numOctaves=&#x27;2&#x27; stitchTiles=&#x27;stitch&#x27;/%3E%3C/filter%3E%3Crect width=&#x27;100%25&#x27; height=&#x27;100%25&#x27; filter=&#x27;url(%23n)&#x27;/%3E%3C/svg%3E&quot;);background-size:120px 120px"></span><div class="flex items-center gap-2 border-b border-white/10 px-3 py-2.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sticky-note size-4 text-[var(--accent-2,#ff7a45)]" aria-hidden="true"><path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"></path><path d="M15 3v5a1 1 0 0 0 1 1h5"></path></svg><span class="text-sm font-semibold tracking-tight">Notes</span><span class="ml-auto"></span><button type="button" aria-label="New note" title="New note" class="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus size-4" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button><button type="button" aria-label="Close notes" title="Close" class="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x size-4" aria-hidden="true"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button></div><div class="max-h-44 shrink-0 overflow-y-auto border-b border-white/10 p-1.5"><p class="px-2 py-3 text-[13px] text-muted-foreground">No notes yet. Hit <span class="text-foreground">+</span> to start one.</p></div><div class="flex flex-1 items-center justify-center p-6 text-center text-[13px] text-muted-foreground">Select a note, or create one. Then <span class="px-1 text-foreground">@</span>-mention it in your terminal to turn it into features.</div></div></div><script src="/_next/static/chunks/webpack-de4a0d9611ec2cad.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[81998,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"LiveRefresh\"]\n3:I[77242,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"TabWorkspace\"]\n4:I[81984,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"NotesProvider\"]\n5:I[48484,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"PlanProvider\"]\n6:I[10436,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"TopNav\"]\n7:I[52174,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"MainRegion\"]\n8:I[57121,[],\"\"]\n9:I[74581,[],\"\"]\na:I[434,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"PlanBar\"]\nb:I[71886,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"NotesDrawer\"]\nc:I[29510,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"4888\",\"static/chunks/4888-911c0da3c2d785d2.js\",\"8997\",\"static/chunks/8997-78a359d0d238622e.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-3115f8503ff00902.js\"],\"UpdateBanner\"]\nd:I[90484,[],\"OutletBoundary\"]\ne:\"$Sreact.suspense\"\n11:I[90484,[],\"ViewportBoundary\"]\n13:I[90484,[],\"MetadataBoundary\"]\n15:I[27123,[],\"default\",1]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":"])</script><script>self.__next_f.push([1,"\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/490566ec68a48e1a.css\",\"style\"]\n:HL[\"/_next/static/css/e02ab5db9ff2dca2.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/490566ec68a48e1a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/e02ab5db9ff2dca2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark __variable_246ccd __variable_c29908 h-full antialiased\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-full flex flex-col bg-background text-foreground\",\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L6\",null,{\"repo\":\"beacon\"}],[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$La\",null,{}]]}],[\"$\",\"$Lb\",null,{}]]}],[\"$\",\"$Lc\",null,{\"currentVersion\":\"0.1.64\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@f\"}]}]]}],{},null,false,null]},null,false,\"$@10\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$15\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"qoq7TibU72duRZATxeVnT\"}\n"])</script><script>self.__next_f.push([1,"16:[]\n10:\"$W16\"\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"17:I[86869,[],\"IconMark\"]\nf:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"Beacon\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A local control panel for the repository you're working in\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?bb93a1375ed3c298\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"link\",\"3\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?f9d64651576bd776\",\"type\":\"image/png\",\"sizes\":\"180x180\"}],[\"$\",\"$L17\",\"4\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en" class="dark __variable_246ccd __variable_c29908 h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/b3d3212da726bbfb.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/e02ab5db9ff2dca2.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-de4a0d9611ec2cad.js"/><script src="/_next/static/chunks/4bd1b696-e356ca5ba0218e27.js" async=""></script><script src="/_next/static/chunks/3794-cef5038dc7aa126a.js" async=""></script><script src="/_next/static/chunks/main-app-1a32dc335629e4e4.js" async=""></script><script src="/_next/static/chunks/70e0d97a-bbb0ec05083da54f.js" async=""></script><script src="/_next/static/chunks/54a60aa6-0378818fce5a4dc5.js" async=""></script><script src="/_next/static/chunks/8500-f62a38ff68ab7f42.js" async=""></script><script src="/_next/static/chunks/7043-254590cf9891391f.js" async=""></script><script src="/_next/static/chunks/1936-7fea5225b5bfcfda.js" async=""></script><script src="/_next/static/chunks/9887-e8954568a4031ed3.js" async=""></script><script src="/_next/static/chunks/2231-63ad38ec8fb7cb6f.js" async=""></script><script src="/_next/static/chunks/app/layout-0c993f55d3a798f4.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Beacon</title><meta name="description" content="A local control panel for the repository you&#x27;re working in"/><link rel="icon" href="/icon.svg?bb93a1375ed3c298" type="image/svg+xml" sizes="any"/><link rel="apple-touch-icon" href="/apple-icon.png?f9d64651576bd776" type="image/png" sizes="180x180"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="min-h-full flex flex-col bg-background text-foreground"><div hidden=""><!--$--><!--/$--></div><header class="pointer-events-none fixed left-3 top-3 z-30"><div class="glass pointer-events-auto flex h-10 items-center gap-1 rounded-full pl-3 pr-1.5"><a class="mr-1 flex items-center gap-2 text-sm font-semibold tracking-tight" href="/"><svg width="18" height="18" viewBox="20 22 56 56" fill="none" class="text-foreground" aria-hidden="true"><path d="M48 33 L72.5 73 L23.5 73 Z" fill="none" stroke="var(--accent-2, #ff7a45)" stroke-width="7" stroke-linejoin="round" stroke-linecap="round"></path><circle cx="48" cy="29.5" r="7" fill="var(--accent-2, #ff7a45)"></circle></svg>Beacon</a><span aria-hidden="true" class="mx-1 h-5 w-px bg-white/10"></span><span class="font-mono text-xs text-muted-foreground">· <!-- -->beacon</span><span aria-hidden="true" class="mx-1 h-5 w-px bg-white/10"></span><nav class="flex items-center gap-0.5 text-sm"><a class="rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground" href="/plan">Plans</a><a class="rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground" href="/map">Map</a><a class="rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground" href="/learn">Learn</a><a class="rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground" href="/settings">Settings</a></nav><span aria-hidden="true" class="mx-1 h-5 w-px bg-white/10"></span><button type="button" aria-pressed="false" aria-label="Notes" title="Notes" class="flex items-center justify-center rounded-full p-1.5 transition-colors text-muted-foreground hover:bg-white/[0.04] hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sticky-note size-4" aria-hidden="true"><path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"></path><path d="M15 3v5a1 1 0 0 0 1 1h5"></path></svg></button></div></header><main class="flex flex-1 flex-col"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main><div aria-hidden="true" class="fixed inset-y-0 right-0 z-40 flex transition-transform duration-300 ease-out pointer-events-none translate-x-full"><div class="glass relative isolate overflow-hidden flex h-full w-[420px] flex-col rounded-l-2xl border-l border-white/10"><span aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10 rounded-[inherit]" style="background:radial-gradient(90% 60% at 0% 0%, oklch(1 0 0 / 0.04), transparent 42%)"></span><span aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10 rounded-[inherit] opacity-[0.035] mix-blend-overlay" style="background-image:url(&quot;data:image/svg+xml,%3Csvg xmlns=&#x27;http://www.w3.org/2000/svg&#x27; width=&#x27;120&#x27; height=&#x27;120&#x27;%3E%3Cfilter id=&#x27;n&#x27;%3E%3CfeTurbulence type=&#x27;fractalNoise&#x27; baseFrequency=&#x27;0.85&#x27; numOctaves=&#x27;2&#x27; stitchTiles=&#x27;stitch&#x27;/%3E%3C/filter%3E%3Crect width=&#x27;100%25&#x27; height=&#x27;100%25&#x27; filter=&#x27;url(%23n)&#x27;/%3E%3C/svg%3E&quot;);background-size:120px 120px"></span><div class="flex items-center gap-2 border-b border-white/10 px-3 py-2.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sticky-note size-4 text-[var(--accent-2,#ff7a45)]" aria-hidden="true"><path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"></path><path d="M15 3v5a1 1 0 0 0 1 1h5"></path></svg><span class="text-sm font-semibold tracking-tight">Notes</span><span class="ml-auto"></span><button type="button" aria-label="New note" title="New note" class="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus size-4" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button><button type="button" aria-label="Close notes" title="Close" class="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x size-4" aria-hidden="true"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button></div><div class="max-h-44 shrink-0 overflow-y-auto border-b border-white/10 p-1.5"><p class="px-2 py-3 text-[13px] text-muted-foreground">No notes yet. Hit <span class="text-foreground">+</span> to start one.</p></div><div class="flex flex-1 items-center justify-center p-6 text-center text-[13px] text-muted-foreground">Select a note, or create one. Then <span class="px-1 text-foreground">@</span>-mention it in your terminal to turn it into features.</div></div></div><script src="/_next/static/chunks/webpack-de4a0d9611ec2cad.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[81998,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"LiveRefresh\"]\n3:I[77242,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"TabWorkspace\"]\n4:I[81984,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"NotesProvider\"]\n5:I[48484,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"PlanProvider\"]\n6:I[10436,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"TopNav\"]\n7:I[52174,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"MainRegion\"]\n8:I[57121,[],\"\"]\n9:I[74581,[],\"\"]\na:I[434,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"PlanBar\"]\nb:I[71886,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"NotesDrawer\"]\nc:I[29510,[\"5004\",\"static/chunks/70e0d97a-bbb0ec05083da54f.js\",\"277\",\"static/chunks/54a60aa6-0378818fce5a4dc5.js\",\"8500\",\"static/chunks/8500-f62a38ff68ab7f42.js\",\"7043\",\"static/chunks/7043-254590cf9891391f.js\",\"1936\",\"static/chunks/1936-7fea5225b5bfcfda.js\",\"9887\",\"static/chunks/9887-e8954568a4031ed3.js\",\"2231\",\"static/chunks/2231-63ad38ec8fb7cb6f.js\",\"7177\",\"static/chunks/app/layout-0c993f55d3a798f4.js\"],\"UpdateBanner\"]\nd:I[90484,[],\"OutletBoundary\"]\ne:\"$Sreact.suspense\"\n11:I[90484,[],\"ViewportBoundary\"]\n13:I[90484,[],\"MetadataBoundary\"]\n15:I[27123,[],\"default\",1]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":"])</script><script>self.__next_f.push([1,"\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/b3d3212da726bbfb.css\",\"style\"]\n:HL[\"/_next/static/css/e02ab5db9ff2dca2.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b3d3212da726bbfb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/e02ab5db9ff2dca2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark __variable_246ccd __variable_c29908 h-full antialiased\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-full flex flex-col bg-background text-foreground\",\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L6\",null,{\"repo\":\"beacon\"}],[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$La\",null,{}]]}],[\"$\",\"$Lb\",null,{}]]}],[\"$\",\"$Lc\",null,{\"currentVersion\":\"0.1.66\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@f\"}]}]]}],{},null,false,null]},null,false,\"$@10\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$15\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"P3uXQySdS-m6_bxuiezYe\"}\n"])</script><script>self.__next_f.push([1,"16:[]\n10:\"$W16\"\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"17:I[86869,[],\"IconMark\"]\nf:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"Beacon\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A local control panel for the repository you're working in\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?bb93a1375ed3c298\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"link\",\"3\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?f9d64651576bd776\",\"type\":\"image/png\",\"sizes\":\"180x180\"}],[\"$\",\"$L17\",\"4\",{}]]\n"])</script></body></html>