wrong-notebook 2026.11.5-2 → 2026.11.5-3

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 (915) 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 +64 -53
  4. package/.next/prerender-manifest.json +4 -4
  5. package/.next/required-server-files.json +6 -3
  6. package/.next/routes-manifest.json +30 -0
  7. package/.next/server/app/_global-error/page/build-manifest.json +3 -3
  8. package/.next/server/app/_global-error/page.js +7 -7
  9. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +3 -3
  13. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  14. package/.next/server/app/_global-error.segments/_full.segment.rsc +3 -3
  15. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/_not-found/page/build-manifest.json +3 -3
  17. package/.next/server/app/_not-found/page.js +5 -4
  18. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/.next/server/app/admin/page/build-manifest.json +3 -3
  21. package/.next/server/app/admin/page.js +7 -6
  22. package/.next/server/app/admin/page.js.nft.json +1 -1
  23. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/admin/user/[id]/page/build-manifest.json +3 -3
  25. package/.next/server/app/admin/user/[id]/page.js +7 -6
  26. package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
  27. package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/admin/cnm-tags/route.js +10 -7
  29. package/.next/server/app/api/admin/cnm-tags/route.js.nft.json +1 -1
  30. package/.next/server/app/api/admin/dashboard/route.js +17 -16
  31. package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
  32. package/.next/server/app/api/admin/debug-logs/export/route.js +10 -8
  33. package/.next/server/app/api/admin/debug-logs/export/route.js.nft.json +1 -1
  34. package/.next/server/app/api/admin/debug-logs/route.js +9 -6
  35. package/.next/server/app/api/admin/debug-logs/route.js.nft.json +1 -1
  36. package/.next/server/app/api/admin/eula/accept/route/app-paths-manifest.json +3 -0
  37. package/.next/server/app/api/admin/eula/accept/route/build-manifest.json +12 -0
  38. package/.next/server/app/api/admin/eula/accept/route/server-reference-manifest.json +4 -0
  39. package/.next/server/app/api/admin/eula/accept/route.js +17 -0
  40. package/.next/server/app/api/admin/eula/accept/route.js.map +5 -0
  41. package/.next/server/app/api/admin/eula/accept/route.js.nft.json +1 -0
  42. package/.next/server/app/api/admin/eula/accept/route_client-reference-manifest.js +3 -0
  43. package/.next/server/app/api/admin/migrate-tags/route.js +6 -5
  44. package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
  45. package/.next/server/app/api/admin/system-reset/route.js +9 -3
  46. package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
  47. package/.next/server/app/api/admin/telemetry/route/app-paths-manifest.json +3 -0
  48. package/.next/server/app/api/admin/telemetry/route/build-manifest.json +12 -0
  49. package/.next/server/app/api/admin/telemetry/route/server-reference-manifest.json +4 -0
  50. package/.next/server/app/api/admin/telemetry/route.js +17 -0
  51. package/.next/server/app/api/admin/telemetry/route.js.map +5 -0
  52. package/.next/server/app/api/admin/telemetry/route.js.nft.json +1 -0
  53. package/.next/server/app/api/admin/telemetry/route_client-reference-manifest.js +3 -0
  54. package/.next/server/app/api/admin/users/[id]/detail/route.js +17 -16
  55. package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
  56. package/.next/server/app/api/admin/users/[id]/route.js +10 -6
  57. package/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
  58. package/.next/server/app/api/admin/users/route.js +10 -8
  59. package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
  60. package/.next/server/app/api/ai/models/route.js +13 -14
  61. package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
  62. package/.next/server/app/api/ai/test/route.js +15 -15
  63. package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
  64. package/.next/server/app/api/analytics/route.js +21 -19
  65. package/.next/server/app/api/analytics/route.js.nft.json +1 -1
  66. package/.next/server/app/api/analyze/route.js +21 -19
  67. package/.next/server/app/api/analyze/route.js.nft.json +1 -1
  68. package/.next/server/app/api/auth/[...nextauth]/route.js +3 -3
  69. package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
  70. package/.next/server/app/api/error-items/[id]/delete/route.js +10 -5
  71. package/.next/server/app/api/error-items/[id]/delete/route.js.nft.json +1 -1
  72. package/.next/server/app/api/error-items/[id]/figure/route.js +18 -17
  73. package/.next/server/app/api/error-items/[id]/figure/route.js.nft.json +1 -1
  74. package/.next/server/app/api/error-items/[id]/fix-latex/route.js +18 -17
  75. package/.next/server/app/api/error-items/[id]/fix-latex/route.js.nft.json +1 -1
  76. package/.next/server/app/api/error-items/[id]/geogebra/route.js +19 -18
  77. package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
  78. package/.next/server/app/api/error-items/[id]/image/route.js +10 -7
  79. package/.next/server/app/api/error-items/[id]/image/route.js.nft.json +1 -1
  80. package/.next/server/app/api/error-items/[id]/notes/route.js +7 -4
  81. package/.next/server/app/api/error-items/[id]/notes/route.js.nft.json +1 -1
  82. package/.next/server/app/api/error-items/[id]/practice-records/route.js +10 -6
  83. package/.next/server/app/api/error-items/[id]/practice-records/route.js.nft.json +1 -1
  84. package/.next/server/app/api/error-items/[id]/reanswer/route.js +16 -15
  85. package/.next/server/app/api/error-items/[id]/reanswer/route.js.nft.json +1 -1
  86. package/.next/server/app/api/error-items/[id]/retag/route.js +18 -17
  87. package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
  88. package/.next/server/app/api/error-items/[id]/route.js +12 -10
  89. package/.next/server/app/api/error-items/[id]/route.js.nft.json +1 -1
  90. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +18 -17
  91. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -1
  92. package/.next/server/app/api/error-items/[id]/svg-animation/route.js +18 -17
  93. package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
  94. package/.next/server/app/api/error-items/answer-space/route.js +8 -5
  95. package/.next/server/app/api/error-items/answer-space/route.js.nft.json +1 -1
  96. package/.next/server/app/api/error-items/batch-delete/route.js +7 -4
  97. package/.next/server/app/api/error-items/batch-delete/route.js.nft.json +1 -1
  98. package/.next/server/app/api/error-items/clear/route.js +10 -5
  99. package/.next/server/app/api/error-items/clear/route.js.nft.json +1 -1
  100. package/.next/server/app/api/error-items/export-questions/route.js +10 -9
  101. package/.next/server/app/api/error-items/export-questions/route.js.nft.json +1 -1
  102. package/.next/server/app/api/error-items/list/route.js +12 -10
  103. package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
  104. package/.next/server/app/api/error-items/route.js +23 -22
  105. package/.next/server/app/api/error-items/route.js.nft.json +1 -1
  106. package/.next/server/app/api/error-items/short/[shortId]/route.js +10 -6
  107. package/.next/server/app/api/error-items/short/[shortId]/route.js.nft.json +1 -1
  108. package/.next/server/app/api/error-items/similarity/route.js +10 -7
  109. package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
  110. package/.next/server/app/api/eula/status/route/app-paths-manifest.json +3 -0
  111. package/.next/server/app/api/eula/status/route/build-manifest.json +12 -0
  112. package/.next/server/app/api/eula/status/route/server-reference-manifest.json +4 -0
  113. package/.next/server/app/api/eula/status/route.js +17 -0
  114. package/.next/server/app/api/eula/status/route.js.map +5 -0
  115. package/.next/server/app/api/eula/status/route.js.nft.json +1 -0
  116. package/.next/server/app/api/eula/status/route_client-reference-manifest.js +3 -0
  117. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +19 -18
  118. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js.nft.json +1 -1
  119. package/.next/server/app/api/exams/[id]/results/route.js +20 -19
  120. package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
  121. package/.next/server/app/api/exams/[id]/retry/route.js +21 -19
  122. package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
  123. package/.next/server/app/api/exams/[id]/route.js +21 -20
  124. package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
  125. package/.next/server/app/api/exams/route.js +20 -18
  126. package/.next/server/app/api/exams/route.js.nft.json +1 -1
  127. package/.next/server/app/api/export/route.js +11 -11
  128. package/.next/server/app/api/export/route.js.nft.json +1 -1
  129. package/.next/server/app/api/geogebra-analyze/route.js +20 -19
  130. package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
  131. package/.next/server/app/api/health/route.js +2 -2
  132. package/.next/server/app/api/health/route.js.nft.json +1 -1
  133. package/.next/server/app/api/import/route.js +22 -21
  134. package/.next/server/app/api/import/route.js.nft.json +1 -1
  135. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js +26 -25
  136. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js.nft.json +1 -1
  137. package/.next/server/app/api/import-batches/[id]/fix-text/route.js +18 -17
  138. package/.next/server/app/api/import-batches/[id]/fix-text/route.js.nft.json +1 -1
  139. package/.next/server/app/api/import-batches/[id]/read/route.js +27 -26
  140. package/.next/server/app/api/import-batches/[id]/read/route.js.nft.json +1 -1
  141. package/.next/server/app/api/import-batches/[id]/retry/route.js +26 -25
  142. package/.next/server/app/api/import-batches/[id]/retry/route.js.nft.json +1 -1
  143. package/.next/server/app/api/import-batches/[id]/route.js +27 -26
  144. package/.next/server/app/api/import-batches/[id]/route.js.nft.json +1 -1
  145. package/.next/server/app/api/import-batches/[id]/start/route.js +27 -26
  146. package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -1
  147. package/.next/server/app/api/import-batches/route.js +27 -26
  148. package/.next/server/app/api/import-batches/route.js.nft.json +1 -1
  149. package/.next/server/app/api/import-tasks/[id]/confirm/route.js +24 -23
  150. package/.next/server/app/api/import-tasks/[id]/confirm/route.js.nft.json +1 -1
  151. package/.next/server/app/api/import-tasks/[id]/read/route.js +24 -23
  152. package/.next/server/app/api/import-tasks/[id]/read/route.js.nft.json +1 -1
  153. package/.next/server/app/api/import-tasks/[id]/retry/route.js +26 -25
  154. package/.next/server/app/api/import-tasks/[id]/retry/route.js.nft.json +1 -1
  155. package/.next/server/app/api/import-tasks/[id]/route.js +24 -23
  156. package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -1
  157. package/.next/server/app/api/import-tasks/route.js +27 -26
  158. package/.next/server/app/api/import-tasks/route.js.nft.json +1 -1
  159. package/.next/server/app/api/initialize/route.js +9 -6
  160. package/.next/server/app/api/initialize/route.js.nft.json +1 -1
  161. package/.next/server/app/api/logs/frontend/route.js +9 -6
  162. package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
  163. package/.next/server/app/api/minimax-code/checkin/route.js +10 -8
  164. package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
  165. package/.next/server/app/api/minimax-code/login/route.js +11 -7
  166. package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
  167. package/.next/server/app/api/minimax-code/route.js +8 -6
  168. package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
  169. package/.next/server/app/api/notebooks/[id]/retag/route.js +18 -16
  170. package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
  171. package/.next/server/app/api/notebooks/[id]/route.js +7 -5
  172. package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
  173. package/.next/server/app/api/notebooks/route.js +7 -5
  174. package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
  175. package/.next/server/app/api/openclaw/batch-upload/route.js +20 -20
  176. package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
  177. package/.next/server/app/api/paper-groups/[id]/route.js +10 -7
  178. package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -1
  179. package/.next/server/app/api/paper-groups/route.js +11 -8
  180. package/.next/server/app/api/paper-groups/route.js.nft.json +1 -1
  181. package/.next/server/app/api/practice/generate/route.js +18 -17
  182. package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
  183. package/.next/server/app/api/practice/grade/route.js +18 -16
  184. package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
  185. package/.next/server/app/api/practice/record/[id]/route.js +19 -18
  186. package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
  187. package/.next/server/app/api/practice/record/route.js +20 -19
  188. package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
  189. package/.next/server/app/api/reanswer/route.js +19 -17
  190. package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
  191. package/.next/server/app/api/register/route.js +5 -6
  192. package/.next/server/app/api/register/route.js.nft.json +1 -1
  193. package/.next/server/app/api/register/status/route.js +8 -7
  194. package/.next/server/app/api/register/status/route.js.nft.json +1 -1
  195. package/.next/server/app/api/requests/[id]/route.js +10 -6
  196. package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
  197. package/.next/server/app/api/review/due/route.js +18 -17
  198. package/.next/server/app/api/review/due/route.js.nft.json +1 -1
  199. package/.next/server/app/api/settings/route.js +9 -8
  200. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  201. package/.next/server/app/api/setup/route.js +10 -8
  202. package/.next/server/app/api/setup/route.js.nft.json +1 -1
  203. package/.next/server/app/api/stats/activity/route.js +11 -9
  204. package/.next/server/app/api/stats/activity/route.js.nft.json +1 -1
  205. package/.next/server/app/api/stats/practice/clear/route.js +9 -4
  206. package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
  207. package/.next/server/app/api/stats/practice/route.js +9 -8
  208. package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
  209. package/.next/server/app/api/stats/repeated-mistakes/route.js +19 -17
  210. package/.next/server/app/api/stats/repeated-mistakes/route.js.nft.json +1 -1
  211. package/.next/server/app/api/stats/weak-tags/route.js +19 -17
  212. package/.next/server/app/api/stats/weak-tags/route.js.nft.json +1 -1
  213. package/.next/server/app/api/tags/route.js +9 -6
  214. package/.next/server/app/api/tags/route.js.nft.json +1 -1
  215. package/.next/server/app/api/tags/stats/route.js +9 -4
  216. package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
  217. package/.next/server/app/api/tags/suggestions/route.js +3 -3
  218. package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
  219. package/.next/server/app/api/tasks/route.js +11 -7
  220. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  221. package/.next/server/app/api/telemetry/route/app-paths-manifest.json +3 -0
  222. package/.next/server/app/api/telemetry/route/build-manifest.json +12 -0
  223. package/.next/server/app/api/telemetry/route/server-reference-manifest.json +4 -0
  224. package/.next/server/app/api/telemetry/route.js +15 -0
  225. package/.next/server/app/api/telemetry/route.js.map +5 -0
  226. package/.next/server/app/api/telemetry/route.js.nft.json +1 -0
  227. package/.next/server/app/api/telemetry/route_client-reference-manifest.js +3 -0
  228. package/.next/server/app/api/tts/[id]/route.js +10 -8
  229. package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
  230. package/.next/server/app/api/tts/batch/route.js +14 -12
  231. package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
  232. package/.next/server/app/api/tts/route.js +12 -11
  233. package/.next/server/app/api/tts/route.js.nft.json +1 -1
  234. package/.next/server/app/api/tts/status/route.js +12 -11
  235. package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
  236. package/.next/server/app/api/user/ai-consent/route.js +10 -5
  237. package/.next/server/app/api/user/ai-consent/route.js.nft.json +1 -1
  238. package/.next/server/app/api/user/route.js +18 -17
  239. package/.next/server/app/api/user/route.js.nft.json +1 -1
  240. package/.next/server/app/api/version/route.js +3 -3
  241. package/.next/server/app/api/version/route.js.nft.json +1 -1
  242. package/.next/server/app/error-items/[id]/page/build-manifest.json +3 -3
  243. package/.next/server/app/error-items/[id]/page.js +7 -6
  244. package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
  245. package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
  246. package/.next/server/app/eula/page/app-paths-manifest.json +3 -0
  247. package/.next/server/app/eula/page/build-manifest.json +22 -0
  248. package/.next/server/app/eula/page/next-font-manifest.json +11 -0
  249. package/.next/server/app/eula/page/react-loadable-manifest.json +1 -0
  250. package/.next/server/app/eula/page/server-reference-manifest.json +4 -0
  251. package/.next/server/app/eula/page.js +15 -0
  252. package/.next/server/app/eula/page.js.map +5 -0
  253. package/.next/server/app/eula/page.js.nft.json +1 -0
  254. package/.next/server/app/eula/page_client-reference-manifest.js +3 -0
  255. package/.next/server/app/exams/[id]/page/build-manifest.json +3 -3
  256. package/.next/server/app/exams/[id]/page.js +7 -6
  257. package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
  258. package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
  259. package/.next/server/app/exams/[id]/print/page/build-manifest.json +3 -3
  260. package/.next/server/app/exams/[id]/print/page.js +7 -6
  261. package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
  262. package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
  263. package/.next/server/app/exams/page/build-manifest.json +3 -3
  264. package/.next/server/app/exams/page.js +7 -6
  265. package/.next/server/app/exams/page.js.nft.json +1 -1
  266. package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
  267. package/.next/server/app/favicon.ico/route.js +2 -2
  268. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  269. package/.next/server/app/import-batches/[id]/page/build-manifest.json +3 -3
  270. package/.next/server/app/import-batches/[id]/page.js +7 -6
  271. package/.next/server/app/import-batches/[id]/page.js.nft.json +1 -1
  272. package/.next/server/app/import-batches/[id]/page_client-reference-manifest.js +1 -1
  273. package/.next/server/app/import-tasks/[id]/page/build-manifest.json +3 -3
  274. package/.next/server/app/import-tasks/[id]/page.js +7 -6
  275. package/.next/server/app/import-tasks/[id]/page.js.nft.json +1 -1
  276. package/.next/server/app/import-tasks/[id]/page_client-reference-manifest.js +1 -1
  277. package/.next/server/app/import-tasks/page/build-manifest.json +3 -3
  278. package/.next/server/app/import-tasks/page.js +7 -6
  279. package/.next/server/app/import-tasks/page.js.nft.json +1 -1
  280. package/.next/server/app/import-tasks/page_client-reference-manifest.js +1 -1
  281. package/.next/server/app/initialize/page/build-manifest.json +3 -3
  282. package/.next/server/app/initialize/page.js +7 -6
  283. package/.next/server/app/initialize/page.js.nft.json +1 -1
  284. package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
  285. package/.next/server/app/login/page/build-manifest.json +3 -3
  286. package/.next/server/app/login/page.js +7 -6
  287. package/.next/server/app/login/page.js.nft.json +1 -1
  288. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  289. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  290. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  291. package/.next/server/app/notebooks/[id]/add/page/build-manifest.json +3 -3
  292. package/.next/server/app/notebooks/[id]/add/page.js +7 -6
  293. package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
  294. package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
  295. package/.next/server/app/notebooks/[id]/page/build-manifest.json +3 -3
  296. package/.next/server/app/notebooks/[id]/page.js +7 -6
  297. package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
  298. package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
  299. package/.next/server/app/notebooks/page/build-manifest.json +3 -3
  300. package/.next/server/app/notebooks/page.js +7 -6
  301. package/.next/server/app/notebooks/page.js.nft.json +1 -1
  302. package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
  303. package/.next/server/app/page/build-manifest.json +3 -3
  304. package/.next/server/app/page.js +7 -6
  305. package/.next/server/app/page.js.nft.json +1 -1
  306. package/.next/server/app/page_client-reference-manifest.js +1 -1
  307. package/.next/server/app/practice/page/build-manifest.json +3 -3
  308. package/.next/server/app/practice/page.js +7 -6
  309. package/.next/server/app/practice/page.js.nft.json +1 -1
  310. package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
  311. package/.next/server/app/print-preview/page/build-manifest.json +3 -3
  312. package/.next/server/app/print-preview/page.js +7 -6
  313. package/.next/server/app/print-preview/page.js.nft.json +1 -1
  314. package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
  315. package/.next/server/app/register/page/build-manifest.json +3 -3
  316. package/.next/server/app/register/page.js +7 -6
  317. package/.next/server/app/register/page.js.nft.json +1 -1
  318. package/.next/server/app/register/page_client-reference-manifest.js +1 -1
  319. package/.next/server/app/review/page/build-manifest.json +3 -3
  320. package/.next/server/app/review/page.js +7 -6
  321. package/.next/server/app/review/page.js.nft.json +1 -1
  322. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  323. package/.next/server/app/setup/page/build-manifest.json +3 -3
  324. package/.next/server/app/setup/page.js +7 -6
  325. package/.next/server/app/setup/page.js.nft.json +1 -1
  326. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  327. package/.next/server/app/stats/page/build-manifest.json +3 -3
  328. package/.next/server/app/stats/page.js +7 -6
  329. package/.next/server/app/stats/page.js.nft.json +1 -1
  330. package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  331. package/.next/server/app/tags/page/build-manifest.json +3 -3
  332. package/.next/server/app/tags/page.js +6 -5
  333. package/.next/server/app/tags/page.js.nft.json +1 -1
  334. package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
  335. package/.next/server/app-paths-manifest.json +5 -0
  336. package/.next/server/chunks/[externals]__0474k1hipw6rt._.js +3 -0
  337. package/.next/server/chunks/{[externals]__1_ij0r5wb4t30._.js → [externals]__0bh0f5epkjz_a._.js} +1 -1
  338. package/.next/server/chunks/[externals]__0ojjzq4kzrq1o._.js +3 -0
  339. package/.next/server/chunks/{[externals]__1i7c9m3y35e80._.js → [externals]__13nx5i-mvmw8a._.js} +1 -1
  340. package/.next/server/chunks/{[externals]__0fgpzedhhntg9._.js → [externals]__1_vx733h4gtoh._.js} +1 -1
  341. package/.next/server/chunks/{[externals]__0t1do1irr2px5._.js → [externals]__1egv8vt0vbzl9._.js} +1 -1
  342. package/.next/server/chunks/[externals]__1rtk9r0kf_2k2._.js +3 -0
  343. package/.next/server/chunks/{[root-of-the-server]__06-v15r8ror-q._.js → [root-of-the-server]__0-fpl-4ce-iyj._.js} +1 -1
  344. package/.next/server/chunks/[root-of-the-server]__017-5vo1u87jc._.js +3 -0
  345. package/.next/server/chunks/[root-of-the-server]__0191d7zm1bh5y._.js +3 -0
  346. package/.next/server/chunks/{[root-of-the-server]__0hcbw1sliw973._.js → [root-of-the-server]__04g1e8vi5hfmd._.js} +1 -1
  347. package/.next/server/chunks/[root-of-the-server]__063yyz_9kliuv._.js +3 -0
  348. package/.next/server/chunks/{[root-of-the-server]__05pxdy586nh8a._.js → [root-of-the-server]__06p98x_tv1foa._.js} +1 -1
  349. package/.next/server/chunks/[root-of-the-server]__06zr2kkbkdddm._.js +3 -0
  350. package/.next/server/chunks/{[root-of-the-server]__0-zi_nkxp9dof._.js → [root-of-the-server]__07fsx1y8aa-7l._.js} +1 -1
  351. package/.next/server/chunks/{[root-of-the-server]__0ef-17j7yp2n5._.js → [root-of-the-server]__07tka5n0kbed7._.js} +1 -1
  352. package/.next/server/chunks/[root-of-the-server]__09jqnx_673l93._.js +1 -1
  353. package/.next/server/chunks/{[root-of-the-server]__05wem-_dvlzug._.js → [root-of-the-server]__09re9q5tsyprr._.js} +1 -1
  354. package/.next/server/chunks/{[root-of-the-server]__032tjseth76z3._.js → [root-of-the-server]__09tf4b1-063yn._.js} +1 -1
  355. package/.next/server/chunks/[root-of-the-server]__0abb0_151j5sb._.js +3 -0
  356. package/.next/server/chunks/[root-of-the-server]__0c7btjinzvmj3._.js +3 -0
  357. package/.next/server/chunks/[root-of-the-server]__0dpk56pxg3xh0._.js +3 -0
  358. package/.next/server/chunks/{[root-of-the-server]__02kuxxv4mod1v._.js → [root-of-the-server]__0dqk6jms3f_58._.js} +2 -2
  359. package/.next/server/chunks/{[root-of-the-server]__0_e69dt7jrpui._.js → [root-of-the-server]__0e6jc57nsnwz0._.js} +2 -2
  360. package/.next/server/chunks/[root-of-the-server]__0ehmpofr_lag1._.js +3 -0
  361. package/.next/server/chunks/[root-of-the-server]__0eksw09qkfp-z._.js +3 -0
  362. package/.next/server/chunks/[root-of-the-server]__0euaxkmzk9kv8._.js +3 -0
  363. package/.next/server/chunks/[root-of-the-server]__0evv12a34qcy6._.js +2 -2
  364. package/.next/server/chunks/[root-of-the-server]__0g-4jw7pw15nc._.js +3 -0
  365. package/.next/server/chunks/[root-of-the-server]__0h82l-5c5x36d._.js +3 -0
  366. package/.next/server/chunks/{[root-of-the-server]__08iizowhy6p3l._.js → [root-of-the-server]__0haqb2u-0wd6e._.js} +2 -2
  367. package/.next/server/chunks/{[root-of-the-server]__094ybs6y_fmt5._.js → [root-of-the-server]__0hiv6ho-1ced7._.js} +2 -2
  368. package/.next/server/chunks/[root-of-the-server]__0hypc-hsxhr5m._.js +3 -0
  369. package/.next/server/chunks/{[root-of-the-server]__0eyqs-2hri164._.js → [root-of-the-server]__0hzh1vkuuv1uk._.js} +2 -2
  370. package/.next/server/chunks/[root-of-the-server]__0k0-c4brxlw-a._.js +3 -0
  371. package/.next/server/chunks/[root-of-the-server]__0k_gflpw7m236._.js +3 -0
  372. package/.next/server/chunks/[root-of-the-server]__0km5gt590jg97._.js +3 -0
  373. package/.next/server/chunks/[root-of-the-server]__0llcnfms-yrs4._.js +3 -0
  374. package/.next/server/chunks/[root-of-the-server]__0mgpyw67pdn1h._.js +3 -0
  375. package/.next/server/chunks/[root-of-the-server]__0mztg1mhr7xw2._.js +3 -0
  376. package/.next/server/chunks/[root-of-the-server]__0n9xugvjq0zol._.js +3 -0
  377. package/.next/server/chunks/[root-of-the-server]__0ni89i2lbtpir._.js +3 -0
  378. package/.next/server/chunks/[root-of-the-server]__0nqc3uu_4-moq._.js +3 -0
  379. package/.next/server/chunks/[root-of-the-server]__0nu-b-ap5ix-i._.js +3 -0
  380. package/.next/server/chunks/[root-of-the-server]__0o72hu-jqh_kc._.js +3 -0
  381. package/.next/server/chunks/[root-of-the-server]__0obmdl7r6pt9d._.js +3 -0
  382. package/.next/server/chunks/[root-of-the-server]__0q6of-nw_4lh-._.js +3 -0
  383. package/.next/server/chunks/[root-of-the-server]__0qyqo6m38w5z7._.js +3 -0
  384. package/.next/server/chunks/{[root-of-the-server]__0v3y7_fc4q7mu._.js → [root-of-the-server]__0rxdei7la2kkf._.js} +1 -1
  385. package/.next/server/chunks/[root-of-the-server]__0s1-3vrrlq54r._.js +3 -0
  386. package/.next/server/chunks/[root-of-the-server]__0shmk9rqg_zs_._.js +3 -0
  387. package/.next/server/chunks/[root-of-the-server]__0sr8vnpwvch60._.js +3 -0
  388. package/.next/server/chunks/[root-of-the-server]__0szw35uwpyccm._.js +3 -0
  389. package/.next/server/chunks/[root-of-the-server]__0u2_7w3b4f_c1._.js +3 -0
  390. package/.next/server/chunks/{[root-of-the-server]__0g3w0_9__ljck._.js → [root-of-the-server]__0u_jxskyhdl4l._.js} +1 -1
  391. package/.next/server/chunks/[root-of-the-server]__0v1-d_ribj2jd._.js +3 -0
  392. package/.next/server/chunks/[root-of-the-server]__0w_dr_s2zzqcd._.js +3 -0
  393. package/.next/server/chunks/[root-of-the-server]__0wpt1mx3kryp7._.js +3 -0
  394. package/.next/server/chunks/[root-of-the-server]__0wug5gswjt2zt._.js +3 -0
  395. package/.next/server/chunks/[root-of-the-server]__0xj4u1plpkmot._.js +3 -0
  396. package/.next/server/chunks/{[root-of-the-server]__1ve60byz8pq4j._.js → [root-of-the-server]__0y0v79zd4u8g0._.js} +2 -2
  397. package/.next/server/chunks/[root-of-the-server]__0y82146_dftio._.js +3 -0
  398. package/.next/server/chunks/{[root-of-the-server]__1edbiu94nqqym._.js → [root-of-the-server]__0yf1e2v3dwhh5._.js} +2 -2
  399. package/.next/server/chunks/{[root-of-the-server]__1w_yq12h-kxx0._.js → [root-of-the-server]__0yxdic8niq68m._.js} +2 -2
  400. package/.next/server/chunks/[root-of-the-server]__0z6act451-e8y._.js +3 -0
  401. package/.next/server/chunks/[root-of-the-server]__0zqnlrgdhvyvb._.js +3 -0
  402. package/.next/server/chunks/[root-of-the-server]__1-4kz5lwzu127._.js +3 -0
  403. package/.next/server/chunks/{[root-of-the-server]__0llbkrw8l2ib9._.js → [root-of-the-server]__1-gpls663uhw2._.js} +1 -1
  404. package/.next/server/chunks/[root-of-the-server]__1-ityr2iq9e-w._.js +3 -0
  405. package/.next/server/chunks/[root-of-the-server]__1-sow_jqu0ca5._.js +3 -0
  406. package/.next/server/chunks/[root-of-the-server]__1-uyaylss8lu0._.js +3 -0
  407. package/.next/server/chunks/[root-of-the-server]__1-w4-6dnik6p3._.js +3 -0
  408. package/.next/server/chunks/[root-of-the-server]__1027cegzwspbv._.js +3 -0
  409. package/.next/server/chunks/[root-of-the-server]__106c17t6fe2s5._.js +3 -0
  410. package/.next/server/chunks/[root-of-the-server]__11jqvp7ydid38._.js +3 -0
  411. package/.next/server/chunks/[root-of-the-server]__11qp83z3-uyy2._.js +3 -0
  412. package/.next/server/chunks/[root-of-the-server]__11r530r-p2-n1._.js +3 -0
  413. package/.next/server/chunks/[root-of-the-server]__11vx3bv6nef_u._.js +3 -0
  414. package/.next/server/chunks/[root-of-the-server]__123mmhkfg7y-y._.js +3 -0
  415. package/.next/server/chunks/[root-of-the-server]__128lq-3z36850._.js +3 -0
  416. package/.next/server/chunks/[root-of-the-server]__14g_ger_h73lc._.js +3 -0
  417. package/.next/server/chunks/[root-of-the-server]__15auml0twano9._.js +3 -0
  418. package/.next/server/chunks/[root-of-the-server]__1752yqg4c8167._.js +3 -0
  419. package/.next/server/chunks/[root-of-the-server]__189bp--__jedg._.js +3 -0
  420. package/.next/server/chunks/[root-of-the-server]__19iyo44u41f6y._.js +3 -0
  421. package/.next/server/chunks/[root-of-the-server]__1a6hu09up7_co._.js +3 -0
  422. package/.next/server/chunks/[root-of-the-server]__1a_qtu7129ho6._.js +3 -0
  423. package/.next/server/chunks/[root-of-the-server]__1add4tef8riya._.js +3 -0
  424. package/.next/server/chunks/[root-of-the-server]__1assq-8cgzn69._.js +3 -0
  425. package/.next/server/chunks/[root-of-the-server]__1bdwqmj_bolrp._.js +3 -0
  426. package/.next/server/chunks/[root-of-the-server]__1c6ti0495jkvs._.js +3 -0
  427. package/.next/server/chunks/[root-of-the-server]__1c7b35-fdxgfn._.js +3 -0
  428. package/.next/server/chunks/[root-of-the-server]__1cda8yccka8pg._.js +3 -0
  429. package/.next/server/chunks/[root-of-the-server]__1d7_aw9ogigrd._.js +3 -0
  430. package/.next/server/chunks/[root-of-the-server]__1drgctbrp51zt._.js +3 -0
  431. package/.next/server/chunks/[root-of-the-server]__1dxi3-rtvg91t._.js +3 -0
  432. package/.next/server/chunks/[root-of-the-server]__1e8_j43j1t1m3._.js +2 -2
  433. package/.next/server/chunks/[root-of-the-server]__1edl3mpo9urp-._.js +3 -0
  434. package/.next/server/chunks/[root-of-the-server]__1g-_sfdjkcyjn._.js +3 -0
  435. package/.next/server/chunks/{[root-of-the-server]__0kehix4ojdnhw._.js → [root-of-the-server]__1goozrpjh5dhf._.js} +1 -1
  436. package/.next/server/chunks/[root-of-the-server]__1hdm1t67mdd4k._.js +3 -0
  437. package/.next/server/chunks/[root-of-the-server]__1iy2ggxzd3waf._.js +3 -0
  438. package/.next/server/chunks/[root-of-the-server]__1j749v4z8i78u._.js +3 -0
  439. package/.next/server/chunks/[root-of-the-server]__1jxcq-zd_xo0q._.js +3 -0
  440. package/.next/server/chunks/[root-of-the-server]__1kucx2jgzzdfv._.js +3 -0
  441. package/.next/server/chunks/[root-of-the-server]__1kwxq6h_s1nw5._.js +3 -0
  442. package/.next/server/chunks/[root-of-the-server]__1l63lc79i6lzk._.js +3 -0
  443. package/.next/server/chunks/[root-of-the-server]__1lvrzjzsadms_._.js +3 -0
  444. package/.next/server/chunks/[root-of-the-server]__1m6lbueple6ww._.js +3 -0
  445. package/.next/server/chunks/[root-of-the-server]__1o2w0n3t390ih._.js +3 -0
  446. package/.next/server/chunks/[root-of-the-server]__1oynoaepf6enj._.js +3 -0
  447. package/.next/server/chunks/[root-of-the-server]__1p1k9cmts3crw._.js +3 -0
  448. package/.next/server/chunks/[root-of-the-server]__1purwqhaw584e._.js +3 -0
  449. package/.next/server/chunks/[root-of-the-server]__1pvdepfrlr1-e._.js +3 -0
  450. package/.next/server/chunks/[root-of-the-server]__1qe3_j74hbt45._.js +3 -0
  451. package/.next/server/chunks/[root-of-the-server]__1qmbbudn1-e1n._.js +3 -0
  452. package/.next/server/chunks/[root-of-the-server]__1qp07f8m-pjqu._.js +3 -0
  453. package/.next/server/chunks/[root-of-the-server]__1qr9n5maimy60._.js +3 -0
  454. package/.next/server/chunks/[root-of-the-server]__1qzw098fzq6r4._.js +3 -0
  455. package/.next/server/chunks/[root-of-the-server]__1r2swm8swgb8u._.js +3 -0
  456. package/.next/server/chunks/[root-of-the-server]__1s4kh7tqvbssy._.js +3 -0
  457. package/.next/server/chunks/[root-of-the-server]__1socdh68x-_68._.js +3 -0
  458. package/.next/server/chunks/[root-of-the-server]__1t9nlkh7u11c9._.js +3 -0
  459. package/.next/server/chunks/[root-of-the-server]__1th48iu_ygy4m._.js +3 -0
  460. package/.next/server/chunks/[root-of-the-server]__1tznn8iry7lns._.js +3 -0
  461. package/.next/server/chunks/[root-of-the-server]__1u64nidrg-gwq._.js +3 -0
  462. package/.next/server/chunks/[root-of-the-server]__1uxhodktwnw08._.js +3 -0
  463. package/.next/server/chunks/[root-of-the-server]__1uxxzcdw7avod._.js +3 -0
  464. package/.next/server/chunks/[root-of-the-server]__1v6k289his7kx._.js +3 -0
  465. package/.next/server/chunks/[root-of-the-server]__1y-867werf6-u._.js +3 -0
  466. package/.next/server/chunks/[root-of-the-server]__20an2fcjw_r3_._.js +3 -0
  467. package/.next/server/chunks/[root-of-the-server]__20vr6ko8apn2_._.js +3 -0
  468. package/.next/server/chunks/[root-of-the-server]__2113u3fu2bhjr._.js +3 -0
  469. package/.next/server/chunks/_0-cbnx3g3djb0._.js +3 -0
  470. package/.next/server/chunks/_00vu1-junzbq-._.js +3 -0
  471. package/.next/server/chunks/_011-ll5i30j2e._.js +1 -1
  472. package/.next/server/chunks/_029zt0rilrwvt._.js +1 -1
  473. package/.next/server/chunks/_02h2mvtyvz-d4._.js +3 -0
  474. package/.next/server/chunks/{_0tkov27xr068i._.js → _02qwqg9i39x4_._.js} +3 -3
  475. package/.next/server/chunks/_03ovgh1-4xf3f._.js +1 -1
  476. package/.next/server/chunks/_04yszb9aq_8-5._.js +3 -0
  477. package/.next/server/chunks/_06pseal2zu-71._.js +1 -1
  478. package/.next/server/chunks/_07_mi9-a9cp01._.js +3 -0
  479. package/.next/server/chunks/_08i9pskmlafnp._.js +1 -1
  480. package/.next/server/chunks/_0_3_65z6ak-5i._.js +1 -1
  481. package/.next/server/chunks/_0_5s2mrhxb3-u._.js +1 -1
  482. package/.next/server/chunks/_0b2q7l141kz7e._.js +3 -0
  483. package/.next/server/chunks/_0d66myj_8567o._.js +1 -1
  484. package/.next/server/chunks/_0dnqbyfo7_68d._.js +3 -0
  485. package/.next/server/chunks/_0fvn09pm56f5c._.js +3 -0
  486. package/.next/server/chunks/_0h1rbua_hqkox._.js +1 -1
  487. package/.next/server/chunks/_0i58-g30ox5-8._.js +1 -1
  488. package/.next/server/chunks/_0ji5ibtw-dxaz._.js +3 -0
  489. package/.next/server/chunks/_0l_1b3meaox2k._.js +3 -0
  490. package/.next/server/chunks/_0ljzic33s4u5j._.js +3 -0
  491. package/.next/server/chunks/_0mq_6jxyfb22z._.js +3 -0
  492. package/.next/server/chunks/_0msz759j3_j49._.js +3 -0
  493. package/.next/server/chunks/_0mt2ctbvzfero._.js +1 -1
  494. package/.next/server/chunks/_0oppr1mpoh25l._.js +3 -0
  495. package/.next/server/chunks/_0pthtmszsqkbw._.js +3 -0
  496. package/.next/server/chunks/_0qabe5g22z5te._.js +3 -0
  497. package/.next/server/chunks/_0qsv4bj01yqql._.js +3 -0
  498. package/.next/server/chunks/_0r8u30vd4lix4._.js +1 -1
  499. package/.next/server/chunks/_0t2z6hqe_64cx._.js +3 -0
  500. package/.next/server/chunks/_0tl0cy5j96d7h._.js +1 -1
  501. package/.next/server/chunks/_0vl9yb309ero1._.js +3 -0
  502. package/.next/server/chunks/_0xrmor_-l-mb7._.js +3 -0
  503. package/.next/server/chunks/_0zs7jfzzshbfq._.js +1 -1
  504. package/.next/server/chunks/_12dxzk9gyci2a._.js +3 -0
  505. package/.next/server/chunks/_12i51zlq-xxrl._.js +1 -1
  506. package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
  507. package/.next/server/chunks/_12xi_xqvtrn3k._.js +1 -1
  508. package/.next/server/chunks/_14l8uqb__fhx_._.js +3 -0
  509. package/.next/server/chunks/_18hm5aaxkr500._.js +1 -1
  510. package/.next/server/chunks/_1a1aqmie1d3u_._.js +1 -1
  511. package/.next/server/chunks/_1a1udq0c4_6ad._.js +1 -1
  512. package/.next/server/chunks/_1ahi8466v1b3l._.js +1 -1
  513. package/.next/server/chunks/_1b0269xt-c8f7._.js +1 -1
  514. package/.next/server/chunks/{_1638xaazsmf2m._.js → _1csx8ckltgali._.js} +3 -3
  515. package/.next/server/chunks/_1cydcmia78z15._.js +1 -1
  516. package/.next/server/chunks/_1ds1oiznivdbk._.js +3 -0
  517. package/.next/server/chunks/_1e8w9uuebtrcb._.js +1 -1
  518. package/.next/server/chunks/_1eixvuh0vryjo._.js +3 -0
  519. package/.next/server/chunks/_1eqnx6dcz6a03._.js +57 -0
  520. package/.next/server/chunks/{_1vddun9dxzaqo._.js → _1gtuhmdu6udof._.js} +3 -3
  521. package/.next/server/chunks/_1h650rc49jtvn._.js +3 -0
  522. package/.next/server/chunks/_1hj7iit2u6xez._.js +1 -1
  523. package/.next/server/chunks/_1iqu8im2_w245._.js +3 -0
  524. package/.next/server/chunks/_1llkon9veg476._.js +3 -0
  525. package/.next/server/chunks/_1muwmr6j76v3m._.js +1 -1
  526. package/.next/server/chunks/_1ooq1_fguyb4w._.js +57 -0
  527. package/.next/server/chunks/_1op7hx6zu6ybj._.js +3 -0
  528. package/.next/server/chunks/_1pvqo-qnv-nqm._.js +1 -1
  529. package/.next/server/chunks/_1pzo4q3yg5f57._.js +3 -0
  530. package/.next/server/chunks/_1q65ai1_dwgjp._.js +1 -1
  531. package/.next/server/chunks/_1q6syu3thw-it._.js +3 -0
  532. package/.next/server/chunks/_1s5-ldt8xhtpp._.js +1 -1
  533. package/.next/server/chunks/_1sp0xk1c5jx5r._.js +1 -1
  534. package/.next/server/chunks/_1u9u2jcj407s4._.js +3 -0
  535. package/.next/server/chunks/_1yk4m2dpf3g7z._.js +3 -0
  536. package/.next/server/chunks/_1yvd01woddaxt._.js +16 -0
  537. package/.next/server/chunks/_1z1uutzmdk81m._.js +3 -0
  538. package/.next/server/chunks/_1z_ujac_e_65s._.js +1 -1
  539. package/.next/server/chunks/_next-internal_server_app_api_admin_eula_accept_route_actions_20oa2r1dtaq8b.js +3 -0
  540. package/.next/server/chunks/_next-internal_server_app_api_admin_telemetry_route_actions_0tkd4wktkie81.js +3 -0
  541. package/.next/server/chunks/_next-internal_server_app_api_eula_status_route_actions_1aquilgqufvjg.js +3 -0
  542. package/.next/server/chunks/_next-internal_server_app_api_telemetry_route_actions_1w3amzmkajq41.js +3 -0
  543. package/.next/server/chunks/node_modules_zod_v4_classic_external_0yua5dbpvcjkf.js +57 -0
  544. package/.next/server/chunks/src_1m8nu0emt57j7._.js +3 -0
  545. package/.next/server/chunks/src_lib_01gngn1m9i35_._.js +3 -0
  546. package/.next/server/chunks/src_lib_02gzfin88m7_c._.js +3 -0
  547. package/.next/server/chunks/src_lib_02ktrqkdh6_xt._.js +1 -1
  548. package/.next/server/chunks/src_lib_0iplyaedosuse._.js +3 -0
  549. package/.next/server/chunks/src_lib_0uv8inw48qq9_._.js +3 -0
  550. package/.next/server/chunks/src_lib_1-tyfr__vw2-e._.js +3 -0
  551. package/.next/server/chunks/src_lib_112p9x7kbw8a7._.js +3 -0
  552. package/.next/server/chunks/src_lib_11y241q--pwf_._.js +3 -0
  553. package/.next/server/chunks/src_lib_152-vqegmmtew._.js +3 -0
  554. package/.next/server/chunks/src_lib_17vggusj2wk07._.js +3 -0
  555. package/.next/server/chunks/src_lib_17ww8fw26k_5c._.js +3 -0
  556. package/.next/server/chunks/{src_lib_mastery-status_ts_0e9jnp-14tby5._.js → src_lib_19wyrgsqc6869._.js} +2 -2
  557. package/.next/server/chunks/src_lib_1bzw3hjm_9u2p._.js +3 -0
  558. package/.next/server/chunks/src_lib_1je9q_qxmd-z0._.js +3 -0
  559. package/.next/server/chunks/src_lib_1x_55q3hwt0z5._.js +3 -0
  560. package/.next/server/chunks/src_lib_1yw_vc01va60_._.js +3 -0
  561. package/.next/server/chunks/src_lib_1z24jdjfkbdxm._.js +3 -0
  562. package/.next/server/chunks/src_lib_ai_index_ts_0m0hlq4d9zy9i._.js +1 -1
  563. package/.next/server/chunks/src_lib_config_index_ts_14-9cq9wn5r30._.js +3 -0
  564. package/.next/server/chunks/src_lib_exam_exam_ts_18c3t7bnr1z5k._.js +1 -1
  565. package/.next/server/chunks/src_lib_import_import-batches_ts_0nq3mn0v5uj28._.js +1 -1
  566. package/.next/server/chunks/src_lib_import_import-tasks_ts_01f-g_upv7llt._.js +1 -1
  567. package/.next/server/chunks/src_lib_initialization_ts_0uk331d512nu-._.js +1 -55
  568. package/.next/server/chunks/src_lib_mastery_ts_0ybi94uxn8ut6._.js +1 -1
  569. package/.next/server/chunks/src_lib_minimax-code_checkin_ts_1j1mpuxc1vgoz._.js +1 -1
  570. package/.next/server/chunks/src_lib_question_0uw17e6at-i_h._.js +1 -1
  571. package/.next/server/chunks/src_lib_question_question-analysis_ts_1-3x2cfxlr3fs._.js +1 -1
  572. package/.next/server/chunks/src_lib_question_question-deduplication_ts_0gumctesi3szc._.js +1 -1
  573. package/.next/server/chunks/src_lib_tags_retag_ts_09s5xwrzcy144._.js +1 -1
  574. package/.next/server/chunks/src_lib_telemetry_scheduler_ts_1tjvqtggkqnd3._.js +3 -0
  575. package/.next/server/chunks/src_lib_telemetry_server_ts_03e7c8dt4slbj._.js +3 -0
  576. package/.next/server/chunks/src_lib_telemetry_server_ts_04s9gvl8y_-5j._.js +3 -0
  577. package/.next/server/chunks/src_lib_telemetry_server_ts_0f78qhte267bg._.js +3 -0
  578. package/.next/server/chunks/src_lib_telemetry_server_ts_0hbu8_zacpzfj._.js +3 -0
  579. package/.next/server/chunks/src_lib_telemetry_server_ts_0k44kaxm3s7b7._.js +3 -0
  580. package/.next/server/chunks/src_lib_telemetry_server_ts_0mdq-bx1yd8hn._.js +3 -0
  581. package/.next/server/chunks/src_lib_telemetry_server_ts_0ptn-gkeht1dg._.js +3 -0
  582. package/.next/server/chunks/src_lib_telemetry_server_ts_0rul_098wmjn7._.js +3 -0
  583. package/.next/server/chunks/src_lib_telemetry_server_ts_10dl7t48m7u9e._.js +3 -0
  584. package/.next/server/chunks/src_lib_telemetry_server_ts_12x72t_dxd7w6._.js +3 -0
  585. package/.next/server/chunks/src_lib_telemetry_server_ts_15p258rq4wt4n._.js +3 -0
  586. package/.next/server/chunks/src_lib_telemetry_server_ts_15u7_y30fkz4t._.js +3 -0
  587. package/.next/server/chunks/src_lib_telemetry_server_ts_19h24quae1zdn._.js +3 -0
  588. package/.next/server/chunks/src_lib_telemetry_server_ts_1gl12ssni1itx._.js +3 -0
  589. package/.next/server/chunks/src_lib_telemetry_server_ts_20_hb8la0053f._.js +3 -0
  590. package/.next/server/chunks/ssr/{[root-of-the-server]__1ynp6nm1gttsf._.js → [root-of-the-server]__07r0cyk2wiaod._.js} +1 -1
  591. package/.next/server/chunks/ssr/{[root-of-the-server]__0u9zu26bwv2sw._.js → [root-of-the-server]__09gavo7zzj_er._.js} +1 -1
  592. package/.next/server/chunks/ssr/{[root-of-the-server]__1y--gqu4r-u7n._.js → [root-of-the-server]__0_9dwjra-hhyw._.js} +1 -1
  593. package/.next/server/chunks/ssr/{[root-of-the-server]__11oag3aoydip3._.js → [root-of-the-server]__0fu4zixj0-za9._.js} +1 -1
  594. package/.next/server/chunks/ssr/[root-of-the-server]__0hwe448u3jb_t._.js +3 -0
  595. package/.next/server/chunks/ssr/{[root-of-the-server]__1u0_l34j65qiv._.js → [root-of-the-server]__0jbcpiby6tjob._.js} +1 -1
  596. package/.next/server/chunks/ssr/{[root-of-the-server]__0p9ee02rz9njl._.js → [root-of-the-server]__0r3n71d2cj4e3._.js} +1 -1
  597. package/.next/server/chunks/ssr/{[root-of-the-server]__1zupg0zigit-2._.js → [root-of-the-server]__0wggrh44x0vrr._.js} +1 -1
  598. package/.next/server/chunks/ssr/{[root-of-the-server]__09gkts39mwkt7._.js → [root-of-the-server]__0xdwwljmlu85-._.js} +1 -1
  599. package/.next/server/chunks/ssr/[root-of-the-server]__0xqrflqcz8t4j._.js +3 -0
  600. package/.next/server/chunks/ssr/[root-of-the-server]__0yizeg1yyhfse._.js +3 -0
  601. package/.next/server/chunks/ssr/{[root-of-the-server]__0qtqn7_slrnax._.js → [root-of-the-server]__0yr8no1v_1u-s._.js} +1 -1
  602. package/.next/server/chunks/ssr/{[root-of-the-server]__0oytrwzt_5qpb._.js → [root-of-the-server]__134g2tnpaqb56._.js} +1 -1
  603. package/.next/server/chunks/ssr/{[root-of-the-server]__0g3m2_o67ezes._.js → [root-of-the-server]__14--hf0oqh14t._.js} +1 -1
  604. package/.next/server/chunks/ssr/{[root-of-the-server]__1l68oxzjvj18_._.js → [root-of-the-server]__14_jos-hb89g5._.js} +1 -1
  605. package/.next/server/chunks/ssr/[root-of-the-server]__15pyhznlctw50._.js +3 -0
  606. package/.next/server/chunks/ssr/{[root-of-the-server]__09nzl4il765_h._.js → [root-of-the-server]__16l14wrfwv1gc._.js} +1 -1
  607. package/.next/server/chunks/ssr/{[root-of-the-server]__1ojkbjq8khldj._.js → [root-of-the-server]__17dyox02mhv1s._.js} +1 -1
  608. package/.next/server/chunks/ssr/{[root-of-the-server]__06epb5zt8i9nl._.js → [root-of-the-server]__17i6rp91oy5vo._.js} +1 -1
  609. package/.next/server/chunks/ssr/{[root-of-the-server]__1upuqpqeyi3o6._.js → [root-of-the-server]__18fxrwlkwgqei._.js} +1 -1
  610. package/.next/server/chunks/ssr/{[root-of-the-server]__0imb483i37k9-._.js → [root-of-the-server]__1am3lapew6zvw._.js} +1 -1
  611. package/.next/server/chunks/ssr/{[root-of-the-server]__0l_a_z149v59o._.js → [root-of-the-server]__1d9g9805jzj0h._.js} +1 -1
  612. package/.next/server/chunks/ssr/[root-of-the-server]__1de5zmmw9_i_0._.js +3 -0
  613. package/.next/server/chunks/ssr/{[root-of-the-server]__19q4cpy9jtu0k._.js → [root-of-the-server]__1ee8a1_v1nc_2._.js} +1 -1
  614. package/.next/server/chunks/ssr/{[root-of-the-server]__0gpba1ifag5cz._.js → [root-of-the-server]__1fc1plx5cvx-o._.js} +1 -1
  615. package/.next/server/chunks/ssr/{[root-of-the-server]__0lhmylur63dzg._.js → [root-of-the-server]__1hwfsg__jf-6s._.js} +1 -1
  616. package/.next/server/chunks/ssr/{[root-of-the-server]__12upjtzbfyt0p._.js → [root-of-the-server]__1lvng26o_-n10._.js} +1 -1
  617. package/.next/server/chunks/ssr/{[root-of-the-server]__1exslx8xrlonp._.js → [root-of-the-server]__1r7wmu7cq9bc5._.js} +1 -1
  618. package/.next/server/chunks/ssr/{[root-of-the-server]__1qkpcqb6ewk9r._.js → [root-of-the-server]__212x4ujehvgfr._.js} +1 -1
  619. package/.next/server/chunks/ssr/_05k02824g2tpo._.js +1 -1
  620. package/.next/server/chunks/ssr/_0xlbgtld9_r3o._.js +1 -1
  621. package/.next/server/chunks/ssr/_0znwyf0_b8ia6._.js +3 -0
  622. package/.next/server/chunks/ssr/_18c4g09vqhp-3._.js +3 -0
  623. package/.next/server/chunks/ssr/_1dx7u1_w4db4k._.js +3 -0
  624. package/.next/server/chunks/ssr/_1dzto-s5j-b6b._.js +3 -0
  625. package/.next/server/chunks/ssr/_1fx20-rihohax._.js +3 -0
  626. package/.next/server/chunks/ssr/{_0j-r3zhz2ucmg._.js → _1h4fhwg03wbzm._.js} +2 -2
  627. package/.next/server/chunks/ssr/{_0fp_p60hb9ex8._.js → _1qft_czd2ss62._.js} +2 -2
  628. package/.next/server/chunks/ssr/_next-internal_server_app_eula_page_actions_18tq_576rljb3.js +3 -0
  629. package/.next/server/chunks/ssr/{node_modules_0v4btraw_y7x2._.js → node_modules_0fzknrrqq1bjz._.js} +2 -2
  630. package/.next/server/chunks/ssr/{node_modules_1cm5684hz1o51._.js → node_modules_1m0t7n1f8dlgz._.js} +1 -1
  631. package/.next/server/chunks/ssr/{node_modules_next_dist_1gey_lsf9b_wo._.js → node_modules_1nyc7rcdp-qyz._.js} +2 -2
  632. package/.next/server/chunks/ssr/{node_modules_1im5by828hg3r._.js → node_modules_1rxrrb2v6tutq._.js} +1 -1
  633. package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_064ewwu8t3acv.js → node_modules_heic-to_dist_csp_heic-to_0mr1-2rg_ae47.js} +1 -1
  634. package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_1xp1ys7qrz7uh.js → node_modules_heic-to_dist_csp_heic-to_1m3ywmnbpcnde.js} +1 -1
  635. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_play_mjs_1al5hft92dlrg._.js +2 -2
  636. package/.next/server/chunks/ssr/node_modules_next_1uutai47hzn8q._.js +32 -0
  637. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_03wom3p0uk-9v.js +3 -0
  638. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_06g_36yw1w8hx.js +3 -0
  639. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0_e9pmhugyjn5.js +3 -0
  640. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0_sqodejj4l1-.js +3 -0
  641. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ab3lk0549xld.js +3 -0
  642. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ea7gndnxen5c.js +3 -0
  643. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0loue6y_0xsqm.js +3 -0
  644. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0srx187o85d67.js +3 -0
  645. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0zs2ei_cj_z60.js +3 -0
  646. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19g6es93ste47.js +3 -0
  647. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1aqwesdat2m1c.js +3 -0
  648. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1f4rp6x19w0vu.js +3 -0
  649. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1gap3wxqz0gtc.js +3 -0
  650. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1hmcb0hk2i14y.js +3 -0
  651. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1jhcfycewcquz.js +3 -0
  652. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1k7tflkgmqhi6.js +3 -0
  653. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1kb_ff04m4p78.js +3 -0
  654. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1kxecu5ukdyhb.js +3 -0
  655. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1lr4m6vwu8-gh.js +3 -0
  656. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1rw8e8leurt4c.js +3 -0
  657. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1w0trita-felf.js +3 -0
  658. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1whku467x2as5.js +3 -0
  659. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1wxysr9vu7w8g.js +3 -0
  660. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_20dal1y611l3i.js +3 -0
  661. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_20yzxgilgne8r.js +3 -0
  662. package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_0veaboc415l0m.js +1 -1
  663. package/.next/server/chunks/ssr/src_1gayunqs8u2e2._.js +1 -1
  664. package/.next/server/chunks/ssr/src_app_error-items_[id]_page_tsx_04xwwdmyh7_9q._.js +1 -1
  665. package/.next/server/chunks/ssr/src_app_error_tsx_0ac07bj196djj._.js +3 -0
  666. package/.next/server/chunks/ssr/src_app_error_tsx_1gs2ol2a9g-a6._.js +3 -0
  667. package/.next/server/chunks/ssr/src_app_eula_page_tsx_1_xs2xki0wk_k._.js +113 -0
  668. package/.next/server/chunks/ssr/src_app_global-error_tsx_009xrx8nk64k0._.js +3 -0
  669. package/.next/server/chunks/ssr/src_app_global-error_tsx_0w4-lfw52j65b._.js +3 -0
  670. package/.next/server/chunks/ssr/src_app_import-batches_[id]_page_tsx_0mhg_vriwmkkw._.js +1 -1
  671. package/.next/server/chunks/ssr/src_app_initialize_page_tsx_0v79s64spkms8._.js +1 -1
  672. package/.next/server/chunks/ssr/src_components_correction-editor_tsx_1p7z02t66tndx._.js +3 -3
  673. package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +12 -12
  674. package/.next/server/chunks/ssr/src_components_ui_dialog_tsx_1tn-i_6d3rhzt._.js +1 -1
  675. package/.next/server/chunks/ssr/src_contexts_LanguageContext_tsx_0r6xucmeu1k5z._.js +3 -0
  676. package/.next/server/chunks/ssr/src_lib_api-client_ts_04r2_ex-gua5i._.js +1 -1
  677. package/.next/server/chunks/ssr/src_lib_i18n_en_ts_08zkpwnoqey5s._.js +1 -1
  678. package/.next/server/instrumentation.js +1 -1
  679. package/.next/server/middleware-build-manifest.js +64 -53
  680. package/.next/server/middleware.js +1 -1
  681. package/.next/server/next-font-manifest.js +1 -1
  682. package/.next/server/next-font-manifest.json +4 -0
  683. package/.next/server/pages/500.html +1 -1
  684. package/.next/server/preview-props.json +3 -3
  685. package/.next/server/server-reference-manifest.js +1 -1
  686. package/.next/server/server-reference-manifest.json +1 -1
  687. package/.next/static/chunks/04d8bsqt1kisy.js +1 -0
  688. package/.next/static/chunks/059tntkmkgtf4.js +1 -0
  689. package/.next/static/chunks/05ag8rqhwn73b.js +31 -0
  690. package/.next/static/chunks/05o2so3pmerou.js +38 -0
  691. package/.next/static/chunks/06-rkidj4bq0l.js +1 -0
  692. package/.next/static/chunks/08s9mla4gkon2.js +1 -0
  693. package/.next/static/chunks/0b49hpru2gjb1.js +111 -0
  694. package/.next/static/chunks/{0ddn90rrjkr7y.js → 0bufg6cl_1x2h.js} +4 -4
  695. package/.next/static/chunks/0li0d9ufsgsk-.js +1 -0
  696. package/.next/static/chunks/{1ogj95u4nfqgm.js → 0lnx4h7lv4ev5.js} +7 -7
  697. package/.next/static/chunks/{01zokrwums-fz.js → 0zesew8nd2ekz.js} +1 -1
  698. package/.next/static/chunks/1797q5c62e7um.js +1 -0
  699. package/.next/static/chunks/{2eieglv-e8e1j.js → 1ti8akix3yalf.js} +1 -1
  700. package/.next/static/chunks/{3gdidqib5e1mw.js → 1u6m54j807_cw.js} +1 -1
  701. package/.next/static/chunks/26r74vzqszcs5.js +2 -0
  702. package/.next/static/chunks/{07a3zn8uvj2i0.js → 2aifo9g5v8kaq.js} +1 -1
  703. package/.next/static/chunks/2bk5f71d5ke2y.js +1 -0
  704. package/.next/static/chunks/{1bcso9y60vl1j.js → 2da48dkivw_8a.js} +1 -1
  705. package/.next/static/chunks/2e4y6sq3k0g-g.js +1 -0
  706. package/.next/static/chunks/2fkobtei061tq.js +1 -0
  707. package/.next/static/chunks/2hroxfe_3_b0q.js +1 -0
  708. package/.next/static/chunks/2n2hvugnmgoy3.js +16 -0
  709. package/.next/static/chunks/{1-qu_z3i5b8ul.js → 34wzp7ret_83-.js} +1 -1
  710. package/.next/static/chunks/3bq587l754kfc.js +198 -0
  711. package/.next/static/chunks/3bv2u8mcme1z4.css +3 -0
  712. package/.next/static/chunks/3g-l81pwd4ggm.js +1 -0
  713. package/.next/static/chunks/3m5wl0uzrt4sz.js +2 -0
  714. package/.next/static/chunks/3x6gp12gnmsl2.js +1 -0
  715. package/.next/static/chunks/446h22_i8bm1_.js +1 -0
  716. package/launcher.js +2 -0
  717. package/package.json +1 -1
  718. package/prisma/migrations/20261105060458_ai_completion/migration.sql +23 -0
  719. package/prisma/migrations/20261105065127_external_account/migration.sql +17 -0
  720. package/prisma/migrations/20261105135634_add_telemetry_tables/migration.sql +45 -0
  721. package/prisma/schema.prisma +75 -0
  722. package/prisma/seed.db +0 -0
  723. package/server.js +1 -1
  724. package/.next/server/chunks/[externals]__1anmfgb7av8ou._.js +0 -3
  725. package/.next/server/chunks/[externals]__1j5vgk-wr4vpe._.js +0 -3
  726. package/.next/server/chunks/[externals]_fs_0pplqgcyv2l7l._.js +0 -3
  727. package/.next/server/chunks/[root-of-the-server]__0-d_vh1kcmw7g._.js +0 -3
  728. package/.next/server/chunks/[root-of-the-server]__00cl_lnn-40t3._.js +0 -3
  729. package/.next/server/chunks/[root-of-the-server]__00x5ad3w5zwfp._.js +0 -3
  730. package/.next/server/chunks/[root-of-the-server]__06i2kswg2zb80._.js +0 -3
  731. package/.next/server/chunks/[root-of-the-server]__06irm2njvcb2a._.js +0 -3
  732. package/.next/server/chunks/[root-of-the-server]__07twbtie04xx6._.js +0 -3
  733. package/.next/server/chunks/[root-of-the-server]__08wrx5aay9znc._.js +0 -3
  734. package/.next/server/chunks/[root-of-the-server]__092b1e081ocu6._.js +0 -3
  735. package/.next/server/chunks/[root-of-the-server]__092h03ec6f_1u._.js +0 -3
  736. package/.next/server/chunks/[root-of-the-server]__09aolocrwucnt._.js +0 -3
  737. package/.next/server/chunks/[root-of-the-server]__0_icvdlc-nqy_._.js +0 -3
  738. package/.next/server/chunks/[root-of-the-server]__0_uup9ppknahw._.js +0 -3
  739. package/.next/server/chunks/[root-of-the-server]__0aynxvfd9wp_r._.js +0 -3
  740. package/.next/server/chunks/[root-of-the-server]__0cgpuhmu87blm._.js +0 -3
  741. package/.next/server/chunks/[root-of-the-server]__0dv_e-7ip1wts._.js +0 -3
  742. package/.next/server/chunks/[root-of-the-server]__0ej9lsrmus5m4._.js +0 -3
  743. package/.next/server/chunks/[root-of-the-server]__0f8kzoc_gaf8y._.js +0 -3
  744. package/.next/server/chunks/[root-of-the-server]__0fembrq8pciz5._.js +0 -3
  745. package/.next/server/chunks/[root-of-the-server]__0g0van70ibkrj._.js +0 -3
  746. package/.next/server/chunks/[root-of-the-server]__0g2s86ce159k0._.js +0 -3
  747. package/.next/server/chunks/[root-of-the-server]__0g848ha1gy56h._.js +0 -3
  748. package/.next/server/chunks/[root-of-the-server]__0gankrx12ee4n._.js +0 -3
  749. package/.next/server/chunks/[root-of-the-server]__0hxujtysw2kwx._.js +0 -3
  750. package/.next/server/chunks/[root-of-the-server]__0ilrqq68_5wg5._.js +0 -3
  751. package/.next/server/chunks/[root-of-the-server]__0jh610iscvrmp._.js +0 -3
  752. package/.next/server/chunks/[root-of-the-server]__0ky9-3kyba1lu._.js +0 -3
  753. package/.next/server/chunks/[root-of-the-server]__0l3io0vyav4if._.js +0 -3
  754. package/.next/server/chunks/[root-of-the-server]__0lgbdth9-z6qg._.js +0 -3
  755. package/.next/server/chunks/[root-of-the-server]__0lwuci8tnhggb._.js +0 -3
  756. package/.next/server/chunks/[root-of-the-server]__0m4dmn-gj2fnm._.js +0 -3
  757. package/.next/server/chunks/[root-of-the-server]__0mfr1ne23y4yo._.js +0 -3
  758. package/.next/server/chunks/[root-of-the-server]__0mslax132s9jp._.js +0 -3
  759. package/.next/server/chunks/[root-of-the-server]__0ntfbtwf-s7a6._.js +0 -3
  760. package/.next/server/chunks/[root-of-the-server]__0of02idkcau3l._.js +0 -3
  761. package/.next/server/chunks/[root-of-the-server]__0ohg2cyilt44e._.js +0 -3
  762. package/.next/server/chunks/[root-of-the-server]__0p8cwd_go8pid._.js +0 -3
  763. package/.next/server/chunks/[root-of-the-server]__0rsgnrk2qy8wo._.js +0 -3
  764. package/.next/server/chunks/[root-of-the-server]__0si2-m5an9zl7._.js +0 -3
  765. package/.next/server/chunks/[root-of-the-server]__0svdqovwfpro2._.js +0 -3
  766. package/.next/server/chunks/[root-of-the-server]__0tsi6_qmtro9q._.js +0 -3
  767. package/.next/server/chunks/[root-of-the-server]__0tvp4sm4zx3wt._.js +0 -3
  768. package/.next/server/chunks/[root-of-the-server]__0u1fu9dvxmlxd._.js +0 -3
  769. package/.next/server/chunks/[root-of-the-server]__0ukr4xnposhv9._.js +0 -3
  770. package/.next/server/chunks/[root-of-the-server]__0v0tr1bn12xyu._.js +0 -3
  771. package/.next/server/chunks/[root-of-the-server]__0vazs1dmyut7b._.js +0 -3
  772. package/.next/server/chunks/[root-of-the-server]__0vrag-4p6eznc._.js +0 -3
  773. package/.next/server/chunks/[root-of-the-server]__0w9f5-xtpane-._.js +0 -3
  774. package/.next/server/chunks/[root-of-the-server]__0w9x80vsjqsbt._.js +0 -3
  775. package/.next/server/chunks/[root-of-the-server]__0x76w78-o6bfn._.js +0 -3
  776. package/.next/server/chunks/[root-of-the-server]__0xobqdj2u2s67._.js +0 -3
  777. package/.next/server/chunks/[root-of-the-server]__0xwm-4fhj8j--._.js +0 -3
  778. package/.next/server/chunks/[root-of-the-server]__0y3ui5-k9baec._.js +0 -3
  779. package/.next/server/chunks/[root-of-the-server]__1-6r_3pmgkz13._.js +0 -3
  780. package/.next/server/chunks/[root-of-the-server]__10ngcci8pf29l._.js +0 -3
  781. package/.next/server/chunks/[root-of-the-server]__13u9cd4f8_gva._.js +0 -3
  782. package/.next/server/chunks/[root-of-the-server]__14e45mqzb1vjt._.js +0 -3
  783. package/.next/server/chunks/[root-of-the-server]__14jf33wwjqbw1._.js +0 -3
  784. package/.next/server/chunks/[root-of-the-server]__15dipxocczlvx._.js +0 -3
  785. package/.next/server/chunks/[root-of-the-server]__16j73gw0vaw81._.js +0 -3
  786. package/.next/server/chunks/[root-of-the-server]__176zyagwjex4i._.js +0 -3
  787. package/.next/server/chunks/[root-of-the-server]__17_lgezg_8k4-._.js +0 -3
  788. package/.next/server/chunks/[root-of-the-server]__17ed9rw-rhun-._.js +0 -3
  789. package/.next/server/chunks/[root-of-the-server]__17qr9lkc0h9ta._.js +0 -3
  790. package/.next/server/chunks/[root-of-the-server]__18axi_zdc2uzr._.js +0 -3
  791. package/.next/server/chunks/[root-of-the-server]__19kic_glbz32b._.js +0 -3
  792. package/.next/server/chunks/[root-of-the-server]__19larrqj6rokv._.js +0 -3
  793. package/.next/server/chunks/[root-of-the-server]__1ae5zzeo8_c2s._.js +0 -3
  794. package/.next/server/chunks/[root-of-the-server]__1cno0cu053una._.js +0 -3
  795. package/.next/server/chunks/[root-of-the-server]__1cowc49z-6tny._.js +0 -3
  796. package/.next/server/chunks/[root-of-the-server]__1dqb3qtykno2z._.js +0 -3
  797. package/.next/server/chunks/[root-of-the-server]__1drs4rr5x286d._.js +0 -3
  798. package/.next/server/chunks/[root-of-the-server]__1f-ve8idsq57l._.js +0 -3
  799. package/.next/server/chunks/[root-of-the-server]__1f_ztllkdhd1g._.js +0 -3
  800. package/.next/server/chunks/[root-of-the-server]__1g_f4opcfnwwl._.js +0 -3
  801. package/.next/server/chunks/[root-of-the-server]__1h0tye6lfskvl._.js +0 -3
  802. package/.next/server/chunks/[root-of-the-server]__1hnyj47zdzrxo._.js +0 -3
  803. package/.next/server/chunks/[root-of-the-server]__1iysogl93kyqq._.js +0 -3
  804. package/.next/server/chunks/[root-of-the-server]__1k0fuhrt1iiad._.js +0 -3
  805. package/.next/server/chunks/[root-of-the-server]__1ka1feeszq3gt._.js +0 -3
  806. package/.next/server/chunks/[root-of-the-server]__1ke-yb4v9knf4._.js +0 -3
  807. package/.next/server/chunks/[root-of-the-server]__1kp5acqtrdysf._.js +0 -3
  808. package/.next/server/chunks/[root-of-the-server]__1kxewr0hve3xs._.js +0 -3
  809. package/.next/server/chunks/[root-of-the-server]__1l47_6jece7bq._.js +0 -3
  810. package/.next/server/chunks/[root-of-the-server]__1m8m5io-tr21e._.js +0 -3
  811. package/.next/server/chunks/[root-of-the-server]__1nb3q3vglx569._.js +0 -3
  812. package/.next/server/chunks/[root-of-the-server]__1o42aqttqc3b8._.js +0 -3
  813. package/.next/server/chunks/[root-of-the-server]__1o9pbkx7ejxu0._.js +0 -3
  814. package/.next/server/chunks/[root-of-the-server]__1pw5kygb6kibs._.js +0 -3
  815. package/.next/server/chunks/[root-of-the-server]__1qy_fxhx5yu1t._.js +0 -3
  816. package/.next/server/chunks/[root-of-the-server]__1s-y00c3-nc_-._.js +0 -3
  817. package/.next/server/chunks/[root-of-the-server]__1sokwptzp3b3m._.js +0 -3
  818. package/.next/server/chunks/[root-of-the-server]__1vg8sj020j9pp._.js +0 -3
  819. package/.next/server/chunks/[root-of-the-server]__1vwlmzqz2r0yr._.js +0 -3
  820. package/.next/server/chunks/[root-of-the-server]__1x6r0_9_fqoy-._.js +0 -3
  821. package/.next/server/chunks/[root-of-the-server]__1xx-czpwd_ny7._.js +0 -3
  822. package/.next/server/chunks/[root-of-the-server]__1yyezurgy7e3k._.js +0 -3
  823. package/.next/server/chunks/[root-of-the-server]__1z9hl9qdokxpu._.js +0 -3
  824. package/.next/server/chunks/[root-of-the-server]__1zkrlusy_cbtj._.js +0 -3
  825. package/.next/server/chunks/[root-of-the-server]__20bo6axxlug5q._.js +0 -3
  826. package/.next/server/chunks/_04vbgvl2gl5bc._.js +0 -3
  827. package/.next/server/chunks/_05-ouasholjra._.js +0 -3
  828. package/.next/server/chunks/_0lepv-j_r8kfv._.js +0 -3
  829. package/.next/server/chunks/_0lo1_vwfiel-b._.js +0 -3
  830. package/.next/server/chunks/_0s8v0xiwcw6od._.js +0 -3
  831. package/.next/server/chunks/_1ab7h8-how0le._.js +0 -3
  832. package/.next/server/chunks/_1ad8i3ukisj99._.js +0 -3
  833. package/.next/server/chunks/_1lz-5f4_92l2u._.js +0 -3
  834. package/.next/server/chunks/_1qcv4muwnx82-._.js +0 -3
  835. package/.next/server/chunks/_1t632kndbc0tj._.js +0 -3
  836. package/.next/server/chunks/_1xx5l4x084brt._.js +0 -3
  837. package/.next/server/chunks/_1zbkha-v5mkk0._.js +0 -3
  838. package/.next/server/chunks/node_modules_zod_v4_classic_external_0qoqh-q5drsgn.js +0 -57
  839. package/.next/server/chunks/node_modules_zod_v4_classic_external_14kwlambv9opd.js +0 -3
  840. package/.next/server/chunks/node_modules_zod_v4_classic_external_17gmk506tz413.js +0 -3
  841. package/.next/server/chunks/node_modules_zod_v4_classic_external_1b_q1zc0x8d76.js +0 -3
  842. package/.next/server/chunks/node_modules_zod_v4_classic_external_1exeae-p81c94.js +0 -3
  843. package/.next/server/chunks/node_modules_zod_v4_classic_external_1giv406od1whf.js +0 -3
  844. package/.next/server/chunks/node_modules_zod_v4_classic_external_1wq100x5o7-hi.js +0 -3
  845. package/.next/server/chunks/node_modules_zod_v4_classic_external_1x8fhte3frhrw.js +0 -3
  846. package/.next/server/chunks/src_0bhf345rd7jho._.js +0 -3
  847. package/.next/server/chunks/src_lib_0dxltm34zaclb._.js +0 -3
  848. package/.next/server/chunks/src_lib_0g4wu08m-gibu._.js +0 -3
  849. package/.next/server/chunks/src_lib_0l0j89xrerf8m._.js +0 -3
  850. package/.next/server/chunks/src_lib_0n6nhl7_avcme._.js +0 -3
  851. package/.next/server/chunks/src_lib_0so-2topfosjo._.js +0 -3
  852. package/.next/server/chunks/src_lib_0z4je8wchtdws._.js +0 -3
  853. package/.next/server/chunks/src_lib_15op6xa369-51._.js +0 -3
  854. package/.next/server/chunks/src_lib_1_p9kz6i8to9n._.js +0 -3
  855. package/.next/server/chunks/src_lib_1d0nldjpxxl8t._.js +0 -3
  856. package/.next/server/chunks/src_lib_1oc3awtm80lqn._.js +0 -3
  857. package/.next/server/chunks/src_lib_1t_-lm7x_gu08._.js +0 -3
  858. package/.next/server/chunks/src_lib_constants_pagination_ts_0tz3fg9ib3b-w._.js +0 -3
  859. package/.next/server/chunks/src_lib_recoverable-response_ts_00y54idhlj_0e._.js +0 -3
  860. package/.next/server/chunks/src_lib_short-id_0adg7-htn2dq_._.js +0 -3
  861. package/.next/server/chunks/ssr/[root-of-the-server]__0py1t7q9ntzgc._.js +0 -3
  862. package/.next/server/chunks/ssr/[root-of-the-server]__12_3pzn1_i3p7._.js +0 -3
  863. package/.next/server/chunks/ssr/[root-of-the-server]__1vwegr-t8j6qe._.js +0 -3
  864. package/.next/server/chunks/ssr/_0_m51opjnip8x._.js +0 -32
  865. package/.next/server/chunks/ssr/_0qs44fqs7b5wd._.js +0 -3
  866. package/.next/server/chunks/ssr/_1cpvkaqiyve6g._.js +0 -3
  867. package/.next/server/chunks/ssr/_1d3pxsso6zv_w._.js +0 -3
  868. package/.next/server/chunks/ssr/_1ore70w45768b._.js +0 -3
  869. package/.next/server/chunks/ssr/_1sztendo5e5tf._.js +0 -3
  870. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0bew68i643j53._.js +0 -33
  871. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892nagajq.js +0 -3
  872. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0-4c5fuxx178f.js +0 -3
  873. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0-620erc29b8l.js +0 -3
  874. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_02t4jbzz34_x5.js +0 -3
  875. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_06zp_1r4dyujd.js +0 -3
  876. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_07zpyh6_aix9e.js +0 -3
  877. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_08b8vpe4ydv2l.js +0 -3
  878. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0927yli_zsjiv.js +0 -3
  879. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ab39qicq17ku.js +0 -3
  880. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d5g5-w_y282q.js +0 -3
  881. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0dq5iwc4xesq1.js +0 -3
  882. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0g591s5nyuj20.js +0 -3
  883. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0mfa8uq-ofoud.js +0 -3
  884. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0pdc0gl8iqtfa.js +0 -3
  885. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0tz1eth8tnoyx.js +0 -3
  886. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_14rvnul2svrv8.js +0 -3
  887. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_15yshykizhy_t.js +0 -3
  888. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_17vx074zs1h7f.js +0 -3
  889. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_18uzvmzy5tpu_.js +0 -3
  890. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_196bmtjcgr159.js +0 -3
  891. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1a9z9hjfg293y.js +0 -3
  892. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1aq9r3iw9g7qi.js +0 -3
  893. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1e1odqisoi2pv.js +0 -3
  894. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1l6unubiwsg9f.js +0 -3
  895. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1ya73f4o4_7mr.js +0 -3
  896. package/.next/static/chunks/0a-rekt06v0sv.js +0 -1
  897. package/.next/static/chunks/0mnb66hvp3czv.js +0 -2
  898. package/.next/static/chunks/0mun2h4uaj4eh.js +0 -1
  899. package/.next/static/chunks/0qb4cgf04m6y_.js +0 -1
  900. package/.next/static/chunks/0ykhi6pk49so-.js +0 -1
  901. package/.next/static/chunks/0zx49lemqph3o.js +0 -1
  902. package/.next/static/chunks/185736qwog1ar.js +0 -1
  903. package/.next/static/chunks/1jsd1qdcjh3ht.js +0 -198
  904. package/.next/static/chunks/1k2m_f0nu22fb.js +0 -1
  905. package/.next/static/chunks/1nef598mkxf9g.js +0 -1
  906. package/.next/static/chunks/2-m8at3d9m9fl.js +0 -38
  907. package/.next/static/chunks/21jkvmvb2mzaa.js +0 -1
  908. package/.next/static/chunks/21qaa-gzvurvc.js +0 -1
  909. package/.next/static/chunks/263d57goy87o4.js +0 -31
  910. package/.next/static/chunks/343yopry-myz8.js +0 -2
  911. package/.next/static/chunks/3_5fscrh8uxav.css +0 -3
  912. package/.next/static/chunks/3lvul9moygg-1.js +0 -16
  913. /package/.next/static/{oMYEAS-Ug2KhwHuve1br9 → T6hfqhqpSQ_GF78vCYl3P}/_buildManifest.js +0 -0
  914. /package/.next/static/{oMYEAS-Ug2KhwHuve1br9 → T6hfqhqpSQ_GF78vCYl3P}/_clientMiddlewareManifest.js +0 -0
  915. /package/.next/static/{oMYEAS-Ug2KhwHuve1br9 → T6hfqhqpSQ_GF78vCYl3P}/_ssgManifest.js +0 -0
@@ -0,0 +1,38 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var t=e.i(456420);let n={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],711241)},77043,e=>{var t=e.i(456420);let n={name:"printer",size:24,node:[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],77043)},580685,e=>{var t=e.i(843476),n=e.i(271645),a=e.i(618566),i=e.i(762368),l=e.i(77043),s=e.i(519455),r=e.i(257428),c=e.i(967489),o=e.i(590546),u=e.i(339023),m=e.i(111110),d=e.i(35209),x=e.i(41931);let h=`
2
+ .exam-sheet { max-width: 210mm; margin: 0 auto; padding: 16px; color: #111; background: #fff; color-scheme: light; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; }
3
+ .exam-sheet h1 { text-align: center; font-size: 22px; margin: 0 0 8px; }
4
+ .exam-sheet .exam-full-score { text-align: center; font-size: 14px; margin: 0 0 8px; }
5
+ .exam-sheet .exam-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: 14px; margin-bottom: 20px; }
6
+ .exam-sheet .exam-meta span { min-width: 120px; }
7
+ .exam-sheet .exam-question { break-inside: avoid; page-break-inside: avoid; padding: 12px 0; border-bottom: 1px dashed #ccc; }
8
+ .exam-sheet .exam-question-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
9
+ .exam-sheet .exam-source { font-family: ui-monospace, Menlo, monospace; font-weight: 400; font-size: 12px; color: #666; white-space: nowrap; }
10
+ .exam-sheet .exam-answer-space { min-height: 0; }
11
+ .exam-sheet .exam-answer-key { break-before: page; page-break-before: always; padding-top: 8px; }
12
+ .exam-sheet .exam-answer-key h2 { text-align: center; font-size: 18px; margin: 0 0 12px; }
13
+ .exam-sheet .exam-label { font-weight: 600; color: #444; }
14
+ /* 按题型分大题的标题行:加粗、上下边框,黑白打印醒目 */
15
+ .exam-sheet .exam-section-head { break-after: avoid; page-break-after: avoid; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 4px; padding: 6px 0; border-top: 2px solid #111; border-bottom: 1px solid #111; }
16
+ .exam-sheet .exam-section-head h2 { font-size: 16px; margin: 0; }
17
+ .exam-sheet .exam-section-summary { font-size: 13px; color: #333; }
18
+ .exam-sheet .markdown-content p { margin: 4px 0; }
19
+ .exam-sheet .markdown-content img { max-width: 100%; }
20
+ .exam-sheet .question-figure { margin: 8px 0; break-inside: avoid; page-break-inside: avoid; }
21
+ .exam-sheet .question-figure img { display: block; margin: 0 auto; max-width: 100%; max-height: 360px; background: #fff; }
22
+ .exam-sheet .markdown-content table { border-collapse: collapse; }
23
+ .exam-sheet .markdown-content td, .exam-sheet .markdown-content th { border: 1px solid #999; padding: 2px 6px; }
24
+ @media print { .exam-sheet { padding: 0; max-width: none; } .exam-sheet .figure-scale-editor-controls, .exam-sheet .answer-space-controls { display: none; } @page { size: A4; margin: 15mm; } }
25
+ `;function f(e){return e.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}var p=e.i(122330),g=e.i(442861),b=e.i(520732),j=e.i(511445),w=e.i(84583),v=e.i(920808),y=e.i(763896),S=e.i(336653);function _({question:e,displayNumber:n,scoreUnit:a,answerSpace:i,customSpaces:l,uniformPreview:s,onSaveFigureScale:r,onChangeCustomSpace:c}){let o,{t:u}=(0,m.b)();return(0,t.jsxs)("section",{className:"exam-question",children:[(0,t.jsxs)("div",{className:"exam-question-head",children:[(0,t.jsxs)("span",{children:[n,".","number"==typeof e.score&&`(${(0,y.s)(e.score)} ${a})`]}),(0,t.jsxs)("span",{className:"exam-source",children:[u.exam.sourceLabel,": ",e.sourceShortId]})]}),(0,t.jsx)(v.f,{content:e.questionText}),(0,t.jsx)(b.f,{svg:e.figureSvg,scale:e.figureScale,align:e.figureAlign,previewScaleOverride:s.scale,previewAlignOverride:s.align,onSave:(t,n)=>r(e.id,t,n)},`${e.id}-${e.figureScale??100}-${e.figureAlign??"center"}`),(o=(0,p.z)(i,e.questionText,l[e.id]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"exam-answer-space",style:{minHeight:`${o}px`}}),(0,t.jsx)(w.f,{effectivePx:o,isCustom:"number"==typeof l[e.id],onChange:t=>c(e.id,t),onReset:()=>c(e.id,null)})]}))]})}function k({section:e}){let{t:n}=(0,m.b)(),a=null!==e.scoreTotal?n.exam.sectionSummaryScored.replace("{count}",String(e.count)).replace("{total}",String(e.scoreTotal)):n.exam.sectionSummary.replace("{count}",String(e.count));return(0,t.jsxs)("div",{className:"exam-section-head",children:[(0,t.jsx)("h2",{children:e.title}),(0,t.jsxs)("span",{className:"exam-section-summary",children:[a,null!==e.scoreTotal&&e.unscored>0&&(0,t.jsxs)("span",{children:["(",n.exam.sectionSummaryUnscored.replace("{count}",String(e.unscored)),")"]})]})]})}let N=(0,n.forwardRef)(function({paper:e,includeAnswers:n,answerSpace:a,customSpaces:i,uniformPreview:l,onSaveFigureScale:s,onChangeCustomSpace:r},c){let{t:o,language:u}=(0,m.b)(),d=e.questions.filter(e=>"ready"===e.status&&e.questionText),x=(0,y.n)(d.map(e=>e.score??null)).total,h="en"===u?"pts":"分",f=e.groupByType?(0,S.f)(d,u):null,p=(e,n)=>(0,t.jsx)(_,{question:e,displayNumber:n,scoreUnit:h,answerSpace:a,customSpaces:i,uniformPreview:l,onSaveFigureScale:s,onChangeCustomSpace:r},e.id),g=e=>e.map(e=>(0,t.jsxs)("div",{className:"exam-question",children:[(0,t.jsxs)("div",{className:"exam-question-head",children:[(0,t.jsxs)("span",{children:[e.displayNumber,"."]}),(0,t.jsxs)("span",{className:"exam-source",children:[o.exam.sourceLabel,": ",e.question.sourceShortId]})]}),e.question.answerText&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"exam-label",children:[o.exam.answerLabel,o.common.colon]}),(0,t.jsx)(j.f,{content:e.question.answerText})]}),e.question.analysis&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"exam-label",children:[o.exam.analysisLabel,o.common.colon]}),(0,t.jsx)(j.f,{content:e.question.analysis})]})]},e.question.id));return(0,t.jsxs)("div",{ref:c,className:"exam-sheet",children:[(0,t.jsx)("h1",{children:e.title}),null!==x&&(0,t.jsx)("p",{className:"exam-full-score",children:o.exam.fullScore.replace("{total}",(0,y.s)(x))}),(0,t.jsxs)("div",{className:"exam-meta",children:[(0,t.jsxs)("span",{children:[o.exam.nameLine,o.common.colon,"________"]}),(0,t.jsxs)("span",{children:[o.exam.dateLine,o.common.colon,"________"]}),(0,t.jsxs)("span",{children:[o.exam.scoreLine,o.common.colon,"________"]})]}),f?f.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(k,{section:e}),e.items.map(e=>p(e.question,e.displayNumber))]},e.title)):d.map((e,t)=>p(e,t+1)),n&&(0,t.jsxs)("section",{className:"exam-answer-key",children:[(0,t.jsx)("h2",{children:o.exam.answerKey}),f?f.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(k,{section:e}),g(e.items)]},e.title)):g(d.map((e,t)=>({question:e,displayNumber:t+1})))]})]})}),z=[];e.s(["default",0,function(){let e=(0,a.useParams)(),{t:b,language:j}=(0,m.b)(),[w,v]=(0,n.useState)(null);(0,d.f)(b.exam.title,w?.title,b.pageTitle.examPrint);let[y,S]=(0,n.useState)(!0),[_,k]=(0,n.useState)(p.q),[C,I]=(0,n.useState)({scale:null,align:null}),q=(0,n.useRef)(null),A=w?.id,$=(0,n.useCallback)(async e=>{if(A){if(e.length>1&&e.every(e=>null===e.answerSpacePx))return void await x.k.patch(`/api/exams/${A}`,{answerSpacePx:null});await Promise.all(e.map(({id:e,answerSpacePx:t})=>x.k.patch(`/api/exams/${A}`,{questionId:e,answerSpacePx:t})))}},[A]),{customSpaces:T,setSpace:F,resetAll:M,saveFailed:R}=(0,g.f)(w?.questions??z,$);if((0,n.useEffect)(()=>{let e=null;try{e=localStorage.getItem(p.p)}catch{}(0,p.I)(e)&&k(e)},[]),(0,n.useEffect)(()=>{x.k.get(`/api/exams/${e.id}`).then(v).catch(()=>v(null))},[e.id]),!w)return(0,t.jsx)("div",{className:"p-8 text-center",children:b.common.loading});let V=w.questions.filter(e=>"ready"===e.status&&e.questionText&&!!e.figureSvg),P=w.questions.filter(e=>"ready"===e.status&&e.questionText).length,L=async(e,t,n)=>{await x.k.patch(`/api/exams/${w.id}`,{questionId:e,figureScale:t,figureAlign:n}),v(a=>a?{...a,questions:a.questions.map(a=>a.id===e?{...a,figureScale:t,figureAlign:n}:a)}:a)},O=async e=>{await x.k.patch(`/api/exams/${w.id}`,e),v(t=>t?{...t,questions:t.questions.map(t=>({...t,...e}))}:t)};return(0,t.jsxs)("main",{className:"min-h-screen bg-white",children:[(0,t.jsx)("style",{children:h}),(0,t.jsx)("div",{className:"print:hidden sticky top-0 z-10 border-b bg-background p-3 shadow-sm",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto flex flex-wrap items-center gap-3",children:[(0,t.jsx)(o.f,{fallbackUrl:`/exams/${w.id}`}),(0,t.jsx)("span",{className:"font-semibold",children:b.exam.printTitle}),(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(r.f,{checked:y,onCheckedChange:e=>S(!0===e)}),b.exam.includeAnswers]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)("span",{className:"shrink-0",children:b.exam.answerSpace}),(0,t.jsxs)(c.d,{value:_,onValueChange:e=>{if((0,p.I)(e)){k(e);try{localStorage.setItem(p.p,e)}catch{}}},children:[(0,t.jsx)(c.P,{className:"h-8 w-40",children:(0,t.jsx)(c.U,{})}),(0,t.jsxs)(c.r,{children:[(0,t.jsx)(c.T,{value:"auto",children:b.exam.answerSpaceAuto}),(0,t.jsx)(c.T,{value:"none",children:b.exam.answerSpaceNone}),(0,t.jsx)(c.T,{value:"small",children:b.exam.answerSpaceSmall}),(0,t.jsx)(c.T,{value:"medium",children:b.exam.answerSpaceMedium}),(0,t.jsx)(c.T,{value:"large",children:b.exam.answerSpaceLarge})]})]}),Object.keys(T).length>0&&(0,t.jsx)(s.f,{type:"button",variant:"ghost",size:"sm",onClick:M,children:b.exam.resetAllQuestionAnswerSpaces})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 sm:ml-auto",children:[(0,t.jsxs)(s.f,{variant:"outline",size:"sm",onClick:()=>{var e;if(!q.current)return;let t=q.current.cloneNode(!0);t.querySelectorAll(".figure-scale-editor-controls, .answer-space-controls, .print\\:hidden").forEach(e=>e.remove());let n=function(e,t,n="zh-CN"){return`<!doctype html>
26
+ <html lang="${f(n)}">
27
+ <head>
28
+ <meta charset="utf-8">
29
+ <meta name="viewport" content="width=device-width, initial-scale=1">
30
+ <title>${f(e)}</title>
31
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.19.1/dist/katex.min.css">
32
+ <style>body { margin: 0; background: #fff; }${h}</style>
33
+ </head>
34
+ <body>
35
+ ${t}
36
+ </body>
37
+ </html>
38
+ `}(w.title,t.outerHTML,"en"===j?"en":"zh-CN"),a=URL.createObjectURL(new Blob([n],{type:"text/html;charset=utf-8"})),i=document.createElement("a");i.href=a,e=w.title,i.download=`${e.replace(/[\\/:*?"<>|\s]+/g,"_").slice(0,80)||"exam"}.html`,i.click(),URL.revokeObjectURL(a)},children:[(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4"}),b.exam.downloadHtml]}),(0,t.jsxs)(s.f,{size:"sm",onClick:()=>window.print(),children:[(0,t.jsx)(l.f,{className:"mr-2 h-4 w-4"}),b.exam.printNow]})]}),"auto"===_&&(0,t.jsx)("p",{className:"w-full text-xs text-muted-foreground",children:b.exam.answerSpaceAutoHint}),R&&(0,t.jsx)("p",{className:"w-full text-xs text-destructive",children:b.exam.answerSpaceSaveFailed}),P<w.questions.length&&(0,t.jsx)("p",{className:"w-full text-xs text-muted-foreground",children:b.exam.notReadyHint}),V.length>0&&(0,t.jsx)(u.f,{scales:V.map(e=>e.figureScale),aligns:V.map(e=>e.figureAlign),onPreviewChange:I,onSave:O})]})}),(0,t.jsx)(N,{ref:q,paper:w,includeAnswers:y,answerSpace:_,customSpaces:T,uniformPreview:C,onSaveFigureScale:L,onChangeCustomSpace:F})]})}],580685)},520732,e=>{var t=e.i(843476),n=e.i(271645),a=e.i(149704),i=e.i(519455),l=e.i(793479),s=e.i(111110),r=e.i(294114),c=e.i(184110),o=e.i(201276);e.s(["f",0,function({svg:e,scale:u,align:m,previewScaleOverride:d,previewAlignOverride:x,onSave:h}){let{t:f}=(0,s.b)(),p=(0,n.useId)(),g=(0,c.V)(u),b=(0,c.o)(m),[j,w]=(0,n.useState)(null),[v,y]=(0,n.useState)(null),[S,_]=(0,n.useState)(!1),k=j??String(g),N=""!==k.trim()&&(0,c.x)(Number(k)),z=N?Number(k):g,C=v??b,I=d??z,q=x??C,A=null!==j&&(!N||Number(k)!==g)||null!==v&&v!==b;if(!e)return null;let $=async e=>{if(e.preventDefault(),N&&A&&!S){_(!0);try{await h(z,C),w(null),y(null),r.c.success(f.common.messages.saveSuccess)}catch(e){o.V.error("[FigureScale]","保存配图比例失败",{error:e}),r.c.error(f.common.messages.saveFailed)}finally{_(!1)}}};return(0,t.jsxs)("div",{children:[(0,t.jsx)(a.f,{svg:e,scale:I,align:q}),(0,t.jsxs)("form",{onSubmit:$,className:"figure-scale-editor-controls space-y-2 rounded-md border p-3 print:hidden",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[(0,t.jsx)("label",{htmlFor:p,children:f.figure.scale}),(0,t.jsx)(l.f,{id:p,type:"number",min:c._,max:c.a,step:1,value:k,disabled:S,"aria-describedby":`${p}-hint`,"aria-invalid":!N,onChange:e=>w(e.target.value),className:"h-8 w-20"}),(0,t.jsx)("span",{children:"%"}),(0,t.jsx)(i.f,{type:"button",variant:"outline",size:"sm",disabled:S||N&&z===c.n,onClick:()=>w(String(c.n)),children:f.figure.resetScale}),(0,t.jsxs)("div",{role:"group","aria-label":f.figure.align,className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:f.figure.align}),c.j.map(e=>(0,t.jsx)(i.f,{type:"button",variant:C===e?"default":"outline",size:"sm",disabled:S,"aria-pressed":C===e,onClick:()=>y(e===b?null:e),children:f.figure.aligns[e]},e))]}),(0,t.jsx)(i.f,{type:"submit",size:"sm",disabled:S||!A||!N,children:S?f.common.progress.saving:f.common.save}),A&&(0,t.jsx)(i.f,{type:"button",variant:"ghost",size:"sm",disabled:S,onClick:()=>{w(null),y(null)},children:f.common.cancel})]}),(0,t.jsx)("input",{type:"range",min:c._,max:c.a,step:1,value:z,disabled:S,"aria-label":f.figure.scaleSlider,"aria-describedby":`${p}-hint`,onChange:e=>w(e.target.value),className:"block h-6 w-full max-w-sm accent-primary"}),(0,t.jsx)("p",{id:`${p}-hint`,className:"text-xs text-muted-foreground",children:f.figure.scaleHint})]})]})}])},339023,763896,336653,e=>{var t=e.i(843476),n=e.i(271645),a=e.i(519455),i=e.i(793479),l=e.i(111110),s=e.i(294114),r=e.i(184110),c=e.i(201276);function o(e){let t=0,n=0;for(let a of e)"number"==typeof a&&Number.isFinite(a)&&(t+=1,n+=a);return{scored:t,unscored:e.length-t,total:t>0?Math.round(10*n)/10:null}}e.s(["f",0,function({scales:e,aligns:o,onPreviewChange:u,onSave:m}){let{t:d}=(0,l.b)(),x=(0,n.useId)(),h=e.map(r.V),f=new Set(h).size<=1,p=h[0]??r.n,g=(o??e.map(()=>r.E)).map(r.o),b=new Set(g).size<=1,j=g[0]??r.E,[w,v]=(0,n.useState)(null),[y,S]=(0,n.useState)(null),[_,k]=(0,n.useState)(!1);if(0===e.length)return null;let N=w??String(p),z=""!==N.trim()&&(0,r.x)(Number(N)),C=z?Number(N):p,I=y??j,q=null!==w||null!==y,A=null!==w?!z||!f||Number(N)!==p:!q&&!f,$=null!==y?!b||y!==j:!q&&!b,T=A||$,F=(e,t)=>{let n=null!==e&&""!==e.trim()&&(0,r.x)(Number(e))?Number(e):null;u?.({scale:n,align:t})},M=e=>{v(e),F(e,y)},R=async e=>{if(e.preventDefault(),z&&T&&!_){k(!0);try{let e={};null===w&&(q||f)||(e.figureScale=C),null===y&&(q||b)||(e.figureAlign=I),await m(e),v(null),S(null),u?.({scale:null,align:null}),s.c.success(d.common.messages.saveSuccess)}catch(e){c.V.error("[ExamFigureScale]","统一保存试卷配图设置失败",{error:e}),s.c.error(d.common.messages.saveFailed)}finally{k(!1)}}};return(0,t.jsxs)("form",{onSubmit:R,className:"figure-scale-editor-controls w-full space-y-2 rounded-md border bg-background p-3 print:hidden",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[(0,t.jsx)("label",{htmlFor:x,className:"font-medium",children:d.exam.uniformFigureScale}),(0,t.jsx)(i.f,{id:x,type:"number",min:r._,max:r.a,step:1,value:N,disabled:_,"aria-describedby":`${x}-hint`,"aria-invalid":!z,onChange:e=>M(e.target.value),className:"h-8 w-20"}),(0,t.jsx)("span",{children:"%"}),(0,t.jsx)(a.f,{type:"button",variant:"outline",size:"sm",disabled:_||f&&z&&C===r.n,onClick:()=>M(String(r.n)),children:d.figure.resetScale}),(0,t.jsxs)("div",{role:"group","aria-label":d.exam.uniformFigureAlign,className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:d.exam.uniformFigureAlign}),r.j.map(e=>(0,t.jsx)(a.f,{type:"button",variant:I===e&&(null!==y||b)?"default":"outline",size:"sm",disabled:_,"aria-pressed":I===e&&(null!==y||b),onClick:()=>{var t;S(t=b&&e===j?null:e),F(w,t)},children:d.figure.aligns[e]},e))]}),(0,t.jsx)(a.f,{type:"submit",size:"sm",disabled:_||!T||!z,children:_?d.common.progress.saving:d.common.save}),q&&(0,t.jsx)(a.f,{type:"button",variant:"ghost",size:"sm",disabled:_,onClick:()=>{v(null),S(null),u?.({scale:null,align:null})},children:d.common.cancel})]}),(0,t.jsx)("input",{type:"range",min:r._,max:r.a,step:1,value:C,disabled:_,"aria-label":d.exam.uniformFigureScaleSlider,"aria-describedby":`${x}-hint`,onChange:e=>M(e.target.value),className:"block h-6 w-full max-w-sm accent-primary"}),(0,t.jsx)("p",{id:`${x}-hint`,className:"text-xs text-muted-foreground",children:d.exam.uniformFigureScaleHint})]})}],339023),e.s(["D",0,1e3,"s",0,function(e){return Number.isInteger(e)?String(e):e.toFixed(1)},"H",0,function(e){return null===e||"number"!=typeof e||!Number.isFinite(e)||e<.001||e>1e3||Math.abs(10*e-Math.round(10*e))>1e-6?null:Math.round(10*e)/10},"n",0,o],763896);var u=e.i(401280);let m=["一","二","三","四","五","六","七","八","九","十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十"],d=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"];e.s(["f",0,function(e,t){let n=new Map;for(let e of u.V)n.set(e,[]);for(let t of[...e].sort((e,t)=>e.order-t.order))n.get(function(e){let t=e.questionType??e.errorItemQuestionType??null;return u.V.includes(t??"")?t:"other"}(t)).push(t);let a=[],i=1,l=0;for(let e of u.V){let s=n.get(e);if(0===s.length)continue;let r=o(s.map(e=>e.score??null));a.push({type:"other"===e?null:e,title:function(e,t,n){let a="zh"===n?u.H[e]:u.u[e];return"zh"===n?`${m[t]}、${a}`:`Part ${d[t]}. ${a}`}(e,l,t),items:s.map(e=>({question:e,displayNumber:i++})),count:s.length,scoreTotal:r.total,unscored:r.unscored}),l+=1}return a}],336653)},84583,920808,e=>{var t=e.i(843476),n=e.i(519455),a=e.i(111110),i=e.i(122330);e.s(["f",0,function({effectivePx:e,isCustom:l,onChange:s,onReset:r}){let{t:c}=(0,a.b)(),o=(0,i.O)(e);return(0,t.jsxs)("div",{className:"answer-space-controls print:hidden flex flex-wrap items-center gap-2 text-xs text-muted-foreground mt-2 pt-1",children:[(0,t.jsxs)("span",{children:[c.exam.questionAnswerSpace,": ",o,"px"]}),(0,t.jsx)(n.f,{type:"button",variant:"outline",size:"sm",className:"h-6 px-2 text-xs","aria-label":c.exam.decreaseAnswerSpace,disabled:o<=i.r,onClick:()=>s((0,i.O)(o-i.W)),children:"-"}),(0,t.jsx)("input",{type:"range",min:i.r,max:i.R,step:10,value:o,"aria-label":c.exam.questionAnswerSpaceSlider,onChange:e=>s((0,i.O)(Number(e.target.value))),className:"w-24 sm:w-32 accent-primary"}),(0,t.jsx)(n.f,{type:"button",variant:"outline",size:"sm",className:"h-6 px-2 text-xs","aria-label":c.exam.increaseAnswerSpace,disabled:o>=i.R,onClick:()=>s((0,i.O)(o+i.W)),children:"+"}),l&&(0,t.jsx)(n.f,{type:"button",variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:r,children:c.exam.resetQuestionAnswerSpace})]})}],84583);var l=e.i(271645),s=e.i(511445),r=e.i(369939);let c=["A","B","C","D"];function o(e){return RegExp(`^(?:${e}\\s*[..::、]|[((]${e}[))])`)}function u(e){let t=e.replace(/\$+/g,"").replace(/\\[a-zA-Z]+/g,"").replace(/[{}^_\\]/g,""),n=0;for(let e of t)n+=e.codePointAt(0)>=11904?2:1;return n}let m={4:"grid-cols-2 sm:grid-cols-4 print:grid-cols-4",2:"grid-cols-1 sm:grid-cols-2 print:grid-cols-2",1:"grid-cols-1"};e.s(["f",0,function({content:e}){let n=(0,l.useMemo)(()=>(function(e){if(!e)return null;let{masked:t,segments:n}=(0,r.F)(e.replace(/\\n/g,"\n")),a=(0,r.n)(t,"\n").split("\n"),i=a.findIndex(e=>o("A").test(e.trim()));if(i<0)return null;let l=[],s=0,m=i;for(let e=i;e<a.length&&s<c.length;e+=1){let t=a[e].trim();if(!t)continue;if(!o(c[s]).test(t))break;let n=function(e,t){let n=[],a=e,i=t;for(;i<c.length;){var l;let e=a.match(o(c[i]))[0];a=a.slice(e.length);let t=i+1<c.length?a.match((l=c[i+1],RegExp(`\\s(?:${l}\\s*[..::、]|[((]${l}[))])`))):null,s=t?.index??a.length;if(n.push({label:e.trim(),content:a.slice(0,s).trim()}),i+=1,!t)break;a=a.slice(s).trimStart()}return{options:n,next:i}}(t,s);l.push(...n.options),s=n.next,m=e+1}if(l.length<3||m-i<2)return null;let d=a.slice(m).join("\n").trim();if(s<c.length&&d)return null;let x=e=>(0,r.i)(e,n),h=l.map(e=>({label:e.label,content:x(e.content)}));return{stem:x(a.slice(0,i).join("\n").trim()),options:h,after:x(d),columns:function(e){if(e.some(({content:e})=>/!\[|\|/.test(e)))return 1;let t=Math.max(...e.map(({label:e,content:t})=>u(e)+1+u(t)));return t<=14?4:t<=34?2:1}(h)}})(e),[e]);return n?(0,t.jsxs)(t.Fragment,{children:[n.stem&&(0,t.jsx)(s.f,{content:n.stem}),(0,t.jsx)("div",{className:`choice-options mb-3 grid gap-x-6 gap-y-1 ${m[n.columns]}`,children:n.options.map(e=>(0,t.jsxs)("div",{className:"flex min-w-0 items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"shrink-0",children:e.label}),(0,t.jsx)(s.f,{content:e.content,className:"flex-1 [&_p]:mb-0"})]},e.label))}),n.after&&(0,t.jsx)(s.f,{content:n.after})]}):(0,t.jsx)(s.f,{content:e})}],920808)},149704,e=>{var t=e.i(843476),n=e.i(111110),a=e.i(398019),i=e.i(184110),l=e.i(975157);let s={left:"mr-auto",center:"mx-auto",right:"ml-auto"};e.s(["f",0,function({svg:e,scale:r,align:c,className:o}){let{t:u}=(0,n.b)();if(!e)return null;let m=(0,i.V)(r),d=(0,i.o)(c);return(0,t.jsx)("figure",{className:(0,l.f)("question-figure my-3",o),children:(0,t.jsx)("img",{src:(0,a.d)(e),alt:u.figure.alt,className:(0,l.f)(s[d],"block h-auto max-w-full rounded border bg-white p-2"),style:{..."left"===d?{marginLeft:0,marginRight:"auto"}:"right"===d?{marginLeft:"auto",marginRight:0}:{},maxHeight:360,zoom:m/100,maxWidth:`${Math.min(m,100)}%`}})})}])},590546,e=>{var t=e.i(843476),n=e.i(618566),a=e.i(519455),i=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:l}){let s=(0,n.useRouter)();return(0,t.jsx)(a.f,{variant:"ghost",size:"icon",onClick:()=>{s.push(e)},className:l,children:(0,t.jsx)(i.f,{className:"h-5 w-5"})})}])},122330,e=>{let t=["auto","none","small","medium","large"],n={none:0,small:60,medium:120,large:240},a={choice:12,judgment:12,fill:16,solution:240};function i(e){return Number.isFinite(e)?Math.min(600,Math.max(0,Math.round(e))):0}let l=/(?:(?:^|[\s*+\-))::。??;;,,_])([A-D])\s*[..::]|(?:^|\s{2,}|[))::。??])([A-D])\s*、|[((]([A-D])[))])/gm,s=/判断(?:下列|以下|正误|对错|题)|对的(?:打|画)|错的(?:打|画)|true\s*(?:or|\/)\s*false/i,r=/_{2,}|(?:\\_){2,}|\\underline|\\rule\b|\\hspace\b|(\s*)|【\s*】|\[\s+\]|(?<![A-Za-z0-9_])\(\s*\)|[==]\s*[。??]?\s*$|填空/,c=/求证|证明[::,,]|写出(?:解题|计算|推导|推理)?过程|解答下列|试说明理由|请说明理由/,o=/(\s*(\d{1,2})\s*)/g,u=/(?:^|[\n。;;::??!!]\s*)\(\s*(\d{1,2})\s*\)/g;function m(e){let t=new Set;for(let n of e.matchAll(o))t.add(n[1]);for(let n of e.matchAll(u))t.add(n[1]);return Math.max(1,t.size)}e.s(["p",0,"exam-print-answer-space","W",0,20,"q",0,"auto","R",0,600,"r",0,0,"O",0,i,"I",0,function(e){return"string"==typeof e&&t.includes(e)},"T",0,function(e){return"number"!=typeof e||!Number.isInteger(e)||e<0||e>600?null:e},"z",0,function(e,t,o){let u;if("number"==typeof o&&Number.isFinite(o))return i(o);if("auto"!==e)return n[e];let d=(u=new Set(Array.from(t.matchAll(l),e=>e[1]??e[2]??e[3]))).has("A")&&u.has("B")&&u.has("C")?"choice":s.test(t)?"judgment":m(t)>1||c.test(t)?"solution":r.test(t)?"fill":"solution";if("solution"!==d)return a[d];let x=(m(t)-1)*120;return Math.min(560,a.solution+x)}])},184110,e=>{let t=["left","center","right"],n="center";function a(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,n,"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:n},"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)}`}])},442861,e=>{var t=e.i(271645),n=e.i(122330),a=e.i(201276);e.s(["f",0,function(e,i){let[l,s]=(0,t.useState)({}),[r,c]=(0,t.useState)(!1),o=(0,t.useRef)(new Map),u=(0,t.useRef)(null),m=(0,t.useRef)(i);(0,t.useEffect)(()=>{m.current=i},[i]);let d=(0,t.useMemo)(()=>{let t={};for(let a of e){let e=a.id in l?l[a.id]:(0,n.T)(a.answerSpacePx);"number"==typeof e&&(t[a.id]=e)}return t},[e,l]),x=(0,t.useCallback)(()=>{if(u.current&&(clearTimeout(u.current),u.current=null),0===o.current.size)return;let e=Array.from(o.current,([e,t])=>({id:e,answerSpacePx:t}));o.current.clear(),m.current(e).then(()=>c(!1)).catch(e=>{c(!0),a.V.error("[AnswerSpace]","Failed to save answer space",{error:e})})},[]);(0,t.useEffect)(()=>x,[x]);let h=(0,t.useCallback)((e,t)=>{if(0!==e.length){for(let{id:t,answerSpacePx:n}of(s(t=>{let n={...t};for(let{id:t,answerSpacePx:a}of e)n[t]=a;return n}),e))o.current.set(t,n);if(t)return void x();u.current&&clearTimeout(u.current),u.current=setTimeout(x,600)}},[x]),f=(0,t.useCallback)((e,t)=>{h([{id:e,answerSpacePx:t}],null===t)},[h]),p=(0,t.useCallback)(()=>{h(Object.keys(d).map(e=>({id:e,answerSpacePx:null})),!0)},[d,h]);return{customSpaces:d,setSpace:f,resetAll:p,saveFailed:r}}])},35209,e=>{var t=e.i(271645),n=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,n.b)(),i=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=i},[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}])}])})();
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,758298,e=>{"use strict";var r=e.i(843476),s=e.i(271645),t=e.i(522016),i=e.i(853138),a=e.i(395925),l=e.i(519455),o=e.i(111110),n=e.i(201276),d=e.i(983761);e.s(["default",0,function({error:e,reset:c}){let{t:u}=(0,o.b)();return(0,s.useEffect)(()=>{n.V.error("[ErrorBoundary]",e.message||"Render error",{error:e,digest:e.digest}),(0,d.P)({kind:"boundary",scope:"app.boundary",error:e})},[e]),(0,r.jsxs)("main",{className:"mx-auto flex min-h-[60vh] max-w-md flex-col items-center justify-center gap-4 px-4 text-center",children:[(0,r.jsx)(i.f,{className:"h-10 w-10 text-destructive"}),(0,r.jsx)("h1",{className:"text-xl font-semibold",children:u.errorBoundary.title}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:u.errorBoundary.desc}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row",children:[(0,r.jsxs)(l.f,{onClick:c,children:[(0,r.jsx)(a.f,{className:"mr-2 h-4 w-4"}),u.errorBoundary.retry]}),(0,r.jsx)(l.f,{variant:"outline",asChild:!0,children:(0,r.jsx)(t.default,{href:"/",children:u.errorBoundary.home})})]})]})}])}]);
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,728298,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return l}});let n=e.r(271645);function l(e,t,r){let[l,o]=(0,n.useState)(()=>({tree:e,renderTree:t,stateKey:r,next:null}));if(l.tree===e)return l;let a={tree:e,renderTree:t,stateKey:r,next:null},u=1,i=l,d=a;for(;null!==i&&u<1;){if(i.stateKey===r){d.next=i.next;break}{u++;let e={tree:i.tree,renderTree:i.renderTree,stateKey:i.stateKey,next:null};d.next=e,d=e}i=i.next}return o(a),a}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15783,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={createClientParams:function(){return o.createRenderParamsFromClient},createClientSearchParams:function(){return a.createRenderSearchParamsFromClient}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let o=e.r(797689),a=e.r(266996);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},347257,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return d}});let n=e.r(843476),l=e.r(8372),o=e.r(271645),a=e.r(33906),u=e.r(261994),i=e.r(15783);function d({Component:e,serverProvidedParams:t}){let r,s;if(null!==t)r=t.searchParams,s=t.params;else{let e=(0,o.use)(l.LayoutRouterContext);s=null!==e?e.parentParams:{},r=(0,a.urlSearchParamsToParsedUrlQuery)((0,o.use)(u.SearchParamsContext))}let c=(0,i.createClientSearchParams)(r),f=(0,i.createClientParams)(s);return(0,n.jsx)(e,{params:f,searchParams:c})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92825,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return u}});let n=e.r(843476),l=e.r(8372),o=e.r(271645),a=e.r(15783);function u({Component:e,slots:t,serverProvidedParams:r}){let i;if(null!==r)i=r.params;else{let e=(0,o.use)(l.LayoutRouterContext);i=null!==e?e.parentParams:{}}let d=(0,a.createClientParams)(i);return(0,n.jsx)(e,{...t,params:d})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},768017,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return s}});let n=e.r(190809),l=e.r(843476),o=n._(e.r(271645)),a=e.r(590373),u=e.r(754394),i=e.r(8372);class d extends o.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,u.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,u.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,a={[u.HTTPAccessErrorStatus.NOT_FOUND]:e,[u.HTTPAccessErrorStatus.FORBIDDEN]:t,[u.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let i=o===u.HTTPAccessErrorStatus.NOT_FOUND&&e,d=o===u.HTTPAccessErrorStatus.FORBIDDEN&&t,s=o===u.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return i||d||s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{name:"robots",content:"noindex"}),!1,a[o]]}):n}return n}}function s({notFound:e,forbidden:t,unauthorized:r,children:n}){let u=(0,a.useUntrackedPathname)(),c=(0,o.useContext)(i.MissingSlotContext);return e||t||r?(0,l.jsx)(d,{pathname:u,notFound:e,forbidden:t,unauthorized:r,missingSlots:c,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},877694,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return o.InstantValidationBoundaryContext},PlaceValidationBoundaryBelowThisLevel:function(){return o.PlaceValidationBoundaryBelowThisLevel},RenderValidationBoundaryAtThisLevel:function(){return o.RenderValidationBoundaryAtThisLevel},SlotMarker:function(){return o.SlotMarker}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let o=e.r(722976);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},722976,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return o},PlaceValidationBoundaryBelowThisLevel:function(){return a},RenderValidationBoundaryAtThisLevel:function(){return u},SlotMarker:function(){return i}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let o=null,a=null,u=null,i=null;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},339756,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return x},default:function(){return T}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let o=e.r(190809),a=e.r(843476),u=o._(e.r(271645)),i=e.r(8372),d=e.r(201244),s=e.r(972383),c=e.r(491915),f=e.r(358442),p=e.r(768017);e.r(877694);let y=e.r(127828),m=e.r(728298);e.r(174180);let g=e.r(261994),h=e.r(33906),b=e.r(924988);function v(e,t,r){let n=e.getClientRects();if(0===n.length)return 0;let l=1/0;for(let e=0;e<n.length;e++){let t=n[e];t.top<l&&(l=t.top)}return l>=r()&&l<=t?1:2}function P(e){let t=u.default.useRef(null);return(0,u.useLayoutEffect)(()=>{let{scrollRef:r,renderTree:n}=e,l=r.forceScroll?r.scrollRef:n.data.scrollRef;if(null===l||!l.current)return;let o=null,a=r.hashFragment;if(a){if(null===(o="top"===a?document.body:document.getElementById(a)??document.getElementsByName(a)[0]??null)){l.current=!1,r.onlyHashChange=!1,r.hashFragment=null;return}}else o=t.current;if(null===o)return;let u=!1;(0,c.disableSmoothScrollDuringRouteTransition)(()=>{let e=document.documentElement,t=null,r=null,n=null,i=()=>{var r;let l,o;return null===n&&(r=t,n=!Number.isFinite(o=Number.parseFloat(l=getComputedStyle(e).scrollPaddingTop))||o<0?0:l.endsWith("px")?o:l.endsWith("%")?o/100*r:0),n};(a||(t=e.clientHeight,0!==(r=v(o,t,i))))&&((u=!0,l.current=!1,a)?o.scrollIntoView():1!==r&&(e.scrollTop=0,2===v(o,t,i)&&o.scrollIntoView()))},{dontForceLayout:!0,onlyHashChange:r.onlyHashChange}),u&&(r.onlyHashChange=!1,r.hashFragment=null)},void 0),(0,a.jsx)(u.Fragment,{ref:t,children:e.children})}function j({children:e,renderTree:t}){let r=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,a.jsx)(P,{scrollRef:r.scrollRef,renderTree:t,children:e})}function _({tree:e,segmentPath:t,debugNameContext:r,renderTree:n,params:l,url:o,isActive:s}){let c,f=(0,u.useContext)(i.GlobalLayoutRouterContext);if((0,u.useContext)(g.NavigationPromisesContext),!f)throw Error("invariant global layout router not mounted");let p=null!==n.data.prefetchRsc?n.data.prefetchRsc:n.data.rsc,y=(0,u.useDeferredValue)(n.data.rsc,p);if((0,b.isDeferredRsc)(y)){let e=(0,u.use)(y);null===e&&(0,u.use)(d.unresolvedThenable),c=e}else null===y&&(0,u.use)(d.unresolvedThenable),c=y;let m=c;return(0,a.jsx)(i.LayoutRouterContext.Provider,{value:{parentTree:e,parentRenderTree:n,parentSegmentPath:t,parentParams:l,parentLoadingData:null,debugNameContext:r,url:o,isActive:s},children:m})}function x({loading:e,children:t}){let r=(0,u.use)(i.LayoutRouterContext);return null===r?t:(0,a.jsx)(i.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentRenderTree:r.parentRenderTree,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function O({name:e,loading:t,children:r}){if(null!==t){let n=t[0],l=t[1],o=t[2];return(0,a.jsx)(u.Suspense,{name:e,fallback:(0,a.jsxs)(a.Fragment,{children:[l,o,n]}),children:r})}return(0,a.jsx)(a.Fragment,{children:r})}function T({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:l,templateScripts:o,template:c,notFound:g,forbidden:b,unauthorized:v,segmentViewBoundaries:P}){let x=(0,u.useContext)(i.LayoutRouterContext);if(!x)throw Error("invariant expected layout router to be mounted");let{parentTree:C,parentRenderTree:S,parentSegmentPath:M,parentParams:R,parentLoadingData:F,url:B,isActive:A,debugNameContext:E}=x,k=C[0],w=null===M?[e]:M.concat([k,e]),L=C[1][e],N=S.slots?.get(e);(void 0===L||void 0===N)&&(0,u.use)(d.unresolvedThenable);let H=L[0],D=(0,y.createSegmentKey)(H),I=(0,m.useRouterBFCache)(L,N,D),V=[];do{let e=I.tree,u=I.renderTree,d=I.stateKey,y=e[0],m=R;if(Array.isArray(y)){let e=y[0],t=y[1],r=y[2],n=(0,h.getParamValueFromCacheKey)(t,r);null!==n&&(m={...R,[e]:n})}let P=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(y),x=P??E,T=void 0===P?void 0:E,C=(0,a.jsxs)(j,{renderTree:u,children:[(0,a.jsx)(s.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,a.jsx)(O,{name:T,loading:F,children:(0,a.jsx)(p.HTTPAccessFallbackBoundary,{notFound:g,forbidden:b,unauthorized:v,children:(0,a.jsxs)(f.RedirectBoundary,{children:[(0,a.jsx)(_,{url:B,tree:e,params:m,renderTree:u,segmentPath:w,debugNameContext:x,isActive:A&&d===D}),null]})})})}),null]}),S=(0,a.jsxs)(i.TemplateContext.Provider,{value:C,children:[l,o,c]},d);V.push(S),I=I.next}while(null!==I)return V}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},837457,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(190809),l=e.r(843476),o=n._(e.r(271645)),a=e.r(8372);function u(){let e=(0,o.useContext)(a.TemplateContext);return(0,l.jsx)(l.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},797689,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(806831).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},806831,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return r.status="fulfilled",r.value=e,n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},266996,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(793504).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},793504,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return r.status="fulfilled",r.value=e,n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},27201,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return l}});let n=e.r(843476),l=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})},491915,(e,t,r)=>{function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let l=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=l}e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}})},563491,e=>{var t=e.i(843476),r=e.i(271645),n=e.i(983761);e.s(["default",0,function({error:e,reset:l}){return(0,r.useEffect)(()=>{(0,n.P)({kind:"boundary",scope:"app.global",error:e})},[e]),(0,t.jsx)("html",{lang:"zh-CN",children:(0,t.jsx)("body",{style:{margin:0,fontFamily:"system-ui, -apple-system, sans-serif",background:"#fff",color:"#111"},children:(0,t.jsxs)("main",{style:{maxWidth:420,margin:"0 auto",padding:"20vh 16px",textAlign:"center"},children:[(0,t.jsx)("h1",{style:{fontSize:20,margin:"0 0 8px"},children:"页面出错了 / Something went wrong"}),(0,t.jsxs)("p",{style:{fontSize:14,color:"#555",margin:"0 0 20px"},children:["请重试或刷新页面。",(0,t.jsx)("br",{}),"Please retry or reload the page."]}),(0,t.jsx)("button",{type:"button",onClick:l,style:{padding:"8px 20px",fontSize:14,borderRadius:8,border:"none",background:"#4f46e5",color:"#fff",cursor:"pointer"},children:"重试 / Retry"})]})})})}])},983761,81968,e=>{function t(){return window.WrongNotebookAndroid??null}e.s(["f",0,t],81968);let r="/api/telemetry";function n(e){try{let t=JSON.stringify(e);if("u">typeof navigator&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(r,new Blob([t],{type:"text/plain;charset=UTF-8"})))return;"function"==typeof fetch&&fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0,credentials:"same-origin"}).catch(()=>void 0)}catch{}}function l(e){try{let t="wn-telemetry:"+e;if(sessionStorage.getItem(t))return!1;sessionStorage.setItem(t,"1")}catch{}return!0}function o(e,t){n({t:"event",name:e,...t?{payload:t}:{}})}let a=!1;e.s(["E",0,l,"J",0,function(){l("app_opened")&&o("app_opened",{client:function(){if(t())return"android";if(/Electron\//.test(navigator.userAgent))return"desktop";try{if(window.matchMedia?.("(display-mode: standalone)").matches)return"pwa"}catch{}return"browser"}()})},"P",0,function(e){if(!a){a=!0;try{let t=e.error instanceof Error?e.error:null,r=t?.name||"Error",o=t?.message??("string"==typeof e.error?e.error:String(e.error??"")),a=t?.stack??"",u=a.split("\n").find(e=>/^\s*at |@/.test(e))??o;if(!l(`error:${function(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r)|0;return(t>>>0).toString(36)}([e.kind,e.scope,r,u].join("|"))}`))return;n({t:"error",kind:e.kind,scope:e.scope,name:r.slice(0,200),message:o.slice(0,2e3),stack:a.slice(0,8e3),path:"u">typeof location?location.pathname:void 0,userAgent:"u">typeof navigator?navigator.userAgent.slice(0,500):void 0})}catch{}finally{a=!1}}},"z",0,o],983761)}])})();
@@ -0,0 +1,111 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,220730,e=>{var t=e.i(843476),n=e.i(511445),r=e.i(111110);let i={zh:`# 错题本使用协议(管理员)
2
+
3
+ 版本:v1 \xb7 生效日期:2026-11-05
4
+
5
+ > 本协议是通用模板,不构成法律意见。重要部署请自行咨询法律专业人士。
6
+
7
+ 本协议约束部署并运营错题本(wrong-notebook)实例的一方(下称“管理员”)。普通用户在实例中注册、登录和使用的流程不受本协议影响。
8
+
9
+ ## 1. 软件许可
10
+
11
+ 错题本是开源软件,按仓库中的 LICENSE(MIT 许可证)授权。本协议不限制 LICENSE 授予的任何权利;二者冲突时以 LICENSE 为准。
12
+
13
+ ## 2. 知识产权
14
+
15
+ 软件源码、名称与图标的权利归各自的权利人所有。实例中的题目、笔记、图片等内容归上传者或其权利人所有,维护者不主张任何权利。
16
+
17
+ ## 3. 数据收集
18
+
19
+ 错题本的匿名遥测分三层,均为实例级开关,由管理员在“设置 → 用户管理 → 隐私与遥测”中决定:
20
+
21
+ - **本地记录**(默认关闭):功能使用统计与错误详情只保存在本实例的数据库中,供管理员排查问题,按保留天数自动删除。
22
+ - **错误回报**(默认开启,只在本地记录或外发开启时生效):记录页面与接口的异常。
23
+ - **外发**(同意本协议后默认开启):实例定期向错题本收集服务发送匿名的功能使用统计和错误指纹。
24
+
25
+ 外发内容只有:应用版本、部署形态、事件名称及其枚举维度(如是否成功、所用 AI 服务商、耗时区间)、错误类别与 16 位错误指纹。**不包含**用户或实例标识、IP、邮箱、题目内容、OCR 文本、AI 对话、错误原文或堆栈。
26
+
27
+ 收集服务托管在 Vercel,地址为 https://wrong-notebook-telemetry.margrop.net ,只按天保存聚合计数,保留约 400 天;源码公开,数据仅维护者可见。收集服务的应用代码不保存 IP,但托管平台的访问日志会按平台策略短期保留请求来源地址。管理员可以随时关闭外发,或改为指向自建的收集服务;环境变量 \`TELEMETRY_DISABLED=true\` 会强制关闭全部遥测。
28
+
29
+ ## 4. 管理员的责任
30
+
31
+ 管理员负责实例的部署、安全与合规,包括:妥善保管账号和 API Key;按适用法律告知本实例的用户实例会收集哪些数据、发往何处;在需要时取得用户同意;遵守所接入的 AI 服务商的条款。
32
+
33
+ ## 5. 第三方服务
34
+
35
+ 实例会按管理员的配置把题目内容发送给第三方 AI 服务商进行识别和解析。这些服务由第三方按其条款提供,与本项目维护者无关。
36
+
37
+ ## 6. 免责声明
38
+
39
+ 软件按“现状”提供,不附带任何明示或默示的保证,包括但不限于适销性、特定用途适用性和不侵权的保证。AI 生成的识别、解析与批改结果可能有误,需要使用者自行判断。
40
+
41
+ ## 7. 责任限制
42
+
43
+ 在适用法律允许的最大范围内,维护者和贡献者不对因使用或无法使用本软件而产生的任何直接、间接、附带或后果性损失承担责任,包括数据丢失和业务中断。
44
+
45
+ ## 8. 终止
46
+
47
+ 管理员停止使用并删除实例即终止本协议。违反本协议时,管理员依本协议获得的权利自动终止,但不影响 LICENSE 授予的权利。
48
+
49
+ ## 9. 适用法律
50
+
51
+ 本协议受管理员所在司法辖区的法律约束。任何条款被认定无效时,不影响其余条款的效力。
52
+
53
+ ## 10. 协议变更
54
+
55
+ 协议的实质内容(权利义务、数据收集范围、外发对象)变化时会升级版本。升级后,实例会暂停外发,管理员重新同意前无法进入管理功能;普通用户的使用不受影响。
56
+ `,en:`# Wrong Notebook Administrator Agreement
57
+
58
+ Version: v1 \xb7 Effective date: 2026-11-05
59
+
60
+ > This agreement is a general template and is not legal advice. Consult a legal professional for important deployments.
61
+
62
+ This agreement applies to the party that deploys and operates a Wrong Notebook (wrong-notebook) instance (the "administrator"). It does not change how ordinary users register, sign in or use an instance.
63
+
64
+ ## 1. Software license
65
+
66
+ Wrong Notebook is open-source software licensed under the LICENSE file in its repository (MIT License). This agreement does not restrict any right granted by the LICENSE; where they conflict, the LICENSE prevails.
67
+
68
+ ## 2. Intellectual property
69
+
70
+ Rights to the source code, name and icons belong to their respective owners. Questions, notes, images and other content in an instance belong to the uploaders or their rights holders; the maintainers claim no rights to them.
71
+
72
+ ## 3. Data collection
73
+
74
+ Anonymous telemetry has three instance-level switches, controlled by the administrator under "Settings → User Management → Privacy & telemetry":
75
+
76
+ - **Local recording** (off by default): usage statistics and error details are stored only in this instance's database for troubleshooting and deleted automatically after the retention period.
77
+ - **Error reporting** (on by default, effective only when local recording or forwarding is on): records page and API errors.
78
+ - **Forwarding** (on by default after accepting this agreement): the instance periodically sends anonymous usage statistics and error fingerprints to the Wrong Notebook collection service.
79
+
80
+ Forwarded data contains only the app version, deployment platform, event names with enumerated dimensions (such as success, AI provider and duration range), error categories and 16-character error fingerprints. It **does not** contain user or instance identifiers, IP addresses, email addresses, question content, OCR text, AI conversations, error messages or stack traces.
81
+
82
+ The collection service is hosted on Vercel at https://wrong-notebook-telemetry.margrop.net . It stores only daily aggregated counts for about 400 days; its source code is public and its data is visible only to the maintainer. The service's application code does not store IP addresses, but the hosting platform's access logs keep request source addresses for a short period under the platform's policy. The administrator can turn forwarding off at any time or point it to a self-hosted collection service; the environment variable \`TELEMETRY_DISABLED=true\` forces all telemetry off.
83
+
84
+ ## 4. Administrator responsibilities
85
+
86
+ The administrator is responsible for the deployment, security and compliance of the instance, including keeping accounts and API keys safe; informing the instance's users, as required by applicable law, what data the instance collects and where it is sent; obtaining user consent where required; and following the terms of the AI providers in use.
87
+
88
+ ## 5. Third-party services
89
+
90
+ Depending on the administrator's configuration, the instance sends question content to third-party AI providers for recognition and analysis. These services are provided by third parties under their own terms and are unrelated to the project maintainers.
91
+
92
+ ## 6. Disclaimer
93
+
94
+ The software is provided "as is", without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose and non-infringement. AI-generated recognition, analysis and grading may be wrong and must be reviewed by the user.
95
+
96
+ ## 7. Limitation of liability
97
+
98
+ To the maximum extent permitted by applicable law, the maintainers and contributors are not liable for any direct, indirect, incidental or consequential damages arising from the use of or inability to use the software, including data loss and business interruption.
99
+
100
+ ## 8. Termination
101
+
102
+ This agreement ends when the administrator stops using and deletes the instance. If the administrator breaches this agreement, rights granted under it terminate automatically; rights granted by the LICENSE are not affected.
103
+
104
+ ## 9. Governing law
105
+
106
+ This agreement is governed by the laws of the administrator's jurisdiction. If any provision is held invalid, the remaining provisions stay in effect.
107
+
108
+ ## 10. Changes
109
+
110
+ The version is raised when the substance of the agreement changes (rights and obligations, scope of data collection, or forwarding recipients). After an upgrade, the instance pauses forwarding and administrators cannot use admin features until they accept again; ordinary users are not affected.
111
+ `};var a=e.i(35209);e.s(["default",0,function(){let{t:e,language:o}=(0,r.b)();return(0,a.f)(e.eula.pageTitle),(0,t.jsx)("main",{className:"mx-auto max-w-3xl px-4 py-8 md:py-12",children:(0,t.jsx)(n.f,{content:"en"===o?i.en:i.zh})})}],220730)},35209,e=>{var t=e.i(271645),n=e.i(111110);e.s(["f",0,function(...e){let{t:r}=(0,n.b)(),i=[r.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=i},[i])}])}])})();
@@ -1,9 +1,9 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,314381,3198,e=>{var t=e.i(456420);let s={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],314381);var a=e.i(843476),i=e.i(271645),n=e.i(632781);let l={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};l.node;let o=(0,t.f)(l),d={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]};d.node;let c=(0,t.f)(d);var u=e.i(395925),m=e.i(741120),f=e.i(759659),h=e.i(519455),g=e.i(111110),x=e.i(294114),p=e.i(201276),v=e.i(113381);let y=null;function j(e,t,s){let r=e?.firstElementChild;r&&(r.style.width="100%",r.style.height=`${s}px`,t?.setSize(e?.offsetWidth||r.offsetWidth||800,s))}function b(e,t){let s=(0,v.L)(e,t);for(let e of s)p.V.warn("[GGB]","命令执行失败",{...e});return s.map(e=>e.command+":"+e.message).join("\n")||void 0}e.s(["f",0,function({commands:e,height:t=700,showToolBar:s=!1,showAlgebraInput:r=!1,showMenuBar:l=!1,className:d="",onRegenerate:w,onDelete:k}){let{t:N}=(0,g.b)(),S=(0,i.useRef)(null),_=(0,i.useRef)(null),T=(0,i.useRef)(void 0),A=(0,i.useId)(),E=(0,i.useRef)(`ggb-${A.replace(/[^a-zA-Z0-9_-]/g,"")}`),[I,C]=(0,i.useState)(!0),[R,z]=(0,i.useState)(null),[V,O]=(0,i.useState)(!0),[$,M]=(0,i.useState)(!1),[L,P]=(0,i.useState)(!1),q=(0,i.useMemo)(()=>(0,v.i)(e),[e]);(0,i.useEffect)(()=>{if(0===q.length)return;let e=!1,a=E.current,i=S.current;return(y||(y=new Promise((e,t)=>{if(window.GGBApplet)return void e();let s=document.createElement("script");s.src="https://www.geogebra.org/apps/deployggb.js",s.async=!0,s.onload=()=>e(),s.onerror=()=>{y=null,t(Error("Failed to load GeoGebra"))},document.head.appendChild(s)}))).then(()=>{if(e)return;let n=window.GGBApplet;if(!n){z(N.geogebra.notLoaded),C(!1);return}if(i){i.innerHTML=`<div id="${a}" style="width:100%;height:${t}px"></div>`;try{new n({appName:"classic",width:"100%",height:t,showToolBar:s,showAlgebraInput:r,showMenuBar:l,showResetIcon:!0,enableRightClick:!0,enableShiftDragZoom:!0,language:"zh",appletOnLoad:s=>{e||(_.current=s,j(i,s,t),T.current=b(s,q),C(!1))}},!0).inject(a)}catch(t){p.V.error("[GGB]","Init failed",{error:t}),e||(z(N.geogebra.initFailed),C(!1))}}}).catch(t=>{p.V.error("[GGB]","Script load failed",{error:t}),e||(z(N.geogebra.scriptFailed),C(!1))}),()=>{e=!0;try{let e=_.current;e?.remove&&e.remove()}catch(e){p.V.warn("[GGB]","Cleanup failed",{error:e})}_.current=null,i&&(i.innerHTML="")}},[q,s,r,l]),(0,i.useEffect)(()=>{j(S.current,_.current,V?700:t)},[V,t]);let G=(0,i.useCallback)(()=>{let e=_.current;if(e)try{e.resetConstruction(),setTimeout(()=>{_.current&&(T.current=b(_.current,q))},300)}catch(e){p.V.warn("[GGB]","Reset failed",{error:e})}},[q]),U=(0,i.useCallback)(async()=>{if(w&&!$){M(!0);try{await w(T.current)}finally{M(!1)}}},[w,$]),F=(0,i.useCallback)(async()=>{if(k&&!L&&await (0,x.u)(N.geogebra.confirmDelete,{destructive:!0})){P(!0);try{await k()}catch{x.c.error(N.geogebra.deleteFailed)}finally{P(!1)}}},[k,L,N]);return 0===q.length?null:(0,a.jsxs)("div",{className:`relative rounded-lg border bg-card ${d}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:N.geogebra.title}),I&&(0,a.jsx)(n.f,{className:"h-3 w-3 animate-spin text-muted-foreground"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[w&&(0,a.jsxs)(h.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1",onClick:U,title:N.geogebra.regenerate,disabled:$||I,children:[$?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(m.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.regenerate})]}),k&&(0,a.jsxs)(h.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1 text-destructive hover:text-destructive",onClick:F,title:N.geogebra.delete,disabled:L||$,children:[L?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(f.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.delete})]}),(0,a.jsx)(h.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:G,title:N.geogebra.reset,disabled:I,children:(0,a.jsx)(u.f,{className:"h-3.5 w-3.5"})}),(0,a.jsx)(h.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>O(e=>!e),title:V?N.geogebra.shrink:N.geogebra.enlarge,children:V?(0,a.jsx)(c,{className:"h-3.5 w-3.5"}):(0,a.jsx)(o,{className:"h-3.5 w-3.5"})})]})]}),(0,a.jsx)("div",{ref:S,style:{width:"100%"}}),I&&(0,a.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/80 rounded-b-lg",style:{top:37},children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)(n.f,{className:"h-6 w-6 animate-spin text-primary"}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:N.geogebra.loading})]})}),R&&(0,a.jsx)("div",{className:"flex items-center justify-center text-sm text-destructive",style:{minHeight:t},children:R})]})}],3198)},399847,e=>{var t=e.i(456420);let s={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"]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],399847)},615568,168148,e=>{var t=e.i(456420);let s={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"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],615568);var a=e.i(843476),i=e.i(271645),n=e.i(30030),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Progress",[u,m]=(0,n.f)(c),[f,h]=u(c),g=i.forwardRef(d(function(e,t){let{__scopeProgress:s,value:r=null,max:i,getValueLabel:n=p,...o}=e;(i||0===i)&&!j(i)&&console.error(w(`${i}`,"Progress"));let d=j(i)?i:100;null===r||b(r,d)||console.error(k(`${r}`,"Progress"));let c=b(r,d)?r:null,u=y(c)?n(c,d):void 0;return(0,a.jsx)(f,{scope:s,value:c,max:d,children:(0,a.jsx)(l.V.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":y(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":v(c,d),"data-value":c??void 0,"data-max":d,...o,ref:t})})},"Progress")),x=i.forwardRef(d(function(e,t){let{__scopeProgress:s,...r}=e,i=h("ProgressIndicator",s);return(0,a.jsx)(l.V.div,{"data-state":v(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})},"ProgressIndicator"));function p(e,t){return`${Math.round(e/t*100)}%`}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function y(e){return"number"==typeof e}function j(e){return y(e)&&!isNaN(e)&&e>0}function b(e,t){return y(e)&&!isNaN(e)&&e<=t&&e>=0}function w(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 k(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,314381,3198,e=>{var t=e.i(456420);let s={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],314381);var a=e.i(843476),i=e.i(271645),n=e.i(632781);let l={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};l.node;let o=(0,t.f)(l),d={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]};d.node;let c=(0,t.f)(d);var u=e.i(395925),m=e.i(741120),f=e.i(759659),h=e.i(519455),g=e.i(111110),x=e.i(294114),p=e.i(201276),v=e.i(113381);let y=null;function j(e,t,s){let r=e?.firstElementChild;r&&(r.style.width="100%",r.style.height=`${s}px`,t?.setSize(e?.offsetWidth||r.offsetWidth||800,s))}function b(e,t){let s=(0,v.L)(e,t);for(let e of s)p.V.warn("[GGB]","命令执行失败",{...e});return s.map(e=>e.command+":"+e.message).join("\n")||void 0}e.s(["f",0,function({commands:e,height:t=700,showToolBar:s=!1,showAlgebraInput:r=!1,showMenuBar:l=!1,className:d="",onRegenerate:w,onDelete:k}){let{t:N}=(0,g.b)(),S=(0,i.useRef)(null),_=(0,i.useRef)(null),T=(0,i.useRef)(void 0),A=(0,i.useId)(),E=(0,i.useRef)(`ggb-${A.replace(/[^a-zA-Z0-9_-]/g,"")}`),[I,C]=(0,i.useState)(!0),[R,z]=(0,i.useState)(null),[V,O]=(0,i.useState)(!0),[$,M]=(0,i.useState)(!1),[L,P]=(0,i.useState)(!1),q=(0,i.useMemo)(()=>(0,v.i)(e),[e]);(0,i.useEffect)(()=>{if(0===q.length)return;let e=!1,a=E.current,i=S.current;return(y||(y=new Promise((e,t)=>{if(window.GGBApplet)return void e();let s=document.createElement("script");s.src="https://www.geogebra.org/apps/deployggb.js",s.async=!0,s.onload=()=>e(),s.onerror=()=>{y=null,t(Error("Failed to load GeoGebra"))},document.head.appendChild(s)}))).then(()=>{if(e)return;let n=window.GGBApplet;if(!n){z(N.geogebra.notLoaded),C(!1);return}if(i){i.innerHTML=`<div id="${a}" style="width:100%;height:${t}px"></div>`;try{new n({appName:"classic",width:"100%",height:t,showToolBar:s,showAlgebraInput:r,showMenuBar:l,showResetIcon:!0,enableRightClick:!0,enableShiftDragZoom:!0,language:"zh",appletOnLoad:s=>{e||(_.current=s,j(i,s,t),T.current=b(s,q),C(!1))}},!0).inject(a)}catch(t){p.V.error("[GGB]","Init failed",{error:t}),e||(z(N.geogebra.initFailed),C(!1))}}}).catch(t=>{p.V.error("[GGB]","Script load failed",{error:t}),e||(z(N.geogebra.scriptFailed),C(!1))}),()=>{e=!0;try{let e=_.current;e?.remove&&e.remove()}catch(e){p.V.warn("[GGB]","Cleanup failed",{error:e})}_.current=null,i&&(i.innerHTML="")}},[q,s,r,l]),(0,i.useEffect)(()=>{j(S.current,_.current,V?700:t)},[V,t]);let G=(0,i.useCallback)(()=>{let e=_.current;if(e)try{e.resetConstruction(),setTimeout(()=>{_.current&&(T.current=b(_.current,q))},300)}catch(e){p.V.warn("[GGB]","Reset failed",{error:e})}},[q]),F=(0,i.useCallback)(async()=>{if(w&&!$){M(!0);try{await w(T.current)}finally{M(!1)}}},[w,$]),U=(0,i.useCallback)(async()=>{if(k&&!L&&await (0,x.u)(N.geogebra.confirmDelete,{destructive:!0})){P(!0);try{await k()}catch{x.c.error(N.geogebra.deleteFailed)}finally{P(!1)}}},[k,L,N]);return 0===q.length?null:(0,a.jsxs)("div",{className:`relative rounded-lg border bg-card ${d}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:N.geogebra.title}),I&&(0,a.jsx)(n.f,{className:"h-3 w-3 animate-spin text-muted-foreground"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[w&&(0,a.jsxs)(h.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1",onClick:F,title:N.geogebra.regenerate,disabled:$||I,children:[$?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(m.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.regenerate})]}),k&&(0,a.jsxs)(h.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1 text-destructive hover:text-destructive",onClick:U,title:N.geogebra.delete,disabled:L||$,children:[L?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(f.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.delete})]}),(0,a.jsx)(h.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:G,title:N.geogebra.reset,disabled:I,children:(0,a.jsx)(u.f,{className:"h-3.5 w-3.5"})}),(0,a.jsx)(h.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>O(e=>!e),title:V?N.geogebra.shrink:N.geogebra.enlarge,children:V?(0,a.jsx)(c,{className:"h-3.5 w-3.5"}):(0,a.jsx)(o,{className:"h-3.5 w-3.5"})})]})]}),(0,a.jsx)("div",{ref:S,style:{width:"100%"}}),I&&(0,a.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/80 rounded-b-lg",style:{top:37},children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)(n.f,{className:"h-6 w-6 animate-spin text-primary"}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:N.geogebra.loading})]})}),R&&(0,a.jsx)("div",{className:"flex items-center justify-center text-sm text-destructive",style:{minHeight:t},children:R})]})}],3198)},399847,e=>{var t=e.i(456420);let s={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"]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],399847)},615568,168148,e=>{var t=e.i(456420);let s={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"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],615568);var a=e.i(843476),i=e.i(271645),n=e.i(30030),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Progress",[u,m]=(0,n.f)(c),[f,h]=u(c),g=i.forwardRef(d(function(e,t){let{__scopeProgress:s,value:r=null,max:i,getValueLabel:n=p,...o}=e;(i||0===i)&&!j(i)&&console.error(w(`${i}`,"Progress"));let d=j(i)?i:100;null===r||b(r,d)||console.error(k(`${r}`,"Progress"));let c=b(r,d)?r:null,u=y(c)?n(c,d):void 0;return(0,a.jsx)(f,{scope:s,value:c,max:d,children:(0,a.jsx)(l.V.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":y(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":v(c,d),"data-value":c??void 0,"data-max":d,...o,ref:t})})},"Progress")),x=i.forwardRef(d(function(e,t){let{__scopeProgress:s,...r}=e,i=h("ProgressIndicator",s);return(0,a.jsx)(l.V.div,{"data-state":v(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})},"ProgressIndicator"));function p(e,t){return`${Math.round(e/t*100)}%`}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function y(e){return"number"==typeof e}function j(e){return y(e)&&!isNaN(e)&&e>0}function b(e,t){return y(e)&&!isNaN(e)&&e<=t&&e>=0}function w(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 k(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
2
  - a positive number
3
3
  - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
4
4
  - \`null\` or \`undefined\` if the progress is indeterminate.
5
5
 
6
- Defaulting to \`null\`.`}d(p,"defaultGetValueLabel"),d(v,"getProgressState"),d(y,"isNumber"),d(j,"isValidMaxNumber"),d(b,"isValidValueNumber"),d(w,"getInvalidMaxError"),d(k,"getInvalidValueError");var N=e.i(975157);let S=i.forwardRef(({className:e,value:t,...s},r)=>(0,a.jsx)(g,{ref:r,value:t,className:(0,N.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:(0,a.jsx)(x,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));S.displayName=g.displayName,e.s(["f",0,S],168148)},856522,e=>{var t=e.i(456420);let s={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"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],856522)},786563,e=>{var t=e.i(456420);let s={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],786563)},866531,497346,183444,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(632781),a=e.i(741120),i=e.i(856522),n=e.i(314381),l=e.i(3198),o=e.i(519455),d=e.i(111110),c=e.i(41931),u=e.i(294114),m=e.i(201276);function f({data:e,onChange:a}){let{t:i}=(0,d.b)(),[h,g]=(0,s.useState)(!1),[x,p]=(0,s.useState)(null),v=async()=>{if(!e.questionText.trim())return void u.c.warning(i.editor.enterQuestionFirst||"Please enter question text first");if(!e.answerText.trim())return void u.c.warning(i.geogebra.answerRequired);g(!0),p(null);try{let t=await c.k.post("/api/geogebra-analyze",{questionText:e.questionText,answerText:e.answerText,analysis:e.analysis},{timeout:18e4,recoverable:!0});t.suitable&&t.commands&&t.commands.length>0?a({geogebraCommands:JSON.stringify(t.commands)}):p(t.description||i.geogebra.notSuitable)}catch(e){m.V.error("[CorrectionEditor]","GeoGebra analysis failed",{error:e}),p(i.geogebra.analyzeFailed)}finally{g(!1)}};return e.geogebraCommands?(0,t.jsx)(l.f,{commands:e.geogebraCommands,height:350,onRegenerate:v,onDelete:async()=>a({geogebraCommands:void 0})}):e.questionText.trim()&&e.answerText.trim()?(0,t.jsxs)("div",{className:"rounded-lg border border-dashed p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.f,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:i.geogebra.title})]}),(0,t.jsx)(o.f,{variant:"outline",size:"sm",onClick:v,disabled:h,children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}),i.geogebra.analyzing]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.f,{className:"mr-2 h-4 w-4"}),i.geogebra.generate]})})]}),x&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:x}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:i.geogebra.hint})]}):null}var h=e.i(469937),g=e.i(28342),x=e.i(438465),p=e.i(674166),v=e.i(110204),y=e.i(967489),j=e.i(401280);function b({data:e,paperLevel:s,onChange:r}){let{t:a}=(0,d.b)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.selectNotebook||"Select Notebook"}),(0,t.jsx)(x.f,{value:e.subjectId,onChange:e=>r({subjectId:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.questionType.label||"Question Type"}),(0,t.jsxs)(y.d,{value:e.questionType||"",onValueChange:e=>r({questionType:e===j.O?null:e}),children:[(0,t.jsx)(y.P,{children:(0,t.jsx)(y.U,{placeholder:a.questionType.notSet||"Not set"})}),(0,t.jsxs)(y.r,{children:[(0,t.jsx)(y.T,{value:j.O,children:a.questionType.clear||"Clear"}),j.V.map(e=>(0,t.jsx)(y.T,{value:e,children:a.questionType.names?.[e]||e},e))]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{htmlFor:"correction-grade-semester",children:a.editor.gradeSemester||"Grade/Semester"}),(0,t.jsx)(g.f,{id:"correction-grade-semester",value:e.gradeSemester||"",onChange:e=>r({gradeSemester:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.paperLevel||"Paper Level"}),(0,t.jsx)(p.f,{value:s,onChange:e=>r({paperLevel:e})})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.difficulty.label}),(0,t.jsx)("div",{children:(0,t.jsx)(h.f,{size:"md",value:e.difficultyStars,onChange:e=>r({difficultyStars:e})})})]})]})}var w=e.i(141176),k=e.i(515288);function N({data:e,onChange:s}){let{t:r}=(0,d.b)();return(0,t.jsxs)(k.N,{children:[(0,t.jsx)(k.Y,{children:(0,t.jsx)(k.v,{children:r.editor.mistakeAnalysisTitle||"Mistake Analysis"})}),(0,t.jsxs)(k.O,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.mistakeStatus||"Attempt Status"}),(0,t.jsxs)(y.d,{value:e.mistakeStatus||"unknown",onValueChange:e=>s({mistakeStatus:e}),children:[(0,t.jsx)(y.P,{children:(0,t.jsx)(y.U,{})}),(0,t.jsxs)(y.r,{children:[(0,t.jsx)(y.T,{value:"not_attempted",children:r.editor.mistakeStatuses?.notAttempted||"Not attempted"}),(0,t.jsx)(y.T,{value:"wrong_attempt",children:r.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,t.jsx)(y.T,{value:"unknown",children:r.editor.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(w.f,{value:e.wrongAnswerText||"",onChange:t=>s({wrongAnswerText:t,mistakeStatus:t.trim()?"wrong_attempt":e.mistakeStatus}),className:"min-h-[100px] font-mono text-sm",placeholder:r.editor.wrongAnswerPlaceholder||"Leave blank if no wrong answer is visible"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(w.f,{value:e.mistakeAnalysis||"",onChange:e=>s({mistakeAnalysis:e}),className:"min-h-[140px] font-mono text-sm",placeholder:r.editor.mistakeAnalysisPlaceholder||"Explain where and why the mistake happened"})]})]})]})}var S=e.i(511445),_=e.i(149704);function T({title:e,children:s,className:r}){return(0,t.jsxs)(k.N,{children:[(0,t.jsx)(k.Y,{children:(0,t.jsx)(k.v,{children:e})}),(0,t.jsx)(k.O,{className:r,children:s})]})}function A({data:e,children:s}){let{t:r}=(0,d.b)(),a={wrong_attempt:r.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt",not_attempted:r.editor.mistakeStatuses?.notAttempted||"Not attempted",unknown:r.editor.mistakeStatuses?.unknown||"Unknown"};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(T,{title:r.editor.preview?.question||"Question Preview",children:[(0,t.jsx)(S.f,{content:e.questionText}),(0,t.jsx)(_.f,{svg:e.figureSvg})]}),s,(0,t.jsx)(T,{title:r.editor.preview?.answer||"Answer Preview",children:(0,t.jsx)(S.f,{content:e.answerText})}),(0,t.jsx)(T,{title:r.editor.preview?.analysis||"Analysis Preview",children:(0,t.jsx)(S.f,{content:e.analysis})}),(0,t.jsxs)(T,{title:r.editor.preview?.mistakeAnalysis||"Mistake Analysis Preview",className:"space-y-3 text-sm",children:[(0,t.jsxs)("div",{className:"text-muted-foreground",children:[r.editor.mistakeStatus||"Attempt Status",r.common.colon,a[e.mistakeStatus]??a.unknown]}),e.wrongAnswerText&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:r.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(S.f,{content:e.wrongAnswerText})]}),e.mistakeAnalysis&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:r.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(S.f,{content:e.mistakeAnalysis})]})]})]})}var E=e.i(574041),I=e.i(215519),C=e.i(306831);e.i(676167);var R=e.i(597138),z=e.i(991722),V=e.i(470279),O=e.i(303163);e.s(["f",0,function({initialData:e,onSave:n,onCancel:l,imagePreview:h,initialSubjectId:g,aiTimeout:x}){let{timeZone:p}=(0,I.M)(),{t:y,language:j}=(0,d.b)(),S=e=>e.trim()?e:"",[_,T]=(0,s.useState)({...e,answerText:S(e.answerText),analysis:S(e.analysis),wrongAnswerText:e.wrongAnswerText||"",mistakeAnalysis:e.mistakeAnalysis||"",mistakeStatus:e.mistakeStatus||"unknown",subjectId:g,gradeSemester:e.gradeSemester||""}),$=(0,s.useRef)(!1),M=e=>{"gradeSemester"in e&&($.current=!0),T(t=>({...t,...e}))},{groups:L}=(0,V.f)(),P=(()=>{if(_.paperLevel)return _.paperLevel;let e="number"==typeof _.difficultyStars&&_.difficultyStars>=4?"b":"a";return L.find(t=>t.key===e&&t.isActive)?.id||""})(),q=_.paperLevel??P,[G,U]=(0,s.useState)(!1),[F,D]=(0,s.useState)(!1),[H,Q]=(0,s.useState)(!1),[B,W]=(0,s.useState)(void 0),[Z,J]=(0,s.useState)([]);(0,s.useEffect)(()=>{c.k.get("/api/notebooks").then(J).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch notebooks",{error:e})),c.k.get("/api/user").then(e=>{if(Q(!!e?.enableGeogebra),e){let t=function(e,t=C.J){return"ai"===e.gradeRecognitionMode?null:e.fixedGradeSemester?e.fixedGradeSemester:e.educationStage&&e.enrollmentYear?function(e,t,s=new Date,r="en",a=C.J){let i=(0,C.c)(s,a),n=i.getFullYear(),l=i.getMonth()+1,o=n-t,d="2nd";l>=9?(o+=1,d="1st"):d=l<2?"1st":"2nd";let c="zh"===r,u=c?"1st"===d?"上期":"下期":"1st"===d?"1st Semester":"2nd Semester",m=(c?{primary:["一年级","二年级","三年级","四年级","五年级","六年级"],junior_high:["初一","初二","初三"],senior_high:["高一","高二","高三"],university:["大一","大二","大三","大四"]}:{primary:["Grade 1","Grade 2","Grade 3","Grade 4","Grade 5","Grade 6"],junior_high:["Junior High Grade 1","Junior High Grade 2","Junior High Grade 3"],senior_high:["Senior High Grade 1","Senior High Grade 2","Senior High Grade 3"],university:["Freshman","Sophomore","Junior","Senior"]})[e]||[],f=`${o}`;if(f=o>0&&o<=m.length?m[o-1]:o>m.length?c?"已毕业":"Graduated":c?"学前":"Pre-school",!c)return`${f}, ${u}`;{let e="1st"===d?"上":"下";return`${f}${e}`}}(e.educationStage,e.enrollmentYear,new Date,"zh",t):null}(e,p);T(e=>e.gradeSemester||$.current?e:{...e,gradeSemester:t||""}),W(e.educationStage||void 0)}}).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch user info for grade calculation",{error:e}))},[j,p]);let Y=async()=>{if(!_.questionText.trim())return void u.c.warning(y.editor.enterQuestionFirst||"Please enter question text first");U(!0);try{let e=function({questionText:e,language:t,subject:s,imagePreview:r,gradeSemester:a,subjectId:i}){let n={questionText:e,language:t,subject:s};return r&&(n.imageBase64=r),a&&(n.gradeSemester=a),i&&(n.subjectId=i),n}({questionText:_.questionText,language:j,subject:_.subject,imagePreview:h,gradeSemester:_.gradeSemester??void 0,subjectId:_.subjectId});m.V.info("[Reanswer]",e.imageBase64?"Sending image + text (image available for mistake analysis)":"Sending text only (no image available)",{timeout:x});let t=await c.k.post("/api/reanswer",e,{timeout:x||18e4,recoverable:!0});T(e=>({...e,answerText:t.answerText,analysis:t.analysis,knowledgePoints:t.knowledgePoints,wrongAnswerText:t.wrongAnswerText||"",mistakeAnalysis:t.mistakeAnalysis||"",mistakeStatus:(0,z.x)(t.mistakeStatus,t.wrongAnswerText),difficultyStars:t.difficultyStars??e.difficultyStars,questionType:t.questionType??e.questionType})),u.c.success(y.editor.reanswerSuccess||"✅ Answer and analysis updated!")}catch(r){let e,t,s;m.V.error("[CorrectionEditor]","Reanswer failed",{error:r}),u.c.error((e=(0,O.d)(r)||"",s=(t=y.errors?.reanswer||{}).default||"Reanswer failed",e.includes("AI_AUTH_ERROR")?t.authError||y.errors?.AI_AUTH_ERROR||s:e.includes("AI_CONNECTION_FAILED")?t.connectionFailed||y.errors?.AI_CONNECTION_FAILED||s:e.includes("AI_RESPONSE_ERROR")&&(t.responseError||y.errors?.AI_RESPONSE_ERROR)||s))}finally{U(!1)}},K=async()=>{if(!_.subjectId)return void u.c.warning(y.editor.messages?.selectNotebook||"Please select a notebook");if(!F){D(!0);try{await n({..._,paperLevel:q,mistakeStatus:(0,z.x)(_.mistakeStatus,_.wrongAnswerText)})}finally{D(!1)}}},X=y.editor.placeholder||"Supports Markdown and LaTeX...",ee=(0,R.f)(Z.find(e=>e.id===_.subjectId)?.name||null)||(0,R.f)(_.subject||null)||void 0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold",children:y.editor.title}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.f,{variant:"outline",onClick:l,children:y.editor.cancel}),(0,t.jsxs)(o.f,{onClick:K,disabled:F,children:[F?(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4"}),F?y.common?.pleaseWait||"Please wait...":y.editor.save]})]})]}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-6",children:[h&&(0,t.jsx)(k.N,{children:(0,t.jsx)(k.O,{className:"p-4",children:(0,t.jsx)("img",{src:h,alt:"Original",className:"w-full rounded-md"})})}),(0,t.jsx)(b,{data:_,paperLevel:q,onChange:M}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.question}),(0,t.jsx)(w.f,{value:_.questionText,onChange:e=>M({questionText:e}),className:"min-h-[150px] font-mono text-sm",placeholder:X}),(0,t.jsx)(o.f,{variant:"default",size:"sm",onClick:Y,disabled:G||!_.questionText.trim(),className:"w-full bg-gradient-to-r from-indigo-600 to-violet-500 hover:from-indigo-700 hover:to-violet-600 text-white font-medium",children:G?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}),y.editor.reanswering||"AI solving..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{className:"mr-2 h-4 w-4"}),y.editor.reanswer||"🔄 Reanswer (based on corrected question)"]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:y.editor.reanswerHint||"💡 If the question was misrecognized, correct it and click to regenerate answer"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.tags}),(0,t.jsx)(E.f,{value:_.knowledgePoints,onChange:e=>M({knowledgePoints:e}),placeholder:y.editor.tagsPlaceholder||"Enter knowledge tags...",enterHint:y.editor.createTagHint,subject:ee,gradeStage:B}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:y.editor.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.answer}),(0,t.jsx)(w.f,{value:_.answerText,onChange:e=>M({answerText:e}),className:"min-h-[100px] font-mono text-sm",placeholder:X})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.analysis}),(0,t.jsx)(w.f,{value:_.analysis,onChange:e=>M({analysis:e}),className:"min-h-[200px] font-mono text-sm",placeholder:X})]}),(0,t.jsx)(N,{data:_,onChange:M})]}),(0,t.jsx)(A,{data:_,children:H&&(0,t.jsx)(f,{data:_,onChange:M})})]})]})}],866531);var $=e.i(853138),M=e.i(263676);e.s(["f",0,function({message:e,onDismiss:s}){let{t:r}=(0,d.b)();return e?(0,t.jsxs)("div",{role:"alert",className:"flex items-start gap-3 rounded-xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive",children:[(0,t.jsx)($.f,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0"}),(0,t.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:e}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":r.common.close,className:"shrink-0 rounded p-1 hover:bg-destructive/10",children:(0,t.jsx)(M.X,{"aria-hidden":"true",className:"h-4 w-4"})})]}):null}],497346);var L=e.i(618566);function P(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}function q(e,t){if("string"!=typeof e||!/^(QUESTION_SAVE_|AI_)[A-Z_]+$/.test(e))return;let s=t.errors[e];return"string"==typeof s?s:void 0}e.s(["f",0,function(e){let{t}=(0,d.b)(),r=(0,L.useRouter)(),[a,i]=(0,s.useState)(null),n=async(s,a,n=!0)=>{i(null);try{let e=await s();return u.c.success(e.duplicate?t.importFlow.duplicate:t.common.messages.saveSuccess),n&&(e.duplicate?r.push(`/error-items/${e.id}`):a&&r.push(`/notebooks/${a}`)),!0}catch(a){m.V.error(e,"Save failed",{errorMessage:(0,O.d)(a)??(0,O.Z)(a)});let s=function(e,t){let s=P(e),r=P(s?.data),a="number"==typeof s?.status?s.status:void 0,i=(0,O.d)(e),n=q(i,t)??q(r?.code,t),l={400:t.errors.QUESTION_SAVE_INVALID_INPUT,401:t.errors.QUESTION_SAVE_UNAUTHORIZED,403:t.errors.QUESTION_SAVE_FORBIDDEN,408:t.errors.QUESTION_SAVE_TIMEOUT,409:t.errors.QUESTION_SAVE_CONFLICT,413:t.errors.QUESTION_SAVE_TOO_LARGE,429:t.errors.QUESTION_SAVE_RATE_LIMITED,502:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,503:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,504:t.errors.QUESTION_SAVE_TIMEOUT},o=n??(a?l[a]:void 0)??t.errors.QUESTION_SAVE_FAILED;!a&&(e instanceof TypeError||/fetch|network|load failed/i.test((0,O.Z)(e)))&&(o=t.errors.QUESTION_SAVE_NETWORK_ERROR);let d=P(r?.details);if("QUESTION_SAVE_GRADE_FAILED"===i){let e=q(d?.reason,t);e&&(o+=`
7
- ${e}`)}return 400===a&&(o+=(function(e,t){if(!Array.isArray(e))return[];let s={questionText:t.editor.question,answerText:t.editor.answer,analysis:t.editor.analysis,wrongAnswerText:t.editor.wrongAnswerText,mistakeAnalysis:t.editor.mistakeAnalysis,knowledgePoints:t.editor.tags,subjectId:t.editor.selectNotebook,gradeSemester:t.editor.gradeSemester,paperLevel:t.editor.paperLevel};return e.slice(0,3).flatMap(e=>{let r=P(e),a=r?.path,i=Array.isArray(a)&&"string"==typeof a[0]?s[a[0]]:void 0;if(!i)return[];let n=r?.maximum,l=t.questionSave.invalidField;return r?.code==="too_big"&&"number"==typeof n&&Number.isSafeInteger(n)&&n>=0&&(l="array"===r.origin?t.questionSave.tooMany:t.questionSave.tooLong),[l.replace("{field}",i).replace("{maximum}",String(n))]})})(r?.details,t).map(e=>`
6
+ Defaulting to \`null\`.`}d(p,"defaultGetValueLabel"),d(v,"getProgressState"),d(y,"isNumber"),d(j,"isValidMaxNumber"),d(b,"isValidValueNumber"),d(w,"getInvalidMaxError"),d(k,"getInvalidValueError");var N=e.i(975157);let S=i.forwardRef(({className:e,value:t,...s},r)=>(0,a.jsx)(g,{ref:r,value:t,className:(0,N.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:(0,a.jsx)(x,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));S.displayName=g.displayName,e.s(["f",0,S],168148)},856522,e=>{var t=e.i(456420);let s={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"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],856522)},786563,e=>{var t=e.i(456420);let s={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],786563)},866531,497346,183444,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(632781),a=e.i(741120),i=e.i(856522),n=e.i(314381),l=e.i(3198),o=e.i(519455),d=e.i(111110),c=e.i(41931),u=e.i(294114),m=e.i(201276);function f({data:e,onChange:a}){let{t:i}=(0,d.b)(),[h,g]=(0,s.useState)(!1),[x,p]=(0,s.useState)(null),v=async()=>{if(!e.questionText.trim())return void u.c.warning(i.editor.enterQuestionFirst||"Please enter question text first");if(!e.answerText.trim())return void u.c.warning(i.geogebra.answerRequired);g(!0),p(null);try{let t=await c.k.post("/api/geogebra-analyze",{questionText:e.questionText,answerText:e.answerText,analysis:e.analysis},{timeout:18e4,recoverable:!0});t.suitable&&t.commands&&t.commands.length>0?a({geogebraCommands:JSON.stringify(t.commands)}):p(t.description||i.geogebra.notSuitable)}catch(e){m.V.error("[CorrectionEditor]","GeoGebra analysis failed",{error:e}),p(i.geogebra.analyzeFailed)}finally{g(!1)}};return e.geogebraCommands?(0,t.jsx)(l.f,{commands:e.geogebraCommands,height:350,onRegenerate:v,onDelete:async()=>a({geogebraCommands:void 0})}):e.questionText.trim()&&e.answerText.trim()?(0,t.jsxs)("div",{className:"rounded-lg border border-dashed p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.f,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:i.geogebra.title})]}),(0,t.jsx)(o.f,{variant:"outline",size:"sm",onClick:v,disabled:h,children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}),i.geogebra.analyzing]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.f,{className:"mr-2 h-4 w-4"}),i.geogebra.generate]})})]}),x&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:x}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:i.geogebra.hint})]}):null}var h=e.i(469937),g=e.i(28342),x=e.i(438465),p=e.i(674166),v=e.i(110204),y=e.i(967489),j=e.i(401280);function b({data:e,paperLevel:s,onChange:r}){let{t:a}=(0,d.b)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.selectNotebook||"Select Notebook"}),(0,t.jsx)(x.f,{value:e.subjectId,onChange:e=>r({subjectId:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.questionType.label||"Question Type"}),(0,t.jsxs)(y.d,{value:e.questionType||"",onValueChange:e=>r({questionType:e===j.O?null:e}),children:[(0,t.jsx)(y.P,{children:(0,t.jsx)(y.U,{placeholder:a.questionType.notSet||"Not set"})}),(0,t.jsxs)(y.r,{children:[(0,t.jsx)(y.T,{value:j.O,children:a.questionType.clear||"Clear"}),j.V.map(e=>(0,t.jsx)(y.T,{value:e,children:a.questionType.names?.[e]||e},e))]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{htmlFor:"correction-grade-semester",children:a.editor.gradeSemester||"Grade/Semester"}),(0,t.jsx)(g.f,{id:"correction-grade-semester",value:e.gradeSemester||"",onChange:e=>r({gradeSemester:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.paperLevel||"Paper Level"}),(0,t.jsx)(p.f,{value:s,onChange:e=>r({paperLevel:e})})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.difficulty.label}),(0,t.jsx)("div",{children:(0,t.jsx)(h.f,{size:"md",value:e.difficultyStars,onChange:e=>r({difficultyStars:e})})})]})]})}var w=e.i(141176),k=e.i(515288);function N({data:e,onChange:s}){let{t:r}=(0,d.b)();return(0,t.jsxs)(k.N,{children:[(0,t.jsx)(k.Y,{children:(0,t.jsx)(k.v,{children:r.editor.mistakeAnalysisTitle||"Mistake Analysis"})}),(0,t.jsxs)(k.O,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.mistakeStatus||"Attempt Status"}),(0,t.jsxs)(y.d,{value:e.mistakeStatus||"unknown",onValueChange:e=>s({mistakeStatus:e}),children:[(0,t.jsx)(y.P,{children:(0,t.jsx)(y.U,{})}),(0,t.jsxs)(y.r,{children:[(0,t.jsx)(y.T,{value:"not_attempted",children:r.editor.mistakeStatuses?.notAttempted||"Not attempted"}),(0,t.jsx)(y.T,{value:"wrong_attempt",children:r.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,t.jsx)(y.T,{value:"unknown",children:r.editor.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(w.f,{value:e.wrongAnswerText||"",onChange:t=>s({wrongAnswerText:t,mistakeStatus:t.trim()?"wrong_attempt":e.mistakeStatus}),className:"min-h-[100px] font-mono text-sm",placeholder:r.editor.wrongAnswerPlaceholder||"Leave blank if no wrong answer is visible"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(w.f,{value:e.mistakeAnalysis||"",onChange:e=>s({mistakeAnalysis:e}),className:"min-h-[140px] font-mono text-sm",placeholder:r.editor.mistakeAnalysisPlaceholder||"Explain where and why the mistake happened"})]})]})]})}var S=e.i(511445),_=e.i(149704);function T({title:e,children:s,className:r}){return(0,t.jsxs)(k.N,{children:[(0,t.jsx)(k.Y,{children:(0,t.jsx)(k.v,{children:e})}),(0,t.jsx)(k.O,{className:r,children:s})]})}function A({data:e,children:s}){let{t:r}=(0,d.b)(),a={wrong_attempt:r.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt",not_attempted:r.editor.mistakeStatuses?.notAttempted||"Not attempted",unknown:r.editor.mistakeStatuses?.unknown||"Unknown"};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(T,{title:r.editor.preview?.question||"Question Preview",children:[(0,t.jsx)(S.f,{content:e.questionText}),(0,t.jsx)(_.f,{svg:e.figureSvg})]}),s,(0,t.jsx)(T,{title:r.editor.preview?.answer||"Answer Preview",children:(0,t.jsx)(S.f,{content:e.answerText})}),(0,t.jsx)(T,{title:r.editor.preview?.analysis||"Analysis Preview",children:(0,t.jsx)(S.f,{content:e.analysis})}),(0,t.jsxs)(T,{title:r.editor.preview?.mistakeAnalysis||"Mistake Analysis Preview",className:"space-y-3 text-sm",children:[(0,t.jsxs)("div",{className:"text-muted-foreground",children:[r.editor.mistakeStatus||"Attempt Status",r.common.colon,a[e.mistakeStatus]??a.unknown]}),e.wrongAnswerText&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:r.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(S.f,{content:e.wrongAnswerText})]}),e.mistakeAnalysis&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:r.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(S.f,{content:e.mistakeAnalysis})]})]})]})}var E=e.i(574041),I=e.i(215519),C=e.i(306831);e.i(676167);var R=e.i(597138),z=e.i(991722),V=e.i(470279),O=e.i(303163);e.s(["f",0,function({initialData:e,onSave:n,onCancel:l,imagePreview:h,initialSubjectId:g,aiTimeout:x}){let{timeZone:p}=(0,I.M)(),{t:y,language:j}=(0,d.b)(),S=e=>e.trim()?e:"",[_,T]=(0,s.useState)({...e,answerText:S(e.answerText),analysis:S(e.analysis),wrongAnswerText:e.wrongAnswerText||"",mistakeAnalysis:e.mistakeAnalysis||"",mistakeStatus:e.mistakeStatus||"unknown",subjectId:g,gradeSemester:e.gradeSemester||""}),$=(0,s.useRef)(!1),M=e=>{"gradeSemester"in e&&($.current=!0),T(t=>({...t,...e}))},{groups:L}=(0,V.f)(),P=(()=>{if(_.paperLevel)return _.paperLevel;let e="number"==typeof _.difficultyStars&&_.difficultyStars>=4?"b":"a";return L.find(t=>t.key===e&&t.isActive)?.id||""})(),q=_.paperLevel??P,[G,F]=(0,s.useState)(!1),[U,D]=(0,s.useState)(!1),[H,Q]=(0,s.useState)(!1),[B,W]=(0,s.useState)(void 0),[Z,J]=(0,s.useState)([]);(0,s.useEffect)(()=>{c.k.get("/api/notebooks").then(J).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch notebooks",{error:e})),c.k.get("/api/user").then(e=>{if(Q(!!e?.enableGeogebra),e){let t=function(e,t=C.J){return"ai"===e.gradeRecognitionMode?null:e.fixedGradeSemester?e.fixedGradeSemester:e.educationStage&&e.enrollmentYear?function(e,t,s=new Date,r="en",a=C.J){let i=(0,C.c)(s,a),n=i.getFullYear(),l=i.getMonth()+1,o=n-t,d="2nd";l>=9?(o+=1,d="1st"):d=l<2?"1st":"2nd";let c="zh"===r,u=c?"1st"===d?"上期":"下期":"1st"===d?"1st Semester":"2nd Semester",m=(c?{primary:["一年级","二年级","三年级","四年级","五年级","六年级"],junior_high:["初一","初二","初三"],senior_high:["高一","高二","高三"],university:["大一","大二","大三","大四"]}:{primary:["Grade 1","Grade 2","Grade 3","Grade 4","Grade 5","Grade 6"],junior_high:["Junior High Grade 1","Junior High Grade 2","Junior High Grade 3"],senior_high:["Senior High Grade 1","Senior High Grade 2","Senior High Grade 3"],university:["Freshman","Sophomore","Junior","Senior"]})[e]||[],f=`${o}`;if(f=o>0&&o<=m.length?m[o-1]:o>m.length?c?"已毕业":"Graduated":c?"学前":"Pre-school",!c)return`${f}, ${u}`;{let e="1st"===d?"上":"下";return`${f}${e}`}}(e.educationStage,e.enrollmentYear,new Date,"zh",t):null}(e,p);T(e=>e.gradeSemester||$.current?e:{...e,gradeSemester:t||""}),W(e.educationStage||void 0)}}).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch user info for grade calculation",{error:e}))},[j,p]);let K=async()=>{if(!_.questionText.trim())return void u.c.warning(y.editor.enterQuestionFirst||"Please enter question text first");F(!0);try{let e=function({questionText:e,language:t,subject:s,imagePreview:r,gradeSemester:a,subjectId:i}){let n={questionText:e,language:t,subject:s};return r&&(n.imageBase64=r),a&&(n.gradeSemester=a),i&&(n.subjectId=i),n}({questionText:_.questionText,language:j,subject:_.subject,imagePreview:h,gradeSemester:_.gradeSemester??void 0,subjectId:_.subjectId});m.V.info("[Reanswer]",e.imageBase64?"Sending image + text (image available for mistake analysis)":"Sending text only (no image available)",{timeout:x});let t=await c.k.post("/api/reanswer",e,{timeout:x||18e4,recoverable:!0});T(e=>({...e,answerText:t.answerText,analysis:t.analysis,knowledgePoints:t.knowledgePoints,wrongAnswerText:t.wrongAnswerText||"",mistakeAnalysis:t.mistakeAnalysis||"",mistakeStatus:(0,z.x)(t.mistakeStatus,t.wrongAnswerText),difficultyStars:t.difficultyStars??e.difficultyStars,questionType:t.questionType??e.questionType})),u.c.success(y.editor.reanswerSuccess||"✅ Answer and analysis updated!")}catch(r){let e,t,s;m.V.error("[CorrectionEditor]","Reanswer failed",{error:r}),u.c.error((e=(0,O.d)(r)||"",s=(t=y.errors?.reanswer||{}).default||"Reanswer failed",e.includes("AI_AUTH_ERROR")?t.authError||y.errors?.AI_AUTH_ERROR||s:e.includes("AI_CONNECTION_FAILED")?t.connectionFailed||y.errors?.AI_CONNECTION_FAILED||s:e.includes("AI_RESPONSE_ERROR")&&(t.responseError||y.errors?.AI_RESPONSE_ERROR)||s))}finally{F(!1)}},Y=async()=>{if(!_.subjectId)return void u.c.warning(y.editor.messages?.selectNotebook||"Please select a notebook");if(!U){D(!0);try{await n({..._,paperLevel:q,mistakeStatus:(0,z.x)(_.mistakeStatus,_.wrongAnswerText)})}finally{D(!1)}}},X=y.editor.placeholder||"Supports Markdown and LaTeX...",ee=(0,R.f)(Z.find(e=>e.id===_.subjectId)?.name||null)||(0,R.f)(_.subject||null)||void 0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold",children:y.editor.title}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.f,{variant:"outline",onClick:l,children:y.editor.cancel}),(0,t.jsxs)(o.f,{onClick:Y,disabled:U,children:[U?(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4"}),U?y.common?.pleaseWait||"Please wait...":y.editor.save]})]})]}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-6",children:[h&&(0,t.jsx)(k.N,{children:(0,t.jsx)(k.O,{className:"p-4",children:(0,t.jsx)("img",{src:h,alt:"Original",className:"w-full rounded-md"})})}),(0,t.jsx)(b,{data:_,paperLevel:q,onChange:M}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.question}),(0,t.jsx)(w.f,{value:_.questionText,onChange:e=>M({questionText:e}),className:"min-h-[150px] font-mono text-sm",placeholder:X}),(0,t.jsx)(o.f,{variant:"default",size:"sm",onClick:K,disabled:G||!_.questionText.trim(),className:"w-full bg-gradient-to-r from-indigo-600 to-violet-500 hover:from-indigo-700 hover:to-violet-600 text-white font-medium",children:G?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}),y.editor.reanswering||"AI solving..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{className:"mr-2 h-4 w-4"}),y.editor.reanswer||"🔄 Reanswer (based on corrected question)"]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:y.editor.reanswerHint||"💡 If the question was misrecognized, correct it and click to regenerate answer"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.tags}),(0,t.jsx)(E.f,{value:_.knowledgePoints,onChange:e=>M({knowledgePoints:e}),placeholder:y.editor.tagsPlaceholder||"Enter knowledge tags...",enterHint:y.editor.createTagHint,subject:ee,gradeStage:B}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:y.editor.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.answer}),(0,t.jsx)(w.f,{value:_.answerText,onChange:e=>M({answerText:e}),className:"min-h-[100px] font-mono text-sm",placeholder:X})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.analysis}),(0,t.jsx)(w.f,{value:_.analysis,onChange:e=>M({analysis:e}),className:"min-h-[200px] font-mono text-sm",placeholder:X})]}),(0,t.jsx)(N,{data:_,onChange:M})]}),(0,t.jsx)(A,{data:_,children:H&&(0,t.jsx)(f,{data:_,onChange:M})})]})]})}],866531);var $=e.i(853138),M=e.i(263676);e.s(["f",0,function({message:e,onDismiss:s}){let{t:r}=(0,d.b)();return e?(0,t.jsxs)("div",{role:"alert",className:"flex items-start gap-3 rounded-xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive",children:[(0,t.jsx)($.f,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0"}),(0,t.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:e}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":r.common.close,className:"shrink-0 rounded p-1 hover:bg-destructive/10",children:(0,t.jsx)(M.X,{"aria-hidden":"true",className:"h-4 w-4"})})]}):null}],497346);var L=e.i(618566),P=e.i(707212);function q(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}function G(e,t){if("string"!=typeof e||!/^(QUESTION_SAVE_|AI_)[A-Z_]+$/.test(e))return;let s=t.errors[e];return"string"==typeof s?s:void 0}e.s(["f",0,function(e){let{t}=(0,d.b)(),r=(0,L.useRouter)(),[a,i]=(0,s.useState)(null),n=async(s,a,n=!0)=>{i(null);try{let e=await s();return u.c.success(e.duplicate?t.importFlow.duplicate:t.common.messages.saveSuccess),n&&(e.duplicate?r.push(`/error-items/${e.id}`):a&&r.push(`/notebooks/${a}`)),!0}catch(r){m.V.error(e,"Save failed",{errorMessage:(0,O.d)(r)??(0,O.Z)(r)});let s=function(e,t){let s=q(e),r=q(s?.data),a="number"==typeof s?.status?s.status:void 0,i=(0,O.d)(e),n=G(i,t)??G(r?.code,t),l={400:t.errors.QUESTION_SAVE_INVALID_INPUT,401:t.errors.QUESTION_SAVE_UNAUTHORIZED,403:t.errors.QUESTION_SAVE_FORBIDDEN,408:t.errors.QUESTION_SAVE_TIMEOUT,409:t.errors.QUESTION_SAVE_CONFLICT,413:t.errors.QUESTION_SAVE_TOO_LARGE,429:t.errors.QUESTION_SAVE_RATE_LIMITED,502:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,503:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,504:t.errors.QUESTION_SAVE_TIMEOUT},o=n??(a?l[a]:void 0)??t.errors.QUESTION_SAVE_FAILED;!a&&(e instanceof TypeError||/fetch|network|load failed/i.test((0,O.Z)(e)))&&(o=t.errors.QUESTION_SAVE_NETWORK_ERROR);let d=q(r?.details);if("QUESTION_SAVE_GRADE_FAILED"===i){let e=G(d?.reason,t);e&&(o+=`
7
+ ${e}`)}return 400===a&&(o+=(function(e,t){if(!Array.isArray(e))return[];let s={questionText:t.editor.question,answerText:t.editor.answer,analysis:t.editor.analysis,wrongAnswerText:t.editor.wrongAnswerText,mistakeAnalysis:t.editor.mistakeAnalysis,knowledgePoints:t.editor.tags,subjectId:t.editor.selectNotebook,gradeSemester:t.editor.gradeSemester,paperLevel:t.editor.paperLevel};return e.slice(0,3).flatMap(e=>{let r=q(e),a=r?.path,i=Array.isArray(a)&&"string"==typeof a[0]?s[a[0]]:void 0;if(!i)return[];let n=r?.maximum,l=t.questionSave.invalidField;return r?.code==="too_big"&&"number"==typeof n&&Number.isSafeInteger(n)&&n>=0&&(l="array"===r.origin?t.questionSave.tooMany:t.questionSave.tooLong),[l.replace("{field}",i).replace("{maximum}",String(n))]})})(r?.details,t).map(e=>`
8
8
  ${e}`).join("")),"string"==typeof d?.databaseCode&&/^P\d{4}$/.test(d.databaseCode)&&(o+=`
9
- ${t.questionSave.databaseCode.replace("{code}",d.databaseCode)}`),a&&(o+=` (HTTP ${a})`),o}(a,t);i(s);let r=(0,O.d)(a);return"AI_DAILY_LIMIT_EXCEEDED"!==r&&"AI_CONSENT_REQUIRED"!==r&&u.c.error(s),!1}};return{saveError:a,setSaveError:i,dismissSaveError:()=>i(null),run:n}}],183444)},469937,e=>{var t=e.i(843476),s=e.i(786563),r=e.i(111110),a=e.i(975157);let i=[1,2,3,4,5];e.s(["f",0,function({value:e,onChange:n,disabled:l,size:o="sm",showUnrated:d=!0,className:c}){let{t:u}=(0,r.b)(),m=e??0,f="sm"===o?"h-3.5 w-3.5":"h-5 w-5",h=m?u.difficulty.starsLabel.replace("{n}",String(m)):u.difficulty.unrated;return n?(0,t.jsxs)("span",{className:(0,a.f)("inline-flex items-center gap-0.5",c),role:"group","aria-label":`${u.difficulty.label}${u.common.colon}${h}`,title:u.difficulty.clearHint,children:[i.map(e=>(0,t.jsx)("button",{type:"button",disabled:l,onClick:()=>n(e===m?null:e),"aria-label":u.difficulty.setStars.replace("{n}",String(e)),"aria-pressed":e<=m,className:"rounded p-0.5 hover:bg-muted disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(s.f,{className:(0,a.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},e)),!m&&d&&(0,t.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:u.difficulty.unrated})]}):m?(0,t.jsx)("span",{className:(0,a.f)("inline-flex items-center",c),role:"img","aria-label":`${u.difficulty.label}${u.common.colon}${h}`,title:h,children:i.map(e=>(0,t.jsx)(s.f,{className:(0,a.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},e))}):d?(0,t.jsx)("span",{className:(0,a.f)("text-xs text-muted-foreground",c),children:u.difficulty.unrated}):null}])},731335,532377,339501,e=>{var t=e.i(843476),s=e.i(399847),r=e.i(551757),a=e.i(456420);let i={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};i.node;let n=(0,a.f)(i);var l=e.i(632781),o=e.i(615568),d=e.i(487486),c=e.i(519455),u=e.i(168148),m=e.i(111110),f=e.i(215519),h=e.i(306831);let g=["read","convert","crop","compress","upload"],x=["receive","analyze","save"];function p(e){if(!Number.isFinite(e)||e<0)return"-";if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(+(t<10))}s`;let s=Math.round(t);return`${Math.floor(s/60)}:${String(s%60).padStart(2,"0")}`}var v=e.i(975157);let y={analyzing:50,saving:90},j={analyzing:l.f,saving:l.f,review:o.f,saved:r.f,failed:s.f};e.s(["f",0,function({task:e,now:s,onReview:r,onViewItem:a,onRetry:i,onDiscard:l}){let{t:o}=(0,m.b)(),{timeZone:b}=(0,f.M)(),w=j[e.status],k="analyzing"===e.status||"saving"===e.status,N=o.errors,S=e.error?"string"==typeof N[e.error]?N[e.error]:e.error:null,_=function(e){let t=[];for(let s of g){let r=e?.client?.[s];"number"==typeof r&&t.push({stage:s,ms:r})}for(let s of x){let r=e?.server?.[s];"number"==typeof r&&t.push({stage:s,ms:r})}return t}(e.timings),T=k&&s?s-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,v.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-task-card","data-status":e.status,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(w,{className:(0,v.f)("mt-0.5 h-4 w-4 shrink-0",k&&"animate-spin text-primary","saved"===e.status&&"text-green-600","failed"===e.status&&"text-destructive","review"===e.status&&"text-primary")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:o.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:o.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:o.importTasks.unread})]}),k&&(0,t.jsx)(u.f,{value:y[e.status],"aria-label":o.importTasks.stageEstimate,"aria-valuetext":o.common.progress.estimated.replace("{percent}",String(y[e.status])),className:"h-1.5"}),e.excerpt&&(0,t.jsx)("p",{className:"break-words text-muted-foreground",children:e.excerpt}),"saved"===e.status&&!e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?o.importTasks.duplicateSaved:o.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),S&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:S}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(n,{className:"h-3 w-3"}),o.importTasks.createdAt.replace("{time}",(0,h.r)(e.createdAt,"MM-dd HH:mm",b))]}),null!==T&&(0,t.jsx)("span",{children:o.importTasks.elapsed.replace("{time}",p(T))}),e.attempts>1&&(0,t.jsx)("span",{children:o.importTasks.attempts.replace("{count}",String(e.attempts))})]}),_.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground tabular-nums","aria-label":"timings",children:_.map(({stage:e,ms:s})=>(0,t.jsxs)("li",{children:[o.importTasks.timings[e]," ",p(s)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&r&&(0,t.jsx)(c.f,{size:"sm",onClick:r,children:o.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&a&&(0,t.jsx)(c.f,{size:"sm",variant:"outline",onClick:a,children:o.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(c.f,{size:"sm",onClick:i,children:o.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(c.f,{size:"sm",variant:"ghost",onClick:l,children:o.importTasks.discard})]})]})}],731335);var b=e.i(618566),w=e.i(767077),k=e.i(294114),N=e.i(201276),S=e.i(127175);e.s(["f",0,function(e){let{t}=(0,m.b)(),s=(0,b.useRouter)(),r=e=>{e.unread&&(0,S.N)(e.id).catch(e=>N.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{r(e),s.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(r(e),s.push(`/error-items/${e.errorItemId}`))},markRead:r,retry:async s=>{try{await (0,S.R)(s.id),k.c.info(t.importTasks.retried)}catch(e){k.c.error((0,w.f)(e,t))}e?.()},discard:async s=>{if(!await (0,k.u)(t.importTasks.discardConfirm))return!1;let r=!1;try{await (0,S.x)(s.id),k.c.success(t.importTasks.discarded),r=!0}catch(e){k.c.error((0,w.f)(e,t))}return e?.(),r}}}],532377);var _=e.i(271645);e.s(["f",0,function(e,t=1e3){let[s,r]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{if(!e)return;let s=setInterval(()=>r(Date.now()),t);return()=>clearInterval(s)},[e,t]),s}],339501)},141176,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(456420);let a={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};a.node;let i=(0,r.f)(a);var n=e.i(772382),l=e.i(511445),o=e.i(624687),d=e.i(111110),c=e.i(975157);e.s(["f",0,function({value:e,onChange:r,className:a,...u}){let{t:m}=(0,d.b)(),[f,h]=(0,s.useState)("source"),g=(0,s.useId)(),x=[{mode:"source",label:m.markdownEditor.source,icon:i},{mode:"preview",label:m.markdownEditor.preview,icon:n.f}];return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{role:"tablist","aria-label":m.markdownEditor.modeLabel,className:"flex justify-end",children:(0,t.jsx)("div",{className:"inline-flex rounded-md border bg-muted/40 p-0.5",children:x.map(({mode:e,label:s,icon:r})=>(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":f===e,"aria-controls":g,onClick:()=>h(e),className:(0,c.f)("flex items-center gap-1 rounded px-2.5 py-1 text-xs transition-colors",f===e?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(r,{className:"h-3.5 w-3.5"}),s]},e))})}),(0,t.jsx)("div",{id:g,role:"tabpanel",children:"source"===f?(0,t.jsx)(o.f,{value:e,onChange:e=>r(e.target.value),className:a,...u}):(0,t.jsx)("div",{className:"min-h-24 cursor-text rounded-md border bg-muted/20 px-3 py-2",onDoubleClick:()=>h("source"),title:m.markdownEditor.doubleClickToEdit,children:e.trim()?(0,t.jsx)(l.f,{content:e}):(0,t.jsx)("p",{className:"text-sm italic text-muted-foreground",children:m.markdownEditor.empty})})})]})}],141176)},438465,674166,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(967489),a=e.i(856423),i=e.i(41931),n=e.i(201276),l=e.i(111110);e.s(["f",0,function({value:e,onChange:o,className:d}){let[c,u]=(0,s.useState)([]),{t:m}=(0,l.b)();return(0,s.useEffect)(()=>{(async()=>{try{let e=await i.k.get("/api/notebooks");u(e)}catch(e){n.V.error("[NotebookSelector]","Failed to fetch notebooks",{error:e})}})()},[]),(0,t.jsxs)(r.d,{value:e,onValueChange:o,children:[(0,t.jsx)(r.P,{className:d,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)(r.U,{placeholder:m.notebooks?.selector?.placeholder||"Select Notebook"})]})}),(0,t.jsx)(r.r,{children:0===c.length?(0,t.jsx)("div",{className:"p-2 text-sm text-muted-foreground text-center",children:m.notebooks?.selector?.empty||"No notebooks available"}):c.map(e=>(0,t.jsx)(r.T,{value:e.id,children:e.name},e.id))})]})}],438465);var o=e.i(470279);e.s(["f",0,function({value:e,onChange:s,disabled:a}){let{groups:i,loading:n}=(0,o.f)(),l=i.filter(e=>e.isActive);return(0,t.jsxs)(r.d,{value:e,onValueChange:s,disabled:a||n,children:[(0,t.jsx)(r.P,{children:(0,t.jsx)(r.U,{placeholder:"选择卷别"})}),(0,t.jsx)(r.r,{children:l.map(e=>(0,t.jsx)(r.T,{value:e.id,children:e.name},e.id))})]})}],674166)},149704,e=>{var t=e.i(843476),s=e.i(111110),r=e.i(398019),a=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:o,className:d}){let{t:c}=(0,s.b)();if(!e)return null;let u=(0,a.V)(l),m=(0,a.o)(o);return(0,t.jsx)("figure",{className:(0,i.f)("question-figure my-3",d),children:(0,t.jsx)("img",{src:(0,r.d)(e),alt:c.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)}%`}})})}])},574041,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(263676),a=e.i(487486),i=e.i(793479),n=e.i(41931),l=e.i(201276);e.s(["f",0,function({value:e=[],onChange:o,placeholder:d="Enter tags...",className:c="",enterHint:u,subject:m,gradeStage:f}){let[h,g]=(0,s.useState)(""),[x,p]=(0,s.useState)([]),[v,y]=(0,s.useState)(!1),[j,b]=(0,s.useState)(0),w=(0,s.useRef)(null),k=(0,s.useRef)(null),N=(0,s.useCallback)(async t=>{try{let s=new URLSearchParams({q:t});m&&s.append("subject",m),f&&s.append("stage",f);let r=((await n.k.get(`/api/tags/suggestions?${s.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));p(r.slice(0,20)),y(r.length>0),b(0)}catch(e){l.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[m,f,e]);(0,s.useEffect)(()=>{h.trim()&&N(h)},[h,N]);let S=t=>{t.trim()&&!e.includes(t.trim())&&(o([...e,t.trim()]),g(""),p([]),y(!1),b(0))},_=t=>{o(e.filter(e=>e!==t))};return(0,s.useEffect)(()=>{let e=e=>{!k.current||k.current.contains(e.target)||w.current?.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:`relative ${c}`,children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 p-2 border rounded-lg bg-background min-h-[42px]",children:[e.map(e=>(0,t.jsxs)(a.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>_(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(r.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(i.f,{ref:w,type:"text",value:h,onChange:e=>{g(e.target.value),e.target.value.trim()||(p([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),j>=0&&x[j]?S(x[j]):h.trim()&&S(h)):"ArrowDown"===t.key?(t.preventDefault(),b(e=>Math.min(e+1,x.length-1))):"ArrowUp"===t.key?(t.preventDefault(),b(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),b(0)):"Backspace"===t.key&&!h&&e.length>0&&_(e[e.length-1])},onFocus:()=>{x.length>0&&y(!0)},placeholder:0===e.length?d:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),v&&x.length>0&&(0,t.jsx)("div",{ref:k,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:x.map((e,s)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${s===j?"bg-accent":""}`,onClick:()=>S(e),onMouseEnter:()=>b(s),children:e},e))}),h&&!v&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${h}"`:`Press Enter to create "${h}"`})]})}])},184110,e=>{let t=["left","center","right"],s="center";function r(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,s,"n",0,100,"j",0,t,"a",0,200,"_",0,10,"x",0,r,"o",0,function(e){return"string"==typeof e&&t.includes(e)?e:s},"V",0,function(e){return r(e)?e:100}])},398019,e=>{e.s(["K",0,1e5,"d",0,function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}])},767077,e=>{var t=e.i(303163);e.s(["f",0,function(e,s){let r=s.common?.messages?.analysisFailed||"Analysis failed, please try again",a=(0,t.d)(e);if(a){let e=s.errors??{};if(!(a in e))return a;let t=e[a];return"string"==typeof t?t:r}let i=(0,t.Z)(e);if(i.includes("fetch")||i.includes("network"))return s.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`${r} (${t})`}return r}])},991722,e=>{function t(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["i",0,function(e,s="zh"){return("en"===s?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[t(e)]},"h",0,t,"x",0,function(e,s){return(s||"").trim()?"wrong_attempt":t(e)}])},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 s=e.trim().toLowerCase();return s?t[s]??null:null}])},597138,e=>{e.i(306831),e.s(["f",0,function(e){if(!e)return null;let t=e.toLowerCase();return t.includes("math")||t.includes("数学")?"math":t.includes("physics")||t.includes("物理")?"physics":t.includes("chemistry")||t.includes("化学")?"chemistry":t.includes("biology")||t.includes("生物")?"biology":t.includes("english")||t.includes("英语")?"english":t.includes("chinese")||t.includes("语文")?"chinese":t.includes("history")||t.includes("历史")?"history":t.includes("geography")||t.includes("地理")?"geography":t.includes("politics")||t.includes("政治")?"politics":null}])}])})();
9
+ ${t.questionSave.databaseCode.replace("{code}",d.databaseCode)}`),a&&(o+=` (HTTP ${a})`),o}(r,t);return i(s),(0,P.t)((0,O.d)(r))||u.c.error(s),!1}};return{saveError:a,setSaveError:i,dismissSaveError:()=>i(null),run:n}}],183444)},469937,e=>{var t=e.i(843476),s=e.i(786563),r=e.i(111110),a=e.i(975157);let i=[1,2,3,4,5];e.s(["f",0,function({value:e,onChange:n,disabled:l,size:o="sm",showUnrated:d=!0,className:c}){let{t:u}=(0,r.b)(),m=e??0,f="sm"===o?"h-3.5 w-3.5":"h-5 w-5",h=m?u.difficulty.starsLabel.replace("{n}",String(m)):u.difficulty.unrated;return n?(0,t.jsxs)("span",{className:(0,a.f)("inline-flex items-center gap-0.5",c),role:"group","aria-label":`${u.difficulty.label}${u.common.colon}${h}`,title:u.difficulty.clearHint,children:[i.map(e=>(0,t.jsx)("button",{type:"button",disabled:l,onClick:()=>n(e===m?null:e),"aria-label":u.difficulty.setStars.replace("{n}",String(e)),"aria-pressed":e<=m,className:"rounded p-0.5 hover:bg-muted disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(s.f,{className:(0,a.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},e)),!m&&d&&(0,t.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:u.difficulty.unrated})]}):m?(0,t.jsx)("span",{className:(0,a.f)("inline-flex items-center",c),role:"img","aria-label":`${u.difficulty.label}${u.common.colon}${h}`,title:h,children:i.map(e=>(0,t.jsx)(s.f,{className:(0,a.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},e))}):d?(0,t.jsx)("span",{className:(0,a.f)("text-xs text-muted-foreground",c),children:u.difficulty.unrated}):null}])},731335,532377,339501,e=>{var t=e.i(843476),s=e.i(399847),r=e.i(551757),a=e.i(456420);let i={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};i.node;let n=(0,a.f)(i);var l=e.i(632781),o=e.i(615568),d=e.i(487486),c=e.i(519455),u=e.i(168148),m=e.i(111110),f=e.i(215519),h=e.i(306831);let g=["read","convert","crop","compress","upload"],x=["receive","analyze","save"];function p(e){if(!Number.isFinite(e)||e<0)return"-";if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(+(t<10))}s`;let s=Math.round(t);return`${Math.floor(s/60)}:${String(s%60).padStart(2,"0")}`}var v=e.i(975157);let y={analyzing:50,saving:90},j={analyzing:l.f,saving:l.f,review:o.f,saved:r.f,failed:s.f};e.s(["f",0,function({task:e,now:s,onReview:r,onViewItem:a,onRetry:i,onDiscard:l}){let{t:o}=(0,m.b)(),{timeZone:b}=(0,f.M)(),w=j[e.status],k="analyzing"===e.status||"saving"===e.status,N=o.errors,S=e.error?"string"==typeof N[e.error]?N[e.error]:e.error:null,_=function(e){let t=[];for(let s of g){let r=e?.client?.[s];"number"==typeof r&&t.push({stage:s,ms:r})}for(let s of x){let r=e?.server?.[s];"number"==typeof r&&t.push({stage:s,ms:r})}return t}(e.timings),T=k&&s?s-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,v.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-task-card","data-status":e.status,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(w,{className:(0,v.f)("mt-0.5 h-4 w-4 shrink-0",k&&"animate-spin text-primary","saved"===e.status&&"text-green-600","failed"===e.status&&"text-destructive","review"===e.status&&"text-primary")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:o.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:o.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:o.importTasks.unread})]}),k&&(0,t.jsx)(u.f,{value:y[e.status],"aria-label":o.importTasks.stageEstimate,"aria-valuetext":o.common.progress.estimated.replace("{percent}",String(y[e.status])),className:"h-1.5"}),e.excerpt&&(0,t.jsx)("p",{className:"break-words text-muted-foreground",children:e.excerpt}),"saved"===e.status&&!e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?o.importTasks.duplicateSaved:o.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),S&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:S}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(n,{className:"h-3 w-3"}),o.importTasks.createdAt.replace("{time}",(0,h.r)(e.createdAt,"MM-dd HH:mm",b))]}),null!==T&&(0,t.jsx)("span",{children:o.importTasks.elapsed.replace("{time}",p(T))}),e.attempts>1&&(0,t.jsx)("span",{children:o.importTasks.attempts.replace("{count}",String(e.attempts))})]}),_.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground tabular-nums","aria-label":"timings",children:_.map(({stage:e,ms:s})=>(0,t.jsxs)("li",{children:[o.importTasks.timings[e]," ",p(s)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&r&&(0,t.jsx)(c.f,{size:"sm",onClick:r,children:o.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&a&&(0,t.jsx)(c.f,{size:"sm",variant:"outline",onClick:a,children:o.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(c.f,{size:"sm",onClick:i,children:o.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(c.f,{size:"sm",variant:"ghost",onClick:l,children:o.importTasks.discard})]})]})}],731335);var b=e.i(618566),w=e.i(767077),k=e.i(294114),N=e.i(201276),S=e.i(127175);e.s(["f",0,function(e){let{t}=(0,m.b)(),s=(0,b.useRouter)(),r=e=>{e.unread&&(0,S.N)(e.id).catch(e=>N.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{r(e),s.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(r(e),s.push(`/error-items/${e.errorItemId}`))},markRead:r,retry:async s=>{try{await (0,S.R)(s.id),k.c.info(t.importTasks.retried)}catch(e){k.c.error((0,w.f)(e,t))}e?.()},discard:async s=>{if(!await (0,k.u)(t.importTasks.discardConfirm))return!1;let r=!1;try{await (0,S.x)(s.id),k.c.success(t.importTasks.discarded),r=!0}catch(e){k.c.error((0,w.f)(e,t))}return e?.(),r}}}],532377);var _=e.i(271645);e.s(["f",0,function(e,t=1e3){let[s,r]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{if(!e)return;let s=setInterval(()=>r(Date.now()),t);return()=>clearInterval(s)},[e,t]),s}],339501)},141176,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(456420);let a={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};a.node;let i=(0,r.f)(a);var n=e.i(772382),l=e.i(511445),o=e.i(624687),d=e.i(111110),c=e.i(975157);e.s(["f",0,function({value:e,onChange:r,className:a,...u}){let{t:m}=(0,d.b)(),[f,h]=(0,s.useState)("source"),g=(0,s.useId)(),x=[{mode:"source",label:m.markdownEditor.source,icon:i},{mode:"preview",label:m.markdownEditor.preview,icon:n.f}];return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{role:"tablist","aria-label":m.markdownEditor.modeLabel,className:"flex justify-end",children:(0,t.jsx)("div",{className:"inline-flex rounded-md border bg-muted/40 p-0.5",children:x.map(({mode:e,label:s,icon:r})=>(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":f===e,"aria-controls":g,onClick:()=>h(e),className:(0,c.f)("flex items-center gap-1 rounded px-2.5 py-1 text-xs transition-colors",f===e?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(r,{className:"h-3.5 w-3.5"}),s]},e))})}),(0,t.jsx)("div",{id:g,role:"tabpanel",children:"source"===f?(0,t.jsx)(o.f,{value:e,onChange:e=>r(e.target.value),className:a,...u}):(0,t.jsx)("div",{className:"min-h-24 cursor-text rounded-md border bg-muted/20 px-3 py-2",onDoubleClick:()=>h("source"),title:m.markdownEditor.doubleClickToEdit,children:e.trim()?(0,t.jsx)(l.f,{content:e}):(0,t.jsx)("p",{className:"text-sm italic text-muted-foreground",children:m.markdownEditor.empty})})})]})}],141176)},438465,674166,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(967489),a=e.i(856423),i=e.i(41931),n=e.i(201276),l=e.i(111110);e.s(["f",0,function({value:e,onChange:o,className:d}){let[c,u]=(0,s.useState)([]),{t:m}=(0,l.b)();return(0,s.useEffect)(()=>{(async()=>{try{let e=await i.k.get("/api/notebooks");u(e)}catch(e){n.V.error("[NotebookSelector]","Failed to fetch notebooks",{error:e})}})()},[]),(0,t.jsxs)(r.d,{value:e,onValueChange:o,children:[(0,t.jsx)(r.P,{className:d,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)(r.U,{placeholder:m.notebooks?.selector?.placeholder||"Select Notebook"})]})}),(0,t.jsx)(r.r,{children:0===c.length?(0,t.jsx)("div",{className:"p-2 text-sm text-muted-foreground text-center",children:m.notebooks?.selector?.empty||"No notebooks available"}):c.map(e=>(0,t.jsx)(r.T,{value:e.id,children:e.name},e.id))})]})}],438465);var o=e.i(470279);e.s(["f",0,function({value:e,onChange:s,disabled:a}){let{groups:i,loading:n}=(0,o.f)(),l=i.filter(e=>e.isActive);return(0,t.jsxs)(r.d,{value:e,onValueChange:s,disabled:a||n,children:[(0,t.jsx)(r.P,{children:(0,t.jsx)(r.U,{placeholder:"选择卷别"})}),(0,t.jsx)(r.r,{children:l.map(e=>(0,t.jsx)(r.T,{value:e.id,children:e.name},e.id))})]})}],674166)},149704,e=>{var t=e.i(843476),s=e.i(111110),r=e.i(398019),a=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:o,className:d}){let{t:c}=(0,s.b)();if(!e)return null;let u=(0,a.V)(l),m=(0,a.o)(o);return(0,t.jsx)("figure",{className:(0,i.f)("question-figure my-3",d),children:(0,t.jsx)("img",{src:(0,r.d)(e),alt:c.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)}%`}})})}])},574041,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(263676),a=e.i(487486),i=e.i(793479),n=e.i(41931),l=e.i(201276);e.s(["f",0,function({value:e=[],onChange:o,placeholder:d="Enter tags...",className:c="",enterHint:u,subject:m,gradeStage:f}){let[h,g]=(0,s.useState)(""),[x,p]=(0,s.useState)([]),[v,y]=(0,s.useState)(!1),[j,b]=(0,s.useState)(0),w=(0,s.useRef)(null),k=(0,s.useRef)(null),N=(0,s.useCallback)(async t=>{try{let s=new URLSearchParams({q:t});m&&s.append("subject",m),f&&s.append("stage",f);let r=((await n.k.get(`/api/tags/suggestions?${s.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));p(r.slice(0,20)),y(r.length>0),b(0)}catch(e){l.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[m,f,e]);(0,s.useEffect)(()=>{h.trim()&&N(h)},[h,N]);let S=t=>{t.trim()&&!e.includes(t.trim())&&(o([...e,t.trim()]),g(""),p([]),y(!1),b(0))},_=t=>{o(e.filter(e=>e!==t))};return(0,s.useEffect)(()=>{let e=e=>{!k.current||k.current.contains(e.target)||w.current?.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:`relative ${c}`,children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 p-2 border rounded-lg bg-background min-h-[42px]",children:[e.map(e=>(0,t.jsxs)(a.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>_(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(r.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(i.f,{ref:w,type:"text",value:h,onChange:e=>{g(e.target.value),e.target.value.trim()||(p([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),j>=0&&x[j]?S(x[j]):h.trim()&&S(h)):"ArrowDown"===t.key?(t.preventDefault(),b(e=>Math.min(e+1,x.length-1))):"ArrowUp"===t.key?(t.preventDefault(),b(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),b(0)):"Backspace"===t.key&&!h&&e.length>0&&_(e[e.length-1])},onFocus:()=>{x.length>0&&y(!0)},placeholder:0===e.length?d:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),v&&x.length>0&&(0,t.jsx)("div",{ref:k,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:x.map((e,s)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${s===j?"bg-accent":""}`,onClick:()=>S(e),onMouseEnter:()=>b(s),children:e},e))}),h&&!v&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${h}"`:`Press Enter to create "${h}"`})]})}])},184110,e=>{let t=["left","center","right"],s="center";function r(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,s,"n",0,100,"j",0,t,"a",0,200,"_",0,10,"x",0,r,"o",0,function(e){return"string"==typeof e&&t.includes(e)?e:s},"V",0,function(e){return r(e)?e:100}])},398019,e=>{e.s(["K",0,1e5,"d",0,function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}])},767077,e=>{var t=e.i(303163);e.s(["f",0,function(e,s){let r=s.common?.messages?.analysisFailed||"Analysis failed, please try again",a=(0,t.d)(e);if(a){let e=s.errors??{};if(!(a in e))return a;let t=e[a];return"string"==typeof t?t:r}let i=(0,t.Z)(e);if(i.includes("fetch")||i.includes("network"))return s.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`${r} (${t})`}return r}])},991722,e=>{function t(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["i",0,function(e,s="zh"){return("en"===s?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[t(e)]},"h",0,t,"x",0,function(e,s){return(s||"").trim()?"wrong_attempt":t(e)}])},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 s=e.trim().toLowerCase();return s?t[s]??null:null}])},597138,e=>{e.i(306831),e.s(["f",0,function(e){if(!e)return null;let t=e.toLowerCase();return t.includes("math")||t.includes("数学")?"math":t.includes("physics")||t.includes("物理")?"physics":t.includes("chemistry")||t.includes("化学")?"chemistry":t.includes("biology")||t.includes("生物")?"biology":t.includes("english")||t.includes("英语")?"english":t.includes("chinese")||t.includes("语文")?"chinese":t.includes("history")||t.includes("历史")?"history":t.includes("geography")||t.includes("地理")?"geography":t.includes("politics")||t.includes("政治")?"politics":null}])}])})();