wrong-notebook 2026.11.4-2 → 2026.11.4-4

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 (850) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +1 -0
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/routes-manifest.json +6 -0
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  11. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/admin/page.js.nft.json +1 -1
  13. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
  15. package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/admin/cnm-tags/route.js +8 -6
  17. package/.next/server/app/api/admin/cnm-tags/route.js.nft.json +1 -1
  18. package/.next/server/app/api/admin/dashboard/route.js +16 -14
  19. package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
  20. package/.next/server/app/api/admin/debug-logs/export/route.js +7 -6
  21. package/.next/server/app/api/admin/debug-logs/export/route.js.nft.json +1 -1
  22. package/.next/server/app/api/admin/debug-logs/route.js +6 -5
  23. package/.next/server/app/api/admin/debug-logs/route.js.nft.json +1 -1
  24. package/.next/server/app/api/admin/migrate-tags/route.js +5 -3
  25. package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
  26. package/.next/server/app/api/admin/system-reset/route.js +5 -5
  27. package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
  28. package/.next/server/app/api/admin/users/[id]/detail/route.js +16 -14
  29. package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
  30. package/.next/server/app/api/admin/users/[id]/route.js +7 -5
  31. package/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
  32. package/.next/server/app/api/admin/users/route.js +8 -7
  33. package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
  34. package/.next/server/app/api/ai/models/route.js +15 -14
  35. package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
  36. package/.next/server/app/api/ai/test/route.js +16 -13
  37. package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
  38. package/.next/server/app/api/analytics/route.js +15 -14
  39. package/.next/server/app/api/analytics/route.js.nft.json +1 -1
  40. package/.next/server/app/api/analyze/route.js +20 -18
  41. package/.next/server/app/api/analyze/route.js.nft.json +1 -1
  42. package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
  43. package/.next/server/app/api/error-items/[id]/delete/route.js +5 -5
  44. package/.next/server/app/api/error-items/[id]/delete/route.js.nft.json +1 -1
  45. package/.next/server/app/api/error-items/[id]/figure/route.js +20 -18
  46. package/.next/server/app/api/error-items/[id]/figure/route.js.nft.json +1 -1
  47. package/.next/server/app/api/error-items/[id]/fix-latex/route.js +18 -16
  48. package/.next/server/app/api/error-items/[id]/fix-latex/route.js.nft.json +1 -1
  49. package/.next/server/app/api/error-items/[id]/geogebra/route.js +20 -17
  50. package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
  51. package/.next/server/app/api/error-items/[id]/image/route.js +6 -5
  52. package/.next/server/app/api/error-items/[id]/image/route.js.nft.json +1 -1
  53. package/.next/server/app/api/error-items/[id]/notes/route.js +8 -5
  54. package/.next/server/app/api/error-items/[id]/notes/route.js.nft.json +1 -1
  55. package/.next/server/app/api/error-items/[id]/practice-records/route.js +5 -4
  56. package/.next/server/app/api/error-items/[id]/practice-records/route.js.nft.json +1 -1
  57. package/.next/server/app/api/error-items/[id]/reanswer/route.js +18 -15
  58. package/.next/server/app/api/error-items/[id]/reanswer/route.js.nft.json +1 -1
  59. package/.next/server/app/api/error-items/[id]/retag/route.js +18 -16
  60. package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
  61. package/.next/server/app/api/error-items/[id]/route.js +13 -9
  62. package/.next/server/app/api/error-items/[id]/route.js.nft.json +1 -1
  63. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +18 -15
  64. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -1
  65. package/.next/server/app/api/error-items/[id]/svg-animation/route.js +18 -15
  66. package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
  67. package/.next/server/app/api/error-items/answer-space/route.js +6 -6
  68. package/.next/server/app/api/error-items/answer-space/route.js.nft.json +1 -1
  69. package/.next/server/app/api/error-items/batch-delete/route.js +8 -5
  70. package/.next/server/app/api/error-items/batch-delete/route.js.nft.json +1 -1
  71. package/.next/server/app/api/error-items/clear/route.js +5 -5
  72. package/.next/server/app/api/error-items/clear/route.js.nft.json +1 -1
  73. package/.next/server/app/api/error-items/export-questions/route/app-paths-manifest.json +3 -0
  74. package/.next/server/app/api/error-items/export-questions/route/build-manifest.json +12 -0
  75. package/.next/server/app/api/error-items/export-questions/route/server-reference-manifest.json +4 -0
  76. package/.next/server/app/api/error-items/export-questions/route.js +17 -0
  77. package/.next/server/app/api/error-items/export-questions/route.js.map +5 -0
  78. package/.next/server/app/api/error-items/export-questions/route.js.nft.json +1 -0
  79. package/.next/server/app/api/error-items/export-questions/route_client-reference-manifest.js +3 -0
  80. package/.next/server/app/api/error-items/list/route.js +8 -7
  81. package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
  82. package/.next/server/app/api/error-items/route.js +22 -21
  83. package/.next/server/app/api/error-items/route.js.nft.json +1 -1
  84. package/.next/server/app/api/error-items/short/[shortId]/route.js +5 -4
  85. package/.next/server/app/api/error-items/short/[shortId]/route.js.nft.json +1 -1
  86. package/.next/server/app/api/error-items/similarity/route.js +4 -3
  87. package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
  88. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +20 -18
  89. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js.nft.json +1 -1
  90. package/.next/server/app/api/exams/[id]/results/route.js +19 -18
  91. package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
  92. package/.next/server/app/api/exams/[id]/retry/route.js +18 -17
  93. package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
  94. package/.next/server/app/api/exams/[id]/route.js +21 -19
  95. package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
  96. package/.next/server/app/api/exams/route.js +20 -19
  97. package/.next/server/app/api/exams/route.js.nft.json +1 -1
  98. package/.next/server/app/api/export/route.js +9 -7
  99. package/.next/server/app/api/export/route.js.nft.json +1 -1
  100. package/.next/server/app/api/geogebra-analyze/route.js +18 -16
  101. package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
  102. package/.next/server/app/api/health/route.js.nft.json +1 -1
  103. package/.next/server/app/api/import/route.js +22 -20
  104. package/.next/server/app/api/import/route.js.nft.json +1 -1
  105. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js +25 -22
  106. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js.nft.json +1 -1
  107. package/.next/server/app/api/import-batches/[id]/fix-text/route.js +19 -18
  108. package/.next/server/app/api/import-batches/[id]/fix-text/route.js.nft.json +1 -1
  109. package/.next/server/app/api/import-batches/[id]/read/route.js +27 -24
  110. package/.next/server/app/api/import-batches/[id]/read/route.js.nft.json +1 -1
  111. package/.next/server/app/api/import-batches/[id]/retry/route.js +25 -22
  112. package/.next/server/app/api/import-batches/[id]/retry/route.js.nft.json +1 -1
  113. package/.next/server/app/api/import-batches/[id]/route.js +27 -24
  114. package/.next/server/app/api/import-batches/[id]/route.js.nft.json +1 -1
  115. package/.next/server/app/api/import-batches/[id]/start/route.js +27 -24
  116. package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -1
  117. package/.next/server/app/api/import-batches/route.js +27 -24
  118. package/.next/server/app/api/import-batches/route.js.nft.json +1 -1
  119. package/.next/server/app/api/import-tasks/[id]/confirm/route.js +25 -22
  120. package/.next/server/app/api/import-tasks/[id]/confirm/route.js.nft.json +1 -1
  121. package/.next/server/app/api/import-tasks/[id]/read/route.js +25 -22
  122. package/.next/server/app/api/import-tasks/[id]/read/route.js.nft.json +1 -1
  123. package/.next/server/app/api/import-tasks/[id]/retry/route.js +25 -22
  124. package/.next/server/app/api/import-tasks/[id]/retry/route.js.nft.json +1 -1
  125. package/.next/server/app/api/import-tasks/[id]/route.js +25 -22
  126. package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -1
  127. package/.next/server/app/api/import-tasks/route.js +27 -24
  128. package/.next/server/app/api/import-tasks/route.js.nft.json +1 -1
  129. package/.next/server/app/api/initialize/route.js +1 -1
  130. package/.next/server/app/api/initialize/route.js.nft.json +1 -1
  131. package/.next/server/app/api/logs/frontend/route.js +6 -4
  132. package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
  133. package/.next/server/app/api/minimax-code/checkin/route.js +6 -5
  134. package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
  135. package/.next/server/app/api/minimax-code/login/route.js +6 -5
  136. package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
  137. package/.next/server/app/api/minimax-code/route.js +7 -6
  138. package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
  139. package/.next/server/app/api/notebooks/[id]/retag/route.js +18 -17
  140. package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
  141. package/.next/server/app/api/notebooks/[id]/route.js +8 -4
  142. package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
  143. package/.next/server/app/api/notebooks/route.js +8 -6
  144. package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
  145. package/.next/server/app/api/openclaw/batch-upload/route.js +21 -19
  146. package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
  147. package/.next/server/app/api/paper-groups/[id]/route.js +5 -4
  148. package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -1
  149. package/.next/server/app/api/paper-groups/route.js +4 -3
  150. package/.next/server/app/api/paper-groups/route.js.nft.json +1 -1
  151. package/.next/server/app/api/practice/generate/route.js +18 -16
  152. package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
  153. package/.next/server/app/api/practice/grade/route.js +15 -13
  154. package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
  155. package/.next/server/app/api/practice/record/[id]/route.js +18 -16
  156. package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
  157. package/.next/server/app/api/practice/record/route.js +16 -14
  158. package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
  159. package/.next/server/app/api/reanswer/route.js +19 -17
  160. package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
  161. package/.next/server/app/api/register/route.js +5 -5
  162. package/.next/server/app/api/register/route.js.nft.json +1 -1
  163. package/.next/server/app/api/register/status/route.js +5 -5
  164. package/.next/server/app/api/register/status/route.js.nft.json +1 -1
  165. package/.next/server/app/api/requests/[id]/route.js +5 -4
  166. package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
  167. package/.next/server/app/api/review/due/route.js +17 -15
  168. package/.next/server/app/api/review/due/route.js.nft.json +1 -1
  169. package/.next/server/app/api/settings/route.js +8 -7
  170. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  171. package/.next/server/app/api/setup/route.js +7 -6
  172. package/.next/server/app/api/setup/route.js.nft.json +1 -1
  173. package/.next/server/app/api/stats/activity/route.js +7 -6
  174. package/.next/server/app/api/stats/activity/route.js.nft.json +1 -1
  175. package/.next/server/app/api/stats/practice/clear/route.js +5 -5
  176. package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
  177. package/.next/server/app/api/stats/practice/route.js +7 -6
  178. package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
  179. package/.next/server/app/api/stats/repeated-mistakes/route.js +17 -16
  180. package/.next/server/app/api/stats/repeated-mistakes/route.js.nft.json +1 -1
  181. package/.next/server/app/api/stats/weak-tags/route.js +17 -16
  182. package/.next/server/app/api/stats/weak-tags/route.js.nft.json +1 -1
  183. package/.next/server/app/api/tags/route.js +7 -4
  184. package/.next/server/app/api/tags/route.js.nft.json +1 -1
  185. package/.next/server/app/api/tags/stats/route.js +1 -1
  186. package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
  187. package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
  188. package/.next/server/app/api/tasks/route.js +5 -4
  189. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  190. package/.next/server/app/api/tts/[id]/route.js +9 -8
  191. package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
  192. package/.next/server/app/api/tts/batch/route.js +10 -9
  193. package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
  194. package/.next/server/app/api/tts/route.js +11 -10
  195. package/.next/server/app/api/tts/route.js.nft.json +1 -1
  196. package/.next/server/app/api/tts/status/route.js +11 -10
  197. package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
  198. package/.next/server/app/api/user/route.js +16 -15
  199. package/.next/server/app/api/user/route.js.nft.json +1 -1
  200. package/.next/server/app/api/version/route.js.nft.json +1 -1
  201. package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
  202. package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
  203. package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
  204. package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
  205. package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
  206. package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
  207. package/.next/server/app/exams/page.js.nft.json +1 -1
  208. package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
  209. package/.next/server/app/import-batches/[id]/page.js.nft.json +1 -1
  210. package/.next/server/app/import-batches/[id]/page_client-reference-manifest.js +1 -1
  211. package/.next/server/app/import-tasks/[id]/page.js.nft.json +1 -1
  212. package/.next/server/app/import-tasks/[id]/page_client-reference-manifest.js +1 -1
  213. package/.next/server/app/import-tasks/page.js.nft.json +1 -1
  214. package/.next/server/app/import-tasks/page_client-reference-manifest.js +1 -1
  215. package/.next/server/app/initialize/page.js.nft.json +1 -1
  216. package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
  217. package/.next/server/app/login/page.js.nft.json +1 -1
  218. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  219. package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
  220. package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
  221. package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
  222. package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
  223. package/.next/server/app/notebooks/page.js.nft.json +1 -1
  224. package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
  225. package/.next/server/app/page.js.nft.json +1 -1
  226. package/.next/server/app/page_client-reference-manifest.js +1 -1
  227. package/.next/server/app/practice/page.js.nft.json +1 -1
  228. package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
  229. package/.next/server/app/print-preview/page.js.nft.json +1 -1
  230. package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
  231. package/.next/server/app/register/page.js.nft.json +1 -1
  232. package/.next/server/app/register/page_client-reference-manifest.js +1 -1
  233. package/.next/server/app/review/page.js.nft.json +1 -1
  234. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  235. package/.next/server/app/setup/page.js.nft.json +1 -1
  236. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  237. package/.next/server/app/stats/page.js.nft.json +1 -1
  238. package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  239. package/.next/server/app/tags/page.js.nft.json +1 -1
  240. package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
  241. package/.next/server/app-paths-manifest.json +1 -0
  242. package/.next/server/chunks/1oeh_server_app_api_error-items_export-questions_route_actions_02nsquej76mp1.js +3 -0
  243. package/.next/server/chunks/[externals]__1j5vgk-wr4vpe._.js +3 -0
  244. package/.next/server/chunks/[externals]_fs_0pplqgcyv2l7l._.js +3 -0
  245. package/.next/server/chunks/[root-of-the-server]__0-d_vh1kcmw7g._.js +3 -0
  246. package/.next/server/chunks/[root-of-the-server]__001wdwos9fkgg._.js +3 -0
  247. package/.next/server/chunks/[root-of-the-server]__00cl_lnn-40t3._.js +3 -0
  248. package/.next/server/chunks/{[root-of-the-server]__05tyrbfzivoeq._.js → [root-of-the-server]__00w9qhjl8kvr4._.js} +1 -1
  249. package/.next/server/chunks/{[root-of-the-server]__01-14hxale6jz._.js → [root-of-the-server]__00w_kxg7h-9_p._.js} +1 -1
  250. package/.next/server/chunks/[root-of-the-server]__00x5ad3w5zwfp._.js +3 -0
  251. package/.next/server/chunks/{[root-of-the-server]__01rm65xnqj0z-._.js → [root-of-the-server]__01jxyfokd6l4_._.js} +1 -1
  252. package/.next/server/chunks/{[root-of-the-server]__02nbzp-n9g9_o._.js → [root-of-the-server]__025dluj5es8w4._.js} +1 -1
  253. package/.next/server/chunks/{[root-of-the-server]__09pkxauucdf_0._.js → [root-of-the-server]__02fu_lp66613e._.js} +2 -2
  254. package/.next/server/chunks/[root-of-the-server]__04w57bdna9ax0._.js +3 -0
  255. package/.next/server/chunks/{[root-of-the-server]__0z0knsep33lsx._.js → [root-of-the-server]__05a4j8yu5_bg1._.js} +2 -2
  256. package/.next/server/chunks/{[root-of-the-server]__006u92h_madgn._.js → [root-of-the-server]__05pxdy586nh8a._.js} +1 -1
  257. package/.next/server/chunks/{[root-of-the-server]__0n5l60oyv1n-1._.js → [root-of-the-server]__06i2kswg2zb80._.js} +1 -1
  258. package/.next/server/chunks/[root-of-the-server]__07i32k2sv285o._.js +3 -0
  259. package/.next/server/chunks/{[root-of-the-server]__0k4cyyyh6z6_p._.js → [root-of-the-server]__0855dkhk7zs77._.js} +2 -2
  260. package/.next/server/chunks/{[root-of-the-server]__0lqv0n5j2fg24._.js → [root-of-the-server]__08iizowhy6p3l._.js} +2 -2
  261. package/.next/server/chunks/{[root-of-the-server]__1eu_g0k_nr3i-._.js → [root-of-the-server]__094ybs6y_fmt5._.js} +2 -2
  262. package/.next/server/chunks/[root-of-the-server]__09aolocrwucnt._.js +3 -0
  263. package/.next/server/chunks/[root-of-the-server]__0_le78e9b2yno._.js +3 -0
  264. package/.next/server/chunks/[root-of-the-server]__0_uup9ppknahw._.js +3 -0
  265. package/.next/server/chunks/[root-of-the-server]__0b8rxaox_x2n1._.js +3 -0
  266. package/.next/server/chunks/[root-of-the-server]__0bvf731upd2_w._.js +3 -0
  267. package/.next/server/chunks/[root-of-the-server]__0cgpuhmu87blm._.js +3 -0
  268. package/.next/server/chunks/[root-of-the-server]__0dqy62vnjwvwp._.js +3 -0
  269. package/.next/server/chunks/{[root-of-the-server]__0bmczgpuggwki._.js → [root-of-the-server]__0ef-17j7yp2n5._.js} +1 -1
  270. package/.next/server/chunks/[root-of-the-server]__0ej9lsrmus5m4._.js +3 -0
  271. package/.next/server/chunks/[root-of-the-server]__0evv12a34qcy6._.js +27 -0
  272. package/.next/server/chunks/[root-of-the-server]__0fdkyswheen4o._.js +3 -0
  273. package/.next/server/chunks/{[root-of-the-server]__0eba9rni-2_tw._.js → [root-of-the-server]__0fhi9g3nqu6k3._.js} +1 -1
  274. package/.next/server/chunks/{[root-of-the-server]__0fx0s5_6sjw-d._.js → [root-of-the-server]__0g3w0_9__ljck._.js} +1 -1
  275. package/.next/server/chunks/[root-of-the-server]__0g848ha1gy56h._.js +3 -0
  276. package/.next/server/chunks/[root-of-the-server]__0hcbw1sliw973._.js +1 -1
  277. package/.next/server/chunks/[root-of-the-server]__0ig1r6paxqzt0._.js +3 -0
  278. package/.next/server/chunks/[root-of-the-server]__0j7ua4rsijb4c._.js +3 -0
  279. package/.next/server/chunks/[root-of-the-server]__0jh610iscvrmp._.js +3 -0
  280. package/.next/server/chunks/[root-of-the-server]__0kehix4ojdnhw._.js +1 -1
  281. package/.next/server/chunks/{[root-of-the-server]__0imuc7gi1ii-e._.js → [root-of-the-server]__0l3io0vyav4if._.js} +2 -2
  282. package/.next/server/chunks/[root-of-the-server]__0l7jho_lr2z5g._.js +3 -0
  283. package/.next/server/chunks/[root-of-the-server]__0lgbdth9-z6qg._.js +3 -0
  284. package/.next/server/chunks/[root-of-the-server]__0llbkrw8l2ib9._.js +3 -0
  285. package/.next/server/chunks/[root-of-the-server]__0mfr1ne23y4yo._.js +3 -0
  286. package/.next/server/chunks/{[root-of-the-server]__0geynfn2xmdle._.js → [root-of-the-server]__0mslax132s9jp._.js} +2 -2
  287. package/.next/server/chunks/[root-of-the-server]__0nin5p-dwlpf9._.js +3 -0
  288. package/.next/server/chunks/[root-of-the-server]__0nye-53zadylr._.js +3 -0
  289. package/.next/server/chunks/[root-of-the-server]__0p8cwd_go8pid._.js +3 -0
  290. package/.next/server/chunks/[root-of-the-server]__0pojh2d6n1kp6._.js +3 -0
  291. package/.next/server/chunks/[root-of-the-server]__0rspref34j958._.js +3 -0
  292. package/.next/server/chunks/[root-of-the-server]__0si2-m5an9zl7._.js +3 -0
  293. package/.next/server/chunks/[root-of-the-server]__0svdqovwfpro2._.js +3 -0
  294. package/.next/server/chunks/[root-of-the-server]__0tsi6_qmtro9q._.js +3 -0
  295. package/.next/server/chunks/[root-of-the-server]__0tvp4sm4zx3wt._.js +3 -0
  296. package/.next/server/chunks/[root-of-the-server]__0u1fu9dvxmlxd._.js +3 -0
  297. package/.next/server/chunks/[root-of-the-server]__0ujhx0glgcxja._.js +3 -0
  298. package/.next/server/chunks/{[root-of-the-server]__029n0r2v92pcc._.js → [root-of-the-server]__0v8mfczhz1ax1._.js} +2 -2
  299. package/.next/server/chunks/[root-of-the-server]__0vf3rgatj1f3u._.js +3 -0
  300. package/.next/server/chunks/[root-of-the-server]__0vrag-4p6eznc._.js +3 -0
  301. package/.next/server/chunks/[root-of-the-server]__0vt48u-0ebzdv._.js +3 -0
  302. package/.next/server/chunks/[root-of-the-server]__0w9f5-xtpane-._.js +3 -0
  303. package/.next/server/chunks/[root-of-the-server]__0wea836zkhvlj._.js +3 -0
  304. package/.next/server/chunks/[root-of-the-server]__0wex3czgya39o._.js +3 -0
  305. package/.next/server/chunks/[root-of-the-server]__0x8ehtaj_x2pf._.js +3 -0
  306. package/.next/server/chunks/[root-of-the-server]__0xobqdj2u2s67._.js +3 -0
  307. package/.next/server/chunks/[root-of-the-server]__0y3ui5-k9baec._.js +3 -0
  308. package/.next/server/chunks/[root-of-the-server]__0yq7jm5ja3r6t._.js +3 -0
  309. package/.next/server/chunks/[root-of-the-server]__0zrg03ldx65tk._.js +3 -0
  310. package/.next/server/chunks/[root-of-the-server]__1-1ld657rjip5._.js +3 -0
  311. package/.next/server/chunks/[root-of-the-server]__1-6r_3pmgkz13._.js +3 -0
  312. package/.next/server/chunks/[root-of-the-server]__10ngcci8pf29l._.js +3 -0
  313. package/.next/server/chunks/[root-of-the-server]__11-fk0-4iuf_k._.js +3 -0
  314. package/.next/server/chunks/[root-of-the-server]__11x5u4zg5i2c6._.js +3 -0
  315. package/.next/server/chunks/[root-of-the-server]__120o1w9mcwgta._.js +3 -0
  316. package/.next/server/chunks/[root-of-the-server]__12f6t_ozjtn42._.js +3 -0
  317. package/.next/server/chunks/[root-of-the-server]__13a3izu1xb4m4._.js +3 -0
  318. package/.next/server/chunks/{[root-of-the-server]__1kiolpvl5u4e-._.js → [root-of-the-server]__14e45mqzb1vjt._.js} +2 -2
  319. package/.next/server/chunks/[root-of-the-server]__14jf33wwjqbw1._.js +3 -0
  320. package/.next/server/chunks/[root-of-the-server]__14n0eki4tdk02._.js +3 -0
  321. package/.next/server/chunks/[root-of-the-server]__15a3t94ps7jx2._.js +3 -0
  322. package/.next/server/chunks/[root-of-the-server]__15dipxocczlvx._.js +3 -0
  323. package/.next/server/chunks/[root-of-the-server]__15r55xy6cyrg3._.js +3 -0
  324. package/.next/server/chunks/[root-of-the-server]__176zyagwjex4i._.js +3 -0
  325. package/.next/server/chunks/[root-of-the-server]__17ed9rw-rhun-._.js +3 -0
  326. package/.next/server/chunks/[root-of-the-server]__19kic_glbz32b._.js +3 -0
  327. package/.next/server/chunks/[root-of-the-server]__1ae5zzeo8_c2s._.js +3 -0
  328. package/.next/server/chunks/[root-of-the-server]__1b-acwmm5hhg0._.js +3 -0
  329. package/.next/server/chunks/[root-of-the-server]__1d6ftxzea6h0a._.js +3 -0
  330. package/.next/server/chunks/[root-of-the-server]__1dovdb1wrr_0e._.js +3 -0
  331. package/.next/server/chunks/[root-of-the-server]__1e7_e83zxstdw._.js +3 -0
  332. package/.next/server/chunks/[root-of-the-server]__1e81i8l09skcp._.js +3 -0
  333. package/.next/server/chunks/[root-of-the-server]__1e8_j43j1t1m3._.js +27 -0
  334. package/.next/server/chunks/[root-of-the-server]__1f-ve8idsq57l._.js +3 -0
  335. package/.next/server/chunks/[root-of-the-server]__1f0zocrmsd5p8._.js +3 -0
  336. package/.next/server/chunks/[root-of-the-server]__1f5_yaclxhuvj._.js +3 -0
  337. package/.next/server/chunks/[root-of-the-server]__1gf_vv57qtjh0._.js +3 -0
  338. package/.next/server/chunks/[root-of-the-server]__1h0tye6lfskvl._.js +3 -0
  339. package/.next/server/chunks/[root-of-the-server]__1hn69stngi4kc._.js +3 -0
  340. package/.next/server/chunks/[root-of-the-server]__1hnyj47zdzrxo._.js +3 -0
  341. package/.next/server/chunks/[root-of-the-server]__1k0fuhrt1iiad._.js +3 -0
  342. package/.next/server/chunks/[root-of-the-server]__1kxecl8v-_px5._.js +3 -0
  343. package/.next/server/chunks/[root-of-the-server]__1l6v9x8xm11pl._.js +3 -0
  344. package/.next/server/chunks/[root-of-the-server]__1m8m5io-tr21e._.js +3 -0
  345. package/.next/server/chunks/[root-of-the-server]__1pfhgjwnx_--j._.js +3 -0
  346. package/.next/server/chunks/[root-of-the-server]__1r5lj-ffov9r0._.js +3 -0
  347. package/.next/server/chunks/[root-of-the-server]__1rxi33p9h8zrj._.js +3 -0
  348. package/.next/server/chunks/[root-of-the-server]__1uqnotrppylmw._.js +3 -0
  349. package/.next/server/chunks/[root-of-the-server]__1utvl-1o6mb8y._.js +3 -0
  350. package/.next/server/chunks/[root-of-the-server]__1vc89u7_xxhyf._.js +3 -0
  351. package/.next/server/chunks/[root-of-the-server]__1x_kq-6h3utmo._.js +3 -0
  352. package/.next/server/chunks/[root-of-the-server]__1xqcu4ft3d7id._.js +3 -0
  353. package/.next/server/chunks/[root-of-the-server]__1xuw793xxu29t._.js +3 -0
  354. package/.next/server/chunks/[root-of-the-server]__1yaf9vp_o6cro._.js +3 -0
  355. package/.next/server/chunks/[root-of-the-server]__1ybmwcbaqk63j._.js +3 -0
  356. package/.next/server/chunks/[root-of-the-server]__1yyezurgy7e3k._.js +3 -0
  357. package/.next/server/chunks/[root-of-the-server]__1z4-5hlzq34fw._.js +3 -0
  358. package/.next/server/chunks/[root-of-the-server]__1z9hl9qdokxpu._.js +3 -0
  359. package/.next/server/chunks/_0-ne-bwuvd_6w._.js +1 -1
  360. package/.next/server/chunks/_011-ll5i30j2e._.js +1 -1
  361. package/.next/server/chunks/_01bayc6kg7upi._.js +1 -1
  362. package/.next/server/chunks/_029zt0rilrwvt._.js +1 -1
  363. package/.next/server/chunks/_03ovgh1-4xf3f._.js +1 -1
  364. package/.next/server/chunks/_0431fxnqiloso._.js +1 -1
  365. package/.next/server/chunks/_04vbgvl2gl5bc._.js +3 -0
  366. package/.next/server/chunks/_055vhdh_7iydn._.js +3 -0
  367. package/.next/server/chunks/_05ans30vcd4s-._.js +1 -1
  368. package/.next/server/chunks/{_04rjm4ctjqrba._.js → _06pseal2zu-71._.js} +2 -2
  369. package/.next/server/chunks/_076-jjzrfdsdk._.js +1 -1
  370. package/.next/server/chunks/_07amw8ha9rney._.js +1 -1
  371. package/.next/server/chunks/{_1fki7pamd4s-7._.js → _087uva8dkvxwz._.js} +2 -2
  372. package/.next/server/chunks/_08i9pskmlafnp._.js +1 -1
  373. package/.next/server/chunks/_09o9zamz75n5d._.js +1 -1
  374. package/.next/server/chunks/_0_3_65z6ak-5i._.js +1 -1
  375. package/.next/server/chunks/_0_5s2mrhxb3-u._.js +3 -0
  376. package/.next/server/chunks/_0_e736ff6uhew._.js +1 -1
  377. package/.next/server/chunks/_0anbzuivml30d._.js +1 -1
  378. package/.next/server/chunks/{_0edfmbz_jbxsu._.js → _0b9gke5b17vzh._.js} +2 -2
  379. package/.next/server/chunks/_0d66myj_8567o._.js +1 -1
  380. package/.next/server/chunks/_0gxi3zrkhyvx_._.js +1 -1
  381. package/.next/server/chunks/_0h1rbua_hqkox._.js +1 -1
  382. package/.next/server/chunks/_0hk9z9rqga4x-._.js +1 -1
  383. package/.next/server/chunks/_0i58-g30ox5-8._.js +3 -0
  384. package/.next/server/chunks/_0kjatc7pcrkvz._.js +1 -1
  385. package/.next/server/chunks/_0kreo-8xn80hb._.js +1 -1
  386. package/.next/server/chunks/_0l2j3br2g32zp._.js +1 -1
  387. package/.next/server/chunks/_0lepv-j_r8kfv._.js +3 -0
  388. package/.next/server/chunks/_0lmh33cdt_1fr._.js +1 -1
  389. package/.next/server/chunks/_0lob14xk0ko5z._.js +1 -1
  390. package/.next/server/chunks/_0mt2ctbvzfero._.js +1 -1
  391. package/.next/server/chunks/_0numcpxd_n25x._.js +3 -0
  392. package/.next/server/chunks/_0p-sas2zxy3iv._.js +1 -1
  393. package/.next/server/chunks/_0po48rvqz03dg._.js +1 -1
  394. package/.next/server/chunks/_0pzdohc1mz5ts._.js +1 -1
  395. package/.next/server/chunks/_0qaoat396e0_3._.js +1 -1
  396. package/.next/server/chunks/_0r8u30vd4lix4._.js +3 -0
  397. package/.next/server/chunks/_0r9ejvgz0l0-0._.js +1 -1
  398. package/.next/server/chunks/_0s8v0xiwcw6od._.js +3 -0
  399. package/.next/server/chunks/_0suqhfy3e5sv6._.js +1 -1
  400. package/.next/server/chunks/_0ta62b-tktnk8._.js +3 -0
  401. package/.next/server/chunks/{_03dn7v_h3d-v8._.js → _0tkov27xr068i._.js} +11 -7
  402. package/.next/server/chunks/_0tl0cy5j96d7h._.js +1 -1
  403. package/.next/server/chunks/_0tz5wpjdgntj3._.js +1 -1
  404. package/.next/server/chunks/_0wegi_sv1s4wx._.js +1 -1
  405. package/.next/server/chunks/_0xv7-7d6dyo9-._.js +1 -1
  406. package/.next/server/chunks/_0xx4y9tk1qclc._.js +1 -1
  407. package/.next/server/chunks/_0zs7jfzzshbfq._.js +1 -1
  408. package/.next/server/chunks/_11w6ynlxuzl55._.js +1 -1
  409. package/.next/server/chunks/_12fz_vwm9jemi._.js +3 -0
  410. package/.next/server/chunks/_12i51zlq-xxrl._.js +1 -1
  411. package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
  412. package/.next/server/chunks/_12xi_xqvtrn3k._.js +3 -0
  413. package/.next/server/chunks/_13ffmxv8qrwi0._.js +1 -1
  414. package/.next/server/chunks/_14w9nrdlajz24._.js +1 -1
  415. package/.next/server/chunks/_15fpgekhvv214._.js +1 -1
  416. package/.next/server/chunks/{_043-r529chcri._.js → _1638xaazsmf2m._.js} +11 -7
  417. package/.next/server/chunks/_1647rfjflw_iq._.js +1 -1
  418. package/.next/server/chunks/_16jdov0rxh99d._.js +1 -1
  419. package/.next/server/chunks/_17zw8m241gfs3._.js +1 -1
  420. package/.next/server/chunks/_18amra5328v90._.js +1 -1
  421. package/.next/server/chunks/_18hm5aaxkr500._.js +1 -1
  422. package/.next/server/chunks/_1_273cgnpyl9j._.js +1 -1
  423. package/.next/server/chunks/_1a1aqmie1d3u_._.js +1 -1
  424. package/.next/server/chunks/_1a1udq0c4_6ad._.js +1 -1
  425. package/.next/server/chunks/_1ab7h8-how0le._.js +3 -0
  426. package/.next/server/chunks/_1ahi8466v1b3l._.js +1 -1
  427. package/.next/server/chunks/_1almac7c09mp4._.js +3 -0
  428. package/.next/server/chunks/_1b-7g4thtxfnp._.js +3 -0
  429. package/.next/server/chunks/_1b0269xt-c8f7._.js +1 -1
  430. package/.next/server/chunks/_1b7qjlv0nxovi._.js +1 -1
  431. package/.next/server/chunks/_1be-y660a8z-q._.js +1 -1
  432. package/.next/server/chunks/_1cydcmia78z15._.js +1 -1
  433. package/.next/server/chunks/_1e8w9uuebtrcb._.js +1 -1
  434. package/.next/server/chunks/_1ev3hw7jrpp8r._.js +3 -0
  435. package/.next/server/chunks/_1gdet1v2zk2gy._.js +1 -1
  436. package/.next/server/chunks/_1hj7iit2u6xez._.js +1 -1
  437. package/.next/server/chunks/_1hp9mnz19v199._.js +1 -1
  438. package/.next/server/chunks/_1j10upti9l6da._.js +1 -1
  439. package/.next/server/chunks/_1j8kqz21_i728._.js +1 -1
  440. package/.next/server/chunks/_1lesklvhr_pfq._.js +3 -0
  441. package/.next/server/chunks/_1muwmr6j76v3m._.js +1 -1
  442. package/.next/server/chunks/_1pvqo-qnv-nqm._.js +1 -1
  443. package/.next/server/chunks/_1q65ai1_dwgjp._.js +1 -1
  444. package/.next/server/chunks/_1qcv4muwnx82-._.js +3 -0
  445. package/.next/server/chunks/_1s5-ldt8xhtpp._.js +1 -1
  446. package/.next/server/chunks/_1s55l1bx-1cxp._.js +1 -1
  447. package/.next/server/chunks/_1sp0xk1c5jx5r._.js +1 -1
  448. package/.next/server/chunks/_1srq5kxah38r6._.js +1 -1
  449. package/.next/server/chunks/_1t632kndbc0tj._.js +3 -0
  450. package/.next/server/chunks/_1tahh9ric8la3._.js +1 -1
  451. package/.next/server/chunks/_1tvl0cm629nyc._.js +1 -1
  452. package/.next/server/chunks/_1u6r2cuueltfn._.js +3 -0
  453. package/.next/server/chunks/{_1-6i59jd1zhly._.js → _1vddun9dxzaqo._.js} +11 -7
  454. package/.next/server/chunks/_1xpj9uk-9zhl8._.js +1 -1
  455. package/.next/server/chunks/_1xx5l4x084brt._.js +3 -0
  456. package/.next/server/chunks/_1z_ujac_e_65s._.js +1 -1
  457. package/.next/server/chunks/_1zbkha-v5mkk0._.js +3 -0
  458. package/.next/server/chunks/_1zvf_gki7-g0n._.js +1 -1
  459. package/.next/server/chunks/{_0r0hnbjdq-k9-._.js → _20snsd6f1xc63._.js} +2 -2
  460. package/.next/server/chunks/_20tjujotvor53._.js +1 -1
  461. package/.next/server/chunks/node_modules_zod_v4_classic_external_0qoqh-q5drsgn.js +4 -4
  462. package/.next/server/chunks/node_modules_zod_v4_classic_external_14kwlambv9opd.js +3 -0
  463. package/.next/server/chunks/node_modules_zod_v4_classic_external_17gmk506tz413.js +3 -0
  464. package/.next/server/chunks/node_modules_zod_v4_classic_external_1b_q1zc0x8d76.js +3 -0
  465. package/.next/server/chunks/node_modules_zod_v4_classic_external_1exeae-p81c94.js +3 -0
  466. package/.next/server/chunks/node_modules_zod_v4_classic_external_1giv406od1whf.js +3 -0
  467. package/.next/server/chunks/node_modules_zod_v4_classic_external_1wq100x5o7-hi.js +3 -0
  468. package/.next/server/chunks/node_modules_zod_v4_classic_external_1x8fhte3frhrw.js +3 -0
  469. package/.next/server/chunks/src_lib_0dxltm34zaclb._.js +3 -0
  470. package/.next/server/chunks/src_lib_0g4wu08m-gibu._.js +3 -0
  471. package/.next/server/chunks/src_lib_0l0j89xrerf8m._.js +3 -0
  472. package/.next/server/chunks/src_lib_0osgsup3n2ypg._.js +3 -0
  473. package/.next/server/chunks/src_lib_0so-2topfosjo._.js +3 -0
  474. package/.next/server/chunks/src_lib_0whd_w99i5vmm._.js +3 -0
  475. package/.next/server/chunks/src_lib_0z4je8wchtdws._.js +3 -0
  476. package/.next/server/chunks/src_lib_0zeksho3data7._.js +3 -0
  477. package/.next/server/chunks/src_lib_15op6xa369-51._.js +3 -0
  478. package/.next/server/chunks/src_lib_1_m3-y2t3e4xi._.js +143 -131
  479. package/.next/server/chunks/src_lib_1d0nldjpxxl8t._.js +3 -0
  480. package/.next/server/chunks/src_lib_1d99xj4d-pofa._.js +3 -0
  481. package/.next/server/chunks/src_lib_1v7rk87xys5cb._.js +3 -0
  482. package/.next/server/chunks/src_lib_1w0niu4i8hnaq._.js +3 -0
  483. package/.next/server/chunks/src_lib_ai_index_ts_0m0hlq4d9zy9i._.js +1 -1
  484. package/.next/server/chunks/src_lib_exam_1vzmn90_kh7eg._.js +3 -0
  485. package/.next/server/chunks/src_lib_exam_exam_ts_18c3t7bnr1z5k._.js +3 -0
  486. package/.next/server/chunks/src_lib_import_import-batches_ts_0nq3mn0v5uj28._.js +5 -0
  487. package/.next/server/chunks/src_lib_import_import-tasks_ts_01f-g_upv7llt._.js +3 -0
  488. package/.next/server/chunks/src_lib_mastery-status_ts_0e9jnp-14tby5._.js +3 -0
  489. package/.next/server/chunks/src_lib_minimax-code_checkin_ts_1j1mpuxc1vgoz._.js +1 -1
  490. package/.next/server/chunks/src_lib_notebook-scope_ts_06eipvr6xztlf._.js +3 -0
  491. package/.next/server/chunks/src_lib_question_0uw17e6at-i_h._.js +3 -0
  492. package/.next/server/chunks/src_lib_question_question-analysis_ts_1-3x2cfxlr3fs._.js +3 -0
  493. package/.next/server/chunks/src_lib_question_question-deduplication_ts_0gumctesi3szc._.js +3 -0
  494. package/.next/server/chunks/src_lib_recoverable-response_ts_00y54idhlj_0e._.js +3 -0
  495. package/.next/server/chunks/src_lib_schemas_error-items_ts_0vdof4417rd3y._.js +3 -0
  496. package/.next/server/chunks/src_lib_short-id_0adg7-htn2dq_._.js +3 -0
  497. package/.next/server/chunks/src_lib_svg-animation_ts_0-noskwg6sysg._.js +3 -0
  498. package/.next/server/chunks/src_lib_tags_retag_ts_09s5xwrzcy144._.js +3 -0
  499. package/.next/server/chunks/src_lib_tags_seed_1_ej3w-2450a0._.js +3 -0
  500. package/.next/server/chunks/src_lib_tts_19zri-v8-l_4u._.js +1 -1
  501. package/.next/server/chunks/ssr/[root-of-the-server]__032-uso7x2eqk._.js +3 -0
  502. package/.next/server/chunks/ssr/[root-of-the-server]__0ks-9bza_y-tn._.js +3 -0
  503. package/.next/server/chunks/ssr/[root-of-the-server]__0te5kr0_7nmrv._.js +3 -0
  504. package/.next/server/chunks/ssr/[root-of-the-server]__0uezowk-9l0x4._.js +3 -0
  505. package/.next/server/chunks/ssr/[root-of-the-server]__0x4us8rfvt68s._.js +3 -0
  506. package/.next/server/chunks/ssr/{[root-of-the-server]__0mqo18mv_ooyq._.js → [root-of-the-server]__0xjcdrflb40xr._.js} +2 -2
  507. package/.next/server/chunks/ssr/{[root-of-the-server]__0x_ihemma9171._.js → [root-of-the-server]__0z7upqzuqtse6._.js} +2 -2
  508. package/.next/server/chunks/ssr/[root-of-the-server]__10y8dor72926b._.js +3 -0
  509. package/.next/server/chunks/ssr/[root-of-the-server]__12jk2bmesr4gc._.js +3 -0
  510. package/.next/server/chunks/ssr/[root-of-the-server]__1rrcp_77jpv98._.js +3 -0
  511. package/.next/server/chunks/ssr/_05k02824g2tpo._.js +3 -0
  512. package/.next/server/chunks/ssr/_0cmd1ubdlo_by._.js +1 -1
  513. package/.next/server/chunks/ssr/_0fp_p60hb9ex8._.js +3 -0
  514. package/.next/server/chunks/ssr/_0gsk7ce3mjc-h._.js +3 -0
  515. package/.next/server/chunks/ssr/_0haie2cnycj6w._.js +32 -0
  516. package/.next/server/chunks/ssr/{_01qu892bisrf0._.js → _0j-r3zhz2ucmg._.js} +2 -2
  517. package/.next/server/chunks/ssr/_0m1jjbrzk71io._.js +3 -0
  518. package/.next/server/chunks/ssr/_0mvuvawj5-r--._.js +1 -1
  519. package/.next/server/chunks/ssr/_0rd-teluypcd2._.js +1 -1
  520. package/.next/server/chunks/ssr/_0xlbgtld9_r3o._.js +3 -0
  521. package/.next/server/chunks/ssr/{_186fwf-hcr_ua._.js → _101w__e2w9gr0._.js} +2 -2
  522. package/.next/server/chunks/ssr/_126p5i1ynlykc._.js +3 -0
  523. package/.next/server/chunks/ssr/_127aw5h992s9d._.js +4 -0
  524. package/.next/server/chunks/ssr/_19hxsrrruepym._.js +1 -1
  525. package/.next/server/chunks/ssr/_1bhvzfiuz3s7j._.js +3 -0
  526. package/.next/server/chunks/ssr/_1d3pxsso6zv_w._.js +3 -0
  527. package/.next/server/chunks/ssr/_1hp3fw-gk2r-3._.js +3 -0
  528. package/.next/server/chunks/ssr/_1k45xb7mu-emd._.js +3 -0
  529. package/.next/server/chunks/ssr/_1lltqgoq4vqfe._.js +3 -0
  530. package/.next/server/chunks/ssr/_1ore70w45768b._.js +3 -0
  531. package/.next/server/chunks/ssr/{_1xv0q8o3g3r5d._.js → _1s3gqrczubor-._.js} +2 -2
  532. package/.next/server/chunks/ssr/_1t-o815u40ng2._.js +3 -0
  533. package/.next/server/chunks/ssr/{_1pdnzaad7hk0d._.js → _1x_zn17exkc4t._.js} +2 -2
  534. package/.next/server/chunks/ssr/_1yclgq1umgl4p._.js +4 -0
  535. package/.next/server/chunks/ssr/node_modules_08vtqzu_wfcb5._.js +3 -0
  536. package/.next/server/chunks/ssr/node_modules_0y-9u3ez_29oz._.js +3 -0
  537. package/.next/server/chunks/ssr/node_modules_109z-y1z_gtxg._.js +3 -0
  538. package/.next/server/chunks/ssr/node_modules_docx_dist_index_mjs_07znba89yz2vi._.js +3 -0
  539. package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_0byqh-lbfcigr.js → node_modules_heic-to_dist_csp_heic-to_1_jdv4y0yz52i.js} +1 -1
  540. package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_19_dv9gdzg_e7.js → node_modules_heic-to_dist_csp_heic-to_1zqrtb3kykd7q.js} +1 -1
  541. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_printer_mjs_0jbt269gi19_7._.js +3 -0
  542. package/.next/server/chunks/ssr/node_modules_pdfjs-dist_build_pdf_mjs_0z37jkkqfce7_._.js +47 -0
  543. package/.next/server/chunks/ssr/node_modules_read-excel-file_universal_index_0ayslfrutmja5.js +3 -0
  544. package/.next/server/chunks/ssr/node_modules_write-excel-file_browser_index_0l2-di6rcng1b.js +3 -0
  545. package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_0veaboc415l0m.js +3 -3
  546. package/.next/server/chunks/ssr/src_0_qzoo_03n_v-._.js +3 -0
  547. package/.next/server/chunks/ssr/src_130ww76krpws_._.js +1 -1
  548. package/.next/server/chunks/ssr/src_1gayunqs8u2e2._.js +1 -1
  549. package/.next/server/chunks/ssr/src_1nbi4yrww3r1m._.js +3 -0
  550. package/.next/server/chunks/ssr/{src_1jhctayt9gxoc._.js → src_1o5f_wr8vv-x0._.js} +2 -2
  551. package/.next/server/chunks/ssr/src_1rmus42s388dk._.js +3 -0
  552. package/.next/server/chunks/ssr/src_1seqsa8jiwu83._.js +3 -0
  553. package/.next/server/chunks/ssr/src_1xvnkkhvub372._.js +1 -1
  554. package/.next/server/chunks/ssr/src_app_error-items_[id]_page_tsx_04xwwdmyh7_9q._.js +1 -1
  555. package/.next/server/chunks/ssr/src_app_exams_[id]_page_tsx_0xcjflkgkwzgd._.js +1 -1
  556. package/.next/server/chunks/ssr/src_app_exams_[id]_print_page_tsx_1i-xvhk8ul1l1._.js +11 -6
  557. package/.next/server/chunks/ssr/src_app_exams_page_tsx_17_d4_gy2i1ds._.js +1 -1
  558. package/.next/server/chunks/ssr/src_app_import-batches_[id]_page_tsx_0mhg_vriwmkkw._.js +1 -1
  559. package/.next/server/chunks/ssr/src_app_import-tasks_[id]_page_tsx_0_grj11-jdqqc._.js +1 -1
  560. package/.next/server/chunks/ssr/src_app_import-tasks_page_tsx_01983hytm-x08._.js +1 -1
  561. package/.next/server/chunks/ssr/src_app_notebooks_[id]_add_page_tsx_179tow1ql6vc_._.js +1 -1
  562. package/.next/server/chunks/ssr/src_app_notebooks_[id]_page_tsx_08njm-5-txm8_._.js +1 -1
  563. package/.next/server/chunks/ssr/src_app_notebooks_page_tsx_1p9src5gnz_40._.js +1 -1
  564. package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +6 -1
  565. package/.next/server/chunks/ssr/src_app_print-preview_page_tsx_001yt-fzrj7tf._.js +1 -1
  566. package/.next/server/chunks/ssr/src_components_correction-editor_tsx_1p7z02t66tndx._.js +3 -3
  567. package/.next/server/chunks/ssr/src_components_error-list_error-item-card_tsx_1zsiqsrj-jjd7._.js +1 -1
  568. package/.next/server/chunks/ssr/src_components_exam_exam-figure-scale-bar_tsx_1dxk6lzvp_d28._.js +1 -1
  569. package/.next/server/chunks/ssr/src_components_import-tasks_import-task-card_tsx_01r47qh8ryspb._.js +1 -1
  570. package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +15 -10
  571. package/.next/server/chunks/ssr/src_components_ui_switch_tsx_054tyo61pehla._.js +3 -0
  572. package/.next/server/chunks/ssr/src_lib_0773v8b5gb93o._.js +9 -0
  573. package/.next/server/chunks/ssr/src_lib_1qhs590-z9xnh._.js +9 -0
  574. package/.next/server/chunks/ssr/src_lib_1z8akixo3j8ti._.js +9 -0
  575. package/.next/server/chunks/ssr/src_lib_api-client_ts_04r2_ex-gua5i._.js +1 -1
  576. package/.next/server/chunks/ssr/src_lib_i18n_en_ts_08zkpwnoqey5s._.js +3 -0
  577. package/.next/server/chunks/ssr/src_lib_short-id_short-id-client_ts_03nnd3s0tat3l._.js +3 -0
  578. package/.next/server/middleware-build-manifest.js +3 -3
  579. package/.next/server/pages/500.html +1 -1
  580. package/.next/static/chunks/01zokrwums-fz.js +55 -0
  581. package/.next/static/chunks/{1pdlii0oox0-7.js → 037g92rz3qjm_.js} +1 -1
  582. package/.next/static/chunks/040et8v6_v-s6.js +1 -0
  583. package/.next/static/chunks/{2cfz0fumc6ghe.js → 045cs_rolnmjd.js} +1 -1
  584. package/.next/static/chunks/079f88y9j6sf-.js +45 -0
  585. package/.next/static/chunks/0g1lk2opoyqly.js +1 -0
  586. package/.next/static/chunks/0ge9zqd21b4xd.js +15 -0
  587. package/.next/static/chunks/0gu34v572tj7o.js +1 -0
  588. package/.next/static/chunks/0mnb66hvp3czv.js +2 -0
  589. package/.next/static/chunks/0mun2h4uaj4eh.js +1 -0
  590. package/.next/static/chunks/{02wft51kf3t9f.js → 0ovv_fq59i4y4.js} +1 -1
  591. package/.next/static/chunks/0sl4wa-ghh5g7.js +2 -0
  592. package/.next/static/chunks/0xbohpfp7x9jn.js +1 -0
  593. package/.next/static/chunks/{31-r0kqqw-wfd.js → 0xwz3h9d_e7kb.js} +1 -1
  594. package/.next/static/chunks/{0_xcjg47jv3ur.js → 1-qu_z3i5b8ul.js} +1 -1
  595. package/.next/static/chunks/10hk15u8jc7o1.js +38 -0
  596. package/.next/static/chunks/113lhm-f9le_y.js +2 -0
  597. package/.next/static/chunks/{42rupczfyygo1.js → 15zro21ycjjle.js} +1 -1
  598. package/.next/static/chunks/{3difxy8vzqlxn.js → 1fmrzsulv-ddd.js} +1 -1
  599. package/.next/static/chunks/{3fh32b9da9l_5.js → 1k2m_f0nu22fb.js} +1 -1
  600. package/.next/static/chunks/1uso50ewx5j8v.js +1 -0
  601. package/.next/static/chunks/1vtq_er8xir3c.css +3 -0
  602. package/.next/static/chunks/1y0cjudvnz4la.js +6 -0
  603. package/.next/static/chunks/20f7m1txoey_w.js +1 -0
  604. package/.next/static/chunks/21ghhv1twe4or.js +12 -0
  605. package/.next/static/chunks/23h8i_poncr7i.js +1 -0
  606. package/.next/static/chunks/28bc-wd48lcls.js +1 -0
  607. package/.next/static/chunks/2acga0__tn9yl.js +1 -0
  608. package/.next/static/chunks/2j3bisradcgfv.js +1 -0
  609. package/.next/static/chunks/2lhxk-8dpncxq.js +1 -0
  610. package/.next/static/chunks/2xww3vrggzkc3.js +15 -0
  611. package/.next/static/chunks/3-5otbeiq86n5.js +1 -0
  612. package/.next/static/chunks/31uxxyexyu66p.js +198 -0
  613. package/.next/static/chunks/33z7oz1790x50.js +1 -0
  614. package/.next/static/chunks/37309r9ttt-oa.js +1 -0
  615. package/.next/static/chunks/3_w-p8241f5rv.js +1 -0
  616. package/.next/static/chunks/{1uaqnxl-xshw6.js → 3f9t8cne6yfyl.js} +1 -1
  617. package/.next/static/chunks/{3wch6vphcivq5.js → 3j92h-4k4_o_f.js} +1 -1
  618. package/.next/static/chunks/3jkntcd5fwsid.js +1 -0
  619. package/.next/static/chunks/3ldaxwwj8i1r_.js +9 -0
  620. package/.next/static/chunks/3nq-bgq8lumv9.js +1 -0
  621. package/.next/static/chunks/{4441xuc3i-yb7.js → 3rnbnqcge4lza.js} +1 -1
  622. package/.next/static/chunks/3t9tbm4atwmw8.js +1 -0
  623. package/.next/static/chunks/3u-qpv02dkpmu.js +1 -0
  624. package/.next/static/chunks/438pvifm_o4g_.js +1 -0
  625. package/.next/static/media/pdf.worker.min.0zcq5mj7t-qsr.mjs +28 -0
  626. package/dist-scripts/scripts/rebuild-system-tags.js +11 -107
  627. package/dist-scripts/scripts/seed-chinese-primary.js +1 -1
  628. package/dist-scripts/src/lib/logger.js +1 -0
  629. package/dist-scripts/src/lib/tags/seed/rebuild.js +103 -0
  630. package/dist-scripts/src/lib/{seed-chinese-tags.js → tags/seed/seed-chinese-tags.js} +2 -1
  631. package/package.json +1 -1
  632. package/prisma/migrations/20261104033404_add_question_type/migration.sql +2 -0
  633. package/prisma/migrations/20261104040208_exam_question_score/migration.sql +2 -0
  634. package/prisma/migrations/20261104044246_exam_group_by_question_type/migration.sql +29 -0
  635. package/prisma/schema.prisma +7 -0
  636. package/prisma/seed.db +0 -0
  637. package/.next/server/chunks/[root-of-the-server]__012pau7crikop._.js +0 -3
  638. package/.next/server/chunks/[root-of-the-server]__01jc87mm42cex._.js +0 -3
  639. package/.next/server/chunks/[root-of-the-server]__01newhoirvvb2._.js +0 -3
  640. package/.next/server/chunks/[root-of-the-server]__02oqd6w58wymi._.js +0 -3
  641. package/.next/server/chunks/[root-of-the-server]__057qz9ucs7lib._.js +0 -3
  642. package/.next/server/chunks/[root-of-the-server]__06_pvs6rg70ri._.js +0 -3
  643. package/.next/server/chunks/[root-of-the-server]__06jad9cnzeci-._.js +0 -3
  644. package/.next/server/chunks/[root-of-the-server]__0_uvtfu0yr-na._.js +0 -27
  645. package/.next/server/chunks/[root-of-the-server]__0_vinl1oembls._.js +0 -3
  646. package/.next/server/chunks/[root-of-the-server]__0ahni9caaouya._.js +0 -3
  647. package/.next/server/chunks/[root-of-the-server]__0aq01totjzgkp._.js +0 -3
  648. package/.next/server/chunks/[root-of-the-server]__0b5mh_vi6e246._.js +0 -3
  649. package/.next/server/chunks/[root-of-the-server]__0b5qyqwq6mk5v._.js +0 -3
  650. package/.next/server/chunks/[root-of-the-server]__0b79cd6lae7ep._.js +0 -3
  651. package/.next/server/chunks/[root-of-the-server]__0b_zf20owrv7l._.js +0 -3
  652. package/.next/server/chunks/[root-of-the-server]__0cel4yig3zcho._.js +0 -3
  653. package/.next/server/chunks/[root-of-the-server]__0cu5jz9b3f0i1._.js +0 -3
  654. package/.next/server/chunks/[root-of-the-server]__0d818ux928r5h._.js +0 -3
  655. package/.next/server/chunks/[root-of-the-server]__0dclcdg0hwxxj._.js +0 -3
  656. package/.next/server/chunks/[root-of-the-server]__0e13o3ny66zb3._.js +0 -3
  657. package/.next/server/chunks/[root-of-the-server]__0fg20m1i6x4y9._.js +0 -3
  658. package/.next/server/chunks/[root-of-the-server]__0fhy87hr0_glw._.js +0 -3
  659. package/.next/server/chunks/[root-of-the-server]__0fnte1x8xdn5o._.js +0 -3
  660. package/.next/server/chunks/[root-of-the-server]__0glupa52ge074._.js +0 -3
  661. package/.next/server/chunks/[root-of-the-server]__0gphporvvjc0d._.js +0 -3
  662. package/.next/server/chunks/[root-of-the-server]__0gs7-3gi0pdws._.js +0 -3
  663. package/.next/server/chunks/[root-of-the-server]__0i2mt6zjxbq--._.js +0 -3
  664. package/.next/server/chunks/[root-of-the-server]__0ijq_d0gr5zo8._.js +0 -3
  665. package/.next/server/chunks/[root-of-the-server]__0iqp1f0-yvbhw._.js +0 -3
  666. package/.next/server/chunks/[root-of-the-server]__0jk-9m6ra-_um._.js +0 -3
  667. package/.next/server/chunks/[root-of-the-server]__0jvusk64khb-a._.js +0 -3
  668. package/.next/server/chunks/[root-of-the-server]__0k0c90ih7n0te._.js +0 -3
  669. package/.next/server/chunks/[root-of-the-server]__0maxg52nxqrzi._.js +0 -3
  670. package/.next/server/chunks/[root-of-the-server]__0ml-m3il4unb6._.js +0 -3
  671. package/.next/server/chunks/[root-of-the-server]__0nkrql6or-tf_._.js +0 -3
  672. package/.next/server/chunks/[root-of-the-server]__0nujsu6qbn-8o._.js +0 -27
  673. package/.next/server/chunks/[root-of-the-server]__0ovdiut1h8kkt._.js +0 -3
  674. package/.next/server/chunks/[root-of-the-server]__0p5_lv_pjxr5f._.js +0 -3
  675. package/.next/server/chunks/[root-of-the-server]__0p8wlug4uvmvi._.js +0 -3
  676. package/.next/server/chunks/[root-of-the-server]__0ptn9j1rleieh._.js +0 -3
  677. package/.next/server/chunks/[root-of-the-server]__0r7f34_38kmvk._.js +0 -3
  678. package/.next/server/chunks/[root-of-the-server]__0u3m78xhq8b3l._.js +0 -3
  679. package/.next/server/chunks/[root-of-the-server]__0ualui9b50ufh._.js +0 -3
  680. package/.next/server/chunks/[root-of-the-server]__0ujfft7untkmq._.js +0 -3
  681. package/.next/server/chunks/[root-of-the-server]__0vw7u-y__gk7p._.js +0 -3
  682. package/.next/server/chunks/[root-of-the-server]__0w53aflmo1keg._.js +0 -3
  683. package/.next/server/chunks/[root-of-the-server]__0wdjzoxwwh6bn._.js +0 -3
  684. package/.next/server/chunks/[root-of-the-server]__0wx65sza19ou-._.js +0 -3
  685. package/.next/server/chunks/[root-of-the-server]__0xj_313186tqc._.js +0 -3
  686. package/.next/server/chunks/[root-of-the-server]__0yv_kznxz5qzn._.js +0 -3
  687. package/.next/server/chunks/[root-of-the-server]__0zldj8zxo-hvc._.js +0 -3
  688. package/.next/server/chunks/[root-of-the-server]__1-djdd7tnb-n7._.js +0 -3
  689. package/.next/server/chunks/[root-of-the-server]__109pj952qxtan._.js +0 -3
  690. package/.next/server/chunks/[root-of-the-server]__10gp75p89v9a2._.js +0 -3
  691. package/.next/server/chunks/[root-of-the-server]__111jxitdjhuoj._.js +0 -3
  692. package/.next/server/chunks/[root-of-the-server]__112w8xm57okk5._.js +0 -3
  693. package/.next/server/chunks/[root-of-the-server]__12h4ckd6f76pb._.js +0 -3
  694. package/.next/server/chunks/[root-of-the-server]__12ig6-5hpb7s-._.js +0 -3
  695. package/.next/server/chunks/[root-of-the-server]__13_k7w8nrx7ie._.js +0 -3
  696. package/.next/server/chunks/[root-of-the-server]__14c50fhuh_abo._.js +0 -3
  697. package/.next/server/chunks/[root-of-the-server]__14jpfgwnpc9gl._.js +0 -3
  698. package/.next/server/chunks/[root-of-the-server]__14m8fewwq1xs6._.js +0 -3
  699. package/.next/server/chunks/[root-of-the-server]__15qkqztuygnfg._.js +0 -3
  700. package/.next/server/chunks/[root-of-the-server]__166997w1su5wq._.js +0 -3
  701. package/.next/server/chunks/[root-of-the-server]__16xl11-irmhu3._.js +0 -3
  702. package/.next/server/chunks/[root-of-the-server]__19i64i9v32y8o._.js +0 -3
  703. package/.next/server/chunks/[root-of-the-server]__19jqc7tzna13p._.js +0 -3
  704. package/.next/server/chunks/[root-of-the-server]__1asgy7sah0mo6._.js +0 -3
  705. package/.next/server/chunks/[root-of-the-server]__1av1l48rnghpa._.js +0 -3
  706. package/.next/server/chunks/[root-of-the-server]__1azaa45m60iqm._.js +0 -3
  707. package/.next/server/chunks/[root-of-the-server]__1d159cxbdta68._.js +0 -3
  708. package/.next/server/chunks/[root-of-the-server]__1dmp3ynxbcyjz._.js +0 -3
  709. package/.next/server/chunks/[root-of-the-server]__1dom1le7wqh7d._.js +0 -3
  710. package/.next/server/chunks/[root-of-the-server]__1e5tjfwab0exu._.js +0 -3
  711. package/.next/server/chunks/[root-of-the-server]__1f-7-l2abs15s._.js +0 -3
  712. package/.next/server/chunks/[root-of-the-server]__1fe2v2mv5-rgo._.js +0 -3
  713. package/.next/server/chunks/[root-of-the-server]__1fepss7g57apj._.js +0 -3
  714. package/.next/server/chunks/[root-of-the-server]__1ff3h7ockrpdf._.js +0 -3
  715. package/.next/server/chunks/[root-of-the-server]__1g11271g0z55n._.js +0 -3
  716. package/.next/server/chunks/[root-of-the-server]__1g6jrwm72xr8a._.js +0 -3
  717. package/.next/server/chunks/[root-of-the-server]__1he8kk4382-0h._.js +0 -3
  718. package/.next/server/chunks/[root-of-the-server]__1hk5kgctlp2wn._.js +0 -3
  719. package/.next/server/chunks/[root-of-the-server]__1j44_t992y-1-._.js +0 -3
  720. package/.next/server/chunks/[root-of-the-server]__1k4f33-z95_7c._.js +0 -3
  721. package/.next/server/chunks/[root-of-the-server]__1k4pnhbw4rgzs._.js +0 -3
  722. package/.next/server/chunks/[root-of-the-server]__1kx3a0dm7l2wl._.js +0 -3
  723. package/.next/server/chunks/[root-of-the-server]__1lea5m7hl1n7f._.js +0 -3
  724. package/.next/server/chunks/[root-of-the-server]__1m7pja8jp27eh._.js +0 -3
  725. package/.next/server/chunks/[root-of-the-server]__1m_y4afrn94oy._.js +0 -3
  726. package/.next/server/chunks/[root-of-the-server]__1ruzcenko2gi1._.js +0 -3
  727. package/.next/server/chunks/[root-of-the-server]__1sf2oa2wkqf_0._.js +0 -3
  728. package/.next/server/chunks/[root-of-the-server]__1t6aypqxgjkg_._.js +0 -3
  729. package/.next/server/chunks/[root-of-the-server]__1tffqae521gxo._.js +0 -3
  730. package/.next/server/chunks/[root-of-the-server]__1to25zgnk7xk-._.js +0 -3
  731. package/.next/server/chunks/[root-of-the-server]__1u5c7agj_phnb._.js +0 -3
  732. package/.next/server/chunks/[root-of-the-server]__1vbof6uu4he_-._.js +0 -3
  733. package/.next/server/chunks/[root-of-the-server]__1wfhdwfdvc6j3._.js +0 -3
  734. package/.next/server/chunks/[root-of-the-server]__1y0n2tg-0l636._.js +0 -3
  735. package/.next/server/chunks/[root-of-the-server]__1zc0bmdyn1lg4._.js +0 -3
  736. package/.next/server/chunks/[root-of-the-server]__1zqfz2rc4i280._.js +0 -3
  737. package/.next/server/chunks/[root-of-the-server]__207c97dbcdb0z._.js +0 -3
  738. package/.next/server/chunks/[root-of-the-server]__20cdqectwle3j._.js +0 -3
  739. package/.next/server/chunks/[root-of-the-server]__20dy4zclqbnw8._.js +0 -3
  740. package/.next/server/chunks/[root-of-the-server]__212aaltyh6kc2._.js +0 -3
  741. package/.next/server/chunks/_01y7-j4vx6cu5._.js +0 -3
  742. package/.next/server/chunks/_0_rhee7wb6tcg._.js +0 -3
  743. package/.next/server/chunks/_0at03z7sgwdv3._.js +0 -3
  744. package/.next/server/chunks/_0ge95_bkwrkmc._.js +0 -3
  745. package/.next/server/chunks/_0lj59y-ytysr5._.js +0 -3
  746. package/.next/server/chunks/_0v762_h-sp94d._.js +0 -3
  747. package/.next/server/chunks/_0vshwghrjetxu._.js +0 -3
  748. package/.next/server/chunks/_0z0zrluul2idw._.js +0 -3
  749. package/.next/server/chunks/_1a1oatugfke1p._.js +0 -3
  750. package/.next/server/chunks/_1ex6ovo_j2jzv._.js +0 -3
  751. package/.next/server/chunks/_1fgb9ve_nfat4._.js +0 -3
  752. package/.next/server/chunks/_1fsfy4c3rj36b._.js +0 -3
  753. package/.next/server/chunks/_1hc_es1a3cl6a._.js +0 -3
  754. package/.next/server/chunks/_1m-yyz-pl9-03._.js +0 -3
  755. package/.next/server/chunks/_1ns6y6y2tq8sh._.js +0 -3
  756. package/.next/server/chunks/_1yujnc0thk8ab._.js +0 -3
  757. package/.next/server/chunks/_211va-dk9519v._.js +0 -3
  758. package/.next/server/chunks/src_lib_0_g_0q-n01g-x._.js +0 -3
  759. package/.next/server/chunks/src_lib_0au5a9-5rxkab._.js +0 -3
  760. package/.next/server/chunks/src_lib_0d7kmnt7v2np8._.js +0 -3
  761. package/.next/server/chunks/src_lib_0fedb0fkc3km1._.js +0 -3
  762. package/.next/server/chunks/src_lib_0okewfjk6p2ci._.js +0 -3
  763. package/.next/server/chunks/src_lib_0ptvn4_15zxu0._.js +0 -3
  764. package/.next/server/chunks/src_lib_0rb6u4i7kn30r._.js +0 -3
  765. package/.next/server/chunks/src_lib_0svj7bkzyw9oc._.js +0 -3
  766. package/.next/server/chunks/src_lib_10is5pyogge95._.js +0 -3
  767. package/.next/server/chunks/src_lib_12j7n__96zd0q._.js +0 -3
  768. package/.next/server/chunks/src_lib_13hd5uoi-53hn._.js +0 -3
  769. package/.next/server/chunks/src_lib_1chbt4n9_vpoj._.js +0 -3
  770. package/.next/server/chunks/src_lib_1geq39r7va9gy._.js +0 -3
  771. package/.next/server/chunks/src_lib_1h4xeb9lyx31r._.js +0 -3
  772. package/.next/server/chunks/src_lib_1mno8g5cqmaet._.js +0 -3
  773. package/.next/server/chunks/src_lib_1qvj-3jt4jbq7._.js +0 -3
  774. package/.next/server/chunks/src_lib_1smlosz37xitx._.js +0 -3
  775. package/.next/server/chunks/src_lib_1squodf4swo_a._.js +0 -3
  776. package/.next/server/chunks/src_lib_1uei_xjjj3g7_._.js +0 -3
  777. package/.next/server/chunks/src_lib_1vt5vsj108u_q._.js +0 -3
  778. package/.next/server/chunks/src_lib_api-errors_ts_1gfd4ojz7efro._.js +0 -3
  779. package/.next/server/chunks/src_lib_exam_ts_0d3a4q4r41hcf._.js +0 -3
  780. package/.next/server/chunks/src_lib_figure-scale_ts_215n0ebzz7mr7._.js +0 -3
  781. package/.next/server/chunks/src_lib_import-batches_ts_0aekmggdwo_9-._.js +0 -3
  782. package/.next/server/chunks/src_lib_import-tasks_ts_1f4ejsy00-v1t._.js +0 -3
  783. package/.next/server/chunks/src_lib_question-analysis_ts_15_8r_pxmtd06._.js +0 -3
  784. package/.next/server/chunks/src_lib_question-deduplication_ts_1p1bik-vwl9ue._.js +0 -3
  785. package/.next/server/chunks/src_lib_retag_ts_0eu8ld_86kt3a._.js +0 -3
  786. package/.next/server/chunks/ssr/[root-of-the-server]__00_c9kpvx5075._.js +0 -3
  787. package/.next/server/chunks/ssr/[root-of-the-server]__03208_liub81h._.js +0 -3
  788. package/.next/server/chunks/ssr/[root-of-the-server]__08j-3_6cl3898._.js +0 -3
  789. package/.next/server/chunks/ssr/[root-of-the-server]__0ht0nkzazbnl9._.js +0 -3
  790. package/.next/server/chunks/ssr/[root-of-the-server]__0r18qmblwuijm._.js +0 -3
  791. package/.next/server/chunks/ssr/[root-of-the-server]__0sb3jhytba2xr._.js +0 -3
  792. package/.next/server/chunks/ssr/[root-of-the-server]__1o5pa8m50qyqa._.js +0 -3
  793. package/.next/server/chunks/ssr/_01rfvhncgnpvl._.js +0 -3
  794. package/.next/server/chunks/ssr/_0qgs--x99c558._.js +0 -3
  795. package/.next/server/chunks/ssr/_0w83jztp72o20._.js +0 -3
  796. package/.next/server/chunks/ssr/_0zacgi5-qgqwr._.js +0 -3
  797. package/.next/server/chunks/ssr/_11820i-k62560._.js +0 -3
  798. package/.next/server/chunks/ssr/_1a4u3f5sc05kb._.js +0 -3
  799. package/.next/server/chunks/ssr/_1j3yr2arbxd6a._.js +0 -3
  800. package/.next/server/chunks/ssr/_1qgg_ll5hkjaf._.js +0 -3
  801. package/.next/server/chunks/ssr/_1ujx-n3muyaxs._.js +0 -32
  802. package/.next/server/chunks/ssr/_1ux6eqqkupo6v._.js +0 -3
  803. package/.next/server/chunks/ssr/node_modules_02k42jp0_uoqr._.js +0 -3
  804. package/.next/server/chunks/ssr/node_modules_17lx40fyvpom3._.js +0 -3
  805. package/.next/server/chunks/ssr/node_modules_react-image-crop_dist_index_0khmp4mv3j9zr.js +0 -3
  806. package/.next/server/chunks/ssr/src_0z149pjrheeb7._.js +0 -3
  807. package/.next/server/chunks/ssr/src_1vhiktxz2_jj3._.js +0 -3
  808. package/.next/server/chunks/ssr/src_components_exam_exam-status-badge_tsx_0rozdbhlqsq71._.js +0 -3
  809. package/.next/server/chunks/ssr/src_components_print-preview_answer-space-control_tsx_02kuswyxklzp_._.js +0 -3
  810. package/.next/server/chunks/ssr/src_lib_0-wirad5ziskp._.js +0 -6
  811. package/.next/server/chunks/ssr/src_lib_1vv0-aje_e-zh._.js +0 -6
  812. package/.next/server/chunks/ssr/src_lib_short-id-client_ts_1v7n6pg50kguj._.js +0 -3
  813. package/.next/static/chunks/0-hqh6zs3hidn.js +0 -12
  814. package/.next/static/chunks/02xikk3wlibg1.js +0 -1
  815. package/.next/static/chunks/0e6ximjg-pqgt.js +0 -1
  816. package/.next/static/chunks/0wcwopwk4us6h.js +0 -9
  817. package/.next/static/chunks/0x9-b30mhne-_.js +0 -1
  818. package/.next/static/chunks/0y5zywo-ll2w3.js +0 -1
  819. package/.next/static/chunks/17-num1x7o1m2.js +0 -1
  820. package/.next/static/chunks/1746y345zti-9.js +0 -33
  821. package/.next/static/chunks/17dk_oppf9-hv.js +0 -12
  822. package/.next/static/chunks/1egd1e1483_lj.js +0 -1
  823. package/.next/static/chunks/1o_q928xcfjs3.js +0 -1
  824. package/.next/static/chunks/25flylmb_qz91.js +0 -1
  825. package/.next/static/chunks/2924d0kl-68z7.js +0 -193
  826. package/.next/static/chunks/2cpsg6e2vg7fx.css +0 -3
  827. package/.next/static/chunks/2ebh36q8lvor_.js +0 -1
  828. package/.next/static/chunks/2j0linvpqza7u.js +0 -55
  829. package/.next/static/chunks/2qqyq-iqkv_oa.js +0 -9
  830. package/.next/static/chunks/2r5aeenvfl93p.js +0 -1
  831. package/.next/static/chunks/38vt_4ntvy02e.js +0 -1
  832. package/.next/static/chunks/3c3cp7uzfhnyr.js +0 -1
  833. package/.next/static/chunks/3gy-_kb72v5lr.js +0 -1
  834. package/.next/static/chunks/3oz37kz8n7y3b.js +0 -1
  835. package/.next/static/chunks/3s_fq__cff-ps.js +0 -2
  836. package/.next/static/chunks/3tv07cyoo_hat.js +0 -1
  837. /package/.next/static/{E10D9dv115hLNvX7vE6qA → bFQJMw9c1NJ6NSOY8pN2N}/_buildManifest.js +0 -0
  838. /package/.next/static/{E10D9dv115hLNvX7vE6qA → bFQJMw9c1NJ6NSOY8pN2N}/_clientMiddlewareManifest.js +0 -0
  839. /package/.next/static/{E10D9dv115hLNvX7vE6qA → bFQJMw9c1NJ6NSOY8pN2N}/_ssgManifest.js +0 -0
  840. /package/dist-scripts/src/lib/{tag-data → tags/data}/biology.js +0 -0
  841. /package/dist-scripts/src/lib/{tag-data → tags/data}/chemistry.js +0 -0
  842. /package/dist-scripts/src/lib/{tag-data → tags/data}/chinese.js +0 -0
  843. /package/dist-scripts/src/lib/{tag-data → tags/data}/english.js +0 -0
  844. /package/dist-scripts/src/lib/{tag-data → tags/data}/geography.js +0 -0
  845. /package/dist-scripts/src/lib/{tag-data → tags/data}/history.js +0 -0
  846. /package/dist-scripts/src/lib/{tag-data → tags/data}/index.js +0 -0
  847. /package/dist-scripts/src/lib/{tag-data → tags/data}/math-gaosi.js +0 -0
  848. /package/dist-scripts/src/lib/{tag-data → tags/data}/math.js +0 -0
  849. /package/dist-scripts/src/lib/{tag-data → tags/data}/physics.js +0 -0
  850. /package/dist-scripts/src/lib/{tag-data → tags/data}/politics.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[711241,e=>{var s=e.i(456420);let t={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],711241)},576248,e=>{var s=e.i(456420);let t={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],576248)},474544,e=>{var s=e.i(456420);let t={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],474544)},508734,e=>{var s=e.i(456420);let t={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],508734)},520732,e=>{var s=e.i(843476),t=e.i(271645),a=e.i(149704),r=e.i(519455),i=e.i(793479),l=e.i(111110),n=e.i(294114),d=e.i(184110),c=e.i(201276);e.s(["f",0,function({svg:e,scale:m,align:o,previewScaleOverride:x,previewAlignOverride:u,onSave:f}){let{t:h}=(0,l.b)(),g=(0,t.useId)(),p=(0,d.V)(m),b=(0,d.o)(o),[y,j]=(0,t.useState)(null),[v,N]=(0,t.useState)(null),[w,k]=(0,t.useState)(!1),S=y??String(p),C=""!==S.trim()&&(0,d.x)(Number(S)),T=C?Number(S):p,$=v??b,A=x??T,z=u??$,M=null!==y&&(!C||Number(S)!==p)||null!==v&&v!==b;if(!e)return null;let R=async e=>{if(e.preventDefault(),C&&M&&!w){k(!0);try{await f(T,$),j(null),N(null),n.c.success(h.common.messages.saveSuccess)}catch(e){c.V.error("[FigureScale]","保存配图比例失败",{error:e}),n.c.error(h.common.messages.saveFailed)}finally{k(!1)}}};return(0,s.jsxs)("div",{children:[(0,s.jsx)(a.f,{svg:e,scale:A,align:z}),(0,s.jsxs)("form",{onSubmit:R,className:"figure-scale-editor-controls space-y-2 rounded-md border p-3 print:hidden",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[(0,s.jsx)("label",{htmlFor:g,children:h.figure.scale}),(0,s.jsx)(i.f,{id:g,type:"number",min:d._,max:d.a,step:1,value:S,disabled:w,"aria-describedby":`${g}-hint`,"aria-invalid":!C,onChange:e=>j(e.target.value),className:"h-8 w-20"}),(0,s.jsx)("span",{children:"%"}),(0,s.jsx)(r.f,{type:"button",variant:"outline",size:"sm",disabled:w||C&&T===d.n,onClick:()=>j(String(d.n)),children:h.figure.resetScale}),(0,s.jsxs)("div",{role:"group","aria-label":h.figure.align,className:"inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:h.figure.align}),d.j.map(e=>(0,s.jsx)(r.f,{type:"button",variant:$===e?"default":"outline",size:"sm",disabled:w,"aria-pressed":$===e,onClick:()=>N(e===b?null:e),children:h.figure.aligns[e]},e))]}),(0,s.jsx)(r.f,{type:"submit",size:"sm",disabled:w||!M||!C,children:w?h.common.progress.saving:h.common.save}),M&&(0,s.jsx)(r.f,{type:"button",variant:"ghost",size:"sm",disabled:w,onClick:()=>{j(null),N(null)},children:h.common.cancel})]}),(0,s.jsx)("input",{type:"range",min:d._,max:d.a,step:1,value:T,disabled:w,"aria-label":h.figure.scaleSlider,"aria-describedby":`${g}-hint`,onChange:e=>j(e.target.value),className:"block h-6 w-full max-w-sm accent-primary"}),(0,s.jsx)("p",{id:`${g}-hint`,className:"text-xs text-muted-foreground",children:h.figure.scaleHint})]})]})}])},991686,931454,e=>{var s=e.i(843476),t=e.i(271645),a=e.i(522016),r=e.i(215519),i=e.i(306831),l=e.i(716327),n=e.i(456539),d=e.i(632781),c=e.i(77071),m=e.i(328623),o=e.i(759659),x=e.i(487486),u=e.i(519455),f=e.i(515288),h=e.i(511445),g=e.i(856522),p=e.i(793479),b=e.i(393733),y=e.i(111110),j=e.i(41931);function v({errorItemId:e,onSaved:a,onCancel:l}){let{t:n}=(0,y.b)(),{timeZone:c}=(0,r.M)(),m=(0,i.r)(new Date,"yyyy-MM-dd",c),[o,x]=(0,t.useState)(null),[f,h]=(0,t.useState)(m),[N,w]=(0,t.useState)(!1),[k,S]=(0,t.useState)(null),C=async()=>{if(o&&f){w(!0),S(null);try{await j.k.post("/api/practice/record",{errorItemId:e,result:o,source:"manual",takenAt:(0,i.$)(f,c)}),a()}catch{S(n.mastery.resultSaveFailed)}finally{w(!1)}}};return(0,s.jsxs)("div",{className:"space-y-3 rounded-md border bg-muted/30 p-3",children:[(0,s.jsx)(b.f,{value:o,onChange:x,disabled:N}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2",children:[(0,s.jsx)("label",{htmlFor:`practice-date-${e}`,className:"text-sm font-medium",children:n.mastery.recordDate}),(0,s.jsx)(p.f,{id:`practice-date-${e}`,type:"date",value:f,max:m,onChange:e=>h(e.target.value),className:"sm:w-48"}),(0,s.jsxs)("div",{className:"flex gap-2 sm:ml-auto",children:[(0,s.jsx)(u.f,{variant:"outline",size:"sm",onClick:l,disabled:N,className:"flex-1 sm:flex-none",children:n.exam.cancel}),(0,s.jsxs)(u.f,{size:"sm",onClick:C,disabled:N||!o||!f,className:"flex-1 sm:flex-none",children:[N?(0,s.jsx)(d.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,s.jsx)(g.f,{className:"mr-2 h-4 w-4"}),n.mastery.saveResult]})]})]}),k&&(0,s.jsx)("p",{className:"text-sm text-destructive",children:k})]})}var N=e.i(149704),w=e.i(294114),k=e.i(905110);let S={correct:"bg-green-100 dark:bg-green-900/40 text-green-700 dark:text-green-300 border-green-200 dark:border-green-900",wrong:"bg-red-100 dark:bg-red-900/40 text-red-700 dark:text-red-300 border-red-200 dark:border-red-900",not_attempted:"bg-amber-100 dark:bg-amber-900/40 text-amber-700 dark:text-amber-300 border-amber-200 dark:border-amber-900"};e.s(["K",0,function({errorItemId:e,onMasteryStatusChange:g}){let{timeZone:p}=(0,r.M)(),{t:b}=(0,y.b)(),[C,T]=(0,t.useState)(null),[$,A]=(0,t.useState)(null),[z,M]=(0,t.useState)(0),[R,E]=(0,t.useState)(!1),F=(0,t.useCallback)(()=>{j.k.get(`/api/error-items/${e}/practice-records`).then(e=>{T(e),g?.(e.masteryStatus)}).catch(()=>void 0)},[e,g]);(0,t.useEffect)(F,[F]);let H=()=>{M(0),F()},I=async e=>{if(await (0,w.u)(b.mastery.deleteRecordConfirm,{destructive:!0}))try{await j.k.delete(`/api/practice/record/${e}`),H()}catch{w.c.error(b.mastery.deleteRecordFailed)}},P=C?.records[0],D=!!P&&(!C?.masteryEvaluatedAt||new Date(P.createdAt)>new Date(C.masteryEvaluatedAt));if((0,t.useEffect)(()=>{if(!D||z>=20)return;let e=setTimeout(()=>{M(e=>e+1),F()},4e3);return()=>clearTimeout(e)},[D,z,F]),!C)return null;let q=C.masteryProbability,O=null===q?null:Math.round(100*q),U=null===O?"":(0,k.m)(q,C.masteryThreshold)?"bg-green-500":O>=30?"bg-amber-500":"bg-red-500",_=b.practice.difficulty;return(0,s.jsxs)(f.N,{children:[(0,s.jsx)(f.Y,{children:(0,s.jsxs)(f.v,{className:"flex items-center gap-2 text-base",children:[(0,s.jsx)(m.f,{className:"h-4 w-4 text-primary"}),b.mastery.probability]})}),(0,s.jsxs)(f.O,{className:"space-y-4",children:[null===O?(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:D?b.mastery.pending:b.mastery.notEvaluated}):(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,s.jsxs)("span",{className:"text-3xl font-bold",children:[O,"%"]}),(0,s.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[D&&(0,s.jsx)(d.f,{className:"h-3 w-3 animate-spin"}),(0,s.jsx)(x.f,{variant:"outline",children:"ai"===C.masterySource?b.mastery.aiEvaluated:b.mastery.estimated})]})]}),(0,s.jsx)("div",{className:"h-2 w-full rounded-full bg-muted overflow-hidden",children:(0,s.jsx)("div",{className:`h-full ${U} transition-all`,style:{width:`${O}%`}})}),C.masteryReason&&(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:C.masteryReason}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:b.mastery.thresholdHint.replace("{threshold}",String(C.masteryThreshold))})]}),(0,s.jsxs)("div",{className:"space-y-2 border-t pt-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("h4",{className:"text-sm font-semibold",children:b.mastery.history}),!R&&(0,s.jsxs)(u.f,{variant:"outline",size:"sm",onClick:()=>E(!0),children:[(0,s.jsx)(c.f,{className:"mr-1 h-4 w-4"}),b.mastery.addRecord]})]}),R&&(0,s.jsx)(v,{errorItemId:e,onCancel:()=>E(!1),onSaved:()=>{E(!1),H()}}),0===C.records.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground italic",children:b.mastery.noHistory}):(0,s.jsx)("ul",{className:"divide-y rounded-md border",children:C.records.map(e=>(0,s.jsxs)("li",{className:"p-3 text-sm space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 flex-wrap items-center gap-2 text-left",onClick:()=>A($===e.id?null:e.id),children:[(0,s.jsx)("span",{className:"text-muted-foreground tabular-nums",children:(0,i.r)(e.createdAt,"yyyy-MM-dd HH:mm",p)}),(0,s.jsx)(x.f,{variant:"outline",className:S[e.result]||"",children:b.mastery.results[e.result]||e.result}),e.difficulty&&(0,s.jsx)(x.f,{variant:"secondary",children:_[e.difficulty]||e.difficulty}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:e.exam?`${b.mastery.sources.exam} \xb7 ${e.exam.title}`:b.mastery.sources[e.source]||b.mastery.sources.practice}),e.questionText&&(0,s.jsx)("span",{className:"ml-auto text-muted-foreground",children:$===e.id?(0,s.jsx)(n.f,{className:"h-4 w-4"}):(0,s.jsx)(l.f,{className:"h-4 w-4"})})]}),(0,s.jsx)("button",{type:"button","aria-label":b.mastery.deleteRecord,title:b.mastery.deleteRecord,className:"shrink-0 rounded p-1 text-muted-foreground hover:bg-red-50 dark:hover:bg-red-950/40 hover:text-red-600 dark:hover:text-red-400",onClick:()=>I(e.id),children:(0,s.jsx)(o.f,{className:"h-4 w-4"})})]}),$===e.id&&e.questionText&&(0,s.jsxs)("div",{className:"space-y-2 rounded-md bg-muted/40 p-3",children:[(0,s.jsx)(h.f,{content:e.questionText}),(0,s.jsx)(N.f,{svg:e.figureSvg}),e.wrongAnswerText&&(0,s.jsxs)("div",{className:"border-t pt-2",children:[(0,s.jsx)("p",{className:"mb-1 font-medium",children:b.editor.wrongAnswerText}),(0,s.jsx)(h.f,{content:e.wrongAnswerText})]}),e.mistakeAnalysis&&(0,s.jsxs)("div",{className:"border-t pt-2",children:[(0,s.jsx)("p",{className:"mb-1 font-medium",children:b.editor.mistakeAnalysis}),(0,s.jsx)(h.f,{content:e.mistakeAnalysis})]}),e.originalImageUrl&&(0,s.jsx)("img",{src:e.originalImageUrl,alt:b.editor.wrongAnswerText,className:"max-h-96 max-w-full rounded object-contain"}),e.answerText&&(0,s.jsx)("div",{className:"border-t pt-2",children:(0,s.jsx)(h.f,{content:e.answerText,className:"font-semibold"})}),e.exam&&(0,s.jsx)(a.default,{href:`/exams/${e.exam.paperId}`,className:"text-xs text-primary hover:underline",children:e.exam.title})]})]},e.id))})]})]})]})},"x",0,S],991686);var C=e.i(534693);e.s(["f",()=>C.f],931454)},846968,e=>{var s=e.i(843476),t=e.i(548161),a=e.i(474544),r=e.i(741120),i=e.i(487486),l=e.i(111110);let n={new:{className:"bg-warning/15 text-amber-700 dark:text-warning",icon:a.f},reviewing:{className:"bg-primary/10 text-primary",icon:r.f},mastered:{className:"bg-success/15 text-success",icon:t.f}};e.s(["o",0,{new:"border-l-warning/70",reviewing:"border-l-primary/60",mastered:"border-l-success/70"},"x",0,function({status:e,className:t=""}){let{t:a}=(0,l.b)(),{className:r,icon:d}=n[e],c="mastered"===e?a.notebook.mastered:"reviewing"===e?a.notebook.reviewing:a.notebook.review;return(0,s.jsx)(i.f,{variant:"secondary",className:`${r} ${t}`,children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(d,{className:"h-3 w-3"})," ",c]})})}])},393733,e=>{var s=e.i(843476),t=e.i(548161),a=e.i(576248),r=e.i(583967),i=e.i(111110);let l=[{value:"correct",icon:t.f,active:"border-green-600 bg-green-50 dark:bg-green-950/40 text-green-700 dark:text-green-300"},{value:"wrong",icon:r.f,active:"border-red-600 bg-red-50 dark:bg-red-950/40 text-red-700 dark:text-red-300"},{value:"not_attempted",icon:a.f,active:"border-amber-600 bg-amber-50 dark:bg-amber-950/40 text-amber-700 dark:text-amber-300"}];e.s(["f",0,function({value:e,onChange:t,disabled:a,size:r="md"}){let{t:n}=(0,i.b)(),d="sm"===r?"px-2 py-1 text-xs":"px-3 py-2 text-sm";return(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2",role:"radiogroup",children:l.map(({value:i,icon:l,active:c})=>(0,s.jsxs)("button",{type:"button",role:"radio","aria-checked":e===i,disabled:a,onClick:()=>t(i),className:`flex items-center justify-center gap-1 rounded-md border font-medium transition-colors disabled:opacity-60 ${d} ${e===i?c:"border-input hover:bg-muted"}`,children:[(0,s.jsx)(l,{className:"sm"===r?"h-3 w-3":"h-4 w-4"}),n.mastery.results[i]]},i))})}])},912505,e=>{var s=e.i(843476),t=e.i(975157);e.s(["f",0,function({icon:e,title:a,description:r,action:i,className:l}){return(0,s.jsxs)("div",{className:(0,t.f)("flex flex-col items-center justify-center rounded-2xl border border-dashed bg-card/50 px-6 py-14 text-center",l),children:[(0,s.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-accent text-accent-foreground",children:(0,s.jsx)(e,{className:"h-7 w-7"})}),(0,s.jsx)("p",{className:"font-medium",children:a}),r&&(0,s.jsx)("p",{className:"mt-1 max-w-sm text-sm text-muted-foreground",children:r}),i&&(0,s.jsx)("div",{className:"mt-5",children:i})]})}])},86963,e=>{var s=e.i(843476),t=e.i(632781);e.s(["f",0,function({label:e}){return(0,s.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,s.jsx)(t.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,s.jsx)("p",{className:"text-sm",children:e})]})}])},990745,e=>{e.s(["f",0,function(e){if(e.tags&&e.tags.length>0)return e.tags.map(e=>e.name);if(!e.knowledgePoints)return[];try{let s=JSON.parse(e.knowledgePoints);return Array.isArray(s)?s.filter(e=>"string"==typeof e):[]}catch{return[]}}])},35209,e=>{var s=e.i(271645),t=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,t.b)(),r=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,s.useEffect)(()=>{document.title=r},[r])}])}],462684,e=>{e.v(s=>Promise.all(["static/chunks/2hh64gi4pmlk2.js"].map(s=>e.l(s))).then(()=>s(506175)))}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[711241,e=>{var s=e.i(456420);let t={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],711241)},576248,e=>{var s=e.i(456420);let t={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],576248)},474544,e=>{var s=e.i(456420);let t={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],474544)},508734,e=>{var s=e.i(456420);let t={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],508734)},520732,e=>{var s=e.i(843476),t=e.i(271645),a=e.i(149704),r=e.i(519455),i=e.i(793479),l=e.i(111110),n=e.i(294114),d=e.i(184110),c=e.i(201276);e.s(["f",0,function({svg:e,scale:m,align:o,previewScaleOverride:x,previewAlignOverride:u,onSave:f}){let{t:h}=(0,l.b)(),g=(0,t.useId)(),p=(0,d.V)(m),b=(0,d.o)(o),[y,j]=(0,t.useState)(null),[v,N]=(0,t.useState)(null),[w,k]=(0,t.useState)(!1),S=y??String(p),C=""!==S.trim()&&(0,d.x)(Number(S)),T=C?Number(S):p,$=v??b,A=x??T,z=u??$,M=null!==y&&(!C||Number(S)!==p)||null!==v&&v!==b;if(!e)return null;let R=async e=>{if(e.preventDefault(),C&&M&&!w){k(!0);try{await f(T,$),j(null),N(null),n.c.success(h.common.messages.saveSuccess)}catch(e){c.V.error("[FigureScale]","保存配图比例失败",{error:e}),n.c.error(h.common.messages.saveFailed)}finally{k(!1)}}};return(0,s.jsxs)("div",{children:[(0,s.jsx)(a.f,{svg:e,scale:A,align:z}),(0,s.jsxs)("form",{onSubmit:R,className:"figure-scale-editor-controls space-y-2 rounded-md border p-3 print:hidden",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[(0,s.jsx)("label",{htmlFor:g,children:h.figure.scale}),(0,s.jsx)(i.f,{id:g,type:"number",min:d._,max:d.a,step:1,value:S,disabled:w,"aria-describedby":`${g}-hint`,"aria-invalid":!C,onChange:e=>j(e.target.value),className:"h-8 w-20"}),(0,s.jsx)("span",{children:"%"}),(0,s.jsx)(r.f,{type:"button",variant:"outline",size:"sm",disabled:w||C&&T===d.n,onClick:()=>j(String(d.n)),children:h.figure.resetScale}),(0,s.jsxs)("div",{role:"group","aria-label":h.figure.align,className:"inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:h.figure.align}),d.j.map(e=>(0,s.jsx)(r.f,{type:"button",variant:$===e?"default":"outline",size:"sm",disabled:w,"aria-pressed":$===e,onClick:()=>N(e===b?null:e),children:h.figure.aligns[e]},e))]}),(0,s.jsx)(r.f,{type:"submit",size:"sm",disabled:w||!M||!C,children:w?h.common.progress.saving:h.common.save}),M&&(0,s.jsx)(r.f,{type:"button",variant:"ghost",size:"sm",disabled:w,onClick:()=>{j(null),N(null)},children:h.common.cancel})]}),(0,s.jsx)("input",{type:"range",min:d._,max:d.a,step:1,value:T,disabled:w,"aria-label":h.figure.scaleSlider,"aria-describedby":`${g}-hint`,onChange:e=>j(e.target.value),className:"block h-6 w-full max-w-sm accent-primary"}),(0,s.jsx)("p",{id:`${g}-hint`,className:"text-xs text-muted-foreground",children:h.figure.scaleHint})]})]})}])},991686,931454,e=>{var s=e.i(843476),t=e.i(271645),a=e.i(522016),r=e.i(215519),i=e.i(306831),l=e.i(716327),n=e.i(456539),d=e.i(632781),c=e.i(77071),m=e.i(328623),o=e.i(759659),x=e.i(487486),u=e.i(519455),f=e.i(515288),h=e.i(511445),g=e.i(856522),p=e.i(793479),b=e.i(393733),y=e.i(111110),j=e.i(41931);function v({errorItemId:e,onSaved:a,onCancel:l}){let{t:n}=(0,y.b)(),{timeZone:c}=(0,r.M)(),m=(0,i.r)(new Date,"yyyy-MM-dd",c),[o,x]=(0,t.useState)(null),[f,h]=(0,t.useState)(m),[N,w]=(0,t.useState)(!1),[k,S]=(0,t.useState)(null),C=async()=>{if(o&&f){w(!0),S(null);try{await j.k.post("/api/practice/record",{errorItemId:e,result:o,source:"manual",takenAt:(0,i.$)(f,c)}),a()}catch{S(n.mastery.resultSaveFailed)}finally{w(!1)}}};return(0,s.jsxs)("div",{className:"space-y-3 rounded-md border bg-muted/30 p-3",children:[(0,s.jsx)(b.f,{value:o,onChange:x,disabled:N}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2",children:[(0,s.jsx)("label",{htmlFor:`practice-date-${e}`,className:"text-sm font-medium",children:n.mastery.recordDate}),(0,s.jsx)(p.f,{id:`practice-date-${e}`,type:"date",value:f,max:m,onChange:e=>h(e.target.value),className:"sm:w-48"}),(0,s.jsxs)("div",{className:"flex gap-2 sm:ml-auto",children:[(0,s.jsx)(u.f,{variant:"outline",size:"sm",onClick:l,disabled:N,className:"flex-1 sm:flex-none",children:n.exam.cancel}),(0,s.jsxs)(u.f,{size:"sm",onClick:C,disabled:N||!o||!f,className:"flex-1 sm:flex-none",children:[N?(0,s.jsx)(d.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,s.jsx)(g.f,{className:"mr-2 h-4 w-4"}),n.mastery.saveResult]})]})]}),k&&(0,s.jsx)("p",{className:"text-sm text-destructive",children:k})]})}var N=e.i(149704),w=e.i(294114),k=e.i(905110);let S={correct:"bg-green-100 dark:bg-green-900/40 text-green-700 dark:text-green-300 border-green-200 dark:border-green-900",wrong:"bg-red-100 dark:bg-red-900/40 text-red-700 dark:text-red-300 border-red-200 dark:border-red-900",not_attempted:"bg-amber-100 dark:bg-amber-900/40 text-amber-700 dark:text-amber-300 border-amber-200 dark:border-amber-900"};e.s(["K",0,function({errorItemId:e,onMasteryStatusChange:g}){let{timeZone:p}=(0,r.M)(),{t:b}=(0,y.b)(),[C,T]=(0,t.useState)(null),[$,A]=(0,t.useState)(null),[z,M]=(0,t.useState)(0),[R,E]=(0,t.useState)(!1),F=(0,t.useCallback)(()=>{j.k.get(`/api/error-items/${e}/practice-records`).then(e=>{T(e),g?.(e.masteryStatus)}).catch(()=>void 0)},[e,g]);(0,t.useEffect)(F,[F]);let H=()=>{M(0),F()},I=async e=>{if(await (0,w.u)(b.mastery.deleteRecordConfirm,{destructive:!0}))try{await j.k.delete(`/api/practice/record/${e}`),H()}catch{w.c.error(b.mastery.deleteRecordFailed)}},P=C?.records[0],D=!!P&&(!C?.masteryEvaluatedAt||new Date(P.createdAt)>new Date(C.masteryEvaluatedAt));if((0,t.useEffect)(()=>{if(!D||z>=20)return;let e=setTimeout(()=>{M(e=>e+1),F()},4e3);return()=>clearTimeout(e)},[D,z,F]),!C)return null;let q=C.masteryProbability,O=null===q?null:Math.round(100*q),U=null===O?"":(0,k.m)(q,C.masteryThreshold)?"bg-green-500":O>=30?"bg-amber-500":"bg-red-500",_=b.practice.difficulty;return(0,s.jsxs)(f.N,{children:[(0,s.jsx)(f.Y,{children:(0,s.jsxs)(f.v,{className:"flex items-center gap-2 text-base",children:[(0,s.jsx)(m.f,{className:"h-4 w-4 text-primary"}),b.mastery.probability]})}),(0,s.jsxs)(f.O,{className:"space-y-4",children:[null===O?(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:D?b.mastery.pending:b.mastery.notEvaluated}):(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,s.jsxs)("span",{className:"text-3xl font-bold",children:[O,"%"]}),(0,s.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[D&&(0,s.jsx)(d.f,{className:"h-3 w-3 animate-spin"}),(0,s.jsx)(x.f,{variant:"outline",children:"ai"===C.masterySource?b.mastery.aiEvaluated:b.mastery.estimated})]})]}),(0,s.jsx)("div",{className:"h-2 w-full rounded-full bg-muted overflow-hidden",children:(0,s.jsx)("div",{className:`h-full ${U} transition-all`,style:{width:`${O}%`}})}),C.masteryReason&&(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:C.masteryReason}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:b.mastery.thresholdHint.replace("{threshold}",String(C.masteryThreshold))})]}),(0,s.jsxs)("div",{className:"space-y-2 border-t pt-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("h4",{className:"text-sm font-semibold",children:b.mastery.history}),!R&&(0,s.jsxs)(u.f,{variant:"outline",size:"sm",onClick:()=>E(!0),children:[(0,s.jsx)(c.f,{className:"mr-1 h-4 w-4"}),b.mastery.addRecord]})]}),R&&(0,s.jsx)(v,{errorItemId:e,onCancel:()=>E(!1),onSaved:()=>{E(!1),H()}}),0===C.records.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground italic",children:b.mastery.noHistory}):(0,s.jsx)("ul",{className:"divide-y rounded-md border",children:C.records.map(e=>(0,s.jsxs)("li",{className:"p-3 text-sm space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 flex-wrap items-center gap-2 text-left",onClick:()=>A($===e.id?null:e.id),children:[(0,s.jsx)("span",{className:"text-muted-foreground tabular-nums",children:(0,i.r)(e.createdAt,"yyyy-MM-dd HH:mm",p)}),(0,s.jsx)(x.f,{variant:"outline",className:S[e.result]||"",children:b.mastery.results[e.result]||e.result}),e.difficulty&&(0,s.jsx)(x.f,{variant:"secondary",children:_[e.difficulty]||e.difficulty}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:e.exam?`${b.mastery.sources.exam} \xb7 ${e.exam.title}`:b.mastery.sources[e.source]||b.mastery.sources.practice}),e.questionText&&(0,s.jsx)("span",{className:"ml-auto text-muted-foreground",children:$===e.id?(0,s.jsx)(n.f,{className:"h-4 w-4"}):(0,s.jsx)(l.f,{className:"h-4 w-4"})})]}),(0,s.jsx)("button",{type:"button","aria-label":b.mastery.deleteRecord,title:b.mastery.deleteRecord,className:"shrink-0 rounded p-1 text-muted-foreground hover:bg-red-50 dark:hover:bg-red-950/40 hover:text-red-600 dark:hover:text-red-400",onClick:()=>I(e.id),children:(0,s.jsx)(o.f,{className:"h-4 w-4"})})]}),$===e.id&&e.questionText&&(0,s.jsxs)("div",{className:"space-y-2 rounded-md bg-muted/40 p-3",children:[(0,s.jsx)(h.f,{content:e.questionText}),(0,s.jsx)(N.f,{svg:e.figureSvg}),e.wrongAnswerText&&(0,s.jsxs)("div",{className:"border-t pt-2",children:[(0,s.jsx)("p",{className:"mb-1 font-medium",children:b.editor.wrongAnswerText}),(0,s.jsx)(h.f,{content:e.wrongAnswerText})]}),e.mistakeAnalysis&&(0,s.jsxs)("div",{className:"border-t pt-2",children:[(0,s.jsx)("p",{className:"mb-1 font-medium",children:b.editor.mistakeAnalysis}),(0,s.jsx)(h.f,{content:e.mistakeAnalysis})]}),e.originalImageUrl&&(0,s.jsx)("img",{src:e.originalImageUrl,alt:b.editor.wrongAnswerText,className:"max-h-96 max-w-full rounded object-contain"}),e.answerText&&(0,s.jsx)("div",{className:"border-t pt-2",children:(0,s.jsx)(h.f,{content:e.answerText,className:"font-semibold"})}),e.exam&&(0,s.jsx)(a.default,{href:`/exams/${e.exam.paperId}`,className:"text-xs text-primary hover:underline",children:e.exam.title})]})]},e.id))})]})]})]})},"x",0,S],991686);var C=e.i(534693);e.s(["f",()=>C.f],931454)},846968,e=>{var s=e.i(843476),t=e.i(548161),a=e.i(474544),r=e.i(741120),i=e.i(487486),l=e.i(111110);let n={new:{className:"bg-warning/15 text-amber-700 dark:text-warning",icon:a.f},reviewing:{className:"bg-primary/10 text-primary",icon:r.f},mastered:{className:"bg-success/15 text-success",icon:t.f}};e.s(["o",0,{new:"border-l-warning/70",reviewing:"border-l-primary/60",mastered:"border-l-success/70"},"x",0,function({status:e,className:t=""}){let{t:a}=(0,l.b)(),{className:r,icon:d}=n[e],c="mastered"===e?a.notebook.mastered:"reviewing"===e?a.notebook.reviewing:a.notebook.review;return(0,s.jsx)(i.f,{variant:"secondary",className:`${r} ${t}`,children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(d,{className:"h-3 w-3"})," ",c]})})}])},393733,e=>{var s=e.i(843476),t=e.i(548161),a=e.i(576248),r=e.i(583967),i=e.i(111110);let l=[{value:"correct",icon:t.f,active:"border-green-600 bg-green-50 dark:bg-green-950/40 text-green-700 dark:text-green-300"},{value:"wrong",icon:r.f,active:"border-red-600 bg-red-50 dark:bg-red-950/40 text-red-700 dark:text-red-300"},{value:"not_attempted",icon:a.f,active:"border-amber-600 bg-amber-50 dark:bg-amber-950/40 text-amber-700 dark:text-amber-300"}];e.s(["f",0,function({value:e,onChange:t,disabled:a,size:r="md"}){let{t:n}=(0,i.b)(),d="sm"===r?"px-2 py-1 text-xs":"px-3 py-2 text-sm";return(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2",role:"radiogroup",children:l.map(({value:i,icon:l,active:c})=>(0,s.jsxs)("button",{type:"button",role:"radio","aria-checked":e===i,disabled:a,onClick:()=>t(i),className:`flex items-center justify-center gap-1 rounded-md border font-medium transition-colors disabled:opacity-60 ${d} ${e===i?c:"border-input hover:bg-muted"}`,children:[(0,s.jsx)(l,{className:"sm"===r?"h-3 w-3":"h-4 w-4"}),n.mastery.results[i]]},i))})}])},912505,e=>{var s=e.i(843476),t=e.i(975157);e.s(["f",0,function({icon:e,title:a,description:r,action:i,className:l}){return(0,s.jsxs)("div",{className:(0,t.f)("flex flex-col items-center justify-center rounded-2xl border border-dashed bg-card/50 px-6 py-14 text-center",l),children:[(0,s.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-accent text-accent-foreground",children:(0,s.jsx)(e,{className:"h-7 w-7"})}),(0,s.jsx)("p",{className:"font-medium",children:a}),r&&(0,s.jsx)("p",{className:"mt-1 max-w-sm text-sm text-muted-foreground",children:r}),i&&(0,s.jsx)("div",{className:"mt-5",children:i})]})}])},86963,e=>{var s=e.i(843476),t=e.i(632781);e.s(["f",0,function({label:e}){return(0,s.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,s.jsx)(t.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,s.jsx)("p",{className:"text-sm",children:e})]})}])},35209,e=>{var s=e.i(271645),t=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,t.b)(),r=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,s.useEffect)(()=>{document.title=r},[r])}])},428602,e=>{e.s(["f",0,function(e){if(e.tags&&e.tags.length>0)return e.tags.map(e=>e.name);if(!e.knowledgePoints)return[];try{let s=JSON.parse(e.knowledgePoints);return Array.isArray(s)?s.filter(e=>"string"==typeof e):[]}catch{return[]}}])}],462684,e=>{e.v(s=>Promise.all(["static/chunks/2hh64gi4pmlk2.js"].map(s=>e.l(s))).then(()=>s(506175)))}]);
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[218964,e=>{var l=e.i(456420);let i={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};i.node;let t=(0,l.f)(i);e.s(["f",0,t],218964)},328623,e=>{var l=e.i(456420);let i={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};i.node;let t=(0,l.f)(i);e.s(["f",0,t],328623)},697886,e=>{var l=e.i(456420);let i={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};i.node;let t=(0,l.f)(i);e.s(["f",0,t],697886)},86963,e=>{var l=e.i(843476),i=e.i(632781);e.s(["f",0,function({label:e}){return(0,l.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,l.jsx)(i.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,l.jsx)("p",{className:"text-sm",children:e})]})}])},185592,e=>{var l=e.i(843476),i=e.i(975157);e.s(["f",0,function({options:e,value:t,onChange:n,className:c}){return(0,l.jsx)("div",{className:(0,i.f)("grid gap-1 rounded-xl bg-muted p-1",c),style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},role:"tablist",children:e.map(({value:e,label:c,icon:a})=>{let o=e===t;return(0,l.jsxs)("button",{type:"button",role:"tab","aria-selected":o,className:(0,i.f)("flex items-center justify-center gap-1.5 rounded-lg px-2 py-2.5 text-sm font-medium transition-all",o?"bg-card text-primary shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>n(e),children:[a&&(0,l.jsx)(a,{className:"h-4 w-4 shrink-0"}),(0,l.jsx)("span",{className:"truncate",children:c})]},e)})})}])},407198,e=>{let l=["题干","选项A","选项B","选项C","选项D","答案","解析","知识点","难度","题型","学科","年级学期","来源","大题","题号"],i=[["下列哪个选项是正确的?","选项一","选项二","选项三","选项四","A","这是解析内容。","知识点一、知识点二","3","单选题","数学","七年级上学期","2025 期中","第一大题","1"],["1+1=____。","","","","","2","基础加法运算。","基础运算","易","填空题","数学","一年级上学期","课堂练习","第一大题","2"]];async function t(){let{default:t}=await e.A(810068),n=[l,...i];return await t(n).toBlob()}e.s(["I",0,l,"j",0,function(){let e=e=>/[",\n\r]/.test(e)?`"${e.replace(/"/g,'""')}"`:e,t=[];for(let n of(t.push(l.map(e).join(",")),i))t.push(n.map(e).join(","));return`\uFEFF${t.join("\r\n")}\r
2
+ `},"n",0,t])},401280,e=>{let l={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 i=e.trim().toLowerCase();return i?l[i]??null:null}])}],462684,e=>{e.v(l=>Promise.all(["static/chunks/2hh64gi4pmlk2.js"].map(l=>e.l(l))).then(()=>l(506175)))},825834,e=>{e.v(l=>Promise.all(["static/chunks/3nq-bgq8lumv9.js","static/chunks/079f88y9j6sf-.js"].map(l=>e.l(l))).then(()=>l(918657)))},979463,e=>{e.q("/_next/static/media/pdf.worker.min.0zcq5mj7t-qsr.mjs")},84955,e=>{e.v(l=>Promise.all(["static/chunks/20f7m1txoey_w.js"].map(l=>e.l(l))).then(()=>l(742163)))},810068,e=>{e.v(l=>Promise.all(["static/chunks/0xbohpfp7x9jn.js"].map(l=>e.l(l))).then(()=>l(97292)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,97292,e=>{"use strict";var t=e.i(229969);function r(e){var r;return(r=e,new Promise(function(e,n){(0,t.J)(r,function(t,r){t?n(t):e(r)})})).then(function(e){return e.buffer})}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r,o){for(var a,i="",l=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return n(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(a=l()).done;){var s=a.value,c=s.files&&s.files.transform&&s.files.transform[e];if(c&&c.insert){var u=c.insert(r,o);u&&(i+=u)}}return i}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r,n,o){for(var i,l=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return a(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=l()).done;){var s=i.value,c=s.files&&s.files.transform&&s.files.transform[t];c&&c.transform&&(e=c.transform(e,n,o))}return e}var l=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,s=RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function c(e){return(e=e.replace(l,"")).replace(s,"")}function u(e,t){var r=t.isAttributeValue;return e=f(e,"&","&amp;"),e=f(e,">","&gt;"),e=f(e,"<","&lt;"),r&&(e=f(e,"'","&apos;"),e=f(e,'"',"&quot;")),e}function f(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.replace(RegExp(t,"g"),r)}function d(e){if("string"!=typeof e)throw TypeError("Argument must be a string");return u(e=c(e),{isAttributeValue:!0})}function m(e,t){return"<"+e+(t?Object.keys(t).map(function(e){return"".concat(function(e){if("string"!=typeof e)throw TypeError("Argument must be a string");return(e=c(e)).replace(/[^a-zA-Z_0-9-.:]/g,"").replace(/^[^a-zA-Z_]+/,"")}(e),'="').concat(d(String(t[e])),'"')}).reduce(function(e,t){return e+" "+t},""):"")+">"}function p(e){return"</"+e+">"}function h(e,t){return m(e,t).slice(0,-1)+"/>"}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r,n,o,a,i,l){for(var s,c=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return y(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(l);!(s=c()).done;){var u=s.value,f=u.files&&u.files.transform&&u.files.transform[e];f&&f.transformElementAttributes&&(r=f.transformElementAttributes(t,r||v,o,i,a))}return n?m(t,r)+n+p(t):h(t,r)}var v={},b={};function x(e){return'<Override ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" PartName="/xl/drawings/drawing'.concat(e,'.xml"/>')}var S='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',w="</xdr:wsDr>";function F(e){if("string"!=typeof e)throw TypeError("Argument must be a string");return u(e=c(e),{isAttributeValue:!1})}function I(e,t){return"".concat(function e(t){if("number"!=typeof t)return"";var r=Math.floor(t/26),n=String.fromCharCode(97+t%26).toUpperCase();return 0===r?n:e(r-1)+n}(t)).concat(e+1)}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var O=/</g;function A(e){var t=e.align,r=e.alignVertical,n=e.textRotation,o=e.indent,a=e.wrap;return!!(t||r||"number"==typeof n||o||a)}function E(e){var t=e.borderColor,r=e.borderStyle,n=e.leftBorderColor,o=e.leftBorderStyle,a=e.rightBorderColor,i=e.rightBorderStyle,l=e.topBorderColor,s=e.topBorderStyle,c=e.bottomBorderColor,u=e.bottomBorderStyle;return!!(t||r||n||o||a||i||l||s||c||u)}function D(e){var t=e.backgroundColor,r=e.fillPatternStyle,n=e.fillPatternColor;return!!(t||r&&n)}function k(e){var t=e.fontFamily,r=e.fontSize,n=e.fontWeight,o=e.fontStyle,a=e.textDecoration,i=e.textColor;return!!(t||"number"==typeof r||n||o||a&&Object.keys(a).length>0||i)}function T(e,t){var r=e.align,n=e.alignVertical,o=e.textRotation,a=e.indent,i=e.wrap,l=e.fontFamily,s=e.fontSize,c=e.fontWeight,u=e.fontStyle,f=e.textDecoration,d=e.textColor,m=e.backgroundColor,p=e.fillPatternStyle,h=e.fillPatternColor,y=e.borderColor,g=e.borderStyle,v=e.leftBorderColor,b=e.leftBorderStyle,x=e.rightBorderColor,S=e.rightBorderStyle,w=e.topBorderColor,F=e.topBorderStyle,I=e.bottomBorderColor,C=e.bottomBorderStyle;if(A({align:r,alignVertical:n,textRotation:o,indent:a,wrap:i})||k({fontFamily:l,fontSize:s,fontWeight:c,fontStyle:u,textDecoration:f,textColor:d})||D({backgroundColor:m,fillPatternStyle:p,fillPatternColor:h})||E({borderColor:y,borderStyle:g,leftBorderColor:v,leftBorderStyle:b,rightBorderColor:x,rightBorderStyle:S,topBorderColor:w,topBorderStyle:F,bottomBorderColor:I,bottomBorderStyle:C})){var O={align:r,alignVertical:n,textRotation:o,indent:a,wrap:i,fontFamily:l,fontSize:s,fontWeight:c,fontStyle:u,textDecoration:f,textColor:d,backgroundColor:m,fillPatternStyle:p,fillPatternColor:h,borderColor:y,borderStyle:g,leftBorderColor:v,leftBorderStyle:b,rightBorderColor:x,rightBorderStyle:S,topBorderColor:w,topBorderStyle:F,bottomBorderColor:I,bottomBorderStyle:C},T={};for(var j in O)void 0!==O[j]&&(T[j]=O[j]);return T}}var j={}.constructor;function P(e){return null!=e&&e.constructor===j}function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function V(e){return e("drawing",{"r:id":"rId-drawing-1"})}function _(e){return'<Relationship Id="rId-drawing-1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'.concat(e,'.xml"/>')}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function M(e){if("#"!==e[0])throw Error('Color "'.concat(e,'" must start with a "#"'));return"FF".concat(e.slice(1).toUpperCase())}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.conditionalFormatting,n=e.backgroundColor,o=e.fillPatternStyle,a=e.fillPatternColor,i=!o||"solid"===o;if(!D(e))return'<fill><patternFill patternType="none"/></fill>';var l="<fill>";return l+='<patternFill patternType="'.concat(i?"solid":o,'">'),l+='<fgColor rgb="'.concat(d(M(i?n:a)),'"/>'),l+="<bgColor ".concat(i&&!r?'indexed="64"':'rgb="'+d(M(n))+'"',"/>"),l+="</patternFill>",l+="</fill>"}function $(e){var t=e.borderColor,r=e.borderStyle,n=e.leftBorderColor,o=e.leftBorderStyle,a=e.rightBorderColor,i=e.rightBorderStyle,l=e.topBorderColor,s=e.topBorderStyle,c=e.bottomBorderColor,u=e.bottomBorderStyle,f="<border>";return f+=W("left",{style:o||r,color:n||t}),f+=W("right",{style:i||r,color:a||t}),f+=W("top",{style:s||r,color:l||t}),f+=W("bottom",{style:u||r,color:c||t}),f+="<diagonal/>",f+="</border>"}function W(e,t){var r=t.style,n=t.color;n&&!r&&(r="thin");var o=!!n;return"<".concat(e)+(r?' style="'.concat(d(r),'"'):"")+(o?">":"/>")+(n?'<color rgb="'.concat(d(M(n)),'"/>'):"")+(o?"</".concat(e,">"):"")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.isDefaultGenericFont;var r=e.fontFamily,n=e.fontSize,o=e.fontWeight,a=e.fontStyle,i=e.textDecoration,l=e.textColor,s="<font>";return r&&(s+='<name val="'.concat(d(r),'"/>')),"number"==typeof n&&(s+='<sz val="'.concat(n,'"/>')),s+='<family val="2"/>',r||"number"==typeof n||(s+='<scheme val="minor"/>'),"bold"===o&&(s+="<b/>"),"italic"===a&&(s+="<i/>"),i&&(i.strikethrough&&(s+="<strike/>"),i.underline?s+="<u/>":i.doubleUnderline&&(s+='<u val="double"/>')),l?s+='<color rgb="'.concat(d(M(l)),'"/>'):s+='<color theme="1"/>',s+="</font>"}function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=X(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function K(e){return JSON.stringify(e)}function Y(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return Z(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Z(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function H(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.tagName,o=r.stopAfterFirstMatch,a=new RegExp(Q(n),o?void 0:"g"),i=[];null!==(t=a.exec(e));){for(var l=t[0],s=n||t[1],c={},u=RegExp('\\s+([^\\s=>]+)(?:="([^\\s=>]+)")',"g"),f=void 0;null!==(f=u.exec(l));)c[f[1]]=f[2];var d={tagName:s,openingTagStartIndex:t.index,openingTagEndIndex:t.index+l.length-1,openingTagAttributes:c,selfClosingTag:!1,closingTagStartIndex:void 0,closingTagEndIndex:void 0};if("/"===l[l.length-2])d.selfClosingTag=!0;else{var m=function(e,t,r){var n,o=RegExp("<(/)?"+r+"(?:\\s+[^>]+|/)?>","g");o.lastIndex=t;for(var a=0;null!==(n=o.exec(e));){var i=n[0];if(n[1])if(!(a>0))return[n.index,n.index+i.length-1];else a--;else a++}}(e,d.openingTagEndIndex+1,s);if(!m)throw Error("Invalid XML: opening tag was found but closing tag was not: </".concat(s,">"));d.closingTagStartIndex=m[0],d.closingTagEndIndex=m[1]}if(i.push(d),o)break;d.selfClosingTag?a.lastIndex=d.openingTagEndIndex+1:a.lastIndex=d.closingTagEndIndex+1}return i}function Q(e){return"<"+(e||"([^\\s/>]+)")+"(?:\\s+[^>]+|/)?>"}function ee(e,t){return H(e,{tagName:t,stopAfterFirstMatch:!0})[0]}function et(e,t,r){return r?t.selfClosingTag?e.slice(0,t.openingTagEndIndex-1)+">"+r+"</"+t.tagName+">"+e.slice(t.openingTagEndIndex+1):e.slice(0,t.openingTagEndIndex+1)+r+e.slice(t.closingTagStartIndex):t.selfClosingTag?e:e.slice(0,t.openingTagEndIndex)+"/>"+e.slice(t.closingTagEndIndex+1)}function er(e,t,r){return t.selfClosingTag?et(e,t,r):e.slice(0,t.closingTagStartIndex)+r+e.slice(t.closingTagStartIndex)}function en(e,t){return t.selfClosingTag?"":e.substring(t.openingTagEndIndex+1,t.closingTagStartIndex)}function eo(e,t){var r=t.openingTagEndIndex+1;e.openingTagStartIndex+=r,e.openingTagEndIndex+=r,e.selfClosingTag||(e.closingTagStartIndex+=r,e.closingTagEndIndex+=r)}function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ei(e,t){for(var r,n=H(en(e,t)),o=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return ea(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ea(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(r=o()).done;)eo(r.value,t);return n}function el(e,t,r){return t.selfClosingTag?et(e,t,r):e.slice(0,t.openingTagEndIndex+1)+r+e.slice(t.openingTagEndIndex+1)}function es(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return ec(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ec(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ec(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eu(e,t,r){for(var n=arguments.length,o=Array(n>3?n-3:0),a=3;a<n;a++)o[a-3]=arguments[a];if(0===o.length)throw Error("At least one parent element tag name is required");o=o.slice().reverse();for(var i,l,s=es(o);!(l=s()).done;)!function(){var t=l.value;if(!(i=i?ei(e,i).find(function(e){return e.tagName===t}):ee(e,t)))throw Error("Element not found: <".concat(t,">"))}();var c=t.match(ef);if(!c)throw Error("Couldn't extract tag name from markup: ".concat(t));var u=c[1];if(!r||r.length<2)return er(e,i,t);var f=ei(e,i);if(0===f.length)return er(e,i,t);var d=r.indexOf(u);if(d<0)return er(e,i,t);for(var m,p,h=r.slice(0,d).reverse(),y=es(h);!(p=y()).done;)if(m=function(){var r=p.value,n=f.find(function(e){return e.tagName===r});if(n)return{v:e.slice(0,n.selfClosingTag?n.openingTagEndIndex+1:n.closingTagEndIndex+1)+t+e.slice(n.selfClosingTag?n.openingTagEndIndex+1:n.closingTagEndIndex+1)}}())return m.v;return el(e,i,t)}var ef=new RegExp(Q());let ed={"xl/workbook.xml":[["workbook",["workbookPr","bookViews","sheets","pivotCaches","definedNames","calcPr"]]],"xl/styles.xml":[["styleSheet",["numFmts","fonts","fills","borders","cellStyleXfs","cellXfs","cellStyles","dxfs","tableStyles"]]],"xl/worksheets/sheet{id}.xml":[["worksheet",["sheetPr","dimension","sheetViews","sheetFormatPr","cols","sheetData","sheetCalcPr","sheetProtection","protectedRanges","scenarios","autoFilter","sortState","dataConsolidate","customSheetViews","mergeCells","phoneticPr","conditionalFormatting","dataValidations","hyperlinks","printOptions","pageMargins","pageSetup","headerFooter","rowBreaks","colBreaks","drawing","legacyDrawing","picture","oleObjects","controls","tableParts","extLst"]]]};function em(e){var t=ed[e];if(t){for(var r,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];if(0===o.length)throw Error("At least one parent element tag name is required");for(var i=0;i<o.length;i++)if(r=function(){var e=o[i],r=t.find(function(t){return Array.isArray(t)?t[0]===e:t===e});return r&&Array.isArray(r)?void(t=r[1]):{v:void 0}}())return r.v;if(t)return t.map(function(e){return Array.isArray(e)?e[0]:e})}}function ep(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return eh(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eh(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let ey={files:{transform:{"xl/worksheets/sheet{id}.xml":{transform:function(e,t,r){r.sheetIndex,r.sheetId;var n=t.conditionalFormatting;return n?eu(e,function(e){for(var t,r="",n=0,o=ep(e);!(t=o()).done;){var a=t.value,i=a.cellRange,l=i.from,s=i.to,c=a.condition,u=c.formula,f=c.operator,d=c.value,m=c.value2,p=I(l.row-1,l.column-1)+":"+I(s.row-1,s.column-1);r+='<conditionalFormatting sqref="'.concat(p,'">');var h=n+1,y=a._globalIndex;if(u)r+='<cfRule type="expression" dxfId="'.concat(y,'" priority="').concat(h,'">'),r+="<formula>".concat(F(u),"</formula>"),r+="</cfRule>";else if(f)r+='<cfRule type="cellIs" operator="'.concat(ev(f),'" dxfId="').concat(y,'" priority="').concat(h,'">'),r+="<formula>".concat(F(eg(d)),"</formula>"),"between"===ev(f)&&(r+="<formula>".concat(F(eg(m)),"</formula>")),r+="</cfRule>";else throw Error("Invalid conditional formatting rule:\n".concat(JSON.stringify(a,null,2)));r+="</conditionalFormatting>",n++}return r}(n),em("xl/worksheets/sheet{id}.xml","worksheet"),"worksheet"):e}},"xl/styles.xml":{insert:function(e){var t=e.map(function(e){return e.conditionalFormatting});if(t.some(Boolean))return function(e){for(var t,r=0,n=ep(e);!(t=n()).done;){var o=t.value;o&&(r+=o.length)}var a="";a+='<dxfs count="'.concat(r,'">');for(var i,l=ep(e);!(i=l()).done;){var s=i.value;if(s)for(var c,u=ep(s);!(c=u()).done;){var f=c.value.style,d=f.fontFamily,m=f.fontSize,p=f.fontWeight,h=f.fontStyle,y=f.textDecoration,g=f.textColor,v=f.backgroundColor,b=f.fillPatternStyle,x=f.fillPatternColor,S=f.borderColor,w=f.borderStyle,F=f.leftBorderColor,I=f.leftBorderStyle,C=f.rightBorderColor,O=f.rightBorderStyle,A=f.topBorderColor,T=f.topBorderStyle,j=f.bottomBorderColor,P=f.bottomBorderStyle;a+="<dxf>";var B={fontFamily:d,fontSize:m,fontWeight:p,fontStyle:h,textDecoration:y,textColor:g};if(k(B)){if(d)throw Error("Conditional formatting can't be used to override font family");if("number"==typeof m)throw Error("Conditional formatting can't be used to override font size");a+=q(B)}var R={backgroundColor:v,fillPatternStyle:b,fillPatternColor:x};D(R)&&(a+=L(R,{conditionalFormatting:!0}));var U={borderColor:S,borderStyle:w,leftBorderColor:F,leftBorderStyle:I,rightBorderColor:C,rightBorderStyle:O,topBorderColor:A,topBorderStyle:T,bottomBorderColor:j,bottomBorderStyle:P};E(U)&&(a+=$(U)),a+="</dxf>"}}return a+"</dxfs>"}(t)}}}}};function eg(e){return"string"==typeof e?'"'+e+'"':String(e)}function ev(e){switch(e){case"<":return"lessThan";case">":return"greaterThan";case"<=":return"lessThanOrEqual";case">=":return"greaterThanOrEqual";case"=":return"equal";case"!=":return"notEqual";case"...":return"between";default:throw Error("Unknown conditional formatting operator: ".concat(e))}}function eb(e){if(!e)throw Error("`contentType` is required");var t=e.toLowerCase().replace(/.*\//,"");if(!t)throw Error("Unsupported `contentType`: "+e);return t}function ex(e){return(ex="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eS(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=eF(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ew(e){return function(e){if(Array.isArray(e))return eI(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eF(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eF(e,t){if(e){if("string"==typeof e)return eI(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eI(e,t):void 0}}function eI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(r),!0).forEach(function(t){eA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eC(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eA(e,t,r){var n;return(n=function(e,t){if("object"!=ex(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ex(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ex(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let eE={files:{transform:{"[Content_Types].xml":{insert:function(e){var t=e.map(function(e){return e.images});if(t.some(Boolean))return function(e){for(var t,r=e.reduce(function(e,t){return[].concat(ew(e),ew(t||[]))},[]),n="",o=eS(function(e){for(var t,r=[],n=eS(e);!(t=n()).done;)!function(e){var t=eb(e.contentType);r.find(function(e){return e.fileExtension===t})||r.push({fileExtension:t,contentType:e.contentType})}(t.value);return r}(r));!(t=o()).done;){var a=t.value,i=a.fileExtension,l=a.contentType;n+='<Default Extension="'.concat(i,'" ContentType="').concat(l,'"/>')}return n}(t)}},"xl/drawings/drawing{id}.xml":{insert:function(e,t){t.sheetIndex,t.sheetId;var r=e.images;if(r)return function(e){for(var t,r=e.images,n="",o=0,a=eS(r);!(t=a()).done;)!function(){var e=t.value,r=o+1,a=function(t){return Math.round(9525*t*1*(96/e.dpi))};n+="<xdr:oneCellAnchor>",n+="<xdr:from>",n+="<xdr:col>".concat(e.anchor.column-1,"</xdr:col>"),n+="<xdr:colOff>".concat("number"==typeof e.offsetX?a(e.offsetX):0,"</xdr:colOff>"),n+="<xdr:row>".concat(e.anchor.row-1,"</xdr:row>"),n+="<xdr:rowOff>".concat("number"==typeof e.offsetY?a(e.offsetY):0,"</xdr:rowOff>"),n+="</xdr:from>",n+='<xdr:ext cx="'.concat(a(e.width),'" cy="').concat(a(e.height),'"/>'),n+="<xdr:pic>",n+="<xdr:nvPicPr>",n+='<xdr:cNvPr id="'.concat(r,'" name="').concat(e.title?d(e.title):"Picture "+r,'" descr="').concat(e.description?d(e.description):"",'"/>'),n+="<xdr:cNvPicPr>",n+='<a:picLocks noChangeAspect="1"/>',n+="</xdr:cNvPicPr>",n+="</xdr:nvPicPr>",n+="<xdr:blipFill>",n+='<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId-image-'.concat(r,'" cstate="print"/>'),n+="<a:stretch>",n+="<a:fillRect/>",n+="</a:stretch>",n+="</xdr:blipFill>",n+="<xdr:spPr>",n+='<a:prstGeom prst="rect">',n+="<a:avLst/>",n+="</a:prstGeom>",n+="</xdr:spPr>",n+="</xdr:pic>",n+="<xdr:clientData/>",n+="</xdr:oneCellAnchor>",o++}();return n}({images:r})}},"xl/drawings/_rels/drawing{id}.xml.rels":{insert:function(e,t){var r,n,o,a=t.sheetIndex;t.sheetId;var i=e.images;if(i){return n=(r={images:i,sheetIndex:a}).images,o=r.sheetIndex,n.map(function(e,t){var r=t+1;return'<Relationship Id="rId-image-'.concat(r,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/').concat(eD(e,{sheetIndex:o,imageIndex:t}),'"/>')}).join("")}}}},write:{files:function(e,t){t.read;var r=e.map(function(e){return e.images});if(r.some(Boolean))return r.map(function(e,t){return e?e.reduce(function(e,r,n){return eO(eO({},e),{},eA({},"xl/media/".concat(eD(r,{sheetIndex:t,imageIndex:n})),r.content))},{}):{}}).reduce(function(e,t){return eO(eO({},e),t)},{})}}}};function eD(e,t){var r=t.sheetIndex,n=t.imageIndex;return"sheet".concat(r+1,"-image").concat(n+1,".").concat(eb(e.contentType))}let ek={files:{transform:{"xl/worksheets/sheet{id}.xml":{transform:function(e,t,r){var n=r.sheetIndex,o=r.sheetId;if(eT(t)){var a=t.stickyRowsCount,i=t.stickyColumnsCount,l={ySplit:a||0,xSplit:i||0,topLeftCell:I(a||0,i||0),activePane:"bottomRight",state:"frozen"},s=ee(e,"sheetView");if(s){var c,u=function(e,t,r){var n=ee(en(e,r),t);if(n)return eo(n,r),n}(e,"pane",s),f=h("pane",l);u?(c=e,e=u.selfClosingTag?c.slice(0,u.openingTagStartIndex)+f+c.slice(u.openingTagEndIndex+1):c.slice(0,u.openingTagStartIndex)+f+c.slice(u.closingTagEndIndex+1)):e=er(e,s,f)}else{if(ee(e,"sheetViews"))throw Error("xl/worksheets/sheet".concat(o,".xml: <sheetViews/> element exists but it doesn't contain any <sheetView/> elements"));var d=m("sheetViews")+m("sheetView",{tabSelected:+(0===n),workbookViewId:0})+h("pane",l)+p("sheetView")+p("sheetViews"),y=ee(e,"worksheet");e=el(e,y,d)}}return e}},"xl/workbook.xml":{transform:function(e,t){if(t.some(eT)&&!ee(e,"workbookView")){if(ee(e,"bookViews"))throw Error("xl/workbook.xml: <bookViews/> element exists but it doesn't contain any <workbookView/> elements");return eu(e,"<bookViews><workbookView/></bookViews>",em("xl/workbook.xml","workbook"),"workbook")}return e}}}}};function eT(e){return!!e.stickyRowsCount||!!e.stickyColumnsCount}var ej=["[Content_Types].xml","_rels/.rels","xl/styles.xml","xl/workbook.xml","xl/_rels/workbook.xml.rels","xl/worksheets/sheet{id}.xml","xl/worksheets/_rels/sheet{id}.xml.rels","xl/drawings/drawing{id}.xml","xl/drawings/_rels/drawing{id}.xml.rels"];function eP(e){if(e.files&&e.files.transform)for(var t=0,r=Object.keys(e.files.transform);t<r.length;t++){var n=r[t];if(0>ej.indexOf(n))throw Error("Unknown file to transform: ".concat(n))}}function eB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eR(e){if(!Array.isArray(e))throw TypeError("Expected sheet data to be an array of rows");for(var t,r=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return eB(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eB(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){if(Array.isArray(t.value))return;throw Error("Expected each sheet data row to be an array")}}var eU=/[\[\]\/\\:*?]+/;function eN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eV(e){return(eV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ez(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(r),!0).forEach(function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e,t){if("object"!=eV(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eV(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eV(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eL(e){return(eL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e$=["data"];function eW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eW(Object(r),!0).forEach(function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e,t){if("object"!=eL(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eL(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eL(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eW(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eX(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return eG(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eG(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eJ(e,t,r){if(!e[t])throw Error("File not found: ".concat(t));if(0>e[t].indexOf(r))throw Error('Substring "'.concat(r,'" not found in "').concat(t,'"'));var n=e[t],o=n.replace(r,"");return e[t]=o,n!==o}function eK(e){return new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}function eY(e){if(e instanceof File||e instanceof Blob)return e.arrayBuffer().then(eZ);if(e instanceof ArrayBuffer)return Promise.resolve(eZ(e));throw Error("Unsupported file content type. Expected a `File`, a `Blob` or an `ArrayBuffer`")}function eZ(e){return new Uint8Array(e)}e.s(["default",0,function(e,n,a){var l=function(){var l,s;return(l=function(e,t,r){var n=function e(t,r,n){if(Array.isArray(t))if(0===t.length||Array.isArray(t[0])){if(eR(t),Array.isArray(t[0])&&t.length>0&&Array.isArray(t[0][0]))throw Error("In order to write multiple sheets, pass an array of sheet objects");return{sheets:[{data:t,options:r||{}}],options:n||{}}}else if(P(t[0])){if(P(r)&&Array.isArray(r.schema))throw Error("`schema` parameter was removed, use `columns` parameter instead");if(P(r)&&Array.isArray(r.columns)){var o,a;return e(((o=r.columns).some(function(e){return e.header})&&(a=o.map(function(e){return e.header||null})),(a?[a]:[]).concat(t.map(function(e,t){return o.map(function(r){return(0,r.cell)(e,t)})}))),r,n)}return{sheets:t.map(function(e){var t=e.data,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,e$);if(!t)throw Error("`data` property is required for each sheet");return eR(t),{data:t,options:r||{}}}),options:r||{}}}else throw Error("Invalid first argument: must be either sheet data — an array of arrays — or an array of sheet objects");throw Error("Invalid first argument: must be an array")}(e,t,r),a=n.sheets,l=n.options,s=a.map(function(e){return e.data}),c=a.map(function(e){return e.options});j=c=c.map(function(e,t){return eq(eq({},e),{},{sheet:e.sheet||"Sheet".concat(t+1)})}),M=0,c=j.map(function(e){return eq(eq({},e),{},{conditionalFormatting:e.conditionalFormatting&&e.conditionalFormatting.map(function(e){return eq(eq({},e),{},{_globalIndex:M++})})})});var u=(W=l.features,(X=[]).push(ey),X.push(eE),X.push(ek),W&&(W.forEach(eP),X=X.concat(W)),X),f={},m=function(e,t,r){for(var n,o,a,i=(n=[],o={},{getSharedStrings:function(){return n},findOrCreateSharedString:function(e){var t=o[e];return void 0===t&&(t=n.length,o[e]=t,n.push(e)),t}}),l=i.getSharedStrings,s=i.findOrCreateSharedString,c=function(e){var t=e.fontFamily,r=e.fontSize;if(t||"number"==typeof r)return{fontFamily:t,fontSize:r}}(r),u=function(e){var t=[],r={},n=[],o={},a=[],i={},l=[],s={},c=[],u={},f=a.length;i[K(e)]=f,a.push(e||{});var d={};s[K(d)]=l.length,l.push(d);var m={};function p(d){var m,p,h,y,g,v=d.format,b=d.align,x=d.alignVertical,S=d.textRotation,w=d.indent,F=d.wrap,I=d.fontFamily,C=d.fontSize,O=d.fontWeight,A=d.fontStyle,T=d.textDecoration,j=d.textColor,P=d.backgroundColor,B=d.fillPatternStyle,R=d.fillPatternColor,U=d.borderColor,N=d.borderStyle,V=d.leftBorderColor,_=d.leftBorderStyle,z=d.rightBorderColor,M=d.rightBorderStyle,L=d.topBorderColor,$=d.topBorderStyle,W=d.bottomBorderColor,q=d.bottomBorderStyle,X={fontFamily:I,fontSize:C,fontWeight:O,fontStyle:A,textDecoration:T,textColor:j},G={backgroundColor:P,fillPatternStyle:B,fillPatternColor:R},Y={borderColor:U,borderStyle:N,leftBorderColor:V,leftBorderStyle:_,rightBorderColor:z,rightBorderStyle:M,topBorderColor:L,topBorderStyle:$,bottomBorderColor:W,bottomBorderStyle:q},Z=K(v),H=K(X),Q=K(G),ee=K(Y),et=K(d);return void 0!==o[et]?o[et]:(v&&void 0===(m=r[Z])&&(m=100+t.length,r[Z]=m,t.push(v)),k(X)?void 0===(p=i[H])&&(p=a.length,i[H]=p,a.push(J(J({},X),{},{fontSize:X.fontSize||e&&e.fontSize,fontFamily:X.fontFamily||e&&e.fontFamily}))):e&&(p=f),D(G)&&void 0===(h=s[Q])&&(h=l.length,s[Q]=h,l.push({backgroundColor:P,fillPatternStyle:B,fillPatternColor:R})),E(Y)&&void 0===(y=u[ee])&&(y=c.length,u[ee]=y,c.push(Y)),g=n.length,o[et]=g,n.push({formatId:m,fontId:p,fillId:h,borderId:y,alignment:{align:b,alignVertical:x,textRotation:S,indent:w,wrap:F}}),g)}return u[K(m)]=c.length,c.push(m),l.push({gray125:!0}),p({}),{getCellStyles:function(){return{formats:t,styles:n,fonts:a,fills:l,borders:c}},findOrCreateCellStyle:p}}(c),f=u.getCellStyles,d=u.findOrCreateCellStyle,m=t.map(function(e){return e.sheet}),p=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return eN(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eN(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(m);!(a=p()).done;){var h=a.value;if(!h)throw Error("Sheet name can't be empty");if(h.length>31)throw Error('Sheet name "'.concat(h,"\" can't be longer than 31 characters"));if(eU.test(h))throw Error('Sheet name "'.concat(h,'" contains illegal characters: []/\\:*?'))}for(var y=[],g=0;g<m.length;)y.push({sheetData:e[g],sheetOptions:t[g],sheetIndex:g,sheetId:String(g+1),hasDefaultFont:!!c,findOrCreateCellStyle:d,findOrCreateSharedString:s}),g++;return{sheets:m.map(function(e,t){return{sheetId:String(t+1),sheetName:e,sheetXmlParameters:y[t]}}),getSharedStrings:l,getCellStyles:f}}(s,c,l),p=m.sheets,y=m.getSharedStrings,v=m.getCellStyles;f["[Content_Types].xml"]=(Z=(G={sheetIds:p.map(function(e){return e.sheetId}),features:u,sheetsOptions:c}).sheetIds,H=G.features,Q=G.sheetsOptions,i('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/>'+Z.map(function(e){return'<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet'.concat(e,'.xml"/>')}).join("")+Z.map(function(e){return x(e)}).join("")+o("[Content_Types].xml",H,Q)+"</Types>","[Content_Types].xml",H,Q)),f["_rels/.rels"]=(er=(et={features:u,sheetsOptions:c}).features,i('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId-workbook-1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>'+o("_rels/.rels",er,en=et.sheetsOptions)+"</Relationships>","_rels/.rels",er,en)),f["xl/_rels/workbook.xml.rels"]=(ei=(ea={sheetIds:p.map(function(e){return e.sheetId}),features:u,sheetsOptions:c}).sheetIds,el=ea.features,es=ea.sheetsOptions,i('<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+ei.map(function(e){return'<Relationship Id="rId'.concat(e,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(e,'.xml"/>')}).join("")+'<Relationship Id="rId'.concat(ei.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(ei.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+o("xl/_rels/workbook.xml.rels",el,es)+"</Relationships>","xl/_rels/workbook.xml.rels",el,es)),f["xl/workbook.xml"]=(ef=(eu={sheetIdsAndNames:p.map(function(e){return{sheetId:e.sheetId,sheetName:e.sheetName}}),features:u,sheetsOptions:c}).sheetIdsAndNames,ed=eu.features,em=eu.sheetsOptions,i('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">'+(ep=function(e,t,r,n){return g("xl/workbook.xml",e,t,r,n,b,em,ed)})("workbookPr")+ep("bookViews",null,ep("workbookView",null,null,0))+ep("sheets",null,ef.map(function(e,t){var r=e.sheetId,n=e.sheetName;return ep("sheet",{"r:id":"rId".concat(r),sheetId:r,name:n},null,t)}).join(""))+ep("definedNames")+ep("calcPr")+o("xl/workbook.xml",ed,em)+"</workbook>","xl/workbook.xml",ed,em));for(var j,M,W,X,G,Z,H,Q,ee,et,er,en,eo,ea,ei,el,es,ec,eu,ef,ed,em,ep,eh,eg,ev=0,eb=eX(p);!(eg=eb()).done;){var ex=eg.value,eS=ex.sheetId,ew=ex.sheetXmlParameters,eF=c[ev];f["xl/worksheets/sheet".concat(eS,".xml")]=function(e,t){var r,n,a=e.sheetData,l=e.sheetOptions,s=e.sheetIndex,c=e.sheetId,u=e.hasDefaultFont,f=e.findOrCreateCellStyle,m=e.findOrCreateSharedString,p=l.columns,h=l.dateFormat,y=l.orientation,v=l.showGridLines,b=l.rightToLeft,x=l.zoomScale,S=function(e,t){for(var r=[],n=function(){e=e.slice();for(var t=0;t<e.length;)e[t]=e[t].slice(),t++;return n=function(){return e},e},o=0;o<e.length;){for(var a=e[o],i=0;i<a.length;){var l=a[i];if(l){var s=l.rowSpan,c=void 0===s?1:s,u="number"==typeof l.span?l.span:l.columnSpan;"number"!=typeof u&&(u=1),(u>1||c>1)&&(function(e,t,r,n,o,a,i){var l=T(e[t][r],i);l&&(e=a());for(var s=t;s<=t+(o-1);){for(var c=r;c<=r+(n-1);){var u=e[s][c];if(s>t||c>r){if(null!=u)throw Error("[write-excel-file] When using `columnSpan` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(t+1," and column ").concat(r+1," is configured with `columnSpan` ").concat(n," and `rowSpan` ").concat(o,". Cell at row ").concat(s+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));l&&(e[s][c]=l)}c++}s++}}(e,o,i,u,c,n,t),r.push([[o,i],[o+(c?c-1:0),i+(u?u-1:0)]]))}i++}o++}return{sheetData:e,mergedCells:r}}(a,{features:t}),w=S.sheetData,A=S.mergedCells,E={sheetIndex:s,sheetId:c},D=function(e,r,n,o){return g("xl/worksheets/sheet{id}.xml",e,r,n,o,E,l,t)},k='<?xml version="1.0" ?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">'+function(e,t,r){if(!function(e){var t=e.showGridLines,r=e.rightToLeft,n=e.zoomScale;return!1===t||r||"number"==typeof n}(t))return"";var n=t.showGridLines,o=t.rightToLeft,a=t.zoomScale,i={tabSelected:+(0===r),workbookViewId:0};!1===n&&(i.showGridLines=!1),o&&(i.rightToLeft=1),"number"==typeof a&&(i.zoomScale=Math.round(100*a));var l=e("sheetView",i,null,0);return e("sheetViews",null,l)}(D,{showGridLines:v,rightToLeft:b,zoomScale:x},s)+function(e,t){if(t){var r=t.map(function(t,r){if(!t)return"";var n=t.width;if(!n)return"";var o=r+1;return e("col",{min:o,max:o,width:n,customWidth:1},null,r)}).join("");if(r)return e("cols",null,r)}return""}(D,p)+(r={findOrCreateCellStyle:f,findOrCreateSharedString:m,hasDefaultFont:u,dateFormat:h,features:t},n=w.map(function(e,t){return function(e,t,r,n){for(var o,a,i=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return U(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?U(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(a=i()).done;){var l=a.value;P(l)&&l.height&&(void 0===o||o<l.height)&&(o=l.height)}var s=t.map(function(t,o){return function(e,t,r,n,o){var a,i,l=o.findOrCreateCellStyle,s=o.findOrCreateSharedString,c=o.hasDefaultFont,u=o.dateFormat,f=o.features;if(null==t)return"";var d=P(t)?t:{value:t},m=T(d,f),p=d.type,h=d.value,y=d.format;if(null==(a=h)||""===a?h=null:void 0===p&&void 0===(p=function(e){switch(B(e)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(e instanceof Date)return Date}}(h))&&(p=String,h=String(h)),y){if(p!==Date&&p!==Number&&p!==String&&"Formula"!==p)throw Error('`format` "'.concat(y,'" was specified on a cell of type `').concat(p,'`. `format` could only be specified on a cell of type `Date`, `Number`, `String` or `"Formula"`.'));if(p===String&&"@"!==y)throw Error('`format` "'.concat(y,'" was specified on a cell of type `String`. The only supported `format` for a cell of type `String` is "@".'))}else p===Date&&(y=u);var g=!!y,v=!!m;return(c||g||v)&&(i=l(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=B(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({format:y},m))),function(e,t,r,n){var o,a=t.value,i=t.type,l=t.cellStyleId,s=t.findOrCreateSharedString;if(null===a&&void 0===l)return"";var c={r:I(n,r)};if(void 0!==l&&(c.s=String(l)),null===a)return e("c",c,null,r);if(i===Date&&void 0===l)throw Error("No `format` was specified for a `Date` value in a cell in row ".concat(n+1," column ").concat(r+1,". Either specify a `format` for this cell or specify a default global one by passing `dateFormat` option to `writeXlsxFile()` function"));var u=function(e,t,r){switch(e){case String:if("string"!=typeof t)throw Error("Invalid cell value: ".concat(t,". Expected a string"));return r(t);case Number:if("number"!=typeof t)throw Error("Invalid cell value: ".concat(t,". Expected a number"));return String(t);case Date:if(!(t instanceof Date))throw Error("Invalid cell value: ".concat(t,". Expected a Date"));return String(t.getTime()/864e5+25569);case Boolean:if("boolean"!=typeof t)throw Error("Invalid cell value: ".concat(t,". Expected a boolean"));return t?"1":"0";case"Formula":if("string"!=typeof t)throw Error("Invalid cell value: ".concat(t,". Expected a string"));return F(t);default:throw Error("Unknown type: ".concat(e&&e.name||e))}}(i,a,s),f=function(e){switch(e){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return;default:throw Error("Unknown type: ".concat(e&&e.name||e))}}(i);f&&(c.t=f);var d=function(e){if(Array.isArray(e))return e}(o=function(e){var t="Formula"===e?"<f>":"<v>",r=t.replace(O,"</");return[t,r]}(i))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,a,i=[],l=!0,s=!1;try{o=(t=t.call(e)).next,!1;for(;!(l=(r=o.call(t)).done)&&(i.push(r.value),2!==i.length);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return i}}(o)||function(e){if(e){if("string"==typeof e)return C(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?C(e,2):void 0}}(o)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return e("c",c,d[0]+u+d[1],r)}(e,{value:h,type:p,cellStyleId:i,findOrCreateSharedString:s},r,n)}(e,t,o,r,n)}).join(""),c={r:r+1};return o&&(c.ht=o,c.customHeight=1),e("row",c,s,r)}(D,e,t,r)}).join(""),D("sheetData",null,n))+function(e,t){if(0===t.length)return"";var r=t.map(function(t,r){var n=function(e){if(Array.isArray(e))return e}(t)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,a,i=[],l=!0,s=!1;try{o=(t=t.call(e)).next,!1;for(;!(l=(r=o.call(t)).done)&&(i.push(r.value),2!==i.length);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return i}}(t)||function(e){if(e){if("string"==typeof e)return N(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?N(e,2):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n[1];return e("mergeCell",{ref:I(o[0],o[1])+":"+I(a[0],a[1])},null,r)}).join("");return e("mergeCells",{count:t.length},r)}(D,A)+(y?D("pageMargins",{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3}):"")+(y?D("pageSetup",{paperSize:9,orientation:d(y)}):"")+V(D)+o("xl/worksheets/sheet{id}.xml",t,l,{sheetIndex:s,sheetId:c})+"</worksheet>";return i(k,"xl/worksheets/sheet{id}.xml",t,l,{sheetIndex:s,sheetId:c})}(ew,u),f["xl/worksheets/_rels/sheet".concat(eS,".xml.rels")]=function(e){var t=e.sheetIndex,r=e.sheetId,n=e.sheetOptions,a=e.features,l='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+_(r)+o("xl/worksheets/_rels/sheet{id}.xml.rels",a,n,{sheetIndex:t,sheetId:r})+"</Relationships>";return i(l,"xl/worksheets/_rels/sheet{id}.xml.rels",a,n,{sheetIndex:t,sheetId:r})}({sheetIndex:ev,sheetId:eS,sheetOptions:eF,features:u}),f["xl/drawings/drawing".concat(eS,".xml")]=function(e){var t=e.sheetIndex,r=e.sheetId,n=e.sheetOptions,a=e.features,l=S+o("xl/drawings/drawing{id}.xml",a,n,{sheetIndex:t,sheetId:r})+w;return i(l,"xl/drawings/drawing{id}.xml",a,n,{sheetIndex:t,sheetId:r})}({sheetIndex:ev,sheetId:eS,sheetOptions:eF,features:u}),f["xl/drawings/_rels/drawing".concat(eS,".xml.rels")]=function(e){var t=e.sheetIndex,r=e.sheetId,n=e.sheetOptions,a=e.features,l='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+o("xl/drawings/_rels/drawing{id}.xml.rels",a,n,{sheetIndex:t,sheetId:r})+"</Relationships>";return i(l,"xl/drawings/_rels/drawing{id}.xml.rels",a,n,{sheetIndex:t,sheetId:r})}({sheetIndex:ev,sheetId:eS,sheetOptions:eF,features:u}),ev++}return!function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];(function(e){if("/"===e[0])throw Error("File path must not start with a slash (/)")})(n),function(e,t){if(!t)throw Error("File `content` not specified: ".concat(e))}(n,e[n]),f[n]=e[n]}}(function(e,t,r){for(var n,o=r.read,a={},i=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return eM(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eM(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=i()).done;){var l=n.value;if(l.files&&l.files.write&&l.files.write.files){var s=l.files.write.files(t,{read:o});s&&(a=ez(ez({},a),s))}}return a}(u,c,{read:function(e){return f[e]}})),f["xl/styles.xml"]=function(e,t,r){var n=e.formats,a=e.styles,l=e.fonts,s=e.fills,c=e.borders,u='<?xml version="1.0" ?>';if(u+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',n.length>0){u+='<numFmts count="'.concat(n.length,'">');for(var f=0;f<n.length;f++)u+='<numFmt numFmtId="'.concat(100+f,'" formatCode="').concat(d(n[f]),'"/>');u+="</numFmts>"}u+='<fonts count="'.concat(l.length,'">');for(var m,p=Y(l);!(m=p()).done;)u+=q(m.value);u+="</fonts>",u+='<fills count="'.concat(s.length,'">');for(var h,y=Y(s);!(h=y()).done;){var g=h.value;g.gray125?(u+="<fill>",u+='<patternFill patternType="gray125"/>',u+="</fill>"):u+=L(g)}u+="</fills>",u+='<borders count="'.concat(c.length,'">');for(var v,b=Y(c);!(v=b()).done;)u+=$(v.value);u+="</borders>",u+='<cellXfs count="'.concat(a.length,'">');for(var x,S=Y(a);!(x=S()).done;){var w=x.value,F=w.fontId,I=w.fillId,C=w.borderId,O=w.alignment,E=w.formatId;u+="<xf "+[void 0===E?void 0:'numFmtId="'.concat(E,'" applyNumberFormat="1"'),void 0===F?void 0:'fontId="'.concat(F,'" applyFont="1"'),void 0===I?void 0:'fillId="'.concat(I,'" applyFill="1"'),void 0===C?void 0:'borderId="'.concat(C,'" applyBorder="1"'),A(O)?'applyAlignment="1"':void 0].filter(function(e){return e}).join(" ")+">"+(A(O)?function(e){var t,r=e.align,n=e.alignVertical,o=e.textRotation,a=e.indent,i=e.wrap;return"<alignment"+(r?' horizontal="'.concat(d(r),'"'):"")+(n?' vertical="'.concat(d(n),'"'):"")+(o?' textRotation="'.concat((t=function(e){if(!(e>=-90&&e<=90))throw Error("Unsupported text rotation angle: ".concat(e,". Values from -90 to 90 are supported."));return e}(o))<0?90-t:t,'"'):"")+(a?' indent="'.concat(d(String(a)),'"'):"")+(i?' wrapText="1"':"")+"/>"}(O):"")+"</xf>"}return u+="</cellXfs>",u+=o("xl/styles.xml",r,t),u+="</styleSheet>",u=i(u,"xl/styles.xml",r,t)}(v(),c,u),f["xl/sharedStrings.xml"]=function(e){var t='<?xml version="1.0"?>';t+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var r,n=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return z(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(r=n()).done;){var o=r.value,a=o.trim().length===o.length?"":' xml:space="preserve"';t+="<si><t".concat(a,">"),t+=F(o),t+="</t></si>"}return t+"</sst>"}(y()),function(e,t){for(var r,n=eX(t);!(r=n()).done;){var o=r.value.sheetId;if(e["xl/drawings/drawing".concat(o,".xml")]===S+w){if(delete e["xl/drawings/drawing".concat(o,".xml")],delete e["xl/drawings/_rels/drawing".concat(o,".xml.rels")],!eJ(e,"xl/worksheets/sheet".concat(o,".xml"),V(h)))throw Error("Couldn't remove unused drawings");eJ(e,"xl/worksheets/_rels/sheet".concat(o,".xml.rels"),_(o)),eJ(e,"[Content_Types].xml",x(o))}}}(f,p),f}(e,n,a),s={},Promise.all(Object.keys(l).map(function(e){if(l[e]instanceof Uint8Array)s[e]=l[e];else{var r;if("string"!=typeof l[e])return eY(l[e]).then(function(t){s[e]=t});s[e]=(r=l[e],(0,t.D)(r))}})).then(function(){return s})).then(function(e){var t=r(e);return t.then(function(e){return eK(e)})})};return{toBlob:function(){return l()},toFile:function(e){return l().then(function(t){var r,n;r=URL.createObjectURL(t),(n=document.createElement("a")).style.display="none",n.href=r,n.download=e,document.body.appendChild(n),n.click(),setTimeout(function(){URL.revokeObjectURL(r),document.body.removeChild(n)},100)})}}}],97292)}]);
@@ -3,4 +3,4 @@
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(v,"defaultGetValueLabel"),d(g,"getProgressState"),d(j,"isNumber"),d(y,"isValidMaxNumber"),d(k,"isValidValueNumber"),d(N,"getInvalidMaxError"),d(b,"getInvalidValueError");var w=e.i(975157);let T=i.forwardRef(({className:e,value:t,...a},s)=>(0,r.jsx)(x,{ref:s,value:t,className:(0,w.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:(0,r.jsx)(h,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));T.displayName=x.displayName,e.s(["f",0,T],168148)},419327,e=>{var t=e.i(843476),a=e.i(522016),s=e.i(980105),r=e.i(399847),i=e.i(551757),n=e.i(13285),l=e.i(632781),c=e.i(615568),d=e.i(487486),o=e.i(519455),m=e.i(111110),u=e.i(215519),p=e.i(306831),f=e.i(975157);let x={splitting:l.f,processing:l.f,draft:c.f,attention:r.f,failed:r.f,done:i.f};function h({batch:e}){let{t:s}=(0,m.b)(),{timeZone:r}=(0,u.M)(),i=x[e.phase],l="splitting"===e.phase||"processing"===e.phase,c="started"===e.status?e.counts.total:e.itemCount,{counts:v}=e,g="started"===e.status?[v.saved>0&&s.importBatch.counts.saved.replace("{count}",String(v.saved-v.duplicate)),v.duplicate>0&&s.importBatch.counts.duplicate.replace("{count}",String(v.duplicate)),v.review>0&&s.importBatch.counts.review.replace("{count}",String(v.review)),v.failed>0&&s.importBatch.counts.failed.replace("{count}",String(v.failed)),v.active>0&&s.importBatch.counts.active.replace("{count}",String(v.active))].filter(Boolean):[];return(0,t.jsxs)("div",{className:(0,f.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-batch-card","data-phase":e.phase,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(i,{className:(0,f.f)("mt-0.5 h-4 w-4 shrink-0",l&&"animate-spin text-primary","done"===e.phase&&"text-green-600",("failed"===e.phase||"attention"===e.phase)&&"text-destructive")}),(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)(n.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-medium",children:c>0?s.importBatch.batchOf.replace("{count}",String(c)):s.importBatch.title}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.importBatch.source[e.source]," · ",s.importBatch.phase[e.phase]]}),e.unread&&(0,t.jsx)(d.f,{children:s.importTasks.unread})]}),e.excerpt&&(0,t.jsx)("p",{className:"line-clamp-2 break-words text-muted-foreground",children:e.excerpt}),g.length>0&&(0,t.jsx)("p",{className:"text-xs",children:g.join(" · ")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:s.importTasks.createdAt.replace("{time}",(0,p.r)(e.createdAt,"MM-dd HH:mm",r))})]})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.f,{asChild:!0,size:"sm",variant:"draft"===e.phase||"attention"===e.phase?"default":"outline",children:(0,t.jsx)(a.default,{href:`/import-batches/${e.id}`,children:s.importBatch.open})})})]})}var v=e.i(731335),g=e.i(912505),j=e.i(393842),y=e.i(86963),k=e.i(35209),N=e.i(579321),b=e.i(768339),w=e.i(927904);e.s(["default",0,function(){let{t:e}=(0,m.b)();(0,k.f)(e.importTasks.title);let{data:r,refresh:i}=(0,b.b)(),n=(0,N.f)(i),l=(0,w.f)((r?.activeCount??0)>0);return(0,t.jsxs)("main",{className:"mx-auto max-w-3xl space-y-4 px-4 py-6 md:px-8 md:py-8",children:[(0,t.jsx)(j.f,{backHref:"/",title:e.importTasks.title,description:e.importTasks.description}),r?0!==r.tasks.length||r.batches?.length?(0,t.jsx)("ul",{className:"space-y-3",children:[...(r.batches??[]).map(e=>({kind:"batch",createdAt:e.createdAt,batch:e})),...r.tasks.map(e=>({kind:"task",createdAt:e.createdAt,task:e}))].sort((e,t)=>t.createdAt.localeCompare(e.createdAt)).map(e=>"batch"===e.kind?(0,t.jsx)("li",{children:(0,t.jsx)(h,{batch:e.batch})},`batch-${e.batch.id}`):(0,t.jsx)("li",{children:(0,t.jsx)(v.f,{task:e.task,now:l,onReview:()=>n.openReview(e.task),onViewItem:()=>n.viewItem(e.task),onRetry:()=>n.retry(e.task),onDiscard:()=>n.discard(e.task)})},e.task.id))}):(0,t.jsx)(g.f,{icon:s.f,title:e.importTasks.empty,action:(0,t.jsx)(a.default,{href:"/",children:(0,t.jsx)(o.f,{children:e.importTasks.backHome})})}):(0,t.jsx)(y.f,{}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.importTasks.retentionHint})]})}],419327)},731335,579321,927904,e=>{var t=e.i(843476),a=e.i(399847),s=e.i(551757),r=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,r.f)(i);var l=e.i(632781),c=e.i(615568),d=e.i(487486),o=e.i(519455),m=e.i(168148),u=e.i(111110),p=e.i(215519),f=e.i(306831);let x=["read","convert","crop","compress","upload"],h=["receive","analyze","save"];function v(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 a=Math.round(t);return`${Math.floor(a/60)}:${String(a%60).padStart(2,"0")}`}var g=e.i(975157);let j={analyzing:50,saving:90},y={analyzing:l.f,saving:l.f,review:c.f,saved:s.f,failed:a.f};e.s(["f",0,function({task:e,now:a,onReview:s,onViewItem:r,onRetry:i,onDiscard:l}){let{t:c}=(0,u.b)(),{timeZone:k}=(0,p.M)(),N=y[e.status],b="analyzing"===e.status||"saving"===e.status,w=c.errors,T=e.error?"string"==typeof w[e.error]?w[e.error]:e.error:null,I=function(e){let t=[];for(let a of x){let s=e?.client?.[a];"number"==typeof s&&t.push({stage:a,ms:s})}for(let a of h){let s=e?.server?.[a];"number"==typeof s&&t.push({stage:a,ms:s})}return t}(e.timings),z=b&&a?a-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,g.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)(N,{className:(0,g.f)("mt-0.5 h-4 w-4 shrink-0",b&&"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:c.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:c.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:c.importTasks.unread})]}),b&&(0,t.jsx)(m.f,{value:j[e.status],"aria-label":c.importTasks.stageEstimate,"aria-valuetext":c.common.progress.estimated.replace("{percent}",String(j[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:c.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?c.importTasks.duplicateSaved:c.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),T&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:T}),(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"}),c.importTasks.createdAt.replace("{time}",(0,f.r)(e.createdAt,"MM-dd HH:mm",k))]}),null!==z&&(0,t.jsx)("span",{children:c.importTasks.elapsed.replace("{time}",v(z))}),e.attempts>1&&(0,t.jsx)("span",{children:c.importTasks.attempts.replace("{count}",String(e.attempts))})]}),I.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:I.map(({stage:e,ms:a})=>(0,t.jsxs)("li",{children:[c.importTasks.timings[e]," ",v(a)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&s&&(0,t.jsx)(o.f,{size:"sm",onClick:s,children:c.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&r&&(0,t.jsx)(o.f,{size:"sm",variant:"outline",onClick:r,children:c.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(o.f,{size:"sm",onClick:i,children:c.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(o.f,{size:"sm",variant:"ghost",onClick:l,children:c.importTasks.discard})]})]})}],731335);var k=e.i(618566),N=e.i(61425),b=e.i(294114),w=e.i(201276),T=e.i(116331);e.s(["f",0,function(e){let{t}=(0,u.b)(),a=(0,k.useRouter)(),s=e=>{e.unread&&(0,T.N)(e.id).catch(e=>w.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{s(e),a.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(s(e),a.push(`/error-items/${e.errorItemId}`))},markRead:s,retry:async a=>{try{await (0,T.R)(a.id),b.c.info(t.importTasks.retried)}catch(e){b.c.error((0,N.f)(e,t))}e?.()},discard:async a=>{if(!await (0,b.u)(t.importTasks.discardConfirm))return!1;let s=!1;try{await (0,T.x)(a.id),b.c.success(t.importTasks.discarded),s=!0}catch(e){b.c.error((0,N.f)(e,t))}return e?.(),s}}}],579321);var I=e.i(271645);e.s(["f",0,function(e,t=1e3){let[a,s]=(0,I.useState)(()=>Date.now());return(0,I.useEffect)(()=>{if(!e)return;let a=setInterval(()=>s(Date.now()),t);return()=>clearInterval(a)},[e,t]),a}],927904)},590546,e=>{var t=e.i(843476),a=e.i(618566),s=e.i(519455),r=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:i}){let n=(0,a.useRouter)();return(0,t.jsx)(s.f,{variant:"ghost",size:"icon",onClick:()=>{n.push(e)},className:i,children:(0,t.jsx)(r.f,{className:"h-5 w-5"})})}])},912505,e=>{var t=e.i(843476),a=e.i(975157);e.s(["f",0,function({icon:e,title:s,description:r,action:i,className:n}){return(0,t.jsxs)("div",{className:(0,a.f)("flex flex-col items-center justify-center rounded-2xl border border-dashed bg-card/50 px-6 py-14 text-center",n),children:[(0,t.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-accent text-accent-foreground",children:(0,t.jsx)(e,{className:"h-7 w-7"})}),(0,t.jsx)("p",{className:"font-medium",children:s}),r&&(0,t.jsx)("p",{className:"mt-1 max-w-sm text-sm text-muted-foreground",children:r}),i&&(0,t.jsx)("div",{className:"mt-5",children:i})]})}])},393842,e=>{var t=e.i(843476),a=e.i(590546),s=e.i(975157);e.s(["f",0,function({title:e,description:r,backHref:i,actions:n,titleAddon:l,className:c}){return(0,t.jsxs)("div",{className:(0,s.f)("flex items-start gap-3",c),children:[i&&(0,t.jsx)(a.f,{fallbackUrl:i,className:"-ml-2 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:e}),l]}),r&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:r})]}),n&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:n})]})}])},86963,e=>{var t=e.i(843476),a=e.i(632781);e.s(["f",0,function({label:e}){return(0,t.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,t.jsx)(a.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,t.jsx)("p",{className:"text-sm",children:e})]})}])},61425,e=>{var t=e.i(303163);e.s(["f",0,function(e,a){let s=a.common?.messages?.analysisFailed||"Analysis failed, please try again",r=(0,t.d)(e);if(r){let e=a.errors??{};if(!(r in e))return r;let t=e[r];return"string"==typeof t?t:s}let i=(0,t.Z)(e);if(i.includes("fetch")||i.includes("network"))return a.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`${s} (${t})`}return s}])},35209,e=>{var t=e.i(271645),a=e.i(111110);e.s(["f",0,function(...e){let{t:s}=(0,a.b)(),r=[s.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=r},[r])}])}])})();
6
+ Defaulting to \`null\`.`}d(v,"defaultGetValueLabel"),d(g,"getProgressState"),d(j,"isNumber"),d(y,"isValidMaxNumber"),d(k,"isValidValueNumber"),d(N,"getInvalidMaxError"),d(b,"getInvalidValueError");var w=e.i(975157);let T=i.forwardRef(({className:e,value:t,...a},s)=>(0,r.jsx)(x,{ref:s,value:t,className:(0,w.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:(0,r.jsx)(h,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));T.displayName=x.displayName,e.s(["f",0,T],168148)},419327,e=>{var t=e.i(843476),a=e.i(522016),s=e.i(980105),r=e.i(399847),i=e.i(551757),n=e.i(13285),l=e.i(632781),c=e.i(615568),d=e.i(487486),o=e.i(519455),m=e.i(111110),u=e.i(215519),p=e.i(306831),f=e.i(975157);let x={splitting:l.f,processing:l.f,draft:c.f,attention:r.f,failed:r.f,done:i.f};function h({batch:e}){let{t:s}=(0,m.b)(),{timeZone:r}=(0,u.M)(),i=x[e.phase],l="splitting"===e.phase||"processing"===e.phase,c="started"===e.status?e.counts.total:e.itemCount,{counts:v}=e,g="started"===e.status?[v.saved>0&&s.importBatch.counts.saved.replace("{count}",String(v.saved-v.duplicate)),v.duplicate>0&&s.importBatch.counts.duplicate.replace("{count}",String(v.duplicate)),v.review>0&&s.importBatch.counts.review.replace("{count}",String(v.review)),v.failed>0&&s.importBatch.counts.failed.replace("{count}",String(v.failed)),v.active>0&&s.importBatch.counts.active.replace("{count}",String(v.active))].filter(Boolean):[];return(0,t.jsxs)("div",{className:(0,f.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-batch-card","data-phase":e.phase,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(i,{className:(0,f.f)("mt-0.5 h-4 w-4 shrink-0",l&&"animate-spin text-primary","done"===e.phase&&"text-green-600",("failed"===e.phase||"attention"===e.phase)&&"text-destructive")}),(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)(n.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-medium",children:c>0?s.importBatch.batchOf.replace("{count}",String(c)):s.importBatch.title}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.importBatch.source[e.source]," · ",s.importBatch.phase[e.phase]]}),e.unread&&(0,t.jsx)(d.f,{children:s.importTasks.unread})]}),e.excerpt&&(0,t.jsx)("p",{className:"line-clamp-2 break-words text-muted-foreground",children:e.excerpt}),g.length>0&&(0,t.jsx)("p",{className:"text-xs",children:g.join(" · ")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:s.importTasks.createdAt.replace("{time}",(0,p.r)(e.createdAt,"MM-dd HH:mm",r))})]})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.f,{asChild:!0,size:"sm",variant:"draft"===e.phase||"attention"===e.phase?"default":"outline",children:(0,t.jsx)(a.default,{href:`/import-batches/${e.id}`,children:s.importBatch.open})})})]})}var v=e.i(731335),g=e.i(912505),j=e.i(393842),y=e.i(86963),k=e.i(35209),N=e.i(532377),b=e.i(901219),w=e.i(339501);e.s(["default",0,function(){let{t:e}=(0,m.b)();(0,k.f)(e.importTasks.title);let{data:r,refresh:i}=(0,b.b)(),n=(0,N.f)(i),l=(0,w.f)((r?.activeCount??0)>0);return(0,t.jsxs)("main",{className:"mx-auto max-w-3xl space-y-4 px-4 py-6 md:px-8 md:py-8",children:[(0,t.jsx)(j.f,{backHref:"/",title:e.importTasks.title,description:e.importTasks.description}),r?0!==r.tasks.length||r.batches?.length?(0,t.jsx)("ul",{className:"space-y-3",children:[...(r.batches??[]).map(e=>({kind:"batch",createdAt:e.createdAt,batch:e})),...r.tasks.map(e=>({kind:"task",createdAt:e.createdAt,task:e}))].sort((e,t)=>t.createdAt.localeCompare(e.createdAt)).map(e=>"batch"===e.kind?(0,t.jsx)("li",{children:(0,t.jsx)(h,{batch:e.batch})},`batch-${e.batch.id}`):(0,t.jsx)("li",{children:(0,t.jsx)(v.f,{task:e.task,now:l,onReview:()=>n.openReview(e.task),onViewItem:()=>n.viewItem(e.task),onRetry:()=>n.retry(e.task),onDiscard:()=>n.discard(e.task)})},e.task.id))}):(0,t.jsx)(g.f,{icon:s.f,title:e.importTasks.empty,action:(0,t.jsx)(a.default,{href:"/",children:(0,t.jsx)(o.f,{children:e.importTasks.backHome})})}):(0,t.jsx)(y.f,{}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.importTasks.retentionHint})]})}],419327)},731335,532377,339501,e=>{var t=e.i(843476),a=e.i(399847),s=e.i(551757),r=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,r.f)(i);var l=e.i(632781),c=e.i(615568),d=e.i(487486),o=e.i(519455),m=e.i(168148),u=e.i(111110),p=e.i(215519),f=e.i(306831);let x=["read","convert","crop","compress","upload"],h=["receive","analyze","save"];function v(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 a=Math.round(t);return`${Math.floor(a/60)}:${String(a%60).padStart(2,"0")}`}var g=e.i(975157);let j={analyzing:50,saving:90},y={analyzing:l.f,saving:l.f,review:c.f,saved:s.f,failed:a.f};e.s(["f",0,function({task:e,now:a,onReview:s,onViewItem:r,onRetry:i,onDiscard:l}){let{t:c}=(0,u.b)(),{timeZone:k}=(0,p.M)(),N=y[e.status],b="analyzing"===e.status||"saving"===e.status,w=c.errors,T=e.error?"string"==typeof w[e.error]?w[e.error]:e.error:null,I=function(e){let t=[];for(let a of x){let s=e?.client?.[a];"number"==typeof s&&t.push({stage:a,ms:s})}for(let a of h){let s=e?.server?.[a];"number"==typeof s&&t.push({stage:a,ms:s})}return t}(e.timings),z=b&&a?a-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,g.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)(N,{className:(0,g.f)("mt-0.5 h-4 w-4 shrink-0",b&&"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:c.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:c.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:c.importTasks.unread})]}),b&&(0,t.jsx)(m.f,{value:j[e.status],"aria-label":c.importTasks.stageEstimate,"aria-valuetext":c.common.progress.estimated.replace("{percent}",String(j[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:c.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?c.importTasks.duplicateSaved:c.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),T&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:T}),(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"}),c.importTasks.createdAt.replace("{time}",(0,f.r)(e.createdAt,"MM-dd HH:mm",k))]}),null!==z&&(0,t.jsx)("span",{children:c.importTasks.elapsed.replace("{time}",v(z))}),e.attempts>1&&(0,t.jsx)("span",{children:c.importTasks.attempts.replace("{count}",String(e.attempts))})]}),I.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:I.map(({stage:e,ms:a})=>(0,t.jsxs)("li",{children:[c.importTasks.timings[e]," ",v(a)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&s&&(0,t.jsx)(o.f,{size:"sm",onClick:s,children:c.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&r&&(0,t.jsx)(o.f,{size:"sm",variant:"outline",onClick:r,children:c.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(o.f,{size:"sm",onClick:i,children:c.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(o.f,{size:"sm",variant:"ghost",onClick:l,children:c.importTasks.discard})]})]})}],731335);var k=e.i(618566),N=e.i(767077),b=e.i(294114),w=e.i(201276),T=e.i(127175);e.s(["f",0,function(e){let{t}=(0,u.b)(),a=(0,k.useRouter)(),s=e=>{e.unread&&(0,T.N)(e.id).catch(e=>w.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{s(e),a.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(s(e),a.push(`/error-items/${e.errorItemId}`))},markRead:s,retry:async a=>{try{await (0,T.R)(a.id),b.c.info(t.importTasks.retried)}catch(e){b.c.error((0,N.f)(e,t))}e?.()},discard:async a=>{if(!await (0,b.u)(t.importTasks.discardConfirm))return!1;let s=!1;try{await (0,T.x)(a.id),b.c.success(t.importTasks.discarded),s=!0}catch(e){b.c.error((0,N.f)(e,t))}return e?.(),s}}}],532377);var I=e.i(271645);e.s(["f",0,function(e,t=1e3){let[a,s]=(0,I.useState)(()=>Date.now());return(0,I.useEffect)(()=>{if(!e)return;let a=setInterval(()=>s(Date.now()),t);return()=>clearInterval(a)},[e,t]),a}],339501)},590546,e=>{var t=e.i(843476),a=e.i(618566),s=e.i(519455),r=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:i}){let n=(0,a.useRouter)();return(0,t.jsx)(s.f,{variant:"ghost",size:"icon",onClick:()=>{n.push(e)},className:i,children:(0,t.jsx)(r.f,{className:"h-5 w-5"})})}])},912505,e=>{var t=e.i(843476),a=e.i(975157);e.s(["f",0,function({icon:e,title:s,description:r,action:i,className:n}){return(0,t.jsxs)("div",{className:(0,a.f)("flex flex-col items-center justify-center rounded-2xl border border-dashed bg-card/50 px-6 py-14 text-center",n),children:[(0,t.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-accent text-accent-foreground",children:(0,t.jsx)(e,{className:"h-7 w-7"})}),(0,t.jsx)("p",{className:"font-medium",children:s}),r&&(0,t.jsx)("p",{className:"mt-1 max-w-sm text-sm text-muted-foreground",children:r}),i&&(0,t.jsx)("div",{className:"mt-5",children:i})]})}])},393842,e=>{var t=e.i(843476),a=e.i(590546),s=e.i(975157);e.s(["f",0,function({title:e,description:r,backHref:i,actions:n,titleAddon:l,className:c}){return(0,t.jsxs)("div",{className:(0,s.f)("flex items-start gap-3",c),children:[i&&(0,t.jsx)(a.f,{fallbackUrl:i,className:"-ml-2 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:e}),l]}),r&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:r})]}),n&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:n})]})}])},86963,e=>{var t=e.i(843476),a=e.i(632781);e.s(["f",0,function({label:e}){return(0,t.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,t.jsx)(a.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,t.jsx)("p",{className:"text-sm",children:e})]})}])},35209,e=>{var t=e.i(271645),a=e.i(111110);e.s(["f",0,function(...e){let{t:s}=(0,a.b)(),r=[s.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=r},[r])}])},767077,e=>{var t=e.i(303163);e.s(["f",0,function(e,a){let s=a.common?.messages?.analysisFailed||"Analysis failed, please try again",r=(0,t.d)(e);if(r){let e=a.errors??{};if(!(r in e))return r;let t=e[r];return"string"==typeof t?t:s}let i=(0,t.Z)(e);if(i.includes("fetch")||i.includes("network"))return a.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`${s} (${t})`}return s}])}])})();
@@ -1 +1 @@
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)},399847,e=>{var t=e.i(456420);let n={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],399847)},474544,e=>{var t=e.i(456420);let n={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],474544)},444594,e=>{var t=e.i(456420);let n={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],444594)},786563,e=>{var t=e.i(456420);let n={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"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],786563)},697886,e=>{var t=e.i(456420);let n={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],697886)},7219,e=>{var t=e.i(456420);let n={name:"trending-up",size:24,node:[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],7219)},282492,e=>{var t=e.i(722219);e.s(["z",0,t])},590546,e=>{var t=e.i(843476),n=e.i(618566),a=e.i(519455),l=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:i}){let s=(0,n.useRouter)();return(0,t.jsx)(a.f,{variant:"ghost",size:"icon",onClick:()=>{s.push(e)},className:i,children:(0,t.jsx)(l.f,{className:"h-5 w-5"})})}])},393842,e=>{var t=e.i(843476),n=e.i(590546),a=e.i(975157);e.s(["f",0,function({title:e,description:l,backHref:i,actions:s,titleAddon:r,className:c}){return(0,t.jsxs)("div",{className:(0,a.f)("flex items-start gap-3",c),children:[i&&(0,t.jsx)(n.f,{fallbackUrl:i,className:"-ml-2 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:e}),r]}),l&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:l})]}),s&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s})]})}])},62825,e=>{function t(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["i",0,function(e,n="zh"){return("en"===n?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[t(e)]},"h",0,t,"x",0,function(e,n){return(n||"").trim()?"wrong_attempt":t(e)}])},35209,e=>{var t=e.i(271645),n=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,n.b)(),l=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=l},[l])}])}])})();
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)},399847,e=>{var t=e.i(456420);let n={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],399847)},474544,e=>{var t=e.i(456420);let n={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],474544)},444594,e=>{var t=e.i(456420);let n={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],444594)},786563,e=>{var t=e.i(456420);let n={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"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],786563)},697886,e=>{var t=e.i(456420);let n={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],697886)},7219,e=>{var t=e.i(456420);let n={name:"trending-up",size:24,node:[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],7219)},282492,e=>{var t=e.i(722219);e.s(["z",0,t])},590546,e=>{var t=e.i(843476),n=e.i(618566),a=e.i(519455),l=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:i}){let s=(0,n.useRouter)();return(0,t.jsx)(a.f,{variant:"ghost",size:"icon",onClick:()=>{s.push(e)},className:i,children:(0,t.jsx)(l.f,{className:"h-5 w-5"})})}])},393842,e=>{var t=e.i(843476),n=e.i(590546),a=e.i(975157);e.s(["f",0,function({title:e,description:l,backHref:i,actions:s,titleAddon:r,className:c}){return(0,t.jsxs)("div",{className:(0,a.f)("flex items-start gap-3",c),children:[i&&(0,t.jsx)(n.f,{fallbackUrl:i,className:"-ml-2 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:e}),r]}),l&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:l})]}),s&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s})]})}])},35209,e=>{var t=e.i(271645),n=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,n.b)(),l=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=l},[l])}])},991722,e=>{function t(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["i",0,function(e,n="zh"){return("en"===n?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[t(e)]},"h",0,t,"x",0,function(e,n){return(n||"").trim()?"wrong_attempt":t(e)}])}])})();
@@ -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),s=e.i(77043),l=e.i(519455),r=e.i(257428),o=e.i(967489),c=e.i(590546),u=e.i(339023),m=e.i(111110),d=e.i(35209),f=e.i(41931);let x=`
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 h(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),w=e.i(511445),j=e.i(84583),v=e.i(763896),y=e.i(336653);function k({question:e,displayNumber:n,scoreUnit:a,answerSpace:i,customSpaces:s,uniformPreview:l,onSaveFigureScale:r,onChangeCustomSpace:o}){let c,{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,v.s)(e.score)} ${a})`]}),(0,t.jsxs)("span",{className:"exam-source",children:[u.exam.sourceLabel,": ",e.sourceShortId]})]}),(0,t.jsx)(w.f,{content:e.questionText}),(0,t.jsx)(b.f,{svg:e.figureSvg,scale:e.figureScale,align:e.figureAlign,previewScaleOverride:l.scale,previewAlignOverride:l.align,onSave:(t,n)=>r(e.id,t,n)},`${e.id}-${e.figureScale??100}-${e.figureAlign??"center"}`),(c=(0,p.z)(i,e.questionText,s[e.id]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"exam-answer-space",style:{minHeight:`${c}px`}}),(0,t.jsx)(j.f,{effectivePx:c,isCustom:"number"==typeof s[e.id],onChange:t=>o(e.id,t),onReset:()=>o(e.id,null)})]}))]})}function S({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 _=(0,n.forwardRef)(function({paper:e,includeAnswers:n,answerSpace:a,customSpaces:i,uniformPreview:s,onSaveFigureScale:l,onChangeCustomSpace:r},o){let{t:c,language:u}=(0,m.b)(),d=e.questions.filter(e=>"ready"===e.status&&e.questionText),f=(0,v.n)(d.map(e=>e.score??null)).total,x="en"===u?"pts":"分",h=e.groupByType?(0,y.f)(d,u):null,p=(e,n)=>(0,t.jsx)(k,{question:e,displayNumber:n,scoreUnit:x,answerSpace:a,customSpaces:i,uniformPreview:s,onSaveFigureScale:l,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:[c.exam.sourceLabel,": ",e.question.sourceShortId]})]}),e.question.answerText&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"exam-label",children:[c.exam.answerLabel,c.common.colon]}),(0,t.jsx)(w.f,{content:e.question.answerText})]}),e.question.analysis&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"exam-label",children:[c.exam.analysisLabel,c.common.colon]}),(0,t.jsx)(w.f,{content:e.question.analysis})]})]},e.question.id));return(0,t.jsxs)("div",{ref:o,className:"exam-sheet",children:[(0,t.jsx)("h1",{children:e.title}),null!==f&&(0,t.jsx)("p",{className:"exam-full-score",children:c.exam.fullScore.replace("{total}",(0,v.s)(f))}),(0,t.jsxs)("div",{className:"exam-meta",children:[(0,t.jsxs)("span",{children:[c.exam.nameLine,c.common.colon,"________"]}),(0,t.jsxs)("span",{children:[c.exam.dateLine,c.common.colon,"________"]}),(0,t.jsxs)("span",{children:[c.exam.scoreLine,c.common.colon,"________"]})]}),h?h.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(S,{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:c.exam.answerKey}),h?h.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(S,{section:e}),g(e.items)]},e.title)):g(d.map((e,t)=>({question:e,displayNumber:t+1})))]})]})}),N=[];e.s(["default",0,function(){let e=(0,a.useParams)(),{t:b,language:w}=(0,m.b)(),[j,v]=(0,n.useState)(null);(0,d.f)(b.exam.title,j?.title,b.pageTitle.examPrint);let[y,k]=(0,n.useState)(!0),[S,C]=(0,n.useState)(p.q),[I,z]=(0,n.useState)({scale:null,align:null}),q=(0,n.useRef)(null),T=j?.id,A=(0,n.useCallback)(async e=>{if(T){if(e.length>1&&e.every(e=>null===e.answerSpacePx))return void await f.k.patch(`/api/exams/${T}`,{answerSpacePx:null});await Promise.all(e.map(({id:e,answerSpacePx:t})=>f.k.patch(`/api/exams/${T}`,{questionId:e,answerSpacePx:t})))}},[T]),{customSpaces:R,setSpace:$,resetAll:F,saveFailed:P}=(0,g.f)(j?.questions??N,A);if((0,n.useEffect)(()=>{let e=null;try{e=localStorage.getItem(p.p)}catch{}(0,p.I)(e)&&C(e)},[]),(0,n.useEffect)(()=>{f.k.get(`/api/exams/${e.id}`).then(v).catch(()=>v(null))},[e.id]),!j)return(0,t.jsx)("div",{className:"p-8 text-center",children:b.common.loading});let V=j.questions.filter(e=>"ready"===e.status&&e.questionText&&!!e.figureSvg),E=j.questions.filter(e=>"ready"===e.status&&e.questionText).length,M=async(e,t,n)=>{await f.k.patch(`/api/exams/${j.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)},L=async e=>{await f.k.patch(`/api/exams/${j.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:x}),(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)(c.f,{fallbackUrl:`/exams/${j.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=>k(!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)(o.d,{value:S,onValueChange:e=>{if((0,p.I)(e)){C(e);try{localStorage.setItem(p.p,e)}catch{}}},children:[(0,t.jsx)(o.P,{className:"h-8 w-40",children:(0,t.jsx)(o.U,{})}),(0,t.jsxs)(o.r,{children:[(0,t.jsx)(o.T,{value:"auto",children:b.exam.answerSpaceAuto}),(0,t.jsx)(o.T,{value:"none",children:b.exam.answerSpaceNone}),(0,t.jsx)(o.T,{value:"small",children:b.exam.answerSpaceSmall}),(0,t.jsx)(o.T,{value:"medium",children:b.exam.answerSpaceMedium}),(0,t.jsx)(o.T,{value:"large",children:b.exam.answerSpaceLarge})]})]}),Object.keys(R).length>0&&(0,t.jsx)(l.f,{type:"button",variant:"ghost",size:"sm",onClick:F,children:b.exam.resetAllQuestionAnswerSpaces})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 sm:ml-auto",children:[(0,t.jsxs)(l.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="${h(n)}">
27
+ <head>
28
+ <meta charset="utf-8">
29
+ <meta name="viewport" content="width=device-width, initial-scale=1">
30
+ <title>${h(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; }${x}</style>
33
+ </head>
34
+ <body>
35
+ ${t}
36
+ </body>
37
+ </html>
38
+ `}(j.title,t.outerHTML,"en"===w?"en":"zh-CN"),a=URL.createObjectURL(new Blob([n],{type:"text/html;charset=utf-8"})),i=document.createElement("a");i.href=a,e=j.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)(l.f,{size:"sm",onClick:()=>window.print(),children:[(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4"}),b.exam.printNow]})]}),"auto"===S&&(0,t.jsx)("p",{className:"w-full text-xs text-muted-foreground",children:b.exam.answerSpaceAutoHint}),P&&(0,t.jsx)("p",{className:"w-full text-xs text-destructive",children:b.exam.answerSpaceSaveFailed}),E<j.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:z,onSave:L})]})}),(0,t.jsx)(_,{ref:q,paper:j,includeAnswers:y,answerSpace:S,customSpaces:R,uniformPreview:I,onSaveFigureScale:M,onChangeCustomSpace:$})]})}],580685)},520732,e=>{var t=e.i(843476),n=e.i(271645),a=e.i(149704),i=e.i(519455),s=e.i(793479),l=e.i(111110),r=e.i(294114),o=e.i(184110),c=e.i(201276);e.s(["f",0,function({svg:e,scale:u,align:m,previewScaleOverride:d,previewAlignOverride:f,onSave:x}){let{t:h}=(0,l.b)(),p=(0,n.useId)(),g=(0,o.V)(u),b=(0,o.o)(m),[w,j]=(0,n.useState)(null),[v,y]=(0,n.useState)(null),[k,S]=(0,n.useState)(!1),_=w??String(g),N=""!==_.trim()&&(0,o.x)(Number(_)),C=N?Number(_):g,I=v??b,z=d??C,q=f??I,T=null!==w&&(!N||Number(_)!==g)||null!==v&&v!==b;if(!e)return null;let A=async e=>{if(e.preventDefault(),N&&T&&!k){S(!0);try{await x(C,I),j(null),y(null),r.c.success(h.common.messages.saveSuccess)}catch(e){c.V.error("[FigureScale]","保存配图比例失败",{error:e}),r.c.error(h.common.messages.saveFailed)}finally{S(!1)}}};return(0,t.jsxs)("div",{children:[(0,t.jsx)(a.f,{svg:e,scale:z,align:q}),(0,t.jsxs)("form",{onSubmit:A,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:h.figure.scale}),(0,t.jsx)(s.f,{id:p,type:"number",min:o._,max:o.a,step:1,value:_,disabled:k,"aria-describedby":`${p}-hint`,"aria-invalid":!N,onChange:e=>j(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:k||N&&C===o.n,onClick:()=>j(String(o.n)),children:h.figure.resetScale}),(0,t.jsxs)("div",{role:"group","aria-label":h.figure.align,className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:h.figure.align}),o.j.map(e=>(0,t.jsx)(i.f,{type:"button",variant:I===e?"default":"outline",size:"sm",disabled:k,"aria-pressed":I===e,onClick:()=>y(e===b?null:e),children:h.figure.aligns[e]},e))]}),(0,t.jsx)(i.f,{type:"submit",size:"sm",disabled:k||!T||!N,children:k?h.common.progress.saving:h.common.save}),T&&(0,t.jsx)(i.f,{type:"button",variant:"ghost",size:"sm",disabled:k,onClick:()=>{j(null),y(null)},children:h.common.cancel})]}),(0,t.jsx)("input",{type:"range",min:o._,max:o.a,step:1,value:C,disabled:k,"aria-label":h.figure.scaleSlider,"aria-describedby":`${p}-hint`,onChange:e=>j(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:h.figure.scaleHint})]})]})}])},339023,763896,336653,e=>{var t=e.i(843476),n=e.i(271645),a=e.i(519455),i=e.i(793479),s=e.i(111110),l=e.i(294114),r=e.i(184110),o=e.i(201276);function c(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:c,onPreviewChange:u,onSave:m}){let{t:d}=(0,s.b)(),f=(0,n.useId)(),x=e.map(r.V),h=new Set(x).size<=1,p=x[0]??r.n,g=(c??e.map(()=>r.E)).map(r.o),b=new Set(g).size<=1,w=g[0]??r.E,[j,v]=(0,n.useState)(null),[y,k]=(0,n.useState)(null),[S,_]=(0,n.useState)(!1);if(0===e.length)return null;let N=j??String(p),C=""!==N.trim()&&(0,r.x)(Number(N)),I=C?Number(N):p,z=y??w,q=null!==j||null!==y,T=null!==j?!C||!h||Number(N)!==p:!q&&!h,A=null!==y?!b||y!==w:!q&&!b,R=T||A,$=(e,t)=>{let n=null!==e&&""!==e.trim()&&(0,r.x)(Number(e))?Number(e):null;u?.({scale:n,align:t})},F=e=>{v(e),$(e,y)},P=async e=>{if(e.preventDefault(),C&&R&&!S){_(!0);try{let e={};null===j&&(q||h)||(e.figureScale=I),null===y&&(q||b)||(e.figureAlign=z),await m(e),v(null),k(null),u?.({scale:null,align:null}),l.c.success(d.common.messages.saveSuccess)}catch(e){o.V.error("[ExamFigureScale]","统一保存试卷配图设置失败",{error:e}),l.c.error(d.common.messages.saveFailed)}finally{_(!1)}}};return(0,t.jsxs)("form",{onSubmit:P,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:f,className:"font-medium",children:d.exam.uniformFigureScale}),(0,t.jsx)(i.f,{id:f,type:"number",min:r._,max:r.a,step:1,value:N,disabled:S,"aria-describedby":`${f}-hint`,"aria-invalid":!C,onChange:e=>F(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:S||h&&C&&I===r.n,onClick:()=>F(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:z===e&&(null!==y||b)?"default":"outline",size:"sm",disabled:S,"aria-pressed":z===e&&(null!==y||b),onClick:()=>{var t;k(t=b&&e===w?null:e),$(j,t)},children:d.figure.aligns[e]},e))]}),(0,t.jsx)(a.f,{type:"submit",size:"sm",disabled:S||!R||!C,children:S?d.common.progress.saving:d.common.save}),q&&(0,t.jsx)(a.f,{type:"button",variant:"ghost",size:"sm",disabled:S,onClick:()=>{v(null),k(null),u?.({scale:null,align:null})},children:d.common.cancel})]}),(0,t.jsx)("input",{type:"range",min:r._,max:r.a,step:1,value:I,disabled:S,"aria-label":d.exam.uniformFigureScaleSlider,"aria-describedby":`${f}-hint`,onChange:e=>F(e.target.value),className:"block h-6 w-full max-w-sm accent-primary"}),(0,t.jsx)("p",{id:`${f}-hint`,className:"text-xs text-muted-foreground",children:d.exam.uniformFigureScaleHint})]})}],339023),e.s(["D",0,1e3,"W",0,.001,"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,c],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,s=0;for(let e of u.V){let l=n.get(e);if(0===l.length)continue;let r=c(l.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,s,t),items:l.map(e=>({question:e,displayNumber:i++})),count:l.length,scoreTotal:r.total,unscored:r.unscored}),s+=1}return a}],336653)},84583,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:s,onChange:l,onReset:r}){let{t:o}=(0,a.b)(),c=(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:[o.exam.questionAnswerSpace,": ",c,"px"]}),(0,t.jsx)(n.f,{type:"button",variant:"outline",size:"sm",className:"h-6 px-2 text-xs","aria-label":o.exam.decreaseAnswerSpace,disabled:c<=i.r,onClick:()=>l((0,i.O)(c-i.W)),children:"-"}),(0,t.jsx)("input",{type:"range",min:i.r,max:i.R,step:10,value:c,"aria-label":o.exam.questionAnswerSpaceSlider,onChange:e=>l((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":o.exam.increaseAnswerSpace,disabled:c>=i.R,onClick:()=>l((0,i.O)(c+i.W)),children:"+"}),s&&(0,t.jsx)(n.f,{type:"button",variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:r,children:o.exam.resetQuestionAnswerSpace})]})}])},149704,e=>{var t=e.i(843476),n=e.i(111110),a=e.i(398019),i=e.i(184110),s=e.i(975157);let l={left:"mr-auto",center:"mx-auto",right:"ml-auto"};e.s(["f",0,function({svg:e,scale:r,align:o,className:c}){let{t:u}=(0,n.b)();if(!e)return null;let m=(0,i.V)(r),d=(0,i.o)(o);return(0,t.jsx)("figure",{className:(0,s.f)("question-figure my-3",c),children:(0,t.jsx)("img",{src:(0,a.d)(e),alt:u.figure.alt,className:(0,s.f)(l[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:s}){let l=(0,n.useRouter)();return(0,t.jsx)(a.f,{variant:"ghost",size:"icon",onClick:()=>{l.push(e)},className:s,children:(0,t.jsx)(i.f,{className:"h-5 w-5"})})}])},257428,e=>{var t=e.i(843476),n=e.i(271645),a=e.i(820783),i=e.i(30030),s=e.i(981140),l=e.i(369340),r=e.i(635804),o=e.i(296626),c=e.i(248425),u=Object.defineProperty,m=(e,t)=>u(e,"name",{value:t,configurable:!0}),d="Checkbox",[f,x]=(0,i.f)(d),[h,p]=f(d);function g(e){let{__scopeCheckbox:a,checked:i,children:s,defaultChecked:r,disabled:o,form:c,name:u,onCheckedChange:m,required:f,value:x="on",internal_do_not_use_render:p}=e,[g,b]=(0,l.f)({prop:i,defaultProp:r??!1,onChange:m,caller:d}),[w,j]=n.useState(null),[v,S]=n.useState(null),[_,N]=n.useState(null),C=!w||!!c||!!w.closest("form"),I={checked:g,disabled:o,setChecked:b,control:w,setControl:j,name:u,form:c,value:x,userClick:_,onUserClick:N,required:f,defaultChecked:!k(r)&&r,isFormControl:C,bubbleInput:v,setBubbleInput:S};return(0,t.jsx)(h,{scope:a,...I,children:y(p)?p(I):s})}m(g,"CheckboxProvider");var b=n.forwardRef(m(function({__scopeCheckbox:e,onKeyDown:i,onClick:l,...r},o){let{control:u,value:d,disabled:f,checked:x,required:h,setControl:g,setChecked:b,onUserClick:w,isFormControl:j,bubbleInput:v}=p("CheckboxTrigger",e),y=(0,a.f)(o,g),_=n.useRef(x);return n.useEffect(()=>{let e=u?.form;if(e){let t=m(()=>b(_.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,b]),(0,t.jsx)(c.V.button,{type:"button",role:"checkbox","aria-checked":k(x)?"mixed":x,"aria-required":h,"data-state":S(x),"data-disabled":f?"":void 0,disabled:f,value:d,...r,ref:y,onKeyDown:(0,s.f)(i,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.f)(l,e=>{let t=e.isPropagationStopped();w({requestedChecked:!!k(x)||!x,hasConsumerStoppedPropagation:t}),b(e=>!!k(e)||!e),v&&j&&!t&&e.stopPropagation()})})},"CheckboxTrigger")),w=n.forwardRef(m(function(e,n){let{__scopeCheckbox:a,name:i,checked:s,defaultChecked:l,required:r,disabled:o,value:c,onCheckedChange:u,form:m,...d}=e;return(0,t.jsx)(g,{__scopeCheckbox:a,checked:s,defaultChecked:l,disabled:o,required:r,onCheckedChange:u,name:i,form:m,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{...d,ref:n,__scopeCheckbox:a}),e&&(0,t.jsx)(v,{__scopeCheckbox:a})]})})},"Checkbox")),j=n.forwardRef(m(function(e,n){let{__scopeCheckbox:a,forceMount:i,...s}=e,l=p("CheckboxIndicator",a);return(0,t.jsx)(o.f,{present:i||k(l.checked)||!0===l.checked,children:(0,t.jsx)(c.V.span,{"data-state":S(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),v=n.forwardRef(m(function({__scopeCheckbox:e,onClick:i,...l},o){let{control:u,userClick:m,checked:d,defaultChecked:f,required:x,disabled:h,name:g,value:b,form:w,bubbleInput:j,setBubbleInput:v}=p("CheckboxBubbleInput",e),y=(0,a.f)(o,v),S=(0,r.f)(u),_=n.useRef(!1),N=n.useRef(d),C=n.useRef(m),I=n.useRef(null);n.useEffect(()=>{if(!j)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(!e)return;let t=N.current!==d;N.current=d;let n=null!==m&&m!==C.current;if(C.current=m,n)I.current=t?null:m,t&&(j.indeterminate=k(d),e.call(j,!k(d)&&d)),j.dispatchEvent(new Event("click",{bubbles:!m.hasConsumerStoppedPropagation}));else if(t){let t=I.current;I.current=null;let n=t?.requestedChecked===d;_.current=!0,j.indeterminate=k(d),e.call(j,!k(d)&&d),j.dispatchEvent(new Event("click",{bubbles:!(n&&t.hasConsumerStoppedPropagation)})),_.current=!1}},[j,d,m]);let z=n.useRef(!k(d)&&d);return(0,t.jsx)(c.V.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??z.current,required:x,disabled:h,name:g,value:b,form:w,...l,tabIndex:-1,ref:y,onClick:(0,s.f)(i,e=>{_.current&&e.stopPropagation()}),style:{...l.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function y(e){return"function"==typeof e}function k(e){return"indeterminate"===e}function S(e){return k(e)?"indeterminate":e?"checked":"unchecked"}m(y,"isFunction"),m(k,"isIndeterminate"),m(S,"getState");var _=e.i(689664),N=e.i(975157);let C=n.forwardRef(({className:e,...n},a)=>(0,t.jsx)(w,{ref:a,className:(0,N.f)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...n,children:(0,t.jsx)(j,{className:(0,N.f)("flex items-center justify-center text-current"),children:(0,t.jsx)(_.f,{className:"h-4 w-4"})})}));C.displayName=w.displayName,e.s(["f",0,C],257428)},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 s=/(?:(?:^|[\s*+\-))::。??;;,,_])([A-D])\s*[..::]|(?:^|\s{2,}|[))::。??])([A-D])\s*、|[((]([A-D])[))])/gm,l=/判断(?:下列|以下|正误|对错|题)|对的(?:打|画)|错的(?:打|画)|true\s*(?:or|\/)\s*false/i,r=/_{2,}|(?:\\_){2,}|\\underline|\\rule\b|\\hspace\b|(\s*)|【\s*】|\[\s+\]|(?<![A-Za-z0-9_])\(\s*\)|[==]\s*[。??]?\s*$|填空/,o=/求证|证明[::,,]|写出(?:解题|计算|推导|推理)?过程|解答下列|试说明理由|请说明理由/,c=/(\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(c))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,c){let u;if("number"==typeof c&&Number.isFinite(c))return i(c);if("auto"!==e)return n[e];let d=(u=new Set(Array.from(t.matchAll(s),e=>e[1]??e[2]??e[3]))).has("A")&&u.has("B")&&u.has("C")?"choice":l.test(t)?"judgment":m(t)>1||o.test(t)?"solution":r.test(t)?"fill":"solution";if("solution"!==d)return a[d];let f=(m(t)-1)*120;return Math.min(560,a.solution+f)}])},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[s,l]=(0,t.useState)({}),[r,o]=(0,t.useState)(!1),c=(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 s?s[a.id]:(0,n.T)(a.answerSpacePx);"number"==typeof e&&(t[a.id]=e)}return t},[e,s]),f=(0,t.useCallback)(()=>{if(u.current&&(clearTimeout(u.current),u.current=null),0===c.current.size)return;let e=Array.from(c.current,([e,t])=>({id:e,answerSpacePx:t}));c.current.clear(),m.current(e).then(()=>o(!1)).catch(e=>{o(!0),a.V.error("[AnswerSpace]","Failed to save answer space",{error:e})})},[]);(0,t.useEffect)(()=>f,[f]);let x=(0,t.useCallback)((e,t)=>{if(0!==e.length){for(let{id:t,answerSpacePx:n}of(l(t=>{let n={...t};for(let{id:t,answerSpacePx:a}of e)n[t]=a;return n}),e))c.current.set(t,n);if(t)return void f();u.current&&clearTimeout(u.current),u.current=setTimeout(f,600)}},[f]),h=(0,t.useCallback)((e,t)=>{x([{id:e,answerSpacePx:t}],null===t)},[x]),p=(0,t.useCallback)(()=>{x(Object.keys(d).map(e=>({id:e,answerSpacePx:null})),!0)},[d,x]);return{customSpaces:d,setSpace:h,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}])}])})();