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 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,198591,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(618566),s=e.i(519455),l=e.i(393842),i=e.i(86963),r=e.i(77071),o=e.i(456420);let c={name:"pencil",size:24,node:[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};c.node;let d=(0,o.f)(c);var u=e.i(759659),m=e.i(522016);let h={name:"git-compare-arrows",size:24,node:[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]};h.node;let p=(0,o.f)(h);var g=e.i(444594),x=e.i(218964),f=e.i(77043),b=e.i(566595),j=e.i(666696),k=e.i(716327);let v={name:"funnel",size:24,node:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],aliases:["filter"]};v.node;let y=(0,o.f)(v);var w=e.i(755146),S=e.i(111110);function N({mastery:e,timeRange:a,onMasteryChange:n,onTimeRangeChange:l}){let{t:i}=(0,S.b)(),r=[{value:"all",label:i.filter.all||"All"},{value:"new",label:i.filter.review||"To Review"},{value:"reviewing",label:i.filter.reviewing||"Reviewing"},{value:"mastered",label:i.filter.mastered||"Mastered"}],o=[{value:"all",label:i.filter.allTime||"All Time"},{value:"week",label:i.filter.lastWeek||"Last Week"},{value:"month",label:i.filter.lastMonth||"Last Month"}];return(0,t.jsxs)(w.G,{children:[(0,t.jsx)(w.X,{asChild:!0,children:(0,t.jsxs)(s.f,{variant:"outline",size:"sm",className:"h-10",children:[(0,t.jsx)(y,{className:"mr-2 h-4 w-4"}),i.notebook.filter,(0,t.jsx)(k.f,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsxs)(w.L,{align:"end",className:"w-48",children:[(0,t.jsx)(w.B,{children:i.filter.masteryStatus||"Mastery Status"}),r.map(({value:a,label:s})=>(0,t.jsxs)(w.r,{onClick:()=>n(a),children:[e===a&&"✓ ",s]},a)),(0,t.jsx)(w.U,{}),(0,t.jsx)(w.B,{children:i.filter.timeRange||"Time Range"}),o.map(({value:e,label:n})=>(0,t.jsxs)(w.r,{onClick:()=>l(e),children:[a===e&&"✓ ",n]},e))]})]})}var C=e.i(470279);function T({value:e,onChange:a}){let{t:n}=(0,S.b)(),{groups:l,loading:i}=(0,C.f)(),r=l.filter(e=>e.isActive);return i?null:(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(s.f,{variant:"all"===e?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>a("all"),children:n.filter.all||"All"}),r.map(n=>(0,t.jsx)(s.f,{variant:e===n.id?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>a(n.id),children:n.name},n.id))]})}var D=e.i(401280);function q({value:e,onChange:a}){let{t:n}=(0,S.b)(),l=t=>{a(e.includes(t)?e.filter(e=>e!==t):[...e,t])};return(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[D.V.map(a=>(0,t.jsx)(s.f,{type:"button",variant:e.includes(a)?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>l(a),children:n.questionType.names[a]||a},a)),(0,t.jsx)(s.f,{type:"button",variant:e.includes(D.O)?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>l(D.O),children:n.questionType.notSet})]})}let A={name:"arrow-right-left",size:24,node:[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]};A.node;let E=(0,o.f)(A),P={name:"file-braces",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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};P.node;let R=(0,o.f)(P);var $=e.i(263676),F=e.i(257428),M=e.i(776639),I=e.i(185592),z=e.i(359260),L=e.i(294114),J=e.i(201276),O=e.i(303163),V=e.i(974881);let U=/^data:image\/(png|jpeg|jpg|webp);base64,(.+)$/;async function H(t,a){let{Document:n,Packer:s}=await e.A(181571),l=new n({sections:[{children:function(e,t){let a,n,s,l=t.includeAnswers??!0,i=t.includeImages??!1,r=t.maxImageWidthPx??480,o=[];t.title&&o.push(new V.Paragraph({heading:V.HeadingLevel.HEADING_1,alignment:V.AlignmentType.CENTER,children:[new V.TextRun(t.title)]}));let c=(n=[],s=null,e.forEach((e,t)=>{let l=null;if(e.section?.trim())l=e.section.trim();else{var i;let t;e.questionType?.trim()&&(i=e.questionType.trim(),l=(t=(0,D.P)(i))?D.H[t]:i)}s&&a===l||(s={heading:l,items:[]},n.push(s),a=l),s.items.push({question:e,number:t+1})}),n),d=c.some(e=>null!==e.heading),u=0;for(let e of c){if(d&&null!==e.heading){var m,h;o.push(new V.Paragraph({heading:V.HeadingLevel.HEADING_2,children:[new V.TextRun((m=u,h=e.heading,/^(第[一二三四五六七八九十百千零\d]+(部分|大题|节)|[一二三四五六七八九十]{1,3}、|(Part|Section)\s+[A-Z0-9IVX]+\b)/i.test(h)?h:`第${function e(t){let a=["零","一","二","三","四","五","六","七","八","九"];if(t<=0)return String(t);if(t<10)return a[t];if(t<100){let e=Math.floor(t/10),n=t%10;return(e>1?a[e]:"")+"十"+(n>0?a[n]:"")}if(t<1e3){let n=Math.floor(t/100),s=t%100;return 0===s?a[n]+"百":s<10?a[n]+"百零"+a[s]:s<20?a[n]+"百一"+e(s):a[n]+"百"+e(s)}let n=Math.floor(t/1e3),s=t%1e3;return a[n]+"千"+(s>0?e(s):"")}(m+1)}大题 ${h}`))]})),u+=1}for(let{question:t,number:a}of e.items)if((t.text??"").replace(/\r\n?/g,"\n").split("\n").forEach((e,t)=>{o.push(new V.Paragraph({children:[new V.TextRun(0===t?`${a}. ${e}`:e)]}))}),i&&t.images?.length)for(let e of t.images){let t=function(e){let t,a=e.match(U);if(!a)return null;try{let e=atob(a[2]);t=new Uint8Array(e.length);for(let a=0;a<e.length;a++)t[a]=e.charCodeAt(a)}catch{return null}let n=function(e){if(e.length>=24&&137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(16,!1),n=t.getUint32(20,!1);return a>0&&n>0?{width:a,height:n}:null}if(e.length>=4&&255===e[0]&&216===e[1]){let t=2;for(;t+9<e.length;){if(255!==e[t]){t++;continue}let a=e[t+1];if(a>=192&&a<=207&&196!==a&&200!==a&&204!==a){let a=new DataView(e.buffer,e.byteOffset,e.byteLength),n=a.getUint16(t+5,!1),s=a.getUint16(t+7,!1);if(s>0&&n>0)return{width:s,height:n};break}let n=new DataView(e.buffer,e.byteOffset,e.byteLength).getUint16(t+2,!1);if(n<2)break;t+=2+n}}return null}(t);if(!n)return null;let s=a[1].toLowerCase();return"webp"===s?null:{bytes:t,type:"png"===s?"png":"jpg",widthPx:n.width,heightPx:n.height}}(e.dataUrl);if(!t)continue;let a=function(e,t,a){if(e<=a)return{width:e,height:t};let n=Math.max(1,Math.round(t*a/e));return{width:a,height:n}}(t.widthPx,t.heightPx,r);o.push(new V.Paragraph({children:[new V.ImageRun({type:t.type,data:t.bytes,transformation:{width:a.width,height:a.height}})]}))}}if(l){let t=e.map((e,t)=>({question:e,number:t+1})).filter(({question:e})=>e.answer?.trim()||e.analysis?.trim());if(t.length>0)for(let{question:e,number:a}of(o.push(new V.Paragraph({heading:V.HeadingLevel.HEADING_2,children:[new V.TextRun("参考答案")]})),t)){let t=e.answer?.trim()??"",n=e.analysis?.trim()??"",s=n?`答案:${t} 解析:${n}`:`答案:${t}`;o.push(new V.Paragraph({children:[new V.TextRun(`${a}. ${s}`)]}))}}return o}(t,a)}]});return s.toBlob(l)}var B=e.i(407198);let _=/^([A-F])\s*[.、.::]\s*(.*)$/,K=["A","B","C","D","E","F"],G=[60,20,20,20,20,20,40,30,8,12,10,14,16,16,8];async function W(t){let a,{default:n}=await e.A(810068),{data:s,sheet:l,columns:i,stickyRowsCount:r}={data:[(a=function(e){let t=[B.I.slice()];for(let n of e){var a;let{text:e,options:s}=function(e){let t=e.split("\n"),a=[],n=t.length,s=t.length-1;for(;s>=0;){let e=t[s].trim();if(""===e){s--;continue}let l=e.match(_);if(!l)break;let i=K.indexOf(l[1]);if(-1===i)break;a.unshift({labelIndex:i,value:l[2]}),n=--s+1}for(let e=0;e<a.length;e++)if(a[e].labelIndex!==e){a.length=0,n=t.length;break}let l=t.slice(0,n);for(;l.length>0&&""===l[l.length-1].trim();)l.pop();return 0===a.length?{text:e,options:[]}:{text:l.join("\n"),options:a.map(e=>e.value)}}(n.text??"");t.push([e,s[0]??"",s[1]??"",s[2]??"",s[3]??"",n.answer??"",n.analysis??"",n.knowledgePoints?.length?n.knowledgePoints.join("、"):"","number"!=typeof(a=n.difficultyStars)||!Number.isInteger(a)||a<1||a>5?"":String(a),function(e){if(!e)return"";let t=(0,D.P)(e);return t?D.H[t]:e}(n.questionType),n.subject??"",n.gradeSemester??"",n.source??"",n.section??"",n.label??""])}return t}(t))[0].map(e=>({value:e,fontWeight:"bold",wrap:!0})),...a.slice(1).map(e=>e.map(e=>({value:e,wrap:!0})))],sheet:"题目",columns:G.map(e=>({width:e})),stickyRowsCount:1};return n(s,{sheet:l,columns:i,stickyRowsCount:r}).toBlob()}let X="error-list-export-format";function Y(){try{let e=window.localStorage.getItem(X);return"excel"===e||"word"===e||"json"===e?e:"json"}catch{return"json"}}function Q({open:e,onOpenChange:n,selectedIds:l}){let{t:i}=(0,S.b)(),[r,o]=(0,a.useState)(Y),[c,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!0),[h,p]=(0,a.useState)(""),[g,x]=(0,a.useState)(!1),f=async()=>{let e=await fetch("/api/error-items/export-questions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l,includeImages:c})});if(!e.ok)throw Error((await e.json().catch(()=>({}))).message||"Export failed");let t=Number(e.headers.get("X-Export-Skipped")??"0"),a=await e.json();return{questions:Array.isArray(a?.questions)?a.questions:[],skipped:t}},b=async()=>{if(0!==l.length){x(!0);try{let e=new Date().toISOString().slice(0,10).replace(/-/g,""),t=0,a=!1;if("excel"===r){let{questions:n,skipped:s}=await f();t=s;let l=await W(n);a=await (0,z.P)(l,`wrong-notebook-questions-${e}.xlsx`)}else if("word"===r){let{questions:n,skipped:s}=await f();t=s;let l=h.trim()||`${i.notebook.exportJsonDialog.defaultDocxTitle} ${new Date().toISOString().slice(0,10)}`,r=await H(n,{title:l,includeAnswers:u,includeImages:c});a=await (0,z.P)(r,`wrong-notebook-questions-${e}.docx`)}else{let n=await fetch("/api/error-items/export-questions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l,includeImages:c})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.message||"Export failed")}t=Number(n.headers.get("X-Export-Skipped")??"0");let s=await n.blob(),i=n.headers.get("Content-Disposition")?.match(/filename="(.+)"/);a=await (0,z.P)(s,i?i[1]:`wrong-notebook-questions-${e}.json`)}a&&t>0?(L.c.success(i.notebook.exportJsonDialog.success),L.c.warning(i.notebook.exportJsonDialog.emptyQuestionWarning.replace("{count}",String(t)))):a&&L.c.success(i.notebook.exportJsonDialog.success),a&&n(!1)}catch(e){J.V.error("[ErrorList]","Export questions failed",{error:e}),L.c.error(i.notebook.exportJsonDialog.failed+":"+(0,O.Z)(e))}finally{x(!1)}}};return(0,t.jsx)(M.N,{open:e,onOpenChange:n,children:(0,t.jsxs)(M.d,{children:[(0,t.jsxs)(M.s,{children:[(0,t.jsx)(M.F,{children:i.notebook.exportJsonDialog.title}),(0,t.jsx)(M.C,{children:i.notebook.exportJsonDialog.description})]}),(0,t.jsx)("div",{className:"py-2",children:(0,t.jsx)(I.f,{options:[{value:"json",label:i.notebook.exportJsonDialog.formatJson},{value:"excel",label:i.notebook.exportJsonDialog.formatExcel},{value:"word",label:i.notebook.exportJsonDialog.formatWord}],value:r,onChange:e=>{o(e);try{window.localStorage.setItem(X,e)}catch{}}})}),"excel"===r&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:i.notebook.exportJsonDialog.excelNote}),"word"===r&&(0,t.jsxs)("div",{className:"space-y-3 py-2",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{htmlFor:"docx-title",className:"text-sm",children:i.notebook.exportJsonDialog.docxTitleLabel}),(0,t.jsx)("input",{id:"docx-title",type:"text",value:h,onChange:e=>p(e.target.value),placeholder:`${i.notebook.exportJsonDialog.defaultDocxTitle} ${new Date().toISOString().slice(0,10)}`,className:"w-full rounded-md border bg-background px-3 py-2 text-sm"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(F.f,{id:"include-answers",checked:u,onCheckedChange:e=>m(!0===e)}),(0,t.jsx)("label",{htmlFor:"include-answers",className:"text-sm cursor-pointer",children:i.notebook.exportJsonDialog.includeAnswers})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(F.f,{id:"include-images",checked:c,onCheckedChange:e=>d(!0===e)}),(0,t.jsx)("label",{htmlFor:"include-images",className:"text-sm cursor-pointer",children:i.notebook.exportJsonDialog.includeImages})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:i.notebook.exportJsonDialog.wordNote})]}),"json"===r&&(0,t.jsxs)("div",{className:"flex items-center space-x-2 py-2",children:[(0,t.jsx)(F.f,{id:"include-images",checked:c,onCheckedChange:e=>d(!0===e)}),(0,t.jsx)("label",{htmlFor:"include-images",className:"text-sm cursor-pointer",children:i.notebook.exportJsonDialog.includeImages})]}),(0,t.jsxs)(M.c,{children:[(0,t.jsx)(s.f,{variant:"outline",onClick:()=>n(!1),disabled:g,children:i.notebook.exportJsonDialog.cancel}),(0,t.jsx)(s.f,{onClick:b,disabled:g||0===l.length,children:g?i.notebook.exportJsonDialog.exporting:i.notebook.exportJsonDialog.export})]})]})})}var Z=e.i(438465),ee=e.i(41931);function et({ids:e,open:n,onOpenChange:l,onMoved:i}){let{t:r}=(0,S.b)(),[o,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(!1),m=async()=>{if(o){u(!0);try{let{moved:t}=await ee.k.post("/api/error-items/batch-move",{ids:e,subjectId:o});L.c.success(r.notebook.moveSuccess.replace("{count}",String(t))),c(""),l(!1),i()}catch(e){J.V.error("[MoveToNotebookDialog]","Batch move failed",{error:e}),L.c.error(r.notebook.moveFailed)}finally{u(!1)}}};return(0,t.jsx)(M.N,{open:n,onOpenChange:l,children:(0,t.jsxs)(M.d,{children:[(0,t.jsxs)(M.s,{children:[(0,t.jsx)(M.F,{children:r.notebook.moveDialogTitle}),(0,t.jsx)(M.C,{children:r.notebook.moveDialogDescription.replace("{count}",String(e.length))})]}),(0,t.jsxs)("div",{className:"space-y-2 py-4",children:[(0,t.jsx)("label",{className:"text-sm text-muted-foreground",children:r.notebook.moveTargetLabel}),(0,t.jsx)(Z.f,{value:o||void 0,onChange:c})]}),(0,t.jsxs)(M.c,{children:[(0,t.jsx)(s.f,{variant:"outline",onClick:()=>l(!1),disabled:d,children:r.common.cancel}),(0,t.jsx)(s.f,{onClick:m,disabled:!o||d,children:d?r.notebook.moving:r.notebook.moveConfirm})]})]})})}var ea=e.i(632781),en=e.i(307364),es=e.i(511445);function el({ids:e}){let{t:n}=(0,S.b)(),[l,i]=(0,a.useState)(!1),[r,o]=(0,a.useState)(null),[c,d]=(0,a.useState)(!1),[u,h]=(0,a.useState)(null),[g,x]=(0,a.useState)(0),[f,b]=e,j=()=>{d(!0),o(null),h(null),x(e=>e+1)};return(0,a.useEffect)(()=>{if(!l||!f||!b)return;let e=!0;return ee.k.post("/api/error-items/similarity",{ids:[f,b]}).then(t=>{e&&o(t)}).catch(t=>{e&&(h("Question text is required for similarity comparison"===t?.data?.message?n.questionSimilarity.missingText:n.questionSimilarity.failed),J.V.error("[Similarity]","相似度比较失败",{error:t instanceof Error?t.message:String(t)}))}).finally(()=>{e&&d(!1)}),()=>{e=!1}},[l,f,b,g,n.questionSimilarity.failed,n.questionSimilarity.missingText]),(0,t.jsxs)(M.N,{open:l,onOpenChange:e=>{i(e),e&&j()},children:[(0,t.jsx)(M.a,{asChild:!0,children:(0,t.jsxs)(s.f,{variant:"outline",disabled:2!==e.length,title:n.questionSimilarity.selectTwo,children:[(0,t.jsx)(p,{className:"mr-2 h-4 w-4"}),n.questionSimilarity.title]})}),(0,t.jsxs)(M.d,{className:"w-[calc(100vw-2rem)] sm:max-w-3xl max-h-[85vh] overflow-y-auto",children:[(0,t.jsxs)(M.s,{children:[(0,t.jsx)(M.F,{children:n.questionSimilarity.title}),(0,t.jsx)(M.C,{children:n.questionSimilarity.description})]}),c&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",role:"status",children:[(0,t.jsx)(ea.f,{className:"h-4 w-4 animate-spin"}),n.common.loading]}),u&&(0,t.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:u}),u&&(0,t.jsx)(s.f,{variant:"outline",onClick:j,children:n.questionSimilarity.retry}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2 rounded-lg bg-muted p-4",role:"status",children:[(0,t.jsx)("p",{className:"text-sm",children:n.questionSimilarity.score}),(0,t.jsxs)("p",{className:"text-3xl font-bold tabular-nums",children:[Number((100*r.similarity).toFixed(4)),"%"]}),(0,t.jsx)("p",{className:"text-sm",children:n.questionSimilarity.threshold.replace("{threshold}",String(r.threshold))}),(0,t.jsx)("p",{className:"text-sm font-medium",children:r.duplicate?n.questionSimilarity.duplicate:n.questionSimilarity.different})]}),(0,t.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:r.items.map((e,a)=>(0,t.jsxs)("div",{className:"min-w-0 space-y-2 rounded-lg border p-3",children:[(0,t.jsxs)(m.default,{href:`/error-items/${e.id}`,className:"text-sm font-medium text-primary hover:underline",children:[n.questionSimilarity.question.replace("{index}",String(a+1))," · ",e.shortId||"-"]}),e.notebookName&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.notebookName}),(0,t.jsx)("div",{className:"max-h-56 overflow-auto text-sm",children:(0,t.jsx)(es.f,{content:e.questionText})})]},e.id))})]}),(0,t.jsx)(en.f,{onSaved:j})]})]})}function ei({selectedIds:e,deleting:n,onCancel:l,onDelete:i,onMoved:r}){let{t:o}=(0,S.b)(),[c,d]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:"pb-safe fixed bottom-0 left-0 right-0 z-50 border-t bg-card/95 p-4 shadow-lg backdrop-blur",children:[(0,t.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-1 text-sm text-muted-foreground",children:[(0,t.jsx)("p",{children:o.notebook.selectedCount.replace("{count}",String(e.length))}),(0,t.jsx)("p",{className:"text-xs",children:o.questionSimilarity.selectTwo})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(el,{ids:e}),(0,t.jsxs)(s.f,{variant:"outline",onClick:()=>d(!0),disabled:0===e.length,children:[(0,t.jsx)(R,{className:"mr-2 h-4 w-4"}),o.notebook.exportJson]}),(0,t.jsxs)(s.f,{variant:"outline",onClick:()=>h(!0),disabled:0===e.length,children:[(0,t.jsx)(E,{className:"mr-2 h-4 w-4"}),o.notebook.moveToNotebook]}),(0,t.jsxs)(s.f,{variant:"outline",onClick:l,children:[(0,t.jsx)($.X,{className:"mr-2 h-4 w-4"}),o.notebook.cancelSelect]}),(0,t.jsxs)(s.f,{variant:"destructive",onClick:i,disabled:0===e.length||n,children:[(0,t.jsx)(u.f,{className:"mr-2 h-4 w-4"}),o.notebook.deleteSelected]})]})]}),(0,t.jsx)(Q,{open:c,onOpenChange:d,selectedIds:e}),(0,t.jsx)(et,{ids:e,open:m,onOpenChange:h,onMoved:r})]})}var er=e.i(215519),eo=e.i(306831),ec=e.i(967489),ed=e.i(597138);let eu={1:["一年级"],2:["二年级"],3:["三年级"],4:["四年级"],5:["五年级"],6:["六年级"],7:["七年级上","七年级下","七年级"],8:["八年级上","八年级下","八年级"],9:["九年级上","九年级下","九年级"],10:["高一上","高一下","高一"],11:["高二上","高二下","高二"],12:["高三上","高三下","高三"],13:["大一","大一上","大一下"],14:["大二","大二上","大二下"],15:["大三","大三上","大三下"],16:["大四","大四上","大四下"]};function em({gradeSemester:e,tag:n,subjectName:s,tagSet:l="default",onFilterChange:i,className:r}){let{t:o}=(0,S.b)(),{timeZone:c}=(0,er.M)(),[d,u]=(0,a.useState)(e||""),[m,h]=(0,a.useState)(""),[p,g]=(0,a.useState)(n||""),[x,f]=(0,a.useState)([]),[b,j]=(0,a.useState)(!0),[k,v]=(0,a.useState)([]),[y,w]=(0,a.useState)(e);e!==y&&(w(e),void 0!==e&&u(e));let[N,C]=(0,a.useState)(n);n!==N&&(C(n),void 0!==n&&g(n||""));let T=(0,a.useCallback)((e,t)=>{let a=(0,eo.c)(new Date,c),n=a.getFullYear(),s=(a.getMonth()+1>=9?n:n-1)-t+1;return"primary"===e?s:"junior_high"===e?s+6:"senior_high"===e?s+9:"university"===e?s+12:0},[c]),D=(0,a.useCallback)((e,t)=>{let a=[];return e?"primary"===e?a=[1,2,3,4,5,6]:"junior_high"===e?(a=[7,8,9],t&&T(e,t)>=10&&a.push(10,11,12)):a="senior_high"===e?[10,11,12]:"university"===e?[13,14,15,16]:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:a=[1,2,3,4,5,6,7,8,9,10,11,12],a.flatMap(e=>eu[e]||[])},[T]);(0,a.useEffect)(()=>{(async()=>{j(!0);try{let e=await ee.k.get("/api/user"),t=D(e.educationStage,e.enrollmentYear);v(t);let a=s?(0,ed.f)(s):"math";try{let e=await ee.k.get(`/api/tags?subject=${a}&tagSet=${encodeURIComponent(l)}`);f(e.tags)}catch(e){J.V.warn("[KnowledgeFilter]","Failed to fetch tags for subject",{subject:a,tagSet:l,error:e}),f([])}}catch(e){J.V.error("[KnowledgeFilter]","Failed to load filter data",{error:e})}finally{j(!1)}})()},[s,l,D]);let q=x.find(e=>e.name===d),A=q?.children||[],E=A.find(e=>e.name===m),P=e=>0===e.children.length?[e.name]:e.children.flatMap(e=>P(e)),R=E?[...new Set(P(E))]:[],$=k.filter(e=>x.some(t=>t.name===e));return(0,t.jsxs)("div",{className:`flex gap-2 ${r}`,children:[(0,t.jsxs)(ec.d,{value:d,onValueChange:e=>{u(e),h(""),g(""),i({gradeSemester:"all"===e?void 0:e,chapter:void 0,tag:void 0})},disabled:b,children:[(0,t.jsx)(ec.P,{className:"w-[140px]",children:(0,t.jsx)(ec.U,{placeholder:o.filter?.gradeShort||"Grade"})}),(0,t.jsxs)(ec.r,{children:[(0,t.jsx)(ec.T,{value:"all",children:o.filter?.allGrades||"All grades"}),$.map(e=>(0,t.jsx)(ec.T,{value:e,children:e},e))]})]}),(0,t.jsxs)(ec.d,{value:m,onValueChange:e=>{h(e),g(""),i({gradeSemester:"all"===d?void 0:d,chapter:"all"===e?void 0:e,tag:void 0})},disabled:!d||"all"===d,children:[(0,t.jsx)(ec.P,{className:"w-[180px]",children:(0,t.jsx)(ec.U,{placeholder:o.filter?.chapter||"Chapter"})}),(0,t.jsxs)(ec.r,{children:[(0,t.jsx)(ec.T,{value:"all",children:o.filter?.allChapters||"All chapters"}),A.map(e=>(0,t.jsx)(ec.T,{value:e.name,children:e.name.replace(/^第\d+章\s*/,"")},e.id))]})]}),(0,t.jsxs)(ec.d,{value:p,onValueChange:e=>{g(e),i({gradeSemester:"all"===d?void 0:d,chapter:"all"===m?void 0:m,tag:"all"===e?void 0:e})},disabled:!m||"all"===m,children:[(0,t.jsx)(ec.P,{className:"w-[140px]",children:(0,t.jsx)(ec.U,{placeholder:o.filter?.knowledgePoint||"Tag"})}),(0,t.jsxs)(ec.r,{children:[(0,t.jsx)(ec.T,{value:"all",children:o.filter?.allKnowledgePoints||"All tags"}),R.map(e=>(0,t.jsx)(ec.T,{value:e,children:e},e))]})]})]})}var eh=e.i(487486),ep=e.i(912505),eg=e.i(793479),ex=e.i(658512),ef=e.i(469817),eb=e.i(905110);function ej(e){let t=new URLSearchParams;return e.subjectId&&t.append("subjectId",e.subjectId),e.search&&t.append("query",e.search),"all"!==e.mastery&&t.append("mastery",e.mastery),"all"!==e.timeRange&&t.append("timeRange",e.timeRange),e.tag&&t.append("tag",e.tag),e.gradeSemester&&t.append("gradeSemester",e.gradeSemester),e.chapter&&t.append("chapter",e.chapter),"all"!==e.paperLevel&&t.append("paperLevel",e.paperLevel),e.questionTypes.length>0&&t.append("questionTypes",e.questionTypes.join(",")),t}var ek=e.i(380935),ev=e.i(164549);function ey({subjectId:e,subjectName:l,tagSet:i="default",initialMastery:r,initialTag:o}){let{t:c}=(0,S.b)(),d=(0,n.useRouter)(),[u,m]=(0,a.useState)([]),[h,k]=(0,a.useState)(!0),[v,y]=(0,a.useState)(""),[w,C]=(0,a.useState)(r??"all"),[A,E]=(0,a.useState)("all"),[P,R]=(0,a.useState)(""),[$,F]=(0,a.useState)(""),[M,I]=(0,a.useState)("all"),[z,O]=(0,a.useState)([]),[V,U]=(0,a.useState)(o??null),[H,B]=(0,a.useState)(1),_=ef.$,[K,G]=(0,a.useState)(0),[W,X]=(0,a.useState)(0),[Y,Q]=(0,a.useState)(!1),[Z,et]=(0,a.useState)(new Set),[ea,en]=(0,a.useState)(!1),es=(0,a.useMemo)(()=>({subjectId:e,search:v,mastery:w,timeRange:A,tag:V,gradeSemester:P,chapter:$,paperLevel:M,questionTypes:z.map(e=>e===D.O?"none":e)}),[e,v,w,A,V,P,$,M,z]),el=()=>{Q(!Y),et(new Set)},er=(0,a.useCallback)(async()=>{k(!0);try{let e=ej(es);e.append("page",H.toString()),e.append("pageSize",_.toString());let t=await ee.k.get(`/api/error-items/list?${e.toString()}`);m(t.items),G(t.total),X(t.totalPages)}catch(e){J.V.error("[ErrorList]","Failed to fetch error items",{error:e})}finally{k(!1)}},[es,H,_]),eo=async()=>{if(0===Z.size)return;let e=(c.notebook?.confirmBatchDelete||"Delete {count} items?").replace("{count}",Z.size.toString());if(await (0,L.u)(e,{destructive:!0})){en(!0);try{await ee.k.post("/api/error-items/batch-delete",{ids:Array.from(Z)}),L.c.success(c.notebook?.batchDeleteSuccess||"Deleted successfully"),Q(!1),et(new Set),er()}catch(e){J.V.error("[ErrorList]","Batch delete failed",{error:e}),L.c.error(c.common?.messages?.deleteFailed||"Delete failed")}finally{en(!1)}}},ec=(0,a.useRef)(es);return(0,a.useEffect)(()=>{let e=ec.current!==es;(ec.current=es,e&&1!==H)?B(1):er()},[H,es,er]),(0,t.jsxs)("div",{className:`space-y-6 ${Y?"pb-40 sm:pb-24":""}`,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row",children:[(0,t.jsxs)("div",{className:"relative w-full lg:flex-1",children:[(0,t.jsx)(b.f,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(eg.f,{placeholder:c.notebook.search,title:c.shortId.searchHint,className:"h-10 rounded-xl bg-card pl-9",value:v,onChange:e=>y(e.target.value),onKeyDown:async e=>{let t=v.trim();if("Enter"!==e.key||!(0,ev.f)(t))return;let a=await (0,ek.f)(t);a&&d.push(`/error-items/${a}`)}})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(N,{mastery:w,timeRange:A,onMasteryChange:C,onTimeRangeChange:E}),(0,t.jsxs)(s.f,{variant:"outline",size:"sm",className:"h-10",onClick:()=>d.push(`/print-preview?${ej(es).toString()}`),children:[(0,t.jsx)(f.f,{className:"mr-2 h-4 w-4"}),c.notebook?.exportPrint||"Export for Print"]}),!Y&&(0,t.jsxs)(s.f,{variant:"outline",size:"sm",className:"h-10",onClick:el,children:[(0,t.jsx)(p,{className:"mr-2 h-4 w-4"}),c.questionSimilarity.title]}),(0,t.jsxs)(s.f,{variant:Y?"secondary":"outline",size:"sm",className:"h-10",onClick:el,children:[(0,t.jsx)(x.f,{className:"mr-2 h-4 w-4"}),Y?c.notebook?.cancelSelect||"Cancel":c.notebook?.selectMode||"Select"]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 items-stretch sm:items-center",children:[(0,t.jsx)("div",{className:"w-full sm:w-auto",children:(0,t.jsx)(em,{gradeSemester:P,tag:V,onFilterChange:({gradeSemester:e,chapter:t,tag:a})=>{void 0!==e&&R(e),void 0!==t&&F(t),U(void 0===a?null:a),e?t||F(""):(R(""),F(""),U(null)),B(1)},subjectName:l,tagSet:i})}),(0,t.jsx)(T,{value:M,onChange:I})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:c.questionType.label}),(0,t.jsx)(q,{value:z,onChange:O})]}),V&&(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-muted rounded-lg",children:[(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:[c.filter.filteringByTag||"Filtering by tag",":"]}),(0,t.jsxs)(eh.f,{variant:"secondary",className:"cursor-pointer",onClick:()=>U(null),children:[V,(0,t.jsx)("span",{className:"ml-1 text-xs",children:"×"})]})]}),!h&&0===u.length&&(0,t.jsx)(ep.f,{icon:g.f,title:c.notebook.emptyList,description:c.notebook.emptyListHint}),h&&0===u.length&&(0,t.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6},(e,a)=>(0,t.jsx)("div",{className:"h-44 animate-pulse rounded-2xl bg-muted"},a))}),(0,t.jsx)("div",{className:`grid gap-4 md:grid-cols-2 lg:grid-cols-3 transition-opacity ${h?"opacity-60":""}`,children:u.map(e=>(0,t.jsx)(j.f,{item:e,selectMode:Y,selected:Z.has(e.id),onToggleSelect:()=>{var t;return t=e.id,void et(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},selectedTag:V,onTagClick:e=>U(V===e?null:e)},e.id))}),(0,t.jsx)(ex.f,{page:H,totalPages:W,total:K,pageSize:_,onPageChange:B}),Y&&(0,t.jsx)(ei,{selectedIds:[...Z],deleting:ea,onCancel:el,onDelete:eo,onMoved:()=>{Q(!1),et(new Set),er()}})]})}function ew(e){let s=(0,n.useSearchParams)(),l=(0,a.useMemo)(()=>{let e,t,a;return e={},t=s.get("mastery"),(0,eb.A)(t)&&(e.mastery=t),(a=s.get("tag"))&&(e.tag=a),e},[s]);return(0,t.jsx)(ey,{...e,initialMastery:l.mastery,initialTag:l.tag})}function eS(e){return(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(ew,{...e})})}var eN=e.i(110204);function eC({open:e,onOpenChange:n,currentName:l,onRename:i}){let[r,o]=(0,a.useState)(l),[c,d]=(0,a.useState)(!1),{t:u}=(0,S.b)(),[m,h]=(0,a.useState)(l);l!==m&&(h(l),o(l));let p=async()=>{if(!r.trim())return void L.c.warning(u.notebooks?.renameDialog?.enterName||"Please enter notebook name");d(!0);try{await i(r.trim()),n(!1)}catch(e){J.V.error("[RenameNotebook]","Failed to rename notebook",{error:e})}finally{d(!1)}};return(0,t.jsx)(M.N,{open:e,onOpenChange:n,children:(0,t.jsxs)(M.d,{children:[(0,t.jsx)(M.s,{children:(0,t.jsx)(M.F,{children:u.notebooks?.renameDialog?.title||"Rename Notebook"})}),(0,t.jsx)("div",{className:"space-y-4 py-4",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(eN.f,{htmlFor:"rename-name",children:u.notebooks?.renameDialog?.nameLabel||"New Name"}),(0,t.jsx)(eg.f,{id:"rename-name",placeholder:u.notebooks?.renameDialog?.placeholder||"Enter new notebook name",value:r,onChange:e=>o(e.target.value),onKeyDown:e=>"Enter"===e.key&&p()})]})}),(0,t.jsxs)(M.c,{children:[(0,t.jsx)(s.f,{variant:"outline",onClick:()=>n(!1),children:u.common.cancel}),(0,t.jsx)(s.f,{onClick:p,disabled:c||!r.trim(),children:c?u.notebooks?.renameDialog?.renaming||"Renaming...":u.notebooks?.renameDialog?.rename||"Rename"})]})]})})}var eT=e.i(328623),eD=e.i(132411);function eq({notebookId:e,onFinished:n}){let{t:l}=(0,S.b)(),[i,r]=(0,a.useState)(null),[o,c]=(0,a.useState)(null),d=(0,a.useRef)(!1),u=`notebook:${e}:retag`,{running:m,refresh:h}=(0,eD.f)(u),p=(0,a.useCallback)(()=>{ee.k.get(`/api/notebooks/${e}/retag`).then(e=>{d.current&&e&&!e.running&&n?.(),d.current=!!e?.running,r(e)}).catch(()=>void 0)},[e,n]);(0,a.useEffect)(p,[p]),(0,a.useEffect)(()=>{if(!i?.running)return;let e=setTimeout(p,2e3);return()=>clearTimeout(e)},[i,p]);let g=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(m){g.current=!0;return}g.current&&(g.current=!1,n?.())},[m,n]);let x=async()=>{if(await (0,L.u)(l.retag.notebookConfirm)){c(null);try{let t=await ee.k.post(`/api/notebooks/${e}/retag`,{});if(0===t.total)return void c(l.retag.empty);d.current=t.running,r(t)}catch(e){e instanceof ee.a&&409===e.status&&e.data?.code==="TASK_ALREADY_RUNNING"?(L.c.info(l.errors.TASK_ALREADY_RUNNING),await h()):c(l.retag.itemFailed)}}},f=o??(i?.running?l.retag.progress.replace("{done}",String(i.done)).replace("{total}",String(i.total)):i?.finishedAt&&i.total>0?l.retag.finished.replace("{success}",String(i.total-i.failed)).replace("{failed}",String(i.failed)):null),b=!!m||!!i?.running;return(0,t.jsxs)("div",{className:"flex flex-col items-start sm:items-end gap-1",children:[(0,t.jsxs)(s.f,{variant:"outline",size:"sm",onClick:x,disabled:b,"aria-label":l.retag.notebookButton,children:[b?(0,t.jsx)(ea.f,{className:"h-4 w-4 animate-spin sm:mr-2"}):(0,t.jsx)(eT.f,{className:"h-4 w-4 sm:mr-2"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:l.retag.notebookButton})]}),f&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:f})]})}var eA=e.i(709830),eE=e.i(35209);e.s(["default",0,function(){let e=(0,n.useParams)(),o=(0,n.useRouter)(),{t:c}=(0,S.b)(),[h,p]=(0,a.useState)(null);(0,eE.f)(c.notebooks.title,h?.name);let[g,x]=(0,a.useState)(!0),[f,b]=(0,a.useState)(!1),[j,k]=(0,a.useState)(0),v=(0,a.useCallback)(async e=>{try{let t=await ee.k.get(`/api/notebooks/${e}`);p(t)}catch(e){J.V.error("[NotebookDetail]","Failed to fetch notebook",{error:e}),L.c.error(c.notebooks?.notFound||"Notebook not found"),o.push("/notebooks")}finally{x(!1)}},[o,c]);(0,a.useEffect)(()=>{e.id&&v(e.id)},[e.id,v]);let y=async e=>{h&&p(await ee.k.put(`/api/notebooks/${h.id}`,{name:e}))},w=async()=>{if(h)try{let e=await ee.k.get(`/api/notebooks/${h.id}`);if((e._count?.errorItems||0)>0)return void L.c.warning(c.notebooks?.deleteNotEmpty||"Please clear all items in this notebook first.");if(!await (0,L.u)((c.notebooks?.deleteConfirm||"Are you sure?").replace("{name}",h.name),{destructive:!0}))return;await ee.k.delete(`/api/notebooks/${h.id}`),o.replace("/notebooks")}catch(e){J.V.error("[NotebookDetail]","Failed to delete notebook",{error:e}),L.c.error((0,O.d)(e)||c.notebooks?.deleteError||"Failed to delete")}};return g?(0,t.jsx)(i.f,{label:c.common.loading}):h?(0,t.jsx)("main",{className:"mx-auto min-h-screen max-w-6xl px-4 py-6 md:px-8 md:py-8",children:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(l.f,{backHref:"/notebooks",title:h.name,titleAddon:(0,t.jsx)(s.f,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-muted-foreground",onClick:()=>b(!0),title:c.notebooks?.rename||"Rename",children:(0,t.jsx)(d,{className:"h-4 w-4"})}),description:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eA.E,{notebook:h})," · ",(c.notebooks?.totalErrors||"Total {count} errors").replace("{count}",(h._count?.errorItems||0).toString())]}),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.f,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",onClick:w,"aria-label":c.common.delete,children:[(0,t.jsx)(u.f,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:c.common.delete})]}),(0,t.jsx)(eq,{notebookId:h.id,onFinished:()=>k(e=>e+1)}),(0,t.jsx)(m.default,{href:`/notebooks/${h.id}/add`,children:(0,t.jsxs)(s.f,{"aria-label":c.notebooks?.addError||"Add Error",children:[(0,t.jsx)(r.f,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:c.notebooks?.addError||"Add Error"})]})})]})}),(0,t.jsx)(eS,{subjectId:h.id,subjectName:h.name,tagSet:h.tagSet||"default"},j),(0,t.jsx)(eC,{open:f,onOpenChange:b,currentName:h.name,onRename:y})]})}):null}],198591)}]);