wrong-notebook 2026.11.10 → 2026.11.11-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (635) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +5 -0
  3. package/.next/build-manifest.json +14 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/routes-manifest.json +35 -0
  6. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  13. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/admin/page.js.nft.json +1 -1
  15. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
  17. package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/api/admin/cnm-tags/route.js +1 -1
  19. package/.next/server/app/api/admin/cnm-tags/route.js.nft.json +1 -1
  20. package/.next/server/app/api/admin/dashboard/route.js +3 -3
  21. package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
  22. package/.next/server/app/api/admin/debug-logs/export/route.js +1 -1
  23. package/.next/server/app/api/admin/debug-logs/export/route.js.nft.json +1 -1
  24. package/.next/server/app/api/admin/debug-logs/route.js +1 -1
  25. package/.next/server/app/api/admin/debug-logs/route.js.nft.json +1 -1
  26. package/.next/server/app/api/admin/eula/accept/route.js +1 -1
  27. package/.next/server/app/api/admin/eula/accept/route.js.nft.json +1 -1
  28. package/.next/server/app/api/admin/migrate-tags/route.js +1 -1
  29. package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
  30. package/.next/server/app/api/admin/system-reset/route.js +1 -1
  31. package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
  32. package/.next/server/app/api/admin/telemetry/route.js +1 -1
  33. package/.next/server/app/api/admin/telemetry/route.js.nft.json +1 -1
  34. package/.next/server/app/api/admin/users/[id]/detail/route.js +3 -3
  35. package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
  36. package/.next/server/app/api/admin/users/[id]/route.js +1 -1
  37. package/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
  38. package/.next/server/app/api/admin/users/route.js +1 -1
  39. package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
  40. package/.next/server/app/api/ai/models/route.js +3 -3
  41. package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
  42. package/.next/server/app/api/ai/test/route.js +3 -3
  43. package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
  44. package/.next/server/app/api/analytics/route.js +3 -3
  45. package/.next/server/app/api/analytics/route.js.nft.json +1 -1
  46. package/.next/server/app/api/analyze/route.js +3 -3
  47. package/.next/server/app/api/analyze/route.js.nft.json +1 -1
  48. package/.next/server/app/api/auth/[...nextauth]/route.js +1 -1
  49. package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
  50. package/.next/server/app/api/error-items/[id]/delete/route.js +1 -1
  51. package/.next/server/app/api/error-items/[id]/delete/route.js.nft.json +1 -1
  52. package/.next/server/app/api/error-items/[id]/figure/route.js +3 -3
  53. package/.next/server/app/api/error-items/[id]/figure/route.js.nft.json +1 -1
  54. package/.next/server/app/api/error-items/[id]/fix-latex/route.js +3 -3
  55. package/.next/server/app/api/error-items/[id]/fix-latex/route.js.nft.json +1 -1
  56. package/.next/server/app/api/error-items/[id]/geogebra/route.js +3 -3
  57. package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
  58. package/.next/server/app/api/error-items/[id]/image/route.js +1 -1
  59. package/.next/server/app/api/error-items/[id]/image/route.js.nft.json +1 -1
  60. package/.next/server/app/api/error-items/[id]/notes/route.js +1 -1
  61. package/.next/server/app/api/error-items/[id]/notes/route.js.nft.json +1 -1
  62. package/.next/server/app/api/error-items/[id]/practice-records/route.js +1 -1
  63. package/.next/server/app/api/error-items/[id]/practice-records/route.js.nft.json +1 -1
  64. package/.next/server/app/api/error-items/[id]/reanswer/route.js +3 -3
  65. package/.next/server/app/api/error-items/[id]/reanswer/route.js.nft.json +1 -1
  66. package/.next/server/app/api/error-items/[id]/retag/route.js +3 -3
  67. package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
  68. package/.next/server/app/api/error-items/[id]/route.js +1 -1
  69. package/.next/server/app/api/error-items/[id]/route.js.nft.json +1 -1
  70. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +3 -3
  71. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -1
  72. package/.next/server/app/api/error-items/[id]/svg-animation/route.js +3 -3
  73. package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
  74. package/.next/server/app/api/error-items/answer-space/route.js +1 -1
  75. package/.next/server/app/api/error-items/answer-space/route.js.nft.json +1 -1
  76. package/.next/server/app/api/error-items/batch-delete/route.js +1 -1
  77. package/.next/server/app/api/error-items/batch-delete/route.js.nft.json +1 -1
  78. package/.next/server/app/api/error-items/batch-move/route.js +1 -1
  79. package/.next/server/app/api/error-items/batch-move/route.js.nft.json +1 -1
  80. package/.next/server/app/api/error-items/clear/route.js +1 -1
  81. package/.next/server/app/api/error-items/clear/route.js.nft.json +1 -1
  82. package/.next/server/app/api/error-items/export-questions/route.js +1 -1
  83. package/.next/server/app/api/error-items/export-questions/route.js.nft.json +1 -1
  84. package/.next/server/app/api/error-items/list/route.js +8 -7
  85. package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
  86. package/.next/server/app/api/error-items/route.js +3 -3
  87. package/.next/server/app/api/error-items/route.js.nft.json +1 -1
  88. package/.next/server/app/api/error-items/short/[shortId]/route.js +1 -1
  89. package/.next/server/app/api/error-items/short/[shortId]/route.js.nft.json +1 -1
  90. package/.next/server/app/api/error-items/similarity/route.js +1 -1
  91. package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
  92. package/.next/server/app/api/eula/status/route.js +1 -1
  93. package/.next/server/app/api/eula/status/route.js.nft.json +1 -1
  94. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +3 -3
  95. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js.nft.json +1 -1
  96. package/.next/server/app/api/exams/[id]/results/route.js +3 -3
  97. package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
  98. package/.next/server/app/api/exams/[id]/retry/route.js +3 -3
  99. package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
  100. package/.next/server/app/api/exams/[id]/route.js +3 -3
  101. package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
  102. package/.next/server/app/api/exams/route.js +3 -3
  103. package/.next/server/app/api/exams/route.js.nft.json +1 -1
  104. package/.next/server/app/api/export/route.js +7 -7
  105. package/.next/server/app/api/export/route.js.nft.json +1 -1
  106. package/.next/server/app/api/geogebra-analyze/route.js +3 -3
  107. package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
  108. package/.next/server/app/api/health/route.js.nft.json +1 -1
  109. package/.next/server/app/api/import/route.js +17 -17
  110. package/.next/server/app/api/import/route.js.nft.json +1 -1
  111. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js +19 -19
  112. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js.nft.json +1 -1
  113. package/.next/server/app/api/import-batches/[id]/fix-text/route.js +3 -3
  114. package/.next/server/app/api/import-batches/[id]/fix-text/route.js.nft.json +1 -1
  115. package/.next/server/app/api/import-batches/[id]/read/route.js +20 -20
  116. package/.next/server/app/api/import-batches/[id]/read/route.js.nft.json +1 -1
  117. package/.next/server/app/api/import-batches/[id]/retry/route.js +19 -19
  118. package/.next/server/app/api/import-batches/[id]/retry/route.js.nft.json +1 -1
  119. package/.next/server/app/api/import-batches/[id]/route.js +20 -20
  120. package/.next/server/app/api/import-batches/[id]/route.js.nft.json +1 -1
  121. package/.next/server/app/api/import-batches/[id]/start/route.js +20 -20
  122. package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -1
  123. package/.next/server/app/api/import-batches/route.js +20 -20
  124. package/.next/server/app/api/import-batches/route.js.nft.json +1 -1
  125. package/.next/server/app/api/import-tasks/[id]/confirm/route.js +19 -19
  126. package/.next/server/app/api/import-tasks/[id]/confirm/route.js.nft.json +1 -1
  127. package/.next/server/app/api/import-tasks/[id]/read/route.js +19 -19
  128. package/.next/server/app/api/import-tasks/[id]/read/route.js.nft.json +1 -1
  129. package/.next/server/app/api/import-tasks/[id]/retry/route.js +20 -20
  130. package/.next/server/app/api/import-tasks/[id]/retry/route.js.nft.json +1 -1
  131. package/.next/server/app/api/import-tasks/[id]/route.js +19 -19
  132. package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -1
  133. package/.next/server/app/api/import-tasks/route.js +20 -20
  134. package/.next/server/app/api/import-tasks/route.js.nft.json +1 -1
  135. package/.next/server/app/api/initialize/route.js +2 -2
  136. package/.next/server/app/api/initialize/route.js.nft.json +1 -1
  137. package/.next/server/app/api/logs/frontend/route.js +1 -1
  138. package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
  139. package/.next/server/app/api/mcp/route/app-paths-manifest.json +3 -0
  140. package/.next/server/app/api/mcp/route/build-manifest.json +12 -0
  141. package/.next/server/app/api/mcp/route/server-reference-manifest.json +4 -0
  142. package/.next/server/app/api/mcp/route.js +33 -0
  143. package/.next/server/app/api/mcp/route.js.map +5 -0
  144. package/.next/server/app/api/mcp/route.js.nft.json +1 -0
  145. package/.next/server/app/api/mcp/route_client-reference-manifest.js +3 -0
  146. package/.next/server/app/api/minimax-code/checkin/route.js +1 -1
  147. package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
  148. package/.next/server/app/api/minimax-code/login/route.js +1 -1
  149. package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
  150. package/.next/server/app/api/minimax-code/route.js +1 -1
  151. package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
  152. package/.next/server/app/api/notebooks/[id]/retag/route.js +3 -3
  153. package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
  154. package/.next/server/app/api/notebooks/[id]/route.js +1 -1
  155. package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
  156. package/.next/server/app/api/notebooks/route.js +1 -1
  157. package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
  158. package/.next/server/app/api/openclaw/batch-upload/route.js +3 -3
  159. package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
  160. package/.next/server/app/api/paper-groups/[id]/route.js +1 -1
  161. package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -1
  162. package/.next/server/app/api/paper-groups/route.js +1 -1
  163. package/.next/server/app/api/paper-groups/route.js.nft.json +1 -1
  164. package/.next/server/app/api/practice/generate/route.js +23 -17
  165. package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
  166. package/.next/server/app/api/practice/grade/route.js +3 -3
  167. package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
  168. package/.next/server/app/api/practice/record/[id]/route.js +3 -3
  169. package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
  170. package/.next/server/app/api/practice/record/route.js +3 -3
  171. package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
  172. package/.next/server/app/api/question-banks/[id]/questions/[qid]/route/app-paths-manifest.json +3 -0
  173. package/.next/server/app/api/question-banks/[id]/questions/[qid]/route/build-manifest.json +12 -0
  174. package/.next/server/app/api/question-banks/[id]/questions/[qid]/route/server-reference-manifest.json +4 -0
  175. package/.next/server/app/api/question-banks/[id]/questions/[qid]/route.js +35 -0
  176. package/.next/server/app/api/question-banks/[id]/questions/[qid]/route.js.map +5 -0
  177. package/.next/server/app/api/question-banks/[id]/questions/[qid]/route.js.nft.json +1 -0
  178. package/.next/server/app/api/question-banks/[id]/questions/[qid]/route_client-reference-manifest.js +3 -0
  179. package/.next/server/app/api/question-banks/[id]/route/app-paths-manifest.json +3 -0
  180. package/.next/server/app/api/question-banks/[id]/route/build-manifest.json +12 -0
  181. package/.next/server/app/api/question-banks/[id]/route/server-reference-manifest.json +4 -0
  182. package/.next/server/app/api/question-banks/[id]/route.js +17 -0
  183. package/.next/server/app/api/question-banks/[id]/route.js.map +5 -0
  184. package/.next/server/app/api/question-banks/[id]/route.js.nft.json +1 -0
  185. package/.next/server/app/api/question-banks/[id]/route_client-reference-manifest.js +3 -0
  186. package/.next/server/app/api/question-banks/route/app-paths-manifest.json +3 -0
  187. package/.next/server/app/api/question-banks/route/build-manifest.json +12 -0
  188. package/.next/server/app/api/question-banks/route/server-reference-manifest.json +4 -0
  189. package/.next/server/app/api/question-banks/route.js +35 -0
  190. package/.next/server/app/api/question-banks/route.js.map +5 -0
  191. package/.next/server/app/api/question-banks/route.js.nft.json +1 -0
  192. package/.next/server/app/api/question-banks/route_client-reference-manifest.js +3 -0
  193. package/.next/server/app/api/reanswer/route.js +3 -3
  194. package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
  195. package/.next/server/app/api/register/route.js.nft.json +1 -1
  196. package/.next/server/app/api/register/status/route.js.nft.json +1 -1
  197. package/.next/server/app/api/requests/[id]/route.js +1 -1
  198. package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
  199. package/.next/server/app/api/review/due/route.js +13 -13
  200. package/.next/server/app/api/review/due/route.js.nft.json +1 -1
  201. package/.next/server/app/api/settings/route.js +1 -1
  202. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  203. package/.next/server/app/api/setup/route.js +1 -1
  204. package/.next/server/app/api/setup/route.js.nft.json +1 -1
  205. package/.next/server/app/api/stats/activity/route.js +1 -1
  206. package/.next/server/app/api/stats/activity/route.js.nft.json +1 -1
  207. package/.next/server/app/api/stats/practice/clear/route.js +1 -1
  208. package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
  209. package/.next/server/app/api/stats/practice/route.js +1 -1
  210. package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
  211. package/.next/server/app/api/stats/repeated-mistakes/route.js +3 -3
  212. package/.next/server/app/api/stats/repeated-mistakes/route.js.nft.json +1 -1
  213. package/.next/server/app/api/stats/weak-tags/route.js +16 -15
  214. package/.next/server/app/api/stats/weak-tags/route.js.nft.json +1 -1
  215. package/.next/server/app/api/tags/route.js +1 -1
  216. package/.next/server/app/api/tags/route.js.nft.json +1 -1
  217. package/.next/server/app/api/tags/stats/route.js +1 -1
  218. package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
  219. package/.next/server/app/api/tags/suggestions/route.js +1 -1
  220. package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
  221. package/.next/server/app/api/tasks/route.js +1 -1
  222. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  223. package/.next/server/app/api/telemetry/route.js.nft.json +1 -1
  224. package/.next/server/app/api/tts/[id]/route.js +1 -1
  225. package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
  226. package/.next/server/app/api/tts/batch/route.js +1 -1
  227. package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
  228. package/.next/server/app/api/tts/route.js +1 -1
  229. package/.next/server/app/api/tts/route.js.nft.json +1 -1
  230. package/.next/server/app/api/tts/status/route.js +1 -1
  231. package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
  232. package/.next/server/app/api/user/ai-consent/route.js +1 -1
  233. package/.next/server/app/api/user/ai-consent/route.js.nft.json +1 -1
  234. package/.next/server/app/api/user/route.js +3 -3
  235. package/.next/server/app/api/user/route.js.nft.json +1 -1
  236. package/.next/server/app/api/version/route.js.nft.json +1 -1
  237. package/.next/server/app/banks/page/app-paths-manifest.json +3 -0
  238. package/.next/server/app/banks/page/build-manifest.json +22 -0
  239. package/.next/server/app/banks/page/next-font-manifest.json +11 -0
  240. package/.next/server/app/banks/page/react-loadable-manifest.json +1 -0
  241. package/.next/server/app/banks/page/server-reference-manifest.json +4 -0
  242. package/.next/server/app/banks/page.js +15 -0
  243. package/.next/server/app/banks/page.js.map +5 -0
  244. package/.next/server/app/banks/page.js.nft.json +1 -0
  245. package/.next/server/app/banks/page_client-reference-manifest.js +3 -0
  246. package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
  247. package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
  248. package/.next/server/app/eula/page.js.nft.json +1 -1
  249. package/.next/server/app/eula/page_client-reference-manifest.js +1 -1
  250. package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
  251. package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
  252. package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
  253. package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
  254. package/.next/server/app/exams/page.js.nft.json +1 -1
  255. package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
  256. package/.next/server/app/import-batches/[id]/page.js.nft.json +1 -1
  257. package/.next/server/app/import-batches/[id]/page_client-reference-manifest.js +1 -1
  258. package/.next/server/app/import-tasks/[id]/page.js.nft.json +1 -1
  259. package/.next/server/app/import-tasks/[id]/page_client-reference-manifest.js +1 -1
  260. package/.next/server/app/import-tasks/page.js.nft.json +1 -1
  261. package/.next/server/app/import-tasks/page_client-reference-manifest.js +1 -1
  262. package/.next/server/app/initialize/page.js.nft.json +1 -1
  263. package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
  264. package/.next/server/app/login/page.js.nft.json +1 -1
  265. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  266. package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
  267. package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
  268. package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
  269. package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
  270. package/.next/server/app/notebooks/page.js.nft.json +1 -1
  271. package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
  272. package/.next/server/app/page.js.nft.json +1 -1
  273. package/.next/server/app/page_client-reference-manifest.js +1 -1
  274. package/.next/server/app/practice/page.js.nft.json +1 -1
  275. package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
  276. package/.next/server/app/print-preview/page.js.nft.json +1 -1
  277. package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
  278. package/.next/server/app/register/page.js.nft.json +1 -1
  279. package/.next/server/app/register/page_client-reference-manifest.js +1 -1
  280. package/.next/server/app/review/page.js.nft.json +1 -1
  281. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  282. package/.next/server/app/setup/page.js.nft.json +1 -1
  283. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  284. package/.next/server/app/stats/page.js.nft.json +1 -1
  285. package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  286. package/.next/server/app/tags/page.js.nft.json +1 -1
  287. package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
  288. package/.next/server/app-paths-manifest.json +5 -0
  289. package/.next/server/chunks/1oeh_server_app_api_question-banks_[id]_questions_[qid]_route_actions_0cut200tgdhrg.js +3 -0
  290. package/.next/server/chunks/{[root-of-the-server]__007euzraef-1_._.js → [root-of-the-server]__003zs5cdrhp0h._.js} +1 -1
  291. package/.next/server/chunks/{[root-of-the-server]__046l8-2oecq5e._.js → [root-of-the-server]__0095ttqaxkura._.js} +1 -1
  292. package/.next/server/chunks/{[root-of-the-server]__00d4vtmsmiyd_._.js → [root-of-the-server]__00gh00nfppv7c._.js} +1 -1
  293. package/.next/server/chunks/{[root-of-the-server]__1ld7m10shogtt._.js → [root-of-the-server]__02cwazw3laf8n._.js} +2 -2
  294. package/.next/server/chunks/[root-of-the-server]__02p_mpxidnu0x._.js +3 -0
  295. package/.next/server/chunks/{[root-of-the-server]__12u2irl6e293j._.js → [root-of-the-server]__03mzwpgmelgxq._.js} +2 -2
  296. package/.next/server/chunks/[root-of-the-server]__04g1e8vi5hfmd._.js +1 -1
  297. package/.next/server/chunks/{[root-of-the-server]__06t523lsa-xt5._.js → [root-of-the-server]__04k-j5q4c3fxh._.js} +1 -1
  298. package/.next/server/chunks/[root-of-the-server]__06g_4_o5xkej2._.js +3 -0
  299. package/.next/server/chunks/[root-of-the-server]__074shufbnm6ni._.js +3 -0
  300. package/.next/server/chunks/{[root-of-the-server]__02m42nibzxxmr._.js → [root-of-the-server]__07dbynh_bs54x._.js} +1 -1
  301. package/.next/server/chunks/{[root-of-the-server]__06g0t8zt3udt7._.js → [root-of-the-server]__0afxho639gukq._.js} +1 -1
  302. package/.next/server/chunks/{[root-of-the-server]__17tyjwy7wmx2z._.js → [root-of-the-server]__0as_tqxtximnv._.js} +2 -2
  303. package/.next/server/chunks/{[root-of-the-server]__13cki3v6cufcx._.js → [root-of-the-server]__0b110dxj2qk5d._.js} +2 -2
  304. package/.next/server/chunks/{[root-of-the-server]__0r3grb-nk-tkn._.js → [root-of-the-server]__0bey3smu2frko._.js} +2 -2
  305. package/.next/server/chunks/{[root-of-the-server]__00lpxd_gni_y7._.js → [root-of-the-server]__0clg30mkk8i71._.js} +1 -1
  306. package/.next/server/chunks/{[root-of-the-server]__0zj60abydj_ho._.js → [root-of-the-server]__0cyq3g7ztpx7w._.js} +2 -2
  307. package/.next/server/chunks/[root-of-the-server]__0dxid01zcz8sh._.js +3 -0
  308. package/.next/server/chunks/[root-of-the-server]__0evv12a34qcy6._.js +4 -4
  309. package/.next/server/chunks/{[root-of-the-server]__0d_63r679gzzq._.js → [root-of-the-server]__0gj0qch0bepug._.js} +1 -1
  310. package/.next/server/chunks/[root-of-the-server]__0gspnsyl2sr50._.js +3 -0
  311. package/.next/server/chunks/{[root-of-the-server]__1i70uvkdts-q1._.js → [root-of-the-server]__0h7v77lf4fj2l._.js} +2 -2
  312. package/.next/server/chunks/{[root-of-the-server]__0m1vmtwh8l5-k._.js → [root-of-the-server]__0hfzltniz674f._.js} +2 -2
  313. package/.next/server/chunks/[root-of-the-server]__0i0wx-z-qadeh._.js +3 -0
  314. package/.next/server/chunks/{[root-of-the-server]__1gkabltrjg-t4._.js → [root-of-the-server]__0iw2v5f6ccxl0._.js} +2 -2
  315. package/.next/server/chunks/{[root-of-the-server]__0o5b_c35hufmg._.js → [root-of-the-server]__0iz5qf7p--9io._.js} +2 -2
  316. package/.next/server/chunks/[root-of-the-server]__0llcnfms-yrs4._.js +1 -1
  317. package/.next/server/chunks/[root-of-the-server]__0lrgjyg38b9j1._.js +3 -0
  318. package/.next/server/chunks/[root-of-the-server]__0nmxuavodh1jp._.js +3 -0
  319. package/.next/server/chunks/[root-of-the-server]__0o64d13on6cmz._.js +3 -0
  320. package/.next/server/chunks/{[root-of-the-server]__1ln0042a-s6yz._.js → [root-of-the-server]__0oou2pf7_339_._.js} +2 -2
  321. package/.next/server/chunks/[root-of-the-server]__0pfjf0rwvysy7._.js +3 -0
  322. package/.next/server/chunks/[root-of-the-server]__0pzhwzricdm-8._.js +3 -0
  323. package/.next/server/chunks/[root-of-the-server]__0q7tfn1jdwvpx._.js +3 -0
  324. package/.next/server/chunks/[root-of-the-server]__0qcuz-9of1fv5._.js +3 -0
  325. package/.next/server/chunks/[root-of-the-server]__0r0zkh318us2a._.js +3 -0
  326. package/.next/server/chunks/[root-of-the-server]__0sr8vnpwvch60._.js +1 -1
  327. package/.next/server/chunks/{[root-of-the-server]__1ege7h8tb5rk0._.js → [root-of-the-server]__0sthzz27i2a2z._.js} +2 -2
  328. package/.next/server/chunks/{[root-of-the-server]__1jwj83lfyd4sd._.js → [root-of-the-server]__0svsyv06lv5b6._.js} +2 -2
  329. package/.next/server/chunks/{[root-of-the-server]__1w6vhjjteqg1c._.js → [root-of-the-server]__0u5ilae_0p228._.js} +2 -2
  330. package/.next/server/chunks/[root-of-the-server]__0ve9pg6dcdyog._.js +3 -0
  331. package/.next/server/chunks/[root-of-the-server]__0vf7un104o30d._.js +3 -0
  332. package/.next/server/chunks/{[root-of-the-server]__1ya8xaf2pmzqp._.js → [root-of-the-server]__0wb0hryzh-40d._.js} +2 -2
  333. package/.next/server/chunks/[root-of-the-server]__0xryaobvas7wn._.js +3 -0
  334. package/.next/server/chunks/[root-of-the-server]__0y88hdobvv_cu._.js +3 -0
  335. package/.next/server/chunks/{[root-of-the-server]__1pdsfjtgtncsg._.js → [root-of-the-server]__0ykbbyo6dhbr6._.js} +2 -2
  336. package/.next/server/chunks/{[root-of-the-server]__1v3kta6bd_kv9._.js → [root-of-the-server]__0yqilo886f-ap._.js} +2 -2
  337. package/.next/server/chunks/[root-of-the-server]__10gksjgitow13._.js +3 -0
  338. package/.next/server/chunks/{[root-of-the-server]__1i_tefn2lhztv._.js → [root-of-the-server]__11abvzxq0gnxd._.js} +2 -2
  339. package/.next/server/chunks/[root-of-the-server]__11k2f-h9fwj0r._.js +3 -0
  340. package/.next/server/chunks/[root-of-the-server]__132wdxrrngo1f._.js +3 -0
  341. package/.next/server/chunks/[root-of-the-server]__1338_d0rrpmqi._.js +3 -0
  342. package/.next/server/chunks/[root-of-the-server]__13k69ibnw4thj._.js +3 -0
  343. package/.next/server/chunks/[root-of-the-server]__14971xq-txgd-._.js +3 -0
  344. package/.next/server/chunks/[root-of-the-server]__159kla6_fcldu._.js +3 -0
  345. package/.next/server/chunks/[root-of-the-server]__167-list_13wk._.js +3 -0
  346. package/.next/server/chunks/{[root-of-the-server]__1m2fnptuk23jt._.js → [root-of-the-server]__16lnqkbxm2wvd._.js} +2 -2
  347. package/.next/server/chunks/[root-of-the-server]__190kzk1zqnnnh._.js +3 -0
  348. package/.next/server/chunks/{[root-of-the-server]__0fxflgag7lsn4._.js → [root-of-the-server]__1_n49ooywukvu._.js} +2 -2
  349. package/.next/server/chunks/[root-of-the-server]__1assq-8cgzn69._.js +1 -1
  350. package/.next/server/chunks/[root-of-the-server]__1bc2146vwwx0n._.js +3 -0
  351. package/.next/server/chunks/[root-of-the-server]__1chl_j6-66d0z._.js +3 -0
  352. package/.next/server/chunks/{[root-of-the-server]__14_mjy9lqgp99._.js → [root-of-the-server]__1d_eia02z8s27._.js} +2 -2
  353. package/.next/server/chunks/[root-of-the-server]__1dg09yxfyy2d-._.js +3 -0
  354. package/.next/server/chunks/[root-of-the-server]__1e8_j43j1t1m3._.js +4 -4
  355. package/.next/server/chunks/{[root-of-the-server]__0wpt1mx3kryp7._.js → [root-of-the-server]__1expjjxwlr3rv._.js} +1 -1
  356. package/.next/server/chunks/[root-of-the-server]__1fp_biblbk1dj._.js +3 -0
  357. package/.next/server/chunks/[root-of-the-server]__1goozrpjh5dhf._.js +1 -1
  358. package/.next/server/chunks/[root-of-the-server]__1h4469dzsx9y_._.js +3 -0
  359. package/.next/server/chunks/[root-of-the-server]__1hg-nksvhu11h._.js +3 -0
  360. package/.next/server/chunks/[root-of-the-server]__1hq4b2pmltb_l._.js +3 -0
  361. package/.next/server/chunks/[root-of-the-server]__1hr87f6mg8xi6._.js +3 -0
  362. package/.next/server/chunks/{[root-of-the-server]__1xpcaqsei77n2._.js → [root-of-the-server]__1i04dsau7foki._.js} +2 -2
  363. package/.next/server/chunks/{[root-of-the-server]__0obmdl7r6pt9d._.js → [root-of-the-server]__1i4c418rordji._.js} +1 -1
  364. package/.next/server/chunks/[root-of-the-server]__1i8ob9ye9_osl._.js +3 -0
  365. package/.next/server/chunks/[root-of-the-server]__1ii2yvizq9zx8._.js +1 -1
  366. package/.next/server/chunks/[root-of-the-server]__1jcv8k2sx2ptr._.js +3 -0
  367. package/.next/server/chunks/[root-of-the-server]__1juyqvp5sctaz._.js +3 -0
  368. package/.next/server/chunks/[root-of-the-server]__1k67g4w53li1h._.js +3 -0
  369. package/.next/server/chunks/[root-of-the-server]__1kqyyoqumu2k3._.js +3 -0
  370. package/.next/server/chunks/[root-of-the-server]__1ktelnqkakjyk._.js +3 -0
  371. package/.next/server/chunks/[root-of-the-server]__1kucx2jgzzdfv._.js +1 -1
  372. package/.next/server/chunks/[root-of-the-server]__1l63lc79i6lzk._.js +1 -1
  373. package/.next/server/chunks/[root-of-the-server]__1nmtvzuc1uv-5._.js +3 -0
  374. package/.next/server/chunks/[root-of-the-server]__1oaxm5scx4anf._.js +3 -0
  375. package/.next/server/chunks/[root-of-the-server]__1oc9d5av5hr08._.js +3 -0
  376. package/.next/server/chunks/[root-of-the-server]__1opijjenrark5._.js +3 -0
  377. package/.next/server/chunks/[root-of-the-server]__1otoj-v6_5y0o._.js +3 -0
  378. package/.next/server/chunks/[root-of-the-server]__1qbwy5a1mwohf._.js +3 -0
  379. package/.next/server/chunks/{[root-of-the-server]__0y82146_dftio._.js → [root-of-the-server]__1qch4uwoe4jbl._.js} +1 -1
  380. package/.next/server/chunks/[root-of-the-server]__1qh6ja_35h8e9._.js +3 -0
  381. package/.next/server/chunks/[root-of-the-server]__1qmbbudn1-e1n._.js +1 -1
  382. package/.next/server/chunks/[root-of-the-server]__1rfpsbaml9gvv._.js +3 -0
  383. package/.next/server/chunks/[root-of-the-server]__1rzzqjvucnhdy._.js +3 -0
  384. package/.next/server/chunks/[root-of-the-server]__1s9wsfyjfjfsw._.js +3 -0
  385. package/.next/server/chunks/[root-of-the-server]__1svy-pnpe1pwu._.js +3 -0
  386. package/.next/server/chunks/[root-of-the-server]__1t6v0c67wrtj7._.js +3 -0
  387. package/.next/server/chunks/{[root-of-the-server]__0ztucyaloy2ub._.js → [root-of-the-server]__1tcmfyputqswh._.js} +2 -2
  388. package/.next/server/chunks/[root-of-the-server]__1ttyfy9dd2omo._.js +3 -0
  389. package/.next/server/chunks/[root-of-the-server]__1uk_9g9b1wxp5._.js +3 -0
  390. package/.next/server/chunks/[root-of-the-server]__1v5j-xo97hloh._.js +3 -0
  391. package/.next/server/chunks/[root-of-the-server]__1wt1lpxbrwtyt._.js +3 -0
  392. package/.next/server/chunks/[root-of-the-server]__1y7j4fig86u8c._.js +3 -0
  393. package/.next/server/chunks/{[root-of-the-server]__0q520ovb9262s._.js → [root-of-the-server]__1z61l-vv1munx._.js} +2 -2
  394. package/.next/server/chunks/{_02qwqg9i39x4_._.js → _0-4_eys63g0m9._.js} +6 -6
  395. package/.next/server/chunks/_020v6nmfgswzk._.js +1 -1
  396. package/.next/server/chunks/_06iu5mmu8wlcc._.js +3 -0
  397. package/.next/server/chunks/{_0tz5wpjdgntj3._.js → _09trvgfs0zumw._.js} +2 -2
  398. package/.next/server/chunks/_0c25unp5_llaq._.js +3 -0
  399. package/.next/server/chunks/{_1csx8ckltgali._.js → _0fsupxpep5knb._.js} +6 -6
  400. package/.next/server/chunks/{_0oppr1mpoh25l._.js → _0j_08_iij6lec._.js} +1 -1
  401. package/.next/server/chunks/_0pivjcgtfkjfw._.js +3 -0
  402. package/.next/server/chunks/_0rse5-saodpeb._.js +30 -0
  403. package/.next/server/chunks/{_1gtuhmdu6udof._.js → _0sreqb-d5c0h6._.js} +6 -6
  404. package/.next/server/chunks/_0vidw039o5x0k._.js +3 -0
  405. package/.next/server/chunks/_10xn2rcd87yd5._.js +3 -0
  406. package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
  407. package/.next/server/chunks/{_1yvd01woddaxt._.js → _1c-nysoxl9gha._.js} +6 -6
  408. package/.next/server/chunks/_1eqnx6dcz6a03._.js +1 -1
  409. package/.next/server/chunks/_1ooq1_fguyb4w._.js +1 -1
  410. package/.next/server/chunks/_1re5pp9fn2sv7._.js +3 -0
  411. package/.next/server/chunks/_1v6bg00q81vb-._.js +3 -0
  412. package/.next/server/chunks/_1y2rcqvbb2_-4._.js +3 -0
  413. package/.next/server/chunks/_1yx16tn5391kx._.js +1 -1
  414. package/.next/server/chunks/_1z_ujac_e_65s._.js +1 -1
  415. package/.next/server/chunks/_next-internal_server_app_api_mcp_route_actions_1thtlukwlrce1.js +3 -0
  416. package/.next/server/chunks/_next-internal_server_app_api_question-banks_[id]_route_actions_06y5t4oimtusv.js +3 -0
  417. package/.next/server/chunks/_next-internal_server_app_api_question-banks_route_actions_0h4hz83b0yf8g.js +3 -0
  418. package/.next/server/chunks/node_modules_zod_v4_classic_external_0yua5dbpvcjkf.js +5 -5
  419. package/.next/server/chunks/src_lib_078zldkqc-a67._.js +1 -1
  420. package/.next/server/chunks/src_lib_09_k-7vv0sy-e._.js +3 -0
  421. package/.next/server/chunks/src_lib_0clsw_ng7x3ih._.js +1 -1
  422. package/.next/server/chunks/src_lib_0gonw_e9wzfyz._.js +1 -1
  423. package/.next/server/chunks/src_lib_0whd_w99i5vmm._.js +1 -1
  424. package/.next/server/chunks/src_lib_1_m3-y2t3e4xi._.js +28 -19
  425. package/.next/server/chunks/src_lib_1b_d9xsuzjp3e._.js +1 -1
  426. package/.next/server/chunks/src_lib_1hw1dokd0kaxo._.js +3 -0
  427. package/.next/server/chunks/src_lib_1o3tjd1o5cimp._.js +1 -1
  428. package/.next/server/chunks/src_lib_error-list_1o9rfcd_k01kv._.js +3 -0
  429. package/.next/server/chunks/src_lib_import_import-batches_ts_0nq3mn0v5uj28._.js +1 -1
  430. package/.next/server/chunks/src_lib_import_import-tasks_ts_01f-g_upv7llt._.js +1 -1
  431. package/.next/server/chunks/src_lib_notebook-scope_ts_06eipvr6xztlf._.js +1 -1
  432. package/.next/server/chunks/src_lib_question-bank_import_ts_023xoc-kyom7m._.js +3 -0
  433. package/.next/server/chunks/src_lib_question_question-deduplication_ts_0gumctesi3szc._.js +1 -1
  434. package/.next/server/chunks/src_lib_tags_seed_1_ej3w-2450a0._.js +1 -1
  435. package/.next/server/chunks/ssr/[root-of-the-server]__032-uso7x2eqk._.js +1 -1
  436. package/.next/server/chunks/ssr/[root-of-the-server]__0ekyw4b9xrrfl._.js +3 -0
  437. package/.next/server/chunks/ssr/{[root-of-the-server]__04nhi0374i4dp._.js → [root-of-the-server]__0l72nsu73r1ie._.js} +1 -1
  438. package/.next/server/chunks/ssr/{[root-of-the-server]__0xjcdrflb40xr._.js → [root-of-the-server]__0q4fkp0gm5j49._.js} +1 -1
  439. package/.next/server/chunks/ssr/[root-of-the-server]__127jl-l56wp65._.js +3 -0
  440. package/.next/server/chunks/ssr/[root-of-the-server]__13a530hbs-5o-._.js +1 -1
  441. package/.next/server/chunks/ssr/[root-of-the-server]__1abszuh7g1t6l._.js +3 -0
  442. package/.next/server/chunks/ssr/[root-of-the-server]__1czdp-cv_3o0y._.js +3 -0
  443. package/.next/server/chunks/ssr/[root-of-the-server]__1u1nyl__o71y7._.js +3 -0
  444. package/.next/server/chunks/ssr/[root-of-the-server]__1w_b5karqfj4p._.js +3 -0
  445. package/.next/server/chunks/ssr/{[root-of-the-server]__01z2m5q6l60fn._.js → [root-of-the-server]__1z7574v_ikkfm._.js} +1 -1
  446. package/.next/server/chunks/ssr/_0-nyc5xhnkj97._.js +3 -0
  447. package/.next/server/chunks/ssr/_00bsw28n2tkm8._.js +3 -0
  448. package/.next/server/chunks/ssr/_017305t8j_d1y._.js +3 -0
  449. package/.next/server/chunks/ssr/_02_avk2sj3zf5._.js +1 -1
  450. package/.next/server/chunks/ssr/_081vr-pfkkxm1._.js +3 -0
  451. package/.next/server/chunks/ssr/{_1h4fhwg03wbzm._.js → _08d_9wlphi_z1._.js} +1 -1
  452. package/.next/server/chunks/ssr/_093l-s8jylydj._.js +3 -0
  453. package/.next/server/chunks/ssr/_09np4pgpwe7dt._.js +3 -0
  454. package/.next/server/chunks/ssr/_09o1qheyspd5d._.js +3 -0
  455. package/.next/server/chunks/ssr/{_0ajvgy4u-t-py._.js → _0_6a-7_isz4ox._.js} +1 -1
  456. package/.next/server/chunks/ssr/_0p3bqrojxwfs0._.js +1 -1
  457. package/.next/server/chunks/ssr/_0rd-teluypcd2._.js +1 -1
  458. package/.next/server/chunks/ssr/_13546ppmec5po._.js +4 -0
  459. package/.next/server/chunks/ssr/{_0is6rtsx_9ka7._.js → _1bpiiswbxudjs._.js} +1 -1
  460. package/.next/server/chunks/ssr/_1ctycpq4tb8xw._.js +1 -1
  461. package/.next/server/chunks/ssr/_1gdar99uip6w4._.js +3 -0
  462. package/.next/server/chunks/ssr/_1m-8w6s67a81a._.js +3 -0
  463. package/.next/server/chunks/ssr/_1s1ithxs1-28e._.js +3 -0
  464. package/.next/server/chunks/ssr/_1ywwrbmzxhzuj._.js +3 -0
  465. package/.next/server/chunks/ssr/_207sw-k8wjyua._.js +4 -0
  466. package/.next/server/chunks/ssr/_next-internal_server_app_banks_page_actions_02im6pq6s__f4.js +3 -0
  467. package/.next/server/chunks/ssr/node_modules_0_n_aglnnr_pe._.js +3 -0
  468. package/.next/server/chunks/ssr/{node_modules_1i644g-kqgnm_._.js → node_modules_0h9ta63mxl6gx._.js} +1 -1
  469. package/.next/server/chunks/ssr/node_modules_0howjysrkg79j._.js +3 -0
  470. package/.next/server/chunks/ssr/node_modules_1gehjcp51qewp._.js +3 -0
  471. package/.next/server/chunks/ssr/{node_modules_05hncuf8243qe._.js → node_modules_@radix-ui_1c09orgee1uhq._.js} +2 -2
  472. package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_0sz_snu3yd_63.js → node_modules_heic-to_dist_csp_heic-to_0lnmp65mgz816.js} +1 -1
  473. package/.next/server/chunks/ssr/node_modules_next_dist_0rsvep-qefr2x._.js +1 -1
  474. package/.next/server/chunks/ssr/node_modules_next_dist_1khq67j4vo9y4._.js +1 -1
  475. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1v3-7fv6473ff.js +3 -0
  476. package/.next/server/chunks/ssr/src_0qrp0l9l_33ze._.js +3 -0
  477. package/.next/server/chunks/ssr/{src_0e73j7l6j__rh._.js → src_11my1u2jnbp_c._.js} +2 -2
  478. package/.next/server/chunks/ssr/src_18crt94jrdkoz._.js +3 -0
  479. package/.next/server/chunks/ssr/src_1m8frpkuirkx8._.js +1 -1
  480. package/.next/server/chunks/ssr/src_app_banks_page_tsx_0ln3jwg20xg0f._.js +3 -0
  481. package/.next/server/chunks/ssr/src_app_notebooks_[id]_page_tsx_08njm-5-txm8_._.js +1 -1
  482. package/.next/server/chunks/ssr/src_app_notebooks_page_tsx_1p9src5gnz_40._.js +1 -1
  483. package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +2 -2
  484. package/.next/server/chunks/ssr/src_app_practice_page_tsx_10gnx53v3kpzb._.js +1 -1
  485. package/.next/server/chunks/ssr/src_app_review_page_tsx_1rq4ygvo_szv0._.js +1 -1
  486. package/.next/server/chunks/ssr/src_components_error-list_error-item-card_tsx_1zsiqsrj-jjd7._.js +1 -1
  487. package/.next/server/chunks/ssr/src_components_mastery-panel_tsx_1--j5c7mhomdp._.js +1 -1
  488. package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +20 -20
  489. package/.next/server/chunks/ssr/src_contexts_LanguageContext_tsx_0r6xucmeu1k5z._.js +1 -1
  490. package/.next/server/chunks/ssr/src_lib_0rd9w12yo--s3._.js +3 -0
  491. package/.next/server/chunks/ssr/src_lib_130aann40fb28._.js +3 -0
  492. package/.next/server/chunks/ssr/src_lib_api-client_ts_04r2_ex-gua5i._.js +1 -1
  493. package/.next/server/chunks/ssr/src_lib_i18n_en_ts_08zkpwnoqey5s._.js +1 -1
  494. package/.next/server/functions-config-manifest.json +2 -1
  495. package/.next/server/middleware-build-manifest.js +14 -3
  496. package/.next/server/next-font-manifest.js +1 -1
  497. package/.next/server/next-font-manifest.json +4 -0
  498. package/.next/server/pages/500.html +1 -1
  499. package/.next/server/preview-props.json +3 -3
  500. package/.next/server/server-reference-manifest.js +1 -1
  501. package/.next/server/server-reference-manifest.json +1 -1
  502. package/.next/static/chunks/{3j92h-4k4_o_f.js → 01du700kl9vpy.js} +1 -1
  503. package/.next/static/chunks/0296boczx9jzp.js +1 -0
  504. package/.next/static/chunks/0ce17zvy849pt.js +1 -0
  505. package/.next/static/chunks/0jujm58tnoh6g.js +1 -0
  506. package/.next/static/chunks/{1rlw59dtd-wn9.js → 0l7p1okxbynzl.js} +2 -2
  507. package/.next/static/chunks/0q-ubzpc3zt00.js +264 -0
  508. package/.next/static/chunks/0q3d845nwr3t9.js +1 -0
  509. package/.next/static/chunks/{2s65brxj4r_r8.js → 0qp2dju3vke54.js} +1 -1
  510. package/.next/static/chunks/0wf-6-2_vym2v.js +1 -0
  511. package/.next/static/chunks/11-wz53_clo14.js +1 -0
  512. package/.next/static/chunks/{0_ysyni00uuve.js → 1inmkqwqys755.js} +1 -1
  513. package/.next/static/chunks/{2_0xdmmmic5_l.js → 1s6os79cobfn_.js} +1 -1
  514. package/.next/static/chunks/1vyad-frr447h.js +2 -0
  515. package/.next/static/chunks/1xe6wsozi5dph.js +9 -0
  516. package/.next/static/chunks/{1-p-0kczwnip9.js → 2-_veplkr98_e.js} +1 -1
  517. package/.next/static/chunks/{3f9t8cne6yfyl.js → 229eh2g7m2yeo.js} +1 -1
  518. package/.next/static/chunks/2bh5ydfa-1ijv.js +2 -0
  519. package/.next/static/chunks/{28qc_d51g0z--.js → 2g9sfd_hxpx8t.js} +1 -1
  520. package/.next/static/chunks/{13aykr4b9nzmt.js → 2pg8rnt3z7y03.js} +4 -4
  521. package/.next/static/chunks/2vka298e6x3mn.js +13 -0
  522. package/.next/static/chunks/2wwddiemqx680.js +1 -0
  523. package/.next/static/chunks/2xm7gxq5_ot8y.js +1 -0
  524. package/.next/static/chunks/{1joajsaunlqm-.js → 32feki_k6eulj.js} +1 -1
  525. package/.next/static/chunks/{3h3a7lg3-9cbn.js → 348vc_z8o0lz1.js} +1 -1
  526. package/.next/static/chunks/3_xu3ke2zp8fv.js +1 -0
  527. package/.next/static/chunks/3ghbptbmig2g6.js +1 -0
  528. package/.next/static/chunks/3pn9o00oxw1jh.js +1 -0
  529. package/.next/static/chunks/3pu4qklwvr6i6.js +1 -0
  530. package/.next/static/chunks/3t23a8b3wz2sp.css +3 -0
  531. package/.next/static/chunks/{3t9tbm4atwmw8.js → 3vdtiexr8nj05.js} +1 -1
  532. package/.next/static/chunks/3xonrwoptfy0c.js +1 -0
  533. package/dist-scripts/src/lib/tags/data/university.js +1 -1
  534. package/package.json +1 -1
  535. package/prisma/migrations/20261111000000_add_question_bank/migration.sql +54 -0
  536. package/prisma/schema.prisma +50 -0
  537. package/prisma/seed.db +0 -0
  538. package/.next/server/chunks/[root-of-the-server]__00ry5fb1607z0._.js +0 -3
  539. package/.next/server/chunks/[root-of-the-server]__0191d7zm1bh5y._.js +0 -3
  540. package/.next/server/chunks/[root-of-the-server]__0_3i3iyk5i5fu._.js +0 -3
  541. package/.next/server/chunks/[root-of-the-server]__0d3nasp559369._.js +0 -3
  542. package/.next/server/chunks/[root-of-the-server]__0ddx0pk-g57hh._.js +0 -3
  543. package/.next/server/chunks/[root-of-the-server]__0euaxkmzk9kv8._.js +0 -3
  544. package/.next/server/chunks/[root-of-the-server]__0evnxpsv44y-s._.js +0 -3
  545. package/.next/server/chunks/[root-of-the-server]__0g2y0mex0x8zf._.js +0 -3
  546. package/.next/server/chunks/[root-of-the-server]__0gjk0_s945vrt._.js +0 -3
  547. package/.next/server/chunks/[root-of-the-server]__0gkhutsleo1es._.js +0 -3
  548. package/.next/server/chunks/[root-of-the-server]__0gvfx4rsinijb._.js +0 -3
  549. package/.next/server/chunks/[root-of-the-server]__0jutgg41pd-47._.js +0 -3
  550. package/.next/server/chunks/[root-of-the-server]__0kc9gy1644-op._.js +0 -3
  551. package/.next/server/chunks/[root-of-the-server]__0medeb4h2gk5t._.js +0 -3
  552. package/.next/server/chunks/[root-of-the-server]__0prgnysrc2l5k._.js +0 -3
  553. package/.next/server/chunks/[root-of-the-server]__0qwtk85kstlpq._.js +0 -3
  554. package/.next/server/chunks/[root-of-the-server]__0rwbb97vk-mfk._.js +0 -3
  555. package/.next/server/chunks/[root-of-the-server]__0smp3m3n89xs_._.js +0 -3
  556. package/.next/server/chunks/[root-of-the-server]__0zsd45jad6b40._.js +0 -3
  557. package/.next/server/chunks/[root-of-the-server]__0zux7hsnes_j2._.js +0 -3
  558. package/.next/server/chunks/[root-of-the-server]__10--fi__uy8y7._.js +0 -3
  559. package/.next/server/chunks/[root-of-the-server]__14b8pj1sucy1-._.js +0 -3
  560. package/.next/server/chunks/[root-of-the-server]__16t85d4p3aldo._.js +0 -3
  561. package/.next/server/chunks/[root-of-the-server]__1_do4zybj0nvi._.js +0 -3
  562. package/.next/server/chunks/[root-of-the-server]__1bz0s-wy2cxhl._.js +0 -3
  563. package/.next/server/chunks/[root-of-the-server]__1d7_aw9ogigrd._.js +0 -3
  564. package/.next/server/chunks/[root-of-the-server]__1gb1x1ubkdwig._.js +0 -3
  565. package/.next/server/chunks/[root-of-the-server]__1gsm8s81ac08k._.js +0 -3
  566. package/.next/server/chunks/[root-of-the-server]__1hc1bcnovtwo2._.js +0 -3
  567. package/.next/server/chunks/[root-of-the-server]__1jwd70xukhvz4._.js +0 -3
  568. package/.next/server/chunks/[root-of-the-server]__1ms_0h40h2rbg._.js +0 -3
  569. package/.next/server/chunks/[root-of-the-server]__1nw9nkdb5uv4i._.js +0 -3
  570. package/.next/server/chunks/[root-of-the-server]__1ogeha9-ljbre._.js +0 -3
  571. package/.next/server/chunks/[root-of-the-server]__1p5s772lt24dg._.js +0 -3
  572. package/.next/server/chunks/[root-of-the-server]__1pxyy29_t_ru1._.js +0 -3
  573. package/.next/server/chunks/[root-of-the-server]__1s_ky5a7nhgas._.js +0 -3
  574. package/.next/server/chunks/[root-of-the-server]__1txu2n-l6c6yu._.js +0 -3
  575. package/.next/server/chunks/[root-of-the-server]__1ulrsdu0e8fjb._.js +0 -3
  576. package/.next/server/chunks/[root-of-the-server]__1vg4na3a-hvwi._.js +0 -3
  577. package/.next/server/chunks/[root-of-the-server]__1wi-k0dtwwxx3._.js +0 -3
  578. package/.next/server/chunks/[root-of-the-server]__1wvm4n7d69s3x._.js +0 -3
  579. package/.next/server/chunks/[root-of-the-server]__1x-u1u9mrt630._.js +0 -3
  580. package/.next/server/chunks/[root-of-the-server]__1xx_3auad-kml._.js +0 -3
  581. package/.next/server/chunks/[root-of-the-server]__1y0omyblg9j35._.js +0 -3
  582. package/.next/server/chunks/[root-of-the-server]__1z2d4j9-oei44._.js +0 -3
  583. package/.next/server/chunks/[root-of-the-server]__1znqtfuuspj0w._.js +0 -3
  584. package/.next/server/chunks/[root-of-the-server]__205o-7lep9jth._.js +0 -3
  585. package/.next/server/chunks/[root-of-the-server]__20c3hyqykubh2._.js +0 -3
  586. package/.next/server/chunks/[root-of-the-server]__20pn9h3od2anc._.js +0 -3
  587. package/.next/server/chunks/_0b9gke5b17vzh._.js +0 -3
  588. package/.next/server/chunks/_0ta62b-tktnk8._.js +0 -3
  589. package/.next/server/chunks/_12xi_xqvtrn3k._.js +0 -3
  590. package/.next/server/chunks/_14l8uqb__fhx_._.js +0 -3
  591. package/.next/server/chunks/_18hm5aaxkr500._.js +0 -3
  592. package/.next/server/chunks/_1b-7g4thtxfnp._.js +0 -3
  593. package/.next/server/chunks/ssr/[root-of-the-server]__0l0hz47yn1ku_._.js +0 -3
  594. package/.next/server/chunks/ssr/[root-of-the-server]__0w77craeuuak9._.js +0 -3
  595. package/.next/server/chunks/ssr/[root-of-the-server]__1rrcp_77jpv98._.js +0 -3
  596. package/.next/server/chunks/ssr/[root-of-the-server]__1xgyz8jfhhs4j._.js +0 -3
  597. package/.next/server/chunks/ssr/_07igsu8xjloky._.js +0 -3
  598. package/.next/server/chunks/ssr/_090e6vf_k0pe9._.js +0 -3
  599. package/.next/server/chunks/ssr/_09y2uhjubswp4._.js +0 -3
  600. package/.next/server/chunks/ssr/_0htmdb0udewwn._.js +0 -3
  601. package/.next/server/chunks/ssr/_0lzeodofsq9pe._.js +0 -3
  602. package/.next/server/chunks/ssr/_0mp06uu5odp8m._.js +0 -4
  603. package/.next/server/chunks/ssr/_0ozptnii2nxuw._.js +0 -3
  604. package/.next/server/chunks/ssr/_0r_8p9g00106y._.js +0 -3
  605. package/.next/server/chunks/ssr/_0znwyf0_b8ia6._.js +0 -3
  606. package/.next/server/chunks/ssr/_127aw5h992s9d._.js +0 -4
  607. package/.next/server/chunks/ssr/_1dx7u1_w4db4k._.js +0 -3
  608. package/.next/server/chunks/ssr/node_modules_0nslyotwav52f._.js +0 -3
  609. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0mg8mlclupjv-._.js +0 -3
  610. package/.next/server/chunks/ssr/src_0_qzoo_03n_v-._.js +0 -3
  611. package/.next/server/chunks/ssr/src_0atwwo6buvs3b._.js +0 -3
  612. package/.next/server/chunks/ssr/src_1o5f_wr8vv-x0._.js +0 -3
  613. package/.next/server/chunks/ssr/src_lib_short-id_short-id-client_ts_03nnd3s0tat3l._.js +0 -3
  614. package/.next/static/chunks/08pb1_yl7fhsw.js +0 -1
  615. package/.next/static/chunks/0alfkmfoq-e76.js +0 -1
  616. package/.next/static/chunks/0c3tf7izst9o8.js +0 -1
  617. package/.next/static/chunks/0gs3bacq7z36z.js +0 -1
  618. package/.next/static/chunks/13oi1micj1ewp.js +0 -1
  619. package/.next/static/chunks/14zevcjua-k8z.js +0 -1
  620. package/.next/static/chunks/1797q5c62e7um.js +0 -1
  621. package/.next/static/chunks/1_4nz7m2jathb.js +0 -1
  622. package/.next/static/chunks/1ey5h3_143nwz.js +0 -2
  623. package/.next/static/chunks/23h8i_poncr7i.js +0 -1
  624. package/.next/static/chunks/26is31yphg3a0.css +0 -3
  625. package/.next/static/chunks/2e4y6sq3k0g-g.js +0 -1
  626. package/.next/static/chunks/2hl9d1rdb9hkq.js +0 -1
  627. package/.next/static/chunks/315-5a18eawtj.js +0 -13
  628. package/.next/static/chunks/33vv8ujyvnonj.js +0 -1
  629. package/.next/static/chunks/3keaieh9lgnr3.js +0 -2
  630. package/.next/static/chunks/3ls9d-zeu8xdr.js +0 -264
  631. package/.next/static/chunks/3m_jfkz23whuc.js +0 -1
  632. package/.next/static/chunks/431ssxm5rrwz9.js +0 -1
  633. /package/.next/static/{HqqfOtkWGYtFERkBGxueA → S4q1xCvMlvuYeRE4fI2-s}/_buildManifest.js +0 -0
  634. /package/.next/static/{HqqfOtkWGYtFERkBGxueA → S4q1xCvMlvuYeRE4fI2-s}/_clientMiddlewareManifest.js +0 -0
  635. /package/.next/static/{HqqfOtkWGYtFERkBGxueA → S4q1xCvMlvuYeRE4fI2-s}/_ssgManifest.js +0 -0
@@ -1,13 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,399847,e=>{var t=e.i(456420);let n={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],399847)},13285,e=>{var t=e.i(456420);let n={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],13285)},615568,168148,e=>{var t=e.i(456420);let n={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],615568);var a=e.i(843476),r=e.i(271645),l=e.i(30030),o=e.i(248425),s=Object.defineProperty,h=(e,t)=>s(e,"name",{value:t,configurable:!0}),u="Progress",[c,d]=(0,l.f)(u),[g,f]=c(u),m=r.forwardRef(h(function(e,t){let{__scopeProgress:n,value:i=null,max:r,getValueLabel:l=w,...s}=e;(r||0===r)&&!b(r)&&console.error(C(`${r}`,"Progress"));let h=b(r)?r:100;null===i||v(i,h)||console.error(M(`${i}`,"Progress"));let u=v(i,h)?i:null,c=x(u)?l(u,h):void 0;return(0,a.jsx)(g,{scope:n,value:u,max:h,children:(0,a.jsx)(o.V.div,{"aria-valuemax":h,"aria-valuemin":0,"aria-valuenow":x(u)?u:void 0,"aria-valuetext":c,role:"progressbar","data-state":y(u,h),"data-value":u??void 0,"data-max":h,...s,ref:t})})},"Progress")),p=r.forwardRef(h(function(e,t){let{__scopeProgress:n,...i}=e,r=f("ProgressIndicator",n);return(0,a.jsx)(o.V.div,{"data-state":y(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...i,ref:t})},"ProgressIndicator"));function w(e,t){return`${Math.round(e/t*100)}%`}function y(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function x(e){return"number"==typeof e}function b(e){return x(e)&&!isNaN(e)&&e>0}function v(e,t){return x(e)&&!isNaN(e)&&e<=t&&e>=0}function C(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}function M(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
- - a positive number
3
- - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
4
- - \`null\` or \`undefined\` if the progress is indeterminate.
5
-
6
- Defaulting to \`null\`.`}h(w,"defaultGetValueLabel"),h(y,"getProgressState"),h(x,"isNumber"),h(b,"isValidMaxNumber"),h(v,"isValidValueNumber"),h(C,"getInvalidMaxError"),h(M,"getInvalidValueError");var D=e.i(975157);let _=r.forwardRef(({className:e,value:t,...n},i)=>(0,a.jsx)(m,{ref:i,value:t,className:(0,D.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:(0,a.jsx)(p,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));_.displayName=m.displayName,e.s(["f",0,_],168148)},837817,232660,e=>{var t=e.i(456420);let n={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],837817);var a=e.i(271645),r={x:0,y:0,width:0,height:0,unit:"px"},l=(e,t,n)=>Math.min(Math.max(e,t),n),o=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function s(e,t,n){return"%"===e.unit?{...r,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/n*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/n*100:0}}function h(e,t,n){return e.unit&&"px"!==e.unit?{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*n/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*n/100:0}:{...r,...e,unit:"px"}}function u(e,t,n,i,a,r=0,l=0,o=i,s=a){let h={...e},c=Math.min(r,i),d=Math.min(l,a),g=Math.min(o,i),f=Math.min(s,a);t&&(t>1?(d=(c=l?l*t:c)/t,g=o*t):(c=(d=r?r/t:d)*t,f=s/t)),h.y<0&&(h.height=Math.max(h.height+h.y,d),h.y=0),h.x<0&&(h.width=Math.max(h.width+h.x,c),h.x=0);let m=i-(h.x+h.width);m<0&&(h.x=Math.min(h.x,i-c),h.width+=m);let p=a-(h.y+h.height);if(p<0&&(h.y=Math.min(h.y,a-d),h.height+=p),h.width<c&&(("sw"===n||"nw"==n)&&(h.x-=c-h.width),h.width=c),h.height<d&&(("nw"===n||"ne"==n)&&(h.y-=d-h.height),h.height=d),h.width>g&&(("sw"===n||"nw"==n)&&(h.x-=g-h.width),h.width=g),h.height>f&&(("nw"===n||"ne"==n)&&(h.y-=f-h.height),h.height=f),t){let e=h.width/h.height;if(e<t){let e=Math.max(h.width/t,d);("nw"===n||"ne"==n)&&(h.y-=e-h.height),h.height=e}else if(e>t){let e=Math.max(h.height*t,c);("sw"===n||"nw"==n)&&(h.x-=e-h.width),h.width=e}}return h}var c={capture:!0,passive:!1},d=0,g=class e extends a.PureComponent{static xOrds=["e","w"];static yOrds=["n","s"];static xyOrds=["nw","ne","se","sw"];static nudgeStep=1;static nudgeStepMedium=10;static nudgeStepLarge=100;static defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};get document(){return document}docMoveBound=!1;mouseDownOnCrop=!1;dragStarted=!1;evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0};componentRef=(0,a.createRef)();mediaRef=(0,a.createRef)();resizeObserver;initChangeCalled=!1;instanceId=`rc-${d++}`;state={cropIsActive:!1,newCropIsBeingDrawn:!1};getBox(){let e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};let{x:t,y:n,width:i,height:a}=e.getBoundingClientRect();return{x:t,y:n,width:i,height:a}}componentDidUpdate(e){let{crop:t,onComplete:n}=this.props;if(n&&!e.crop&&t){let{width:e,height:i}=this.getBox();e&&i&&n(h(t,e,i),s(t,e,i))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||=(this.document.addEventListener("pointermove",this.onDocPointerMove,c),this.document.addEventListener("pointerup",this.onDocPointerDone,c),this.document.addEventListener("pointercancel",this.onDocPointerDone,c),!0)}unbindDocMove(){this.docMoveBound&&=(this.document.removeEventListener("pointermove",this.onDocPointerMove,c),this.document.removeEventListener("pointerup",this.onDocPointerDone,c),this.document.removeEventListener("pointercancel",this.onDocPointerDone,c),!1)}onCropPointerDown=e=>{let{crop:t,disabled:n}=this.props,i=this.getBox();if(!t)return;let a=h(t,i.width,i.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let r=e.target.dataset.ord,l=e.clientX,o=e.clientY,s=a.x,u=a.y;if(r){let t=e.clientX-i.x,n=e.clientY-i.y,h=0,c=0;"ne"===r||"e"==r?(h=t-(a.x+a.width),c=n-a.y,s=a.x,u=a.y+a.height):"se"===r||"s"===r?(h=t-(a.x+a.width),c=n-(a.y+a.height),s=a.x,u=a.y):"sw"===r||"w"==r?(h=t-a.x,c=n-(a.y+a.height),s=a.x+a.width,u=a.y):("nw"===r||"n"==r)&&(h=t-a.x,c=n-a.y,s=a.x+a.width,u=a.y+a.height),l=s+i.x+h,o=u+i.y+c}this.evData={startClientX:l,startClientY:o,startCropX:s,startCropY:u,clientX:e.clientX,clientY:e.clientY,isResize:!!r,ord:r},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})};onComponentPointerDown=e=>{let{crop:t,disabled:n,locked:i,keepSelection:a,onChange:r}=this.props,l=this.getBox();if(n||i||a&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let o=e.clientX-l.x,u=e.clientY-l.y,c={unit:"px",x:o,y:u,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:o,startCropY:u,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,r(h(c,l.width,l.height),s(c,l.width,l.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})};onDocPointerMove=e=>{let t,{crop:n,disabled:i,onChange:a,onDragStart:r}=this.props,l=this.getBox();if(i||!n||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(e));let{evData:u}=this;u.clientX=e.clientX,u.clientY=e.clientY,o(n,t=u.isResize?this.resizeCrop():this.dragCrop())||a(h(t,l.width,l.height),s(t,l.width,l.height))};onComponentKeyDown=t=>{let{crop:n,disabled:i,onChange:a,onComplete:r}=this.props;if(i)return;let o=t.key,u=!1;if(!n)return;let c=this.getBox(),d=this.makePixelCrop(c),g=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===o?(d.x-=g,u=!0):"ArrowRight"===o?(d.x+=g,u=!0):"ArrowUp"===o?(d.y-=g,u=!0):"ArrowDown"===o&&(d.y+=g,u=!0),u){t.cancelable&&t.preventDefault(),d.x=l(d.x,0,c.width-d.width),d.y=l(d.y,0,c.height-d.height);let e=h(d,c.width,c.height),n=s(d,c.width,c.height);a(e,n),r&&r(e,n)}};onHandlerKeyDown=(t,n)=>{var i,a;let r,{aspect:l=0,crop:c,disabled:d,minWidth:g=0,minHeight:f=0,maxWidth:m,maxHeight:p,onChange:w,onComplete:y}=this.props,x=this.getBox();if(d||!c||"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();let b=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,v=u((i=h(c,x.width,x.height),a=t.key,r={...i},"ArrowLeft"===a?"nw"===n?(r.x-=b,r.y-=b,r.width+=b,r.height+=b):"w"===n?(r.x-=b,r.width+=b):"sw"===n?(r.x-=b,r.width+=b,r.height+=b):"ne"===n?(r.y+=b,r.width-=b,r.height-=b):"e"===n?r.width-=b:"se"===n&&(r.width-=b,r.height-=b):"ArrowRight"===a&&("nw"===n?(r.x+=b,r.y+=b,r.width-=b,r.height-=b):"w"===n?(r.x+=b,r.width-=b):"sw"===n?(r.x+=b,r.width-=b,r.height-=b):"ne"===n?(r.y-=b,r.width+=b,r.height+=b):"e"===n?r.width+=b:"se"===n&&(r.width+=b,r.height+=b)),"ArrowUp"===a?"nw"===n?(r.x-=b,r.y-=b,r.width+=b,r.height+=b):"n"===n?(r.y-=b,r.height+=b):"ne"===n?(r.y-=b,r.width+=b,r.height+=b):"sw"===n?(r.x+=b,r.width-=b,r.height-=b):"s"===n?r.height-=b:"se"===n&&(r.width-=b,r.height-=b):"ArrowDown"===a&&("nw"===n?(r.x+=b,r.y+=b,r.width-=b,r.height-=b):"n"===n?(r.y+=b,r.height-=b):"ne"===n?(r.y+=b,r.width-=b,r.height-=b):"sw"===n?(r.x-=b,r.width+=b,r.height+=b):"s"===n?r.height+=b:"se"===n&&(r.width+=b,r.height+=b)),r),l,n,x.width,x.height,g,f,m,p);if(!o(c,v)){let e=s(v,x.width,x.height);w(v,e),y&&y(v,e)}};onDocPointerDone=e=>{let{crop:t,disabled:n,onComplete:i,onDragEnd:a}=this.props,r=this.getBox();this.unbindDocMove(),!(n||!t)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,a&&a(e),i&&i(h(t,r.width,r.height),s(t,r.width,r.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))};onDragFocus=()=>{this.componentRef.current?.scrollTo(0,0)};getCropStyle(){let{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){let{evData:e}=this,t=this.getBox(),n=this.makePixelCrop(t),i=e.clientX-e.startClientX,a=e.clientY-e.startClientY;return n.x=l(e.startCropX+i,0,t.width-n.width),n.y=l(e.startCropY+a,0,t.height-n.height),n}getPointRegion(e,t,n,i){let{evData:a}=this,r=a.clientX-e.x,l=a.clientY-e.y,o;return o=i&&t?"nw"===t||"n"===t||"ne"===t:l<a.startCropY,(n&&t?"nw"===t||"w"===t||"sw"===t:r<a.startCropX)?o?"nw":"sw":o?"ne":"se"}resolveMinDimensions(e,t,n=0,i=0){let a=Math.min(n,e.width),r=Math.min(i,e.height);return t&&(a||r)?t>1?a?[a,a/t]:[r*t,r]:r?[r*t,r]:[a,a/t]:[a,r]}resizeCrop(){let{evData:t}=this,{aspect:n=0,maxWidth:i,maxHeight:a}=this.props,r=this.getBox(),[o,s]=this.resolveMinDimensions(r,n,this.props.minWidth,this.props.minHeight),h=this.makePixelCrop(r),c=this.getPointRegion(r,t.ord,o,s),d=t.ord||c,g=t.clientX-t.startClientX,f=t.clientY-t.startClientY;(o&&"nw"===d||"w"===d||"sw"===d)&&(g=Math.min(g,-o)),(s&&"nw"===d||"n"===d||"ne"===d)&&(f=Math.min(f,-s));let m={unit:"px",x:0,y:0,width:0,height:0};"ne"===c?(m.x=t.startCropX,m.width=g,n?m.height=m.width/n:m.height=Math.abs(f),m.y=t.startCropY-m.height):"se"===c?(m.x=t.startCropX,m.y=t.startCropY,m.width=g,n?m.height=m.width/n:m.height=f):"sw"===c?(m.x=t.startCropX+g,m.y=t.startCropY,m.width=Math.abs(g),n?m.height=m.width/n:m.height=f):"nw"===c&&(m.x=t.startCropX+g,m.width=Math.abs(g),n?(m.height=m.width/n,m.y=t.startCropY-m.height):(m.height=Math.abs(f),m.y=t.startCropY+f));let p=u(m,n,c,r.width,r.height,o,s,i,a);return n||e.xyOrds.indexOf(d)>-1?h=p:e.xOrds.indexOf(d)>-1?(h.x=p.x,h.width=p.width):e.yOrds.indexOf(d)>-1&&(h.y=p.y,h.height=p.height),h.x=l(h.x,0,r.width-h.width),h.y=l(h.y,0,r.height-h.height),h}renderCropSelection(){let{ariaLabels:t=e.defaultProps.ariaLabels,disabled:n,locked:i,renderSelectionAddon:r,ruleOfThirds:l,crop:o}=this.props,s=this.getCropStyle();if(o)return a.default.createElement("div",{style:s,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!i&&a.default.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},a.default.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),a.default.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),a.default.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),a.default.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),r&&a.default.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},r(this.state)),l&&a.default.createElement(a.default.Fragment,null,a.default.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),a.default.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return h({...r,...this.props.crop||{}},e.width,e.height)}render(){let{aspect:e,children:t,circularCrop:n,className:i,crop:r,disabled:l,locked:o,style:s,ruleOfThirds:h}=this.props,{cropIsActive:u,newCropIsBeingDrawn:c}=this.state,d=r?this.renderCropSelection():null,g=((...e)=>e.filter(e=>e&&"string"==typeof e).join(" "))("ReactCrop",i,u&&"ReactCrop--active",l&&"ReactCrop--disabled",o&&"ReactCrop--locked",c&&"ReactCrop--new-crop",r&&e&&"ReactCrop--fixed-aspect",r&&n&&"ReactCrop--circular-crop",r&&h&&"ReactCrop--rule-of-thirds",!this.dragStarted&&r&&!r.width&&!r.height&&"ReactCrop--invisible-crop",n&&"ReactCrop--no-animate");return a.default.createElement("div",{ref:this.componentRef,className:g,style:s},a.default.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),r?a.default.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},a.default.createElement("defs",null,a.default.createElement("mask",{id:`hole-${this.instanceId}`},a.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),n?a.default.createElement("ellipse",{cx:`${r.x+r.width/2}${r.unit}`,cy:`${r.y+r.height/2}${r.unit}`,rx:`${r.width/2}${r.unit}`,ry:`${r.height/2}${r.unit}`,fill:"black"}):a.default.createElement("rect",{x:`${r.x}${r.unit}`,y:`${r.y}${r.unit}`,width:`${r.width}${r.unit}`,height:`${r.height}${r.unit}`,fill:"black"}))),a.default.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,d)}};e.s(["f",0,g],232660)},213761,895133,e=>{let t=[0,90,180,270];function n(e,t,i=0){let a=90===i||270===i;return{width:a?t:e,height:a?e:t}}function i(e,i,a){let r,l,o,s,h=t.includes(a.rotation??0)?a.rotation??0:0,u=n(e,i,h),c=e=>Math.min(1,Math.max(0,e)),d=Math.round(c(a.x)*u.width),g=Math.round(c(a.y)*u.height),f=Math.max(1,Math.min(u.width-d,Math.round(c(a.width)*u.width))),m=Math.max(1,Math.min(u.height-g,Math.round(c(a.height)*u.height)));switch(h){case 90:r=g,l=u.width-d-f,o=m,s=f;break;case 180:r=e-d-f,l=i-g-m,o=f,s=m;break;case 270:r=e-g-m,l=d,o=m,s=f;break;default:r=d,l=g,o=f,s=m}return{rotation:h,frameWidth:u.width,frameHeight:u.height,fx:d,fy:g,fw:f,fh:m,sx:r,sy:l,sw:o,sh:s,outputWidth:f,outputHeight:m}}function a(e,t,n,i,a){if(0===t.length)return;let r=a.width/i.sw,l=a.height/i.sh;for(let a of(e.save(),e.fillStyle="#ffffff",e.strokeStyle="#ffffff",e.lineCap="round",e.lineJoin="round",t)){if(0===a.points.length)continue;let t=a.points.map(e=>({x:(e.x*n.width-i.sx)*r,y:(e.y*n.height-i.sy)*l})),o=Math.max(.5,a.radius*n.width*r);if(1===t.length){e.beginPath(),e.arc(t[0].x,t[0].y,o,0,2*Math.PI),e.fill();continue}for(let n of(e.beginPath(),e.moveTo(t[0].x,t[0].y),t.slice(1)))e.lineTo(n.x,n.y);e.lineWidth=2*o,e.stroke()}e.restore()}function r(e,t,n,i,l,o=[]){switch(e.fillStyle="#ffffff",e.fillRect(0,0,i,l),e.imageSmoothingEnabled=!0,e.imageSmoothingQuality="high",e.save(),n.rotation){case 90:e.translate(i,0),e.rotate(Math.PI/2);break;case 180:e.translate(i,l),e.rotate(Math.PI);break;case 270:e.translate(0,l),e.rotate(-Math.PI/2)}let s=90===n.rotation||270===n.rotation;e.drawImage(t,n.sx,n.sy,n.sw,n.sh,0,0,s?l:i,s?i:l),e.restore(),a(e,o,{width:n.frameWidth,height:n.frameHeight},{sx:n.fx,sy:n.fy,sw:n.fw,sh:n.fh},{width:i,height:l})}async function l(e,t){let{naturalWidth:n,naturalHeight:a}=e;return Promise.all(t.map(t=>new Promise((l,o)=>{let s=i(n,a,t),h=document.createElement("canvas");h.width=s.outputWidth,h.height=s.outputHeight;let u=h.getContext("2d");u?(r(u,e,s,s.outputWidth,s.outputHeight,t.erase??[]),h.toBlob(e=>e?l(e):o(Error("Canvas is empty")),"image/jpeg",.95)):o(Error("Canvas is not supported"))})))}e.s(["c",0,function(e,t,n,i,r){a(e,t,n,i,r)},"B",0,function(e){let t=e.match(/^data:(image\/(?:png|jpe?g|webp|gif));base64,([\s\S]+)$/);if(!t)return null;try{let e=atob(t[2]),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([n],{type:t[1]})}catch{return null}},"Y",0,l,"D",0,r,"w",0,function(e,t,n,i){let a=e=>Math.min(1,Math.max(0,e)),r=a(Math.min(e,n)),l=a(Math.min(t,i));return{x:r,y:l,width:a(Math.max(e,n))-r,height:a(Math.max(t,i))-l}},"h",0,i,"s",0,n,"f",0,function(e){return/^(blob:|data:image\/)/i.test(e)?e:void 0}],895133);let o={maxLongEdge:4096,maxPixels:4915200,maxBytes:1572864,startQuality:.9,minQuality:.8};class s extends Error{code;format;constructor(e,t,n){super(e,void 0===n?void 0:{cause:n}),this.code=e,this.format=t,this.name="ImageDecodeError"}}let h=new Set(["heic","heix","heim","heis","hevc","hevx","hevm","hevs"]),u=new Set(["mif1","msf1","mif2"]),c=new Set(["avif","avis"]);function d(e,t,n=o){let i=Math.min(1,n.maxLongEdge/Math.max(e,t),Math.sqrt(n.maxPixels/Math.max(1,e*t)));return{width:Math.max(1,Math.floor(e*i)),height:Math.max(1,Math.floor(t*i)),scale:i}}async function g(e){let t,n;if("function"==typeof createImageBitmap)try{return await createImageBitmap(e,{imageOrientation:"from-image"})}catch{}let i=await (t=URL.createObjectURL(e),(n=new Image).decoding="async",new Promise((e,i)=>{n.onload=()=>e(n),n.onerror=()=>i(Error("IMAGE_ELEMENT_DECODE_FAILED")),n.src=t}).finally(()=>URL.revokeObjectURL(t)));if(!i.naturalWidth||!i.naturalHeight)throw Error("IMAGE_EMPTY");return i}async function f(t){let{heicTo:n}=await e.A(462684);return n({blob:t,type:"image/jpeg",quality:.95})}function m(e,t){return new Promise((n,i)=>{e.toBlob(e=>e?n(e):i(Error("CANVAS_EMPTY")),"image/jpeg",t)})}function p(e,t,n,i,a){let l,o=((l=document.createElement("canvas")).width=n,l.height=i,l),s=o.getContext("2d");if(!s)throw Error("CANVAS_UNSUPPORTED");return r(s,e,t,n,i,a),o}async function w(e,t){var n;let a,r=performance.now(),l=await e.arrayBuffer(),o=performance.now()-r,w=function(e){let t=(t,n)=>String.fromCharCode(...e.subarray(t,n));if(e.length>=3&&255===e[0]&&216===e[1]&&255===e[2])return"jpeg";if(e.length>=8&&137===e[0]&&"PNG"===t(1,4))return"png";if(e.length>=12&&"RIFF"===t(0,4)&&"WEBP"===t(8,12))return"webp";if(e.length>=6&&("GIF87a"===t(0,6)||"GIF89a"===t(0,6)))return"gif";if(e.length>=2&&"BM"===t(0,2))return"bmp";if(e.length>=12&&"ftyp"===t(4,8)){let n=Math.min(e.length,(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0||e.length),i=[t(8,12)];for(let e=16;e+4<=n;e+=4)i.push(t(e,e+4));if(i.some(e=>h.has(e)))return"heic";if(i.some(e=>c.has(e)))return"avif";if(i.some(e=>u.has(e)))return"heic"}return"unknown"}(new Uint8Array(l,0,Math.min(l.byteLength,64))),x=e.type||"",b=performance.now(),v="native",C=new Blob([l],{type:x||"application/octet-stream"});try{a=await g(C)}catch(e){if("heic"!==w)throw new s("unknown"===w?"UNSUPPORTED_IMAGE":"IMAGE_DECODE_FAILED",w,e);t?.();try{a=await g(await f(C)),v="heic"}catch(e){throw new s("HEIC_DECODE_FAILED",w,e)}}let{width:M,height:D}=(n=a)instanceof HTMLImageElement?{width:n.naturalWidth,height:n.naturalHeight}:{width:n.width,height:n.height};if(!M||!D)throw new s("IMAGE_DECODE_FAILED",w);let _=d(M,D,{maxLongEdge:1600,maxPixels:1/0}),k=i(M,D,y),E=await m(p(a,k,_.width,_.height),.85),I=URL.createObjectURL(E),R=performance.now()-b;return{source:a,width:M,height:D,format:w,decoder:v,previewUrl:I,sourceType:x,sourceBytes:e.size,timings:{read:Math.round(o),convert:Math.round(R)},dispose:()=>{URL.revokeObjectURL(I),a instanceof HTMLImageElement||a.close()}}}let y={x:0,y:0,width:1,height:1};async function x(e,t=y,n=o){var a;let r=performance.now(),l=i(e.width,e.height,t),s=d(l.outputWidth,l.outputHeight,n),h=p(e.source,l,s.width,s.height,t.erase),u=performance.now()-r,c=performance.now(),g=n.startQuality,f=await m(h,g);for(let i=0;f.size>n.maxBytes&&i<12;i++)g-.05>=n.minQuality-1e-9?g=Math.round((g-.05)*100)/100:(s={width:Math.max(1,Math.floor(.85*s.width)),height:Math.max(1,Math.floor(.85*s.height)),scale:.85*s.scale},h=p(e.source,l,s.width,s.height,t.erase)),f=await m(h,g);return{dataUrl:await (a=f,new Promise((e,t)=>{let n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>t(n.error??Error("READ_FAILED")),n.readAsDataURL(a)})),width:s.width,height:s.height,bytes:f.size,quality:g,timings:{crop:Math.round(u),compress:Math.round(performance.now()-c)}}}e.s(["K",0,o,"o",0,s,"N",0,function(e,t){return{sourceType:e.sourceType||e.format,sourceBytes:e.sourceBytes,sourceWidth:e.width,sourceHeight:e.height,outputWidth:t.width,outputHeight:t.height,outputBytes:t.bytes,decoder:e.decoder,quality:t.quality}},"p",0,w,"X",0,x],213761)},499930,e=>{var t=e.i(213761);let n={maxLongEdge:8192,maxPixels:0x1800000,maxBytes:4194304,startQuality:.9,minQuality:.8};function i(e,t=.008){let n=Math.max(0,e.x-t),a=Math.max(0,e.y-t);return{x:n,y:a,width:Math.min(1,e.x+e.width+t)-n,height:Math.min(1,e.y+e.height+t)-a}}async function a(e){let t=new Image;if(t.decoding="async",t.src=e,await t.decode(),!t.naturalWidth||!t.naturalHeight)throw Error("IMAGE_EMPTY");return t}async function r(e,i){let a=function(e,t=16,n=!1){let i=Math.max(...e.map(e=>e.width)),a=0,r=e.map(e=>{let r=n?i/e.width:e.scale??1,l={x:0,y:a,width:Math.round(e.width*r),height:Math.round(e.height*r)};return a+=l.height+t,l});return{width:Math.max(...r.map(e=>e.width)),height:a-t,rects:r}}(e.map(e=>({width:e.sw,height:e.sh,scale:e.scale})),16,i),r=document.createElement("canvas");r.width=a.width,r.height=a.height;let l=r.getContext("2d");if(!l)throw Error("CANVAS_UNSUPPORTED");l.fillStyle="#ffffff",l.fillRect(0,0,r.width,r.height),e.forEach((e,t)=>{let n=a.rects[t];l.drawImage(e.source,e.sx,e.sy,e.sw,e.sh,n.x,n.y,n.width,n.height)});let o=await createImageBitmap(r);try{return await (0,t.X)({source:o,width:r.width,height:r.height},{x:0,y:0,width:1,height:1},n)}finally{o.close()}}async function l(e,n){let a=e.naturalWidth,l=e.naturalHeight,o=n.map(e=>i(e));return 1===o.length?(0,t.X)({source:e,width:a,height:l},o[0]):r(o.map(t=>({source:e,sx:Math.round(t.x*a),sy:Math.round(t.y*l),sw:Math.max(1,Math.round(t.width*a)),sh:Math.max(1,Math.round(t.height*l))})),!1)}async function o(e){return r((await Promise.all(e.map(a))).map(e=>({source:e,sx:0,sy:0,sw:e.naturalWidth,sh:e.naturalHeight})),!0)}async function s(e,t,n){let a=e.naturalWidth,l=e.naturalHeight,o=n.width/a,s=t.map(e=>i(e)).map(t=>({source:e,sx:Math.round(t.x*a),sy:Math.round(t.y*l),sw:Math.max(1,Math.round(t.width*a)),sh:Math.max(1,Math.round(t.height*l)),scale:o}));return s.push({source:n.source,sx:0,sy:0,sw:n.width,sh:n.height}),r(s,!1)}e.s(["y",0,a,"k",0,s,"M",0,l,"v",0,o])},119472,e=>{var t=e.i(41931),n=e.i(127175);async function i(e){let t;for(let n=0;n<3;n++)try{return await e()}catch(e){if(t=e,!function(e){let t=e?.status;return void 0===t||408===t||502===t||503===t||504===t}(e)||2===n)break;await new Promise(e=>setTimeout(e,1e3*(n+1)))}throw t}async function a(e,r=(0,n.c)()){let{batch:l}=await i(()=>t.k.post("/api/import-batches",{...e,clientRequestId:r,subjectId:e.subjectId||void 0,targetSubjectId:e.targetSubjectId||void 0,paperLevel:e.paperLevel||void 0,items:e.items?.map(e=>({...e})),origin:e.origin},{timeout:12e4}));return(0,n.P)(),l}async function r(e,n={}){let i=n.image?"?include=image":"",{batch:a}=await t.k.get(`/api/import-batches/${encodeURIComponent(e)}${i}`);return a}async function l(e,n,i){let{batch:a}=await t.k.patch(`/api/import-batches/${encodeURIComponent(e)}`,{version:n,draft:i});return a}async function o(e,a,r,l){let{batch:o}=await i(()=>t.k.post(`/api/import-batches/${encodeURIComponent(e)}/start`,{version:a,images:r,analysis:l},{timeout:12e4}));return(0,n.P)(),o}async function s(e){let{batch:i}=await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/retry`,{});return(0,n.P)(),i}async function h(e){let i=await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/confirm-all`,{});return(0,n.P)(),i}async function u(e){await t.k.delete(`/api/import-batches/${encodeURIComponent(e)}`),(0,n.P)()}async function c(e){await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/read`,{}),(0,n.P)()}async function d(e,n,i){return t.k.post(`/api/import-batches/${encodeURIComponent(e)}/fix-text`,{items:n},{timeout:6e5,recoverable:!0,requestId:i})}e.s(["J",0,h,"n",0,function(e){return e?.status===409?e.data?.details?.batch??null:null},"v",0,a,"o",0,u,"w",0,r,"$",0,d,"f",0,c,"s",0,s,"S",0,l,"g",0,o])},25197,e=>{var t=e.i(41931);function n(e){return e.trim()?e:""}async function i(){try{return!!(await t.k.get("/api/user")).confirmBeforeImport}catch{return!1}}async function a(e,i){let a=await t.k.post("/api/error-items",{questionText:e.questionText,answerText:n(e.answerText),analysis:n(e.analysis),wrongAnswerText:e.wrongAnswerText||null,mistakeAnalysis:e.mistakeAnalysis||null,mistakeStatus:e.mistakeStatus||"unknown",knowledgePoints:e.knowledgePoints||[],difficultyStars:e.difficultyStars??null,recognizedGradeSemester:e.gradeSemester??null,hasFigure:e.hasFigure??!1,figureSvg:e.figureSvg??null,questionType:e.questionType??null,subjectId:i.subjectId||void 0,subjectName:i.subjectId?void 0:e.subject,originalImageUrl:i.imageUrl||"",source:(i.source??e.source)?.trim()||null,paperLevel:i.paperLevel||void 0});return{id:a.id,shortId:a.shortId??null,subjectId:a.subjectId??null,notebookName:a.subject?.name??null,duplicate:a.duplicate}}e.i(201276),e.s(["x",0,i,"a",0,a],25197)},825624,e=>{let t=/^[\s  ]+/,n="一二三四五六七八九十",i=[{family:"dot",pattern:/^(\d{1,3})\s*(?:.|\.(?!\d))\s*/},{family:"comma",pattern:/^(\d{1,3})\s*[、,,](?!\d)\s*/},{family:"paren",pattern:/^(\d{1,3})\s*[))]\s*/},{family:"colon",pattern:/^(\d{1,3})\s*[::](?!\d)\s*/},{family:"ti",pattern:/^第\s*(\d{1,3}|[一二三四五六七八九十]{1,3})\s*题\s*[..、::]?\s*/},{family:"example",pattern:/^(?:例题?|练习|习题)\s*(\d{1,3})\s*[..、::]?\s*/},{family:"q",pattern:/^(?:Q|Question|Problem|Exercise)\s*(\d{1,3})\s*[..::)]?\s+/i},{family:"cn",pattern:/^([一二三四五六七八九十]{1,3})\s*[、..]\s*/}];function a(e){let a=e.replace(t,"");for(let{family:e,pattern:t}of i){let i=a.match(t);if(!i||a.length<=i[0].length)continue;let r=function(e){if(/^\d+$/.test(e))return Number(e);if("十"===e)return 10;let t=e.indexOf("十");return -1===t?n.indexOf(e)+1:10*(0===t?1:n.indexOf(e[0])+1)+(t===e.length-1?0:n.indexOf(e[t+1])+1)}(i[1]);if(Number.isFinite(r)&&!(r<=0))return{value:r,family:e,prefixLength:i[0].length,label:i[1]}}return null}function r(e){let n=e.split("\n"),i=n[0]?.replace(t,"")??"",r=a(i);return r&&"cn"!==r.family&&(n[0]=i.slice(r.prefixLength)),n.join("\n")}function l(e){let t=[];for(let n of e)(n||0!==t.length&&""!==t[t.length-1])&&t.push(n);for(;t.length>0&&""===t[t.length-1];)t.pop();return t.join("\n")}let o=/(姓名|班级|学号|日期|得分|分数|评分|考号|座位号|家长签字|用时|Name\s*[::_]|Class\s*[::_]|Date\s*[::_]|Score\s*[::_])|_{3,}|共\s*\d+\s*(道|题|小题)|做完|答案(见|在)|最后一页|满分\s*\d+\s*分/i,s=/(阅读|材料|短文|文章|选文|诗歌|古诗|文言文|下[面列]的?(表格|图表|统计|信息)|根据.{0,20}(回答|完成)|passage|read the|according to the)/i,h=/^(参考答案|答案与解析|答案|Answers?|Answer Key)\s*[::]?$/i,u=/^(第[一二三四五六七八九十]+(部分|大题|节)|(Part|Section)\s+[A-Z0-9IVX]+\b)/i,c=/(选择|填空|判断|计算|解答|应用|解决问题|操作|作图|阅读|写作|作文|综合|口算|听力|单项|完形|题)/,d=/(\d{1,3})\s*[~~\-—–至到]\s*(\d{1,3})\s*(?:小?题|questions?)/i,g=/(小问|小题|下列问题|以下问题|下列各题|下面各题|完成下列|回答下列|回答以下|following questions|answer the following)/i;function f(e){let t=[],n=[];for(let i of e)i?n.push(i):n.length&&(t.push(n.join("\n")),n=[]);return n.length&&t.push(n.join("\n")),t}function m(e,t=[]){let n=e.trim();return!(!n||n.length>12||/[。!?!?,,、;;::..()()【】\[\]{}]$/.test(n)||/\d/.test(n)||/[。!?!?;;,,]/.test(n))&&!!(/(篇|章|节|部分|组)$/.test(n)||/^(Part|Section)\s+[A-Z0-9]+$/i.test(n))&&(!t.length||t.some(e=>{let t=a(e);return null!==t&&1===t.value}))}function p(e,t){let n=[];for(let i=0;i<e.length;i++){let a=e[i],r=[a];for(let n=i+1;n<e.length;n++){let i=e[n],l=r[r.length-1];if(i.family!==a.family)continue;let o=1===i.value&&[...t].some(e=>e>l.line&&e<i.line);(i.value===l.value+1||o)&&r.push(i)}r.length>n.length&&(n=r)}return n}function w(e,t,n){return!!u.test(e)||!!t&&"cn"===t.family&&"cn"!==n&&null!==n&&(e.length<=40||c.test(e.slice(0,20)))}function y(e,t,n,i,a){for(let r=e-1;r>=0;r--)if(t[r]){if(a.has(r)||w(t[r],n[r],i)||m(t[r]))return t[r];break}return null}function x(e){let t=e.match(d);if(!t)return null;let n=Number(t[1]),i=Number(t[2]);return n<=i?{from:n,to:i}:null}let b={answer:/^(?:【\s*(?:参考答案|答案)\s*】|(?:参考答案|答案)\s*[::]|Answer\s*[::])\s*(.*)$/i,analysis:/^(?:【\s*(?:解析|分析|详解|解答|点评)\s*】|(?:解析|分析|详解|解答|点评)\s*[::])\s*(.*)$/,knowledge:/^(?:【\s*(?:知识点|考点)\s*】|(?:知识点|考点)\s*[::])\s*(.*)$/,difficulty:/^(?:【\s*难度\s*】|难度\s*[::])\s*(.*)$/,questionType:/^(?:【\s*题型\s*】|题型\s*[::])\s*(.*)$/,wrongAnswer:/^(?:【\s*错答\s*】|我的答案\s*[::]|学生答案\s*[::])\s*(.*)$/},v={易:1,较易:2,中等:3,较难:4,难:5};function C(e){return e.split(/[、,,;;]/).map(e=>e.trim()).filter(Boolean)}function M(e){let t={answer:[],analysis:[],knowledge:[],difficulty:[],questionType:[],wrongAnswer:[]},n=[],i=null;for(let a of e){let e=null;for(let n of Object.keys(b)){let r=a.match(b[n]);if(!r)continue;e=n,i=n;let l=r[1].trim();l&&t[n].push(l);break}e||(i&&a.trim()?t[i].push(a.trim()):n.push(a))}let a={},r=t.answer.join("\n").trim();r&&(a.answer=r);let o=t.analysis.join("\n").trim();o&&(a.analysis=o);let s=t.knowledge.flatMap(C);s.length&&(a.knowledgePoints=s);let h=t.difficulty.join(" ").trim(),u=h?function(e){let t=e.trim();if(!t)return null;let n=t.match(/^(\d{1,2})\s*(?:星|级)?$/);if(n){let e=Number(n[1]);return e>=1&&e<=5?e:null}if(/^[★☆]{1,5}$/.test(t)){let e=(t.match(/★/g)??[]).length;return e>=1?e:null}return t in v?v[t]:null}(h):null;null!==u&&(a.difficultyStars=u);let c=t.questionType.join(" ").trim();c&&(a.questionType=c);let d=t.wrongAnswer.join("\n").trim();return d&&(a.wrongAnswer=d),{text:l(n),fields:a}}let D=/^(\d{1,3})\s*[..、,,)]\s*(\S[\s\S]*)$/,_=/^(\d{1,3})\s*[~~—–-]\s*(\d{1,3})\s*[::..、]?\s*([A-Za-z]+)$/;function k(e){let t=e.trim();if(!t)return null;let n=function(e){let t=e.trim().match(_);if(!t)return null;let n=Number(t[1]),i=Number(t[2]),a=t[3];if(!Number.isFinite(n)||!Number.isFinite(i)||n<=0||i<=n||i-n+1>60)return null;let r=i-n+1;return a.length!==r?null:Array.from({length:r},(e,t)=>({label:String(n+t),text:a[t]}))}(t);if(n)return n;let i=function(e){let t=e.trim(),n=[];for(let e of t.matchAll(/(\d{1,3})\s*[..、,,;;]\s*/g)){let i=e.index??0,a=t[i+e[0].length];a&&/\d/.test(a)||n.push({index:i,label:e[1],afterIndex:i+e[0].length})}if(n.length<2)return null;for(let e=1;e<n.length;e++)if(Number(n[e].label)<=Number(n[e-1].label))return null;let i=[];for(let e=0;e<n.length;e++){let a=n[e].afterIndex,r=e+1<n.length?n[e+1].index:t.length,l=t.slice(a,r).trim().replace(/[;;]+$/,"").trim();if(!l||l.length>30||/[。!?!?]/.test(l))return null;i.push({label:n[e].label,text:l})}return i}(t);if(i)return i.map(e=>({label:e.label??"",text:e.text})).filter(e=>e.label);let a=t.match(D);if(!a)return null;let r=Number(a[1]);return!Number.isFinite(r)||r<=0?null:[{label:a[1],text:a[2].trim()}]}function E(e){let t=e.match(/^(.*?)(?:【?\s*(?:解析|分析|详解|解答|点评)\s*】?\s*[::])([\s\S]*)$/);if(t){let n=t[1].replace(/^(?:【?\s*(?:参考答案|答案)\s*】?\s*[::])\s*/,"").trim(),i=t[2].trim();return i?{answer:n,analysis:i}:{answer:e.trim()}}return{answer:e.replace(/^(?:【?\s*(?:参考答案|答案)\s*】?\s*[::])\s*/,"").trim()||e.trim()}}function I(e,t){let n=[],i=!1;for(let a of e){let e={value:!1},r=[];for(let n of a.split("\n")){let i=n.trim()?k(n):null;if(!i){n.trim()&&r.push(n);continue}let a=!1;for(let l of i){let i=t.find(e=>e.label===l.label);if(!i){r.push(n);break}a=!0,e.value=!0;let o=E(l.text);o.answer&&!i.answer&&(i.answer=o.answer),o.analysis&&(i.analysis=i.analysis?`${i.analysis}
7
- ${o.analysis}`:o.analysis)}!a&&!r.includes(n)&&n.trim()&&!r.includes(n)&&r.push(n)}i=i||e.value,e.value?r.length&&n.push(r.join("\n")):n.push(a)}return[n,i]}e.s(["k",0,2e3,"f",0,1e6,"S",0,60,"i",0,2e4,"J",0,function(e,n={}){let i,c,b=void 0===n.maxLength?2e4:Math.min(Math.max(n.maxLength,1e3),1e6),v=void 0===n.maxQuestions?60:Math.min(Math.max(n.maxQuestions,2),2e3),C=e.length>b,D=e.slice(0,b).replace(/\r\n?/g,"\n").split("\n").map(e=>e.replace(t,"").replace(/[\s ]+$/,"")),_=D.map(e=>e?a(e):null),R=D.length;for(let e=0;e<D.length;e++)if(h.test(D[e])){R=e;break}let $=[],P=[];for(let e=0;e<R;e++){let t=_[e];t&&("cn"===t.family?P:$).push({...t,line:e})}let S=new Set;for(let e=0;e<R;e++)(u.test(D[e])||_[e]?.family==="cn"||m(D[e],D.slice(e+1,e+5)))&&S.add(e);let A=[],N=p($,S);if(N.length<2){let e=p(P,new Set);e.length>=2&&(A=[{chain:e,sectionHeading:null}])}else A=function(e,t,n,i){if(e.length<2)return[];let a=e[0].family,r=[0];for(let t=1;t<e.length;t++)1===e[t].value&&r.push(t);if(r.length<2){let r=y(e[0].line,t,n,a,i);return null!==r?[{chain:e,sectionHeading:r}]:[]}let l=[];for(let o=0;o<r.length;o++){let s=r[o],h=o+1<r.length?r[o+1]:e.length,u=e.slice(s,h),c=0===o?y(e[0].line,t,n,a,i):function(e,t,n,i,a,r){for(let l=e+1;l<t;l++)if(n[l]&&(r.has(l)||w(n[l],i[l],a)||m(n[l])))return n[l];return null}(e[s-1].line,e[s].line,t,n,a,i);if(null===c&&o>0){l[l.length-1].chain.push(...u);continue}l.push({chain:u,sectionHeading:c})}return l.filter(e=>e.chain.length>0)}(N,D,_,S);let H=A.length?A.flatMap(e=>e.chain):N,j=l(D.slice(0,R)),L=R<D.length?f(D.slice(R)):[],O=(c=a(D[H[0]?.line??0]??""))?c.label:null,U=e=>({questions:j?[{label:O,text:j,material:null,section:null,lineRange:{from:0,to:R}}]:[],ignored:L,detected:!1,ambiguous:e,candidateCount:e?H.length:+!!j,overflow:0,tooLong:C});if(H.length<2){if(!j)return U(!1);let e=M(j.split("\n")),t=U(!1);if(t.questions.length>0&&Object.keys(e.fields).length>0&&(t.questions[0]={...t.questions[0],text:r(e.text),...e.fields}),t.questions.length>0&&L.length){let[e,n]=I(L,t.questions);t.ignored=e,n||(t.ignored=L)}return t}let B=H[0].family;if(!n.forceNumbered&&function(e,t,n,i){let a=null;for(let r=t-1;r>=0;r--)if(e[r]){a=w(e[r],i[r],n)?null:e[r];break}return!(!a||o.test(a)||d.test(a))&&("paren"===n?a.length>=15||/[。?!?!::,,;;]$/.test(a):/[::]$/.test(a)&&g.test(a))}(D,H[0].line,B,_)){let e=U(!0);if(e.questions.length>0&&j){let t=M(j.split("\n"));Object.keys(t.fields).length>0&&(e.questions[0]={...e.questions[0],text:r(t.text),...t.fields})}return e}let T=new Set(H.map(e=>e.line)),X=[],Y=[],z=null,K=[],q=[],F=(e,t)=>{for(let n of f(e))(!o.test(n)||!(n.length<80))&&(s.test(n)||n.length>=80&&/[。!?.!?;;]/.test(n))?K.push({text:n,range:x(n)}):t?X.push(n):z&&!Y.some(e=>e.section===z)?z=`${z}
8
- ${n}`:X.push(n)},W=H[0].line,V=[];for(let e=0;e<W;e++)D[e]&&(w(D[e],_[e],B)||m(D[e],D.slice(e+1,e+5)))?(F(V.splice(0),!0),z=D[e],q=[]):V.push(D[e]);F(V,!0);let G=A.length>1,Q=e=>{if(!G)return -1;let t=0;for(let n=0;n<A.length;n++)if(e<(t+=A[n].chain.length))return n;return A.length-1};for(let e=0;e<H.length;e++){let t=H[e].line,n=e+1<H.length?H[e+1].line:R,i=Q(e);if(G&&i>=0){let e=A[i].sectionHeading;null!==e&&(z=e,q=[])}K.length&&(q=[...q.filter(e=>e.range),...K],K=[]);let a=n,o=null;for(let e=t+1;e<n;e++)if(D[e]&&!T.has(e)&&w(D[e],_[e],B)){a=e,o=D[e];break}let h=D.slice(t,a),u=f(h),c=[];for(;u.length>1&&s.test(u[u.length-1].slice(0,30));)c.unshift(u.pop());let d=c.length?u.join("\n"):l(h),g=H[e].value,m=q.filter(e=>!e.range||g>=e.range.from&&g<=e.range.to),p=M(r(d).split("\n"));for(let i of(Y.push({label:H[e].label,text:p.text,material:m.length?m.map(e=>e.text).join("\n\n"):null,section:z,lineRange:{from:t,to:n},...p.fields}),c))K.push({text:i,range:x(i)});null!==o&&(z=o,q=[],F(D.slice(a+1,n),!1))}if(G&&L.length){let e=A.map(e=>e.sectionHeading).filter(e=>null!==e),t=L.join("\n");i=e.some(e=>t.includes(e))?function(e,t,n){let i=[],a=0,r=t.map(e=>{let t=n.slice(a,a+e.chain.length);return a+=e.chain.length,t}),l=-1;for(let a of e){let e=a.split("\n"),o=[],s=!1;for(let i of e){let e=i.trim();if(!e){o.push(i);continue}let a=t.findIndex(t=>t.sectionHeading&&e.includes(t.sectionHeading));if(a>=0){l=a;continue}let h=k(e);if(!h){o.push(i);continue}let u=l>=0?r[l]:n,c=!1;for(let e of h){let t=u.find(t=>t.label===e.label);if(!t){o.push(i);break}c=!0,s=!0;let n=E(e.text);n.answer&&!t.answer&&(t.answer=n.answer),n.analysis&&(t.analysis=t.analysis?`${t.analysis}
9
- ${n.analysis}`:n.analysis)}c||o.includes(i)||o.push(i)}s?o.length&&i.push(o.join("\n")):i.push(a)}return i}(L,A,Y):L}else i=I(L,Y)[0];let Z=Y.slice(v);return{questions:Y.slice(0,v),ignored:[...X,...i,...Z.map(e=>{var t;let n,i,a,r;return n=(t=e).text.trim(),a=(i=t.material?.trim())?`${i}
10
-
11
- ${n}`:n,r=[],(t.answer?.trim()&&r.push(`参考答案:${t.answer.trim()}`),t.analysis?.trim()&&r.push(`参考解析:${t.analysis.trim()}`),t.wrongAnswer?.trim()&&r.push(`学生作答:${t.wrongAnswer.trim()}`),r.length)?`${a}
12
-
13
- ${r.join("\n\n")}`:a})],detected:!0,ambiguous:!1,candidateCount:Y.length,overflow:Z.length,tooLong:C}}])},767077,e=>{var t=e.i(303163);e.s(["f",0,function(e,n){let i=n.common?.messages?.analysisFailed||"Analysis failed, please try again",a=(0,t.d)(e);if(a){let e=n.errors??{};if(!(a in e))return a;let t=e[a];return"string"==typeof t?t:i}let r=(0,t.Z)(e);if(r.includes("fetch")||r.includes("network"))return n.errors?.AI_CONNECTION_FAILED||"网络连接失败";if("object"==typeof e&&null!==e&&"data"in e&&"string"==typeof e.data){let t="status"in e&&"number"==typeof e.status?e.status:"Error";return`${i} (${t})`}return i}])},401280,e=>{let t={single_choice:"single_choice",singlechoice:"single_choice","single choice":"single_choice","single-choice":"single_choice",multiple_choice:"multiple_choice",multiplechoice:"multiple_choice","multiple choice":"multiple_choice","multiple-choice":"multiple_choice",multichoice:"multiple_choice","multi choice":"multiple_choice",true_false:"true_false",truefalse:"true_false","true/false":"true_false","true false":"true_false","true-false":"true_false","true / false":"true_false",fill_blank:"fill_blank",fillblank:"fill_blank","fill in the blank":"fill_blank","fill-in-the-blank":"fill_blank",fillintheblank:"fill_blank",calculation:"calculation",solution:"solution",reading:"reading",cloze:"cloze",writing:"writing",other:"other",选择题:"single_choice",单项选择:"single_choice",单选:"single_choice",单选题:"single_choice",不定项:"multiple_choice",不定项选择:"multiple_choice",多项选择:"multiple_choice",多选:"multiple_choice",多选题:"multiple_choice",判断:"true_false",判断题:"true_false",是非:"true_false",是非题:"true_false",填空:"fill_blank",填空题:"fill_blank",口算:"calculation",计算:"calculation",计算题:"calculation",解答:"solution",解答题:"solution",应用:"solution",应用题:"solution",证明:"solution",证明题:"solution",简答:"solution",简答题:"solution",阅读:"reading",阅读理解:"reading",完形:"cloze",完形填空:"cloze",作文:"writing",写作:"writing",书面表达:"writing",其他:"other"};e.s(["O",0,"__none__","V",0,["single_choice","multiple_choice","true_false","fill_blank","calculation","solution","reading","cloze","writing","other"],"u",0,{single_choice:"Single Choice",multiple_choice:"Multiple Choice",true_false:"True / False",fill_blank:"Fill in the Blank",calculation:"Calculation",solution:"Solution",reading:"Reading Comprehension",cloze:"Cloze",writing:"Writing",other:"Other"},"H",0,{single_choice:"单选题",multiple_choice:"多选题",true_false:"判断题",fill_blank:"填空题",calculation:"计算题",solution:"解答题",reading:"阅读理解",cloze:"完形填空",writing:"写作",other:"其他"},"P",0,function(e){if("string"!=typeof e)return null;let n=e.trim().toLowerCase();return n?t[n]??null:null}])}])})();
@@ -1 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var t=e.i(456420);let r={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],711241)},576248,e=>{var t=e.i(456420);let r={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],576248)},856522,e=>{var t=e.i(456420);let r={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],856522)},652109,e=>{var t=e.i(843476),r=e.i(271645),a=e.i(618566),s=e.i(632781),i=e.i(711241),n=e.i(519455),l=e.i(515288),c=e.i(624687),d=e.i(793479),o=e.i(511445),u=e.i(522016),m=e.i(548161),x=e.i(856522),g=e.i(393733),f=e.i(111110),p=e.i(41931),h=e.i(201276);function b({errorItemId:e,suggested:a,question:i,difficulty:c}){let{t:d}=(0,f.b)(),[o,j]=(0,r.useState)(a),[y,v]=(0,r.useState)(!1),[N,w]=(0,r.useState)(!1),[k,S]=(0,r.useState)(null),A=async()=>{if(o){v(!0),S(null);try{await p.k.post("/api/practice/record",{errorItemId:e,result:o,difficulty:c,subject:i.subject||null,questionText:i.questionText,answerText:i.answerText,analysis:i.analysis,figureSvg:i.figureSvg??null}),w(!0)}catch(e){h.V.error("[Practice]","Failed to save practice result",{error:e instanceof Error?e.message:String(e)}),S(d.mastery.resultSaveFailed)}finally{v(!1)}}};return(0,t.jsxs)(l.N,{className:N?"border-green-500":"border-primary/40",children:[(0,t.jsx)(l.Y,{children:(0,t.jsx)(l.v,{className:"text-base",children:d.mastery.markResult})}),(0,t.jsxs)(l.O,{className:"space-y-3",children:[(0,t.jsx)(g.f,{value:o,onChange:j,disabled:N||y}),a&&!N&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:d.mastery.suggested}),N?(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2 text-sm text-green-700 dark:text-green-300",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(m.f,{className:"h-4 w-4"}),d.mastery.resultSaved]}),(0,t.jsx)(u.default,{href:`/error-items/${e}`,className:"text-primary hover:underline sm:ml-auto",children:d.mastery.viewQuestion})]}):(0,t.jsxs)(n.f,{onClick:A,disabled:!o||y,className:"w-full sm:w-auto",children:[y?(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(x.f,{className:"mr-2 h-4 w-4"}),d.mastery.saveResult]}),k&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:k})]})]})}var j=e.i(149704);let y={easy:"bg-green-100 text-green-700 hover:bg-green-200",medium:"bg-blue-100 text-blue-700 hover:bg-blue-200",hard:"bg-orange-100 text-orange-700 hover:bg-orange-200",harder:"bg-red-100 text-red-700 hover:bg-red-200"};function v({value:e,onChange:r}){let{t:a}=(0,f.b)(),s={easy:a.practice.difficulty?.easy||"Easy",medium:a.practice.difficulty?.medium||"Medium",hard:a.practice.difficulty?.hard||"Hard",harder:a.practice.difficulty?.harder||"Challenge"};return(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-muted/50 p-2 rounded-lg",children:[(0,t.jsxs)("span",{className:"text-sm font-medium text-muted-foreground",children:[a.practice.difficulty?.label||"Difficulty",":"]}),(0,t.jsx)("div",{className:"flex gap-1",children:Object.keys(y).map(a=>{let i=y[a],n=e===a;return(0,t.jsx)("button",{onClick:()=>r(a),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${n?i.replace("bg-","bg-opacity-100 bg-").replace("text-","ring-2 ring-offset-1 ring-"):"bg-transparent hover:bg-muted text-muted-foreground"} ${n?i:""}`,children:s[a]},a)})})]})}function N({value:e,onChange:r,disabled:a}){let{t:s}=(0,f.b)();return(0,t.jsxs)("select",{value:e,onChange:e=>r(e.target.value),className:"h-8 text-xs border rounded px-2 bg-background",disabled:a,children:[(0,t.jsx)("option",{value:"easy",children:s.practice.difficulty?.easy||"Easy"}),(0,t.jsx)("option",{value:"medium",children:s.practice.difficulty?.medium||"Medium"}),(0,t.jsx)("option",{value:"hard",children:s.practice.difficulty?.hard||"Hard"}),(0,t.jsx)("option",{value:"harder",children:s.practice.difficulty?.harder||"Challenge"})]})}var w=e.i(741120);function k({loading:e,onClick:r,regenerate:a}){let{t:i}=(0,f.b)();return(0,t.jsx)(n.f,{size:a?"sm":"lg",variant:a?"ghost":"default",onClick:r,disabled:e,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}),i.practice.generating]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.f,{className:"mr-2 h-4 w-4"}),a?i.practice.regenerate:i.practice.generate]})})}var S=e.i(772382),A=e.i(456420);let R={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};R.node;let C=(0,A.f)(R);var T=e.i(583967);function I({isSubmitted:e,grading:r,isCorrect:a,gradeFailed:i,gradeReason:c,notes:d,canSubmit:o,onSubmit:u,onReveal:x}){let{t:g}=(0,f.b)();if(!e)return(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row justify-center gap-2",children:[(0,t.jsxs)(n.f,{size:"lg",onClick:u,disabled:!o,className:"w-full md:w-auto",children:[(0,t.jsx)(C,{className:"mr-2 h-4 w-4"}),g.app.submitAnswer||"Submit Answer"]}),(0,t.jsxs)(n.f,{size:"lg",variant:"outline",onClick:x,className:"w-full md:w-auto",children:[(0,t.jsx)(S.f,{className:"mr-2 h-4 w-4"}),g.practice.checkAnswer||"Check Answer"]})]});if(r)return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 text-muted-foreground",role:"status",children:[(0,t.jsx)(s.f,{className:"h-5 w-5 animate-spin"}),g.practice.grading]});if(null===a)return i?(0,t.jsx)("p",{className:"rounded-lg border border-amber-200 dark:border-amber-900 bg-amber-50 dark:bg-amber-950/40 px-4 py-3 text-sm text-amber-800 dark:text-amber-200",role:"status",children:g.practice.gradeFailed}):null;let p=a?m.f:T.f,h=a?"green":"red";return(0,t.jsx)(l.N,{className:a?"border-green-500 bg-green-50 dark:bg-green-950/40":"border-red-500 bg-red-50 dark:bg-red-950/40",children:(0,t.jsxs)(l.O,{className:"pt-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)(p,{className:`h-8 w-8 ${"green"===h?"text-green-600":"text-red-600"}`}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:`text-xl font-bold ${"green"===h?"text-green-600":"text-red-600"}`,children:a?g.practice.correct||"Correct!":g.practice.incorrect||"Incorrect"}),(0,t.jsx)("p",{className:"green"===h?"text-green-700 dark:text-green-300":"text-red-700 dark:text-red-300",children:a?g.practice.correctMessage||"Great job, keep it up!":g.practice.incorrectMessage||"Review the analysis and try again!"})]})]}),c&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:g.practice.aiGradeReason.replace("{reason}",c)}),d&&(0,t.jsxs)("div",{className:"mt-4 p-3 bg-background rounded-lg border",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-muted-foreground mb-1",children:g.practice.yourNotes||"Your Notes:"}),(0,t.jsx)("p",{className:"text-foreground whitespace-pre-wrap",children:d})]})]})})}var E=e.i(35209);let q=/^(?:答案?(?:是|为)?|解|answer(?: is)?|the answer is)[::]?/i,O=/^\(?([A-H]{1,4})\)?(?:$|[.、::)]|\s+(?![a-zA-Z]))/;function _(e){return e.replace(/[!-~]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248)).replace(/ /g," ").replace(/\$|\\\(|\\\)|\\\[|\\\]/g,"").replace(/\\(?:text|mathrm)\{([^}]*)\}/g,"$1").replace(/[\s。.,,;;!!]+$/g,"").trim().replace(q,"").replace(/\s+/g,"").toLowerCase()}let $=/证明|求证|论证|推导|说明|解释|步骤|过程|列式|理由|原因|\b(?:prove|proof|justify|derive|explain|demonstrate|show|why|reason)\b/iu;var P=e.i(303163),U=e.i(294114),z=e.i(132411);let F=[["AI_CONNECTION_FAILED","aiConnectionFailed"],["AI_RESPONSE_ERROR","aiResponseError"],["AI_AUTH_ERROR","aiAuth"],["AI_OUTPUT_TRUNCATED","AI_OUTPUT_TRUNCATED"],["AI_UNKNOWN_ERROR","AI_UNKNOWN_ERROR"]];function M(){let e=(0,a.useSearchParams)(),u=(0,a.useRouter)(),m=e.get("id"),{t:x,language:g}=(0,f.b)();(0,E.f)(x.practice.title);let y=function(e){let{t,language:a}=(0,f.b)(),[s,i]=(0,r.useState)(null),[n,l]=(0,r.useState)(!1),[c,d]=(0,r.useState)(null),[o,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[v,N]=(0,r.useState)(null),[w,k]=(0,r.useState)(!1),[S,A]=(0,r.useState)(null),[R,C]=(0,r.useState)(!1),[T,I]=(0,r.useState)("medium"),[E,M]=(0,r.useState)("medium"),[V,D]=(0,r.useState)(0),[Y,H]=(0,r.useState)(null),[L,G]=(0,r.useState)(null),[K,B]=(0,r.useState)(!0);(0,r.useEffect)(()=>{p.k.get("/api/settings").then(H).catch(e=>h.V.error("[Practice]","Failed to fetch config",{error:e}))},[]),(0,r.useEffect)(()=>{if(!e)return;let t=!1;return p.k.get(`/api/practice/generate?errorItemId=${encodeURIComponent(e)}`).then(({practice:e})=>{!t&&e&&(i(t=>t??{questionText:e.questionText,answerText:e.answerText,analysis:e.analysis,subject:e.subject||"其他",knowledgePoints:[],wrongAnswerText:"",mistakeAnalysis:"",mistakeStatus:"unknown",requiresImage:!1,figureSvg:e.figureSvg??null}),I(e.difficulty),M(e.difficulty),G(e.generatedAt))}).catch(e=>h.V.warn("[Practice]","Failed to load last practice question",{error:e instanceof Error?e.message:String(e)})).finally(()=>{t||B(!1)}),()=>{t=!0}},[e]);let Q=Y?.timeouts?.analyze||18e4,W=e?`error-item:${e}:practice`:null,{running:Z,refresh:J}=(0,z.f)(W),X=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(e){if(Z){X.current=!0;return}X.current&&(X.current=!1,p.k.get(`/api/practice/generate?errorItemId=${encodeURIComponent(e)}`).then(({practice:e})=>{e&&(i(t=>t??{questionText:e.questionText,answerText:e.answerText,analysis:e.analysis,subject:e.subject||"其他",knowledgePoints:[],wrongAnswerText:"",mistakeAnalysis:"",mistakeStatus:"unknown",requiresImage:!1,figureSvg:e.figureSvg??null}),I(e.difficulty),M(e.difficulty),G(e.generatedAt))}).catch(e=>h.V.warn("[Practice]","Failed to reload last practice question",{error:e})))}},[Z,e]);let ee=async()=>{if(e){l(!0),d(null),x(""),b(""),y(!1),N(null),A(null),C(!1),u(!1);try{h.V.info("[Practice]","Generating question",{timeout:Q});let t=await p.k.post("/api/practice/generate",{errorItemId:e,language:a,difficulty:T},{timeout:Q,recoverable:!0});i(t),M(T),G(t.generatedAt??null),D(e=>e+1)}catch(e){if(e instanceof p.a&&409===e.status&&e.data?.code==="TASK_ALREADY_RUNNING")U.c.info(t.errors.TASK_ALREADY_RUNNING),await J();else{h.V.error("[Practice]","Failed to generate practice question",{error:e});let r=(0,P.d)(e)||"",a=F.find(([e])=>r.includes(e)),s=t.practice.errors?.default||"Failed to generate";d(a&&t.errors?.[a[1]]||s)}}finally{l(!1)}}},et=async()=>{if(m.trim()&&s&&e){if(y(!0),function(e,t,r){if(!r.trim()||$.test(r))return null;let a=_(e),s=_(t);if(!a||!s)return null;if(a===s)return!0;let i=t.trim().replace(q,"").trim().match(O),n=a.replace(/^\((.*)\)$/,"$1");if(i&&/^[a-h]{1,4}$/.test(n)){let e=e=>[...e.toLowerCase()].sort().join("");return e(n)===e(i[1])||null}return null}(m,s.answerText,s.questionText)){N(!0),u(!0);return}k(!0);try{let t=await p.k.post("/api/practice/grade",{errorItemId:e,userAnswer:m,language:a},{timeout:Q,recoverable:!0});N(t.correct),A(t.reason)}catch(e){h.V.warn("[Practice]","Failed to grade answer",{error:e}),N(null),C(!0)}finally{k(!1),u(!0)}}};return{question:s,loading:n||!!Z,loadingCached:K,error:c,generatedAt:L,difficulty:T,setDifficulty:I,generatedDifficulty:E,questionVersion:V,userAnswer:m,setUserAnswer:x,notes:g,setNotes:b,isSubmitted:j,isCorrect:v,grading:w,gradeReason:S,gradeFailed:R,showAnswer:o,suggestedResult:null===v?null:v?"correct":"wrong",generateQuestion:ee,submitAnswer:et,revealAnswer:()=>{y(!0),N(null),u(!0)}}}(m),{question:w,loading:S}=y;return m?(0,t.jsxs)("div",{className:"max-w-3xl mx-auto space-y-8",children:[(0,t.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,t.jsxs)(n.f,{variant:"ghost",onClick:()=>u.back(),children:[(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4"}),x.common?.back||"Back"]})}),(0,t.jsxs)("div",{className:"text-center space-y-4",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold",children:x.practice.title}),(0,t.jsx)("p",{className:"text-muted-foreground",children:x.practice.subtitle}),y.error&&(0,t.jsxs)("div",{className:"relative rounded-xl border border-destructive/30 bg-destructive/10 px-4 py-3 text-destructive",role:"alert",children:[(0,t.jsxs)("strong",{className:"font-bold",children:[x.common?.error||"Error",": "]}),(0,t.jsxs)("span",{className:"block whitespace-pre-wrap",children:[" ",y.error]})]}),y.loadingCached&&!w&&(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(s.f,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),!w&&!y.loadingCached&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)(v,{value:y.difficulty,onChange:y.setDifficulty}),(0,t.jsx)(k,{loading:S,onClick:y.generateQuestion})]})]}),w&&(0,t.jsxs)("div",{className:"space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,t.jsxs)(l.N,{className:"border-primary/50 shadow-lg",children:[(0,t.jsx)(l.Y,{children:(0,t.jsxs)(l.v,{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{children:x.app.practiceProblem}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(N,{value:y.difficulty,onChange:y.setDifficulty,disabled:S}),(0,t.jsx)(k,{loading:S,onClick:y.generateQuestion,regenerate:!0})]})]})}),(0,t.jsxs)(l.O,{children:[y.generatedAt&&(0,t.jsx)("p",{className:"mb-3 text-xs text-muted-foreground",children:(x.practice.lastGeneratedAt||"Generated at {time}").replace("{time}",new Date(y.generatedAt).toLocaleString("zh"===g?"zh-CN":"en-US"))}),(0,t.jsx)(o.f,{content:w.questionText,className:"font-medium"}),(0,t.jsx)(j.f,{svg:w.figureSvg})]})]}),(0,t.jsxs)(l.N,{className:"border-blue-200",children:[(0,t.jsx)(l.Y,{children:(0,t.jsx)(l.v,{className:"text-blue-600",children:x.app.yourAnswer||"Your Answer"})}),(0,t.jsxs)(l.O,{className:"space-y-4",children:[(0,t.jsx)(d.f,{placeholder:x.app.answerPlaceholder||"Enter your answer...",value:y.userAnswer,onChange:e=>y.setUserAnswer(e.target.value),disabled:y.isSubmitted,className:"text-lg"}),(0,t.jsx)(c.f,{placeholder:x.app.notesPlaceholder||"Record your thinking process (optional)...",value:y.notes,onChange:e=>y.setNotes(e.target.value),disabled:y.isSubmitted,rows:3})]})]}),(0,t.jsx)(I,{isSubmitted:y.isSubmitted,grading:y.grading,isCorrect:y.isCorrect,gradeFailed:y.gradeFailed,gradeReason:y.gradeReason,notes:y.notes,canSubmit:!!y.userAnswer.trim(),onSubmit:y.submitAnswer,onReveal:y.revealAnswer}),y.showAnswer&&(0,t.jsxs)("div",{className:"space-y-6 animate-in fade-in slide-in-from-top-2",children:[(0,t.jsx)(b,{errorItemId:m,suggested:y.suggestedResult,question:w,difficulty:y.generatedDifficulty},y.questionVersion),(0,t.jsxs)(l.N,{className:"bg-muted/50",children:[(0,t.jsx)(l.Y,{children:(0,t.jsx)(l.v,{className:"text-green-600",children:x.practice.correctAnswer})}),(0,t.jsx)(l.O,{children:(0,t.jsx)(o.f,{content:w.answerText,className:"font-bold"})})]}),(0,t.jsxs)(l.N,{children:[(0,t.jsx)(l.Y,{children:(0,t.jsx)(l.v,{children:x.practice.detailedAnalysis})}),(0,t.jsx)(l.O,{className:"space-y-4",children:(0,t.jsx)(o.f,{content:w.analysis})})]})]})]})]}):(0,t.jsx)("div",{className:"p-8 text-center",children:x.practice.invalidRequest||"Invalid Request"})}e.s(["default",0,function(){return(0,t.jsx)("main",{className:"min-h-screen px-4 py-6 md:px-8 md:py-8",children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)("div",{className:"flex justify-center p-8",children:(0,t.jsx)(s.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})}),children:(0,t.jsx)(M,{})})})},"dynamic",0,"force-dynamic"],652109)},393733,e=>{var t=e.i(843476),r=e.i(548161),a=e.i(576248),s=e.i(583967),i=e.i(111110);let n=[{value:"correct",icon:r.f,active:"border-green-600 bg-green-50 dark:bg-green-950/40 text-green-700 dark:text-green-300"},{value:"wrong",icon:s.f,active:"border-red-600 bg-red-50 dark:bg-red-950/40 text-red-700 dark:text-red-300"},{value:"not_attempted",icon:a.f,active:"border-amber-600 bg-amber-50 dark:bg-amber-950/40 text-amber-700 dark:text-amber-300"}];e.s(["f",0,function({value:e,onChange:r,disabled:a,size:s="md"}){let{t:l}=(0,i.b)(),c="sm"===s?"px-2 py-1 text-xs":"px-3 py-2 text-sm";return(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2",role:"radiogroup",children:n.map(({value:i,icon:n,active:d})=>(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":e===i,disabled:a,onClick:()=>r(i),className:`flex items-center justify-center gap-1 rounded-md border font-medium transition-colors disabled:opacity-60 ${c} ${e===i?d:"border-input hover:bg-muted"}`,children:[(0,t.jsx)(n,{className:"sm"===s?"h-3 w-3":"h-4 w-4"}),l.mastery.results[i]]},i))})}])},149704,e=>{var t=e.i(843476),r=e.i(111110),a=e.i(398019),s=e.i(184110),i=e.i(975157);let n={left:"mr-auto",center:"mx-auto",right:"ml-auto"};e.s(["f",0,function({svg:e,scale:l,align:c,className:d}){let{t:o}=(0,r.b)();if(!e)return null;let u=(0,s.V)(l),m=(0,s.o)(c);return(0,t.jsx)("figure",{className:(0,i.f)("question-figure my-3",d),children:(0,t.jsx)("img",{src:(0,a.d)(e),alt:o.figure.alt,className:(0,i.f)(n[m],"block h-auto max-w-full rounded border bg-white p-2"),style:{..."left"===m?{marginLeft:0,marginRight:"auto"}:"right"===m?{marginLeft:"auto",marginRight:0}:{},maxHeight:360,zoom:u/100,maxWidth:`${Math.min(u,100)}%`}})})}])},184110,e=>{let t=["left","center","right"],r="center";function a(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,r,"n",0,100,"j",0,t,"a",0,200,"_",0,10,"x",0,a,"o",0,function(e){return"string"==typeof e&&t.includes(e)?e:r},"V",0,function(e){return a(e)?e:100}])},398019,e=>{e.s(["K",0,1e5,"d",0,function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}])},35209,e=>{var t=e.i(271645),r=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,r.b)(),s=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=s},[s])}])}])})();
@@ -1,2 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,842727,e=>{var t=e.i(271645),n=e.i(981140),r=e.i(75830),o=e.i(820783),a=e.i(30030),i=e.i(610772),s=e.i(248425),l=e.i(30207),c=e.i(369340),u=e.i(586318),d=e.i(934620),f=Object.defineProperty,p=(e,t)=>f(e,"name",{value:t,configurable:!0}),h=!1;function m(){let[e,n]=t.useState(h);return t.useEffect(()=>{h||(h=!0,n(!0))},[]),e}p(m,"useIsHydrated");var g=t[" useSyncExternalStore ".trim().toString()];function v(){return()=>{}}function y(){return g(v,()=>!0,()=>!1)}p(v,"subscribe"),p(y,"useIsHydratedModern");var b="function"==typeof g?y:m,w=e.i(843476),k=Object.defineProperty,x=(e,t)=>k(e,"name",{value:t,configurable:!0}),j="rovingFocusGroup.onEntryFocus",E={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[R,M,S]=(0,r.f)(C),[D,P]=(0,a.f)(C,[S]),[I,z]=D(C),N=t.forwardRef(x(function(e,t){return(0,w.jsx)(R.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(R.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(A,{...e,ref:t})})})},"RovingFocusGroup")),A=t.forwardRef(x(function(e,r){let{__scopeRovingFocusGroup:a,orientation:i,loop:d=!1,dir:f,currentTabStopId:p,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:m,onEntryFocus:g,preventScrollOnEntryFocus:v=!1,...y}=e,b=t.useRef(null),k=(0,o.f)(r,b),x=(0,u.f)(f),[R,S]=(0,c.f)({prop:p,defaultProp:h??null,onChange:m,caller:C}),[D,P]=t.useState(!1),z=(0,l.f)(g),N=M(a),A=t.useRef(!1),[T,_]=t.useState(0);return t.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(j,z),()=>e.removeEventListener(j,z)},[z]),(0,w.jsx)(I,{scope:a,orientation:i,dir:x,loop:d,currentTabStopId:R,onItemFocus:t.useCallback(e=>S(e),[S]),onItemShiftTab:t.useCallback(()=>P(!0),[]),onFocusableItemAdd:t.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>_(e=>e-1),[]),children:(0,w.jsx)(s.V.div,{tabIndex:D||0===T?-1:0,"data-orientation":i,...y,ref:k,style:{outline:"none",...e.style},onMouseDown:(0,n.f)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,n.f)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(j,E);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);O([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),v)}}A.current=!1}),onBlur:(0,n.f)(e.onBlur,()=>P(!1))})})},"RovingFocusGroupImpl")),T=t.forwardRef(x(function(e,r){let{__scopeRovingFocusGroup:o,focusable:a=!0,active:l=!1,tabStopId:c,children:u,...f}=e,p=(0,i.f)(),h=c||p,m=z("RovingFocusGroupItem",o),g=m.currentTabStopId===h,v=M(o),{onFocusableItemAdd:y,onFocusableItemRemove:k,currentTabStopId:x}=m,j=b();return(0,d.f)(()=>{if(j&&a)return y(),()=>k()},[j,a,y,k]),t.useEffect(()=>{if(!j&&a)return y(),()=>k()},[j,a,y,k]),(0,w.jsx)(R.ItemSlot,{scope:o,id:h,focusable:a,active:l,children:(0,w.jsx)(s.V.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...f,ref:r,onMouseDown:(0,n.f)(e.onMouseDown,e=>{a?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,n.f)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,n.f)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=L(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=m.loop?U(n,r+1):n.slice(r+1)}setTimeout(()=>O(n))}}),children:"function"==typeof u?u({isCurrentTabStop:g,hasTabStop:null!=x}):u})})},"RovingFocusGroupItem")),_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function F(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function L(e,t,n){let r=F(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return _[r]}function O(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function U(e,t){return e.map((n,r)=>e[(t+r)%e.length])}x(F,"getDirectionAwareKey"),x(L,"getFocusIntent"),x(O,"focusFirst"),x(U,"wrapArray"),e.s(["M",0,T,"F",0,N,"B",0,P],842727)},975153,e=>{var t=e.i(456420);let n={name:"calendar-check",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],975153)},749803,e=>{var t=e.i(456420);let n={name:"chart-column",size:24,node:[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],aliases:["bar-chart-3"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],749803)},867927,e=>{var t=e.i(456420);let n={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],867927)},548161,e=>{var t=e.i(456420);let n={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],548161)},551757,e=>{var t=e.i(456420);let n={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],551757)},583967,e=>{var t=e.i(456420);let n={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],583967)},515745,446513,e=>{var t=e.i(456420);let n={name:"clipboard-paste",size:24,node:[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],515745);let o={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};o.node;let a=(0,t.f)(o);e.s(["f",0,a],446513)},508734,e=>{var t=e.i(456420);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],508734)},762368,e=>{var t=e.i(456420);let n={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],762368)},580860,e=>{var t=e.i(456420);let n={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],580860)},226091,e=>{var t=e.i(456420);let n={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],226091)},999092,e=>{var t=e.i(456420);let n={name:"languages",size:24,node:[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],999092)},21357,495178,79058,e=>{var t=e.i(456420);let n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],21357);var o=e.i(41931),a=e.i(983761),i=e.i(128093);let s=["browser","minimax","qwen","glm","stepfun","volcengine","volcengine-agent","openai"];function l(e){return"string"==typeof e&&s.includes(e)}s.filter(e=>"browser"!==e),e.s(["C",0,{minimax:{model:"speech-2.8-hd",voice:"male-qn-jingying"},qwen:{model:"qwen-audio-3.0-tts-plus",voice:"longanlufeng"},glm:{model:"glm-tts",voice:"xiaochen"},stepfun:{model:"stepaudio-2.5-tts",voice:"qingniandaxuesheng"},volcengine:{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},"volcengine-agent":{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},openai:{model:"gpt-4o-mini-tts",voice:"cedar"}},"r",0,{minimax:{apiKey:"https://platform.minimax.cn/docs/guides/quickstart-preparation",model:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http",voice:"https://platform.minimax.cn/docs/faq/system-voice-id",endpoint:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http"},qwen:{apiKey:"https://help.aliyun.com/zh/model-studio/token-plan-personal-quick-start",model:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide",voice:"https://help.aliyun.com/zh/model-studio/qwen-audio-tts-voice-list",endpoint:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide"},glm:{apiKey:"https://docs.bigmodel.cn/cn/guide/start/quick-start",model:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",voice:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",endpoint:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3"},stepfun:{apiKey:"https://platform.stepfun.com/docs/zh/step-plan/integrations/audio-api",model:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio",voice:"https://platform.stepfun.com/docs/zh/guides/developer/tts",endpoint:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio"},volcengine:{apiKey:"https://www.volcengine.com/docs/6561/196768",model:"https://www.volcengine.com/docs/6561/1598757",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://www.volcengine.com/docs/6561/1598757"},openai:{apiKey:"https://platform.openai.com/docs/quickstart",model:"https://developers.openai.com/api/docs/guides/text-to-speech",voice:"https://developers.openai.com/api/docs/guides/text-to-speech",endpoint:"https://developers.openai.com/api/docs/guides/text-to-speech"},"volcengine-agent":{apiKey:"https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh",model:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh"}},"D",0,{volcengine:"https://docs.volcengine.com/docs/ark/free-inference-quota?lang=zh"},"l",0,s,"E",0,function(e,t){if("volcengine"===e)return"https://openspeech.bytedance.com/api/v3/tts/unidirectional";if("volcengine-agent"===e)return"https://openspeech.bytedance.com/api/v3/plan/tts/unidirectional";if("openai"===e)return`${(t?.baseUrl||"https://api.openai.com/v1").replace(/\/+$/,"")}/audio/speech`;let{baseUrl:n}=(0,i.k)(e,t);if("minimax"===e)return`${n.replace(/\/+$/,"")}/t2a_v2`;if("glm"===e||"stepfun"===e)return`${n.replace(/\/+$/,"")}/audio/speech`;try{return`${new URL(n).origin}/api/v1/services/audio/tts/SpeechSynthesizer`}catch{return""}},"L",0,function(e,t){if("openai"===t){let t=e.openai?.instances?.find(t=>t.id===e.openai?.activeInstanceId);return t?{apiKey:t.apiKey,baseUrl:t.baseUrl}:void 0}return e[t]},"S",0,function(e){return"volcengine"===e||"openai"===e},"y",0,function(e){return"browser"!==e&&l(e)},"Z",0,l],495178);let c=null;function u(){return c??=o.k.get("/api/tts").then(e=>({mode:"cloud"===e.mode?"cloud":"browser",ttsMode:l(e.ttsMode)?e.ttsMode:null})).catch(()=>({mode:"browser",ttsMode:null}))}let d=null,f=!1;function p(){return"u"<typeof Audio?null:d??=new Audio}let h=new Map,m=(e,t)=>`${t}
2
- ${e}`;function g(e,t,n,r){return o.k.post("/api/tts/batch",{texts:e,language:t,...n?{regenerate:n}:{},...r?{errorItemId:r}:{}},{timeout:6e5,recoverable:!0}).then(({items:e})=>e.map(({id:e,version:t})=>`/api/tts/${e}?v=${t}`))}async function v(e,t,n){let r=await g(e,t,!0,n);e.forEach((e,n)=>h.set(m(e,t),Promise.resolve(r[n])))}e.s(["l",0,p,"v",0,function(){return u().then(e=>e.mode)},"h",0,function(){return f},"z",0,function(e,t){return o.k.post("/api/tts/status",{texts:e,language:t}).then(e=>!0===e.ready).catch(()=>!1)},"w",0,function(e,t,n){let r=[...new Set(e)].filter(e=>!h.has(m(e,t)));if(!r.length)return Promise.resolve();let o=g(r,t,!1,n);return r.forEach((e,n)=>{let r=m(e,t),a=o.then(e=>e[n]);a.catch(()=>h.delete(r)),h.set(r,a)}),o.then(()=>void 0)},"H",0,v,"U",0,function(e,t){let n=m(e,t),r=h.get(n);!r&&((r=o.k.post("/api/tts",{text:e,language:t},{timeout:12e4,recoverable:!0}).then(({id:e,version:t})=>`/api/tts/${e}?v=${t}`)).catch(()=>h.delete(n)),h.set(n,r));return r},"E",0,function(){u().then(({mode:e,ttsMode:t})=>{let n="browser"===e?"browser":t;n&&(0,a.E)(`tts:${n}`)&&(0,a.z)("tts_used",{mode:n})}).catch(()=>void 0)},"p",0,function(){let e=p();if(e&&!f){let t,n,r;f=!0,t=new DataView(new ArrayBuffer(1644)),(n=(e,n)=>[...n].forEach((n,r)=>t.setUint8(e+r,n.charCodeAt(0))))(0,"RIFF"),t.setUint32(4,1636,!0),n(8,"WAVE"),n(12,"fmt "),t.setUint32(16,16,!0),t.setUint16(20,1,!0),t.setUint16(22,1,!0),t.setUint32(24,8e3,!0),t.setUint32(28,16e3,!0),t.setUint16(32,2,!0),t.setUint16(34,16,!0),n(36,"data"),t.setUint32(40,1600,!0),r="",new Uint8Array(t.buffer).forEach(e=>{r+=String.fromCharCode(e)}),e.src=`data:audio/wav;base64,${btoa(r)}`,e.play().catch(()=>{f=!1})}}],79058)},77071,e=>{var t=e.i(456420);let n={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],77071)},741120,e=>{var t=e.i(456420);let n={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],741120)},395925,e=>{var t=e.i(456420);let n={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],395925)},980105,e=>{var t=e.i(456420);let n={name:"scan-text",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],980105)},328623,e=>{var t=e.i(456420);let n={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],328623)},853138,e=>{var t=e.i(456420);let n={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],853138)},725981,e=>{var t=e.i(456420);let n={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],725981)},901279,e=>{var t=e.i(456420);let n={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],901279)},534693,e=>{var t=e.i(456420);let n={name:"wand-sparkles",size:24,node:[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],aliases:["wand-2"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},994533,e=>{var t=e.i(534693);e.s(["f",()=>t.f])},263676,e=>{var t=e.i(456420);let n={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};n.node;let r=(0,t.f)(n);e.s(["X",0,r],263676)},522016,(e,t,n)=>{e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return v},useLinkStatus:function(){return b}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(190809),i=e.r(843476),s=a._(e.r(271645)),l=e.r(195057),c=e.r(8372),u=e.r(818581),d=e.r(718967),f=e.r(405550),p=e.r(388540),h=e.r(91949),m=e.r(573668),g=e.r(509396);function v(t){var n;let r,o,a,[v,b]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),w=(0,s.useRef)(null),{href:k,as:x,children:j,prefetch:E=null,passHref:C,replace:R,shallow:M,scroll:S,onClick:D,onMouseEnter:P,onTouchStart:I,legacyBehavior:z=!1,onNavigate:N,transitionTypes:A,ref:T,unstable_dynamicOnHover:_,...F}=t;r=j,z&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let L=s.default.useContext(c.AppRouterContext),O=!1!==E,U=!1===E?"none":!0===E?"full":"auto",$="none"!==U?"auto"===U?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,B="string"==typeof(n=x||k)?n:(0,l.formatUrl)(n);if(z){if(r?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=s.default.Children.only(r)}let q=z?o&&"object"==typeof o&&o.ref:T,V,K=s.default.useCallback(e=>(null!==L&&(w.current=(0,h.mountLinkInstance)(e,B,L,$,O,b,V)),()=>{w.current&&((0,h.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,h.unmountPrefetchableInstance)(e)}),[O,B,L,$,b,V]),H={ref:(0,u.useMergedRef)(K,q),onClick(t){z||"function"!=typeof D||D(t),z&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!L||t.defaultPrevented||function(t,n,r,o,a,i,s,l="none"){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(n)){o&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:d}=e.r(132916);d(n,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,r.current,s,l)}}(t,B,w,R,S,N,A,U)},onMouseEnter(e){z||"function"!=typeof P||P(e),z&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),L&&O&&(0,h.onNavigationIntent)(e.currentTarget,!0===_)},onTouchStart:function(e){z||"function"!=typeof I||I(e),z&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),L&&O&&(0,h.onNavigationIntent)(e.currentTarget,!0===_)}};return(0,d.isAbsoluteUrl)(B)?H.href=B:z&&!C&&("a"!==o.type||"href"in o.props)||(H.href=(0,f.addBasePath)(B)),a=z?s.default.cloneElement(o,H):(0,i.jsx)("a",{...F,...H,children:r}),(0,i.jsx)(y.Provider,{value:v,children:a})}let y=(0,s.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(y);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},818581,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return o}});let r=e.r(271645);function o(e,t){let n=(0,r.useRef)(null),o=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(n.current=a(e,r)),t&&(o.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},195057,(e,t,n)=>{e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(190809)._(e.r(998183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:n}=e,r=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||i.test(r))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${r}${c}${o}${u}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},573668,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(718967),o=e.r(652817);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},718967,(e,t,n)=>{e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return w},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return x}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function c(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&f(n))return r;if(!r)throw Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`);return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},772325,e=>{var t=e.i(722219);e.s(["z",0,t])},213056,e=>{var t=e.i(722219);e.s(["z",0,t])},282492,e=>{var t=e.i(722219);e.s(["z",0,t])},978056,e=>{var t=e.i(722219);e.s(["z",0,t])},411382,e=>{var t=e.i(722219);e.s(["z",0,t])},54105,e=>{var t=e.i(722219);e.s(["z",0,t])},999593,424553,e=>{var t=e.i(843476),n=e.i(257428),r=e.i(111110);function o(){let{t:e}=(0,r.b)();return(0,t.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,t.jsx)("ul",{className:"list-disc space-y-1 pl-5 text-muted-foreground",children:e.eula.summary.map(e=>(0,t.jsx)("li",{children:e},e))}),(0,t.jsx)("a",{href:"/eula",target:"_blank",rel:"noopener noreferrer",className:"inline-block text-primary hover:underline",children:e.eula.viewFull})]})}e.s(["f",0,o],424553),e.s(["f",0,function({checked:e,onCheckedChange:a,disabled:i}){let{t:s}=(0,r.b)();return(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:s.eula.title}),(0,t.jsx)(o,{}),(0,t.jsxs)("label",{className:"flex items-start gap-2 text-sm",children:[(0,t.jsx)(n.f,{id:"eula-consent",className:"mt-0.5",checked:e,disabled:i,onCheckedChange:e=>a(!0===e)}),(0,t.jsx)("span",{children:s.eula.consentLabel})]})]})}],999593)},515288,e=>{var t=e.i(843476),n=e.i(975157);e.s(["N",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,n.f)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})},"O",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,n.f)("px-6",e),...r})},"u",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,n.f)("text-muted-foreground text-sm",e),...r})},"Y",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,n.f)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})},"v",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,n.f)("leading-none font-semibold",e),...r})}])},257428,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(820783),o=e.i(30030),a=e.i(981140),i=e.i(369340),s=e.i(635804),l=e.i(296626),c=e.i(248425),u=Object.defineProperty,d=(e,t)=>u(e,"name",{value:t,configurable:!0}),f="Checkbox",[p,h]=(0,o.f)(f),[m,g]=p(f);function v(e){let{__scopeCheckbox:r,checked:o,children:a,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:d,required:p,value:h="on",internal_do_not_use_render:g}=e,[v,y]=(0,i.f)({prop:o,defaultProp:s??!1,onChange:d,caller:f}),[b,w]=n.useState(null),[k,E]=n.useState(null),[C,R]=n.useState(null),M=!b||!!c||!!b.closest("form"),S={checked:v,disabled:l,setChecked:y,control:b,setControl:w,name:u,form:c,value:h,userClick:C,onUserClick:R,required:p,defaultChecked:!j(s)&&s,isFormControl:M,bubbleInput:k,setBubbleInput:E};return(0,t.jsx)(m,{scope:r,...S,children:x(g)?g(S):a})}d(v,"CheckboxProvider");var y=n.forwardRef(d(function({__scopeCheckbox:e,onKeyDown:o,onClick:i,...s},l){let{control:u,value:f,disabled:p,checked:h,required:m,setControl:v,setChecked:y,onUserClick:b,isFormControl:w,bubbleInput:k}=g("CheckboxTrigger",e),x=(0,r.f)(l,v),C=n.useRef(h);return n.useEffect(()=>{let e=u?.form;if(e){let t=d(()=>y(C.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,y]),(0,t.jsx)(c.V.button,{type:"button",role:"checkbox","aria-checked":j(h)?"mixed":h,"aria-required":m,"data-state":E(h),"data-disabled":p?"":void 0,disabled:p,value:f,...s,ref:x,onKeyDown:(0,a.f)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.f)(i,e=>{let t=e.isPropagationStopped();b({requestedChecked:!!j(h)||!h,hasConsumerStoppedPropagation:t}),y(e=>!!j(e)||!e),k&&w&&!t&&e.stopPropagation()})})},"CheckboxTrigger")),b=n.forwardRef(d(function(e,n){let{__scopeCheckbox:r,name:o,checked:a,defaultChecked:i,required:s,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return(0,t.jsx)(v,{__scopeCheckbox:r,checked:a,defaultChecked:i,disabled:l,required:s,onCheckedChange:u,name:o,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{...f,ref:n,__scopeCheckbox:r}),e&&(0,t.jsx)(k,{__scopeCheckbox:r})]})})},"Checkbox")),w=n.forwardRef(d(function(e,n){let{__scopeCheckbox:r,forceMount:o,...a}=e,i=g("CheckboxIndicator",r);return(0,t.jsx)(l.f,{present:o||j(i.checked)||!0===i.checked,children:(0,t.jsx)(c.V.span,{"data-state":E(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:n,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),k=n.forwardRef(d(function({__scopeCheckbox:e,onClick:o,...i},l){let{control:u,userClick:d,checked:f,defaultChecked:p,required:h,disabled:m,name:v,value:y,form:b,bubbleInput:w,setBubbleInput:k}=g("CheckboxBubbleInput",e),x=(0,r.f)(l,k),E=(0,s.f)(u),C=n.useRef(!1),R=n.useRef(f),M=n.useRef(d),S=n.useRef(null);n.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(!e)return;let t=R.current!==f;R.current=f;let n=null!==d&&d!==M.current;if(M.current=d,n)S.current=t?null:d,t&&(w.indeterminate=j(f),e.call(w,!j(f)&&f)),w.dispatchEvent(new Event("click",{bubbles:!d.hasConsumerStoppedPropagation}));else if(t){let t=S.current;S.current=null;let n=t?.requestedChecked===f;C.current=!0,w.indeterminate=j(f),e.call(w,!j(f)&&f),w.dispatchEvent(new Event("click",{bubbles:!(n&&t.hasConsumerStoppedPropagation)})),C.current=!1}},[w,f,d]);let D=n.useRef(!j(f)&&f);return(0,t.jsx)(c.V.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??D.current,required:h,disabled:m,name:v,value:y,form:b,...i,tabIndex:-1,ref:x,onClick:(0,a.f)(o,e=>{C.current&&e.stopPropagation()}),style:{...i.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function x(e){return"function"==typeof e}function j(e){return"indeterminate"===e}function E(e){return j(e)?"indeterminate":e?"checked":"unchecked"}d(x,"isFunction"),d(j,"isIndeterminate"),d(E,"getState");var C=e.i(689664),R=e.i(975157);let M=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(b,{ref:r,className:(0,R.f)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...n,children:(0,t.jsx)(w,{className:(0,R.f)("flex items-center justify-center text-current"),children:(0,t.jsx)(C.f,{className:"h-4 w-4"})})}));M.displayName=b.displayName,e.s(["f",0,M],257428)},776639,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(981140),o=e.i(820783),a=e.i(30030),i=e.i(610772),s=e.i(369340),l=e.i(726330),c=e.i(765491),u=e.i(774606),d=e.i(296626),f=e.i(248425),p=e.i(303536),h=e.i(934620),m=e.i(985369),g=e.i(186312),v=e.i(991918),y=Object.defineProperty,b=(e,t)=>y(e,"name",{value:t,configurable:!0}),w="Dialog",[k,x]=(0,a.f)(w),[j,E]=k(w),C=b(e=>{let{__scopeDialog:r,children:o,open:a,defaultOpen:l,onOpenChange:u,modal:d=!0}=e,f=n.useRef(null),p=n.useRef(null),{nodes:h,registry:m}=(0,c.D)(),[g,v]=(0,s.f)({prop:a,defaultProp:l??!1,onChange:u,caller:w}),[y,b]=n.useState(0),[k,x]=n.useState(0);return(0,t.jsx)(j,{scope:r,triggerRef:f,contentRef:p,contentId:(0,i.f)(),titleId:(0,i.f)(),descriptionId:(0,i.f)(),titlePresent:y>0,descriptionPresent:k>0,setTitleCount:b,setDescriptionCount:x,open:g,onOpenChange:v,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),modal:d,branchNodes:h,branchRegistry:m,children:o})},"Dialog"),R=n.forwardRef(b(function(e,n){let{__scopeDialog:a,...i}=e,s=E("DialogTrigger",a),l=(0,o.f)(n,s.triggerRef);return(0,t.jsx)(f.V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":V(s.open),...i,ref:l,onClick:(0,r.f)(e.onClick,s.onOpenToggle)})},"DialogTrigger")),M="DialogPortal",[S,D]=k(M,{forceMount:void 0}),P=b(e=>{let{__scopeDialog:r,forceMount:o,children:a,container:i}=e,s=E(M,r);return(0,t.jsx)(S,{scope:r,forceMount:o,children:n.Children.map(a,e=>(0,t.jsx)(d.f,{present:o||s.open,children:(0,t.jsx)(u.f,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),I="DialogOverlay",z=n.forwardRef(b(function(e,n){let r=D(I,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=E(I,e.__scopeDialog);return i.modal?(0,t.jsx)(d.f,{present:o||i.open,children:(0,t.jsx)(A,{...a,ref:n})}):null},"DialogOverlay")),N=(0,v.B)("DialogOverlay.RemoveScroll"),A=n.forwardRef(b(function(e,r){let{__scopeDialog:a,...i}=e,s=E(I,a),c=(0,l.y)(),u=(0,o.f)(r,c);return(0,t.jsx)(m.f,{as:N,allowPinchZoom:!0,shards:n.useMemo(()=>[s.contentRef,...s.branchNodes.map(e=>({current:e}))],[s.contentRef,s.branchNodes]),children:(0,t.jsx)(f.V.div,{"data-state":V(s.open),...i,ref:u,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),T="DialogContent",_=n.forwardRef(b(function(e,n){let r=D(T,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=E(T,e.__scopeDialog);return(0,t.jsx)(d.f,{present:o||i.open,children:i.modal?(0,t.jsx)(F,{...a,ref:n}):(0,t.jsx)(L,{...a,ref:n})})},"DialogContent")),F=n.forwardRef(b(function(e,a){let i=E(T,e.__scopeDialog),s=n.useRef(null),l=(0,o.f)(a,i.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,g.f)(e)},[]),(0,t.jsx)(O,{...e,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:(0,r.f)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.f)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,r.f)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),L=n.forwardRef(b(function(e,r){let o=E(T,e.__scopeDialog),a=n.useRef(!1),i=n.useRef(!1);return(0,t.jsx)(O,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||o.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let n=t.target;o.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),O=n.forwardRef(b(function(e,n){let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,"aria-describedby":s,children:u,...d}=e,f=E(T,r);return(0,p.f)(),(0,t.jsx)(c.l,{registry:f.branchRegistry,children:(0,t.jsx)(c.v,{asChild:!0,loop:!0,trapped:o,branches:f.branchNodes,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,t.jsx)(l.V,{role:"dialog",id:f.contentId,"aria-labelledby":f.titlePresent?f.titleId:void 0,"aria-describedby":f.descriptionPresent?q(s,f.descriptionId):s,"data-state":V(f.open),...d,ref:n,deferPointerDownOutside:!0,onDismiss:()=>f.onOpenChange(!1),children:u})})})},"DialogContentImpl")),U=n.forwardRef(b(function(e,n){let{__scopeDialog:r,...o}=e,a=E("DialogTitle",r),{setTitleCount:i}=a;return(0,h.f)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,t.jsx)(f.V.h2,{id:a.titleId,...o,ref:n})},"DialogTitle")),$=n.forwardRef(b(function(e,n){let{__scopeDialog:r,...o}=e,a=E("DialogDescription",r),{setDescriptionCount:i}=a;return(0,h.f)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,t.jsx)(f.V.p,{id:a.descriptionId,...o,ref:n})},"DialogDescription")),B=n.forwardRef(b(function(e,n){let{__scopeDialog:o,...a}=e,i=E("DialogClose",o);return(0,t.jsx)(f.V.button,{type:"button",...a,ref:n,onClick:(0,r.f)(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function q(...e){let t=new Set;for(let n of e)if("string"==typeof n)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function V(e){return e?"open":"closed"}b(q,"concatAriaDescribedby"),b(V,"getState");var K=e.i(263676),H=e.i(975157);let G=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(z,{ref:r,className:(0,H.f)("fixed inset-0 z-50 bg-black/50 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));G.displayName=z.displayName;let W=n.forwardRef(({className:e,children:n,...r},o)=>(0,t.jsxs)(P,{children:[(0,t.jsx)(G,{}),(0,t.jsxs)(_,{ref:o,onPointerDownOutside:e=>{e.preventDefault()},className:(0,H.f)("fixed inset-0 m-auto h-fit z-50 grid w-[calc(100%-2rem)] max-w-lg gap-4 rounded-2xl border bg-card p-6 shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...r,children:[n,(0,t.jsxs)(B,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(K.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));W.displayName=_.displayName;let X=({className:e,...n})=>(0,t.jsx)("div",{className:(0,H.f)("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});X.displayName="DialogHeader";let Z=({className:e,...n})=>(0,t.jsx)("div",{className:(0,H.f)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});Z.displayName="DialogFooter";let J=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(U,{ref:r,className:(0,H.f)("text-lg font-semibold leading-none tracking-tight",e),...n}));J.displayName=U.displayName;let Q=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)($,{ref:r,className:(0,H.f)("text-sm text-muted-foreground",e),...n}));Q.displayName=$.displayName,e.s(["N",0,C,"d",0,W,"C",0,Q,"c",0,Z,"s",0,X,"F",0,J,"a",0,R],776639)},110204,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(248425),o=Object.defineProperty,a=n.forwardRef(o(function(e,n){return(0,t.jsx)(r.V.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0})),i=e.i(975157);e.s(["f",0,function({className:e,...n}){return(0,t.jsx)(a,{"data-slot":"label",className:(0,i.f)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}],110204)},699375,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(981140),o=e.i(820783),a=e.i(30030),i=e.i(369340),s=e.i(635804),l=e.i(248425),c=Object.defineProperty,u=(e,t)=>c(e,"name",{value:t,configurable:!0}),d="Switch",[f,p]=(0,a.f)(d),[h,m]=f(d);function g(e){let{__scopeSwitch:r,checked:o,children:a,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:f,required:p,value:m="on",internal_do_not_use_render:g}=e,[v,y]=(0,i.f)({prop:o,defaultProp:s??!1,onChange:f,caller:d}),[b,w]=n.useState(null),[x,j]=n.useState(null),[E,C]=n.useState(null),R=!b||!!c||!!b.closest("form"),M={checked:v,setChecked:y,disabled:l,control:b,setControl:w,name:u,form:c,value:m,userClick:E,onUserClick:C,required:p,defaultChecked:s,isFormControl:R,bubbleInput:x,setBubbleInput:j};return(0,t.jsx)(h,{scope:r,...M,children:k(g)?g(M):a})}u(g,"SwitchProvider");var v=n.forwardRef(u(function({__scopeSwitch:e,onClick:a,...i},s){let{control:c,form:d,value:f,disabled:p,checked:h,required:g,setControl:v,setChecked:y,onUserClick:b,isFormControl:w,bubbleInput:k}=m("SwitchTrigger",e),j=(0,o.f)(s,v),E=n.useRef(h);return n.useEffect(()=>{let e=d?c?.ownerDocument.getElementById(d):c?.form;if(e instanceof HTMLFormElement){let t=u(()=>y(E.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,d,y]),(0,t.jsx)(l.V.button,{type:"button",role:"switch","aria-checked":h,"aria-required":g,"data-state":x(h),"data-disabled":p?"":void 0,disabled:p,value:f,...i,ref:j,onClick:(0,r.f)(a,e=>{let t=e.isPropagationStopped();b({requestedChecked:!h,hasConsumerStoppedPropagation:t}),y(e=>!e),k&&w&&!t&&e.stopPropagation()})})},"SwitchTrigger")),y=n.forwardRef(u(function(e,n){let{__scopeSwitch:r,name:o,checked:a,defaultChecked:i,required:s,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return(0,t.jsx)(g,{__scopeSwitch:r,checked:a,defaultChecked:i,disabled:l,required:s,onCheckedChange:u,name:o,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{...f,ref:n,__scopeSwitch:r}),e&&(0,t.jsx)(w,{__scopeSwitch:r})]})})},"Switch")),b=n.forwardRef(u(function(e,n){let{__scopeSwitch:r,...o}=e,a=m("SwitchThumb",r);return(0,t.jsx)(l.V.span,{"data-state":x(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})},"SwitchThumb")),w=n.forwardRef(u(function({__scopeSwitch:e,onClick:a,...i},c){let{control:u,userClick:d,checked:f,defaultChecked:p,required:h,disabled:g,name:v,value:y,form:b,bubbleInput:w,setBubbleInput:k}=m("SwitchBubbleInput",e),x=(0,o.f)(c,k),j=(0,s.f)(u),E=n.useRef(!1),C=n.useRef(f),R=n.useRef(d),M=n.useRef(null);n.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(!e)return;let t=C.current!==f;C.current=f;let n=null!==d&&d!==R.current;if(R.current=d,n)M.current=t?null:d,t&&e.call(w,f),w.dispatchEvent(new Event("click",{bubbles:!d.hasConsumerStoppedPropagation}));else if(t){let t=M.current;M.current=null;let n=t?.requestedChecked===f;E.current=!0,e.call(w,f),w.dispatchEvent(new Event("click",{bubbles:!(n&&t.hasConsumerStoppedPropagation)})),E.current=!1}},[w,f,d]);let S=n.useRef(f);return(0,t.jsx)(l.V.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??S.current,required:h,disabled:g,name:v,value:y,form:b,...i,tabIndex:-1,ref:x,onClick:(0,r.f)(a,e=>{E.current&&e.stopPropagation()}),style:{...i.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function k(e){return"function"==typeof e}function x(e){return e?"checked":"unchecked"}u(k,"isFunction"),u(x,"getState");var j=e.i(975157);let E=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(y,{className:(0,j.f)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...n,ref:r,children:(0,t.jsx)(b,{className:(0,j.f)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));E.displayName=y.displayName,e.s(["f",0,E],699375)},677572,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(981140),o=e.i(30030),a=e.i(842727),i=e.i(296626),s=e.i(248425),l=e.i(586318),c=e.i(369340),u=e.i(610772),d=Object.defineProperty,f=(e,t)=>d(e,"name",{value:t,configurable:!0}),p="Tabs",[h,m]=(0,o.f)(p,[a.B]),g=(0,a.B)(),[v,y]=h(p),b=n.forwardRef(f(function(e,n){let{__scopeTabs:r,value:o,onValueChange:a,defaultValue:i,orientation:d="horizontal",dir:f,activationMode:h="automatic",...m}=e,g=(0,l.f)(f),[y,b]=(0,c.f)({prop:o,onChange:a,defaultProp:i??"",caller:p});return(0,t.jsx)(v,{scope:r,baseId:(0,u.f)(),value:y,onValueChange:b,orientation:d,dir:g,activationMode:h,children:(0,t.jsx)(s.V.div,{dir:g,"data-orientation":d,...m,ref:n})})},"Tabs")),w=n.forwardRef(f(function(e,n){let{__scopeTabs:r,loop:o=!0,...i}=e,l=y("TabsList",r),c=g(r);return(0,t.jsx)(a.F,{asChild:!0,...c,orientation:l.orientation,dir:l.dir,loop:o,children:(0,t.jsx)(s.V.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:n})})},"TabsList")),k=n.forwardRef(f(function(e,n){let{__scopeTabs:o,value:i,disabled:l=!1,...c}=e,u=y("TabsTrigger",o),d=g(o),f=j(u.baseId,i),p=E(u.baseId,i),h=i===u.value;return(0,t.jsx)(a.M,{asChild:!0,...d,focusable:!l,active:h,children:(0,t.jsx)(s.V.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:f,...c,ref:n,onMouseDown:(0,r.f)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():(e.currentTarget.focus(),u.onValueChange(i))}),onKeyDown:(0,r.f)(e.onKeyDown,e=>{!l&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&u.onValueChange(i)}),onFocus:(0,r.f)(e.onFocus,()=>{let e="manual"!==u.activationMode;h||l||!e||u.onValueChange(i)})})})},"TabsTrigger")),x=n.forwardRef(f(function(e,r){let{__scopeTabs:o,value:a,forceMount:l,children:c,...u}=e,d=y("TabsContent",o),f=j(d.baseId,a),p=E(d.baseId,a),h=a===d.value,m=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(i.f,{present:l||h,children:({present:n})=>(0,t.jsx)(s.V.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!n,id:p,tabIndex:0,...u,ref:r,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&c})})},"TabsContent"));function j(e,t){return`${e}-trigger-${t}`}function E(e,t){return`${e}-content-${t}`}f(j,"makeTriggerId"),f(E,"makeContentId");var C=e.i(975157);let R=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(w,{ref:r,className:(0,C.f)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...n}));R.displayName=w.displayName;let M=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(k,{ref:r,className:(0,C.f)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...n}));M.displayName=k.displayName;let S=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(x,{ref:r,className:(0,C.f)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n}));S.displayName=x.displayName,e.s(["i",0,b,"S",0,S,"U",0,R,"k",0,M],677572)},637691,e=>{e.s(["f",0,"https://github.com/margrop/wrong-notebook"])},359260,e=>{async function t(e,t){{let n=window.__wrongNotebookSaveAndWait;if(n){let r=await n(e,t);if(!r.saved&&!r.canceled)throw Error(r.message||"Download failed");return r.saved}}let n=window.URL.createObjectURL(e),r=document.createElement("a");return r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n),!0}async function n(e,n){let r=await fetch(e);if(!r.ok)throw Error((await r.json().catch(()=>({}))).message||"Download failed");let o=await r.blob(),a=r.headers.get("Content-Disposition")?.match(/filename="(.+)"/);return t(o,a?a[1]:n)}e.s(["P",0,t,"f",0,n])},901219,e=>{var t=e.i(271645),n=e.i(127175);e.s(["a",0,function(e,r){var o;let[a,i]=(0,t.useState)(null),[s,l]=(0,t.useState)(!1),c=(0,t.useRef)(e),u=(0,t.useRef)(r);(0,t.useEffect)(()=>{c.current=e,u.current=r},[e,r]);let d=(0,t.useCallback)(async()=>{let e=c.current;if(e&&("u"<typeof document||"hidden"!==document.visibilityState))try{let t=await (0,n.h)(e);c.current===e&&(i(t),l(!1),u.current?.(t))}catch(t){t?.status===404&&c.current===e&&l(!0)}},[]);(0,t.useEffect)(()=>{if(!e)return;let t=setTimeout(d,0),r=(0,n.E)(d);return()=>{clearTimeout(t),r()}},[e,d]);let f="analyzing"===(o=a?.status)||"saving"===o;return(0,t.useEffect)(()=>{if(!e||!f)return;let t=setInterval(d,2500);return()=>clearInterval(t)},[e,f,d]),{task:a&&a.id===e?a:null,notFound:s,refresh:d,setTask:i}},"b",0,function(e=!0){let[r,o]=(0,t.useState)(null),[a,i]=(0,t.useState)(!1),s=(0,t.useCallback)(async()=>{if("u"<typeof document||"hidden"!==document.visibilityState)try{o(await (0,n.B)()),i(!1)}catch{i(!0)}},[]);(0,t.useEffect)(()=>{if(!e)return;let t=setTimeout(s,0),r=(0,n.E)(s);return window.addEventListener(n.y,s),()=>{clearTimeout(t),r(),window.removeEventListener(n.y,s)}},[e,s]);let l=(r?.activeCount??0)>0;return(0,t.useEffect)(()=>{if(!e)return;let t=setInterval(s,l?2500:3e4);return()=>clearInterval(t)},[e,l,s]),{data:r,error:a,refresh:s}}])},145447,e=>{var t=e.i(271645);let n=()=>()=>{};e.s(["f",0,function(){return(0,t.useSyncExternalStore)(n,()=>!0,()=>!1)}])},132411,954846,e=>{let t,n,r,o,a,i,s,l,c;var u=e.i(271645),d=e.i(41931);let f=globalThis,p=f.__backgroundTaskStore??=(t=[],n=new Set,r=!1,o=null,a=null,i=(e=!0)=>o||(e&&"u">typeof document&&"hidden"===document.visibilityState?Promise.resolve():o=(async()=>{try{for(let e of(t=(await d.k.get("/api/tasks")).tasks,n))e(t);s()}catch{}finally{o=null}})()),s=()=>{a&&clearInterval(a),a=setInterval(()=>void i(),t.some(e=>"running"===e.status)?3e3:15e3)},l=()=>{!r&&(r=!0,i().then(s).catch(()=>void 0),"u">typeof document&&document.addEventListener("visibilitychange",c))},c=()=>{"visible"===document.visibilityState&&i().then(s).catch(()=>void 0)},{getSnapshot:()=>t,refresh:async()=>{l(),await i(!1),s()},subscribe:e=>(n.add(e),l(),()=>{n.delete(e)})});e.s(["f",0,p],954846),e.s(["f",0,function(e){let[t,n]=(0,u.useState)(()=>p.getSnapshot());return(0,u.useEffect)(()=>{if(e)return p.subscribe(n)},[e]),{running:e?t.find(t=>"running"===t.status&&t.target===e)??null:null,refresh:()=>p.refresh()}}],132411)},127175,e=>{var t=e.i(41931);let n="wrong-notebook:import-tasks-changed";function r(){window.dispatchEvent(new Event(n))}function o(){let e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}async function a(e,n=o()){let i;for(let o=0;o<3;o++)try{let{task:o}=await t.k.post("/api/import-tasks",{...e,clientRequestId:n,subjectId:e.subjectId||void 0,targetSubjectId:e.targetSubjectId||void 0,paperLevel:e.paperLevel||void 0},{timeout:12e4});return r(),o}catch(e){if(i=e,!function(e){let t=e?.status;return void 0===t||408===t||502===t||503===t||504===t}(e)||2===o)break;await new Promise(e=>setTimeout(e,1e3*(o+1)))}throw i}async function i(e,n={}){let r=n.image?"?include=image":"",{task:o}=await t.k.get(`/api/import-tasks/${encodeURIComponent(e)}${r}`);return o}async function s(e,n){let o=await t.k.post(`/api/import-tasks/${encodeURIComponent(e)}/confirm`,n);return r(),o}async function l(e){let{task:n}=await t.k.post(`/api/import-tasks/${encodeURIComponent(e)}/retry`,{});return r(),n}async function c(e){await t.k.post(`/api/import-tasks/${encodeURIComponent(e)}/read`,{}),r()}async function u(e){await t.k.delete(`/api/import-tasks/${encodeURIComponent(e)}`),r()}e.s(["y",0,n,"I",0,s,"S",0,a,"x",0,u,"h",0,i,"B",0,function(){return t.k.get("/api/import-tasks")},"N",0,c,"c",0,o,"P",0,r,"E",0,function(e){let t=()=>{"visible"===document.visibilityState&&e()},n=t=>{t.persisted&&e()};return document.addEventListener("visibilitychange",t),window.addEventListener("focus",e),window.addEventListener("pageshow",n),window.addEventListener("online",e),()=>{document.removeEventListener("visibilitychange",t),window.removeEventListener("focus",e),window.removeEventListener("pageshow",n),window.removeEventListener("online",e)}},"R",0,l])},905110,e=>{let t=["new","reviewing","mastered"];e.s(["z",0,50,"o",0,100,"P",0,1,"m",0,function(e,t=50){return"number"==typeof e&&e>=t/100},"A",0,function(e){return"string"==typeof e&&t.includes(e)}])}])})();